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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x458328]
cmp byte [eax + 0xc], 0
je 0x438d91
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x438d8a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [fcn.00459b64], 0
jne 0x438c78
push 0x438d98
call sub.KERNEL32.DLL_GetModuleHandleA_2
mov ebx, eax
push 0x438da0
push ebx
call sub.KERNEL32.DLL_GetProcAddress_1
mov dword [fcn.00459b64], eax
cmp dword [0x457b14], 0
jne 0x438d73
push 0x438db0
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x457b14], eax
cmp dword [0x457b14], 0
je 0x438d73
push 0x438dbc
mov eax, dword [0x457b14]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov dword [0x459b68], eax
push 0x438dcc
mov eax, dword [0x457b14]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov dword [0x459b6c], eax
push 0x438de0
mov eax, dword [0x457b14]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov dword [0x459b70], eax
push 0x438df8
mov eax, dword [0x457b14]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov dword [0x459b74], eax
push 0x438e10
mov eax, dword [0x457b14]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov dword [0x459b78], eax
push 0x438e24
mov eax, dword [0x457b14]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov dword [0x459b7c], eax
push 0x438e3c
mov eax, dword [0x457b14]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov dword [0x459b80], eax
push 0x438e54
mov eax, dword [0x457b14]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov dword [0x459b84], eax
push 0x438e70
mov eax, dword [0x457b14]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov dword [fcn.00459b88], eax
push 0x438e7c
mov eax, dword [0x457b14]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov dword [0x459b8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438d91
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43cc1c
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.0040440c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43cc6b
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.0040467c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44443c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44448c]
test si, 4
je 0x444450
or bl, 1
test si, 8
je 0x44445a
or bl, 4
test si, 1
je 0x444464
or bl, 8
test si, 2
je 0x44446e
or bl, 0x10
test si, 0x10
je 0x444478
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x444487
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x444490
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4444c8]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4444a9
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4444b8
or bl, 4
test esi, 0x20000000
je 0x4444c3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44ab8c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44ab9e
add esp, 0xfffffff0
call fcn.004039bc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419908
mov eax, dword [0x457ff8]
mov dword [eax + 4], ebx
mov dword [eax], 0x44af30
mov eax, dword [0x458004]
mov dword [eax + 4], ebx
mov dword [eax], 0x44af3c
mov eax, ebx
call fcn.0044af48
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411c00]
call fcn.0040366c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411c00]
call fcn.0040366c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411c00]
call fcn.0040366c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411c00]
call fcn.0040366c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411c00]
call fcn.0040366c
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, 0x447360
push eax
push 0
push 0
mov eax, dword [0x45814c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b32c]
call fcn.0041c794
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b32c]
call fcn.0041c794
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b32c]
call fcn.0041c794
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044b398
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44b260
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44b260
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44b260
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44acdb
call fcn.00403a14
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44b044
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 0x44b1ef
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44b1d0
mov dl, 1
mov eax, dword [0x41201c]
call fcn.0040366c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040440c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44b1bf
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.00438f84
test al, al
je 0x44b1b2
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, 0x44b200
lea eax, [ebp - 0x254]
call fcn.0040901c
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA_1
test eax, eax
jne 0x44b1b2
xor eax, eax
push ebp
push 0x44b1ab
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 0x44b238
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA_1
test eax, eax
jne 0x44b194
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040467c
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 0x44b194
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040467c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b1b2
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44b0b5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415af8
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 0x44b1f6
lea eax, [ebp - 0x260]
call fcn.0040440c
ret

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

Disassembly:
push ecx
mov eax, dword [0x459bb0]
cmp byte [eax + 0xa5], 0
jne 0x44bba9
cmp dword [0x459bc8], 0
jne 0x44bb6a
call sub.KERNEL32.DLL_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44baf4
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x459bc8], eax
cmp dword [0x459bc4], 0
jne 0x44bb85
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x459bc4], eax
cmp dword [0x459bcc], 0
jne 0x44bba9
push esp
push 0
push 0
push 0x44ba98
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x459bcc], eax
pop edx
ret
Function at 0x44c23c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x459bb0]
cmp dword [eax + 0x30], 0
je 0x44c2e6
cmp dword [ebx + 0x94], 0
jne 0x44c2e0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44c1cc
call sub.USER32.DLL_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44c2e0
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 0x44c2a6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44c2e0
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.00413f68
push eax
call sub.USER32.DLL_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44c2b5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44ce44
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 0x44ce79
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.004044fc
jmp 0x44ce86
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404460
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44e038
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44e079
mov eax, esi
call fcn.0043478c
test al, al
je 0x44e079
mov eax, dword [ebx + 0x84]
call fcn.00434488
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x44e079
push 0
mov eax, dword [ebx + 0x84]
call fcn.00434488
push eax
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
ret

Function at 0x44ed30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffff0
mov dword [esp + 8], 0x104
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push 0x44edc0
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
je 0x44ed67
mov eax, 0x457d54
mov dword [esp], eax
jmp 0x44edb8
lea eax, [esp + 8]
push eax
push 0x457d58
lea eax, [esp + 0xc]
push eax
push 0
push 0x44ede0
mov eax, dword [esp + 0x20]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA_1
mov ebx, eax
mov eax, dword [esp + 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey_1
test ebx, ebx
je 0x44eda1
mov eax, 0x457d54
mov dword [esp], eax
jmp 0x44edb8
mov edx, 0x44edf8
mov eax, 0x457d58
call fcn.00408a74
mov eax, 0x457d58
mov dword [esp], eax
mov eax, dword [esp]
add esp, 0x10
pop ebx
ret
Function at 0x4727c0
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0047283f
jae 0x4727cc
xor ecx, ecx
call fcn.0047283f
jae 0x4727f6
xor eax, eax
call fcn.0047283f
jae 0x472807
mov al, 0x10
call fcn.0047283f
adc al, al
jae 0x4727e8
jne 0x472834
stosb byte es:[edi], al
jmp 0x4727cd
call fcn.0047284b
dec ecx
loop 0x472813
mov eax, ebp
call fcn.00472849
jmp 0x472835
lodsb al, byte [esi]
shr eax, 1
je 0x47285b
adc ecx, 2
mov ebp, eax
jmp 0x472835
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00472849
cmp eax, 0x7d00
jae 0x472833
cmp eax, 0x500
jae 0x472834
cmp eax, 0x7f
ja 0x472835
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4727cd
pop ebp
ret 8
Function at 0x4073de
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x428038]
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.00405892
mov dword [ebp - 0x14], eax
cmp dword [0x42a1f0], edi
jne 0x4074cf
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40745c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4075af
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4075af
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4075af
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x42a1f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x42a1f4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x42a1f8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42a200], eax
test eax, eax
je 0x4074cc
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42a1fc], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4074f4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4074e7
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x407509
push 4
pop eax
jmp 0x4075b1
cmp dword [ebp - 0x14], edi
je 0x407509
push dword [0x42a1f0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4074ee
mov eax, dword [0x42a1fc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x407567
cmp dword [0x42a200], esi
je 0x407567
push eax
call ebx
push dword [0x42a200]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x407567
test eax, eax
je 0x407567
call ecx
test eax, eax
je 0x40755c
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 0x40755c
test byte [ebp - 8], 1
jne 0x407567
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x407597
mov eax, dword [0x42a1f4]
cmp eax, esi
je 0x407594
push eax
call ebx
test eax, eax
je 0x407594
call eax
mov edi, eax
test edi, edi
je 0x407594
mov eax, dword [0x42a1f8]
cmp eax, esi
je 0x407594
push eax
call ebx
test eax, eax
je 0x407594
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x42a1f0]
call ebx
test eax, eax
je 0x4075af
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4075b1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004020e0
leave
ret
Function at 0x416cc9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040476c
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x416d01
xor eax, eax
jmp 0x416d2d
cmp esi, dword [ebp - 4]
je 0x416d2a
cmp dword [ebp + 0xc], 0
je 0x416d2a
push dword [edi + 0x9c]
call fcn.004168d7
push dword [edi + 0x9c]
mov esi, eax
call fcn.00402f3b
pop ecx
pop ecx
cmp esi, eax
je 0x416cfd
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0xbb7f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xbcc9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xbb8002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00bbbdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xbb8002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00bb36e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00bbc20b
push 0x10
call fcn.00bbc1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xbb7fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00ba81c0
jmp 0xbb7fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00bb7b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xbb7ff0
mov ecx, edi
call fcn.00ba82c0
push edi
call fcn.00bbc1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xbb8021
inc ebx
cmp ebx, 0x20
jb 0xbb7f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xbbb1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00bbb140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00bbb140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00bbb140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00bbb140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xbbbbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xbbbc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xbcd87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xbbbc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xbbbc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x404aa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x404ac4
xor eax, eax
jmp 0x404b44
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404adb
xor eax, eax
jmp 0x404b44
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x404b27
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x404b27
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x404afe
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x404b33
xor eax, eax
jmp 0x404b44
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x404b41
xor eax, eax
jmp 0x404b44
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x406610
Capabilities:
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c8
mov eax, dword [0x5e3efc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c4], ecx
mov eax, dword [0x593afc]
mov dword [ebp - 0x10], eax
mov ecx, dword [0x593b00]
mov dword [ebp - 0xc], ecx
mov dx, word [0x593b04]
mov word [ebp - 8], dx
mov al, byte [0x593b06]
mov byte [ebp - 6], al
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1a8], 0x94
lea ecx, [ebp - 0x1a8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40667b
mov byte [ebp - 0x1a9], 1
jmp 0x406682
mov byte [ebp - 0x1a9], 0
mov dl, byte [ebp - 0x1a9]
mov byte [ebp - 0x1ad], dl
mov byte [ebp - 0x1ac], 0
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x1b8], eax
mov byte [ebp - 0x1aa], 1
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp dword [ebp - 0x1b8], 0
je 0x40671c
push 0x24
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x1b8]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x1b4], eax
cmp dword [ebp - 0x1b4], 0
je 0x40670d
mov eax, dword [ebp - 0x1b4]
push eax
call fcn.004182e0
add esp, 4
mov byte [ebp - 0x1aa], al
mov ecx, dword [ebp - 0x1b4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x1b8]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x406721
call fcn.00414cc0
movzx eax, byte [ebp - 0x1aa]
test eax, eax
je 0x406746
push 0
push 0
push 0x417fc0
call fcn.0056c69a
add esp, 0xc
mov byte [ebp - 0x1ac], 1
jmp 0x406753
push str.Failed_to_Stop_Service_n
call fcn.0040e200
add esp, 4
movzx ecx, byte [ebp - 0x1ad]
test ecx, ecx
je 0x40681f
cmp dword [ebp - 0x198], 2
jb 0x40681f
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x1c0], eax
mov byte [ebp - 0x1ab], 1
cmp dword [ebp - 0x1c0], 0
je 0x4067e4
push 0x24
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x1c0]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x1bc], eax
cmp dword [ebp - 0x1bc], 0
je 0x4067d5
mov ecx, dword [ebp - 0x1bc]
push ecx
call fcn.004182e0
add esp, 4
mov byte [ebp - 0x1ab], al
mov edx, dword [ebp - 0x1bc]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x1c0]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4067e9
call fcn.00414cc0
movzx ecx, byte [ebp - 0x1ab]
test ecx, ecx
je 0x406812
movzx edx, byte [ebp - 0x1ac]
test edx, edx
jne 0x406810
push 0
push 0
push 0x417fc0
call fcn.0056c69a
add esp, 0xc
jmp 0x40681f
push str.Failed_to_Stop_Service_n
call fcn.0040e200
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055d390
mov esp, ebp
pop ebp
ret