joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4318e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47a198
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00473ad9
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00431240
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00473a07
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0046e622
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0046e622
push 1
push 0
push 0
mov ecx, esi
call fcn.0046e5ca
push 1
push 0
push 1
mov ecx, esi
call fcn.0046e5ca
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00473b4b
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x431a60
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47a1b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00473ad9
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00431240
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00473a07
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x431b24
cmp dword [esp + 0x40], 1
jne 0x431b22
cmp ecx, eax
jge 0x431b24
mov eax, ecx
cmp eax, 0xc8
jge 0x431b30
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004318e0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00473b4b
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x432330
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47a263
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046ca42
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00473d81
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004756fe
test eax, eax
je 0x43244c
mov ecx, dword [esp + 0x3c]
call fcn.00473dae
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x432410
push edi
mov ecx, esi
call fcn.00470663
mov ecx, esi
call fcn.004325f0
cmp dword [esp + 0x38], 1
jne 0x432445
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0047079e
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43dd90
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47a768
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x43ddc9
inc eax
mov dword [esi + 0x10], eax
jmp 0x43dedc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43dddd
mov eax, 0xffffffc7
jmp 0x43dede
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43ddee
cmp dword [esi + 8], eax
jne 0x43dddd
cmp dword [esi + 8], eax
jne 0x43de07
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x43de07
mov eax, 0xffffffc7
jmp 0x43dede
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43de1b
push eax
mov ecx, ebx
call fcn.0043d5c0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004010c0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43de4c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004010e0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0043cd30
test eax, eax
mov dword [esp + 0x38], eax
je 0x43de7f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x481ae0
call fcn.004012c0
mov eax, dword [esp + 0x38]
jmp 0x43dede
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0043dbf0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x43dec3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0043dc10
mov esi, eax
test esi, esi
jne 0x43def3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0043dbf0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x43de95
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x481ae0
call fcn.004012c0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x481ae0
call fcn.004012c0
mov eax, esi
jmp 0x43dede
Function at 0x440c20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x440c53
push esi
call fcn.0044ed60
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x440c4c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x440cd9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x440cc2
mov eax, dword [esi + 8]
test eax, eax
je 0x440c77
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x440cbe
cmp eax, 2
je 0x440cc2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x440c6a
cmp eax, 3
je 0x440c9d
cmp eax, 1
jne 0x440c6a
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 0x440c6a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x440c6a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00440d00
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x440ce8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00440d00
add esp, 4
pop esi
ret

Function at 0x441570
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x441591
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x441591
mov eax, dword [eax + 0x44]
test eax, eax
je 0x441591
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x46d838
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46d870
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00470422
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004703fa
jmp 0x46d87c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46ef2a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46ef6c
call fcn.00476486
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46ef6c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46ef63
xor eax, eax
jmp 0x46ef74
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046ef7a
pop edi
pop esi
pop ebx
ret 4
Function at 0x476b44
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x476b72
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x476b90
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00476aaa
jmp 0x476b90
mov eax, dword [esi + 0x14]
test eax, eax
je 0x476b90
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00476aaa
test edi, edi
mov eax, edi
jne 0x476b7a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x41da593c
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
mov eax, section..text_1
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x1e3276c2
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4320c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40a17a
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00415ec0
mov eax, dword [0x41a014]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x2004]
push 0xffffffffffffffff
push 0x1000
push eax
call fcn.0040a120
push dword [eax + 4]
push dword [eax]
call dword [sym.imp.ucrtbase_clr0400.dll___stdio_common_vsnwprintf_s]
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
lea eax, [ebp - 0x2004]
push eax
je 0x40a1d4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40a1fa
push 0x4013b0
push 1
call dword [sym.imp.ucrtbase_clr0400.dll___acrt_iob_func]
pop ecx
push eax
call fcn.0040a126
push 1
call dword [sym.imp.ucrtbase_clr0400.dll___acrt_iob_func]
push eax
call dword [sym.imp.ucrtbase_clr0400.dll_fflush]
add esp, 0x14
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415350
mov esp, ebp
pop ebp
ret
Function at 0x40c6bc
Capabilities:
Print debug messages

Disassembly:
push 0x218
mov eax, 0x416948
call fcn.00415e14
cmp byte [0x41aa50], 0
jne 0x40c6f3
lea eax, [ebp - 0x221]
mov ecx, 0x40293c
push eax
call fcn.0040e19e
mov dword [0x41aa4c], eax
mov byte [0x41aa50], 1
jmp 0x40c6f8
mov eax, dword [0x41aa4c]
test eax, eax
je 0x40c780
xor ecx, ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x21c], 0x200
mov dword [ebp - 0x214], eax
mov dword [ebp - 4], ecx
push 2
pop edx
mov dword [ebp - 0x220], edx
mov eax, dword [ebp - 0x214]
mov word [eax], cx
mov dword [ebp - 4], edx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x220]
call fcn.004116e3
lea ecx, [ebp - 0x220]
call fcn.00410ead
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.0040a64a
call fcn.00415dbe
ret
Function at 0x40d15d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x218
mov eax, 0x416aed
call fcn.00415e14
xor ebx, ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], ebx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x21c], 0x200
mov dword [ebp - 0x214], eax
mov dword [ebp - 4], ebx
push 2
pop edx
mov dword [ebp - 0x220], edx
mov eax, dword [ebp - 0x214]
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], edx
lea ecx, [ebp - 0x220]
call fcn.0040aaf1
push 0x40206c
lea ecx, [ebp - 0x220]
call fcn.0040a609
lea ecx, [ebp - 0x220]
call fcn.00410ead
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d219
push ecx
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], ebx
push eax
push 0x402088
mov edx, 0x4020a0
call fcn.00413008
test eax, eax
je 0x40d217
cmp dword [ebp - 0x224], 1
je 0x40d219
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.0040a64a
mov al, bl
call fcn.00415dbe
ret
Function at 0x40d91b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_WerSetFlags]
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
call fcn.00410c76
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [ebp - 4]
mov ecx, eax
call fcn.0040e964
mov esi, dword [ebp - 4]
mov edi, eax
sub esi, 1
je 0x40d96f
cmp esi, 1
jne 0x40d979
push 0x4019cc
push dword [edi + 4]
call dword [sym.imp.ucrtbase_clr0400.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40d979
test esi, esi
setg cl
call fcn.0040d5b6
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea edx, [edi + 4]
mov ecx, esi
call fcn.0040c258
test al, al
je 0x40d993
mov eax, dword [ebp - 4]
jmp 0x40d99d
lea edx, [edi + 4]
mov ecx, esi
call fcn.0040c53c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4126b4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x41a014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edi
xor ebx, ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x4126d3
sub esi, ecx
xor eax, eax
sar esi, 1
test edx, edx
sete al
lea eax, [eax*8 + 0x37]
cmp esi, eax
jbe 0x4126fb
xor eax, eax
jmp 0x4127a9
test edx, edx
je 0x41274a
cmp dword [0x41a5d8], ebx
je 0x412731
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x8c]
push eax
push ecx
push edi
call fcn.00412de2
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x88]
test dword [eax*4 + 0x41a934], ecx
je 0x4126f4
push 0x40892c
lea eax, [ebp - 0x84]
push 0x40
push eax
call dword [sym.imp.ucrtbase_clr0400.dll_wcscpy_s]
add esp, 0xc
jmp 0x412753
xor eax, eax
mov word [ebp - 0x84], ax
push edi
lea eax, [ebp - 0x84]
push 0x40
push eax
call dword [sym.imp.ucrtbase_clr0400.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x84]
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
je 0x4126f4
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
call fcn.0040e6dd
mov esi, eax
test esi, esi
je 0x4127a7
push edi
push esi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415350
mov esp, ebp
pop ebp
ret
Function at 0x4127e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], edi
mov ebx, dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], 4
test bl, 1
je 0x412871
mov edx, dword [ebp + 0x18]
call fcn.004126b4
mov edi, eax
test edi, edi
je 0x41286e
call dword [sym.imp.ucrtbase_clr0400.dll__errno]
push 0x10
and dword [eax], 0
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.ucrtbase_clr0400.dll_wcstoul]
add esp, 0xc
mov dword [ebp - 0x20], eax
call dword [sym.imp.ucrtbase_clr0400.dll__errno]
cmp dword [eax], 0x22
je 0x41284d
cmp dword [ebp - 0x1c], edi
je 0x41284d
mov dword [ebp - 0x14], 1
jmp 0x412851
and dword [ebp - 0x14], 0
mov edx, edi
call fcn.0040e697
cmp dword [ebp - 0x14], 0
je 0x41286e
mov eax, dword [ebp - 0x20]
and dword [esi + 4], 0
mov dword [esi], eax
xor eax, eax
jmp 0x41299b
mov edi, dword [ebp - 4]
test bl, 0xe
je 0x41298b
mov ecx, edi
call fcn.00412e29
test eax, eax
je 0x41298b
test bl, 2
je 0x412919
mov eax, dword [0x41a04c]
and dword [ebp - 0x14], 0
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x4128cc
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0x408940
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], 1
test eax, eax
jne 0x412919
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 8]
push ecx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x14], 0
cdq
mov edi, eax
mov eax, edx
mov dword [ebp - 0x20], eax
je 0x4128fc
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
or edi, eax
jne 0x412916
cmp dword [ebp - 8], 4
jne 0x412916
mov eax, dword [ebp - 0x28]
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], eax
jmp 0x412867
mov edi, dword [ebp - 4]
test bl, 4
je 0x41298b
mov eax, dword [0x41a050]
xor ebx, ebx
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x41294f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push 0x408940
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
inc ebx
test eax, eax
jne 0x41298b
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 8]
push ecx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cdq
mov edi, eax
mov eax, edx
mov dword [ebp - 0x20], eax
test ebx, ebx
je 0x41297d
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
or edi, eax
jne 0x41298b
cmp dword [ebp - 8], 4
je 0x412906
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x412de2
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov edx, 0x1505
jmp 0x412e03
lea eax, [ecx - 0x61]
cmp eax, 0x19
ja 0x412dfb
and ecx, 0xffffffdf
imul edx, edx, 0x21
xor edx, ecx
add esi, 2
movzx ecx, word [esi]
test ecx, ecx
jne 0x412df0
mov eax, dword [ebp + 0x10]
movzx ecx, dl
mov edx, ecx
and ecx, 0x1f
shr edx, 5
mov dword [eax], edx
xor edx, edx
mov eax, dword [ebp + 0x14]
inc edx
shl edx, cl
pop esi
mov dword [eax], edx
pop ebp
ret 0x10
Function at 0x407e30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407f09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407e68
mov eax, dword [ebp - 4]
call fcn.00407220
jmp 0x407e70
mov eax, dword [ebp - 4]
call fcn.00407c1c
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407ebc
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407ea6
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.00407220
jmp 0x407eb8
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407c1c
inc ebx
dec esi
jne 0x407e80
push 1
push dword [ebp - 4]
push 0x407f20
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f84
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407f10
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x4012af
Capabilities:
Hide graphical window

Disassembly:
push ebp
push 0x10000
push 0x1000
push 1
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x403d14], eax
push 0x64
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, 0x30
push eax
mov dword [eax], ecx
add eax, 0x4c
mov ebp, eax
mov eax, 0x400000
mov dword [0x403d10], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], 0x4011a6
mov dword [ebp - 0x24], str.cognomen
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor eax, eax
push eax
push dword [0x403d10]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.invocatory
push str.cognomen
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403d18], eax
push eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401379
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401360
mov eax, dword [0x403d14]
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
pop ebp
ret 0x10

Function at 0x401499
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x10
mov edx, esi
mov eax, 4
mov esi, 0x401116
mov edi, 0x4035f5
dec ecx
call fcn.00401cc6
mov eax, ecx
push edi
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
call fcn.004013a1
call fcn.00401c72
mov eax, 0x14
mov ecx, 0x78f
mov esi, 0x401192
mov edi, 0x4014e3
call fcn.00401cc6
xor eax, eax
xor eax, 0x17cf0b66
sub eax, 0x4a88926a
fisttp qword [edi - 0x2d]
sbb al, 0xa9
invalid