joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c664
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00405080
xor eax, eax
push ebp
push 0x42c85d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0042c558
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0042c558
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x42c6d5
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea eax, [ebp - 0x1c]
push eax
push 0
mov ecx, 0x42c878
mov dl, 1
mov eax, dword [0x42c004]
call fcn.0040e0e4
call fcn.00404530
jmp 0x42c71e
cmp dword [ebp - 4], 0x7fffffff
jbe 0x42c71e
mov eax, dword [0x57f4fc]
cmp dword [eax], 2
je 0x42c71e
mov eax, dword [ebp - 4]
call fcn.00406558
lea edx, [ebp - 0x20]
call fcn.0042c634
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea eax, [ebp - 0x1c]
push eax
push 0
mov ecx, 0x42c8a8
mov dl, 1
mov eax, dword [0x42c0b8]
call fcn.0040e0e4
call fcn.00404530
xor edx, edx
push ebp
push 0x42c80f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, 0x43
call fcn.0040286c
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0x40
push 0x2d
lea eax, [ebx + 0x16]
push eax
call sub.kernel32.dll_VirtualProtect
lea eax, [ebx + 0x16]
mov byte [eax], 0x50
mov dword [eax + 1], 0x424448b
mov byte [eax + 5], 0xa3
lea edx, [ebx + 8]
mov dword [eax + 6], edx
mov byte [eax + 0xa], 0x58
mov byte [eax + 0xb], 0x83
mov word [eax + 0xc], 0x4c4
mov byte [eax + 0xe], 0x68
mov dword [eax + 0xf], ebx
mov byte [eax + 0x13], 0xe8
mov edx, fcn.0042c614
lea ecx, [ebx + 0x29]
sub edx, ecx
sub edx, 5
mov dword [eax + 0x14], edx
mov byte [eax + 0x18], 0xe8
lea edx, [ebx + 0x2e]
mov ecx, dword [ebp - 4]
sub ecx, edx
sub ecx, 5
mov dword [eax + 0x19], ecx
mov byte [eax + 0x1d], 0x68
mov dword [eax + 0x1e], ebx
mov byte [eax + 0x22], 0xe8
mov edx, fcn.0042c5f4
lea ecx, [ebx + 0x38]
sub edx, ecx
sub edx, 5
mov dword [eax + 0x23], edx
mov word [eax + 0x27], 0x25ff
lea edx, [ebx + 8]
mov dword [eax + 0x29], edx
lea eax, [ebx + 0x16]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebx], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 4], eax
lea edx, [ebx + 0xc]
mov eax, dword [ebp - 4]
mov ecx, 5
call fcn.00402ae0
mov edx, ebx
mov eax, dword [0x5808a8]
call fcn.0041f010
mov byte [ebx + 0x11], 0xe9
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 4]
sub eax, 5
mov dword [ebx + 0x12], eax
push ebx
call fcn.0042c5f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42c83f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c864
lea eax, [ebp - 0x20]
call fcn.00404bb4
lea eax, [ebp - 0xc]
call fcn.00404bb4
ret
Function at 0x42ce70
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x42cee5
push dword fs:[eax]
mov dword fs:[eax], esp
push 6
lea eax, [ebp - 7]
push eax
push 0x1004
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x2c]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404e24
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409d5c
push 2
lea edx, [ebp - 0x27]
push edx
push eax
call sub.gdi32.dll_TranslateCharsetInfo
mov ebx, dword [ebp - 0x27]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ceec
lea eax, [ebp - 0x2c]
call fcn.00404bb4
ret

Function at 0x42d118
Capabilities:
Initialize winsock library

Disassembly:
add esp, 0xfffffe70
push esp
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
sete al
add esp, 0x190
ret

Function at 0x42d144
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff4
mov ebx, edx
mov eax, ebx
call fcn.00405090
push eax
call sub.wsock32.dll_gethostbyname
mov dword [esp + 4], eax
lea eax, [esp + 8]
xor ecx, ecx
mov edx, 4
call fcn.00403310
cmp dword [esp + 4], 0
je 0x42d196
mov eax, dword [esp + 4]
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 8], cl
mov cl, byte [edx + 1]
mov byte [esp + 9], cl
mov cl, byte [edx + 2]
mov byte [esp + 0xa], cl
mov al, byte [edx + 3]
mov byte [esp + 0xb], al
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp]
add esp, 0xc
pop ebx
ret
Function at 0x42d408
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42d575
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x24], 0
jne 0x42d55a
push 0
mov eax, dword [ebx + 0x1c]
push eax
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 0x28], esi
inc esi
jne 0x42d472
push 0
call sub.wsock32.dll_WSAGetLastError
lea edx, [ebp - 0x10]
call fcn.0040d87c
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x42d58c
mov eax, ebx
call fcn.0042d1a8
mov word [ebx + 4], 2
mov edx, dword [ebx + 0x14]
mov eax, ebx
call fcn.0042d144
mov dword [ebx + 8], eax
mov ax, word [ebx + 0x18]
push eax
call sub.wsock32.dll_htons
mov word [ebx + 6], ax
push 0
push 0
push 0
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_WSAAsyncSelect
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x8004667e
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_ioctlsocket
push 0x10
lea eax, [ebx + 4]
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_connect
test eax, eax
je 0x42d4f4
push 0
call sub.wsock32.dll_WSAGetLastError
lea edx, [ebp - 0x14]
call fcn.0040d87c
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x42d5ac
mov eax, ebx
call fcn.0042d1a8
cmp dword [ebx + 0x28], 0xffffffff
setne al
mov byte [ebx + 0x24], al
lea eax, [ebp - 0x18]
push eax
xor eax, eax
mov al, byte [ebx + 8]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0
xor eax, eax
mov al, byte [ebx + 9]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
xor eax, eax
mov al, byte [ebx + 0xa]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
xor eax, eax
mov al, byte [ebx + 0xb]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
movzx eax, word [ebx + 0x18]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x40]
mov ecx, 4
mov eax, 0x42d5cc
call fcn.0040af58
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x2c]
call fcn.00404c08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d57c
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404bd8
ret
Function at 0x42d5f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x42d685
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
cmp byte [ebx + 0x24], 0
je 0x42d66f
push 0
mov eax, dword [ebp - 4]
push eax
push edx
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_send
mov esi, eax
cmp esi, 0xffffffff
jne 0x42d66f
call sub.wsock32.dll_WSAGetLastError
mov edi, eax
cmp edi, 0x2733
je 0x42d66f
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 4]
test edi, edi
je 0x42d66f
push 0
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.0040d87c
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x42d6a0
mov eax, ebx
call fcn.0042d1a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d68c
lea eax, [ebp - 0x10]
call fcn.00404bb4
ret

Function at 0x42d770
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42d827
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
cmp esi, 0xffffffff
jne 0x42d7b6
cmp byte [ebx + 0x24], 0
je 0x42d7b6
lea eax, [ebp - 4]
push eax
push 0x4004667f
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x42d811
cmp byte [ebx + 0x24], 0
je 0x42d811
push 0
push esi
push edi
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x42d811
call sub.wsock32.dll_WSAGetLastError
mov esi, eax
cmp esi, 0x2733
je 0x42d811
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 4]
test esi, esi
je 0x42d811
push 0
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.0040d87c
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x42d840
mov eax, ebx
call fcn.0042d1a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d82e
lea eax, [ebp - 0x10]
call fcn.00404bb4
ret
Function at 0x42d858
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x42d920
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404bb4
or ecx, 0xffffffff
xor edx, edx
mov eax, esi
call fcn.0042d770
mov ebx, eax
test ebx, ebx
jbe 0x42d902
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040521c
mov eax, dword [ebp - 8]
call fcn.00404e90
mov ecx, eax
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0042d770
mov edx, eax
lea eax, [ebp - 8]
call fcn.0040521c
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00404e98
mov eax, dword [ebp - 4]
lea eax, [esi + 0x2c]
mov edx, dword [ebp - 8]
call fcn.00404e98
call sub.kernel32.dll_GetTickCount
mov edi, eax
or ecx, 0xffffffff
xor edx, edx
mov eax, esi
call fcn.0042d770
mov ebx, eax
push 1
call sub.kernel32.dll_Sleep
test ebx, ebx
ja 0x42d902
call sub.kernel32.dll_GetTickCount
sub eax, edi
cmp eax, 0x3e8
jbe 0x42d8db
test ebx, ebx
jne 0x42d881
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d927
lea eax, [ebp - 8]
call fcn.00404bb4
ret

Function at 0x42d930
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov ebx, edx
mov esi, eax
call sub.kernel32.dll_GetTickCount
mov edi, eax
mov edx, ebx
mov eax, esi
call fcn.0042d858
cmp dword [ebx], 0
jne 0x42d956
push 1
call sub.kernel32.dll_Sleep
cmp dword [ebx], 0
jne 0x42d967
call sub.kernel32.dll_GetTickCount
sub eax, edi
cmp eax, dword [esi + 0x20]
jb 0x42d941
cmp dword [ebx], 0
jne 0x42d989
push 0
xor eax, eax
mov dword [esp + 4], eax
mov byte [esp + 8], 0xb
lea ecx, [esp + 4]
mov edx, 0x42d998
mov eax, esi
call fcn.0042d1a8
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42f1f8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x34]
sub edi, dword [ebx + 0x6c]
sub edi, dword [ebx + 0x64]
test edi, edi
jne 0x42f222
cmp dword [ebx + 0x64], 0
jne 0x42f222
cmp dword [ebx + 0x6c], 0
jne 0x42f222
mov edi, esi
jmp 0x42f2a9
cmp edi, 0xffffffff
jne 0x42f22a
dec edi
jmp 0x42f2a9
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x42f2a9
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.0042e4ec
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3c]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x42f277
mov cx, word [esp]
sub cx, si
jmp 0x42f279
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x42f260
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x38]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x42f29f
mov cx, word [esp]
sub cx, si
jmp 0x42f2a1
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x42f288
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x42f306
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.0042ef94
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x42f2f1
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x64]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x42f306
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x42f202
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x434dcc
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathA
mov eax, ebx
mov edx, esp
mov ecx, 0x104
call fcn.00404e24
add esp, 0x104
pop ebx
ret
Function at 0x434df8
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x434f70
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [edi], eax
add esi, 4
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x10]
mov eax, 8
call fcn.00409cf0
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x14]
mov eax, 8
call fcn.00409cf0
push dword [ebp - 0x14]
push dword [ebp - 8]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404f50
mov eax, dword [ebp - 0xc]
call fcn.00405090
push eax
push esi
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x434f55
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xb7
je 0x434ead
cmp esi, 4
jne 0x434ead
push ebx
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x434f55
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xb7
jne 0x434f37
push 0
push 0
push 0
push 0xf001f
push ebx
call sub.kernel32.dll_MapViewOfFile
mov dword [edi], eax
mov eax, dword [edi]
mov esi, dword [eax]
mov eax, dword [edi]
push eax
call sub.kernel32.dll_UnmapViewOfFile
push ebx
call sub.kernel32.dll_CloseHandle_1
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x1c]
mov eax, 8
call fcn.00409cf0
push dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x20]
mov eax, 8
call fcn.00409cf0
push dword [ebp - 0x20]
push dword [ebp - 8]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404f50
mov eax, dword [ebp - 0x18]
call fcn.00405090
push eax
push esi
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
push 0
push 0
push 0
push 0xf001f
push ebx
call sub.kernel32.dll_MapViewOfFile
mov dword [edi], eax
mov eax, dword [edi]
mov dword [eax], esi
mov eax, dword [edi]
add eax, 4
mov dword [edi], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x434f77
lea eax, [ebp - 0x20]
mov edx, 6
call fcn.00404bd8
ret
Function at 0x435f3c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x436023
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x5809e0], bl
mov eax, 0x5809e4
mov edx, esi
call fcn.00404c08
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x20]
xor edx, edx
mov dl, bl
mov eax, dword [0x4347d8]
call fcn.0041acb8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
call fcn.0040291c
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x24]
mov eax, 8
call fcn.00409cf0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea edx, [ebp - 0x1c]
mov ecx, 2
mov eax, 0x436038
call fcn.0040af58
mov eax, dword [ebp - 4]
call fcn.00405090
push eax
call sub.kernel32.dll_OutputDebugStringA
cmp dword [0x5809ec], 0
je 0x436000
cmp bl, 5
jne 0x436000
push 0x242010
push 0x43606c
mov eax, esi
call fcn.00405090
push eax
push 0
call sub.user32.dll_MessageBoxA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43602a
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00404bd8
lea eax, [ebp - 4]
call fcn.00404bb4
ret

Function at 0x436184
Capabilities:
Accept command line arguments
Create process on windows
Terminate process

Disassembly:
add esp, 0xffffffac
test al, al
je 0x4361d0
push esp
call sub.kernel32.dll_GetStartupInfoA_1
lea eax, [esp + 0x44]
xor ecx, ecx
mov edx, 0x10
call fcn.00403310
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 4]
push eax
mov eax, dword [0x5809d0]
call fcn.00405090
push eax
push 0
push 0x220
push 0
push 0
push 0
call sub.kernel32.dll_GetCommandLineA_1
push eax
push 0
call sub.kernel32.dll_CreateProcessA
push 1
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_TerminateProcess
add esp, 0x54
ret

Function at 0x436464
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov edx, dword [0x57ec08]
mov dl, byte [edx]
mov byte [ebp - 1], dl
mov ecx, eax
mov dl, 1
mov eax, dword [0x434878]
call fcn.004361e4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x436534
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov ecx, 2
mov eax, dword [ebp - 0x10]
call fcn.0043625c
test al, al
je 0x43651e
cmp word [ebp - 4], 0x5a4d
jne 0x43651e
push 0
push 0x3c
mov eax, dword [ebp - 0x10]
call fcn.00421f04
lea edx, [ebp - 8]
mov ecx, 4
mov eax, dword [ebp - 0x10]
call fcn.0043625c
test al, al
je 0x43651e
cmp dword [ebp - 8], 0
je 0x43651e
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x10]
call fcn.00421f04
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, dword [ebp - 0x10]
call fcn.0043625c
test al, al
je 0x43651e
cmp dword [ebp - 0xc], 0x4550
jne 0x43651e
lea edx, [ebp - 0x24]
mov ecx, 0x14
mov eax, dword [ebp - 0x10]
call fcn.0043625c
test al, al
je 0x43651e
test byte [ebp - 0x11], 0x20
setne byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43653b
mov eax, dword [ebp - 0x10]
call fcn.00403ca0
ret
Function at 0x436544
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor edx, edx
mov dword [ebp - 0x2c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4366db
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov ecx, ebx
mov dl, 1
mov eax, dword [0x434878]
call fcn.004361e4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4366be
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov ecx, 2
mov eax, dword [ebp - 0x10]
call fcn.0043625c
test al, al
je 0x4366a8
cmp word [ebp - 4], 0x5a4d
jne 0x4366a8
push 0
push 0x3c
mov eax, dword [ebp - 0x10]
call fcn.00421f04
lea edx, [ebp - 8]
mov ecx, 4
mov eax, dword [ebp - 0x10]
call fcn.0043625c
test al, al
je 0x4366a8
cmp dword [ebp - 8], 0
je 0x4366a8
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x10]
call fcn.00421f04
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, dword [ebp - 0x10]
call fcn.0043625c
test al, al
je 0x4366a8
cmp dword [ebp - 0xc], 0x4550
jne 0x4366a8
lea edx, [ebp - 0x28]
mov ecx, 0x14
mov eax, dword [ebp - 0x10]
call fcn.0043625c
test al, al
je 0x4366a4
test byte [ebp - 0x15], 0x20
je 0x4366a4
push 2
push 0
lea edx, [ebp - 0x2c]
mov eax, ebx
call fcn.00436298
mov eax, dword [ebp - 0x2c]
call fcn.00405090
push eax
call sub.kernel32.dll_LoadLibraryExA_1
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x43669d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa
push 0x4366ec
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindResourceA
test eax, eax
je 0x436682
push 0xa
push 0x4366f8
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindResourceA
test eax, eax
je 0x436682
mov byte [ebp - 1], 2
jmp 0x436686
mov byte [ebp - 1], 3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4366a8
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4366c5
mov eax, dword [ebp - 0x10]
call fcn.00403ca0
ret
Function at 0x436870
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0x436879
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x436a93
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00404bb4
mov eax, esi
call fcn.00404bb4
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
mov eax, ebx
call fcn.00405090
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x436a78
mov eax, dword [ebp - 4]
call fcn.0040286c
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x436a71
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
push 0
mov eax, ebx
call fcn.00405090
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x436a58
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x436aa4
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4369a2
push 0x436ac8
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
mov edx, 4
call fcn.00409cc8
push dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 2]
mov edx, 4
call fcn.00409cc8
push dword [ebp - 0x24]
push 0x436ae4
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00404f50
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00405090
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4369a2
cmp dword [ebp - 0xc], 1
jbe 0x4369a2
mov eax, dword [ebp - 0x18]
call fcn.0040a860
mov ecx, eax
mov eax, edi
mov edx, dword [ebp - 0x18]
call fcn.00404ca4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x436af8
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x436a58
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
call fcn.0040820c
mov ebx, eax
mov eax, dword [ebp - 0x18]
mov di, word [eax + 8]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
call fcn.0040820c
mov word [ebp - 0xe], ax
mov eax, dword [ebp - 0x18]
mov ax, word [eax + 0xc]
mov word [ebp - 0x10], ax
lea edx, [ebp - 0x28]
movzx eax, bx
call fcn.00409bb4
push dword [ebp - 0x28]
push 0x436b04
lea edx, [ebp - 0x2c]
movzx eax, di
call fcn.00409bb4
push dword [ebp - 0x2c]
push 0x436b04
lea edx, [ebp - 0x30]
movzx eax, word [ebp - 0xe]
call fcn.00409bb4
push dword [ebp - 0x30]
push 0x436b04
lea edx, [ebp - 0x34]
movzx eax, word [ebp - 0x10]
call fcn.00409bb4
push dword [ebp - 0x34]
mov eax, esi
mov edx, 7
call fcn.00404f50
mov eax, dword [esi]
mov edx, 0x436b10
call fcn.00404fdc
jne 0x436a58
mov eax, esi
call fcn.00404bb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x436a78
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
call fcn.0040288c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x436a9a
lea eax, [ebp - 0x34]
mov edx, 7
call fcn.00404bd8
ret