joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44fc48
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 0x44fdb6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x24], 0
jne 0x44fd9b
call fcn.0044f944
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 0x44fcb7
push 0
call sub.wsock32.dll_WSAGetLastError
lea edx, [ebp - 0x10]
call fcn.0040d948
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x44fdcc
mov eax, ebx
call fcn.0044f9e8
mov word [ebx + 4], 2
mov edx, dword [ebx + 0x14]
mov eax, ebx
call fcn.0044f988
mov dword [ebx + 8], eax
movzx eax, 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 0x44fd39
push 0
call sub.wsock32.dll_WSAGetLastError
lea edx, [ebp - 0x14]
call fcn.0040d948
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x44fdec
mov eax, ebx
call fcn.0044f9e8
cmp dword [ebx + 0x28], 0xffffffff
setne al
mov byte [ebx + 0x24], al
lea eax, [ebp - 0x18]
push eax
movzx eax, byte [ebx + 8]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0
movzx eax, byte [ebx + 9]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
movzx eax, byte [ebx + 0xa]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
movzx eax, 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, 0x44fe0c
call fcn.0040b1c4
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x2c]
call fcn.00405430
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44fdbd
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00405400
ret
Function at 0x44fe30
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 0x44fec5
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
cmp byte [ebx + 0x24], 0
je 0x44feaf
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 0x44feaf
call sub.wsock32.dll_WSAGetLastError
mov edi, eax
cmp edi, 0x2733
je 0x44feaf
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 4]
test edi, edi
je 0x44feaf
push 0
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.0040d948
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x44fee0
mov eax, ebx
call fcn.0044f9e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44fecc
lea eax, [ebp - 0x10]
call fcn.004053dc
ret

Function at 0x44ffc0
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 0x450077
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
cmp esi, 0xffffffff
jne 0x450006
cmp byte [ebx + 0x24], 0
je 0x450006
lea eax, [ebp - 4]
push eax
push 0x4004667f
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x450061
cmp byte [ebx + 0x24], 0
je 0x450061
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 0x450061
call sub.wsock32.dll_WSAGetLastError
mov esi, eax
cmp esi, 0x2733
je 0x450061
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 4]
test esi, esi
je 0x450061
push 0
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.0040d948
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x450090
mov eax, ebx
call fcn.0044f9e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45007e
lea eax, [ebp - 0x10]
call fcn.004053dc
ret
Function at 0x4500a8
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 - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x450174
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004053dc
or ecx, 0xffffffff
xor edx, edx
mov eax, esi
call fcn.0044ffc0
mov ebx, eax
test ebx, ebx
jbe 0x450156
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405b18
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4500f9
sub ebx, 4
mov ebx, dword [ebx]
mov edx, dword [ebp - 4]
mov ecx, ebx
mov eax, esi
call fcn.0044ffc0
mov edx, eax
lea eax, [ebp - 4]
call fcn.00405b18
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004056c4
mov eax, dword [ebp - 8]
lea eax, [esi + 0x2c]
mov edx, dword [ebp - 4]
call fcn.004056c4
call sub.kernel32.dll_GetTickCount_1
mov edi, eax
or ecx, 0xffffffff
xor edx, edx
mov eax, esi
call fcn.0044ffc0
mov ebx, eax
push 1
call sub.kernel32.dll_Sleep_1
test ebx, ebx
ja 0x450156
call sub.kernel32.dll_GetTickCount_1
sub eax, edi
cmp eax, 0x3e8
jbe 0x45012f
test ebx, ebx
jne 0x4500d1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45017b
lea eax, [ebp - 4]
call fcn.004053dc
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
call sub.kernel32.dll_GetTickCount_1
mov edi, eax
mov edx, ebx
mov eax, esi
call fcn.004500a8
cmp dword [ebx], 0
jne 0x4501a7
push 1
call sub.kernel32.dll_Sleep_1
cmp dword [ebx], 0
jne 0x4501b8
call sub.kernel32.dll_GetTickCount_1
sub eax, edi
cmp eax, dword [esi + 0x20]
jb 0x450192
pop edi
pop esi
pop ebx
ret

Function at 0x450dd0
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 0x450e62
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x450e70]
mov dword [ebp - 7], eax
mov ax, word [0x450e74]
mov word [ebp - 3], ax
mov al, byte [0x450e76]
mov byte [ebp - 1], al
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.0040564c
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetACP_1
mov edx, eax
pop eax
call fcn.00409e6c
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 0x450e69
lea eax, [ebp - 0x2c]
call fcn.004053dc
ret

Function at 0x4511b8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push ecx
mov esi, ecx
mov ebx, edx
add ebx, ebx
add ebx, ebx
add ebx, eax
mov eax, ebx
call fcn.00406924
test eax, eax
je 0x4511f9
push esp
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
mov dword [ebx], esi
push esp
mov eax, dword [esp + 4]
push eax
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
push 4
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
pop edx
pop esi
pop ebx
ret
Function at 0x4513b8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
push esp
push 0x40
push esi
push ebx
call sub.kernel32.dll_VirtualProtect
mov edx, ebx
mov eax, edi
mov ecx, esi
call fcn.00403258
push esp
mov eax, dword [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_VirtualProtect
push esi
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x451a04
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp + 4], edx
mov dword [esp], eax
lea ebp, [esp + 0x10]
mov eax, dword [0x55b758]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x451a47
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x55b758]
call fcn.0041b4d4
mov ebx, eax
mov eax, dword [esp]
cmp eax, dword [ebx]
jne 0x451a43
mov eax, dword [ebx + 4]
jmp 0x451b0b
inc edi
dec esi
jne 0x451a26
mov edi, dword [esp]
mov ebx, edi
xor esi, esi
mov edx, ebp
mov eax, ebx
call fcn.004515b4
test al, al
jne 0x451a5f
mov byte [ebp], 1
movzx eax, byte [ebp]
add esi, eax
movzx eax, byte [ebp]
add ebx, eax
cmp esi, 5
jb 0x451a4e
mov edx, esi
mov eax, edi
call fcn.004517a4
add eax, 5
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
call fcn.00402f18
mov ebp, eax
mov eax, 0x14
call fcn.00402f18
mov ebx, eax
mov eax, dword [esp]
mov dword [ebx], eax
mov dword [ebx + 4], ebp
mov eax, dword [esp + 8]
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], esi
mov eax, esi
call fcn.00402f18
mov dword [ebx + 0xc], eax
mov edx, dword [ebx + 0xc]
mov eax, edi
mov ecx, esi
call fcn.00403258
mov edx, ebx
mov eax, dword [0x55b758]
call fcn.0041b37c
lea eax, [esp + 0xc]
push eax
push 0x40
mov eax, dword [esp + 0x10]
push eax
push ebp
call sub.kernel32.dll_VirtualProtect
mov edx, ebp
mov eax, edi
mov ecx, esi
call fcn.00403258
mov ecx, esi
mov edx, edi
mov eax, ebp
call fcn.00451858
lea edx, [esi + edi]
lea eax, [esi + ebp]
call fcn.004513f8
mov edx, dword [esp + 4]
mov eax, edi
call fcn.004513f8
mov eax, ebp
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x451d70
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov ebx, eax
xor esi, esi
mov edx, 0x40
mov eax, ebx
call fcn.0042d3ec
test al, al
je 0x451db4
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x451db4
cmp dword [eax + 0x3c], 0
je 0x451db4
mov esi, dword [eax + 0x3c]
add esi, ebx
mov edx, 0xf8
mov eax, esi
call fcn.0042d3ec
test al, al
je 0x451db2
cmp dword [esi], 0x4550
je 0x451db4
xor esi, esi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4533bc
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.0040564c
add esp, 0x104
pop ebx
ret
Function at 0x45487c
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, pe_nt_image_headers32
call fcn.0040564c
add esp, 0x104
pop ebx
ret

Function at 0x4548b0
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
mov dword [esp], pe_nt_image_headers32
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, pe_nt_image_headers32
call fcn.0040564c
add esp, 0x104
pop ebx
ret

Function at 0x455240
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45539c
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 - 8]
mov eax, 8
call fcn.00409e00
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0xc]
mov eax, 8
call fcn.00409e00
mov edx, dword [ebp - 0xc]
pop eax
call fcn.004056c4
mov eax, dword [ebp - 8]
call fcn.00405888
push eax
push esi
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x455381
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xb7
je 0x4552e2
cmp esi, 4
jne 0x4552e2
push ebx
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x455381
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xb7
jne 0x455363
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 - 0x10]
mov eax, 8
call fcn.00409e00
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x14]
mov eax, 8
call fcn.00409e00
mov edx, dword [ebp - 0x14]
pop eax
call fcn.004056c4
mov eax, dword [ebp - 0x10]
call fcn.00405888
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 0x4553a3
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00405400
ret
Function at 0x4568f4
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 0x4569dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x55b8cc], bl
mov eax, 0x55b8d0
mov edx, esi
call fcn.00405430
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x20]
movzx edx, bl
mov eax, dword [0x4527b0]
call fcn.004173b8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
call fcn.0040302c
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x24]
mov eax, 8
call fcn.00409e00
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, 0x4569f4
call fcn.0040b1c4
mov eax, dword [ebp - 4]
call fcn.00405888
push eax
call sub.kernel32.dll_OutputDebugStringA
cmp dword [0x55c174], 0
je 0x4569ba
add bl, 0xfb
sub bl, 5
jae 0x4569ba
push 0x242010
push 0x456a28
mov eax, esi
call fcn.00405888
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 0x4569e4
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00405400
lea eax, [ebp - 4]
call fcn.004053dc
ret

Function at 0x456d10
Capabilities:
Enumerate gui resources

Disassembly:
add esp, 0xfffffff8
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, esp
push eax
push 0x456cd8
call sub.user32.dll_EnumWindows
mov eax, dword [esp + 4]
pop ecx
pop edx
ret

Function at 0x456da8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffdc
mov ebx, edx
mov dword [esp], eax
push 0
lea eax, [esp + 0x18]
push eax
xor ecx, ecx
mov edx, 0x7fffffff
mov eax, 0x7fffffff
call fcn.00419c18
lea esi, [esp + 0x14]
lea edi, [esp + 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, esp
push eax
push 0x456d30
call sub.user32.dll_EnumWindows
mov edi, ebx
lea esi, [esp + 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ebx], 0x7fffffff
jne 0x456e07
push 0xffffffffffffffff
push ebx
or ecx, 0xffffffff
or edx, 0xffffffff
or eax, 0xffffffff
call fcn.00419c18
add esp, 0x24
pop edi
pop esi
pop ebx
ret
Function at 0x456e8c
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, eax
test ebx, ebx
je 0x456f6e
mov eax, ebx
test eax, eax
je 0x456ea9
sub eax, 4
mov eax, dword [eax]
lea esi, [eax + 1]
push 0
call sub.user32.dll_OpenClipboard
xor eax, eax
push ebp
push 0x456f67
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x456f4d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x456f2f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00405888
mov edx, dword [ebp - 8]
mov ecx, esi
call fcn.00403258
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 4]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456f36
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

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

Disassembly:
add esp, 0xffffffac
test al, al
je 0x456fc0
push esp
call sub.kernel32.dll_GetStartupInfoA_1
lea eax, [esp + 0x44]
xor ecx, ecx
mov edx, 0x10
call fcn.00403b4c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 4]
push eax
mov eax, dword [0x55b8bc]
call fcn.00405888
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 0x457158
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov edx, dword [0x55306c]
movzx edx, byte [edx]
mov byte [ebp - 1], dl
mov ecx, eax
mov dl, 1
mov eax, dword [0x452874]
call fcn.00456fd4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x457229
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov ecx, 2
mov eax, dword [ebp - 0x10]
call fcn.0045704c
test al, al
je 0x457213
cmp word [ebp - 4], 0x5a4d
jne 0x457213
push 0
push 0x3c
mov eax, dword [ebp - 0x10]
call fcn.0041dde4
lea edx, [ebp - 8]
mov ecx, 4
mov eax, dword [ebp - 0x10]
call fcn.0045704c
test al, al
je 0x457213
cmp dword [ebp - 8], 0
je 0x457213
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x10]
call fcn.0041dde4
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, dword [ebp - 0x10]
call fcn.0045704c
test al, al
je 0x457213
cmp dword [ebp - 0xc], 0x4550
jne 0x457213
lea edx, [ebp - 0x24]
mov ecx, 0x14
mov eax, dword [ebp - 0x10]
call fcn.0045704c
test al, al
je 0x457213
test byte [ebp - 0x11], 0x20
setne byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457230
mov eax, dword [ebp - 0x10]
call fcn.004043d8
ret
Function at 0x457238
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 0x4573cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov ecx, ebx
mov dl, 1
mov eax, dword [0x452874]
call fcn.00456fd4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4573b2
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov ecx, 2
mov eax, dword [ebp - 0x10]
call fcn.0045704c
test al, al
je 0x45739c
cmp word [ebp - 4], 0x5a4d
jne 0x45739c
push 0
push 0x3c
mov eax, dword [ebp - 0x10]
call fcn.0041dde4
lea edx, [ebp - 8]
mov ecx, 4
mov eax, dword [ebp - 0x10]
call fcn.0045704c
test al, al
je 0x45739c
cmp dword [ebp - 8], 0
je 0x45739c
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x10]
call fcn.0041dde4
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, dword [ebp - 0x10]
call fcn.0045704c
test al, al
je 0x45739c
cmp dword [ebp - 0xc], 0x4550
jne 0x45739c
lea edx, [ebp - 0x28]
mov ecx, 0x14
mov eax, dword [ebp - 0x10]
call fcn.0045704c
test al, al
je 0x457398
test byte [ebp - 0x15], 0x20
je 0x457398
push 2
push 0
lea edx, [ebp - 0x2c]
mov eax, ebx
call fcn.0045317c
mov eax, dword [ebp - 0x2c]
call fcn.00405888
push eax
call sub.kernel32.dll_LoadLibraryExA_1
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x457391
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa
push 0x4573e0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindResourceA
test eax, eax
je 0x457376
push 0xa
push 0x4573ec
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindResourceA
test eax, eax
je 0x457376
mov byte [ebp - 1], 2
jmp 0x45737a
mov byte [ebp - 1], 3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45739c
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 0x4573b9
mov eax, dword [ebp - 0x10]
call fcn.004043d8
ret
Function at 0x45761c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0x457625
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 0x457841
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.004053dc
mov eax, esi
call fcn.004053dc
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, ebx
call fcn.00405888
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x45781e
mov eax, dword [ebp - 8]
call fcn.00402f18
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x457817
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, ebx
call fcn.00405888
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4577fe
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x457850
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x45774e
push 0x457874
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
mov edx, 4
call fcn.00409dd8
push dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 2]
mov edx, 4
call fcn.00409dd8
push dword [ebp - 0x24]
push 0x457890
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040578c
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call fcn.00405888
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x45774e
cmp dword [ebp - 0x10], 1
jbe 0x45774e
mov eax, dword [ebp - 0x1c]
call fcn.0040aa2c
mov ecx, eax
mov eax, edi
mov edx, dword [ebp - 0x1c]
call fcn.004054cc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x4578a4
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4577fe
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 8]
shr ebx, 0x10
mov eax, dword [ebp - 0x1c]
movzx edi, word [eax + 8]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
shr eax, 0x10
mov word [ebp - 0x12], ax
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 0xc]
mov word [ebp - 0x14], ax
lea edx, [ebp - 0x28]
movzx eax, bx
call fcn.00409cc4
push dword [ebp - 0x28]
push 0x4578b0
lea edx, [ebp - 0x2c]
movzx eax, di
call fcn.00409cc4
push dword [ebp - 0x2c]
push 0x4578b0
lea edx, [ebp - 0x30]
movzx eax, word [ebp - 0x12]
call fcn.00409cc4
push dword [ebp - 0x30]
push 0x4578b0
lea edx, [ebp - 0x34]
movzx eax, word [ebp - 0x14]
call fcn.00409cc4
push dword [ebp - 0x34]
mov eax, esi
mov edx, 7
call fcn.0040578c
mov eax, dword [esi]
mov edx, 0x4578bc
call fcn.00405820
jne 0x4577fe
mov eax, esi
call fcn.004053dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45781e
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
call fcn.00402f34
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457848
lea eax, [ebp - 0x34]
mov edx, 6
call fcn.00405400
lea eax, [ebp - 4]
call fcn.004053dc
ret