joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4056d0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x42801c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x13c]
push edi
push 0x118
push 0
push eax
mov dword [ebp - 0x264], esi
xor bl, bl
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x140], 0x11c
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x405811
cmp dword [ebp - 0x13c], 6
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
ja 0x405748
jne 0x4057c9
cmp dword [ebp - 0x138], 2
jb 0x4057c9
push str.kernel32.dll
call edi
mov esi, eax
test esi, esi
je 0x4057c9
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4057c9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4057c9
movups xmm0, xmmword [0x420818]
push eax
movups xmmword [ebp - 0x24], xmm0
movups xmm0, xmmword [0x420828]
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4057c9
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 6]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4057c9
cmp word [esi + 2], ax
jbe 0x4057c9
movzx edx, word [esi + 0x32]
movzx ecx, word [esi + 0x30]
movzx eax, word [esi + 0x36]
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x134], eax
push str.ntdll.dll
call edi
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40580b
push 0x118
lea eax, [ebp - 0x258]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x25c], 0x11c
lea eax, [ebp - 0x25c]
push eax
call esi
mov esi, dword [ebp - 0x264]
cmp dword [ebp - 0x13c], 6
jae 0x40582f
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041873e
mov esp, ebp
pop ebp
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x260]
push eax
push 0
push 0
push 0x19
push esi
mov dword [ebp - 0x260], 0
call edi
push dword [ebp - 0x260]
call fcn.00418ea4
mov esi, eax
add esp, 4
test esi, esi
je 0x405898
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
push esi
push 0x19
push dword [ebp - 0x264]
call edi
test eax, eax
je 0x40588f
mov eax, dword [esi]
test eax, eax
je 0x40588f
cmp dword [eax + 8], 0x3000
setae bl
push esi
call fcn.00418e73
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041873e
mov esp, ebp
pop ebp
ret 4
Function at 0x415120
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c5b5
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x42801c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x1050
call fcn.0041874f
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
push 0x1050
push 0
push esi
call sub.VCRUNTIME140.dll_memset
lea ecx, [esi + 0x44]
mov dword [esi], 0
mov eax, ecx
mov dword [esi + 4], 0
neg eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
lea edx, [esi + 0x1044]
mov dword [esi + 0x10], 0
and eax, 3
mov dword [esi + 0x14], 0
add esp, 0x10
mov dword [esi + 0x18], 0
add eax, ecx
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [ebp - 0x14], esi
mov dword [edx], 0
mov dword [esi + 0x1048], 0
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edx
mov byte [ebp - 4], 2
mov dword [esi + 0x104c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov dword [edi], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x4ef94a2d
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0x6cdb020d
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0xbaebd0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x551000]
push edi
jmp 0xbaebea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xbaebf1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbaebe0
mov eax, 1
add ebx, ebx
jne 0xbaec03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xbaec14
jne 0xbaec33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbaec33
dec eax
add ebx, ebx
jne 0xbaec20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xbaebf8
add ebx, ebx
jne 0xbaec2f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xbaec85
xor ecx, ecx
sub eax, 3
jb 0xbaec4b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xbaecba
sar eax, 1
mov ebp, eax
jmp 0xbaec56
add ebx, ebx
jne 0xbaec56
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbaec24
inc ecx
add ebx, ebx
jne 0xbaec64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbaec24
add ebx, ebx
jne 0xbaec71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xbaec66
jne 0xbaec82
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xbaec66
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xbaeca4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xbaec96
jmp 0xbaebe6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xbaeca4
add edi, ecx
jmp 0xbaebe6
pop esi
mov edi, esi
mov ecx, 0x15bd1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xbaecc2
cmp byte [edi], 0x31
jne 0xbaecc2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xbaecc7
lea edi, [esi + 0x78a000]
mov eax, dword [edi]
or eax, eax
je 0xbaed3f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7d6840]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7d6a3c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xbaecf4
mov ecx, edi
jns 0xbaed23
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7d6a44]
or eax, eax
je 0xbaed39
mov dword [ebx], eax
add ebx, 4
jmp 0xbaed11
call dword [esi + 0x7d6a40]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xbaed79
cmp al, 0xef
ja 0xbaed63
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xbaed45
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
or eax, eax
jne 0xbaed52
mov eax, dword [edi]
add edi, 4
jmp 0xbaed52
mov ebp, dword [esi + 0x7d6a48]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x267]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xbaedad
sub esp, 0xffffff80
jmp 0x6724f9
Function at 0x402820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4ca014]
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 [0x4ca014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4ca014], ax
mov esp, ebp
pop ebp
ret

Function at 0x40338c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4cc03c], 0
je 0x4033ed
cmp word [0x4cc210], 0xd7b2
jne 0x4033b5
cmp dword [0x4cc218], 0
jbe 0x4033b5
mov eax, 0x4cc20c
call dword [0x4cc228]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ca05c
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 [0x4ca020], 0
jne 0x403409
push 0
push 0x4ca054
push 0x4ca05c
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 [0x4caea4], 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 [0x4caea4], eax
jmp 0x40fee7
xor eax, eax
mov dword [0x4caea4], eax
cmp dword [0x4caea4], 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 [0x4cadb8]
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 [0x4cadbc]
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 [0x4cae90]
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 [0x4cae60]
cmp eax, 0
je 0x410f52
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call dword [0x4caebc]
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 [0x4cad18]
call fcn.00409ea4
mov dword [0x4cc8ec], eax
xor edx, edx
mov eax, dword [0x4cad1c]
call fcn.00409ea4
mov dword [0x4cc8f0], 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 [0x4cada0]
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 [0x4cc8e0], esi
mov dword [0x4cc8e4], edi
cmp dword [0x4cc8ec], 0
je 0x414a88
cmp dword [0x4cc8f0], 0
jne 0x414b0a
mov dl, 1
mov eax, dword [0x4cac94]
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 [0x4cc8e8], 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 [0x4cc8ec]
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 [0x4cc8ec], 0
je 0x414b88
cmp dword [0x4cc8f0], 0
jne 0x414be1
mov dl, 1
mov eax, dword [0x4cac94]
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 [0x4cc8e8]
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 [0x4cc8f0]
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 [0x4cadec]
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 [0x4cc658]
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x104
lea eax, [ebp - 0x31c]
push eax
mov eax, dword [0x4cc658]
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 pe_nt_image_headers32
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