joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43db08
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x46fa74]
cmp byte [eax + 0xc], 0
je 0x43dc75
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43dc6e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x470afc], 0
jne 0x43db5c
push 0x43dc7c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43dc84
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470afc], eax
cmp dword [0x46eb44], 0
jne 0x43dc57
push 0x43dc94
call sub.kernel32.dll_LoadLibraryA
mov dword [0x46eb44], eax
cmp dword [0x46eb44], 0
je 0x43dc57
push 0x43dca0
mov eax, dword [0x46eb44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b00], eax
push 0x43dcb0
mov eax, dword [0x46eb44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b04], eax
push 0x43dcc4
mov eax, dword [0x46eb44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b08], eax
push 0x43dcdc
mov eax, dword [0x46eb44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b0c], eax
push 0x43dcf4
mov eax, dword [0x46eb44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b10], eax
push 0x43dd08
mov eax, dword [0x46eb44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b14], eax
push 0x43dd20
mov eax, dword [0x46eb44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b18], eax
push 0x43dd38
mov eax, dword [0x46eb44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b1c], eax
push 0x43dd54
mov eax, dword [0x46eb44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b20], eax
push 0x43dd60
mov eax, dword [0x46eb44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b24], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43dc75
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x441b28
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404344
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x441b77
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004045b4
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x449348
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x449398]
test si, 4
je 0x44935c
or bl, 1
test si, 8
je 0x449366
or bl, 4
test si, 1
je 0x449370
or bl, 8
test si, 2
je 0x44937a
or bl, 0x10
test si, 0x10
je 0x449384
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449393
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44939c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4493d4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4493b5
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4493c4
or bl, 4
test esi, 0x20000000
je 0x4493cf
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44fab0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44fac2
add esp, 0xfffffff0
call fcn.0040386c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b4c4
mov eax, dword [0x46f554]
mov dword [eax + 4], ebx
mov dword [eax], 0x44fe54
mov eax, dword [0x46f564]
mov dword [eax + 4], ebx
mov dword [eax], 0x44fe60
mov eax, ebx
call fcn.0044fe6c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x412264]
call fcn.0040351c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x412264]
call fcn.0040351c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x412264]
call fcn.0040351c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x412264]
call fcn.0040351c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x412264]
call fcn.0040351c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44c284
push eax
push 0
push 0
mov eax, dword [0x46f77c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41cef4]
call fcn.0041e35c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41cef4]
call fcn.0041e35c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41cef4]
call fcn.0041e35c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004502e0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4501a8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4501a8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4501a8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44fbff
call fcn.004038c4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44ff68
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd9c
push ebx
xor edx, edx
mov dword [ebp - 0x264], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x450138
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x450119
mov dl, 1
mov eax, dword [0x4128c8]
call fcn.0040351c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404344
lea eax, [ebp - 0x118]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
mov ebx, eax
call sub.kernel32.dll_GetSystemDefaultLangID
movzx eax, ax
mov dword [ebp - 0x10], eax
dec ebx
test ebx, ebx
jl 0x450108
inc ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x118]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.0043de68
test al, al
jne 0x450005
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4500fb
xor edx, edx
push ebp
push 0x4500f4
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x450025
mov ebx, dword [ebp - 0x10]
jmp 0x450027
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov dword [ebp - 0x260], ebx
mov byte [ebp - 0x25c], 0
lea ecx, [ebp - 0x260]
mov edx, 0x450148
lea eax, [ebp - 0x258]
call fcn.00409360
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4500dd
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x450180
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4500dd
lea eax, [ebp - 0x264]
lea edx, [ebp - 0x218]
mov ecx, pe_nt_image_headers32
call fcn.004045b4
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4500dd
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x218]
mov ecx, pe_nt_image_headers32
call fcn.004045b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4500fb
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x18], 4
dec dword [ebp - 0x14]
jne 0x44ffe6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416f74
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45013f
lea eax, [ebp - 0x264]
call fcn.00404344
ret
Function at 0x450a80
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x470b48]
cmp byte [eax + 0xa5], 0
jne 0x450af1
cmp dword [0x470b60], 0
jne 0x450ab2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x450a3c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x470b60], eax
cmp dword [0x470b5c], 0
jne 0x450acd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x470b5c], eax
cmp dword [0x470b64], 0
jne 0x450af1
push esp
push 0
push 0
push 0x4509e0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x470b64], eax
pop edx
ret

Function at 0x451184
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x470b48]
cmp dword [eax + 0x30], 0
je 0x45122e
cmp dword [ebx + 0x94], 0
jne 0x451228
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451114
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x451228
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4511ee
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x451228
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414954
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4511fd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x451d8c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x451dc1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404434
jmp 0x451dce
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404398
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x452ee0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x452f21
mov eax, esi
call fcn.00439444
test al, al
je 0x452f21
mov eax, dword [ebx + 0x84]
call fcn.00439140
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x452f21
push 0
mov eax, dword [ebx + 0x84]
call fcn.00439140
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x457958
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.00402f3c
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 [0x46fa74]
cmp byte [edx + 0xc], 0
je 0x4579bc
mov edx, dword [0x46fa5c]
cmp dword [edx], 2
jne 0x4579bc
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 0x4579c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x457a78
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00457958
test al, al
je 0x457a5a
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00404434
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x457a5a
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
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 - 0xc]
call fcn.00404804
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.00404804
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040453c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x457a13
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457a7f
lea eax, [ebp - 0x2c]
call fcn.00404344
lea eax, [ebp - 0xc]
call fcn.00404344
ret

Function at 0x457b78
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.00404804
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x457bd0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x46fa80]
mov dl, 1
mov eax, dword [0x457530]
call fcn.0040be94
call fcn.00403cd4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00457638
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 0x468abc
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x468ac4
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x468cb6
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x468ccc
mov eax, esi
call fcn.00465364
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404398
lea ecx, [ebp - 0x10]
mov edx, 0x468ce0
mov eax, esi
call fcn.00465364
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404398
lea ecx, [ebp - 0x14]
mov edx, 0x468cf8
mov eax, esi
call fcn.00465364
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404398
lea ecx, [ebp - 0x18]
mov edx, 0x468d14
mov eax, esi
call fcn.00465364
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404398
lea ecx, [ebp - 0x1c]
mov edx, 0x468d30
mov eax, esi
call fcn.00465364
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404398
lea ecx, [ebp - 0x24]
mov edx, 0x468d48
mov eax, esi
call fcn.00465364
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408320
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.004087a8
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x468d60
mov eax, esi
call fcn.00465364
mov eax, dword [ebp - 0x28]
call fcn.0045971c
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x468d70
mov eax, esi
call fcn.00465364
mov eax, dword [ebp - 0x2c]
call fcn.0045971c
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x468d88
mov eax, esi
call fcn.00465364
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.004087a8
inc eax
je 0x468c59
lea ecx, [ebp - 0x34]
mov edx, 0x468d88
mov eax, esi
call fcn.00465364
mov eax, dword [ebp - 0x34]
call fcn.0040876c
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.00409cd0
fstp qword [ebp - 0x3c]
wait
call fcn.0040a040
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x468c74
lea ecx, [ebp - 0x40]
mov edx, 0x468d88
mov eax, esi
call fcn.00465364
mov eax, dword [ebp - 0x40]
call fcn.0045971c
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x468d98
mov eax, esi
call fcn.00465364
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404398
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468cbd
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404368
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404368
ret
Function at 0x4011ef
Capabilities:
Get number of processors

Disassembly:
jmp 0x424fc0
push 0xffffffffffffffff
push 0x4b8d98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
mov ebx, ecx
push esi
mov esi, dword [esp + 0x2c]
push edi
lea ebp, [ebx + 0x214]
push 2
lea eax, [esp + 0x34]
push esi
push eax
mov ecx, ebp
call fcn.00474c3a
push 4
lea ecx, [esp + 0x1c]
push esi
push ecx
mov ecx, ebp
mov dword [esp + 0x34], 0
call fcn.00474c3a
mov eax, dword [eax]
push eax
call fcn.00451123
mov edi, eax
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], edi
call fcn.0047cbdd
cmp edi, 0x2580
jge 0x42505a
push 0x4e1b9c
push 1
push esi
mov ecx, ebp
call fcn.00474c0f
push 0
push 0
push 0
push 0
push 0
push 2
push 0
push esi
mov ecx, ebp
call fcn.00401a28
jmp 0x4251c7
mov edx, dword [esp + 0x30]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 4
jb 0x4251c7
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffc
lea edx, [esp + 0x14]
push ecx
push 3
push edx
lea ecx, [esp + 0x3c]
call fcn.0046fe2b
mov eax, dword [esp + 0x14]
mov byte [esp + 0x28], 1
push eax
call fcn.00451123
add esp, 4
cmp eax, 9
jle 0x4250ba
push eax
lea ecx, [esp + 0x34]
push str._COM_02d
push ecx
call fcn.0047036e
add esp, 0xc
mov edx, dword [esi*4 + 0x4e6bf0]
mov ecx, dword [0x4e6bec]
push edx
call fcn.004017e4
mov edi, eax
push 3
lea eax, [esp + 0x14]
push esi
push eax
mov ecx, ebp
call fcn.00474c3a
mov ecx, dword [esp + 0x10]
push 0x4e1234
push ecx
mov byte [esp + 0x30], 2
call fcn.00450b85
add esp, 8
test eax, eax
jne 0x4250ff
mov dword [ebx + esi*4 + 0x5c], eax
jmp 0x425127
mov edx, dword [esp + 0x10]
push 0x4e1bfc
push edx
call fcn.00450b85
add esp, 8
test eax, eax
jne 0x42511f
mov dword [ebx + esi*4 + 0x5c], 1
jmp 0x425127
mov dword [ebx + esi*4 + 0x5c], 0x64
mov ax, word [ebx + esi*4 + 0x5c]
mov ecx, dword [esi*4 + 0x4e6bf0]
push eax
call fcn.004019bf
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
push edi
push ecx
mov ecx, dword [esi*4 + 0x4e6bf0]
push edx
call fcn.00401456
cmp eax, 1
jne 0x425186
push 0x4e1bf4
push eax
push esi
mov ecx, ebp
call fcn.00474c0f
push 0
push 0
push 0
push 3
push 0
push 2
push 0
push esi
mov ecx, ebp
call fcn.00401a28
mov ecx, dword [0x4e6bec]
call fcn.00401e88
jmp 0x4251ab
push 0x4e1b9c
push 1
push esi
mov ecx, ebp
call fcn.00474c0f
push 0
push 0
push 0
push 0
push 0
push 2
push 0
push esi
mov ecx, ebp
call fcn.00401a28
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.0047cbdd
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call fcn.0047cbdd
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.0047cbdd
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x401ed8
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x403a80
push 0xffffffffffffffff
push 0x4b5be3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CMenu.0
mov dword [esi + 4], edi
lea ebx, [esi + 8]
mov dword [esp + 0x18], edi
mov ecx, ebx
call fcn.00478962
mov dword [ebx], method.CPtrArray.virtual_0
lea ebx, [esi + 0x1c]
mov byte [esp + 0x18], 1
mov ecx, ebx
call fcn.00478962
or eax, 0xffffffff
push 0x4e6a98
mov dword [ebx], method.CPtrArray.virtual_0
push edi
mov dword [esi], 0x4c004c
mov dword [esi + 0x54], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x30], 0x10
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x38], 0xc0c0c0
mov dword [esi + 0x3c], edi
call dword [0x4ed39c]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x58], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x401f64
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x409320
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b61a8
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
push edi
mov edi, ecx
xor ebp, ebp
cmp dword [edi + 0x58], ebp
jne 0x409356
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov eax, dword [0x4e3148]
push ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x10], eax
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0x10]
or ebx, 0xffffffff
push ecx
mov byte [esp + 0x34], 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], eax
call dword [0x4ed9d8]
cmp eax, ebp
mov dword [esp + 0x24], eax
jle 0x40945a
push esi
cmp ebx, 0xffffffff
jne 0x409443
push 0x400
push 0x100
push 0x100
lea ecx, [esp + 0x1c]
call fcn.0047d00d
mov edx, dword [edi + 4]
push eax
push ebp
push edx
call dword [0x4ed9c0]
push ebx
lea ecx, [esp + 0x14]
call fcn.0047d05c
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x409436
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
jle 0x409436
mov edx, dword [edi + 0xc]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [edx + esi*4]
call fcn.004020f4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 2
call fcn.0047cd16
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], 1
call fcn.0047cbdd
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.00450b85
add esp, 8
test eax, eax
je 0x409430
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x4093e2
jmp 0x409436
mov ebx, ebp
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x28]
inc ebp
cmp ebp, eax
jl 0x409396
test ebx, ebx
pop esi
jl 0x40945a
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x40945a
cmp ebx, eax
jl 0x40945a
sub ebx, eax
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call fcn.0047cbdd
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.0047cbdd
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x43b62a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0x14], esi
jle 0x43b65c
push ebx
push edi
mov edi, dword [ebp + 8]
sub edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
push 4
pop ebx
lea ecx, [eax + esi]
mov eax, esi
cdq
idiv ebx
mov al, byte [edx + ebp + 0x10]
xor al, byte [ecx + edi]
inc esi
cmp esi, dword [ebp + 0x14]
mov byte [ecx], al
jl 0x43b63d
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret