joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4af714
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4af7e9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4af804
push ebx
push 0x4af814
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004087c4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00405884
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004084ec
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x4af794
mov al, 0x72
call fcn.004af33c
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
call fcn.004af6e8
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4af79d
call fcn.004af6e8
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af7f0
lea eax, [ebp - 4]
call fcn.00407a20
ret

Function at 0x4af904
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4af9cf
jmp 0x4af9c3
cmp dword [esi + 0x10], 0x1000
jne 0x4af9af
test byte [esi + 0x15], 1
jne 0x4af9af
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4af960
cmp ebp, 2
je 0x4af960
cmp ebp, 0x10
je 0x4af960
cmp ebp, 0x20
jne 0x4af97c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4af97c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4af98d
mov eax, dword [esi]
add eax, ebx
call fcn.004af8fc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4af980
cmp byte [esp + 4], 0
je 0x4af9af
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4af9cf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4af935
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x6b825598
nop
nop
nop
nop
nop
test eax, eax
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x369441fd
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x100532d
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x1022a53
call fcn.010014dd
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0xc]
mov dword [ebp - 0x10], esi
call fcn.010049a5
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi], 0x10031ac
lea edi, [esi + 0x28]
mov dword [edi], ebx
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 2
call fcn.01004b36
lea ecx, [esi + 0xa0]
mov byte [ebp - 4], 3
call fcn.01004b4d
mov dword [esi + 0xc8], ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esi + 0xcc]
push ebx
call fcn.01004965
lea ecx, [esi + 0x138]
mov byte [ebp - 4], 6
mov byte [ecx + 8], bl
call fcn.0100544a
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
push dword [0x102704c]
push edi
call dword [fcn.010010d4]
and dword [esi + 0x134], 0xfffffff8
or dword [esi + 0xbc], 0xffffffff
or dword [esi + 0xc0], 0xffffffff
or dword [esi + 0xc4], 0xffffffff
mov ecx, dword [ebp - 0xc]
lea eax, [esi + 0xa0]
mov dword [esi + 0xd0], eax
xor eax, eax
inc eax
and dword [esi + 0x108], 0xfffffffe
mov dword [esi + 0x148], eax
mov dword [esi + 0x12c], eax
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0x10c], ebx
mov dword [esi + 0x110], ebx
mov dword [esi + 0x114], ebx
mov dword [esi + 0x118], ebx
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x120], ebx
mov dword [esi + 0x124], ebx
mov dword [esi + 0x128], ebx
mov dword [esi + 0x130], ebx
pop edi
mov dword [esi + 0xcc], esi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x104a000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x104a175
cmp dword [esp + 0x54], 0x40
jne 0x104a175
cmp word [esp + 0x10], 0x5a4d
jne 0x104a175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x104a175
lea eax, [esp + 0x54]
push 0
push eax
push 0xf8
push 0x1050960
push esi
call ebx
test eax, eax
je 0x104a175
cmp dword [esp + 0x54], 0xf8
jne 0x104a175
cmp dword [0x1050960], 0x4550
jne 0x104a175
mov eax, dword [0x1050976]
test ah, 0x20
jne 0x104a175
mov edx, dword [0x1050a80]
xor eax, eax
mov ax, word [0x1050966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x1050a58], eax
je 0x104a175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x1050a6c], eax
xor eax, eax
mov ax, word [0x1050966]
mov edx, dword [0x1050a58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x104a175
cmp dword [esp + 0x54], edi
jne 0x104a175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x1050a80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x10509b4]
cmp edx, eax
ja 0x104a175
mov edi, dword [0x1050a58]
mov ecx, dword [0x1050988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x104a175
xor eax, eax
push 2
mov ax, word [0x1050966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x104a175
cmp dword [edi - 0x20], ebx
ja 0x104a175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x104c769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1050190
cmp edx, dword [eax]
je 0x104c78b
add eax, 8
inc ecx
cmp eax, 0x1050220
jl 0x104c77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1050190]
jne 0x104c8b9
mov eax, dword [0x1050bb0]
cmp eax, 1
je 0x104c893
test eax, eax
jne 0x104c7bc
cmp dword [0x10500e4], 1
je 0x104c893
cmp edx, 0xfc
je 0x104c8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x104c7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0104d670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0104d490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x104c836
lea eax, [ebp - 0x1a4]
push eax
call fcn.0104d490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x104f45c
push edi
call fcn.0104df00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0104d670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0104d680
lea eax, [ebp - 0xa0]
push 0x104f43c
push eax
call fcn.0104d680
push dword [esi + 0x1050194]
lea eax, [ebp - 0xa0]
push eax
call fcn.0104d680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0104de75
add esp, 0x2c
pop edi
jmp 0x104c8b9
lea eax, [ebp + 8]
lea esi, [esi + 0x1050194]
push 0
push eax
push dword [esi]
call fcn.0104d490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..00cfg
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x5d02229a
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x5f10574e
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x4e677a3
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x11c25ae6
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x403298
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x54b03c], 0
je 0x4032f9
cmp word [0x54b210], 0xd7b2
jne 0x4032c1
cmp dword [0x54b218], 0
jbe 0x4032c1
mov eax, 0x54b20c
call dword [0x54b228]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x54905c
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403320
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
pop edx
ret
cmp byte [0x549020], 0
jne 0x403315
push 0
push 0x549054
push 0x54905c
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret

Function at 0x4046f8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40475e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040363c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004026fc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404748
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404765
lea eax, [ebp - 0x10]
call fcn.00403414
ret

Function at 0x406ab4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.00403468
mov eax, ebx
call fcn.004038b8
mov eax, dword [ebx]
call fcn.00403668
test eax, eax
jle 0x406ae5
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x406ada
pop esi
pop ebx
ret

Function at 0x406dc4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x406e10
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 2
mov edi, esi
mov eax, edi
call fcn.00407e5c
test al, al
jne 0x406e06
cmp word [edi], 0x5a4d
jne 0x406e06
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x406e06
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x406e1c
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x406fbc
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
cmp byte [0x549230], 0
jne 0x40709d
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x40700f
push 0x10000
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x8000
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileW
mov esi, eax
jmp 0x407040
push 0x105
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x104
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
push ebx
call sub.KERNEL32.dll_LocalFree
cmp esi, 0xffffffff
je 0x40709d
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x40706b
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x40707d
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x407097
push 0
push 0
push 0
push 4
push ebx
call sub.KERNEL32.dll_MapViewOfFile
mov edi, eax
push ebx
call sub.KERNEL32.dll_CloseHandle
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x4072e8
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4073e3
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x40732c
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileW
mov ebx, eax
jmp 0x407360
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00403b10
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.00403654
mov eax, dword [ebp - 8]
call fcn.00403868
push eax
call sub.KERNEL32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4073c5
push 0
push 0
push 0
push 2
push 0
push ebx
call sub.KERNEL32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x4073bf
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4073b9
mov eax, dword [ebp - 4]
call fcn.00406dc4
test eax, eax
je 0x4073a6
cmp word [eax + 0x18], 0x20b
je 0x4073aa
xor eax, eax
jmp 0x4073ac
mov al, 1
neg al
sbb edi, edi
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
push esi
call sub.KERNEL32.dll_CloseHandle
push ebx
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4073ea
lea eax, [ebp - 0xc]
call fcn.004039e8
lea eax, [ebp - 8]
call fcn.00403414
ret
Function at 0x4073f8
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_CreateFileW
mov edi, eax
cmp edi, 0xffffffff
je 0x4074d5
push 0
push 0
push 0
push 2
push 0
push edi
call sub.KERNEL32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x4074cf
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4074c9
mov eax, dword [ebp - 4]
call fcn.00406dc4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4074c0
mov eax, dword [ebp - 8]
cmp word [eax + 0x18], 0x20b
jne 0x407481
mov eax, dword [ebp - 8]
add eax, 0x18
mov eax, dword [eax + 0x70]
mov dword [ebp - 0xc], eax
jmp 0x40748a
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x78]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4074c0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00406f44
add eax, dword [ebp - 4]
mov ebx, eax
cmp dword [ebx + 0x10], 0
jne 0x4074ac
cmp dword [ebx + 0x14], 1
jg 0x4074bc
cmp dword [ebx + 0x10], 1
jne 0x4074b8
cmp dword [ebx + 0x14], 0
jg 0x4074bc
xor eax, eax
jmp 0x4074be
mov al, 1
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
push esi
call sub.KERNEL32.dll_CloseHandle
push edi
call sub.KERNEL32.dll_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ab74
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffedc
mov ebp, ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
push 0x1c
lea eax, [esp + 4]
push eax
push edi
call sub.KERNEL32.dll_VirtualQuery
cmp eax, 0x1c
jne 0x40abf0
cmp dword [esp + 0x10], 0x1000
jne 0x40abf0
cmp dword [esp + 4], 0
je 0x40abf0
push 0x104
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
test eax, eax
je 0x40abf0
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x40abf0
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x40abf0
mov edx, dword [esi]
add edx, dword [eax + 0x78]
mov dword [ebp], edx
cmp dword [ebp], 0
setne bl
mov eax, ebx
add esp, 0x124
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40caa8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
cmp dword [0x549ba8], 0
je 0x40caed
push esp
push 0x40
push 4
mov eax, dword [0x549ba8]
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x40caed
mov eax, dword [0x549ba8]
mov edx, dword [0x549bac]
mov dword [eax], edx
push esp
mov eax, dword [esp + 4]
push eax
push 4
mov eax, dword [0x549ba8]
push eax
call sub.KERNEL32.dll_VirtualProtect
xor eax, eax
mov dword [0x549ba8], eax
cmp dword [0x549bb0], 0
je 0x40cb31
push esp
push 0x40
push 4
mov eax, dword [0x549bb0]
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x40cb31
mov eax, dword [0x549bb0]
mov edx, dword [0x549bb4]
mov dword [eax], edx
push esp
mov eax, dword [esp + 4]
push eax
push 4
mov eax, dword [0x549bb0]
push eax
call sub.KERNEL32.dll_VirtualProtect
xor eax, eax
mov dword [0x549bb0], eax
xor eax, eax
mov dword [0x54b6b0], eax
pop edx
ret
Function at 0x40dc5c
Capabilities:
Hash data using sha1

Disassembly:
push 0xcc
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov edx, eax
mov eax, edx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov eax, edx
ret

Function at 0x411b54
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x411bfb
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 8]
mov eax, dword [0x549d40]
call fcn.00406ab4
push dword [ebp - 8]
push 0x411c14
lea ecx, [ebp - 0xc]
mov edx, dword [esi]
mov eax, dword [0x549d44]
call fcn.00411a5c
push dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00403728
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.00403868
push eax
call fcn.004118c8
mov edi, eax
test edi, edi
je 0x411be0
push 0
push 0
push 0
push 4
push edi
call sub.KERNEL32.dll_MapViewOfFile
test eax, eax
je 0x411bda
mov edx, dword [eax]
mov dword [esi], edx
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
mov bl, 1
push edi
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411c02
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403438
ret

Function at 0x411eb4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, eax
test esi, esi
sete byte [ebp - 5]
cmp byte [ebp - 5], 0
jne 0x411f0c
xor ebx, ebx
jmp 0x411f05
cmp edx, edi
jne 0x411f04
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push edi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x411f0c
mov eax, dword [ebp - 4]
mov dword [esi + ebx*4], eax
mov byte [ebp - 5], 1
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 0xc]
push edx
push 4
push eax
call sub.KERNEL32.dll_VirtualProtect
jmp 0x411f0c
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x411ed2
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411f18
Capabilities:
Allocate or change rwx memory
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0xd], 0
xor ecx, ecx
push ebp
push 0x412033
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor eax, eax
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x411f95
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0x411f8b
mov eax, dword [ebp - 4]
add eax, 0x3c
mov eax, dword [eax]
add eax, dword [ebp - 4]
cmp dword [eax], 0x4550
jne 0x411f8b
cmp word [eax + 0x18], 0x20b
jne 0x411f82
add eax, 0x18
mov eax, dword [eax + 0x70]
add eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
jmp 0x411f8b
mov eax, dword [eax + 0x78]
add eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x411f9f
cmp dword [ebp - 0x14], 0
je 0x412029
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x14]
dec eax
test eax, eax
jl 0x412029
inc eax
xor ebx, ebx
mov edx, dword [esi + 0x1c]
add edx, dword [ebp - 4]
mov edx, dword [edx + ebx*4]
add edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jne 0x412025
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.00411eb4
test al, al
je 0x412029
mov eax, dword [esi + 0x1c]
add eax, dword [ebp - 4]
lea eax, [eax + ebx*4]
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push 0x40
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x412015
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
mov dword [esi], eax
mov byte [ebp - 0xd], 1
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
jmp 0x412029
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
call fcn.00411eb4
jmp 0x412029
inc ebx
dec eax
jne 0x411fb7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41203d
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4