joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404d1a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00401c0a
mov dword [ebp - 0x14], eax
cmp dword [0x40daf0], edi
jne 0x404e0b
push 0x800
push edi
push 0x409d40
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x404d98
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x404eeb
push 0x409d40
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x404eeb
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404eeb
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x40daf0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x40daf4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x40daf8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x40db00], eax
test eax, eax
je 0x404e08
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x40dafc], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x404e30
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x404e23
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x404e45
push 4
pop eax
jmp 0x404eed
cmp dword [ebp - 0x14], edi
je 0x404e45
push dword [0x40daf0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x404e2a
mov eax, dword [0x40dafc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x404ea3
cmp dword [0x40db00], esi
je 0x404ea3
push eax
call ebx
push dword [0x40db00]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x404ea3
test eax, eax
je 0x404ea3
call ecx
test eax, eax
je 0x404e98
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x404e98
test byte [ebp - 8], 1
jne 0x404ea3
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x404ed3
mov eax, dword [0x40daf4]
cmp eax, esi
je 0x404ed0
push eax
call ebx
test eax, eax
je 0x404ed0
call eax
mov edi, eax
test edi, edi
je 0x404ed0
mov eax, dword [0x40daf8]
cmp eax, esi
je 0x404ed0
push eax
call ebx
test eax, eax
je 0x404ed0
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x40daf0]
call ebx
test eax, eax
je 0x404eeb
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x404eed
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004011f0
leave
ret
Function at 0x401480
Capabilities:
Get file size
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
mov ebx, ecx
mov dword [esp + 0x30], edx
push 0x80000000
push ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
cmp edi, 0xffffffff
je 0x401609
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x401609
mov ecx, dword [esp + 0x20]
mov eax, ecx
or eax, dword [esp + 0x24]
je 0x401609
push 1
push ecx
call fcn.00404ea0
add esp, 8
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
push dword [esp + 0x28]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401530
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.Error_on_read_file__ws_Error__d_nExit_n
call fcn.00401010
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov dword [esp + 0xc], 1
xor ebx, ebx
cmp dword [esp + 0x24], ecx
jl 0x40157d
jg 0x401551
cmp dword [esp + 0x20], ecx
jbe 0x40157d
mov al, byte [esi + ecx]
cmp al, 0xa
jne 0x40155b
inc ebx
jmp 0x401567
cmp al, 0xd
jne 0x40156b
mov dword [esp + 0xc], 2
mov byte [esi + ecx], 0
inc ecx
mov eax, ecx
cdq
cmp edx, dword [esp + 0x24]
jl 0x401551
jg 0x40157d
cmp eax, dword [esp + 0x20]
jb 0x401551
lea eax, [ebx*4]
push eax
call fcn.0040786b
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x4015ed
xor edi, edi
test esi, esi
je 0x4015bb
nop dword [eax + eax]
cmp edi, ebx
jae 0x4015bb
push esi
mov dword [eax + edi*4], esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, dword [esp + 0xc]
inc edi
add esi, eax
mov eax, dword [esp + 0x10]
jne 0x4015a0
cmp dword [0x41f394], 1
jne 0x4015dc
push dword [eax + ebx*4 - 4]
push dword [eax]
push ebx
push dword [esp + 0x24]
push str._t_DBG__file:__ws_lines:__d_first_line:___S__last_line:___S__n
call fcn.00401010
add esp, 0x14
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [eax], ebx
mov eax, dword [esp + 8]
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_on_memory_allocation__Error:__d_nExit_n
call fcn.00401010
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.Error_on_open_file__ws_Error:__d_nExit_n
call fcn.00401010
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401630
Capabilities:
Terminate process

Disassembly:
push str.Usage:_n_t_ips___path_to_file_with_IP_adresses_n_t_thr___count_of_threads__default:_1__n_t_dbg___show_debug_output_n_t_____show_this_message_n_nExit_n
call fcn.00401010
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x409214
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417600
push 0x4175f8
push str.FlsAlloc
push 0x1e
call fcn.004090d5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409248
push dword [ebp + 8]
mov ecx, esi
call dword [0x416180]
call esi
jmp 0x40924e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x409292
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417610
push 0x417608
push str.FlsGetValue
push 0x20
call fcn.004090d5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4092c9
push dword [ebp + 8]
mov ecx, esi
call dword [0x416180]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40c880
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40c91d
push ebx
push esi
call fcn.0040c849
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040c792
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40c8ca
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c91c
push edi
push eax
call fcn.0040a198
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40c8ea
call fcn.00408f68
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c91b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040c792
add esp, 0x20
test eax, eax
jne 0x40c909
push edi
call fcn.00408f68
jmp 0x40c911
push ebx
call fcn.00408f68
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x414a80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x414aad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x414aad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40d8ee
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x405a73
Capabilities:
Encode data using xor

Disassembly:
adc ecx, dword [ebx]
sub ebx, dword [ebx]
adc dword [edx], ecx
adc dword [ebx], ecx
lcall 8, 0x7b020513
add byte [ecx + edx], al
add al, 0x11
add eax, 0x306f
or ah, byte [esi]
adc dword [ebx], ecx
pop ss
pop eax
adc ecx, dword [ebx]
adc dword [ebx], ecx
adc dword [edx], ecx
mov gs, word [ecx + 0x32]
fnstsw word [eax]
mov eax, dword [0x8000000]
jb 0x405a83
push es
add byte [eax + 0x17], dh
outsd dx, dword [esi]
and eax, 0x390a0000
nop
add byte [eax], al
add byte [eax], cl
or byte [edi], bl
cmp ch, byte [edi + 0x26]
add byte [eax], al
or dl, byte [edi]
pop eax
outsd dx, dword [esi]
and al, 0
add byte [edx], cl
adc eax, dword [esi]
adc dword [esi], eax
jb 0x405aa3
push es
add byte [eax + 0x6f], dh
add byte cs:[eax], al
or dl, byte [edi]
outsd dx, dword [esi]
das
add byte [eax], al
or dl, byte [ebx]
pop es
adc dword [edi], eax
adc ecx, dword [esi + edx]
adc ecx, dword [0xc11202b]
adc dword [0x208139a], ecx
jnp 0x405af2
add byte [eax], al
add al, 0x11
or byte [edi + 0x31], ch
add byte [eax], al
or ch, byte [edi + 0x30]
add byte [eax], al
or ah, byte [esi]
adc dword [0xd135817], ecx
adc dword [0x698e0c11], ecx
xor bl, al
sub esi, dword [edi]
pop es
adc dword [esi + ecx*4], ecx
imul esi, dword [edx], 0x7372bd8
jb 0x405b01
push es
add byte [eax + 0x6f], dh
jo 0x405b7f
xor al, byte [eax]
add byte [edx], cl
sub al, 0x28
pop es
jb 0x405b0e
push es
add byte [eax + 0x6f], dh
add byte cs:[eax], al
or bl, byte [eax]
outsd dx, dword [esi]
xor eax, dword [eax]
add byte [edx], cl
adc ecx, dword [ecx]
add bh, byte [ebx + 0xa]
add byte [eax], al
add al, 0x11
or dword [esi], edx
lcall 0x346f, 0x9a170911
add byte [eax], al
or ch, byte [ebx]
add dl, byte [esi]
sub al, byte [esi]
pop ss
pop eax
or al, byte [esi]
add ecx, dword [esi - 0x29ac097]
invalid
add byte [eax + 0x28], dh
sbb byte [eax], al
add byte [edx], cl
jge 0x405b95
or ch, byte [0xd7b020c]
Function at 0x40138a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
and byte [ebp - 5], 0
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x401519
push 4
lea eax, [ebp - 4]
pop ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0xc]
push edi
push eax
push 0
push str.OperatingMode
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x401519
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.PrimaryDevices
push dword [ebp + 8]
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.SecondaryDevices
push dword [ebp + 8]
call esi
mov ebx, 0x104
lea eax, [ebp - 0x114]
push ebx
push 0
push eax
mov dword [ebp - 4], ebx
call fcn.0040c1e0
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.PrimaryMode
push dword [ebp + 8]
call esi
mov eax, dword [ebp - 4]
lea ecx, [edi + 0xc]
and byte [ebp + eax - 0x114], 0
lea eax, [ebp - 0x114]
push eax
call fcn.00401523
push ebx
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 4], ebx
call fcn.0040c1e0
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.SecondaryMode
push dword [ebp + 8]
call esi
mov eax, dword [ebp - 4]
lea ebx, [edi + 0x10]
mov ecx, ebx
and byte [ebp + eax - 0x114], 0
lea eax, [ebp - 0x114]
push eax
call fcn.00401523
lea eax, [edi + 0xc]
push eax
call fcn.0040b5fb
push ebx
call fcn.0040b5fb
pop ecx
lea eax, [ebp - 4]
pop ecx
mov dword [ebp - 4], 0x10
push eax
lea eax, [edi + 0x14]
push eax
lea eax, [ebp - 0xc]
xor ebx, ebx
push eax
push ebx
push str.ZoomArea
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4014d9
mov byte [edi + 0x24], 1
lea eax, [ebp - 4]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.ZoomLockStatus
mov dword [ebp - 4], 4
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40150b
cmp dword [ebp - 0x10], ebx
mov byte [edi + 0x2c], 1
setne al
mov dword [edi + 0x28], eax
push dword [ebp + 8]
mov ecx, edi
call fcn.004018a1
mov byte [ebp - 5], 1
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4015a6
Capabilities:
Set registry value

Disassembly:
mov eax, 0x414774
call fcn.0040c1ac
sub esp, 0x114
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 0xd], bl
je 0x40173a
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
push edi
push 4
push ebx
push str.OperatingMode
push dword [ebp + 8]
call esi
cmp eax, ebx
jne 0x40173a
lea eax, [edi + 4]
push 4
push eax
push 4
push ebx
push str.PrimaryDevices
push dword [ebp + 8]
call esi
lea eax, [edi + 8]
push 4
push eax
push 4
push ebx
push str.SecondaryDevices
push dword [ebp + 8]
call esi
mov eax, dword [edi + 0xc]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x401621
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea eax, [ebp - 0x18]
mov dword [ebp - 4], ebx
push eax
call fcn.0040b4e3
pop ecx
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x40163c
call fcn.0040174e
jmp 0x40163e
xor eax, eax
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.0040c2c0
lea eax, [ebp - 0x120]
push eax
call fcn.0040c240
add esp, 0xc
push eax
lea eax, [ebp - 0x120]
push eax
push 1
push ebx
push str.PrimaryMode
push dword [ebp + 8]
call esi
mov eax, dword [edi + 0x10]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x401683
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
call fcn.0040b4e3
pop ecx
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x40169f
call fcn.0040174e
jmp 0x4016a1
xor eax, eax
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.0040c2c0
lea eax, [ebp - 0x120]
push eax
call fcn.0040c240
add esp, 0xc
push eax
lea eax, [ebp - 0x120]
push eax
push 1
push ebx
push str.SecondaryMode
push dword [ebp + 8]
call esi
cmp byte [edi + 0x24], bl
je 0x4016ea
lea eax, [edi + 0x14]
push 0x10
push eax
push 3
push ebx
push str.ZoomArea
push dword [ebp + 8]
call esi
cmp byte [edi + 0x2c], bl
je 0x401711
cmp dword [edi + 0x28], ebx
mov dword [ebp - 0x1c], ebx
je 0x4016fe
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x1c]
push 4
push eax
push 4
push ebx
push str.ZoomLockStatus
push dword [ebp + 8]
call esi
push dword [ebp + 8]
mov ecx, edi
call fcn.004020ba
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 0xd], 1
cmp ecx, ebx
je 0x40172e
call fcn.00401128
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x40173a
call fcn.00401128
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x403a44
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4149de
call fcn.0040c1ac
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], esi
mov dword [esi + 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x10], ebx
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
mov byte [ecx], al
mov al, byte [ebp - 0xd]
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.004051b5
lea eax, [esi + 0x14]
mov byte [esi + 0x24], bl
push eax
mov byte [esi + 0x2c], bl
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x28], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4047aa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
mov byte [ebp - 1], bl
je 0x404824
push 4
lea eax, [ebp - 8]
pop edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.TVOverScan
mov dword [ebp - 0xc], ebx
push dword [ebp + 8]
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x404824
cmp dword [ebp - 0xc], ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], edi
setne al
mov dword [ecx + 0x18], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.TVVideoFormat
push dword [ebp + 8]
call esi
test eax, eax
jne 0x404824
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 1], 1
mov dword [ecx + 0x1c], eax
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
mov eax, 0x414b50
call fcn.0040c1ac
sub esp, 0x130
push ebx
push esi
mov esi, 0x104
push edi
xor ebx, ebx
push esi
lea eax, [ebp - 0x13c]
push ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esi
call fcn.0040c1e0
mov al, byte [ebp + 0xb]
add esp, 0xc
lea ecx, [ebp - 0x38]
mov byte [ebp - 0xd], 1
push ebx
mov byte [ebp - 0x38], al
call fcn.00405013
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push ebx
push ebx
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 0x13c]
mov dword [ebp - 4], ebx
push eax
push ebx
push dword [ebp + 8]
call edi
cmp eax, ebx
jne 0x404dac
cmp byte [ebp - 0xd], bl
je 0x404d4d
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x13c]
push eax
call fcn.0040c240
pop ecx
push eax
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x38]
call fcn.00405220
mov byte [ebp - 0xd], bl
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
jne 0x404d89
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x13c]
push eax
call fcn.0040c240
pop ecx
push eax
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x38]
call fcn.00405220
lea eax, [ebp - 0x20]
inc dword [ebp - 0x14]
push eax
push ebx
push ebx
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x18], esi
push eax
push dword [ebp - 0x14]
push dword [ebp + 8]
jmp 0x404d12
mov eax, dword [ebp - 0x14]
cmp dword [0x41b668], eax
jne 0x404dcd
mov eax, dword [ebp - 0x34]
cmp eax, ebx
jne 0x404dc3
mov eax, 0x41536c
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x38]
call fcn.00405013
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x405b61
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov esi, 0x418510
lea edi, [ebp - 0x20]
mov ecx, dword [0x41b704]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
cmp ecx, ebx
mov byte [ebp - 1], bl
movsw word es:[edi], word [esi]
mov dword [ebp - 0xc], ebx
je 0x405b90
call fcn.0040174e
jmp 0x405b92
xor eax, eax
push eax
call fcn.0040a0cc
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
cmp esi, ebx
pop ecx
je 0x405be3
mov eax, dword [esi]
lea ecx, [ebp - 8]
push ecx
push 0x415630
push esi
mov dword [ebp - 8], ebx
call dword [eax]
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x405bd8
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x405bcf
mov byte [ebp - 1], 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi]
push esi
call dword [eax + 8]
cmp byte [ebp - 1], bl
jne 0x405bec
push ebx
push ebx
push 2
push dword [ebp + 8]
call edi
mov esi, dword [ebp + 0xc]
cmp dword [esi], ebx
jne 0x405c7a
cmp dword [ebp - 0xc], ebx
je 0x405c7a
push esi
push 0x415570
push 0x15
push ebx
push 0x4155a0
mov byte [ebp - 1], bl
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [esi]
cmp ecx, ebx
je 0x405c6f
mov eax, dword [0x41b704]
cmp eax, ebx
je 0x405c26
mov eax, dword [eax]
jmp 0x405c28
xor eax, eax
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x14]
test eax, eax
jl 0x405c6f
mov eax, dword [esi]
lea edx, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x405c6f
cmp dword [ebp + 0xc], ebx
je 0x405c6f
mov eax, dword [esi]
lea edx, [ebp - 8]
mov dword [ebp - 8], ebx
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test eax, eax
jl 0x405c6f
cmp dword [ebp - 8], ebx
je 0x405c7a
mov esi, dword [esi]
push esi
mov eax, dword [esi]
call dword [eax + 0xc]
test eax, eax
jge 0x405c7a
push ebx
push ebx
push 2
push dword [ebp + 8]
call edi
jmp 0x405c7e
mov byte [ebp - 1], 1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
push 0x4081f0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406b58
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
jne 0x406b72
xor esi, esi
jmp 0x406ba0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0040ccf0
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
jne 0x406bdb
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x406bd4
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x406c70
xor esi, esi
jmp 0x406c70
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x406bfe
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x406c11
xor esi, esi
jmp 0x406c67
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
jne 0x406c23
jmp 0x406bee
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x406c67
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov eax, dword [ebp + 8]
cmp byte [esi + eax], bl
je 0x406c59
lea eax, [esi + 1]
add eax, 3
and al, 0xfc
call fcn.0040ccf0
lea eax, [esi + 1]
mov edi, esp
push eax
push dword [ebp + 8]
push edi
call fcn.0040c450
add esp, 0xc
mov byte [edi + esi], bl
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push edi
call fcn.00406cd7
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esp, [ebp - 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10