joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4d6014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4028b8
push SysReAllocStringLen
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x402898
xor eax, eax
push ebp
push 0x402891
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4028d4
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402898
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
mov ax, word [0x4d6014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4d6014], ax
mov esp, ebp
pop ebp
ret

Function at 0x40338c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d803c], 0
je 0x4033ed
cmp word [0x4d8210], 0xd7b2
jne 0x4033b5
cmp dword [0x4d8218], 0
jbe 0x4033b5
mov eax, 0x4d820c
call dword [0x4d8228]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4d605c
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 0x403414
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
pop edx
ret
cmp byte [0x4d6020], 0
jne 0x403409
push 0
push 0x4d6054
push 0x4d605c
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret

Function at 0x40470c
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 0x404772
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.0040376c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402714
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40475c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404779
lea eax, [ebp - 0x10]
call fcn.00403508
ret

Function at 0x405a34
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x405ad2
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.00403a84
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.004039f0
mov edx, ebp
add dl, 0x30
mov byte [eax + esi - 1], dl
dec esi
test ebx, ebx
jne 0x405a5c
cmp byte [esp], 0
je 0x405aa3
mov eax, edi
call fcn.004039f0
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x405ade
mov eax, edi
call fcn.004039f0
push eax
mov eax, edi
call fcn.004039f0
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.004025ec
mov edx, ebx
mov eax, edi
call fcn.00403a84
jmp 0x405ade
mov eax, edi
mov edx, 0x405aec
call fcn.0040355c
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40cb18
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 0x40fe98
Capabilities:
Check os version

Disassembly:
add esp, 0xfffffeec
cmp dword [0x4d6ea4], 0xffffffff
jne 0x40fee7
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x40fee0
mov eax, esp
mov edx, 0x114
call fcn.00404eb4
mov dword [esp], 0x114
mov eax, esp
push eax
call sub.KERNEL32.dll_GetVersionExW
cmp dword [esp + 4], 6
setae al
and eax, 0x7f
mov dword [0x4d6ea4], eax
jmp 0x40fee7
xor eax, eax
mov dword [0x4d6ea4], eax
cmp dword [0x4d6ea4], 1
sete al
add esp, 0x114
ret

Function at 0x4108a8
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x41095f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0xc]
mov eax, dword [0x4d6db8]
call fcn.00406224
push dword [ebp - 0xc]
push 0x410978
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
mov cl, byte [ebp - 1]
mov eax, dword [0x4d6dbc]
call fcn.00410798
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403858
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.00403998
push eax
call fcn.004105ac
mov esi, eax
test esi, esi
je 0x410944
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
test eax, eax
je 0x41093e
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov ecx, dword [eax]
mov dword [edx], ecx
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
mov bl, 1
push esi
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410966
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040352c
ret

Function at 0x410bb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
mov edi, eax
xor esi, esi
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x410c11
mov ebx, 0x71af0000
jmp 0x410bff
cmp dword [esp + 0x10], 0x10000
jne 0x410bed
push 0x40
push 0x2000
push edi
mov eax, dword [esp + 0xc]
push eax
call sub.KERNEL32.dll_VirtualAlloc
mov esi, eax
jmp 0x410c11
mov eax, dword [esp + 4]
cmp ebx, eax
jne 0x410bfd
sub ebx, 0x10000
jmp 0x410bff
mov ebx, eax
push 0x1c
lea eax, [esp + 4]
push eax
push ebx
call sub.KERNEL32.dll_VirtualQuery
cmp eax, 0x1c
je 0x410bcd
push 0x40
push 0x1000
push edi
push esi
call sub.KERNEL32.dll_VirtualAlloc
mov esi, eax
mov eax, esi
add esp, 0x1c
pop edi
pop esi
pop ebx
ret
Function at 0x410edc
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
pushfd
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [0x4d6e90]
cmp eax, 0x1c
jne 0x410f57
cmp dword [ebp - 0xc], 0x1000
jne 0x410f52
cmp dword [ebp - 0x18], 0
je 0x410f52
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x20], eax
je 0x410f52
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0
jne 0x410f31
mov eax, dword [ebp - 0x18]
cmp eax, 0x80000000
jae 0x410f57
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x4d6e60]
cmp eax, 0
je 0x410f52
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call dword [0x4d6ebc]
add ebx, dword [ebp - 0x10]
jmp 0x410ef3
popfd
popal
add esp, 0x20
pop ebp
ret 0xc
Function at 0x41496c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x414b53
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor edx, edx
mov eax, dword [0x4d6d18]
call fcn.00409ea4
mov dword [0x4d88ec], eax
xor edx, edx
mov eax, dword [0x4d6d1c]
call fcn.00409ea4
mov dword [0x4d88f0], eax
lea eax, [ebp - 8]
mov edx, 5
call fcn.00403a84
lea eax, [ebp - 8]
call fcn.004039f0
mov byte [eax], 0x72
lea eax, [ebp - 8]
call fcn.004039f0
mov byte [eax + 1], 0x64
lea eax, [ebp - 8]
call fcn.004039f0
mov byte [eax + 2], 0x65
lea eax, [ebp - 8]
call fcn.004039f0
mov byte [eax + 3], 0x63
lea eax, [ebp - 8]
call fcn.004039f0
mov byte [eax + 4], 0x20
lea edx, [ebp - 0xc]
mov eax, dword [0x4d6da0]
call fcn.00406224
push dword [ebp - 0xc]
push 0x414b6c
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
call sub.KERNEL32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.00405dcc
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403858
mov eax, dword [ebp - 8]
call fcn.00403998
push eax
push 0
push 0
call fcn.00404b84
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x414b38
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
mov dword [0x4d88e0], esi
mov dword [0x4d88e4], edi
cmp dword [0x4d88ec], 0
je 0x414a88
cmp dword [0x4d88f0], 0
jne 0x414b0a
mov dl, 1
mov eax, dword [0x4d6c94]
call fcn.00409fb8
mov esi, eax
cmp dword [esi], 0x4244c8b
jne 0x414b1c
lea eax, [esi + 4]
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, 0x241c8b
jne 0x414b1c
lea eax, [esi + 7]
cmp byte [eax], 0x51
jne 0x414b1c
lea eax, [esi + 8]
cmp byte [eax], 0x53
jne 0x414b1c
lea eax, [esi + 9]
cmp byte [eax], 0xe8
jne 0x414b1c
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea eax, [esi + 0xa]
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x414b1c
lea edx, [esi + 0xe]
lea eax, [esi + 0xa]
add edx, dword [eax]
mov dword [0x4d88e8], edx
mov edx, 0x41491c
sub edx, esi
sub edx, 0xe
mov dword [eax], edx
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp - 4]
push edx
push 4
push eax
call sub.KERNEL32.dll_VirtualProtect
mov bl, 1
jmp 0x414b1c
push 0x4148c8
push 1
call dword [0x4d88ec]
test eax, eax
setne bl
test bl, bl
jne 0x414b38
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414b5a
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040352c
ret
Function at 0x414b70
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
cmp dword [0x4d88ec], 0
je 0x414b88
cmp dword [0x4d88f0], 0
jne 0x414be1
mov dl, 1
mov eax, dword [0x4d6c94]
call fcn.00409fb8
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea esi, [ebx + 0xa]
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x414bc7
mov eax, dword [0x4d88e8]
sub eax, ebx
sub eax, 0xe
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
jmp 0x414bec
push 0x4148c8
call dword [0x4d88f0]
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x418bac
Capabilities:
Check os version
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd70
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x28c], edx
mov dword [ebp - 0x290], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x418d35
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
je 0x418cff
mov edi, 1
mov bl, 1
lea edx, [ebp - 0x28c]
mov eax, dword [0x4d6dec]
call fcn.00406224
mov eax, dword [ebp - 0x28c]
push eax
lea eax, [ebp - 0x290]
mov edx, edi
add dl, 0x30
call fcn.004036f0
mov ecx, dword [ebp - 0x290]
lea eax, [ebp - 0x14]
pop edx
call fcn.004037e4
mov eax, dword [ebp - 0x14]
call fcn.00403998
push eax
push 0
push 4
call sub.KERNEL32.dll_OpenFileMappingA
mov esi, eax
test esi, esi
je 0x418cf0
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x418cea
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 4]
mov eax, dword [eax]
cmp edx, dword [esp + 4]
jne 0x418c7d
cmp eax, dword [esp]
pop edx
pop eax
jne 0x418ce1
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x418ce1
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
imul eax, dword [ebp - 8], 0x4e
mov edx, dword [ebp - 0x10]
push esi
push edi
lea esi, [edx + eax*8 + 0xc]
lea edi, [ebp - 0x288]
mov ecx, 0x9c
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
cmp byte [ebp - 0x288], 0
jne 0x418cc2
mov bl, 1
jmp 0x418ce1
lea eax, [ebp - 0x288]
push eax
call sub.KERNEL32.dll_GetModuleHandleA
cmp eax, dword [ebp - 4]
jne 0x418cd9
mov byte [ebp - 9], 1
jmp 0x418ce1
inc dword [ebp - 8]
dec dword [ebp - 0x18]
jne 0x418c99
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
push esi
call sub.KERNEL32.dll_CloseHandle
or bl, byte [ebp - 9]
jne 0x418cff
inc edi
cmp edi, 0xa
jne 0x418bf3
cmp byte [ebp - 9], 0
jne 0x418d0f
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00418a70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418d3c
lea eax, [ebp - 0x290]
mov edx, 2
call fcn.0040352c
lea eax, [ebp - 0x14]
call fcn.00403508
ret
Function at 0x41989c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffce4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov bl, 1
push ebp
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.004195e0
pop ecx
test al, al
jne 0x4199c4
push 0x104
lea eax, [ebp - 0x111]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x104
lea eax, [ebp - 0x31c]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
mov cl, 1
call fcn.004195e0
pop ecx
test al, al
jne 0x4199c4
push 0x104
lea eax, [ebp - 0x111]
push eax
mov eax, dword [0x4d8658]
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x104
lea eax, [ebp - 0x31c]
push eax
mov eax, dword [0x4d8658]
push eax
call sub.KERNEL32.dll_GetModuleFileNameW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
mov cl, 1
call fcn.004195e0
pop ecx
test al, al
jne 0x4199c4
lea eax, [ebp - 0x111]
push eax
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryA
lea eax, [ebp - 0x31c]
push eax
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
xor ecx, ecx
call fcn.004195e0
pop ecx
test al, al
jne 0x4199c4
push 0x104
lea eax, [ebp - 0x111]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryA
push 0x104
lea eax, [ebp - 0x31c]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
xor ecx, ecx
call fcn.004195e0
pop ecx
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41a230
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov edi, dword [ebp + 0xc]
cmp byte [ebp + 8], 0
je 0x41a25b
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
push ebx
call sub.KERNEL32.dll_VirtualProtectEx
test eax, eax
je 0x41a26f
lea eax, [ebp - 8]
push eax
push edi
mov eax, dword [ebp - 4]
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
jne 0x41a273
xor eax, eax
jmp 0x41a275
mov al, 1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x41a818
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
xor eax, eax
call fcn.00409fb8
mov dword [ebp - 0x23e], eax
mov esi, dword [ebp - 0x23e]
test esi, esi
je 0x41a9c8
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x23a]
push eax
push esi
push ebx
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x41a9c8
push ebx
push 0x2c9
call fcn.0040af30
mov esi, eax
cmp dword [ebp - 0x23a], 0
jne 0x41a884
xor eax, eax
mov dword [ebp - 0x236], eax
jmp 0x41a895
call fcn.00409f40
add eax, dword [ebp - 0x23a]
mov dword [ebp - 0x236], eax
mov dl, 1
mov eax, dword [0x4d6c6c]
call fcn.00409fb8
mov dword [ebp - 0x232], eax
mov dl, 1
mov eax, dword [0x4d6c38]
call fcn.00409fb8
mov dword [ebp - 0x22e], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x14]
push eax
call sub.KERNEL32.dll_lstrlenW
mov edi, eax
add edi, edi
mov word [ebp - 0x22a], di
add di, 2
mov word [ebp - 0x228], di
lea eax, [ebp - 0x222]
lea edx, [ebp - 0x23e]
sub eax, edx
mov edi, esi
add edi, 0x9b
add eax, edi
mov dword [ebp - 0x226], eax
movzx ecx, word [ebp - 0x228]
lea edx, [ebp - 0x222]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x14]
call fcn.004025ec
mov byte [ebp - 0x1a], 0xb8
mov dword [ebp - 0x19], edi
mov byte [ebp - 0x15], 0xe9
mov dword [ebp - 0x14], 0xfffffd37
call fcn.00409f40
add edi, 0x22e
sub edi, 0xa
sub edi, eax
mov dword [ebp - 0xc], edi
lea eax, [ebp - 8]
push eax
push 0x9b
push 0x4d728c
push esi
push ebx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x41a9c8
lea eax, [ebp - 8]
push eax
push 0x22e
lea eax, [ebp - 0x23e]
push eax
add esi, 0x9b
push esi
push ebx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x41a9c8
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
mov eax, dword [ebp - 0x23e]
push eax
push ebx
call sub.KERNEL32.dll_VirtualProtectEx
test eax, eax
je 0x41a9c8
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x23e]
push eax
push ebx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x41a9c8
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 4
mov eax, dword [ebp - 0x23e]
push eax
push ebx
call sub.KERNEL32.dll_VirtualProtectEx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41aa04
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdbc
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, eax
xor edi, edi
push esi
push 0x2ac
call fcn.0040af30
mov ebx, eax
test ebx, ebx
je 0x41abf5
cmp dword [0x4d6fd4], 0
jne 0x41aa46
mov dl, 1
mov eax, dword [0x4d6c38]
call fcn.00409fb8
mov dword [0x4d6fd4], eax
cmp dword [0x4d6fd8], 0
jne 0x41aa60
mov dl, 1
mov eax, dword [0x4d6c6c]
call fcn.00409fb8
mov dword [0x4d6fd8], eax
mov byte [ebp - 0x242], 0xb8
mov dword [ebp - 0x241], ebx
mov byte [ebp - 0x23d], 0xb9
lea eax, [ebx + 0x22d]
mov dword [ebp - 0x23c], eax
mov word [ebp - 0x238], 0xd1ff
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041a9d4
mov dword [ebp - 0x236], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x14]
push eax
call sub.KERNEL32.dll_lstrlenW
add eax, eax
mov word [ebp - 0x22d], ax
mov ax, word [ebp - 0x22d]
add ax, 2
mov word [ebp - 0x22b], ax
lea eax, [ebx + 0x1d]
mov dword [ebp - 0x229], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x14]
push eax
lea eax, [ebp - 0x225]
push eax
call sub.KERNEL32.dll_lstrcpyW
mov eax, dword [0x4d6fd8]
mov dword [ebp - 0x1d], eax
mov eax, dword [0x4d6fd4]
mov dword [ebp - 0x19], eax
cmp dword [ebp - 0x236], 0
je 0x41abf5
lea eax, [ebp - 0x10]
push eax
push 0x22e
lea eax, [ebp - 0x242]
push eax
push ebx
push esi
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x41abf5
cmp dword [ebp - 0x10], 0x22e
jne 0x41abf5
lea eax, [ebp - 0x10]
push eax
push 0x7e
push 0x4d73c8
lea eax, [ebx + 0x22d]
push eax
push esi
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x41abf5
cmp dword [ebp - 0x10], 0x7e
jne 0x41abf5
lea eax, [ebp - 0x10]
push eax
push 5
lea eax, [ebp - 9]
push eax
mov eax, dword [ebp - 0x236]
push eax
push esi
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x41abf5
cmp dword [ebp - 0x10], 5
jne 0x41abf5
lea eax, [ebp - 0x10]
push eax
push 5
lea eax, [ebp - 9]
push eax
lea eax, [ebx + 0x10]
push eax
push esi
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x41abf5
cmp dword [ebp - 0x10], 5
jne 0x41abf5
lea eax, [ebp - 0x14]
push eax
push 0x40
push 5
mov eax, dword [ebp - 0x236]
push eax
push esi
call sub.KERNEL32.dll_VirtualProtectEx
test eax, eax
je 0x41abf5
mov byte [ebp - 9], 0xe9
sub ebx, dword [ebp - 0x236]
sub ebx, 5
mov dword [ebp - 8], ebx
lea eax, [ebp - 0x10]
push eax
push 5
lea eax, [ebp - 9]
push eax
mov eax, dword [ebp - 0x236]
push eax
push esi
call sub.KERNEL32.dll_WriteProcessMemory
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 5
mov eax, dword [ebp - 0x236]
push eax
push esi
call sub.KERNEL32.dll_VirtualProtectEx
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41ac00
Capabilities:
Get number of processors

Disassembly:
mov eax, dword gs:[0x60]
mov edx, dword gs:[0x64]
ret
Function at 0x41de44
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
xor eax, eax
push ebp
push 0x41df21
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4d744c], 0
jne 0x41deed
lea edx, [ebp - 8]
mov eax, dword [0x4d6e28]
call fcn.00406224
push dword [ebp - 8]
lea edx, [ebp - 0xc]
mov eax, dword [0x4d6e30]
call fcn.00406224
push dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
call sub.KERNEL32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.00405dcc
push dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00403858
mov eax, dword [ebp - 4]
call fcn.00403998
push eax
push 4
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 [0x4d744c], eax
mov eax, dword [0x4d744c]
xor edx, edx
mov dword [eax], edx
push ebx
call sub.KERNEL32.dll_CloseHandle
cmp dword [0x4d744c], 0
je 0x41df04
mov eax, dword [0x4d744c]
call fcn.0041de34
mov ebx, eax
jmp 0x41df06
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41df28
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040352c
ret

Function at 0x41e6f0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
xor eax, eax
mov dword [ebp - 0x150], eax
xor eax, eax
push ebp
push 0x41e795
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
lea eax, [ebp - 0x150]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
call fcn.00403700
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 0x14c]
xor ecx, ecx
call fcn.0041cb9c
mov ebx, eax
test bl, bl
je 0x41e77c
mov eax, dword [ebp - 0x140]
push eax
call sub.KERNEL32.dll_CloseHandle
push 0x64
mov eax, dword [ebp - 0x12c]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
push 0
mov eax, dword [ebp - 0x12c]
push eax
call sub.KERNEL32.dll_TerminateThread
mov eax, dword [ebp - 0x144]
push eax
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp - 0x12c]
push eax
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e79c
lea eax, [ebp - 0x150]
call fcn.00403508
ret