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

Disassembly:
push 0xffffffffffffffff
push 0x46fbb8
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.00468c24
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043ec70
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.00468b52
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.00465441
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.00465441
push 1
push 0
push 0
mov ecx, esi
call fcn.004653e9
push 1
push 0
push 1
mov ecx, esi
call fcn.004653e9
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00468c96
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43f450
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46fbd8
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.00468c24
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043ec70
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.00468b52
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 0x43f514
cmp dword [esp + 0x40], 1
jne 0x43f512
cmp ecx, eax
jge 0x43f514
mov eax, ecx
cmp eax, 0xc8
jge 0x43f520
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043f2d0
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.00468c96
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43fca0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46fc43
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.0046387b
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.00468ecc
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046a3e8
test eax, eax
je 0x43fdbc
mov ecx, dword [esp + 0x3c]
call fcn.00468ef9
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 0x43fd80
push edi
mov ecx, esi
call fcn.00466557
mov ecx, esi
call fcn.0043ff20
cmp dword [esp + 0x38], 1
jne 0x43fdb5
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.00466692
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 0x4427e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x442813
push esi
call fcn.004458f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44280c
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 0x442899
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x442882
mov eax, dword [esi + 8]
test eax, eax
je 0x442837
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 0x44287e
cmp eax, 2
je 0x442882
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44282a
cmp eax, 3
je 0x44285d
cmp eax, 1
jne 0x44282a
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 0x44282a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44282a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004428c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4428a8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004428c0
add esp, 4
pop esi
ret

Function at 0x44db80
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x44dbe6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x44dbe6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x44dbc7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x44df70
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x44dfa8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x44ece0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x44ed29
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x44f1a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x470140
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044ed50
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044edd0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044edd0
lea ecx, [esi + 0xc]
call fcn.00462255
lea ecx, [esi + 0x10]
call fcn.00462255
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00450370
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00450370
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00450370
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004622ca
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004622ca
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x464657
Capabilities:
Get graphical window text

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

Function at 0x465d45
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 0x465d87
call fcn.0046b983
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x465d87
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x465d7e
xor eax, eax
jmp 0x465d8f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00465d95
pop edi
pop esi
pop ebx
ret 4

Function at 0x46beb3
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 0x46bee1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46beff
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046be19
jmp 0x46beff
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46beff
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046be19
test edi, edi
mov eax, edi
jne 0x46bee9
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4659a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
push edi
or ebp, 0xffffffff
jmp 0x4659c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4659c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659b8
mov eax, 1
add ebx, ebx
jne 0x4659db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4659d0
jne 0x4659ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4659d0
xor ecx, ecx
sub eax, 3
jb 0x465a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465a72
mov ebp, eax
add ebx, ebx
jne 0x465a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x465a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a1d
jne 0x465a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465a4d
jmp 0x4659be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465a5c
add edi, ecx
jmp 0x4659be
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465a7a
cmp byte [edi], 0
jne 0x465a7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x465a7f
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x651f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65258]
or eax, eax
je 0x465ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x465ac9
call dword [esi + 0x6525c]
popal
jmp 0x40da18

Function at 0x10bbe
Capabilities:
Create device object
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.00010b85
pop ebp
jmp loc.00010490
Function at 0x401450
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401481
mov eax, dword [esp + 0xc]
sub eax, 3
neg eax
sbb eax, eax
and eax, 0xd
ret 0xc

Function at 0x4014b0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
push edi
lea edi, [eax + 1]
jmp 0x4014c0
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4014c0
mov ecx, dword [ecx]
sub eax, edi
add eax, 1
push eax
mov eax, dword [esp + 0x10]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 8

Function at 0x4014f0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov ecx, dword [ecx + 4]
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push edx
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp]
pop ecx
ret 8

Function at 0x4018f0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x164
mov eax, dword [0x4ef7d0]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push ebp
push esi
mov esi, dword [esp + 0x174]
push edi
push 0x4001
push 0x160
lea eax, [esp + 0x18]
push eax
push 0
push 0x4c7a10
mov edi, ecx
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 1
push 0x1003
push esi
call ebp
push 0x4000
push 0x160
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x4c7a10
call ebx
push eax
push 0
push 0x1003
push esi
call ebp
mov ecx, dword [esp + 0x170]
mov dword [edi + 8], esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049ec31
add esp, 0x164
ret 4
Function at 0x402520
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40258a
push esi
mov esi, dword [esp + 4]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push eax
push esi
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test esi, esi
je 0x402581
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc

Function at 0x402590
Capabilities:
Set registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
push esi
push edi
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
xor edi, edi
lea ecx, [esp + 0xc]
push ecx
push edi
push 0x2001f
push edi
push edi
push edi
push edx
push eax
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4025c4
mov edi, dword [esp + 8]
test eax, eax
mov esi, eax
jne 0x4025f5
mov edx, dword [esp + 0x1c]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4025d3
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, 1
push eax
push edx
push 1
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test edi, edi
je 0x402600
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ecx
ret 0x10

Function at 0x402610
Capabilities:
Set registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
push esi
push edi
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x14]
xor esi, esi
lea ecx, [esp + 0xc]
push ecx
push esi
push 0x2001f
push esi
push esi
push esi
push edx
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402644
mov esi, dword [esp + 8]
test eax, eax
mov edi, eax
jne 0x40266a
mov ecx, dword [esp + 0x1c]
push 4
lea edx, [esp + 0x18]
push edx
push 4
push eax
mov eax, dword [esp + 0x28]
push eax
push esi
mov dword [esp + 0x2c], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test esi, esi
je 0x402675
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ecx
ret 0x10

Function at 0x402800
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x402842
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push edi
push 1
lea edi, [esi + 0x10]
push edi
call ebx
mov eax, dword [esi + 0xc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40283b
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], 0
push 0
push edi
call ebx
pop edi
pop ebx
lea edx, [esp + 4]
push edx
push 0
push esi
push 0x401770
push 0
push 0
call fcn.0049f396
add esp, 0x18
mov dword [esi + 0xc], eax
pop esi
pop ecx
ret
Function at 0x402f50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
mov bl, byte [esp + 0x18]
test bl, bl
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0x14
jne 0x402f70
mov dword [esp + 0xc], 0x15
mov edx, dword [esi]
test edx, edx
jle 0x402fb2
mov ecx, dword [esi + 4]
test ecx, ecx
jle 0x402fb2
test bl, bl
je 0x402f8d
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 8]
sub eax, ecx
sub esi, edx
jmp 0x402f91
xor eax, eax
xor esi, esi
mov edi, dword [esp + 0xc]
push edi
push eax
mov eax, dword [esp + 0x24]
push esi
push ecx
push edx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0xc
ret 8
mov edi, 0x10
cmp dword [esi + 0x28], edi
jb 0x402fc1
mov eax, dword [esi + 0x14]
jmp 0x402fc4
lea eax, [esi + 0x14]
push ebp
lea ecx, [esp + 0x24]
push ecx
push 0x20019
push 0
push eax
push 0x80000001
mov dword [esp + 0x38], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4030a1
cmp dword [esi + 0x44], edi
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x24], eax
jb 0x403003
mov eax, dword [esi + 0x30]
jmp 0x403006
lea eax, [esi + 0x30]
lea edx, [esp + 0x24]
push edx
push 0
lea ecx, [esp + 0x20]
push ecx
push 0
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403096
cmp dword [esp + 0x18], 3
jne 0x403096
cmp dword [esp + 0x24], edi
jne 0x403096
cmp dword [esi + 0x44], edi
jb 0x403037
mov eax, dword [esi + 0x30]
jmp 0x40303a
lea eax, [esi + 0x30]
lea edx, [esp + 0x24]
push edx
push esi
push eax
lea ecx, [esp + 0x20]
call fcn.00401450
mov ecx, dword [esi + 8]
mov edi, dword [esi]
cmp ecx, edi
jle 0x403096
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 4]
cmp eax, esi
jle 0x403096
test bl, bl
je 0x403067
sub eax, esi
sub ecx, edi
jmp 0x40306b
xor eax, eax
xor ecx, ecx
mov edx, dword [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x28]
push ecx
push esi
push edi
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
lea ecx, [esp + 0x14]
call fcn.00402500
pop ebp
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0xc
ret 8
test ebp, ebp
je 0x4030a1
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop edi
pop esi
xor al, al
pop ebx
add esp, 0xc
ret 8
Function at 0x4057f0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, 0x10
cmp dword [esi + 0x28], ebp
push edi
jb 0x405808
mov eax, dword [esi + 0x14]
jmp 0x40580b
lea eax, [esi + 0x14]
lea ecx, [esp + 0x14]
push ecx
xor ebx, ebx
lea edx, [esp + 0x14]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push 0x80000001
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x40585d
cmp dword [esi + 0x44], ebp
mov edi, dword [esp + 0x10]
jb 0x405842
mov eax, dword [esi + 0x30]
jmp 0x405845
lea eax, [esi + 0x30]
push ebp
push esi
push 3
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp edi, ebx
je 0x40585d
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi + 0x44], ebp
jb 0x40586e
mov eax, dword [esi + 0x30]
push eax
call fcn.0049ea7d
add esp, 4
mov edi, 0xf
mov dword [esi + 0x44], edi
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
cmp dword [esi + 0x28], ebp
jb 0x40588d
mov ecx, dword [esi + 0x14]
push ecx
call fcn.0049ea7d
add esp, 4
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], ebx
pop edi
mov byte [esi + 0x14], bl
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x415ea0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b4718
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4ef7d0]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [0x4ef7d0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [esp + 0x40]
push 0
mov edi, ecx
call fcn.0041bc60
push eax
push 0xfb04
push esi
push 0x64
push 0x64
push 0
push 0
push 0x56000000
push 0
push str.SysListView32
push 0x200
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [edi + 4], eax
jne 0x415f7f
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], eax
mov byte [esp + 0x14], al
mov dword [esp + 0x38], eax
lea eax, [esp + 0x10]
push eax
call fcn.0042e4e0
add esp, 4
push 0
push 0x2725
lea ecx, [esp + 0x14]
call fcn.0042c080
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
mov edi, 0x10
cmp dword [esp + 0x28], edi
jae 0x415f50
lea ecx, [esp + 0x14]
push 0x30
push eax
push ecx
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0049ec02
add esp, 4
cmp dword [esp + 0x28], edi
jb 0x415f7b
mov edx, dword [esp + 0x14]
push edx
call fcn.0049ea7d
add esp, 4
xor al, al
jmp 0x415f81
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0049ec31
add esp, 0x30
ret 4