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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4561d8]
cmp byte [eax + 0xc], 0
je 0x43e885
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43e87e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x457b64], 0
jne 0x43e76c
push 0x43e88c
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x43e894
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x457b64], eax
cmp dword [0x455bac], 0
jne 0x43e867
push 0x43e8a4
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x455bac], eax
cmp dword [0x455bac], 0
je 0x43e867
push 0x43e8b0
mov eax, dword [0x455bac]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x457b68], eax
push 0x43e8c0
mov eax, dword [0x455bac]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x457b6c], eax
push 0x43e8d4
mov eax, dword [0x455bac]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x457b70], eax
push 0x43e8ec
mov eax, dword [0x455bac]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x457b74], eax
push 0x43e904
mov eax, dword [0x455bac]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x457b78], eax
push 0x43e918
mov eax, dword [0x455bac]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x457b7c], eax
push 0x43e930
mov eax, dword [0x455bac]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x457b80], eax
push 0x43e948
mov eax, dword [0x455bac]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x457b84], eax
push 0x43e964
mov eax, dword [0x455bac]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x457b88], eax
push 0x43e970
mov eax, dword [0x455bac]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x457b8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e885
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x442710
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.00403f98
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44275f
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.00404208
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x449e9c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x449eec]
test si, 4
je 0x449eb0
or bl, 1
test si, 8
je 0x449eba
or bl, 4
test si, 1
je 0x449ec4
or bl, 8
test si, 2
je 0x449ece
or bl, 0x10
test si, 0x10
je 0x449ed8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449ee7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x449ef0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x449f28]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449f09
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449f18
or bl, 4
test esi, 0x20000000
je 0x449f23
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4505d0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4505e2
add esp, 0xfffffff0
call fcn.0040356c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419318
mov eax, dword [0x455eac]
mov dword [eax + 4], ebx
mov dword [eax], 0x450974
mov eax, dword [0x455eb8]
mov dword [eax + 4], ebx
mov dword [eax], 0x450980
mov eax, ebx
call fcn.0045098c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411610]
call fcn.00403218
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411610]
call fcn.00403218
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411610]
call fcn.00403218
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411610]
call fcn.00403218
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411610]
call fcn.00403218
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, 0x44cda8
push eax
push 0
push 0
mov eax, dword [0x455ffc]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41ad64]
call fcn.0041c4d8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41ad64]
call fcn.0041c4d8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41ad64]
call fcn.0041c4d8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00450dac
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450c88
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450c88
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450c88
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45071f
call fcn.004035c4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x450a6c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x450c17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x450bf8
mov dl, 1
mov eax, dword [0x411a2c]
call fcn.00403218
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403f98
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x450be7
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043ea78
test al, al
je 0x450bda
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x450c28
lea eax, [ebp - 0x254]
call fcn.00408a74
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x450bda
xor eax, eax
push ebp
push 0x450bd3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x450c60
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x450bbc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404208
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
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 - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x450bbc
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404208
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450bda
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x450add
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415508
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 0x450c1e
lea eax, [ebp - 0x260]
call fcn.00403f98
ret

Function at 0x45154c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x457bb0]
cmp byte [eax + 0xa5], 0
jne 0x4515bd
cmp dword [0x457bc8], 0
jne 0x45157e
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x451508
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x457bc8], eax
cmp dword [0x457bc4], 0
jne 0x451599
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x457bc4], eax
cmp dword [0x457bcc], 0
jne 0x4515bd
push esp
push 0
push 0
push 0x4514ac
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x457bcc], eax
pop edx
ret
Function at 0x4516b4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4516cb
add esp, 0xfffffff0
call fcn.0040356c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419318
mov eax, dword [0x455fe8]
cmp word [eax + 2], 0
jne 0x4516f3
mov eax, dword [0x455fe8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00452e1c
mov eax, dword [0x456094]
cmp word [eax + 2], 0
jne 0x45170d
mov eax, dword [0x456094]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453014
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411610]
call fcn.00403218
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411610]
call fcn.00403218
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b844]
call fcn.00422be4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x451894
mov eax, dword [0x455f10]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00422fb4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4535c4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x455f10]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c1b4
test eax, eax
je 0x451802
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408454
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c1dc
test eax, eax
je 0x451816
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404208
mov eax, dword [0x455e04]
cmp byte [eax], 0
jne 0x45184a
mov eax, ebx
call fcn.004519bc
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004537a0
mov eax, ebx
call fcn.00454164
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45188a
call fcn.004035c4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451c3c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x457bb0]
cmp dword [eax + 0x30], 0
je 0x451ce6
cmp dword [ebx + 0x94], 0
jne 0x451ce0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451bcc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x451ce0
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 0x451ca6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x451ce0
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.00413978
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x451cb5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x452848
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 0x45287d
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.00404088
jmp 0x45288a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403fec
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45397c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4539bd
mov eax, esi
call fcn.0043a0a4
test al, al
je 0x4539bd
mov eax, dword [ebx + 0x84]
call fcn.00439da0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4539bd
push 0
mov eax, dword [ebx + 0x84]
call fcn.00439da0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x401050
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x501874
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x54a020]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push esi
push edi
mov eax, dword [0x54a020]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call sub.MFC80.DLL_Ordinal_1206
test eax, eax
jne 0x4010be
push str.Fatal_Error:_MFC_initialization_failed_n
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 4
lea edi, [ebx + 1]
jmp 0x4011d0
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x134], ebx
call fcn.004016c0
mov byte [esp + 0x134], 1
mov ecx, dword [eax]
mov esi, dword [sym.imp.MFC80.DLL_Ordinal_2322]
push ecx
lea edx, [esp + 0x1c]
push str.HubitHost_s
push edx
call esi
add esp, 0x10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x130], bl
call dword [sym.imp.MFC80.DLL_Ordinal_578]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x13]
push eax
push 1
xor edx, edx
mov byte [esp + 0x1b], bl
call fcn.00401900
add esp, 8
cmp byte [esp + 0x13], bl
je 0x40113a
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
xor eax, eax
jmp 0x4011d2
push 1
push section..text
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
call fcn.004015b0
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
mov byte [esp + 0x130], 2
call fcn.00401b20
push eax
lea ecx, [esp + 0x1c]
push str._s..configconfig.xml
push ecx
call esi
mov ecx, dword [esp + 0x24]
add esp, 0xc
push 0x561038
call fcn.00403db0
push 0x103
lea edx, [esp + 0x25]
push ebx
push edx
mov byte [esp + 0x2c], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [esp + 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [esp + 0x20]
call fcn.00401760
push 0x56102c
call fcn.00401200
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
mov eax, edi
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0042b7d2
add esp, 0x124
ret
Function at 0x401200
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x500884
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x54a020]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov eax, dword [0x54a020]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
mov eax, 0x56148c
call fcn.00406a90
push 0x103
lea ecx, [esp + 0x21]
push 0
mov dword [esp + 0x248], 0
push ecx
mov byte [esp + 0x28], 0
call sub.MSVCR80.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov ebx, dword [sym.imp.MSVCR80.dll__strupr]
add esp, 0xc
cmp byte [0x562878], 0
jne 0x4012ad
push 0x104
push 0x562878
push 0
call esi
push 0x562878
call edi
push 0x562878
call ebx
add esp, 4
push str.Hubit.exe
push 0x562878
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push 0x103
lea eax, [esp + 0x129]
push 0
push eax
mov byte [esp + 0x130], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp byte [0x562878], 0
jne 0x401309
push 0x104
push 0x562878
push 0
call esi
push 0x562878
call edi
push 0x562878
call ebx
add esp, 4
push str.Chainz.ini
push 0x562878
lea ecx, [esp + 0x12c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
mov edx, dword [ebp + 8]
cmp byte [edx + 4], 0
jne 0x40141e
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 1
xor esi, esi
mov eax, dword [ebp + 8]
cmp byte [eax + 4], 0
jne 0x401352
push 0x7d0
call edi
add esi, ebx
cmp esi, 0x1e
jl 0x40133b
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00401d60
add esp, 4
cmp eax, ebx
je 0x401411
lea edx, [esp + 0x124]
push edx
push 0
push str.Disable
push str.WatchDog
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, ebx
je 0x401411
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
lea eax, [esp + 0x18]
mov byte [esp + 0x240], bl
call fcn.00402200
mov byte [esp + 0x240], 2
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x533d20
push edx
call dword [sym.imp.MFC80.DLL_Ordinal_2322]
add esp, 0x10
lea ecx, [esp + 0x18]
mov byte [esp + 0x240], bl
call dword [sym.imp.MFC80.DLL_Ordinal_578]
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
call fcn.00401ed0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add esp, 4
push ecx
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004020e0
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 0
call dword [sym.imp.MFC80.DLL_Ordinal_578]
mov ecx, dword [ebp + 8]
cmp byte [ecx + 4], 0
je 0x401339
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0042b7d2
mov esp, ebp
pop ebp
ret 4
Function at 0x401470
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x24c
mov eax, dword [0x54a020]
xor eax, esp
mov dword [esp + 0x248], eax
mov eax, esi
push ebx
lea edx, [eax + 1]
xor ebx, ebx
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x401490
sub eax, edx
jne 0x4014b5
xor al, al
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.0042b7d2
add esp, 0x24c
ret
push edi
push 0x103
lea eax, [esp + 0x4d]
push ebx
push eax
mov byte [esp + 0x54], bl
call sub.MSVCR80.dll_memset
push 0x103
lea ecx, [esp + 0x15d]
push ebx
push ecx
mov byte [esp + 0x164], bl
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.MSVCR80.dll__snprintf_s]
push esi
push 0x533df4
push 0xffffffffffffffff
lea edx, [esp + 0x6c]
push 0x104
push edx
call edi
add esp, 0x2c
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
push 0x533df4
push 0xffffffffffffffff
lea ecx, [esp + 0x158]
push 0x104
push ecx
call edi
push 0x3c
lea edx, [esp + 0x24]
push ebx
push edx
call sub.MSVCR80.dll_memset
add esp, 0x20
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0x40
call fcn.00401640
test al, al
pop edi
jne 0x40155c
mov dword [esp + 0x14], str.runas
lea edx, [esp + 8]
lea eax, [esp + 0x44]
lea ecx, [esp + 0x148]
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x401593
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x24c]
pop ebx
xor ecx, esp
mov al, 1
call fcn.0042b7d2
add esp, 0x24c
ret

Function at 0x4015b0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401633
lea ecx, [esp + 4]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x4015f1
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x1c
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push 0
push 0x10
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
push 0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x1c
ret
Function at 0x401640
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x54a020]
xor eax, esp
mov dword [esp + 0x9c], eax
push 0x9c
lea eax, [esp + 4]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40169c
cmp dword [esp + 4], 6
jae 0x40169c
mov al, 1
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.0042b7d2
add esp, 0xa0
ret
mov ecx, dword [esp + 0x9c]
xor ecx, esp
xor al, al
call fcn.0042b7d2
add esp, 0xa0
ret

Function at 0x401760
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x500828
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x54a020]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [0x54a020]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80.DLL_Ordinal_304]
lea eax, [esp + 8]
push eax
push 0xf003f
mov dword [esp + 0x234], 0
mov ecx, dword [esp + 0x14]
push 0
push ecx
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4018d2
lea ecx, [esp + 4]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
push esi
lea ecx, [esp + 8]
mov byte [esp + 0x230], 1
call dword [sym.imp.MFC80.DLL_Ordinal_784]
push 0x104
lea edx, [esp + 0x120]
push 0
push edx
call sub.MSVCR80.dll_memset
push 0x103
lea eax, [esp + 0x29]
push 0
push eax
mov dword [esp + 0x2c], 0x104
mov byte [esp + 0x30], 0
call sub.MSVCR80.dll_memset
lea ecx, [esp + 0x28]
push ecx
call fcn.004016c0
mov edx, dword [eax]
add esp, 0x1c
push edx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
push 0x533d20
push 0xffffffffffffffff
lea eax, [esp + 0x28]
push 0x104
push eax
call dword [sym.imp.MSVCR80.dll__snprintf_s]
add esp, 0x18
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x120]
push edx
push 0
push 2
lea eax, [esp + 0x28]
push eax
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x40189d
lea edx, [esp + 0x11c]
push edx
lea ecx, [esp + 8]
call dword [sym.imp.MFC80.DLL_Ordinal_1486]
test eax, eax
je 0x4018bd
mov eax, dword [esp + 4]
mov ecx, dword [eax - 0xc]
add ecx, 1
push ecx
push eax
mov eax, dword [esp + 0x10]
push 1
push 0
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 4]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0042b7d2
add esp, 0x22c
ret