joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b810
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4738b8
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 0x43b849
inc eax
mov dword [esi + 0x10], eax
jmp 0x43b95c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43b85d
mov eax, 0xffffffc7
jmp 0x43b95e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43b86e
cmp dword [esi + 8], eax
jne 0x43b85d
cmp dword [esi + 8], eax
jne 0x43b887
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x43b887
mov eax, 0xffffffc7
jmp 0x43b95e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43b89b
push eax
mov ecx, ebx
call fcn.0043b040
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.0040a460
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43b8cc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.0040a480
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0043a7b0
test eax, eax
mov dword [esp + 0x38], eax
je 0x43b8ff
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x59d820
call fcn.0040a660
mov eax, dword [esp + 0x38]
jmp 0x43b95e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0043b670
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x43b943
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0043b690
mov esi, eax
test esi, esi
jne 0x43b973
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0043b670
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x43b915
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x59d820
call fcn.0040a660
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], 0x59d820
call fcn.0040a660
mov eax, esi
jmp 0x43b95e

Function at 0x43ea80
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x43eae0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x43eae0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x43eae0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x43eae0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x43eb20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x444c40
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x473ee8
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.0046cba0
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004445e0
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.0046cace
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.00469394
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.00469394
push 1
push 0
push 0
mov ecx, esi
call fcn.0046933c
push 1
push 0
push 1
mov ecx, esi
call fcn.0046933c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046cc12
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x444dc0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x473f08
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.0046cba0
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004445e0
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.0046cace
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 0x444e84
cmp dword [esp + 0x40], 1
jne 0x444e82
cmp ecx, eax
jge 0x444e84
mov eax, ecx
cmp eax, 0xc8
jge 0x444e90
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00444c40
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.0046cc12
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x445600
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x473f73
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.004677b0
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.0046ce48
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046e364
test eax, eax
je 0x44571c
mov ecx, dword [esp + 0x3c]
call fcn.0046ce75
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 0x4456e0
push edi
mov ecx, esi
call fcn.0046a4df
mov ecx, esi
call fcn.00445880
cmp dword [esp + 0x38], 1
jne 0x445715
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.0046a61a
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 0x448130
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x448163
push esi
call fcn.0044b230
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44815c
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 0x4481e9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4481d2
mov eax, dword [esi + 8]
test eax, eax
je 0x448187
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 0x4481ce
cmp eax, 2
je 0x4481d2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44817a
cmp eax, 3
je 0x4481ad
cmp eax, 1
jne 0x44817a
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 0x44817a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44817a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00448210
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4481f8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00448210
add esp, 4
pop esi
ret

Function at 0x4685a5
Capabilities:
Get graphical window text

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

Function at 0x469c9c
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 0x469cde
call fcn.0046f74a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x469cde
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x469cd5
xor eax, eax
jmp 0x469ce6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00469cec
pop edi
pop esi
pop ebx
ret 4

Function at 0x46fc7a
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 0x46fca8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46fcc6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046fbe0
jmp 0x46fcc6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46fcc6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046fbe0
test edi, edi
mov eax, edi
jne 0x46fcb0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4071d0
Capabilities:
Persist via appinit_dlls registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42087b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWindows
push 0x80000002
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407343
mov byte [esp + 0x18], bl
mov ecx, 0x82
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push ebx
push str.AppInit_DLLs
push eax
mov dword [esp + 0x2c], 0x209
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407343
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x10]
call fcn.00402900
lea ecx, [esp + 0xc]
mov dword [esp + 0x234], ebx
call fcn.00406eb0
push 0x421545
push str.kmon.dll
lea ecx, [esp + 0x14]
call fcn.00406cb0
push 0x421545
push str.ieprot.dll
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00406cb0
lea ecx, [esp + 0xc]
mov edi, eax
call fcn.004070b0
mov ecx, eax
call fcn.00402350
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 0xc]
cmp eax, ebx
je 0x40730f
cmp esi, ebx
je 0x4072d1
push str.kmon.dll
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4072eb
cmp edi, ebx
je 0x4072e7
push str.kmon.dll
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4072eb
mov byte [esp + 0x18], bl
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
push 1
push ebx
push str.AppInit_DLLs
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x234], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407343
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407c10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
push ebx
xor ebx, ebx
mov byte [esi], bl
mov ecx, dword [0x4219a0]
mov eax, dword [str.SOFTWARERising_]
mov edx, dword [0x4219a4]
mov dword [esp + 0xc], eax
mov eax, dword [0x4219a8]
mov dword [esp + 0x10], ecx
mov cl, byte [0x4219ac]
push edi
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], cl
mov dword [esp + 0x18], edx
xor eax, eax
mov ecx, 0x3d
lea edi, [esp + 0x21]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
mov dword [esp + 0xc], ebx
call edi
mov edx, dword [ebp + 0xc]
mov ecx, 0x105
sub ecx, eax
push ecx
push edx
lea eax, [esp + 0x18]
push eax
call edi
lea ecx, [esp + eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [esp + 8]
push edx
push 1
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407cf9
lea ecx, [ebp + 8]
push ecx
push esi
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x18]
push str.installpath
push eax
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407cee
push 0x5c
push esi
call fcn.0040a7de
add esp, 8
test eax, eax
je 0x407ce9
mov cl, byte [eax + 1]
test cl, cl
jne 0x407ce9
mov byte [eax], bl
mov ebx, 1
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407d10
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x407db6
push ebx
mov ebx, dword [esp + 0x18]
push edi
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407d81
lea ecx, [esp + 0xc]
push ecx
push esi
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x28]
push str.SystemRoot
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
test eax, eax
jne 0x407da0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
call edi
pop edi
pop ebx
pop esi
add esp, 8
ret
push str._system32
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call edi
pop edi
pop ebx
pop esi
add esp, 8
ret
xor eax, eax
pop esi
add esp, 8
ret
Function at 0x409050
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
push ebx
push esi
push edi
mov dword [esp + 0x14], ecx
mov esi, 0x42b448
xor ebx, ebx
lea ebx, [ebx]
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
mov eax, dword [esi]
add eax, 0x80000000
cmp eax, 5
ja case.0x40908d.2147483644
jmp dword [eax*4 + 0x4091dc]
push 0x104
push str.HKEY_CLASSES_ROOT
lea eax, [esp + 0x20]
push eax
jmp 0x4090e2
push 0x104
push str.HKEY_CURRENT_CONFIG
jmp 0x4090dd
push 0x104
push str.HKEY_CURRENT_USER
lea edx, [esp + 0x20]
push edx
jmp 0x4090e2
push 0x104
push str.HKEY_LOCAL_MACHINE
lea eax, [esp + 0x20]
push eax
jmp 0x4090e2
push 0x104
push str.HKEY_USERS
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
push str._s_s_s
push 0x42d468
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [ebp + 8]
add esp, 0x14
push 0x42d468
push ebx
push 0xfb8
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea edx, [esp + 0xc]
push edx
push 0x2001f
push ebx
push eax
push ecx
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4091a3
cmp dword [esi + 0xc], 0xffffffff
jne 0x40917b
mov edi, dword [esi + 8]
push str.about:blank
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push str.about:blank
push 1
push ebx
push edi
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esi + 0x10], 0xffffffff
jmp 0x409198
mov ecx, dword [esi + 8]
mov edi, dword [esp + 0xc]
push 4
lea eax, [esp + 0x14]
push eax
push 4
push ebx
push ecx
push edi
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp edi, ebx
je 0x4091a3
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0x1c
cmp esi, 0x42b65c
jl 0x409070
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
cmp eax, ebx
je 0x4091c7
push eax
call fcn.0040b272
add esp, 4
mov dword [esi], ebx
pop edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x410280
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x42bfc0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x42c3c0]
je 0x4102b5
inc eax
cmp eax, 0x13
jb 0x4102a6
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x42c3c0]
jne 0x4103db
mov eax, dword [0x42f4dc]
cmp eax, 1
je 0x4103b3
cmp eax, edx
jne 0x4102e5
cmp dword [0x42bfb4], 1
je 0x4103b3
cmp ecx, 0xfc
je 0x4103db
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41031b
lea eax, [ebp - 0x80]
push 0x425ab4
push eax
call fcn.00411c20
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040bf90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41034f
mov eax, edi
push eax
call fcn.0040bf90
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x425ab0
push edi
call fcn.0040fe40
add esp, 0x10
push edi
call fcn.0040bf90
push dword [esi + 0x42c3c4]
mov ebx, eax
call fcn.0040bf90
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040b0e0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00411c20
push edi
push ebx
call fcn.00411c30
push 0x425a90
push ebx
call fcn.00411c30
push dword [esi + 0x42c3c4]
push ebx
call fcn.00411c30
push 0x12010
push 0x425a68
push ebx
call fcn.004135c7
add esp, 0x2c
jmp 0x4103db
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x42c3c4]
push dword [esi]
call fcn.0040bf90
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040bf1e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4135c7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x42f928], ebx
push esi
push edi
jne 0x413647
push 0x4253c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x413682
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4264bc
push edi
call esi
test eax, eax
mov dword [0x42f928], eax
je 0x413682
push 0x4264ac
push edi
call esi
push 0x426498
push edi
mov dword [0x42f92c], eax
call esi
cmp dword [0x42f4e8], 2
mov dword [0x42f930], eax
jne 0x413647
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x42f938], eax
je 0x413647
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x42f934], eax
mov eax, dword [0x42f934]
test eax, eax
je 0x41368c
call eax
test eax, eax
je 0x413673
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x42f938]
test eax, eax
je 0x413673
test byte [ebp - 8], 1
jne 0x41368c
cmp dword [0x42f4f4], 4
jb 0x413686
or byte [ebp + 0x12], 0x20
jmp 0x4136ab
xor eax, eax
jmp 0x4136bb
or byte [ebp + 0x12], 4
jmp 0x4136ab
mov eax, dword [0x42f92c]
test eax, eax
je 0x4136ab
call eax
mov ebx, eax
test ebx, ebx
je 0x4136ab
mov eax, dword [0x42f930]
test eax, eax
je 0x4136ab
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x42f928]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x416659
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x416690
call fcn.0041f43e
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4166a1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x4166da
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x4166bf
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x4166c7
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x4166d8
test ax, ax
jne 0x4166d8
test si, si
je 0x4166da
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x4166e9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret