joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e540
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0x4d8df8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20], 0
push 0x4d8ddc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0
jne 0x45e579
jmp 0x45e621
push 0x4d8d90
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
push 0x4d8d9c
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
push 0x4d8d30
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
push 0x4d8d40
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
push 0x4d8dbc
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], eax
push 0x4d8d50
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
push 0x4d8dac
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x460870
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
push 0
push 0
push 0x476
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4608a7
mov eax, 1
jmp 0x46090b
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4608bc
mov eax, 1
jmp 0x46090b
mov dword [ebp - 8], 0xffffff37
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 0x18]
call fcn.004b99ed
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0x4e
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4608fa
xor eax, eax
jmp 0x46090b
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x46ae90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x46aea0
xor eax, eax
jmp 0x46b03d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x46affe
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4dab58]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4dab58]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x4dab58]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4dab58]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4dab58]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x4dab58]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4dab58]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4dab58]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x46aea9
cmp dword [ebp + 0x10], 0
je 0x46b037
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4dab58]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x46b004
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x46b040
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
and eax, 0xff
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4dab58]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0xff
mov edx, dword [ebp + 8]
add ecx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
imul edx, edx, 0x8088405
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shr edx, 0x18
mov eax, dword [ebp + 8]
xor edx, dword [eax + 8]
and edx, 0xff
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4dab58]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x46bff0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x14]
movzx edx, byte [ecx]
test edx, edx
je 0x46c03f
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x46c035
mov edx, dword [ebp + 0x14]
mov byte [edx + 8], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x46c099
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
cmp ecx, dword [edx + 0x18]
jbe 0x46c05f
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x18]
sub edx, dword [ecx + 0x1c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 0x1c]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.0049ce00
add esp, 0xc
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x46d6e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x46d6fa
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 4], 0xffffffff
je 0x46d704
mov eax, section..vm
jmp 0x46d7de
mov edx, dword [ebp - 0x18]
add edx, 0x240
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp - 0x18]
add eax, 0x240
push eax
call fcn.0049d13d
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dx, word [ecx + eax*2 + 0x23e]
mov word [ebp - 8], dx
movzx eax, word [ebp - 8]
cmp eax, 0x5c
je 0x46d762
movzx ecx, word [ebp - 8]
cmp ecx, 0x2f
je 0x46d762
push 0x4d2938
mov edx, dword [ebp - 0x18]
add edx, 0x240
push edx
call fcn.0049d57a
add esp, 8
cmp dword [ebp + 0x10], 1
jne 0x46d796
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x10], eax
xor ecx, ecx
cmp dword [ebp - 0x10], 0xffffffff
setne cl
mov byte [ebp - 0x11], cl
movzx edx, byte [ebp - 0x11]
test edx, edx
jne 0x46d796
mov eax, 0x2000000
jmp 0x46d7de
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0046bcd0
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x46d7bc
mov eax, dword [ebp - 0xc]
jmp 0x46d7de
mov ecx, dword [ebp - 4]
push ecx
call fcn.0046c3a0
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x46d7dc
mov eax, 0x200
jmp 0x46d7de
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46df80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4fb770]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
test ecx, ecx
jne 0x46dfa0
jmp 0x46e08d
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x218]
movzx edx, word [ecx]
test edx, edx
je 0x46dff2
mov eax, dword [ebp - 0x218]
movzx ecx, word [eax]
cmp ecx, 0x2f
je 0x46dfd8
mov edx, dword [ebp - 0x218]
movzx eax, word [edx]
cmp eax, 0x5c
jne 0x46dfe1
mov ecx, dword [ebp - 0x218]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x218]
add edx, 2
mov dword [ebp - 0x218], edx
jmp 0x46dfaf
mov eax, dword [ebp - 4]
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
je 0x46e055
mov edx, dword [ebp - 4]
sub edx, dword [ebp + 0xc]
sar edx, 1
shl edx, 1
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x420]
push ecx
call fcn.0049ce00
add esp, 0xc
mov edx, dword [ebp - 4]
sub edx, dword [ebp + 0xc]
sar edx, 1
mov word [ebp + edx*2 - 0x420], 0
lea eax, [ebp - 0x420]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0046df80
add esp, 8
mov edx, dword [ebp - 0x214]
add edx, 2
mov dword [ebp - 0x214], edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.0049d5a4
add esp, 8
mov edx, dword [ebp - 0x214]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.0049d57a
add esp, 8
push 0
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 8]
call fcn.0049d184
mov esp, ebp
pop ebp
ret
Function at 0x47b450
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca298
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0x4db7c8
mov ecx, dword [ebp - 0x1c]
add ecx, 4
call fcn.0047bd50
mov ecx, dword [ebp - 0x1c]
add ecx, 0x2c
mov dword [ebp - 0x18], ecx
call fcn.004ba5ee
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
call dword [eax + 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
mov edx, dword [ebp - 0x18]
mov dword [edx], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x28], ecx
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x30], 0x40
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x34], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x38], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x28]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [eax + 0x18]
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x20], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x47ce00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca39e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov dword [eax], 0x4db824
mov ecx, dword [ebp - 0x28]
add ecx, 8
mov dword [ebp - 0x18], ecx
call fcn.004ba5ee
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
call dword [eax + 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
mov edx, dword [ebp - 0x18]
mov dword [edx], ecx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
add eax, 0x34
mov dword [ebp - 0x24], eax
call fcn.004ba5ee
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x20]
call dword [edx + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x28]
add ecx, 0x44
call fcn.004b495d
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0xc], 0x40
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x14], 0x2710
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x20], 0
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x3c], 1
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x40], 1
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x58], 1
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x18], 0
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x28], 0
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x2c], 0
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x24], 0
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x30], 0
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x38], 0
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x5c], 0
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x60], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x487720
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
cmp eax, 3
push ebx
push esi
jne 0x487789
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov cx, word [eax + 0x118]
test cx, cx
jne 0x48774b
test byte [eax + 0x230], 1
jne 0x487768
movzx si, byte [edx]
cmp si, cx
jbe 0x487768
push 0x4f82ac
push eax
call fcn.00489310
add esp, 8
pop esi
pop ebx
add esp, 8
ret
mov cl, byte [edx]
push 1
mov byte [esp + 0xc], cl
lea edx, [esp + 0xc]
push edx
push 0x4dc08c
push eax
call fcn.00486560
add esp, 0x10
pop esi
pop ebx
add esp, 8
ret
test al, 2
je 0x487801
mov esi, dword [esp + 0x18]
xor eax, eax
lea ecx, [esp + 8]
mov ax, word [esi + 2]
push eax
push ecx
call fcn.00486540
xor edx, edx
lea eax, [esp + 0x12]
mov dx, word [esi + 4]
push edx
push eax
call fcn.00486540
xor ecx, ecx
lea edx, [esp + 0x1c]
mov cx, word [esi + 6]
push ecx
push edx
call fcn.00486540
mov eax, dword [esp + 0x2c]
add esp, 0x18
cmp byte [eax + 0x127], 8
jne 0x4877fa
mov cl, byte [esp + 0xc]
mov bl, byte [esp + 0xa]
mov dl, byte [esp + 8]
or cl, bl
or cl, dl
je 0x4877fa
push 0x4f826c
push eax
call fcn.00489310
add esp, 8
pop esi
pop ebx
add esp, 8
ret
push 6
jmp 0x487770
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
xor eax, eax
mov edx, 1
mov ax, word [ecx + 8]
mov cl, byte [esi + 0x127]
shl edx, cl
cmp eax, edx
jl 0x487834
push 0x4f822c
push esi
call fcn.00489310
add esp, 8
pop esi
pop ebx
add esp, 8
ret
push eax
lea eax, [esp + 0xc]
push eax
call fcn.00486540
lea ecx, [esp + 0x10]
push 2
push ecx
push 0x4dc08c
push esi
call fcn.00486560
add esp, 0x18
pop esi
pop ebx
add esp, 8
ret
Function at 0x48e900
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x48e90b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x48ea0e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x4dc2f8]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4dc2f8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4dc2f8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4dc2f8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4dc2f8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4dc2f8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4dc2f8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4dc2f8]
xor eax, edx
inc ecx
dec edi
jne 0x48e926
pop edi
test esi, esi
je 0x48ea30
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4dc2f8]
xor eax, edx
inc ecx
dec esi
jne 0x48ea12
pop esi
pop ebx
not eax
ret
Function at 0x4a0b50
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4e1390
call fcn.004a09d0
push 8
call fcn.004a2053
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x500928], esi
jne 0x4a0b84
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x500924], esi
mov al, byte [ebp + 0x10]
mov byte [0x500920], al
cmp dword [ebp + 0xc], edi
jne 0x4a0bce
cmp dword [0x5012a8], edi
je 0x4a0bbe
mov eax, dword [0x5012a4]
sub eax, 4
mov dword [0x5012a4], eax
cmp eax, dword [0x5012a8]
jb 0x4a0bbe
mov eax, dword [eax]
cmp eax, edi
je 0x4a0b9f
call eax
jmp 0x4a0b9f
push 0x4f6308
mov eax, 0x4f6300
call fcn.004a0ace
pop ecx
push 0x4f6314
mov eax, 0x4f630c
call fcn.004a0ace
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4a0bff
cmp dword [ebp + 0x10], edi
jne 0x4a0c0d
mov dword [0x500928], esi
push dword [ebp + 8]
call fcn.004a0a8c
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4a0c0c
push 8
call fcn.004a1f9e
pop ecx
ret
call fcn.004a0a0b
ret

Function at 0x4a0c81
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0049ec70
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4a0d1c
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x5008e8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4a0d1c
cmp eax, 1
je 0x4a0d3d
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4a0d1c
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4a0ce9
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4a0d18
xor eax, eax
inc eax
jmp 0x4a0d5c
cmp edi, eax
jae 0x4a0d20
xor eax, eax
jmp 0x4a0d5c
cmp eax, esi
jae 0x4a0d27
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x5008e8]
jmp 0x4a0d40
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a1739
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x500b3c]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x4a1782
call ebp
mov esi, eax
cmp esi, ebx
je 0x4a1768
mov dword [0x500b3c], 1
jmp 0x4a1787
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4a177d
push 2
pop eax
mov dword [0x500b3c], eax
jmp 0x4a1782
mov eax, dword [0x500b3c]
cmp eax, 1
jne 0x4a17df
cmp esi, ebx
jne 0x4a179a
call ebp
mov esi, eax
cmp esi, ebx
jne 0x4a179a
xor eax, eax
jmp 0x4a1886
cmp word [esi], bx
mov eax, esi
je 0x4a17af
inc eax
inc eax
cmp word [eax], bx
jne 0x4a17a1
inc eax
inc eax
cmp word [eax], bx
jne 0x4a17a1
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0049e61f
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x4a17d2
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x4a1886
push ebp
push esi
push edi
call fcn.0049ce00
add esp, 0xc
jmp 0x4a17c4
cmp eax, 2
je 0x4a17e8
cmp eax, ebx
jne 0x4a1793
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x4a1793
cmp byte [ebp], bl
mov esi, ebp
je 0x4a181e
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x4a1793
push esi
add edi, eax
call fcn.0049d6c0
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x4a17fb
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0049e61f
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x4a1897
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x4a1878
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x4a188d
push edi
call fcn.0049d6c0
push esi
lea edi, [edi + eax + 1]
call fcn.0049d13d
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x4a183e
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.0049dd5b
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x4a1793
Function at 0x4a18a3
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x500b40]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x4a18e3
call esi
test eax, eax
je 0x4a18c8
mov dword [0x500b40], 1
jmp 0x4a18e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4a18df
mov dword [0x500b40], 2
jmp 0x4a18f1
xor eax, eax
jmp 0x4a193f
cmp eax, 1
jne 0x4a18ec
call esi
jmp 0x4a193f
cmp eax, 2
jne 0x4a18df
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x4a1937
lea eax, [esi + esi]
push eax
call fcn.0049e61f
mov ebp, eax
test ebp, ebp
pop ecx
je 0x4a1937
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x4a193b
push ebp
call fcn.0049dd5b
pop ecx
xor eax, eax
jmp 0x4a193d
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret