joyce8/EMBER2024-capa huggingface dataset:
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 [0x4d3ea4], 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 [0x4d3ea4], eax
jmp 0x40fee7
xor eax, eax
mov dword [0x4d3ea4], eax
cmp dword [0x4d3ea4], 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 [0x4d3db8]
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 [0x4d3dbc]
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 [0x4d3e90]
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 [0x4d3e60]
cmp eax, 0
je 0x410f52
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call dword [0x4d3ebc]
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 [0x4d3d18]
call fcn.00409ea4
mov dword [0x4d58ec], eax
xor edx, edx
mov eax, dword [0x4d3d1c]
call fcn.00409ea4
mov dword [0x4d58f0], 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 [0x4d3da0]
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 [0x4d58e0], esi
mov dword [0x4d58e4], edi
cmp dword [0x4d58ec], 0
je 0x414a88
cmp dword [0x4d58f0], 0
jne 0x414b0a
mov dl, 1
mov eax, dword [0x4d3c94]
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 [0x4d58e8], 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 [0x4d58ec]
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 [0x4d58ec], 0
je 0x414b88
cmp dword [0x4d58f0], 0
jne 0x414be1
mov dl, 1
mov eax, dword [0x4d3c94]
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 [0x4d58e8]
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 [0x4d58f0]
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x417c98
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x417dd2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x14]
mov ecx, ebx
mov edx, 0x417de8
call fcn.00403cb0
mov eax, dword [ebp - 0x14]
call fcn.00403c94
push eax
call sub.KERNEL32.dll_CreateFileW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x417dba
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
add ecx, 0x18
mov edi, dword [ebp - 8]
mov edi, dword [edi]
sub edi, 0x18
dec edi
test edi, edi
jl 0x417d26
inc edi
xor esi, esi
mov al, byte [ebp - 0x10]
xor al, byte [ecx]
mov edx, esi
and dl, 0xff
xor al, dl
mov byte [ecx], al
inc ecx
inc esi
dec edi
jne 0x417d13
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
sub edx, 0x18
mov eax, dword [ebp - 8]
add eax, 0x18
call fcn.0040eacc
mov eax, dword [ebp - 8]
lea esi, [ebp - 0x28]
lea edi, [eax + 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]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 8]
add ecx, 0x18
mov edi, dword [ebp - 8]
mov edi, dword [edi]
sub edi, 0x18
dec edi
test edi, edi
jl 0x417d88
inc edi
xor esi, esi
mov eax, esi
mov ebx, 0x14
cdq
idiv ebx
mov eax, dword [ebp - 8]
mov al, byte [eax + edx + 4]
xor edx, edx
mov dl, al
shr edx, 4
xor dl, byte [ecx]
and al, 0xf
shl eax, 4
xor dl, al
mov byte [ecx], dl
inc ecx
inc esi
dec edi
jne 0x417d60
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_DeviceIoControl
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_CloseHandle
jmp 0x417dbc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417dd9
lea eax, [ebp - 0x14]
call fcn.00403b18
ret

Function at 0x417df4
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, edx
mov edi, eax
push esp
push 0xf003f
push 0
push ebp
push edi
call sub.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
jne 0x417e51
xor esi, esi
push 0x208
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
jmp 0x417e2d
mov edx, ebx
mov eax, dword [esp]
call fcn.00417df4
inc esi
push 0x104
push ebx
push esi
mov eax, dword [esp + 0xc]
push eax
call sub.ADVAPI32.dll_RegEnumKeyW
test eax, eax
je 0x417e22
push ebx
call sub.KERNEL32.dll_LocalFree
mov eax, dword [esp]
push eax
call sub.ADVAPI32.dll_RegCloseKey
push ebp
push edi
call sub.ADVAPI32.dll_RegDeleteKeyW
pop edx
pop ebp
pop edi
pop esi
pop ebx
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 [0x4d3dec]
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 [0x4d5658]
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x104
lea eax, [ebp - 0x31c]
push eax
mov eax, dword [0x4d5658]
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 0x41a430
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax], 0
je 0x41a4c7
push 2
lea ecx, [ebp - 2]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0041a204
test al, al
je 0x41a4c7
cmp word [ebp - 2], 0x5a4d
jne 0x41a4c7
push 4
lea ecx, [ebp - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
add edx, 0x3c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0041a204
test al, al
je 0x41a4c7
push 0xf8
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
add edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0041a204
test al, al
je 0x41a4c7
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
cmp dword [eax], 0x4550
jne 0x41a4c7
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
test byte [eax + 0x17], 0x20
je 0x41a4cb
xor eax, eax
jmp 0x41a4cd
mov al, 1
test al, al
je 0x41a4ea
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx]
movzx ecx, word [ebp - 2]
add edx, ecx
add edx, 0x78
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov dword [ecx], edx
pop ecx
pop ecx
pop ebp
ret
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 [0x4d3c6c]
call fcn.00409fb8
mov dword [ebp - 0x232], eax
mov dl, 1
mov eax, dword [0x4d3c38]
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 0x4d428c
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 [0x4d3fd4], 0
jne 0x41aa46
mov dl, 1
mov eax, dword [0x4d3c38]
call fcn.00409fb8
mov dword [0x4d3fd4], eax
cmp dword [0x4d3fd8], 0
jne 0x41aa60
mov dl, 1
mov eax, dword [0x4d3c6c]
call fcn.00409fb8
mov dword [0x4d3fd8], 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 [0x4d3fd8]
mov dword [ebp - 0x1d], eax
mov eax, dword [0x4d3fd4]
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 0x4d43c8
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 0x41b024
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 8]
cmp byte [eax + 8], 0
jne 0x41b053
mov eax, dword [ebp + 8]
push eax
mov edx, esi
mov eax, ebx
call fcn.0041a280
pop ecx
test al, al
je 0x41b162
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x100]
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0041a4f0
pop ecx
test al, al
je 0x41b15e
lea eax, [ebp - 0x194]
mov edx, 0x94
call fcn.00404eb4
mov dword [ebp - 0x194], 0x94
lea eax, [ebp - 0x194]
push eax
call sub.KERNEL32.dll_GetVersionExA
cmp dword [ebp - 0x184], 2
jne 0x41b141
push ebx
call fcn.00416f8c
test eax, eax
je 0x41b0ce
push ebp
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, ebx
call fcn.0041ad4c
pop ecx
mov edi, eax
jmp 0x41b11a
cmp dword [ebp - 0x190], 5
ja 0x41b0e9
cmp dword [ebp - 0x190], 5
jne 0x41b0ff
cmp dword [ebp - 0x18c], 0
jbe 0x41b0ff
call fcn.00416ff0
test eax, eax
jne 0x41b0ff
push ebp
mov eax, ebx
call fcn.0041a818
pop ecx
mov edi, eax
jmp 0x41b11a
push ebp
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, ebx
call fcn.0041aa04
pop ecx
mov edi, eax
cmp edi, 1
jne 0x41b167
mov eax, dword [ebp + 8]
cmp byte [eax + 8], 0
jne 0x41b13a
mov eax, dword [ebp + 8]
push eax
mov edx, esi
mov eax, ebx
call fcn.0041a280
pop ecx
test al, al
je 0x41b167
mov edi, 2
jmp 0x41b167
push ebp
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, ebx
call fcn.0041a590
pop ecx
mov edi, eax
jmp 0x41b167
xor edi, edi
jmp 0x41b167
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41c280
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x10]
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 esi, ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
push 0
push 0
push 1
push 0
push 0
push 0
push 0xffffffffffffffff
push 1
push 0
push 1
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
call fcn.0041b31c
mov ebx, eax
test bl, bl
je 0x41c2d2
test esi, 4
jne 0x41c2dd
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_ResumeThread
jmp 0x41c2dd
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_TerminateProcess
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8