joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46abd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd44
mov eax, dword [0x66c488]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 4], 0
jne 0x46ac04
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b07f1
mov esp, ebp
pop ebp
ret 8
test esi, esi
jne 0x46ac0b
lea esi, [edi + 8]
push esi
call fcn.0046a4e0
add esp, 4
test al, al
je 0x46abf0
lea eax, [ebp - 0xd40]
mov ecx, edi
push eax
call fcn.0046a570
cmp byte [ebp - 0xb10], 0
je 0x46ac6b
push 0
lea eax, [ebp - 0xd40]
push eax
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.005cae20
lea eax, [ebp - 0x108]
push eax
call fcn.0046a4e0
add esp, 0x18
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b07f1
mov esp, ebp
pop ebp
ret 8
cmp byte [ebp + 0xc], 0
je 0x46acb0
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
lea eax, [ebp - 0xd40]
push 0
push eax
call fcn.005c5222
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
lea eax, [ebp - 0xd40]
push 0
push eax
call fcn.005cae20
add esp, 0x28
push 0
lea eax, [ebp - 0xd40]
push eax
push esi
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005cae20
lea eax, [ebp - 0x20c]
push eax
call fcn.0046a490
add esp, 0x18
test al, al
je 0x46abf0
push ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46ad12
push dword [edi + 4]
call fcn.00401ff0
test eax, eax
je 0x46ad30
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b07f1
mov esp, ebp
pop ebp
ret 8
push 0x800
lea eax, [ebp - 0xb0c]
push eax
push dword [edi + 4]
call fcn.00401960
mov esi, eax
test esi, esi
jle 0x46ad7b
push 0
lea eax, [ebp - 0xd44]
mov dword [ebp - 0xd44], 0
push eax
push esi
lea eax, [ebp - 0xb0c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46ad78
cmp dword [ebp - 0xd44], esi
je 0x46ad30
or esi, 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi + 4]
call fcn.00401b60
test esi, esi
jne 0x46ada5
push dword [ebp - 0xb28]
lea eax, [ebp - 0x20c]
push eax
call fcn.0046aa60
add esp, 8
test esi, esi
mov ecx, dword [ebp - 4]
sete al
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.005b07f1
mov esp, ebp
pop ebp
ret 8
Function at 0x46b4a0
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
je 0x46b4c8
push 0x20
lea ecx, [esi + 0x27c]
push str.before_connected_internet_handle
call fcn.0040aa90
mov eax, 1
pop esi
pop ebp
ret 0x10
push ebx
push edi
push 0
push 0
push 0
push 0
push str.CHttpFileDownloader
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, dword [esi + 0x18]
mov ebx, eax
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test ecx, ecx
je 0x46b4f6
push ecx
call edi
mov dword [esi + 0x18], 0
mov edx, ebx
mov dword [esi + 0x18], ebx
test edx, edx
jne 0x46b51a
push 0x14
lea ecx, [esi + 0x27c]
push str.internet_open_failed
call fcn.0040aa90
pop edi
pop ebx
xor eax, eax
pop esi
pop ebp
ret 0x10
mov ebx, dword [ebp + 0xc]
mov eax, 0x50
push 0
test ebx, ebx
mov ecx, str.wpvpxh123_
push 0x100
cmove ebx, eax
mov eax, dword [ebp + 0x14]
test eax, eax
push 3
cmovne ecx, eax
mov eax, dword [ebp + 0x10]
push ecx
test eax, eax
mov ecx, str.administratr
cmovne ecx, eax
push ecx
push ebx
push dword [ebp + 8]
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ecx, dword [esi + 0x1c]
mov dword [ebp + 0xc], eax
test ecx, ecx
je 0x46b56e
push ecx
call edi
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x1c], eax
test eax, eax
mov eax, dword [ebp + 8]
jne 0x46b5a8
push ebx
push eax
lea eax, [esi + 0x27c]
push str.internet_connection_failed___s____d_
push eax
call fcn.0040a290
mov eax, dword [esi + 0x18]
add esp, 0x10
test eax, eax
je 0x46b59f
push eax
call edi
mov dword [esi + 0x18], 0
pop edi
pop ebx
xor eax, eax
pop esi
pop ebp
ret 0x10
push eax
lea ecx, [esi + 0x20]
call fcn.0040ab80
pop edi
mov dword [esi + 0x24], ebx
mov eax, 1
pop ebx
mov dword [esi + 0x268], 0
mov dword [esi + 0x26c], 0
pop esi
pop ebp
ret 0x10
Function at 0x4728a5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x4728ea
call fcn.0046e811
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4728ea
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x472906
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0047e5a7
mov ebx, eax
test edi, edi
je 0x472904
test esi, esi
je 0x472904
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4736b7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x473775
cmp dword [esi + 0x20], 0
je 0x473775
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x473775
cmp dword [ebp + 8], 0
je 0x473775
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.0046e811
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x473746
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x473775
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.0048f069
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x473766
test edi, edi
je 0x473766
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x473771
mov ecx, esi
call fcn.0047345a
mov eax, ebx
jmp 0x473777
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4785ca
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5e1a68
call fcn.005b16f1
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x4785f0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x47864f
call fcn.0046d771
push eax
lea ecx, [ebp - 0x10]
call fcn.0040a430
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call fcn.005b16b4
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.005cae4b
push eax
call fcn.0040f390
add esp, 0x14
test esi, esi
je 0x478642
push esi
call fcn.005cae70
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040a730
mov eax, ebx
call fcn.005b16ba
ret 8
Function at 0x47eaa9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0046e811
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x47eae0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0047eb01
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x48930a
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x48935d
push esi
push dword [ebp + 8]
call fcn.004894fa
mov edi, eax
test edi, edi
jne 0x48932d
mov eax, dword [ebp + 0x10]
jmp 0x48936f
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x489328
mov eax, dword [ebp - 8]
jmp 0x48936f
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4915b1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x4915cb
mov edi, dword [esi + 0xc]
jmp 0x49160b
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4915e4
call fcn.0046f281
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4915f9
call fcn.0046f281
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x49160b
call fcn.0046f281
call fcn.0046e811
cmp dword [eax + 0x3c], 0
je 0x491620
push edi
mov ecx, ebx
call fcn.00490cea
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004917fd
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x491649
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x491655
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x49a1a1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.004781c2
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x49a1dd
call fcn.0049a3c3
mov dword [esi + 0xc], 1
jmp 0x49a1e2
call fcn.0049a3c3
cmp dword [esi], 0
je 0x49a22b
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x49a205
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0046e033
jmp 0x49a216
push 0xff
mov ecx, esi
call fcn.0040a900
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0046e2b4
jmp 0x49a24f
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x49a24f
push dword [esi]
push dword [ebp - 4]
call fcn.0048d244
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x49a318
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.0049a3c3
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x49a360
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0046e033
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0046e2b4
jmp 0x49a36b
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0048d244
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x49c061
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov eax, ecx
push edi
mov edi, esi
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x49c0ab
call fcn.0046e811
push 0xf0
push dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x49c0a8
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x49c0f9
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test esi, esi
je 0x49c0d7
mov ecx, dword [eax]
push dword [ebp + 0x10]
push esi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call fcn.005b16b4
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
test edi, edi
je 0x49c0d7
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x49c0f7
mov eax, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [eax + 0xa0]
mov ecx, esi
call fcn.005b16b4
mov ecx, edi
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4bffc6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x4bffdf
call fcn.0046e811
mov esi, dword [eax + 0xc]
push 0x6130a0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x4c0035
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4c0034
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4c0015
xor esi, esi
jmp 0x4c002b
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.004c003d
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x553f84
Capabilities:
Get file system object information

Disassembly:
push 0x274
mov eax, 0x5f1615
call fcn.005b1725
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.0040a2f0
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x278], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x278]
push 0
push 0x5fd8e4
call fcn.004885c0
cmp eax, 0xffffffff
jne 0x55404f
push 0
push 0x5fead8
lea ecx, [ebp - 0x278]
call fcn.004885c0
cmp eax, 0xffffffff
jne 0x55404f
push 0
push 0x5fe140
lea ecx, [ebp - 0x278]
call fcn.004885c0
cmp eax, 0xffffffff
jne 0x55404f
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.0040a2f0
mov edi, eax
pop ecx
mov dword [ebp - 0x27c], edi
lea ecx, [edi + 0x10]
mov dword [ebp - 0x280], ecx
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea eax, [ebp - 0x114]
push eax
push 0x104
push edx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x55402c
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call fcn.005b16b4
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x27c]
mov edi, eax
call fcn.0040a730
jmp 0x554087
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x278]
call fcn.0040ab40
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.0040a730
mov esi, dword [ebp - 0x278]
push 0x105
push 0x160
lea eax, [ebp - 0x274]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x554075
mov edi, dword [ebp - 0x274]
jmp 0x554087
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call fcn.005b16b4
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.0040a730
mov eax, edi
call fcn.005b16cf
ret

Function at 0x5d4e68
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005d4ce7

Function at 0x5d993e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005d95fe
Function at 0x40395e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40397f
jl 0x403976
test edi, edi
jne 0x40397f
xor eax, eax
xor edx, edx
jmp 0x403a40
cmp dword [ebx + 0x38], 0
je 0x403994
push eax
push edi
push dword [ebp + 8]
call fcn.00403a46
jmp 0x403a40
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4039db
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4039db
cmp eax, edi
jb 0x4039b5
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00405d00
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4039e1
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x403a35
mov ecx, ebx
call fcn.00403040
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x403a20
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00409ed8
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x403a35
jmp 0x4039f3
test edx, edx
je 0x403a35
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00409ed8
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x4054df
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40551e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40551e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40551e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40551e
cmp dword [ecx + 0x74], 0xe
jbe 0x40551e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40f59c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f308
push 0x41f300
push str.FlsAlloc
push 0x1f
call fcn.0040f407
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f5d0
push dword [ebp + 8]
mov ecx, esi
call dword [0x41c130]
call esi
jmp 0x40f5d6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40f61a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f318
push 0x41f310
push str.FlsGetValue
push 0x21
call fcn.0040f407
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f651
push dword [ebp + 8]
mov ecx, esi
call dword [0x41c130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40f659
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f320
push 0x41f318
push str.FlsSetValue
push 0x22
call fcn.0040f407
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f693
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41c130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x410f88
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00405650
mov eax, dword [0x426040]
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.0040fbcf
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x410fca
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x411126
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041b050
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 + 0x427970]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00411f85
mov ecx, dword [esi*4 + 0x427970]
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 0x41111f
cmp eax, dword [ecx + edi + 0x24]
jne 0x41111f
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 0x41111f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00411f85
add esp, 0x14
test edx, edx
jl 0x41111f
jg 0x411095
test eax, eax
jb 0x41111f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41111f
jl 0x4110af
cmp dword [ebp - 0x1008], eax
ja 0x41111f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4110cd
test ebx, ebx
je 0x411106
cmp ecx, edi
jae 0x411106
mov al, byte [ecx]
cmp al, 0xd
jne 0x4110e7
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4110f3
cmp byte [ecx + 1], 0xa
jne 0x4110f3
inc ecx
jmp 0x4110f3
movzx eax, al
movsx eax, byte [eax + 0x4262f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4110cd
cmp edx, ebx
jne 0x4110cd
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x411124
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004048c1
leave
ret
Function at 0x41141d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x427970]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41145d
cmp byte [ebx], 0xa
jne 0x41145d
or byte [edi + eax + 0x28], 4
jmp 0x411462
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x411561
mov dl, byte [eax]
cmp dl, 0x1a
je 0x411544
inc eax
cmp dl, 0xd
je 0x41148e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4114b4
cmp eax, ecx
jae 0x4114c2
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x411476
jmp 0x411561
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41153f
cmp dword [ebp - 0x10], 0
je 0x41153f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x427970]
test byte [eax + edi + 0x28], 0x48
je 0x411519
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x411504
mov byte [esi], dl
jmp 0x411515
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x427970]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x411561
cmp byte [ebp - 1], 0xa
jne 0x411528
cmp esi, ebx
jne 0x411528
mov byte [esi], 0xa
jmp 0x411560
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00411fa3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x411561
mov byte [esi], 0xd
jmp 0x411560
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x427970]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41155e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x411561
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret