joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cce14
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push dword [0x1541b24]
mov edi, dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x18]
mov ebp, eax
mov edx, ebx
add ecx, dword [ebp + 0x90]
mov esi, dword [ebp + 0x8c]
add esi, dword [esp + 0x14]
test edi, edi
lea eax, [esi + edi]
cmovns eax, esi
mov esi, edi
neg esi
mov dword [esp + 0x18], eax
test edi, edi
lea eax, [ecx + ebx]
cmovns esi, edi
mov edi, dword [esp + 0x24]
test ebx, ebx
mov dword [esp + 0x1c], esi
cmovns eax, ecx
neg edx
test ebx, ebx
mov dword [esp + 0x14], eax
lea eax, [edi + edi]
cmovns edx, ebx
mov dword [esp + 0x20], edx
cmp eax, esi
jle 0x4cce8c
mov eax, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
mov edi, eax
sar edi, 1
mov esi, dword [esp + 0x28]
lea ecx, [esi + esi]
cmp ecx, edx
jle 0x4ccea0
mov eax, edx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov eax, dword [ebp + 0xa4]
cmp eax, dword [ebp + 0xac]
je 0x4cceb9
push eax
push ebp
mov dword [ebp + 0xac], eax
call dword [ebp + 0x40]
push esi
push edi
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x24]
push dword [esp + 0x2c]
push ebp
call dword [ebp + 8]
pop edi
pop esi
pop ebp
pop ebx
ret 0x18

Function at 0x4cced6
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0x1541b24]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [esi + 0xa4]
cmp eax, dword [esi + 0xac]
je 0x4ccefe
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
push dword [esp + 0x14]
mov eax, dword [esi + 0x90]
push dword [esp + 0x14]
add eax, dword [esp + 0x14]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [esp + 0x14]
push eax
push esi
call dword [esi + 4]
pop esi
ret 0x10

Function at 0x4ccf24
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1541b24]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
mov ecx, dword [edx + 0x74]
cmp ecx, 2
je 0x4ccf49
cmp ecx, 3
je 0x4ccf49
cmp ecx, 8
je 0x4ccf49
cmp ecx, 0xc
jne 0x4ccf57
mov eax, dword [esp + 4]
test eax, eax
je 0x4ccf57
mov dword [edx + 0xb8], eax
ret 4

Function at 0x4ccf5a
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1541b24]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 0x90]
add ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [eax + 0x8c]
add ecx, dword [esp + 0xc]
push ecx
push dword [esp + 0xc]
push eax
call dword [eax + 0x24]
ret 0xc
Function at 0x4ccfb5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push dword [0x1541b24]
mov edi, dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x18]
mov ebp, eax
mov edx, ebx
add ecx, dword [ebp + 0x90]
mov esi, dword [ebp + 0x8c]
add esi, dword [esp + 0x14]
test edi, edi
lea eax, [esi + edi]
cmovns eax, esi
mov esi, edi
neg esi
mov dword [esp + 0x18], eax
test edi, edi
lea eax, [ecx + ebx]
cmovns esi, edi
mov edi, dword [esp + 0x24]
test ebx, ebx
mov dword [esp + 0x1c], esi
cmovns eax, ecx
neg edx
test ebx, ebx
mov dword [esp + 0x14], eax
lea eax, [edi + edi]
cmovns edx, ebx
mov dword [esp + 0x20], edx
cmp eax, esi
jle 0x4cd02d
mov eax, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
mov edi, eax
sar edi, 1
mov esi, dword [esp + 0x28]
lea ecx, [esi + esi]
cmp ecx, edx
jle 0x4cd041
mov eax, edx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov eax, dword [esp + 0x2c]
cmp eax, dword [ebp + 0xac]
je 0x4cd058
push eax
push ebp
mov dword [ebp + 0xac], eax
call dword [ebp + 0x40]
push esi
push edi
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x24]
push dword [esp + 0x2c]
push ebp
call dword [ebp + 8]
pop edi
pop esi
pop ebp
pop ebx
ret 0x1c

Function at 0x4ce190
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x10c
push 8
push dword [0x14c63d0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x1541b24]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x1541b28], esi
mov eax, esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 1
mov dword [esi + 0x78], 7
mov dword [esi], 0x4cd222
mov dword [esi + 4], 0x4cd242
mov dword [esi + 8], 0x4cdf7e
mov dword [esi + 0xc], 0x4cd2da
mov dword [esi + 0x10], 0x4cd806
mov dword [esi + 0x14], 0x4cd798
mov dword [esi + 0x18], 0x4cd7d6
mov dword [esi + 0x1c], 0x4cd7ee
mov dword [esi + 0x20], fcn.004cd862
mov dword [esi + 0x24], 0x4cd64f
mov dword [esi + 0x28], fcn.004cd4a6
mov dword [esi + 0x2c], 0x4cd3bd
mov dword [esi + 0x30], 0x4cd720
mov dword [esi + 0x34], 0x4cd66b
mov dword [esi + 0x38], 0x4cd8db
mov dword [esi + 0x3c], 0x4cd9ec
mov dword [esi + 0x40], 0x4cda8c
mov dword [esi + 0x44], 0x4cdb23
mov dword [esi + 0x48], 0x4cdc1d
mov dword [esi + 0x4c], 0x4cde00
mov dword [esi + 0x50], 0x4cdc6e
mov dword [esi + 0x54], 0x4cdec2
mov dword [esi + 0x58], 0x4cdfbd
mov dword [esi + 0x5c], 0x4ce078
mov dword [esi + 0x60], 0x4ce0f0
mov dword [esi + 0x64], 0x4ce13a
pop esi
ret
Function at 0x4cfa2f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebp
xor ebp, ebp
cmp dword [0x154142c], ebp
je 0x4cfc15
push ebx
mov ebx, dword [esp + 0x60]
push edi
test ebx, ebx
je 0x4cfa4f
mov edi, ebx
jmp 0x4cfa61
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x4cfc13
lea eax, [esp + 0x18]
push eax
push 0x18
push dword [esp + 0x68]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x4cfc08
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push esi
mov esi, dword [esp + 0x24]
push 0x2c
push 0
push eax
mov dword [esp + 0x20], ebp
call fcn.0046cb30
add esp, 0xc
mov dword [esp + 0x34], 0x28
xor eax, eax
mov dword [esp + 0x38], ebp
inc eax
mov dword [esp + 0x3c], esi
mov word [esp + 0x40], ax
xor ecx, ecx
push 0x20
pop eax
push ecx
push ecx
mov word [esp + 0x4a], ax
lea eax, [esp + 0x18]
push eax
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x54], ecx
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x4cfc07
push 0
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x18]
push esi
push 0
push dword [esp + 0x78]
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
imul esi, dword [esp + 0x14]
test esi, esi
jle 0x4cfc07
cmp dword [esp + 0x6c], 0
je 0x4cfbb4
mov ebp, dword [esp + 0x10]
push 0xa
pop ebx
movzx ecx, byte [ebp + 1]
xor edx, edx
movzx eax, byte [ebp + 2]
lea eax, [eax + ecx*2]
movzx ecx, byte [ebp]
imul eax, eax, 3
add eax, ecx
div ebx
mov cl, al
cmp cl, 0x40
jae 0x4cfb48
movzx eax, cl
sub eax, 0x40
imul eax, eax, 7
cdq
idiv ebx
lea ecx, [eax + 0x40]
jmp 0x4cfb5e
cmp cl, 0xc0
jbe 0x4cfb5e
movzx eax, cl
sub eax, 0xc0
imul eax, eax, 7
cdq
idiv ebx
lea ecx, [eax - 0x40]
movzx eax, byte [ebp + 3]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movzx eax, cl
movd xmm0, eax
divss xmm1, dword [0x5cbc60]
cvtdq2ps xmm0, xmm0
mulss xmm1, xmm0
cvttss2si ecx, xmm1
mov byte [ebp], cl
mov eax, dword [esp + 0x10]
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
mov byte [ecx + 2], al
mov ebp, dword [esp + 0x10]
add ebp, 4
mov dword [esp + 0x10], ebp
sub esi, 1
jne 0x4cfb18
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
jmp 0x4cfc07
mov edx, dword [esp + 0x10]
mov al, byte [edx + 3]
cmp al, 0xff
jae 0x4cfbfb
movzx ecx, al
movzx eax, byte [edx]
imul ecx, eax
shr ecx, 8
mov byte [edx], cl
mov edx, dword [esp + 0x10]
movzx eax, byte [edx + 1]
movzx ecx, byte [edx + 3]
imul ecx, eax
shr ecx, 8
mov byte [edx + 1], cl
mov edx, dword [esp + 0x10]
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
imul ecx, eax
shr ecx, 8
mov byte [edx + 2], cl
mov edx, dword [esp + 0x10]
add edx, 4
mov dword [esp + 0x10], edx
sub esi, 1
jne 0x4cfbb8
pop esi
test ebx, ebx
jne 0x4cfc13
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop ebx
mov eax, ebp
pop ebp
add esp, 0x50
ret 0xc
Function at 0x4d504a
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x1541664]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4d50ab
push esi
push dword [0x1541660]
push 8
push dword [0x14c63d0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x1541664]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x154165c]
jmp 0x4d509b
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4d5099
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x4d5089
push edi
push 0x4d4fe8
call fcn.00561801
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x4d50b5
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ecx, edi
and ecx, 3
je 0x4d50cb
push 4
pop eax
sub eax, ecx
add edi, eax
mov esi, dword [0x1541660]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
jne 0x4d5104
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push edi
push 8
push dword [0x14c63d0]
mov dword [0x1541664], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x1541664]
call ebx
mov esi, dword [0x1541660]
lea eax, [edi + esi]
push eax
push dword [0x1541664]
mov dword [0x1541660], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x14c63d0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x1541664]
call ebx
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test edi, edi
jne 0x4d5143
test ebx, ebx
je 0x4d5164
push 0x14
push 0x154165c
call fcn.004d59bf
pop ecx
pop ecx
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
test edi, edi
je 0x4d5164
lea ecx, [esi + ebp]
push ecx
call edi
pop ecx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x4d5ac0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x14c1d88]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov edi, eax
mov ebp, dword [esp + 0x14]
mov esi, dword [edi + 8]
mov ecx, dword [ebp]
sub esi, ebx
lea eax, [esi + 0xa]
push eax
test ecx, ecx
jne 0x4d5af9
push ecx
push dword [0x1541c44]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x4d5b08
push ecx
push 0
push dword [0x1541c44]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
shr esi, 1
mov dword [ebp], ecx
mov eax, dword [edi]
push esi
add eax, ebx
push eax
push ecx
call fcn.004d5ef0
mov dword [edi + 8], ebx
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x4d5b30
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x14c1d88]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add dword [eax + 8], 2
ret

Function at 0x4d5bf0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x14c1d88]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
add ecx, dword [eax]
mov eax, ecx
ret
Function at 0x4d5cf0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x14c1d88]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov esi, eax
cmp ebx, 0xffffffff
jne 0x4d5d0e
mov ebx, dword [esi + 8]
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
lea ebp, [eax + eax]
add ecx, ebp
lea eax, [edx - 4]
cmp ecx, eax
jl 0x4d5d32
lea eax, [ecx + 0x4000]
mov dword [esi + 4], eax
add eax, 0xa
jmp 0x4d5d4d
cmp edx, 0x100000
jle 0x4d5d60
cmp ecx, 0x100000
jge 0x4d5d47
mov ecx, 0x100000
mov dword [esi + 4], ecx
lea eax, [ecx + 0xa]
push eax
push dword [esi]
push 0
push dword [0x1541c44]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [esi], eax
lea eax, [ebx + ebp]
mov dword [esi + 8], eax
mov eax, dword [esi]
pop edi
pop esi
pop ebp
add eax, ebx
pop ebx
ret 8

Function at 0x4d5d80
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x14c1d88]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 4]
neg ecx
add ecx, ecx
add dword [eax + 8], ecx
ret 4

Function at 0x4d5ea0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x14c1d88]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov eax, dword [esp + 4]
mov edx, dword [ecx]
cmp eax, edx
jb 0x4d5ec7
mov ecx, dword [ecx + 8]
add ecx, edx
cmp eax, ecx
ja 0x4d5ec7
sub eax, edx
inc eax
ret 4
xor eax, eax
ret 4

Function at 0x4d5ed0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x14c1d88]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
mov eax, dword [esp + 4]
dec eax
add eax, ecx
ret 4

Function at 0x4d5f30
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x14c1d88]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
add eax, dword [esp + 4]
ret 4

Function at 0x4d60c0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x14c1d88]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 4]
mov dword [eax + 8], ecx
mov eax, dword [eax]
add eax, ecx
ret 4
Function at 0x505480
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [eax + 0x38]
mov bl, byte [eax + 0x34]
test esi, esi
jle 0x5054bd
mov edx, dword [eax + 0x260]
push edi
movzx edi, bl
nop word [eax + eax]
mov ecx, edx
shl edx, 8
shr ecx, 0x18
xor ecx, edi
xor edx, dword [ecx*4 + 0x14c2258]
mov dword [eax + 0x260], edx
sub esi, 1
jne 0x5054a0
pop edi
mov ecx, dword [eax + 0x34]
mov byte [ecx + eax + 0x58], 1
mov edx, dword [eax + 0x38]
mov ecx, edx
sub ecx, 1
je 0x50556c
sub ecx, 1
je 0x505550
sub ecx, 1
je 0x505528
mov byte [edx + eax + 0x54], 1
mov edx, dword [eax + 0x24]
mov ecx, dword [eax + 0x44]
mov byte [edx + ecx], bl
mov edx, dword [eax + 0x44]
inc edx
mov dword [eax + 0x44], edx
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov esi, dword [eax + 0x44]
mov dl, byte [eax + 0x38]
mov ecx, dword [eax + 0x24]
sub dl, 4
mov byte [esi + ecx], dl
inc dword [eax + 0x44]
pop esi
pop ebx
ret
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
inc edx
mov dword [eax + 0x44], edx
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
ret
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
inc edx
mov dword [eax + 0x44], edx
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
ret
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
ret
Function at 0x561801
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x15416d4], 0
push ebx
push esi
mov esi, 0x15416dc
jne 0x56182d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x15416f4], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x15416d4], 1
push dword [0x15416f4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x5618ca
push 0x14
push 8
push dword [0x14c63d0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x5618f4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x15416d8]
test eax, eax
je 0x56186f
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x15416d8], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x5618f9
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x15416f4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x14c63d0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x5618f4
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x562050
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x56207d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x56207d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x579fb9
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x14c13ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5dcf38
push esi
call fcn.00463399
pop ecx
pop ecx
test eax, eax
jne 0x579fe7
xor al, al
jmp 0x57a064
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00579c4c
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x57a021
push dword [ebp - 0x210]
call fcn.0056272e
xor al, al
jmp 0x57a062
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x57a027
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x57a047
push edx
call fcn.00579ef0
pop ecx
test al, al
je 0x57a012
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x57a055
mov bl, 1
push dword [ebp - 0x210]
call fcn.0056272e
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045730f
leave
ret
Function at 0x57be11
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00561f10
mov eax, dword [0x14c13ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004696e7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x57be53
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x57bfaf
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.005621a0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x14c77b0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0046c3b8
mov ecx, dword [esi*4 + 0x14c77b0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x57bfa8
cmp eax, dword [ecx + edi + 0x24]
jne 0x57bfa8
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x57bfa8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046c3b8
add esp, 0x14
test edx, edx
jl 0x57bfa8
jg 0x57bf1e
test eax, eax
jb 0x57bfa8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x57bfa8
jl 0x57bf38
cmp dword [ebp - 0x1008], eax
ja 0x57bfa8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x57bf56
test ebx, ebx
je 0x57bf8f
cmp ecx, edi
jae 0x57bf8f
mov al, byte [ecx]
cmp al, 0xd
jne 0x57bf70
lea eax, [edi - 1]
cmp ecx, eax
jae 0x57bf7c
cmp byte [ecx + 1], 0xa
jne 0x57bf7c
inc ecx
jmp 0x57bf7c
movzx eax, al
movsx eax, byte [eax + 0x14c1b00]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x57bf56
cmp edx, ebx
jne 0x57bf56
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x57bfad
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0045730f
leave
ret
Function at 0x595e80
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x14c13ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x595ec3
call fcn.0045dcbf
mov dword [eax], 0xf
call fcn.0045dcd2
mov dword [eax], 0xd
call fcn.0045c68d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045730f
leave
ret
test eax, eax
jne 0x595eca
inc eax
jmp 0x595eb7
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x595eb5
xor eax, eax
cmp ecx, 1
setne al
jmp 0x595eb7

Function at 0x59959f
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x188
push 8
push dword [0x14c63d0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x1541b24]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x1541b28], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.0059c559
mov dword [esi + 0x58], 0x59a582
mov eax, esi
mov dword [esi + 0x5c], 0x59a5ce
mov dword [esi + 0x10], fcn.0059a0ba
mov dword [esi + 0x30], 0x599e95
mov dword [esi + 0x64], 0x59a663
mov dword [esi + 0x60], 0x59a617
mov dword [esi + 0x34], 0x599960
mov dword [esi + 0x24], 0x599937
mov dword [esi + 0x28], 0x59990c
mov dword [esi + 0x2c], 0x599860
mov dword [esi + 0x44], 0x59a352
mov dword [esi + 0x68], 0x599660
mov dword [esi + 0x6c], 0x59a865
pop esi
ret 4