joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4312fe
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59a6d6
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x60f490]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x60f490]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x2d], 0
jne 0x431548
cmp byte [esi + 0x2c], 0
jne 0x431548
lea eax, [esi + 0x34]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov dword [esp + 0x4c], 0x10
mov word [esp + 0x52], ax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x54]
push eax
push 0
push dword [esi + 0x7c]
push dword [esi + 0x80]
push dword [esi + 0x28]
call dword [sym.imp.WS2_32.dll_recvfrom]
push dword [esp + 0x54]
mov edi, eax
call dword [sym.imp.WS2_32.dll_ntohl]
push dword [esp + 0x52]
mov ebx, eax
mov dword [esp + 0x14], ebx
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
mov dword [esp + 0x18], eax
test edi, edi
js 0x4313cb
push eax
push ebx
push edi
push dword [esi + 0x80]
push esi
call dword [esi + 4]
add esp, 0x14
jmp 0x43153e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2746
jne 0x43147f
lea ecx, [esp + 0x60]
call fcn.00404eb5
and dword [esp + 0xb8], 0
lea ecx, [esp + 0x34]
xor ebx, ebx
mov byte [esp + 0x68], 0
mov edx, edi
inc ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], edx
call fcn.00404a8f
push eax
mov edx, str.recvfrom_error:
mov byte [esp + 0xbc], bl
lea ecx, [esp + 0x20]
call fcn.00404bfe
pop ecx
push eax
lea ecx, [esp + 0x70]
call fcn.00407134
push 0
push ebx
lea ecx, [esp + 0x24]
call fcn.00404102
push 0
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0xc0], 0
call fcn.00404102
cmp byte [esi + 0x2d], 0
jne 0x431476
cmp dword [esi + 8], 0
je 0x431476
push dword [esp + 0x18]
lea eax, [esp + 0x64]
push dword [esp + 0x14]
sub esp, 0x24
mov ecx, esp
push eax
call fcn.004053df
push esi
call dword [esi + 8]
add esp, 0x30
lea ecx, [esp + 0x6c]
jmp 0x431536
cmp edi, 0x2733
je 0x43153e
lea ecx, [esp + 0x84]
call fcn.00404eb5
mov dword [esp + 0xb8], 2
lea ecx, [esp + 0x1c]
xor ebx, ebx
mov dword [esp + 0x88], edi
inc ebx
mov edx, edi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x8c], bl
call fcn.00404a8f
push eax
mov edx, str.recvfrom_error:
mov byte [esp + 0xbc], 3
lea ecx, [esp + 0x38]
call fcn.00404bfe
pop ecx
push eax
lea ecx, [esp + 0x94]
call fcn.00407134
push 0
push ebx
lea ecx, [esp + 0x3c]
call fcn.00404102
push 0
push ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0xc0], 2
call fcn.00404102
cmp byte [esi + 0x2d], 0
jne 0x43152f
cmp dword [esi + 0xc], 0
je 0x43152f
sub esp, 0x24
lea eax, [esp + 0xa8]
mov ecx, esp
push eax
call fcn.004053df
push esi
call dword [esi + 0xc]
add esp, 0x28
lea ecx, [esp + 0x90]
push 0
push ebx
call fcn.00404102
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00559612
mov esp, ebp
pop ebp
ret
Function at 0x43156c
Capabilities:
Send data
Send data on socket

Disassembly:
push 0x74
mov eax, 0x59a714
call fcn.0055d546
mov esi, ecx
cmp byte [esi + 0x2d], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x4c], ebx
jne 0x4316b5
lea eax, [esi + 0x4c]
push eax
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 2
pop eax
push dword [ebp + 0x14]
mov word [ebp - 0x24], ax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 0x10]
mov word [ebp - 0x22], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp + 0xc]
push ebx
push dword [esi + 0x28]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x4316ac
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x431628
xor ebx, ebx
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x4c]
push dword [esi + 0x28]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x4316ac
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x431628
inc ebx
cmp ebx, 0xa
jl 0x4315e6
jmp 0x4316ac
lea ecx, [ebp - 0x48]
call fcn.00404eb5
xor ebx, ebx
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], ebx
mov edx, edi
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], edi
mov byte [ebp - 0x40], 1
call fcn.00404a8f
push eax
mov edx, str.sendto_error:
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.00404bfe
pop ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00407134
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.00404102
push ebx
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], bl
call fcn.00404102
cmp byte [esi + 0x2d], bl
jne 0x4316a1
cmp dword [esi + 0xc], ebx
je 0x4316a1
sub esp, 0x24
lea eax, [ebp - 0x48]
mov ecx, esp
push eax
call fcn.004053df
push esi
call dword [esi + 0xc]
add esp, 0x28
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.00404102
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0055d4f5
ret 0x10

Function at 0x440c50
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 0x440c95
call fcn.0044b52e
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x440c95
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x440cb1
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0044b6c7
mov ebx, eax
test edi, edi
je 0x440caf
test esi, esi
je 0x440caf
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 0x446f9e
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.0044b52e
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x446fd5
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.00446ff6
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 0x4c1e72
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.0044a9a3
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4c1eae
call fcn.004c2091
mov dword [esi + 0xc], 1
jmp 0x4c1eb3
call fcn.004c2091
cmp dword [esi], 0
je 0x4c1efc
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4c1ed6
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00440d25
jmp 0x4c1ee7
push 0xff
mov ecx, esi
call fcn.004095d1
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0043ebf8
jmp 0x4c1f20
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4c1f20
push dword [esi]
push dword [ebp - 4]
call fcn.0044e089
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4c1fe6
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.004c2091
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4c202e
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00440d25
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0043ebf8
jmp 0x4c2039
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0044e089
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x5246be
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0055535f
call fcn.0044b582
cmp dword [eax + 0x14], 0
jne 0x5246d9
mov ecx, esi
pop esi
jmp fcn.00523ac4
pop esi
ret

Function at 0x530ed2
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00404a8e
call fcn.0044b582
cmp dword [eax + 0x14], 0
jne 0x530eed
mov ecx, esi
pop esi
jmp fcn.005307bb
pop esi
ret
Function at 0x5717c5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x60f490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00563dae
mov dword [ebp - 0x14], eax
cmp dword [0x61cc28], esi
jne 0x5718b8
push 0x800
push esi
push 0x5d9f00
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x571845
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x571998
push esi
push esi
push 0x5d9f00
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x571998
push 0x5d9f18
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x571998
push eax
call ebx
push 0x5d9f24
push edi
mov dword [0x61cc28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5d9f34
push edi
mov dword [0x61cc2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x61cc30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x61cc38], eax
test eax, eax
je 0x5718b5
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x61cc34], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5718dd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5718d0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x5718f2
push 4
pop eax
jmp 0x57199a
cmp dword [ebp - 0x14], esi
je 0x5718f2
push dword [0x61cc28]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5718d7
mov eax, dword [0x61cc34]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x571950
cmp dword [0x61cc38], edi
je 0x571950
push eax
call ebx
push dword [0x61cc38]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x571950
test eax, eax
je 0x571950
call ecx
test eax, eax
je 0x571945
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x571945
test byte [ebp - 8], 1
jne 0x571950
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x571980
mov eax, dword [0x61cc2c]
cmp eax, edi
je 0x57197d
push eax
call ebx
test eax, eax
je 0x57197d
call eax
mov esi, eax
test esi, esi
je 0x57197d
mov eax, dword [0x61cc30]
cmp eax, edi
je 0x57197d
push eax
call ebx
test eax, eax
je 0x57197d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x61cc28]
call ebx
test eax, eax
je 0x571998
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x57199a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00559612
mov esp, ebp
pop ebp
ret
Function at 0x581688
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x406390
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x270
jne 0x4063af
mov ecx, dword [ebp - 8]
call fcn.00407e40
nop
jmp 0x4063c3
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4e0
jb 0x4063c3
mov ecx, dword [ebp - 8]
call fcn.00407ca0
nop
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx], ecx
mov eax, dword [ebp - 4]
shr eax, 0xb
mov ecx, dword [ebp - 8]
and eax, dword [ecx + 0x1384]
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
shl edx, 7
and edx, 0x9d2c5680
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
shl eax, 0xf
and eax, 0xefc60000
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 0x12
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x407ca0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], 0x26f
mov dword [ebp - 0x2c], 0xe3
mov dword [ebp - 8], 0
jmp 0x407cc9
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xe3
jae 0x407d35
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
and edx, 1
je 0x407d0d
mov dword [ebp - 0x14], 0x9908b0df
jmp 0x407d14
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
shr eax, 1
xor eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx*4 + 0xff8]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
jmp 0x407cc0
mov dword [ebp - 0xc], 0xe3
jmp 0x407d47
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x26f
jae 0x407db3
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
and edx, 1
je 0x407d8b
mov dword [ebp - 0x1c], 0x9908b0df
jmp 0x407d92
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
shr eax, 1
xor eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
jmp 0x407d3e
mov dword [ebp - 0x30], 0x26f
mov eax, 4
imul ecx, eax, 0x4df
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx + 4]
and eax, 0x80000000
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + edx + 4]
and edx, 0x7fffffff
or eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
and eax, 1
je 0x407dfc
mov dword [ebp - 0x24], 0x9908b0df
jmp 0x407e03
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x20]
shr ecx, 1
xor ecx, dword [ebp - 0x24]
mov edx, 4
imul eax, edx, 0x18c
mov edx, dword [ebp - 4]
xor ecx, dword [edx + eax + 4]
mov eax, 4
imul edx, eax, 0x26f
mov eax, dword [ebp - 4]
mov dword [eax + edx + 4], ecx
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov esp, ebp
pop ebp
ret
Function at 0x407e40
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0x270
jmp 0x407e5b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x4e0
jae 0x407ec7
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 - 0x9bc]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 - 0x9b8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
and edx, 1
je 0x407e9f
mov dword [ebp - 0x10], 0x9908b0df
jmp 0x407ea6
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
shr eax, 1
xor eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x407e52
mov esp, ebp
pop ebp
ret

Function at 0x40bc5b
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 0x40bc7c
jl 0x40bc73
test edi, edi
jne 0x40bc7c
xor eax, eax
xor edx, edx
jmp 0x40bd3d
cmp dword [ebx + 0x38], 0
je 0x40bc91
push eax
push edi
push dword [ebp + 8]
call fcn.0040bd43
jmp 0x40bd3d
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40bcd8
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40bcd8
cmp eax, edi
jb 0x40bcb2
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040d630
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 0x40bcde
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40bd32
mov ecx, ebx
call fcn.0040b4f1
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40bd1d
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00414fd1
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 0x40bd32
jmp 0x40bcf0
test edx, edx
je 0x40bd32
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00414fd1
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 0x40d180
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40d1bf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d1bf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d1bf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40d1bf
cmp dword [ecx + 0x74], 0xe
jbe 0x40d1bf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41c095
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42e81c
push 0x42e814
push str.FlsAlloc
push 0x1f
call fcn.0041bf00
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41c0c9
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a158]
call esi
jmp 0x41c0cf
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41c113
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42e82c
push 0x42e824
push str.FlsGetValue
push 0x21
call fcn.0041bf00
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41c14a
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41c152
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42e834
push 0x42e82c
push str.FlsSetValue
push 0x22
call fcn.0041bf00
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41c18c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42a158]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41e639
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040d5e0
mov eax, dword [0x436040]
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.0041b6d7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41e67b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41e7d7
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00428300
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 + 0x438df8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041f636
mov ecx, dword [esi*4 + 0x438df8]
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 0x41e7d0
cmp eax, dword [ecx + edi + 0x24]
jne 0x41e7d0
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 0x41e7d0
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041f636
add esp, 0x14
test edx, edx
jl 0x41e7d0
jg 0x41e746
test eax, eax
jb 0x41e7d0
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41e7d0
jl 0x41e760
cmp dword [ebp - 0x1008], eax
ja 0x41e7d0
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41e77e
test ebx, ebx
je 0x41e7b7
cmp ecx, edi
jae 0x41e7b7
mov al, byte [ecx]
cmp al, 0xd
jne 0x41e798
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41e7a4
cmp byte [ecx + 1], 0xa
jne 0x41e7a4
inc ecx
jmp 0x41e7a4
movzx eax, al
movsx eax, byte [eax + 0x436308]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41e77e
cmp edx, ebx
jne 0x41e77e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41e7d5
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040c8bf
leave
ret