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

Disassembly:
push 0xffffffffffffffff
push 0x4a9638
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.004a209a
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00465b10
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.004a1fc8
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.0049e88c
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.0049e88c
push 1
push 0
push 0
mov ecx, esi
call fcn.0049e834
push 1
push 0
push 1
mov ecx, esi
call fcn.0049e834
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a210c
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x466350
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a9658
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.004a209a
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00465b10
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.004a1fc8
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 0x466414
cmp dword [esp + 0x40], 1
jne 0x466412
cmp ecx, eax
jge 0x466414
mov eax, ecx
cmp eax, 0xc8
jge 0x466420
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004661d0
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.004a210c
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x466c20
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a9703
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.0049ccac
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.004a2342
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004a385e
test eax, eax
je 0x466d3c
mov ecx, dword [esp + 0x3c]
call fcn.004a236f
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 0x466d00
push edi
mov ecx, esi
call fcn.0049f9d3
mov ecx, esi
call fcn.00466ee0
cmp dword [esp + 0x38], 1
jne 0x466d35
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.0049fb0e
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 0x468f50
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x468f83
push esi
call fcn.004772f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x468f7c
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 0x469009
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x468ff2
mov eax, dword [esi + 8]
test eax, eax
je 0x468fa7
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 0x468fee
cmp eax, 2
je 0x468ff2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x468f9a
cmp eax, 3
je 0x468fcd
cmp eax, 1
jne 0x468f9a
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 0x468f9a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x468f9a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00469030
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x469018
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00469030
add esp, 4
pop esi
ret

Function at 0x4698a0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4698c1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4698c1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4698c1
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 0x484700
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4847a3
test eax, eax
jbe 0x4847a3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4847a3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x48474e
xor esi, esi
jmp 0x484754
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x48477f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004265a0
add esi, eax
push esi
mov ebx, esi
call fcn.004265a0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x484760
pop ebp
test edi, edi
pop edi
jne 0x4847a3
test ebx, ebx
je 0x4847a3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0048c330
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4848c5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4849dd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4849dd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0049d0fe
mov esi, eax
test esi, esi
je 0x4849dd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4849dd
mov ecx, esi
call fcn.00484850
cmp edi, eax
jge 0x4849dd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x484963
mov dword [esp + 0x34], 1
jmp 0x4849be
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4849dd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00483e00
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x49daa2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49dada
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.0049bb56
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049bb2e
jmp 0x49dae6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49f190
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 0x49f1d2
call fcn.004a4c49
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49f1d2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49f1c9
xor eax, eax
jmp 0x49f1da
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049f1e0
pop edi
pop esi
pop ebx
ret 4
Function at 0x4a5179
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 0x4a51a7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a51c5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a50df
jmp 0x4a51c5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a51c5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a50df
test edi, edi
mov eax, edi
jne 0x4a51af
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x44e410c7
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x348e0ba4
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4013d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x424308]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov word [ebp - 0x20c], ax
lea eax, [ecx + 0x75ffffff]
push esi
mov esi, dword [ebp + 8]
cmp eax, 3
ja case.default.0x4013fe
jmp dword [eax*4 + 0x40153c]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x401485
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x401485
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x104
push str.drivers
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.00412133
add esp, 0x10
jmp 0x401485
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x401485
push 1
push ecx
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401490
sub eax, edx
sar eax, 1
push edi
mov edi, eax
cmp edi, 0x10
jb 0x4014b6
lea ecx, [edi + edi + 2]
push ecx
call fcn.0041012b
add esp, 4
jmp 0x4014b9
lea eax, [esi + 0xc]
inc edi
xor edx, edx
mov dword [esi], eax
mov dword [esi + 4], 0
mov dword [esi + 8], edi
mov word [eax], dx
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4014d4
sub eax, edx
mov edx, dword [esi]
sar eax, 1
mov edi, eax
lea eax, [edi + edi]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push edx
call fcn.004105b0
mov eax, dword [esi + 8]
add esp, 0xc
mov ecx, edi
cmp edi, eax
pop edi
jb 0x401508
lea ecx, [eax - 1]
test eax, eax
jne 0x401520
mov dword [esi + 4], eax
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410451
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
xor edx, edx
mov word [eax + ecx*2], dx
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00410451
mov esp, ebp
pop ebp
ret

Function at 0x401bb0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ecx]
push esi
lea eax, [ebp - 4]
push eax
or esi, 0xffffffff
push edx
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov dword [ebp - 8], eax
and eax, ecx
cmp eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x401bf9
call esi
test eax, eax
jne 0x401bf9
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
test edi, edi
je 0x401c1e
mov dword [edi], 0
pop esi
mov esp, ebp
pop ebp
ret
call esi
test eax, eax
je 0x401c0d
jle 0x401c12
and eax, 0xffff
or eax, 0x80070000
jmp 0x401c12
mov eax, 0x8007054f
mov edx, dword [ebp - 4]
test edi, edi
je 0x401c1b
mov dword [edi], eax
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4037f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add ecx, 0x18
pop ebp
jmp fcn.00401b30

Function at 0x404790
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x424308]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x42145c]
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov ecx, dword [0x421458]
mov dword [ebp - 0x424], ecx
mov ecx, dword [0x421460]
xor ebx, ebx
push ebx
mov dword [ebp - 0x41c], ecx
push esi
lea ecx, [ebp - 0x424]
mov dword [ebp - 0x420], edx
mov edx, dword [0x421464]
push ecx
push eax
mov ecx, edi
mov dword [ebp - 0x418], edx
mov dword [ebp - 0x420], 7
call fcn.00401a20
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x404907
push ebx
lea edx, [ebp - 0x414]
push edx
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push 0xc
lea edx, [ebp - 0x410]
push edx
push 0x2d1400
push eax
mov dword [ebp - 0x40c], ebx
mov dword [ebp - 0x410], ebx
mov dword [ebp - 0x414], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40486e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x40485d
jle 0x404862
and eax, 0xffff
or eax, 0x80070000
jmp 0x404862
mov eax, 0x8007054f
cmp esi, ebx
je 0x4048f3
mov dword [esi], eax
jmp 0x4048e9
cmp esi, ebx
je 0x404874
mov dword [esi], ebx
cmp dword [ebp - 0x414], 0x28
jb 0x4048e9
cmp dword [ebp - 0x3e8], 0xe
jne 0x4048e9
mov edx, dword [ebp - 0x3f4]
cmp edx, 0x400
jae 0x4048e9
mov eax, 9
mov ecx, 0x421760
lea edx, [ebp + edx - 0x404]
mov ebx, dword [edx]
cmp ebx, dword [ecx]
jne 0x4048e7
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4048a5
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4048e7
cmp dword [ebp - 0x3e4], 0x14
jb 0x4048e3
lea edx, [ebp - 0x3dc]
call fcn.00404b50
test eax, eax
je 0x4048e3
test esi, esi
je 0x404907
mov dword [esi], 0
jmp 0x404907
test esi, esi
jmp 0x4048eb
xor ebx, ebx
cmp esi, ebx
je 0x4048f3
mov dword [esi], 0x80070032
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x404907
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410451
mov esp, ebp
pop ebp
ret 8
Function at 0x4059b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x424308]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
mov dword [ebp - 0x34], eax
xor eax, eax
push 0x40
mov dword [esi + 8], eax
push eax
lea ecx, [ebp - 0x74]
mov dword [esi + 0xc], eax
push ecx
mov dword [esi + 4], 0xffffffff
mov dword [esi], 0xffffffff
call fcn.00410460
mov dx, word [ebp + 0xc]
add esp, 0xc
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x78], 0x44
mov word [ebp - 0x48], dx
call fcn.00401300
test edi, edi
jne 0x405a16
lea edi, [ebp - 0x78]
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x405a22
mov eax, 0x421594
movzx ecx, byte [ebp + 0x14]
push esi
push edi
push 0
push 0
push 0
push ecx
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x405a68
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x405a58
jle 0x405a5d
and eax, 0xffff
or eax, 0x80070000
jmp 0x405a5d
mov eax, 0x8007054f
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x405a75
mov dword [ecx], eax
jmp 0x405a75
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x405a75
mov dword [eax], 0
cmp dword [esi], 0
jne 0x405a80
mov dword [esi], 0xffffffff
cmp dword [esi + 4], 0
jne 0x405a8d
mov dword [esi + 4], 0xffffffff
mov eax, dword [ebp - 0x30]
pop edi
pop esi
pop ebx
test eax, eax
je 0x405aa7
lea edx, [ebp - 0x24]
cmp eax, edx
je 0x405aa7
push eax
call fcn.004101bf
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410451
mov esp, ebp
pop ebp
ret 0x14
Function at 0x409100
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x424308]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00410460
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40916d
mov eax, dword [ebp - 0x114]
cmp eax, 5
jae 0x40915d
cmp eax, 4
jne 0x40916d
cmp dword [ebp - 0x110], 0x5a
jb 0x40916d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410451
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00410451
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x424308]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push edi
or ecx, 0x2001f
push ecx
xor ebx, ebx
push eax
push edx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x208], ebx
call fcn.0040c5b0
mov edi, eax
cmp edi, ebx
je 0x40cd5a
mov eax, dword [ebp - 0x210]
cmp eax, ebx
je 0x40cd45
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410451
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x210]
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x204]
push edx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
mov dword [ebp - 0x214], 0x100
call ebx
test eax, eax
jne 0x40cdd8
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x210]
call fcn.0040cce0
mov edi, eax
test edi, edi
jne 0x40ce11
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x210]
push eax
push eax
push eax
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push edi
push edx
mov dword [ebp - 0x214], 0x100
call ebx
test eax, eax
je 0x40cd90
mov eax, dword [ebp - 0x210]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
cmp eax, edi
je 0x40cdf3
push eax
call ebx
mov dword [ebp - 0x210], edi
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x20c], edi
push eax
cmp ecx, edi
je 0x40ce3b
mov edx, dword [esi]
push edx
call fcn.0040c380
jmp 0x40ce44
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x40cd45
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410451
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [ebp - 0x210]
cmp eax, edi
je 0x40ce53
push eax
call ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410451
mov esp, ebp
pop ebp
ret 4