joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402971
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40a288
call fcn.004033f8
mov edi, 0x94
mov eax, edi
call fcn.004027d0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40ce60], ecx
mov eax, dword [esi + 4]
mov dword [0x40ce6c], eax
mov edx, dword [esi + 8]
mov dword [0x40ce70], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40ce64], esi
cmp ecx, 2
je 0x4029d1
or esi, 0x8000
mov dword [0x40ce64], esi
shl eax, 8
add eax, edx
mov dword [0x40ce68], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x402a0c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402a0c
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x402a24
cmp eax, 0x20b
je 0x402a11
mov dword [ebp - 0x1c], esi
jmp 0x402a38
cmp dword [ecx + 0x84], 0xe
jbe 0x402a0c
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x402a32
cmp dword [ecx + 0x74], 0xe
jbe 0x402a0c
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00404a78
pop ecx
test eax, eax
jne 0x402a4c
push 0x1c
call fcn.0040294d
pop ecx
call fcn.00403169
test eax, eax
jne 0x402a5d
push 0x10
call fcn.0040294d
pop ecx
call fcn.004049d6
mov dword [ebp - 4], esi
call fcn.004047d8
test eax, eax
jge 0x402a76
push 0x1b
call fcn.00402928
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40e620], eax
call fcn.004046b6
mov dword [0x40ce48], eax
call fcn.00404614
test eax, eax
jge 0x402a9c
push 8
call fcn.00402928
pop ecx
call fcn.004043e1
test eax, eax
jge 0x402aad
push 9
call fcn.00402928
pop ecx
call fcn.00403eec
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x402ac0
push eax
call fcn.00402928
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00404378
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x402ae1
movzx eax, word [ebp - 0x34]
jmp 0x402ae4
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00401cde
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x402b02
push edi
call fcn.00404024
call fcn.00404046
jmp 0x402b34
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00403433
ret

Function at 0x403eaa
Capabilities:
Terminate process

Disassembly:
push str.mscoree.dll
call fcn.0041acb5
add byte [ebp + 0x681674c0], al
inc esp
movsd dword es:[edi], dword [esi]
inc eax
add byte [eax - 1], dl
adc eax, sym.imp.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x403ecf
push dword [esp + 4]
call eax
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x405551
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40d13c], ebx
push esi
push edi
jne 0x4055d1
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40560c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40aac4
push edi
call esi
test eax, eax
mov dword [0x40d13c], eax
je 0x40560c
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40d140], eax
call esi
cmp dword [0x40ce60], 2
mov dword [0x40d144], eax
jne 0x4055d1
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40d14c], eax
je 0x4055d1
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40d148], eax
mov eax, dword [0x40d148]
test eax, eax
je 0x405616
call eax
test eax, eax
je 0x4055fd
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40d14c]
test eax, eax
je 0x4055fd
test byte [ebp - 8], 1
jne 0x405616
cmp dword [0x40ce6c], 4
jb 0x405610
or byte [ebp + 0x12], 0x20
jmp 0x405635
xor eax, eax
jmp 0x405645
or byte [ebp + 0x12], 4
jmp 0x405635
mov eax, dword [0x40d140]
test eax, eax
je 0x405635
call eax
mov ebx, eax
test ebx, ebx
je 0x405635
mov eax, dword [0x40d144]
test eax, eax
je 0x405635
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40d13c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4064b1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x40c0cc]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x4064da
xor eax, eax
jmp 0x406648
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x40e2e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x40650d
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00407ca2
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4065df
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x40661a
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x406568
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x406559
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x40653c
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4065a8
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x4065b1
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x40652d
jmp 0x4065b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x406643
cmp dword [ebp - 8], edi
je 0x40661a
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x40660c
call fcn.004071f1
mov dword [eax], 9
call fcn.004071fa
mov dword [eax], esi
jmp 0x406615
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406601
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x4065b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x4065b3
push dword [ebp - 8]
call fcn.00407203
pop ecx
or eax, 0xffffffff
jmp 0x406646
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40662f
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x40662f
xor eax, eax
jmp 0x406646
call fcn.004071f1
mov dword [eax], 0x1c
call fcn.004071fa
mov dword [eax], edi
jmp 0x406615
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.004025c0
leave
ret
Function at 0x407120
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.004027d0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4071b5
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x40ce60]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4071b5
cmp eax, 1
je 0x4071cd
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4071b5
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x40718a
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4071b1
xor eax, eax
inc eax
jmp 0x4071e9
cmp esi, ebx
jae 0x4071b9
xor eax, eax
jmp 0x4071e9
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40ce60]
jmp 0x4071cf
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41acb5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
and cl, byte [0x40d628]
mov dl, al
mov dword [0x40e756], 0x235e7284
mov dword [0x40e83e], edx
mov edx, 0x401d4aff
setl byte [0x40e656]
movzx edi, dx
sub edi, 0x63
mov esi, 6
and word [0x40e63f], 0xffdc
dec dword [0x40e662]
movsx edx, ax
movsx ecx, byte [0x40d708]
shr edx, 1
imul eax, dword [esi + 0x40d6bf]
mov edx, 0x494008
seto byte [0x40e7cc]
shl eax, 0x13
inc word [esi*2 + 0x40e777]
push edx
bsf ebx, edx
movzx ecx, word [0x40d71b]
xor dword [0x40e737], 0xffffffdd
pop edx
movzx ebx, ax
sete byte [esi + 0x40e646]
mov dword [0x40e6c4], 0x46fa8d4f
sub edi, eax
movzx ebx, word [0x40d5de]
adc edi, edx
push eax
shrd word [0x40e74e], ax, 6
movzx ecx, word [esi*4 + 0x40d601]
seta byte [0x40e6ea]
movzx edi, word [0x40d63d]
inc word [esi*2 + 0x40e641]
movzx ebx, word [0x40d75c]
push dword [0x40e6d9]
pop dword [0x40e744]
pop eax
btc ecx, edx
and dword [0x40e6f4], 0xffffffeb
dec esi
jne 0x41aceb
mov edx, dword [0x40d76f]
mov ecx, 0x15
mov edi, 0x40e80b
mov esi, 0x40d719
rep movsb byte es:[edi], byte [esi]
seta byte [0x40e67a]
add edi, dword [0x40d650]
or edx, eax
not ebx
or byte [0x40e757], 0x15
mov edx, eax
shl dword [0x40e65d], 5
mov cl, 0xc9
push edx
pop dword [0x40e72a]
seta byte [0x40e83d]
btc ax, dx
mov dword [0x40e667], eax
sbb byte [0x40e825], dl
shrd dword [0x40e64d], eax, 0xe
sub dword [0x40e738], 0x7069792a
btr dword [0x40e818], 0x1c
imul ebx, edx
mov dword [0x40e845], 0x1322c4c3
mov dh, byte [0x40d5dd]
shrd dword [0x40e77e], edx, 0x1b
call fcn.0041930a
seto byte [0x40e78a]
sub edx, 0xffffff91
sub al, 0xc6
bts ebx, eax
call fcn.0041bdcd
xor eax, 0xe703a2b
mov dword [0x40e83b], 0x35373591
and dword [0x40e7e8], 0x1c
jne 0x41ae93
mov eax, dword [0x40d76e]
sbb bx, ax
setl byte [0x40e840]
sub byte [0x40e6af], 0x37
sub al, 0xba
not di
mov edi, 0x40e80b
push dword [0x40e7f1]
pop dword [edi]
sbb dword [0x40e648], edx
or edx, eax
shl esi, 0x1a
movzx ebx, dx
popal
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
lea eax, [ebp - 4]
push eax
mov word [esi], di
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
cmp ebx, edi
je 0x401112
mov edi, dword [ebx]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [edi + eax*2]
jmp 0x401048
lea ecx, [eax - 2]
cmp word [ecx], 0x5c
je 0x40104c
mov eax, ecx
cmp eax, edi
ja 0x40103d
mov cx, word [eax]
xor edi, edi
inc edi
test cx, cx
je 0x401090
inc eax
inc eax
cmp cx, 0x2d
jne 0x40104c
mov cx, word [eax]
cmp cx, 0x73
je 0x40106e
cmp cx, 0x53
jne 0x40107a
cmp word [eax + 2], 0x2e
jne 0x40107a
mov dword [esi + 4], edi
jmp 0x401090
cmp cx, 0x63
je 0x401086
cmp cx, 0x43
jne 0x401090
cmp word [eax + 2], 0x2e
jne 0x401090
mov dword [esi + 8], edi
cmp dword [ebp - 4], edi
mov edx, edi
jle 0x40110b
mov eax, dword [ebx + edx*4]
mov cx, word [eax]
cmp cx, 0x2f
je 0x4010cb
cmp cx, 0x2d
je 0x4010cb
cmp cx, 0x61
jb 0x4010bd
cmp cx, 0x7a
ja 0x4010bd
add ecx, 0xffffffe0
mov word [esi], cx
jmp 0x401105
cmp cx, 0x41
jb 0x401105
cmp cx, 0x5a
ja 0x401105
jmp 0x4010b8
mov cx, word [eax + 2]
cmp cx, 0x73
je 0x4010db
cmp cx, 0x53
jne 0x4010eb
cmp word [eax + 4], 0
jne 0x4010eb
and dword [esi + 8], 0
mov dword [esi + 4], edi
jmp 0x401105
cmp cx, 0x63
je 0x4010f7
cmp cx, 0x43
jne 0x401105
cmp word [eax + 4], 0
jne 0x401105
and dword [esi + 4], 0
mov dword [esi + 8], edi
inc edx
cmp edx, dword [ebp - 4]
jl 0x401097
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x401ab6
Capabilities:
Delete file
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push esi
push 0
push dword [esp + 0x10]
add ecx, 0x21c
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2 - 2]
jmp 0x401aeb
cmp word [eax], 0x2e
je 0x401af1
dec eax
dec eax
cmp eax, esi
jae 0x401ae3
jmp 0x401afc
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop esi
ret 0xc

Function at 0x401b00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push 0x400
lea eax, [ebp - 0x400]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
dec eax
mov dword [ebp + 0xc], eax
lea esi, [ebp - 0x400]
mov ebx, eax
je 0x401b53
push edi
lea eax, [ebp + 0xc]
push eax
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401b5d
add esi, dword [ebp + 0xc]
sub ebx, dword [ebp + 0xc]
jne 0x401b37
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
xor eax, eax
jmp 0x401b56
Function at 0x401fc9
Capabilities:
Get common file path

Disassembly:
mov eax, 0x40317f
call fcn.00402dd0
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x1c], esi
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0xc], ebx
push str.24AC021F_87E9_43cc_A794_11408DFAD2AC_UnplugDrive_Portable_Mutex
push ebx
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push str.24AC021F_87E9_43cc_A794_11408DFAD2AC_UnplugDrive_Portable_Event
push ebx
push 1
push ebx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x12
push ebx
push ebx
push 0x404390
mov dword [esi + 4], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov edi, 0x104
push edi
mov dword [esi + 0x10], eax
lea eax, [esi + 0x14]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [esi + 0x21c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [esi + 0x424]
push ebx
push eax
call sub.MSVCRT.dll_memset
push edi
lea eax, [esi + 0x62c]
push ebx
push eax
call sub.MSVCRT.dll_memset
push edi
lea eax, [esi + 0x834]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea edi, [esi + 8]
add esp, 0x24
cmp dword [edi], ebx
jne 0x402088
push 0x17
push ebx
push 0x404724
mov ecx, edi
call fcn.00401f4b
cmp eax, ebx
jl 0x4020e4
cmp dword [esi + 0xc], ebx
jne 0x4020e4
push str.._rootcimv2
lea ecx, [ebp - 0x18]
call fcn.0040140c
mov dword [ebp - 0x10], eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00401b61
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
cmp ecx, ebx
mov dword [ebp - 0x14], eax
je 0x4020bb
mov ecx, dword [ecx]
mov dword [ebp - 0x10], ecx
jmp 0x4020be
mov dword [ebp - 0x10], ebx
mov edi, dword [eax]
lea ecx, [esi + 0xc]
call fcn.00401496
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x4020e4
call fcn.004014ac
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x401140
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
sub esp, 0x7c
mov dword [esp + 8], 4
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._OpenServiceW_12
sub esp, 0xc
test eax, eax
je 0x401258
mov ebx, eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._QueryServiceStatus_8
sub esp, 8
mov edi, eax
test eax, eax
jne 0x4011b0
test byte [0x403000], 2
jne 0x4012c0
mov dword [esp], ebx
call sym._CloseServiceHandle_4
mov eax, edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], 0x404132
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
cmp eax, 7
jbe 0x4012a8
mov eax, dword [ebp - 0x34]
mov edx, str.WIN32_SHARE_PROCESS
cmp eax, 0x20
je 0x401205
mov edx, str.WIN32
cmp eax, 0x30
je 0x401205
cmp eax, 0x10
mov edx, str.WIN32_OWN_PROCESS
mov ecx, 0x404132
cmovne edx, ecx
mov ecx, dword [ebp - 0x44]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp - 0x48]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp - 0x50]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp - 0x40]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp - 0x3c]
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 0x401191
test byte [0x403000], 2
jne 0x401270
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], global___FUNCTION__.0
mov dword [esp + 0x10], eax
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401263
mov eax, dword [eax*4 + 0x404680]
mov dword [ebp - 0x40], eax
jmp 0x4011de
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], global___FUNCTION__.0
mov dword [esp + 0x10], eax
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401191
Function at 0x4022f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
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 0x40234b
cmp byte [esi + ebx - 1], 0xa
je 0x40231f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x405084], 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]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x4028a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x405094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x402a60
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x405094]
movzx eax, al
bt eax, esi
jae 0x402ac0
mov ecx, dword [0x405084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x402966
test byte [0x403018], 8
jne 0x402a00
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x403028], 8
jne 0x4029b0
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 0x402935
cmp esi, 3
jbe 0x402970
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]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 8], str._s:_s:_s
lea edx, [edi + 1]
mov dword [esp], eax
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x404780]
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 0x402935
mov ecx, dword [0x405094]
test ecx, ecx
je 0x402aa0
mov dword [esp], 0x403028
call dword [0x405094]
test al, 8
je 0x40290c
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 0x40290c
mov ebx, dword [0x405094]
test ebx, ebx
je 0x402a80
mov dword [esp], 0x403018
call dword [0x405094]
test al, 8
je 0x4028f9
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [esp + 0x28]
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 0x4028ff
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x405094
call sym._load_func.part.0
jmp 0x4028c0
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x405094
call sym._load_func.part.0
jmp 0x402a0a
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x405094
call sym._load_func.part.0
jmp 0x4029be
mov eax, 0xffffffff
jmp 0x402966
Function at 0x402c20
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
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 sub.ucrtbase.dll_exit