joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441938
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x240], 0
je 0x441954
cmp dword [esi + 4], 0
je 0x441981
test byte [ebx + 0x55], 1
jne 0x441973
mov eax, ebx
call fcn.0043fd20
test eax, eax
jne 0x441973
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x441a91
mov edx, esi
mov eax, ebx
call fcn.00441340
jmp 0x441a91
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x441a8a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00443990
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0043d148
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00441938
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00443990
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441a91
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x448d38
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x46eb8c]
cmp byte [eax + 0xc], 0
je 0x448ea5
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x448e9e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x472544], 0
jne 0x448d8c
push 0x448eac
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x448eb4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x472544], eax
cmp dword [0x465600], 0
jne 0x448e87
push 0x448ec4
call sub.kernel32.dll_LoadLibraryA
mov dword [0x465600], eax
cmp dword [0x465600], 0
je 0x448e87
push 0x448ed0
mov eax, dword [0x465600]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x472548], eax
push 0x448ee0
mov eax, dword [0x465600]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47254c], eax
push 0x448ef4
mov eax, dword [0x465600]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x472550], eax
push 0x448f0c
mov eax, dword [0x465600]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x472554], eax
push 0x448f24
mov eax, dword [0x465600]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x472558], eax
push 0x448f38
mov eax, dword [0x465600]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47255c], eax
push 0x448f50
mov eax, dword [0x465600]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x472560], eax
push 0x448f68
mov eax, dword [0x465600]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x472564], eax
push 0x448f84
mov eax, dword [0x465600]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x472568], eax
push 0x448f90
mov eax, dword [0x465600]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47256c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x448ea5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44e9cc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44ea20]
test si, 4
je 0x44e9e1
or bl, 1
test si, 8
je 0x44e9eb
or bl, 4
test si, 1
je 0x44e9f5
or bl, 8
test si, 2
je 0x44e9ff
or bl, 0x10
test si, 0x10
je 0x44ea09
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44ea18
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44ea24
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44ea60]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44ea3e
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44ea4d
or bl, 4
test esi, 0x20000000
je 0x44ea58
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x456114
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x456126
add esp, 0xfffffff0
call fcn.00403b7c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a430
mov eax, dword [0x46e824]
mov dword [eax + 4], ebx
mov dword [eax], 0x4564b8
mov eax, dword [0x46e830]
mov dword [eax + 4], ebx
mov dword [eax], 0x4564c4
mov eax, ebx
call fcn.004564d0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x412054]
call fcn.00403828
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x412054]
call fcn.00403828
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x412054]
call fcn.00403828
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x412054]
call fcn.00403828
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x412054]
call fcn.00403828
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, 0x451f68
push eax
push 0
push 0
mov eax, dword [0x46e98c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41dff4]
call fcn.0041f848
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41dff4]
call fcn.0041f848
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41dff4]
call fcn.0041f848
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00456900
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4567d0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4567d0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4567d0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x456263
call fcn.00403bd4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4565b4
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 0x45675f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x456740
mov dl, 1
mov eax, dword [0x412478]
call fcn.00403828
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404684
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45672f
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.00449094
test al, al
je 0x456722
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, 0x456770
lea eax, [ebp - 0x254]
call fcn.00409420
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x456722
xor eax, eax
push ebp
push 0x45671b
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 0x4567a8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x456704
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004048f4
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 0x456704
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004048f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456722
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x456625
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.004161f8
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 0x456766
lea eax, [ebp - 0x260]
call fcn.00404684
ret

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

Disassembly:
push ecx
mov eax, dword [0x47257c]
cmp byte [eax + 0xad], 0
jne 0x457149
cmp dword [0x472594], 0
jne 0x45710a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x457094
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x472594], eax
cmp dword [0x472590], 0
jne 0x457125
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x472590], eax
cmp dword [0x472598], 0
jne 0x457149
push esp
push 0
push 0
push 0x457038
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x472598], eax
pop edx
ret
Function at 0x45731c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x457333
add esp, 0xfffffff0
call fcn.00403b7c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a430
mov eax, dword [0x46e974]
cmp word [eax + 2], 0
jne 0x45735b
mov eax, dword [0x46e974]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00458dcc
mov eax, dword [0x46ea24]
cmp word [eax + 2], 0
jne 0x457375
mov eax, dword [0x46ea24]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00458fd8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412054]
call fcn.00403828
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412054]
call fcn.00403828
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x412054]
call fcn.00403828
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41eb04]
call fcn.0042626c
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x45752c
mov eax, dword [0x46e88c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00426640
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x459698
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46e88c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
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.0040cbc4
test eax, eax
je 0x45747c
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408dd8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cbf8
test eax, eax
je 0x457490
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004048f4
mov byte [ebx + 0xd4], 0
push ebx
push 0x45892c
call fcn.0041b5ac
mov dword [ebx + 0xc8], eax
mov eax, dword [0x46e770]
cmp byte [eax], 0
jne 0x4574e1
mov eax, ebx
call fcn.00457670
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00459874
mov eax, ebx
call fcn.0045a3d4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x457521
call fcn.00403bd4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4578f0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x47257c]
cmp dword [eax + 0x30], 0
je 0x45799a
cmp dword [ebx + 0x94], 0
jne 0x457994
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x457880
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x457994
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 0x45795a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x457994
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.00414488
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x457969
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4586b4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4586e9
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.00404774
jmp 0x4586f6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004046d8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x459a58
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x459ac6
mov eax, esi
call fcn.00443d30
test al, al
je 0x459ac6
mov eax, dword [ebx + 0x84]
call fcn.00443990
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x459ac6
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x459aba
push 0
mov eax, dword [ebx + 0x84]
call fcn.00443990
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043bdb0
jmp 0x459ac6
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00459894
pop esi
pop ebx
ret
Function at 0x45ce2c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b38
mov eax, dword [ebp - 8]
call fcn.00404b38
xor eax, eax
push ebp
push 0x45cf08
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404b48
mov esi, eax
mov edx, esi
lea eax, [ebp - 0xc]
call fcn.0040487c
mov eax, dword [ebp - 0xc]
mov edx, 0x8000
call fcn.0040d960
test eax, eax
push esi
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [0x472614], eax
mov eax, dword [ebp - 8]
call fcn.00404b48
push eax
mov eax, dword [0x472614]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x472618], eax
push 0x472610
push 0x40
push 0x3b9ac9ff
push 0x472618
call sub.kernel32.dll_VirtualProtect
mov edx, 0x472618
mov eax, 0x465814
mov ecx, 4
call fcn.00402e7c
mov edx, 0x472618
mov eax, sub.kernel32.dll_GetCPInfo
mov ecx, 4
call fcn.0045ce10
mov eax, dword [0x472614]
push eax
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45cf0f
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004046a8
ret
Function at 0x4011a0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
sub esp, 0x64
mov dword [esp + 8], 4
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
sub esp, 0xc
test eax, eax
je 0x4012b8
mov ebx, eax
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.advapi32.dll_QueryServiceStatus]
sub esp, 8
mov edi, eax
test eax, eax
jne 0x401210
test byte [0x403000], 2
jne 0x401320
mov dword [esp], ebx
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
mov eax, edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], 0x4050fa
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
cmp eax, 7
jbe 0x401308
mov eax, dword [ebp - 0x28]
mov edx, str.WIN32_SHARE_PROCESS
cmp eax, 0x20
je 0x401265
mov edx, str.WIN32
cmp eax, 0x30
je 0x401265
cmp eax, 0x10
mov edx, str.WIN32_OWN_PROCESS
mov ecx, 0x4050fa
cmovne edx, ecx
mov ecx, dword [ebp - 0x34]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp - 0x38]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp - 0x40]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp - 0x30]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], str.SERVICE_NAME:__ls_n________TYPE_______________:__lx___ls_n________STATE______________:__lx___ls_n________WIN32_EXIT_CODE____:__lu___0x_lx__n________SERVICE_EXIT_CODE__:__lu___0x_lx__n________CHECKPOINT_________:_0x_lx_n________WAIT_HINT__________:_0x_lx_n
call sym._printf.constprop.0
jmp 0x4011f3
test byte [0x403000], 2
jne 0x4012d0
xor edi, edi
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_open_service__lu_n
xor edi, edi
mov dword [esp + 8], str.query_service
mov dword [esp + 0x10], eax
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4012c3
mov eax, dword [eax*4 + 0x405680]
mov dword [ebp - 0x30], eax
jmp 0x40123e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_query_service_status__lu_n
mov dword [esp + 8], str.query_service
mov dword [esp + 0x10], eax
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4011f3
Function at 0x402370
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x4023c8
cmp byte [esi + ebx - 1], 0xa
je 0x40239c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x407084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x402970
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov edi, dword [0x407094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x402b30
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x407094]
movzx eax, al
bt eax, esi
jae 0x402b90
mov ecx, dword [0x407084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x402a35
test byte [0x403018], 8
jne 0x402ad0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x403028], 8
jne 0x402a80
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x402a04
cmp esi, 3
jbe 0x402a40
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x405788]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x402a04
mov ecx, dword [0x407094]
test ecx, ecx
je 0x402b70
mov dword [esp], 0x403028
call dword [0x407094]
test al, 8
je 0x4029db
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x4029db
mov ebx, dword [0x407094]
test ebx, ebx
je 0x402b50
mov dword [esp], 0x403018
call dword [0x407094]
test al, 8
je 0x4029c6
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x4029ce
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x407094
call sym._load_func.part.0
jmp 0x40298d
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x407094
call sym._load_func.part.0
jmp 0x402ada
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x407094
call sym._load_func.part.0
jmp 0x402a8e
mov eax, 0xffffffff
jmp 0x402a35
Function at 0x402cf0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x1006159f
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.1006161e
jae 0x100615ab
xor ecx, ecx
call fcn.1006161e
jae 0x100615d5
xor eax, eax
call fcn.1006161e
jae 0x100615e6
mov al, 0x10
call fcn.1006161e
adc al, al
jae 0x100615c7
jne 0x10061613
stosb byte es:[edi], al
jmp 0x100615ac
call fcn.1006162a
dec ecx
loop 0x100615f2
mov eax, ebp
call fcn.10061628
jmp 0x10061614
lodsb al, byte [esi]
shr eax, 1
je 0x1006163a
adc ecx, 2
mov ebp, eax
jmp 0x10061614
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.10061628
cmp eax, 0x7d00
jae 0x10061612
cmp eax, 0x500
jae 0x10061613
cmp eax, 0x7f
ja 0x10061614
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x100615ac
pop ebp
ret 8