joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407890
Capabilities:
Print debug messages

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0xffffffffffffffff
mov dword [0x4384b0], eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esi + 0x24], eax
xor edi, edi
push 0
push 0
push esi
push 0x4076c0
push 0
push 0
call fcn.00416269
add esp, 0x18
mov dword [esi + edi*4], eax
mov eax, dword [0x4384b0]
push 0xbb8
push eax
call ebx
cmp eax, 0x102
jne 0x4078fc
push str.ACCOUNTSERVER.EXE_t___TIMEOUT_t___ODBC
call ebp
inc edi
cmp edi, 8
jl 0x4078c8
mov ecx, dword [0x4384b0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40a6b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42bfab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
mov eax, dword [0x43735c]
mov edx, dword [ebp + 8]
push ebx
xor eax, ebp
push esi
push edi
mov dword [esp + 0x13c], eax
mov esi, ecx
xor ebx, ebx
xor eax, eax
mov byte [esp + 0x30], bl
mov ecx, 0x40
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x18], ebx
call fcn.00409d20
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40a730
sub eax, edx
push eax
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x1c]
call fcn.00401c50
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 0x858]
mov dword [esp + 0x154], ebx
call fcn.00401d40
cmp dword [esp + 0x2c], 0x10
jb 0x40a778
mov edx, dword [esp + 0x18]
push edx
call fcn.00425a3b
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 0x85c]
je 0x40a7d9
mov eax, dword [eax + 0x28]
mov ecx, dword [esp + 0xc]
lea edx, [eax + eax*2 + 0x219]
cmp dword [esi + edx*4], ecx
jg 0x40a7a3
lea edx, [eax + eax*2]
cmp ecx, dword [esi + edx*4 + 0x868]
jle 0x40a800
lea eax, [eax + eax*2]
mov eax, dword [esi + eax*4 + 0x86c]
cmp eax, 0xffffffff
je 0x40a7d9
lea edx, [eax + eax*2 + 0x219]
cmp dword [esi + edx*4], ecx
jg 0x40a7ca
lea edx, [eax + eax*2]
cmp ecx, dword [esi + edx*4 + 0x868]
jle 0x40a800
lea eax, [eax + eax*2]
mov eax, dword [esi + eax*4 + 0x86c]
cmp eax, 0xffffffff
jne 0x40a7b2
xor eax, eax
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415465
mov esp, ebp
pop ebp
ret 4
mov eax, 1
jmp 0x40a7db
Function at 0x40cae0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10
mov eax, dword [ecx + 0x10]
push esi
push edi
xor edx, edx
mov dword [esp + 0xc], edx
mov dword [esp + 8], edx
mov edi, dword [eax + 0x2018]
mov esi, dword [eax + 0x2010]
sub esi, edi
mov dword [esp + 0x10], esi
mov eax, dword [eax + 0x2018]
push edx
mov dword [esp + 0x18], eax
lea eax, [ecx + 0x14]
xor esi, esi
push eax
mov edi, eax
mov dword [edi], esi
mov dword [edi + 4], esi
lea edx, [esp + 0x10]
push edx
mov dword [edi + 8], esi
lea eax, [esp + 0x18]
push eax
mov dword [edi + 0xc], esi
push 1
lea edx, [esp + 0x24]
mov dword [edi + 0x10], esi
mov ecx, dword [ecx + 4]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
pop edi
pop esi
je 0x40cb53
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x40cb55
xor eax, eax
add esp, 0x10
ret

Function at 0x40d0d0
Capabilities:
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x42c218
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esi + 0x70]
push edi
lea ebp, [eax + 4]
push ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x28]
lea ebx, [esi + 0x60]
push eax
mov ecx, ebx
mov dword [esp + 0x24], 0
call fcn.0040c380
mov eax, dword [esi + 0x6c]
test eax, eax
jne 0x40d145
mov edi, dword [esi + 0x3c]
test edi, edi
jne 0x40d127
dec dword [esi + 0x5c]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
lea ecx, [esp + 0x10]
push ecx
lea edi, [esi + 0x8c]
push edi
mov ecx, ebx
call fcn.0040c400
lea eax, [esi + 0x28]
xor edx, edx
mov ecx, eax
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], edx
push edx
push eax
mov eax, dword [esp + 0x18]
push edx
mov dword [ecx + 0x10], edx
mov esi, dword [esi + 4]
lea edx, [esp + 0x34]
push edx
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x40d1b7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x3e5
je 0x40d1b7
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x40d5b0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x43735c]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00415465
add esp, 0x194
ret
Function at 0x40dde0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x42c2a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x30]
mov ecx, edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x42dcf0
call fcn.00406a60
xor ebx, ebx
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
lea eax, [esi + 0x40]
push eax
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x3c], 0x42d4f0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [esi + 0x68]
mov byte [esp + 0x18], 1
call fcn.0040c620
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x98], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x60], eax
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x2c], ebx
xor ecx, ecx
lea edx, [esi + 0xa]
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x64], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40e0a0
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42c2eb
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
push edi
mov esi, ecx
call fcn.0040dcb0
mov ecx, dword [esi + 4]
xor edi, edi
cmp ecx, edi
je 0x40e0df
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [esi + 4]
cmp ecx, edi
je 0x40e0df
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi + 4], edi
push 1
lea ecx, [esi + 0x68]
call fcn.0040c650
push 0x54
call fcn.00425a10
add esp, 4
mov dword [esp + 8], eax
cmp eax, edi
mov dword [esp + 0x38], edi
je 0x40e10d
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, eax
call fcn.0040efc0
mov edi, eax
mov eax, dword [esp + 0x44]
mov edx, dword [edi]
xor ecx, ecx
mov cx, word [esi + 8]
push eax
push 1
mov dword [esp + 0x40], 0xffffffff
push ecx
mov ecx, edi
call dword [edx + 4]
test eax, eax
je 0x40e162
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x20]
lea edx, [ecx + ecx]
push edx
mov ecx, esi
call fcn.0040dfc0
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x58]
push eax
push ecx
mov ecx, edi
call fcn.0040e300
mov ecx, edi
call fcn.0040e1b0
test eax, eax
jne 0x40e17f
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
mov ecx, dword [esp + 0x30]
mov dword [edi + 8], 1
mov dword [esi + 4], edi
mov dword [esi + 0x94], 1
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 8
Function at 0x40efc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x42c388
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0040f2a0
lea edi, [esi + 0x20]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x18], ebx
mov dword [esi], 0x42dcf8
call fcn.0040e630
mov dword [edi + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
lea eax, [esi + 0x30]
mov dword [esi + 0x1c], 0x42dcf4
push eax
mov dword [esi + 0x2c], 0x42d4f0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ecx
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x412ff0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x10014
call fcn.00416020
mov eax, dword [0x43735c]
mov ecx, dword [esp + 0x1001c]
xor eax, esp
mov dword [esp + 0x10010], eax
lea eax, [esp + 0x10020]
push eax
push ecx
lea edx, [esp + 0x18]
push 0xffff
push edx
call fcn.004166d5
add esp, 0x10
cmp eax, 0xffffffff
je 0x4130a5
push esi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x42dda4
push str...CQuery_LogFile.txt
call fcn.0040f570
add esp, 4
push eax
call fcn.004169d8
mov esi, eax
add esp, 8
test esi, esi
je 0x4130a4
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x10]
movzx ecx, word [esp + 0xe]
lea edx, [esp + 0x14]
push edx
movzx edx, word [esp + 0x10]
push eax
movzx eax, word [esp + 0x12]
push ecx
movzx ecx, word [esp + 0x12]
push edx
movzx edx, word [esp + 0x14]
push eax
push ecx
push edx
push str._d__02d__02d_t_02d:_02d:_02d_n_s_n
push esi
call fcn.0041691e
push esi
call fcn.004168cd
add esp, 0x28
pop esi
mov ecx, dword [esp + 0x10010]
xor ecx, esp
call fcn.00415465
add esp, 0x10014
ret

Function at 0x416269
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x416286
call fcn.004186ba
mov dword [eax], 0x16
xor eax, eax
jmp 0x4162f0
push esi
push 0x8c
push 1
call fcn.0041c083
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4162db
push esi
call fcn.00419a96
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x4162b9
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x4161d4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4162ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00416132
test ebx, ebx
pop ecx
je 0x4162ed
push ebx
call fcn.004186cc
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4164e6
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00416020
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x416581
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x464f80]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x416581
cmp eax, 1
je 0x4165a2
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x416581
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41654e
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41657d
xor eax, eax
inc eax
jmp 0x4165c1
cmp edi, eax
jae 0x416585
xor eax, eax
jmp 0x4165c1
cmp eax, esi
jae 0x41658c
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x464f80]
jmp 0x4165a5
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41749e
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42f148
call fcn.00417c98
mov edi, 0x94
mov eax, edi
call fcn.00416020
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x464f80], ecx
mov eax, dword [esi + 4]
mov dword [0x464f8c], eax
mov edx, dword [esi + 8]
mov dword [0x464f90], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x464f84], esi
cmp ecx, 2
je 0x4174fe
or esi, 0x8000
mov dword [0x464f84], esi
shl eax, 8
add eax, edx
mov dword [0x464f88], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x417539
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x417539
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x417551
cmp eax, 0x20b
je 0x41753e
mov dword [ebp - 0x1c], esi
jmp 0x417565
cmp dword [ecx + 0x84], 0xe
jbe 0x417539
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41755f
cmp dword [ecx + 0x74], 0xe
jbe 0x417539
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041b390
pop ecx
test eax, eax
jne 0x417579
push 0x1c
call fcn.0041747a
pop ecx
call fcn.00419c90
test eax, eax
jne 0x41758a
push 0x10
call fcn.0041747a
pop ecx
call fcn.0041f47a
mov dword [ebp - 4], esi
call fcn.0041e5e7
test eax, eax
jge 0x4175a3
push 0x1b
call fcn.00417455
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x466c60], eax
call fcn.0041f358
mov dword [0x464f6c], eax
call fcn.0041f2b6
test eax, eax
jge 0x4175c9
push 8
call fcn.00417455
pop ecx
call fcn.0041f083
test eax, eax
jge 0x4175da
push 9
call fcn.00417455
pop ecx
push 1
call fcn.00418522
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4175f0
push eax
call fcn.00417455
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041f026
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x417611
movzx eax, word [ebp - 0x40]
jmp 0x417614
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00406650
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x417632
push edi
call fcn.0041864f
call fcn.00418671
jmp 0x417664
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00417cd3
ret
Function at 0x41858c
Capabilities:
Terminate process

Disassembly:
push 8
push 0x42f1c0
call fcn.00417c98
push 8
call fcn.0041a08b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x464fc0], esi
jne 0x4185c0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x464fbc], esi
mov al, byte [ebp + 0x10]
mov byte [0x464fb8], al
cmp dword [ebp + 0xc], edi
jne 0x41860a
cmp dword [0x466a10], edi
je 0x4185fa
mov eax, dword [0x466a0c]
sub eax, 4
mov dword [0x466a0c], eax
cmp eax, dword [0x466a10]
jb 0x4185fa
mov eax, dword [eax]
cmp eax, edi
je 0x4185db
call eax
jmp 0x4185db
push 0x4350a0
mov eax, 0x435098
call fcn.0041850a
pop ecx
push 0x4350ac
mov eax, 0x4350a4
call fcn.0041850a
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41863b
cmp dword [ebp + 0x10], edi
jne 0x418649
mov dword [0x464fc0], esi
push dword [ebp + 8]
call fcn.004184c8
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x418648
push 8
call fcn.00419fd6
pop ecx
ret
call fcn.00417cd3
ret
Function at 0x41c15a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x41c188
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x41c18f
cmp ebx, dword [eax + 4]
jae 0x41c18f
xor eax, eax
jmp 0x41c37f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41c1a0
xor eax, eax
inc eax
jmp 0x41c37e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41c1b6
cmp ecx, edx
jae 0x41c2fb
cmp dword [eax + 4], 0
je 0x41c1bf
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41c1a7
cmp dword [ebp + 8], 0
je 0x41c1e1
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41c2fb
cmp eax, esi
jae 0x41c2fb
mov eax, dword [0x465220]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41c206
cmp dword [esi*4 + 0x465228], edi
je 0x41c2ff
inc esi
cmp esi, eax
jl 0x41c1f4
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41c37b
cmp dword [ebp - 8], 0x1000000
jne 0x41c37b
test byte [ebp - 0xc], 0xcc
je 0x41c284
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41c37b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41c37b
cmp word [eax + 0x18], 0x10b
jne 0x41c37b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41c37b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41c284
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41c284
test byte [ecx + 0x27], 0x80
jne 0x41c2fb
push 1
push 0x465268
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41c198
mov ecx, dword [0x465220]
test ecx, ecx
mov edx, ecx
jle 0x41c2b8
lea eax, [ecx*4 + 0x465224]
cmp dword [eax], edi
je 0x41c2b8
dec edx
sub eax, 4
test edx, edx
jg 0x41c2ac
test edx, edx
jne 0x41c2e9
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41c2c5
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41c2dd
lea eax, [edx*4 + 0x465228]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41c2cb
cmp ecx, 0x10
jge 0x41c2e9
inc ecx
mov dword [0x465220], ecx
push 0
push 0x465268
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41c198
xor eax, eax
jmp 0x41c37e
test esi, esi
jle 0x41c198
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x465268
call ebx
test eax, eax
jne 0x41c198
cmp dword [esi*4 + 0x465228], edi
je 0x41c355
mov eax, dword [0x465220]
lea esi, [eax - 1]
test esi, esi
jl 0x41c343
cmp dword [esi*4 + 0x465228], edi
je 0x41c33f
dec esi
jns 0x41c333
test esi, esi
jge 0x41c353
cmp eax, 0x10
jge 0x41c34e
inc eax
mov dword [0x465220], eax
lea esi, [eax - 1]
jmp 0x41c355
je 0x41c36d
xor ecx, ecx
test esi, esi
jl 0x41c36d
lea eax, [ecx*4 + 0x465228]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41c35b
push 0
push 0x465268
call ebx
jmp 0x41c198
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41dc95
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x41de6b
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4658c0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41de6b
test cl, 0x48
je 0x41dd00
cmp byte [eax + 5], 0xa
je 0x41dd00
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41dd52
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41dd3a
call fcn.004186ba
mov dword [eax], 9
call fcn.004186c3
mov dword [eax], esi
jmp 0x41dd4a
cmp eax, 0x6d
je 0x41de6b
push eax
call fcn.004186cc
pop ecx
or eax, 0xffffffff
jmp 0x41de6d
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x41de66
test eax, eax
je 0x41dd79
cmp byte [ebx], 0xa
jne 0x41dd79
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x41dd82
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x41de60
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41de50
cmp al, 0xd
je 0x41ddb4
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41de42
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41ddce
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41ddc9
add dword [ebp + 0x10], 2
jmp 0x41de22
mov dword [ebp + 0x10], eax
jmp 0x41de3e
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41ddf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41de3e
cmp dword [ebp - 0xc], 0
je 0x41de3e
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41de17
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41de22
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41de41
cmp ebx, dword [ebp + 0xc]
jne 0x41de27
cmp byte [ebp - 1], 0xa
jne 0x41de27
mov byte [ebx], 0xa
jmp 0x41de41
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00420aaf
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41de42
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41dd98
jmp 0x41de60
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x41de60
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41de6d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret