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

Disassembly:
push 0xffffffffffffffff
push 0x47c068
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.00474cdb
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0044b0d0
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.00474c09
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.004714d2
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.004714d2
push 1
push 0
push 0
mov ecx, esi
call fcn.0047147a
push 1
push 0
push 1
mov ecx, esi
call fcn.0047147a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00474d4d
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x44b8b0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47c088
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.00474cdb
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0044b0d0
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.00474c09
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 0x44b974
cmp dword [esp + 0x40], 1
jne 0x44b972
cmp ecx, eax
jge 0x44b974
mov eax, ecx
cmp eax, 0xc8
jge 0x44b980
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0044b730
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.00474d4d
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x44c100
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47c0f3
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.0046f8ed
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.00474f83
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047649f
test eax, eax
je 0x44c21c
mov ecx, dword [esp + 0x3c]
call fcn.00474fb0
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 0x44c1e0
push edi
mov ecx, esi
call fcn.00472620
mov ecx, esi
call fcn.0044c380
cmp dword [esp + 0x38], 1
jne 0x44c215
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.0047275b
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 0x44ec50
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44ec83
push esi
call fcn.00451d50
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44ec7c
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 0x44ed09
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44ecf2
mov eax, dword [esi + 8]
test eax, eax
je 0x44eca7
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 0x44ecee
cmp eax, 2
je 0x44ecf2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44ec9a
cmp eax, 3
je 0x44eccd
cmp eax, 1
jne 0x44ec9a
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 0x44ec9a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44ec9a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044ed30
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44ed18
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044ed30
add esp, 4
pop esi
ret

Function at 0x45a890
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 0x45a933
test eax, eax
jbe 0x45a933
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x45a933
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 0x45a8de
xor esi, esi
jmp 0x45a8e4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45a90f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00412440
add esi, eax
push esi
mov ebx, esi
call fcn.00412440
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x45a8f0
pop ebp
test edi, edi
pop edi
jne 0x45a933
test ebx, ebx
je 0x45a933
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0045f3a0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x45aa55
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 0x45ab6d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45ab6d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046fd3f
mov esi, eax
test esi, esi
je 0x45ab6d
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 0x45ab6d
mov ecx, esi
call fcn.0045a9e0
cmp edi, eax
jge 0x45ab6d
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 0x45aaf3
mov dword [esp + 0x34], 1
jmp 0x45ab4e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45ab6d
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.00459f90
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 0x4706e3
Capabilities:
Get graphical window text

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

Function at 0x471dda
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 0x471e1c
call fcn.0047788f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x471e1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x471e13
xor eax, eax
jmp 0x471e24
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00471e2a
pop edi
pop esi
pop ebx
ret 4
Function at 0x477dbf
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 0x477ded
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x477e0b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00477d25
jmp 0x477e0b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x477e0b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00477d25
test edi, edi
mov eax, edi
jne 0x477df5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40102f
Capabilities:
Query environment variable

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esp + 8], ebx
je 0x401052
push 0x104
push dword [esp + 0xc]
push str.USER_JPI_PROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x401052
mov bl, 1
mov al, bl
pop ebx
ret

Function at 0x401263
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb64
push ebx
push esi
lea eax, [ebp - 0x364]
push edi
push eax
call fcn.00401000
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [esp], str.150_06
push str.1.5.0_06
lea eax, [ebp - 0x260]
push str._Djavaplugin.version_s__Djavaplugin.nodotversion_s
push eax
call edi
lea eax, [ebp - 0x15c]
push eax
call fcn.0040102f
add esp, 0x14
xor ebx, ebx
cmp al, 1
jne 0x4012ca
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x764]
push str._Djavaplugin.user.profile__s_
push eax
call edi
add esp, 0xc
jmp 0x4012d0
mov byte [ebp - 0x764], bl
lea eax, [ebp - 0xb64]
mov esi, 0x800
push eax
mov byte [ebp - 0xb64], bl
call fcn.00401171
cmp eax, 1
pop ecx
jne 0x4012f2
mov esi, 0xc00
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
lea ecx, [ebp - 0x764]
mov esi, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x364]
push ecx
lea ecx, [ebp - 0x260]
push ecx
lea ecx, [ebp - 0xb64]
push ecx
push esi
push esi
push esi
push str._sjavaw.exe__classpath___s..libdeploy.jar____s..libplugin.jar___s__s__Duser.home__s___s_com.sun.deploy.panel.ControlPanel
push eax
mov dword [ebp - 4], eax
call edi
add esp, 0x28
xor eax, eax
lea edi, [ebp - 0x58]
push 0x11
pop ecx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x58], 0x44
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
test eax, eax
pop ebx
jne 0x40136e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
call fcn.004011db
add esp, 0xc
jmp 0x401377
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
leave
ret
Function at 0x4045f8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4047b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404659
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4047d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4046cb
xor eax, eax
push ebp
push 0x4046c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00404450
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4046ad
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4047f0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4046cb
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4047ac
cmp byte [ebp - 0xd], 0
jne 0x40470d
cmp byte [ebp - 0x12], 0
je 0x4047ac
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404726
dec ebx
cmp byte [ebx], 0x2e
je 0x404735
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404725
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4047ac
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404762
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4047ac
cmp byte [ebp - 0xd], 0
je 0x4047ac
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4047ac
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407240
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x407279
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403410
jmp 0x407282
mov eax, ebx
mov edx, esi
call fcn.0040337c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40728c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4072ad
mov al, byte [esp]
jmp 0x4072af
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40c8b1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004033c0
mov eax, dword [ebp - 0x10]
call fcn.0040c3c8
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x40c79a
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.004037bc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0040cb20
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40c86f
xor eax, eax
push ebp
push 0x40c868
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0040c538
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0040c8c0
test al, al
je 0x40c846
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00403410
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x40c846
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00403738
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x40c840
mov eax, dword [ebp - 0x14]
call fcn.00403738
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.004034e0
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0040c748
dec ebx
cmp ebx, 0xffffffff
jne 0x40c7f9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c86f
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0040c538
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00403738
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.0040c524
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c8b8
lea eax, [ebp - 0x3c]
call fcn.00403328
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040334c
ret
Function at 0x40c8c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.004027c8
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x40e46c]
cmp byte [edx + 8], 0
je 0x40c924
mov edx, dword [0x40e468]
cmp dword [edx], 2
jne 0x40c924
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret

Function at 0x40ca44
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0040c3dc
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00403738
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x40caa2
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x40e3b0]
mov dl, 1
mov eax, dword [0x40c2d4]
call fcn.00407a9c
call fcn.00402df8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40caac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00403738
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x40cb04
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x40e478]
mov dl, 1
mov eax, dword [0x40c2d4]
call fcn.00407a9c
call fcn.00402df8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0040c40c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40ccc4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
xor eax, eax
push ebp
push 0x40ce0e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x64
call fcn.00403804
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
push 0
push 0x40ce1c
mov eax, dword [0x40f654]
call fcn.00403738
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
jbe 0x40cdeb
mov eax, dword [ebp - 4]
call fcn.00403738
mov edx, eax
lea eax, [ebp - 4]
call fcn.004034e0
push 0x40
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402754
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x409fe4]
call fcn.0040b90c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x40cdb9
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x409fe4]
call fcn.0040b90c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x40cd9c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0040b764
mov ecx, eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.0040b80c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cda3
mov eax, dword [ebp - 0xc]
call fcn.00402a3c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ce15
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040334c
lea eax, [ebp - 4]
call fcn.00403328
ret

Function at 0x40ce30
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x40cedc
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40c334]
call fcn.0040c434
mov ebx, eax
mov edx, 0x80000002
mov eax, ebx
call fcn.0040c4d4
mov byte [ebx + 0xc], 0
xor ecx, ecx
mov edx, 0x40cef0
mov eax, ebx
call fcn.0040c53c
lea edx, [ebp - 8]
mov eax, dword [0x40f650]
call fcn.00406a80
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x40cf2c
call fcn.004035d0
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0xc]
mov ecx, dword [0x40f650]
mov edx, 0x40cf3c
call fcn.004035d0
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edx
call fcn.0040c9a0
mov eax, ebx
call fcn.0040c4a4
mov eax, ebx
call fcn.00402a3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cee3
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040334c
ret