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

Disassembly:
test dword [edx - 0x18], ebp
and ecx, dword [esi - 0x42]
dec edi
push ds
mov dl, 0xc1
shr byte [edx + 0x40], 1
push 0x40
mov eax, 0x186c0909
call fcn.18615cb5
mov edi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov ebx, dword [ebp + 0xc]
xor edx, edx
push ecx
push edx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x4c], eax
push ecx
push edx
push ebx
push eax
mov dword [ebp - 0x44], edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x186cbc85
mov eax, dword [ebp - 0x44]
add eax, 2
push eax
call fcn.185ab940
pop ecx
mov esi, eax
lea eax, [ebp - 0x44]
push eax
push esi
lea eax, [ebp - 0x48]
push eax
push 0
push ebx
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x186cbc7e
mov eax, dword [ebp - 0x44]
xor ecx, ecx
push 7
pop edx
mov byte [esi + eax], cl
mov eax, dword [ebp - 0x44]
mov byte [esi + eax + 1], cl
xor eax, eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 4], ecx
sub eax, 1
je 0x186cbc13
dec eax
sub eax, 1
je 0x186cbc00
sub eax, 1
je 0x186cbbde
xor eax, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x48]
mov ecx, edi
call fcn.186cb6c2
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x40]
push ecx
push dword [ebp - 0x44]
lea eax, [ebp - 0x28]
mov ecx, edi
cmovae eax, dword [ebp - 0x28]
push esi
push ebx
push eax
call fcn.186cb741
jmp 0x186cbc5a
cmp dword [ebp - 0x44], 4
jne 0x186cbc62
push 0x188684fc
lea ecx, [ebp - 0x40]
call fcn.185b9fa8
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
push dword [esi]
call fcn.186cb672
jmp 0x186cbc62
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x44]
push esi
push ebx
push ecx
mov ecx, edi
call fcn.186cb741
jmp 0x186cbc62
xor eax, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
push esi
mov ecx, edi
call fcn.186cb7e7
push 0x22
lea ecx, [ebp - 0x40]
call fcn.18634ed9
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
call fcn.185b9fcf
push 0x22
lea ecx, [ebp - 0x40]
call fcn.185ba318
lea ecx, [ebp - 0x28]
call fcn.185ac1f0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov ecx, edi
cmovae eax, dword [ebp - 0x40]
push eax
push ebx
call fcn.186cbcbf
lea ecx, [ebp - 0x40]
call fcn.185ac1f0
push esi
call fcn.18615a4a
pop ecx
call fcn.18615c5f
ret 8
Function at 0x186ccc77
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
mov eax, 0x186c0a4b
call fcn.18615c81
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.185b0640
lea eax, [ebp - 0x10]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.186cc7c5
pop ecx
lea ecx, [ebp + 8]
mov dword [ebp + 8], esi
push ecx
push 0x20119
push esi
push dword [ebp - 0x10]
mov bl, 1
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
movzx ebx, bl
cmp eax, 2
mov eax, dword [ebp + 8]
cmove ebx, ecx
test eax, eax
je 0x186cccf1
test bl, bl
je 0x186cccea
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push ecx
push esi
push esi
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb al, al
lea ebx, [eax + 1]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.185ae8d0
mov al, bl
call fcn.18615c4a
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x634
mov eax, dword [0x1870626c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x620]
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push 0xf013f
push 0
push ebx
push edi
mov dword [ebp - 0x628], ecx
mov dword [ebp - 0x62c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x186ccda9
push 0x18868698
call fcn.185bbf00
pop ecx
mov eax, esi
jmp 0x186cce55
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x634]
push eax
xor ecx, ecx
mov dword [ebp - 0x624], 0x30c
push ecx
push ecx
push ecx
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x61c]
push eax
push ecx
push dword [ebp - 0x620]
call esi
test eax, eax
jne 0x186cce35
mov edi, dword [ebp - 0x628]
lea eax, [ebp - 0x61c]
mov ecx, edi
push eax
push dword [ebp - 0x620]
call fcn.186ccd53
test eax, eax
jne 0x186cce2f
xor ecx, ecx
mov dword [ebp - 0x624], 0x30c
lea eax, [ebp - 0x634]
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x61c]
push eax
push ecx
push dword [ebp - 0x620]
call esi
test eax, eax
je 0x186ccde6
mov edi, dword [ebp - 0x62c]
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18615399
leave
ret 8
Function at 0x186cce66
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
push esi
mov esi, dword [ebp + 0x18]
push esi
push eax
push dword [ebp + 0x10]
mov dword [esi], eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x186ccef9
push edi
push dword [esi]
call fcn.185ab940
mov edi, eax
pop ecx
test edi, edi
jne 0x186cce9e
push 0xc
pop eax
jmp 0x186ccef8
push dword [esi]
push 0
push edi
call fcn.1863cad0
add esp, 0xc
push esi
push edi
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x186ccef6
push edi
lea ecx, [ebp - 0xc]
call fcn.186cbd13
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0xc]
cmp ecx, eax
je 0x186ccee3
lea eax, [ebp - 8]
add ecx, 4
push eax
call fcn.1861797b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], 0x18868524
test ecx, ecx
je 0x186ccef6
call fcn.185dd6a0
mov eax, esi
pop edi
pop esi
leave
ret 0x14
Function at 0x186d44a3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1870626c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, 0x1885e1f8
mov word [ebp - 0x20c], ax
mov ecx, edi
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x186d44d1
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.185b0f02
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], 0x208
push eax
push 0x20119
push ebx
push 0x1886a5e8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x186d456f
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
xor eax, eax
push eax
push eax
push 0x188693c8
push dword [ebp - 0x210]
call ebx
test eax, eax
jne 0x186d455e
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.1863e7ab
pop ecx
pop ecx
test eax, eax
je 0x186d455e
xor ecx, ecx
mov word [eax], cx
jmp 0x186d4567
xor eax, eax
mov word [ebp - 0x20c], ax
push dword [ebp - 0x210]
call edi
xor eax, eax
cmp ax, word [ebp - 0x20c]
jne 0x186d45e8
lea eax, [ebp - 0x210]
push eax
push 0x20119
xor eax, eax
push eax
push 0x1886a668
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x186d45e8
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x210]
call ebx
test eax, eax
jne 0x186d45d7
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.1863e7ab
pop ecx
pop ecx
test eax, eax
je 0x186d45d7
xor ecx, ecx
mov word [eax], cx
jmp 0x186d45e0
xor eax, eax
mov word [ebp - 0x20c], ax
push dword [ebp - 0x210]
call edi
push 0x22
pop eax
cmp word [ebp - 0x20c], ax
jne 0x186d4622
push eax
lea eax, [ebp - 0x20a]
push eax
call fcn.1863e7ab
pop ecx
pop ecx
test eax, eax
je 0x186d460c
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20a]
push eax
call fcn.185c226d
pop ecx
push eax
lea eax, [ebp - 0x20a]
jmp 0x186d4643
lea ecx, [ebp - 0x20c]
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x186d462d
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.185b0f02
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18615399
leave
ret 4
Function at 0x186d465c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x186c242d
mov eax, dword fs:[0]
push eax
mov eax, 0x5040
call fcn.18615d60
mov eax, dword [0x1870626c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x504c], eax
call fcn.185a8970
push eax
lea ecx, [ebp - 0x503c]
call fcn.185b05e4
and dword [ebp - 4], 0
lea eax, [ebp - 0x503c]
push eax
mov ecx, esi
call fcn.186d44a3
mov esi, dword [ebp - 0x503c]
cmp dword [esi - 0xc], 0
jl 0x186d4805
movzx eax, word [esi]
test ax, ax
je 0x186d47e1
lea eax, [esi - 0x10]
push eax
call fcn.185b096f
add eax, 0x10
mov dword [ebp - 0x5048], eax
lea ecx, [ebp - 0x5040]
mov byte [ebp - 4], 1
mov dword [esp], 0x1886a6d8
call fcn.185b0640
mov eax, dword [ebp - 0x5040]
lea ecx, [ebp - 0x5048]
mov byte [ebp - 4], 2
push dword [eax - 0xc]
push eax
call fcn.185b4a40
mov edi, dword [ebp - 0x5048]
lea eax, [ebp - 0x5038]
push edi
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
test eax, eax
je 0x186d47cb
lea ebx, [ebp - 0x5038]
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x186d47cb
mov esi, eax
movzx ecx, word [ebx + 0x10]
push ecx
call fcn.18640198
pop ecx
test eax, eax
je 0x186d47b2
push edi
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
push 0x1886a710
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x186d47b2
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x5044]
call fcn.185b0640
push dword [eax]
mov ecx, dword [ebp - 0x504c]
mov byte [ebp - 4], 3
call fcn.186376be
mov ecx, dword [ebp - 0x5044]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.185ae8d0
lea ebx, [ebx + esi*2]
add ebx, 2
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
jne 0x186d474f
mov esi, dword [ebp - 0x503c]
mov ecx, dword [ebp - 0x5040]
lea ecx, [ecx - 0x10]
call fcn.185ae8d0
lea ecx, [edi - 0x10]
call fcn.185ae8d0
lea ecx, [esi - 0x10]
call fcn.185ae8d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.18615399
leave
ret 4
push 0x80070057
call fcn.185b08f0
int3
Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..3ean
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x431072
nop
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xc275166
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x431060
mov eax, section..7LWLf
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x4a9f78a4
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x409888
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40995b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409974
push ebx
push 0x409980
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409908
mov al, 0x62
call fcn.00409460
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040985c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409911
call fcn.0040985c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409962
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409a14
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409ac8
jmp 0x409abd
cmp dword [esi + 0x10], 0x1000
jne 0x409aa9
test byte [esi + 0x15], 1
jne 0x409aa9
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409a68
cmp eax, 2
je 0x409a68
cmp eax, 0x10
je 0x409a68
cmp eax, 0x20
jne 0x409a7d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409a7d
mov bl, 1
xor ebp, ebp
jmp 0x409a8e
mov eax, dword [esi]
add eax, ebp
call fcn.00409a0c
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409a81
test bl, bl
je 0x409aa9
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409ac8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409a40
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x43b63e
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 0x43b3c1
push 0x9f90dae7
pop esi
mov esi, 0xc4bef28e
add ecx, ecx
call fcn.0043b675
or esi, esi
xor dword [ebx], eax
mov esi, 0xeb934648
inc ebx
sub ecx, 0xd00715cd
cmp ebx, edx
jne fcn.0043b63e
sub esi, 0x1d473e68
ret
Function at 0x402cd8
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFiber]
push 3
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, dword [edx + ebp]
je 0x402d39
mov eax, 0x402d10
lea eax, [edx + eax]
push ebp
push eax
push 5
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
call 0x402d39
xchg esp, esi
cld
lea eax, [esp]
sub eax, 0xfffffff8
mov eax, dword [eax]
lock xchg dword [esp + 0x10], edx
lea eax, [eax + 0x602e]
lock add dword [edx - 0x210], eax
je 0x402d16
pop ecx
add ecx, 0x10
jmp ecx
Function at 0x401000
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
jmp 0x439f9b
call fcn.0043e0d1
jmp 0x439fa6
push 0x14
push 0x451320
call fcn.0043c460
call fcn.0043c0f2
movzx esi, ax
push 2
call fcn.0043e084
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x439fd4
xor ebx, ebx
jmp 0x43a007
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x439fd0
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x439fd0
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x43a007
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.0043b69c
test eax, eax
jne 0x43a01b
push 0x1c
call fcn.0043a0f6
pop ecx
call fcn.0043b3f1
test eax, eax
jne 0x43a02c
push 0x10
call fcn.0043a0f6
pop ecx
call fcn.0043e16d
and dword [ebp - 4], 0
call fcn.0043dac0
test eax, eax
jns 0x43a046
push 0x1b
call fcn.0043a0f6
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x45a718], eax
call fcn.0043e1ad
mov dword [0x456b90], eax
call fcn.0043dd74
test eax, eax
jns 0x43a06c
push 8
call fcn.0043b72e
pop ecx
call fcn.0043dfa3
test eax, eax
jns 0x43a07d
push 9
call fcn.0043b72e
pop ecx
push 1
call fcn.0043b768
pop ecx
test eax, eax
je 0x43a090
push eax
call fcn.0043b72e
pop ecx
call fcn.0043e23a
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x43a0b2
push esi
call fcn.0043b9d1
call fcn.0043b759
jmp 0x43a0e7
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.0043c4a5
ret
Function at 0x402310
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
shr ebx, 2
push esi
mov esi, ecx
mov dword [ebp - 4], 1
mov eax, ebx
xor ecx, ecx
shr eax, 1
add eax, 3
mov dword [esi], eax
add esi, 0x10
push edi
test ebx, ebx
je 0x402345
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, ebx
jb 0x402338
mov eax, dword [esi + ebx*4 - 4]
lea ecx, [ebx + 0xe]
lea ecx, [ebx + ecx*2]
lea edi, [esi + ecx*4]
mov dword [ebp + 8], edi
xor edi, edi
mov ecx, dword [ebp + 8]
lea ebx, [ebx]
test edi, edi
jne 0x4023c6
movzx ecx, al
mov edi, ebx
movzx edx, byte [ecx + str.cw]
mov ecx, eax
shr ecx, 0x18
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
shr eax, 8
and eax, 0xff
shl edx, 8
movzx ecx, byte [ecx + str.cw]
movzx eax, byte [eax + str.cw]
or edx, ecx
mov ecx, dword [ebp - 4]
xor eax, ecx
shl edx, 8
add ecx, ecx
or eax, edx
test ecx, 0x100
mov edx, 0x1b
cmovne ecx, edx
mov dword [ebp - 4], ecx
jmp 0x402419
cmp edi, 4
jne 0x40241c
cmp ebx, 6
jbe 0x40241c
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
movzx edx, byte [ecx + str.cw]
mov ecx, eax
shr ecx, 0x18
movzx ecx, byte [ecx + str.cw]
shl ecx, 8
or edx, ecx
mov ecx, eax
shr ecx, 8
and ecx, 0xff
shl edx, 8
movzx eax, al
movzx ecx, byte [ecx + str.cw]
movzx eax, byte [eax + str.cw]
or edx, ecx
shl edx, 8
or eax, edx
mov ecx, dword [ebp + 8]
xor eax, dword [esi]
dec edi
mov dword [esi + ebx*4], eax
add esi, 4
cmp esi, ecx
jne 0x402360
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x403140
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x453090]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x403189
push str.SetDefaultDllDirectories
push 0x448498
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403189
push 0xc00
call eax
test eax, eax
jne 0x403227
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x403227
cmp eax, 0x104
ja 0x403227
cmp word [ebp + eax*2 - 0x2d6], 0x5c
je 0x4031c7
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x403226
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
mov al, byte [esi]
mov ecx, edi
inc esi
test al, al
je 0x403200
movzx eax, al
mov word [ecx], ax
add ecx, 2
mov al, byte [esi]
inc esi
test al, al
jne 0x4031f0
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
cmp byte [esi], 0
jne 0x4031e7
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00437dfc
mov esp, ebp
pop ebp
ret
Function at 0x4084c0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edx, dword [esi + 8]
and edx, 0x3f
mov byte [edx + esi + 0x40], 0x80
inc edx
cmp edx, 0x38
jbe 0x408509
cmp edx, 0x40
je 0x4084fb
mov ecx, 0x40
lea edi, [esi + 0x40]
sub ecx, edx
add edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi]
lea edx, [esi + 0x40]
push 1
lea ecx, [esi + 0x20]
call eax
xor edx, edx
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call fcn.004384c0
mov ecx, dword [esi + 8]
lea edx, [esi + 0x40]
mov eax, dword [esi + 0xc]
add esp, 0xc
shld eax, ecx, 3
shl ecx, 3
bswap eax
bswap ecx
mov dword [esi + 0x78], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], ecx
lea ecx, [esi + 0x20]
push 1
call eax
mov edi, dword [ebp + 0xc]
lea edx, [esi + 0x20]
mov ebx, 4
nop
mov ecx, dword [edx + 4]
lea edi, [edi + 8]
mov eax, dword [edx]
lea edx, [edx + 8]
bswap eax
mov dword [edi - 8], eax
bswap ecx
mov dword [edi - 4], ecx
dec ebx
jne 0x408550
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
pop edi
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4085b0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [0x453020]
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
pop ebp
ret 4

Function at 0x4089f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.00438550
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x408a1d
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 0xc