joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e1df0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4e1e2d
push str.m_hKey___0
push 0x771088
push 0
push 0x16a5
push 0x774fd8
push 2
call fcn.00722980
add esp, 0x18
cmp eax, 1
jne 0x4e1e2d
int3
xor edx, edx
jne 0x4e1dff
mov esi, esp
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp esi, esp
call fcn.00710bc0
pop esi
add esp, 4
cmp ebp, esp
call fcn.00710bc0
mov esp, ebp
pop ebp
ret 4

Function at 0x4f2780
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], 0xcccccccc
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x88], 0
je case.0x4f272d.1
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0x100
jne case.0x4f272d.1
call fcn.004f22a0
test eax, eax
jne case.0x4f272d.1
mov ecx, dword [ebp - 4]
call fcn.004218b0
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
sub ecx, 9
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x1f
ja case.0x4f272d.1
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + 0x4f27fc]
jmp dword [eax*4 + 0x4f27ec]
mov ecx, dword [ebp - 4]
push ecx
call fcn.004f19a0
add esp, 4
test eax, eax
je 0x4f2757
mov edx, dword [ebp - 4]
push edx
call fcn.004f19a0
add esp, 4
mov ecx, eax
call fcn.004266b0
mov eax, 1
jmp 0x4f27d9
cmp dword [ebp - 8], 0
je 0x4f2779
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
call fcn.00421770
mov ecx, eax
call fcn.004266b0
mov eax, 1
jmp 0x4f27d9
mov esi, esp
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00710bc0
movsx ecx, ax
test ecx, ecx
jl case.0x4f272d.1
mov esi, esp
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00710bc0
movsx edx, ax
test edx, edx
jl case.0x4f272d.1
mov ecx, dword [ebp - 4]
call fcn.004211a0
test eax, eax
jne case.0x4f272d.1
push 1
mov ecx, dword [ebp - 4]
call fcn.00423d50
mov eax, 1
jmp 0x4f27d9
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.00417d90
pop esi
add esp, 0xc
cmp ebp, esp
call fcn.00710bc0
mov esp, ebp
pop ebp
ret 4
Function at 0x524fa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], ecx
cmp dword [ebp + 0xc], 0
jne 0x524fcc
call fcn.0046e7f0
mov dword [ebp + 0xc], eax
mov esi, esp
push 0x78ce98
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp esi, esp
call fcn.00710bc0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x524ff8
xor eax, eax
jmp 0x525095
mov esi, esp
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp esi, esp
call fcn.00710bc0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x52501c
xor eax, eax
jmp 0x525095
mov esi, esp
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp esi, esp
call fcn.00710bc0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x52504f
mov esi, esp
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp esi, esp
call fcn.00710bc0
xor eax, eax
jmp 0x525095
mov esi, esp
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp esi, esp
call fcn.00710bc0
push eax
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 4]
call fcn.005250b0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.00419da0
mov esi, esp
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp esi, esp
call fcn.00710bc0
mov eax, dword [ebp - 0x14]
pop esi
add esp, 0x14
cmp ebp, esp
call fcn.00710bc0
mov esp, ebp
pop ebp
ret 8
Function at 0x601b30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x10], 0
jne 0x601b7a
push str.pnBytes___0
push 0x771088
push 0
push 0x178c
push 0x774fd8
push 2
call fcn.00722980
add esp, 0x18
cmp eax, 1
jne 0x601b7a
int3
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0
jne 0x601ba8
push str.m_hKey___0
push 0x771088
push 0
push 0x178d
push 0x774fd8
push 2
call fcn.00722980
add esp, 0x18
cmp eax, 1
jne 0x601ba8
int3
xor eax, eax
jne 0x601b7a
mov esi, esp
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, esp
call fcn.00710bc0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x601be1
mov eax, dword [ebp - 8]
jmp 0x601bf0
cmp dword [ebp - 0x10], 3
je 0x601bee
mov eax, 0xd
jmp 0x601bf0
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x601c14]
call fcn.00710b50
pop eax
pop edx
pop esi
add esp, 0x14
cmp ebp, esp
call fcn.00710bc0
mov esp, ebp
pop ebp
ret 0xc

Function at 0x601c30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x601c85
push str.m_hKey___0
push 0x771088
push 0
push 0x1763
push 0x774fd8
push 2
call fcn.00722980
add esp, 0x18
cmp eax, 1
jne 0x601c85
int3
xor edx, edx
jne 0x601c57
mov dword [ebp - 0x10], 4
mov esi, esp
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, esp
call fcn.00710bc0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x601cc5
mov eax, dword [ebp - 8]
jmp 0x601cd4
cmp dword [ebp - 0x1c], 4
je 0x601cd2
mov eax, 0xd
jmp 0x601cd4
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x601cf8]
call fcn.00710b50
pop eax
pop edx
pop esi
add esp, 0x20
cmp ebp, esp
call fcn.00710bc0
mov esp, ebp
pop ebp
ret 8
Function at 0x602a10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x602a4d
push str.m_hKey___0
push 0x771088
push 0
push 0x185e
push 0x774fd8
push 2
call fcn.00722980
add esp, 0x18
cmp eax, 1
jne 0x602a4d
int3
xor edx, edx
jne 0x602a1f
mov esi, esp
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 3
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, esp
call fcn.00710bc0
pop esi
add esp, 4
cmp ebp, esp
call fcn.00710bc0
mov esp, ebp
pop ebp
ret 0xc

Function at 0x602a90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x602acd
push str.m_hKey___0
push 0x771088
push 0
push 0x1866
push 0x774fd8
push 2
call fcn.00722980
add esp, 0x18
cmp eax, 1
jne 0x602acd
int3
xor edx, edx
jne 0x602a9f
mov esi, esp
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, esp
call fcn.00710bc0
pop esi
add esp, 4
cmp ebp, esp
call fcn.00710bc0
mov esp, ebp
pop ebp
ret 8
Function at 0x6581a0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x768cce
mov eax, dword fs:[0]
push eax
sub esp, 8
mov dword [ebp - 0x14], 0xcccccccc
mov dword [ebp - 0x10], 0xcccccccc
mov eax, dword [0x82be68]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00406160
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CMFCToolBarButton.0
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.00405e90
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00405e90
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x54
call fcn.004061c0
mov ecx, dword [ebp - 0x10]
add ecx, 0x64
call fcn.004062c0
mov ecx, dword [ebp - 0x10]
call fcn.00659230
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x18]
mov dword [ecx + 0x3c], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x20], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x14]
mov dword [edx + 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0065c440
cmp dword [ebp + 0x10], 0
jne 0x658260
mov dword [ebp - 0x14], method.CMFCColorPropertySheet.virtual_0
jmp 0x658266
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.00406640
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x20], 0
je 0x65831e
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x3c], 0
jne 0x65831e
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x6582dc
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x38], 0xffffffff
je 0x6582bf
push 1
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x38]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x20]
push edx
call fcn.005a5a60
mov ecx, eax
call fcn.005a5b40
jmp 0x6582da
push 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.005a5a60
mov ecx, eax
call fcn.005a59b0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x38], eax
jmp 0x65831e
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x34], 0xffffffff
je 0x658303
push 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x34]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.005a5a60
mov ecx, eax
call fcn.005a5b40
jmp 0x65831e
push 0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x20]
push eax
call fcn.005a5a60
mov ecx, eax
call fcn.005a59b0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x34], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
add esp, 0x14
cmp ebp, esp
call fcn.00710bc0
mov esp, ebp
pop ebp
ret 0x14

Function at 0x7173a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call fcn.00716f80
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x7173cc
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
call dword [0x770a74]
call dword [ebp - 8]
jmp 0x7173d6
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret
Function at 0x745990
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
call fcn.00747380
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x7459ce
cmp dword [ebp + 8], 0
je 0x7459bc
lea eax, [ebp + 8]
push eax
call fcn.00745b90
add esp, 4
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x7459ce
mov eax, 4
jmp 0x745afe
call fcn.007471b0
movzx edx, al
test edx, edx
jne 0x7459fc
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x7459ed
mov dword [ebp - 0xc], 4
jmp 0x7459f4
mov dword [ebp - 0xc], 3
mov eax, dword [ebp - 0xc]
jmp 0x745afe
movzx eax, byte [ebp - 1]
test eax, eax
je 0x745aa5
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0x745b40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
lea ecx, [ebp - 8]
call fcn.0071a710
lea ecx, [ebp - 8]
call fcn.00745bd0
movzx edx, al
test edx, edx
jne 0x745a67
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 8]
call fcn.00745bb0
mov eax, dword [ebp - 0x10]
jmp 0x745afe
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.0071aa30
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
je 0x745a92
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 8]
call fcn.00745bb0
mov eax, dword [ebp - 0x14]
jmp 0x745afe
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 8]
call fcn.00745bb0
mov eax, dword [ebp - 0x18]
jmp 0x745afe
call fcn.007472d0
movzx ecx, al
test ecx, ecx
jne 0x745ade
mov edx, dword [ebp + 0x10]
or edx, 0x200000
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.00745b10
add esp, 0x10
jmp 0x745afe
call fcn.007471e0
mov dword [ebp - 0x24], eax
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00745b10
add esp, 0x10
mov esp, ebp
pop ebp
ret

Function at 0x754169
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00753d05
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x429004]
jne 0x401010
repz ret
jmp fcn.00401748

Function at 0x405478
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402f5b
and dword [ebp - 4], 0
cmp dword [0x42b430], 0
mov ebx, eax
jne 0x405529
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4055da
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4055da
push eax
call fcn.00402ee9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42b430], eax
call esi
push eax
call fcn.00402ee9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42b434], eax
call esi
push eax
call fcn.00402ee9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42b438], eax
call esi
push eax
call fcn.00402ee9
pop ecx
mov dword [0x42b440], eax
test eax, eax
je 0x405529
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402ee9
pop ecx
mov dword [0x42b43c], eax
mov eax, dword [0x42b43c]
cmp eax, ebx
je 0x405581
cmp dword [0x42b440], ebx
je 0x405581
push eax
call fcn.00402f64
push dword [0x42b440]
mov esi, eax
call fcn.00402f64
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405581
test edi, edi
je 0x405581
call esi
test eax, eax
je 0x405578
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405578
test byte [ebp - 0xc], 1
jne 0x405581
or dword [ebp + 0x10], 0x200000
jmp 0x4055ba
mov eax, dword [0x42b434]
cmp eax, ebx
je 0x4055ba
push eax
call fcn.00402f64
pop ecx
test eax, eax
je 0x4055ba
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4055ba
mov eax, dword [0x42b438]
cmp eax, ebx
je 0x4055ba
push eax
call fcn.00402f64
pop ecx
test eax, eax
je 0x4055ba
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42b430]
call fcn.00402f64
pop ecx
test eax, eax
je 0x4055da
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4055dc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x420c7d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
push dword [0x42cec4]
push dword [0x42cbe0]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
leave
ret

Function at 0x420d0c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp ebx, 0x19f
jne 0x420d21
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push edi
xor edi, edi
test ebx, ebx
jle 0x420d59
push esi
and dword [ebp - 8], 0
lea esi, [ebp - 8]
mov dword [ebp - 4], 5
call fcn.00420d01
mov eax, dword [ebp - 8]
add eax, 0x46
mov dword [ebp - 4], eax
sub dword [ebp - 4], 0x46
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
add eax, edi
xor byte [eax], cl
inc edi
cmp edi, ebx
jl 0x420d29
pop esi
pop edi
cmp ebx, 0x2d
jne 0x420d70
or dword [0x42ced4], 0xffffffff
mov dword [0x42ced0], 0xa62e7790
leave
ret
Function at 0x43fcac
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
xor eax, eax
push ebx
push esi
push edi
xor esi, esi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
lea edx, [ebp - 0xc]
push eax
push 0
push 0
push 0
push edx
lea ecx, [ebp - 0x114]
push ecx
push esi
push edi
call sub.ADVAPI32.DLL_RegEnumKeyExA
mov ebx, eax
test ebx, ebx
jne 0x43fd4b
mov dword [ebp - 0xc], 0xc8
push str.HIDVid_3689Pid_8762
call fcn.004060a8
pop ecx
push eax
lea eax, [ebp - 0x110]
push eax
push 0x4aa98a
call fcn.00406328
add esp, 0xc
test eax, eax
jne 0x43fd4b
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0xc]
jne 0x43fd48
mov ecx, dword [ebp + 0x10]
mov esi, 0x4aa9b6
mov edi, ecx
lea edx, [ebp - 0x110]
mov eax, edi
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00405fcc
add esp, 8
mov eax, 1
jmp 0x43fd56
inc dword [ebp - 0x10]
inc esi
test ebx, ebx
je 0x43fccb
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405479
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405728
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x4054ad
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423fc8], eax
jmp 0x405641
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x4054cb
test eax, eax
je 0x4055ec
test byte [ebp + 0xc], 2
je 0x4055ec
mov esi, 0x421540
push edi
push esi
call fcn.00405b54
test ebx, ebx
je 0x4054e8
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4054ee
push edi
call fcn.0040568e
cmp byte [edi], 0
jne 0x4054fc
cmp byte [0x421540], 0x5c
jne 0x405507
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4055e2
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405672
cmp byte [eax], 0
je 0x40554d
cmp byte [ebp - 0x18], 0
je 0x40554d
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405563
mov al, byte [esi + 1]
test al, al
je 0x4055c1
cmp al, 0x2e
jne 0x405563
cmp byte [esi + 2], 0
je 0x4055c1
push esi
push ebx
call fcn.00405b54
test byte [ebp - 0x148], 0x10
je 0x405588
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4055c1
push dword [ebp + 0xc]
push edi
call fcn.00405479
jmp 0x4055c1
push edi
call fcn.0040580c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4055b9
test byte [ebp + 0xc], 4
je 0x4055b1
push edi
push 0xfffffffffffffff1
call fcn.00404e40
push 0
push edi
call fcn.004058a2
jmp 0x4055c1
inc dword [0x423fc8]
jmp 0x4055c1
push edi
push 0xfffffffffffffff2
call fcn.00404e40
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40552b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x4055ec
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x405641
cmp dword [ebp - 8], esi
jne 0x405601
inc dword [0x423fc8]
jmp 0x405641
push edi
call fcn.00405e4f
test eax, eax
je 0x405641
push edi
call fcn.00405647
push edi
call fcn.0040580c
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405639
test byte [ebp + 0xc], 4
je 0x4055f9
push edi
push 0xfffffffffffffff1
call fcn.00404e40
push esi
push edi
call fcn.004058a2
jmp 0x405641
push edi
push 0xffffffffffffffe5
call fcn.00404e40
pop edi
pop esi
leave
ret 8
Function at 0x401340
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x7d1ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x89b044]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
push 0x1d
xor ebx, ebx
push str.call_to_empty_boost::function
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00406a70
mov dword [esp + 0x34], ebx
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00407430
mov byte [esp + 0x34], 2
cmp dword [esp + 0x28], 0x10
jb 0x4013b6
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00704960
add esp, 4
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
mov dword [esi], vtable.boost::bad_function_call.0
mov dword [esp + 0x34], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x401c20
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x7d1f78
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x89b044]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov eax, dword [0x89b044]
xor eax, esp
push eax
lea eax, [esp + 0x41c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x424], ebx
cmp esi, ebx
je 0x401cd6
cmp word [esi], bx
je 0x401cd6
cmp edi, ebx
je 0x401c95
cmp word [edi], bx
je 0x401c95
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
push ebx
push edi
push esi
push ebx
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jl 0x401c8d
mov ebx, 1
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x401cd6
push 0x40e
lea ecx, [esp + 0xe]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x14], ax
call fcn.007202b0
add esp, 0xc
push ebx
push ebx
push 0x104
lea edx, [esp + 0x14]
push edx
push esi
push ebx
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
jl 0x401cd6
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, 1
mov ecx, dword [esp + 0x42c]
neg ecx
sbb ecx, ecx
test ecx, 0x4045b0
je 0x401cf6
push ebx
lea ecx, [esp + 0x430]
call fcn.004050c0
mov dword [esp + 0x424], 0xffffffff
lea ecx, [esp + 0x42c]
call fcn.00401620
mov eax, ebx
mov ecx, dword [esp + 0x41c]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.0071fe0b
add esp, 0x420
ret
Function at 0x406080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406099
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4060d4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4060d0
lea ebx, [ebx]
cmp esi, eax
jae 0x4060d4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4060c0
cmp esi, eax
jb 0x4060da
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret