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

Disassembly:
push 0xffffffffffffffff
push 0x472428
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.0046946f
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00439800
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.0046939d
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.00465b84
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.00465b84
push 1
push 0
push 0
mov ecx, esi
call fcn.00465b2c
push 1
push 0
push 1
mov ecx, esi
call fcn.00465b2c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004694e1
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x439fe0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x472448
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.0046946f
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00439800
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.0046939d
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 0x43a0a4
cmp dword [esp + 0x40], 1
jne 0x43a0a2
cmp ecx, eax
jge 0x43a0a4
mov eax, ecx
cmp eax, 0xc8
jge 0x43a0b0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00439e60
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.004694e1
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43a830
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4724b3
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.00463fa4
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.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.00469717
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046ac6f
test eax, eax
je 0x43a94c
mov ecx, dword [esp + 0x3c]
call fcn.00469744
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 0x43a910
push edi
mov ecx, esi
call fcn.00466d08
mov ecx, esi
call fcn.0043aab0
cmp dword [esp + 0x38], 1
jne 0x43a945
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.00466e72
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 0x43d360
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43d393
push esi
call fcn.00440450
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43d38c
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 0x43d419
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43d402
mov eax, dword [esi + 8]
test eax, eax
je 0x43d3b7
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 0x43d3fe
cmp eax, 2
je 0x43d402
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43d3aa
cmp eax, 3
je 0x43d3dd
cmp eax, 1
jne 0x43d3aa
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 0x43d3aa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43d3aa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043d440
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43d428
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043d440
add esp, 4
pop esi
ret

Function at 0x464d9a
Capabilities:
Get graphical window text

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

Function at 0x46648c
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 0x4664ce
call fcn.0046c17b
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4664ce
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4664c5
xor eax, eax
jmp 0x4664d6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004664dc
pop edi
pop esi
pop ebx
ret 4

Function at 0x46c6ab
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 0x46c6d9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46c6f7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046c611
jmp 0x46c6f7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46c6f7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046c611
test edi, edi
mov eax, edi
jne 0x46c6e1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x5da1114c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
push 0x28
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
xor esi, esi
cmp eax, esi
mov dword [section..data], eax
jne 0x5da11179
xor eax, eax
jmp 0x5da11250
push ebx
push 0x104
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, esi
jne 0x5da111a9
xor eax, eax
jmp 0x5da1124f
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [section..data]
mov dword [ecx + 0x18], eax
mov eax, dword [section..data]
cmp dword [eax + 0x18], esi
je 0x5da11227
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, dword [section..data]
mov dword [ecx + 0x10], eax
mov eax, dword [section..data]
cmp dword [eax + 0x10], esi
je 0x5da11227
lea ecx, [eax + 8]
push ecx
lea ecx, [eax + 0xc]
push ecx
push eax
add eax, 4
push eax
call fcn.5da11a44
test eax, eax
jne 0x5da11227
call sub.DHCPCSVC.DLL_DhcpOpenGlobalEvent
mov ecx, dword [section..data]
mov dword [ecx + 0x14], eax
mov eax, dword [section..data]
cmp dword [eax + 0x14], esi
je 0x5da1124c
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x5da11ad4
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
jne 0x5da11238
call fcn.5da110c2
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x5da111a2
mov ecx, dword [section..data]
push eax
mov dword [ecx + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop ebx
pop esi
leave
ret 4

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ed0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x6a770fbf
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x226a18eb
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x475b8c
Capabilities:
Parse pe header

Disassembly:
cmp byte [ecx], 0x4d
jne 0x475bc2
cmp byte [ecx + 1], 0x5a
jne 0x475bc2
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp byte [eax], 0x50
jne 0x475bc2
cmp byte [eax + 1], 0x45
jne 0x475bc2
mov dx, word [eax + 0x18]
add eax, 0x18
cmp dx, 0x10b
je 0x475bbc
cmp dx, 0x20b
jne 0x475bc2
mov eax, dword [eax + 0x68]
add eax, ecx
ret
xor eax, eax
ret

Function at 0x486b9c
Capabilities:
Hash data using sha1

Disassembly:
push edi
xor eax, eax
push 0x50
mov dword [ecx + 0x154], eax
mov dword [ecx + 0x15c], eax
mov dword [ecx + 0x158], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
lea edi, [ecx + 0x14]
pop ecx
rep stosd dword es:[edi], eax
pop edi
ret
Function at 0x493860
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45b1cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x10], esi
lea ecx, [esi + 0x20]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
call fcn.00494fa0
lea ebp, [esi + 0x48]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebp
mov dword [ebp + 8], ebx
push 0x472784
mov byte [esp + 0x24], 1
call fcn.004910d0
add esp, 4
mov byte [esp + 0x20], 2
mov eax, dword [0x472744]
cmp eax, ebx
je 0x4938f9
mov ecx, dword [eax]
mov dword [0x472744], ecx
jmp 0x493954
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0x14
push edx
push 8
call fcn.00491bb0
mov ecx, eax
mov eax, dword [esp + 0x14]
add esp, 8
cmp eax, 1
mov dword [esp + 0x10], ecx
jne 0x493923
mov eax, ecx
jmp 0x493954
add ecx, 8
push edi
mov dword [0x472744], ecx
mov edx, ecx
add ecx, 8
mov edi, 1
dec eax
cmp eax, edi
je 0x49394d
mov dword [edx], ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
inc edi
add ecx, 8
dec eax
cmp eax, edi
jne 0x49393c
mov eax, dword [esp + 0x14]
mov dword [edx], ebx
pop edi
mov dword [0x472784], ebx
lea ecx, [eax + 8]
mov dword [ebp], eax
mov dword [ebp + 4], eax
mov dword [ebp + 8], ecx
mov ecx, dword [esp + 0x18]
mov byte [eax], bl
mov dword [esi], 0x45e160
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x4939b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x45b201
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x45e160
push 0
mov dword [esp + 0x1c], 1
call fcn.00493750
mov eax, dword [esi + 0x24]
push eax
call 0x4ab0de
mov ecx, dword [esi + 0x30]
push ecx
call 0x4ab0de
mov edx, dword [esi + 0x38]
push edx
call 0x4ab0de
lea eax, [esi + 0x48]
add esp, 0xc
mov dword [esp + 0xc], eax
mov edi, dword [eax]
mov eax, dword [eax + 8]
sub eax, edi
mov byte [esp + 0x18], 2
test edi, edi
je 0x493a53
cmp eax, 0x80
jbe 0x493a2c
push edi
call 0x4a9690
add esp, 4
jmp 0x493a53
dec eax
push ebx
shr eax, 3
mov ecx, 0x472784
lea ebx, [eax*4 + 0x472744]
call fcn.00490e00
mov eax, dword [ebx]
mov dword [edi], eax
mov dword [ebx], edi
mov ecx, 0x472784
call fcn.00490ef0
pop ebx
lea ecx, [esi + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.00494ff0
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x401880
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jle 0x4018aa
mov edx, dword [esp + 0xc]
push edi
movzx edi, byte [edx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [ecx + edi*4]
inc edx
sub esi, 1
jne 0x401892
pop edi
pop esi
ret 0xc
Function at 0x402660
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, ecx
test esi, esi
jne 0x402673
pop esi
xor eax, eax
pop ebx
ret 4
push 7
push str.file:__
push esi
call fcn.00434e82
add esp, 0xc
test eax, eax
jne 0x40268a
add esi, 7
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402690
sub eax, edx
push edi
inc eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x4026b0
pop edi
pop esi
pop ebx
ret 4
mov edx, edi
mov eax, esi
sub edx, esi
mov esi, 1
jmp 0x4026c0
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, esi
test cl, cl
jne 0x4026c0
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4026d0
sub eax, edx
cmp byte [eax + edi - 1], 0x5c
lea eax, [eax + edi - 1]
je 0x402700
cmp byte [eax], 0x2f
je 0x4026f4
cmp eax, edi
jbe 0x4026f4
sub eax, esi
cmp byte [eax], 0x5c
jne 0x4026e4
mov cl, byte [eax]
cmp cl, 0x5c
je 0x402700
cmp cl, 0x2f
jne 0x402703
mov byte [eax], 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402733
test al, 0x10
je 0x402733
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x402733
push edi
mov dword [ebx + 0x104], esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
ret 4
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
ret 4
Function at 0x402e30
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x1c
cmp dword [esp + 0x28], 0
mov dword [esp + 0xc], 0
jne 0x402e48
xor eax, eax
add esp, 0x1c
ret
lea ecx, [esp]
push ecx
or eax, 0x20019
push eax
mov eax, dword [esp + 0x28]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402f88
mov edx, dword [esp]
push eax
push eax
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x1c]
push ecx
push eax
push eax
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x402f7e
mov eax, dword [esp + 4]
push esi
inc eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x402f7d
mov ecx, dword [esp + 8]
push ebx
push ebp
xor ebx, ebx
lea edx, [esp + 0x20]
push edx
push ebx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
inc ecx
push esi
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x24]
push ebx
push ecx
xor ebp, ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x402f74
push edi
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x402f09
mov eax, esi
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402f00
test dl, dl
je 0x402efc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402f00
add eax, 2
add ecx, 2
test dl, dl
jne 0x402ee0
xor eax, eax
jmp 0x402f05
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402f44
lea edi, [esp + 0x20]
mov eax, esi
call fcn.00402dd0
test eax, eax
je 0x402f44
mov eax, dword [esp + 0x20]
cmp eax, ebp
ja 0x402f28
test ebp, ebp
jne 0x402f44
test eax, eax
jne 0x402f44
mov edx, dword [esp + 0x38]
mov ebp, eax
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402f32
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
inc edx
push esi
inc ebx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x28]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x402ed4
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebp
pop ebx
pop esi
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
add esp, 0x1c
ret
Function at 0x402f90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x45cff0]
xor eax, esp
mov dword [esp + 0x210], eax
push ebp
mov ebp, dword [esp + 0x21c]
push esi
lea eax, [esp + 0x10]
push eax
xor esi, esi
push esi
push 0x80000002
xor eax, eax
mov edx, str.SoftwareCloantoMenuBox_Builder
call fcn.00402e30
add esp, 0xc
test eax, eax
je 0x4030f0
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareCloantoMenuBox_Builder
lea edx, [esp + 0x16c]
push 0x449794
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 8]
push eax
push 0x20019
push esi
lea ecx, [esp + 0x170]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4030f0
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x64]
push eax
push esi
push esi
push str.Path
push ecx
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4030e5
lea eax, [esp + 0x60]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403050
sub eax, edx
push edi
inc eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
je 0x403098
lea ecx, [esp + 0x64]
mov byte [eax], 0
mov esi, ecx
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x403071
sub ecx, esi
mov edi, eax
mov edx, ecx
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403080
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, eax
lea ecx, [esp + 0x64]
mov eax, esi
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4030a1
sub ecx, edi
cmp byte [esp + ecx + 0x63], 0x5c
pop edi
je 0x4030c1
push 0x449788
mov eax, esi
call fcn.00402b60
add esp, 4
push ebp
call fcn.00402b60
add esp, 4
mov esi, eax
test ebx, ebx
je 0x4030e5
push 0x449784
call fcn.00402b60
push ebx
call fcn.00402b60
add esp, 8
mov esi, eax
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
pop ebp
xor ecx, esp
call fcn.00434d81
add esp, 0x214
ret
Function at 0x403d70
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
test eax, eax
je 0x403e8a
test ebp, ebp
je 0x403e8a
push edi
lea ecx, [esp + 0xc]
push ecx
push 0x20019
xor edi, edi
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403e82
mov edx, dword [esp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebp
push edx
mov dword [esp + 0x24], edi
call ebx
test eax, eax
jne 0x403e76
mov eax, dword [esp + 0x14]
cmp eax, 1
jne 0x403e22
mov eax, dword [esp + 0xc]
cmp eax, 1
jae 0x403de8
mov eax, 1
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov edi, eax
test ecx, ecx
je 0x403e76
cmp dword [esp + 0x24], eax
jl 0x403e76
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, dword [esp + 0x18]
push 0
push 0
push ebp
push ecx
call ebx
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, edi
pop edi
pop ebp
add esp, 0xc
ret
cmp eax, 2
jne 0x403e76
mov eax, dword [esp + 0xc]
cmp eax, 1
jae 0x403e39
mov eax, 1
mov dword [esp + 0xc], eax
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x403e75
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push esi
push 0
push 0
push ebp
push eax
call ebx
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, edi
pop edi
pop ebp
add esp, 0xc
ret
xor eax, eax
pop ebp
add esp, 0xc
ret