joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472016
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, ecx
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x18]
push ebx
push edi
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
mov ebx, dword [eax + 0x1050]
mov edi, dword [eax + 0x105c]
mov edx, dword [eax + 0x18]
imul edi, ebx
add edi, edx
cmp edx, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x24], edi
jae 0x47213a
push esi
mov esi, 0xf0
mov eax, dword [eax + 0x1058]
add eax, edx
add ebx, edx
cmp edx, eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], eax
jae 0x472114
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
movzx edi, byte [edx + 1]
mov dword [ebp - 4], ecx
movzx ecx, byte [edx]
mov ebx, ecx
and ebx, 0xf
mov edx, eax
and edx, 0xf
add edx, ebx
mov ebx, dword [ebp - 4]
and ebx, 0xf
add edx, ebx
mov dword [ebp - 0x1c], ecx
and cx, si
mov ebx, edi
and ebx, 0xf
lea edx, [edx + ebx + 2]
mov ebx, eax
and bx, si
shr edx, 2
and ax, si
add ebx, ecx
mov ecx, dword [ebp - 4]
and cx, si
add ebx, ecx
mov ecx, edi
and cx, si
and di, si
lea ecx, [ebx + ecx + 0x20]
shr ecx, 2
xor dl, cl
mov ecx, dword [ebp - 0x1c]
and cx, si
mov ebx, dword [ebp - 0x10]
and dl, 0xf
add eax, ecx
mov ecx, dword [ebp - 4]
and cx, si
add eax, ecx
lea eax, [eax + edi + 0x20]
shr eax, 2
xor dl, al
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [eax], dl
mov edx, dword [ebp - 0xc]
inc edx
inc edx
inc ebx
inc ebx
cmp edx, dword [ebp - 0x20]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ebx
jb 0x472074
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax + 4]
add ecx, dword [ebx + 0x1050]
mov eax, dword [eax]
mov ebx, dword [eax + 0x1050]
lea edx, [edx + ebx*2]
cmp edx, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jb 0x472056
pop esi
pop edi
xor eax, eax
pop ebx
leave
ret
Function at 0x479c49
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov edi, ecx
jne 0x479c75
push str.Invalid_file_name
push esi
call fcn.0046de9c
pop ecx
pop ecx
mov eax, 0x8876086c
jmp 0x479d8e
cmp dword [ebp + 0xc], esi
je 0x479cf8
lea eax, [ebp - 0x9c]
push eax
mov dword [ebp - 0x9c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x8c], 2
je 0x479cd8
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push esi
call ebx
mov dword [ebp - 8], eax
add eax, 3
and eax, 0xfffffffc
call fcn.004dd000
mov dword [ebp + 0xc], esp
push esi
push esi
push dword [ebp - 8]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push esi
call ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], esi
cmp dword [ebp + 0xc], esi
je 0x479cf8
push esi
push 0x10000000
push 3
push esi
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x479d11
push esi
push 0x10000000
push 3
push esi
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x479d51
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x479d51
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
je 0x479d51
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
jne 0x479d8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push esi
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push esi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [ebp - 4]
push 0x52f3e0
push esi
call fcn.0046de9c
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 0x88760b59
jmp 0x479d8e
xor eax, eax
lea esp, [ebp - 0xa8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x47b013
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x47b045
push esi
call fcn.0048d616
cmp byte [esi + 0x40], 0
pop ecx
je 0x47b03e
mov dword [esi + 0x10], 0xcf
mov al, 1
jmp 0x47b0d7
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x47b0b4
mov eax, dword [esi + 0x18c]
cmp byte [eax + 0x10], 0
je 0x47b0a9
mov eax, dword [esi + 8]
test eax, eax
je 0x47b066
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x18c]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x47b0a5
cmp eax, 2
je 0x47b0a9
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47b05b
cmp eax, 3
je 0x47b08a
cmp eax, 1
jne 0x47b05b
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x47b05b
mov edx, dword [esi + 0x118]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x47b05b
xor al, al
jmp 0x47b0d7
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x47b0d2
cmp eax, 0xcc
je 0x47b0d2
mov eax, dword [esi]
mov dword [eax + 0x14], 0x12
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
call fcn.0047aee4
pop esi
pop ebp
ret

Function at 0x48ef69
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x48ef77
xor eax, eax
pop ebp
ret
cmp dword [ebp + 0x10], 8
push esi
mov esi, dword [ebp + 8]
not esi
mov ecx, 0xff
jb 0x48f04b
mov eax, dword [ebp + 0x10]
push ebx
shr eax, 3
push edi
xor ebx, ebx
mov bl, byte [edx]
mov edi, esi
shr edi, 8
sub dword [ebp + 0x10], 8
xor ebx, esi
and ebx, ecx
mov esi, dword [ebx*4 + 0x517c70]
xor ebx, ebx
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x517c70]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x517c70]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x517c70]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x517c70]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x517c70]
shr esi, 8
xor edi, esi
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x517c70]
shr edi, 8
xor esi, edi
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x517c70]
shr esi, 8
xor esi, edi
inc edx
dec eax
jne 0x48ef94
pop edi
pop ebx
cmp dword [ebp + 0x10], 0
je 0x48f06b
xor eax, eax
mov al, byte [edx]
xor eax, esi
and eax, ecx
mov eax, dword [eax*4 + 0x517c70]
shr esi, 8
xor esi, eax
inc edx
dec dword [ebp + 0x10]
jne 0x48f051
mov eax, esi
not eax
pop esi
pop ebp
ret
Function at 0x499a90
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
jne 0x499a9a
ret 0xc
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
push ecx
push edx
call fcn.004d5f60
add esp, 0x10
ret 0xc

Function at 0x499ac0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
jne 0x499aca
ret 0xc
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
push ecx
push edx
call fcn.004da2f0
add esp, 0x10
ret 0xc

Function at 0x49b8c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x50e218
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
mov ebp, dword [esp + 0x38]
push esi
push edi
push ebx
push ebp
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
cmp eax, ebx
je 0x49b973
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x49b983
mov ebp, vtable.CxMemFile.0
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
mov byte [esp + 0x1c], bl
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
mov dword [esp + 0x38], ebx
call sym.RMK.exe_public:_bool___thiscall_CxImage::Decode_class_CxFile___unsigned_long_int_
mov byte [esp + 0x38], al
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x10], ebp
je 0x49b95a
cmp byte [esp + 0x1c], bl
je 0x49b95a
push eax
call fcn.004d6cd0
add esp, 4
mov al, byte [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
add edi, 0x44
mov ecx, 6
mov esi, str.Unable_to_load_resource_
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc

Function at 0x49b9d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x50e218
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov edi, dword [esp + 0x38]
mov esi, ecx
push edi
mov dword [esi], vtable.CxImage.0
call sym.RMK.exe_protected:_void___thiscall_CxImage::Startup_unsigned_long_int_
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
test eax, eax
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 8], vtable.CxMemFile.0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], ecx
mov byte [esp + 0x14], al
push edi
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
call sym.RMK.exe_public:_bool___thiscall_CxImage::Decode_class_CxFile___unsigned_long_int_
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 8], vtable.CxMemFile.0
je 0x49ba5e
cmp byte [esp + 0x14], 0
je 0x49ba5e
push eax
call fcn.004d6cd0
add esp, 4
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x4a5f48
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4a5f81
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a22ff
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00407bd0
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4a7b2e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4a7b71
call fcn.004b3cbc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4a7b71
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4a7b8c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004a76e5
test ebx, ebx
mov esi, eax
je 0x4a7b8a
test edi, edi
je 0x4a7b8a
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4aa2d4
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x50ec54
call fcn.004df160
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4aa2f9
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4aa345
call fcn.004a7b93
push eax
lea ecx, [ebp - 0x10]
call fcn.00401bb0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004a9205
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401870
mov eax, esi
call fcn.004df220
ret 8
Function at 0x4b54bd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4b54d3
mov edi, dword [esi + 0xc]
jmp 0x4b5513
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4b54ec
call fcn.004a8173
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4b5501
call fcn.004a8173
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4b5513
call fcn.004a8173
call fcn.004b3cbc
cmp dword [eax + 0x3c], 0
je 0x4b5528
push edi
mov ecx, ebx
call fcn.004b43a2
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004b53d7
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4b5546
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4b5552
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4bf31c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x54a050]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004bf2b1
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004deb60
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4bf36b
cmp dword [ebp - 0x1c], 5
jb 0x4bf383
jmp 0x4bf37f
cmp dword [ebp - 0x10], 1
jne 0x4bf383
cmp dword [ebp - 0x1c], 4
ja 0x4bf37f
jne 0x4bf383
cmp dword [ebp - 0x18], 0
jbe 0x4bf383
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x51d5a0
call fcn.004bf1a2
test eax, eax
jge 0x4bf3a4
mov byte [0xaa9870], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004d1930
add ebp, 0x78
leave
ret
Function at 0x4bfa50
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 0xc]
cmp ecx, 0xc
jb 0x4bfb0a
mov eax, dword [esp + 8]
cmp byte [eax], 0x41
jne 0x4bfb0a
cmp byte [eax + 1], 0x64
jne 0x4bfb0a
cmp byte [eax + 2], 0x6f
jne 0x4bfb0a
cmp byte [eax + 3], 0x62
jne 0x4bfb0a
cmp byte [eax + 4], 0x65
jne 0x4bfb0a
push ebx
xor ecx, ecx
mov cl, byte [eax + 7]
push ebp
push esi
push edi
mov edi, ecx
xor edx, edx
mov dl, byte [eax + 8]
xor ecx, ecx
mov cl, byte [eax + 9]
mov esi, dword [esp + 0x14]
shl edi, 8
add edi, edx
mov ebp, ecx
xor edx, edx
xor ecx, ecx
mov dl, byte [eax + 0xa]
mov cl, byte [eax + 0xb]
shl ebp, 8
add ebp, edx
xor edx, edx
mov dl, byte [eax + 5]
xor ebx, ebx
mov bl, byte [eax + 6]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi]
mov dword [ecx + 0x1c], edi
shl edx, 8
add ecx, 0x18
add edx, ebx
mov ebx, dword [esp + 0x1c]
push 1
mov dword [ecx], edx
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], ebx
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x4c
mov ecx, dword [esi]
call dword [ecx + 4]
add esp, 8
mov byte [esi + 0x108], 1
mov byte [esi + 0x109], bl
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 4]
push 1
push eax
mov edx, dword [eax]
mov dword [edx + 0x14], 0x4e
mov edx, dword [esp + 0x18]
add ecx, edx
mov edx, dword [eax]
mov dword [edx + 0x18], ecx
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
ret
Function at 0x4c12e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4c1310
push esi
call fcn.004c17e0
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x4c1309
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4c1393
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x4c137f
mov eax, dword [esi + 8]
test eax, eax
je 0x4c1334
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4c137b
cmp eax, 2
je 0x4c137f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4c1327
cmp eax, 3
je 0x4c135a
cmp eax, 1
jne 0x4c1327
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4c1327
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4c1327
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.004c13c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4c13b3
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.004c13c0
add esp, 4
pop esi
ret

Function at 0x4d1930
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x54a050]
jne 0x4d193a
repz ret
jmp fcn.004e21f0
Function at 0x401230
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov dword [ebp - 0xc], 0
push eax
push ebx
push ecx
push edx
mov eax, 0x564d5868
mov ecx, 0xa
mov dx, 0x5658
in eax, dx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ecx
pop edx
pop ecx
pop ebx
pop eax
cmp dword [ebp - 4], 0x564d5868
jne 0x401275
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401930
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x24
push 0
push 0x414900
call fcn.0040a430
add esp, 0xc
push 0x23
push 0x414900
call fcn.0040aa20
add esp, 8
push 0xc
push 0
lea eax, [ebp - 0xc]
push eax
call fcn.0040a430
add esp, 0xc
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 1
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x414900
push 0x494
push 0
push 4
lea ecx, [ebp - 0xc]
push ecx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [0x414954], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4019c1
mov edx, dword [0x414954]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401936
push 0
push 0
push 0
push 6
mov eax, dword [0x414954]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x414938], eax
push 0x494
push 0xff
mov ecx, dword [0x414938]
push ecx
call fcn.0040a430
add esp, 0xc
push 0x494
push 0
mov edx, dword [0x414938]
push edx
call fcn.0040a430
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x401a10
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 6
mov eax, dword [0x414954]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x414938], eax
cmp dword [0x414938], 0
jne 0x401a39
xor eax, eax
jmp 0x401a3e
mov eax, 1
pop ebp
ret
Function at 0x401a40
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov dword [ebp - 0x9c], 1
push 0x80
push 0
lea eax, [ebp - 0x88]
push eax
call fcn.0040a430
add esp, 0xc
push 0x4104f4
lea ecx, [ebp - 0x88]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x4103c0
lea edx, [ebp - 0x88]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [0x4148f4], 0
jne 0x401b08
mov dword [ebp - 0x9c], 0
push 0xc
push 0
lea eax, [ebp - 0x98]
push eax
call fcn.0040a430
add esp, 0xc
mov dword [ebp - 0x98], 0xc
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 1
lea ecx, [ebp - 0x88]
push ecx
push 0x818
push 0
push 4
lea edx, [ebp - 0x98]
push edx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [0x4148f4], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x414984], eax
push 0
push 0
push 0
push 6
mov eax, dword [0x4148f4]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x413ee8], eax
cmp dword [ebp - 0x9c], 0
jne 0x401c04
push 0x4103c0
call fcn.0040aae0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004073e0
add esp, 4
mov dword [ebp - 0xa4], eax
mov edx, dword [ebp - 4]
push edx
call fcn.0040a410
add esp, 4
mov dword [ebp - 0xa0], 0
lea eax, [ebp - 0xa0]
push eax
mov ecx, dword [ebp - 0xa4]
push ecx
call fcn.00409c30
add esp, 8
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jne 0x401b92
call fcn.00401c10
jmp 0x401bbb
push 0x818
mov edx, dword [ebp - 0x8c]
push edx
mov eax, dword [0x413ee8]
push eax
call fcn.0040a470
add esp, 0xc
mov ecx, dword [ebp - 0x8c]
push ecx
call fcn.0040a410
add esp, 4
mov edx, dword [ebp - 0xa4]
push edx
call fcn.0040a410
add esp, 4
cmp dword [ebp + 8], 0
je 0x401bfa
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
push 0x800
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x413ee8]
add edx, 0x10
push edx
call fcn.00401c80
add esp, 0x14
mov dword [ebp - 0x9c], 1
mov esp, ebp
pop ebp
ret
Function at 0x401da0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x648
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x648], 0
push 0
push 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x63c], eax
cmp dword [ebp - 0x63c], 0
je 0x401e10
xor eax, eax
jmp 0x401ed9
mov ecx, dword [ebp - 0x224]
add ecx, 1
mov dword [ebp - 0x224], ecx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x648]
cmp eax, dword [ebp - 0x220]
jae 0x401ed4
mov dword [ebp - 0x640], 0x208
mov dword [ebp - 4], 0x105
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x21c]
push eax
push 0
lea ecx, [ebp - 0x640]
push ecx
lea edx, [ebp - 0x638]
push edx
mov eax, dword [ebp - 0x648]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x63c], eax
cmp dword [ebp - 0x63c], 0
je 0x401e91
xor eax, eax
jmp 0x401ed9
cmp dword [ebp - 0x21c], 1
jne 0x401eb5
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x638]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp + 0xc]
mov dword [ebp - 0x644], eax
cmp dword [ebp - 0x644], 0
jne 0x401ec0
jmp 0x401ed4
mov edx, dword [ebp - 0x648]
add edx, 1
mov dword [ebp - 0x648], edx
jmp 0x401e28
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x402200
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
jmp 0x402218
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 5
jge 0x402246
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0x402070
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0xc], eax
push 0xffffffffffffffff
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40220f
mov esp, ebp
pop ebp
ret

Function at 0x402290
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jb 0x4022c0
mov eax, 1
jmp 0x4022c2
xor eax, eax
mov esp, ebp
pop ebp
ret