joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408530
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x429460]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x64], 0x67452301
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0xefcdab89
lea ecx, [ebp - 0x6c]
movlpd qword [ebp - 0x6c], xmm0
mov dword [ebp - 0x5c], 0x98badcfe
mov dword [ebp - 0x58], 0x10325476
call fcn.00408480
mov edx, dword [ebp - 0x6c]
add esp, 4
mov ecx, dword [ebp - 0x68]
mov eax, edx
shld ecx, eax, 3
and edx, 0x3f
shl eax, 3
mov dword [ebp - 0x14], eax
mov eax, 0x38
mov dword [ebp - 0x10], ecx
cmp edx, 0x38
jb 0x40859c
mov eax, 0x78
sub eax, edx
lea ecx, [ebp - 0x6c]
push eax
mov edx, 0x4251a8
call fcn.00408480
add esp, 4
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x6c]
push 8
call fcn.00408480
movdqu xmm0, xmmword [ebp - 0x64]
mov ecx, dword [ebp - 8]
add esp, 4
xor ecx, ebp
movdqu xmmword [esi], xmm0
pop esi
call fcn.0040dfe8
mov esp, ebp
pop ebp
ret
Function at 0x409780
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d8eb
mov eax, dword fs:[0]
push eax
sub esp, 0x364
mov eax, dword [0x429460]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x36c], ebx
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
mov dword [ebp - 4], 0
call fcn.0040b4f0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x364], ebx
cmp ebx, 0xffffffff
je 0x4099b6
lea eax, [ebp - 0x360]
mov dword [ebp - 0x360], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
push 0
push 0
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0x104
lea eax, [ebp - 0x33c]
push eax
push 0x200
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp byte [ebp - 0x118], 0
jne 0x409846
xor ecx, ecx
jmp 0x409859
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409850
sub ecx, edx
push ecx
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x130]
call fcn.00401a60
mov edi, dword [ebp - 0x120]
xor eax, eax
mov edx, dword [ebp - 0x11c]
mov esi, dword [ebp - 0x130]
test edi, edi
je 0x409915
jmp 0x409890
cmp edx, 0x10
lea ecx, [ebp - 0x130]
cmovae ecx, esi
cmp byte [ecx + eax], 0x5b
je 0x4098ea
cmp edx, 0x10
lea ecx, [ebp - 0x130]
cmovae ecx, esi
cmp byte [ecx + eax], 0x5d
je 0x4098ea
cmp edx, 0x10
lea ecx, [ebp - 0x130]
cmovae ecx, esi
cmp byte [ecx + eax], 0x7b
je 0x4098ea
cmp edx, 0x10
lea ecx, [ebp - 0x130]
cmovae ecx, esi
cmp byte [ecx + eax], 0x7d
je 0x4098ea
cmp edx, 0x10
lea ecx, [ebp - 0x130]
cmovae ecx, esi
cmp byte [ecx + eax], 0x22
jne 0x40990c
cmp edx, 0x10
lea ecx, [ebp - 0x130]
cmovae ecx, esi
mov byte [ecx + eax], 0x78
mov edx, dword [ebp - 0x11c]
mov edi, dword [ebp - 0x120]
mov esi, dword [ebp - 0x130]
inc eax
cmp eax, edi
jb 0x409890
cmp edx, 0x10
lea eax, [ebp - 0x130]
lea ebx, [ebp - 0x130]
cmovae eax, esi
mov dword [ebp - 0x368], eax
lea eax, [ebp - 0x130]
cmovae eax, esi
add eax, edi
cmp edx, 0x10
cmovae ebx, esi
cmp ebx, eax
je 0x40996e
mov edi, eax
xor ecx, ecx
sub edi, ebx
xor esi, esi
cmp ebx, eax
cmova edi, ecx
test edi, edi
je 0x40996e
movsx eax, byte [esi + ebx]
push eax
call fcn.0040eb45
mov ecx, dword [ebp - 0x368]
add esp, 4
mov byte [esi + ecx], al
inc esi
cmp esi, edi
jne 0x409953
mov ebx, dword [ebp - 0x36c]
lea edx, [ebp - 0x130]
mov ecx, ebx
call fcn.00409680
test al, al
jne 0x409993
lea eax, [ebp - 0x130]
mov ecx, ebx
push eax
call fcn.0040b420
mov ebx, dword [ebp - 0x364]
lea eax, [ebp - 0x360]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x409810
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x11c], 0x10
jb 0x4099cd
push dword [ebp - 0x130]
call fcn.0040dff7
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040dfe8
mov esp, ebp
pop ebp
ret
Function at 0x40ba30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x202c
call fcn.00414f30
mov eax, dword [0x429460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
lea eax, [edi + 0x58]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40ba6d
mov eax, dword [edi + 0x34]
jmp 0x40ba70
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2018], eax
test esi, esi
je 0x40bbbc
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xfffffffffffffff0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 1
mov ecx, 0x2005
mov eax, 0x2004
cmovne eax, ecx
push 0x2000
mov dword [ebp - 0x2024], eax
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.00414f60
add esp, 0xc
lea eax, [ebp - 0x2014]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [ebp - 0x2018]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push dword [ebp - 0x2018]
mov dword [ebp - 0x201c], eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push dword [ebp - 0x201c]
mov dword [ebp - 0x2018], eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x2018]
mov dword [ebp - 0x202c], eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
push ebx
mov dword [ebp - 0x2020], eax
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [ebp - 0x2004]
mov dword [ebp - 0x2028], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bb46
mov eax, dword [ebp - 0x2024]
sub ecx, edx
push eax
lea eax, [ebp - 0x2014]
sar ecx, 1
push eax
push ecx
lea eax, [ebp - 0x2004]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0x2020]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x202c]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x2028]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [ebp - 0x201c]
call esi
push dword [ebp - 0x2018]
call esi
push dword [edi + 0x24]
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040dfe8
mov esp, ebp
pop ebp
ret 4
Function at 0x40d650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov ecx, edx
mov dword [ebp - 4], edx
add esi, 0xdeadbeef
add esi, ecx
mov edx, esi
mov dword [ebp + 8], edx
push edi
mov edi, esi
cmp ecx, 0xc
jbe switch.0x0040d752
add ecx, 0xfffffff3
mov eax, 0xaaaaaaab
mul ecx
mov eax, edx
shr eax, 3
inc eax
mov dword [ebp - 8], eax
mov edi, edi
movzx ecx, byte [ebx + 7]
movzx eax, byte [ebx + 6]
shl ecx, 8
add ecx, eax
movzx edx, byte [ebx + 8]
movzx eax, byte [ebx + 5]
add edx, esi
shl ecx, 8
add ecx, eax
movzx eax, byte [ebx + 4]
shl ecx, 8
add edi, eax
movzx eax, byte [ebx + 0xa]
add edi, ecx
movzx ecx, byte [ebx + 0xb]
shl ecx, 8
add ecx, eax
movzx eax, byte [ebx + 9]
shl ecx, 8
add ecx, eax
movzx eax, byte [ebx + 2]
shl ecx, 8
add edx, ecx
movzx ecx, byte [ebx + 3]
shl ecx, 8
mov esi, edx
add ecx, eax
rol esi, 4
movzx eax, byte [ebx + 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [ebx]
shl ecx, 8
add ebx, 0xc
add ecx, eax
sub ecx, edx
add edx, edi
add ecx, dword [ebp + 8]
xor esi, ecx
sub edi, esi
mov eax, esi
add esi, edx
rol eax, 6
xor eax, edi
sub edx, eax
mov ecx, eax
rol ecx, 8
add eax, esi
xor ecx, edx
sub esi, ecx
mov edx, ecx
rol edx, 0x10
add ecx, eax
xor edx, esi
mov edi, edx
sub eax, edx
ror edi, 0xd
add edx, ecx
xor edi, eax
mov dword [ebp + 8], edx
sub ecx, edi
mov esi, edi
rol esi, 4
add edi, edx
xor esi, ecx
mov ecx, dword [ebp - 4]
sub ecx, 0xc
dec dword [ebp - 8]
mov dword [ebp - 4], ecx
jne 0x40d690
cmp ecx, 0xc
ja 0x40d7be
jmp dword [ecx*4 + 0x40d80c]
movzx eax, byte [ebx + 0xb]
shl eax, 0x18
add esi, eax
movzx eax, byte [ebx + 0xa]
shl eax, 0x10
add esi, eax
movzx eax, byte [ebx + 9]
shl eax, 8
add esi, eax
movzx eax, byte [ebx + 8]
add esi, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add edi, eax
movzx eax, byte [ebx + 6]
shl eax, 0x10
add edi, eax
movzx eax, byte [ebx + 5]
shl eax, 8
add edi, eax
movzx eax, byte [ebx + 4]
add edi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
add edx, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
add edx, eax
movzx eax, byte [ebx + 1]
shl eax, 8
add edx, eax
movzx eax, byte [ebx]
add edx, eax
mov dword [ebp + 8], edx
xor esi, edi
mov eax, edi
rol eax, 0xe
sub esi, eax
mov eax, esi
mov edx, esi
xor edx, dword [ebp + 8]
rol eax, 0xb
sub edx, eax
xor edi, edx
mov eax, edx
ror eax, 7
sub edi, eax
mov eax, edi
xor esi, edi
rol eax, 0x10
sub esi, eax
mov eax, esi
mov ecx, esi
rol eax, 4
xor ecx, edx
sub ecx, eax
mov eax, ecx
xor edi, ecx
rol eax, 0xe
sub edi, eax
mov eax, edi
xor esi, edi
ror eax, 8
sub esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41857f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x429460]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00411f18
mov dword [ebp - 0x14], eax
cmp dword [0x42deb8], esi
jne 0x418672
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4185ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x418752
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x418752
push 0x421c28
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x418752
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x42deb8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x42debc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x42dec0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42dec8], eax
test eax, eax
je 0x41866f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42dec4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x418697
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41868a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4186ac
push 4
pop eax
jmp 0x418754
cmp dword [ebp - 0x14], esi
je 0x4186ac
push dword [0x42deb8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x418691
mov eax, dword [0x42dec4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41870a
cmp dword [0x42dec8], edi
je 0x41870a
push eax
call ebx
push dword [0x42dec8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41870a
test eax, eax
je 0x41870a
call ecx
test eax, eax
je 0x4186ff
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 0x4186ff
test byte [ebp - 8], 1
jne 0x41870a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41873a
mov eax, dword [0x42debc]
cmp eax, edi
je 0x418737
push eax
call ebx
test eax, eax
je 0x418737
call eax
mov esi, eax
test esi, esi
je 0x418737
mov eax, dword [0x42dec0]
cmp eax, edi
je 0x418737
push eax
call ebx
test eax, eax
je 0x418737
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x42deb8]
call ebx
test eax, eax
je 0x418752
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x418754
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040dfe8
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x402c00
pop dword [ebp - 0x28]
mov eax, 0x4fb52ed0
sub eax, 0x4f7502d0
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x477d97a5
add dword [ebp - 0x38], 0x6d4ada6
mov dword [ebp - 0x34], 0x2e5ea384
sub dword [ebp - 0x34], 0xfc2b573f
mov dword [ebp - 0x30], 0xc5947a6d
sub dword [ebp - 0x30], 0x7948363f
mov dword [ebp - 0x2c], 0x4a8821d
sub dword [ebp - 0x2c], 0x4a8821d
lea eax, [ebp - 0x38]
push eax
mov eax, 0xb36b40c4
add eax, 0x4cd53fc8
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x45bcf40e
add dword [ebp - 0x38], 0x2eb57548
mov dword [ebp - 0x34], 0xc4252679
add dword [ebp - 0x34], 0x7d473afc
mov dword [ebp - 0x30], 0x4976a1d3
sub dword [ebp - 0x30], 0xe6073567
mov dword [ebp - 0x2c], 0x36399044
sub dword [ebp - 0x2c], 0x36399044
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0xc813b38b
sub eax, 0xc7d332b7
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x33b0a
push 0
call eax
mov ecx, 0x7fd458b6
add ecx, 0x802be34b
mov esi, eax
mov edx, 0xed2e0612
sub edx, 0xececf612
add edx, dword [ebp - 0x28]
mov edi, 0x5cfbaeb6
add edi, 0xdf632693
sub dword [ebp - 0x18], ecx
mov ebx, dword [edx]
xor dword [ebp - 0x1c], 0x61cd6c6e
xor ebx, edi
mov dword [esi], ebx
mov dword [ebp - 0x14], 0x6155f39e
add esi, 0xfbf02364
add esi, 0x40fdca0
add edx, 4
loop 0x402d22
add eax, 0xe2d7
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x77ba40e2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push esi
push edi
je 0x77ba4198
cmp dword [0x77ba4b5c], 0
jne 0x77ba4194
push 0x40000
mov dword [0x77ba4b5c], 1
call fcn.77ba4942
test eax, eax
pop ecx
mov dword [0x77ba4b60], eax
je 0x77ba4194
mov esi, 0x50ea
push esi
call fcn.77ba4942
mov edi, eax
pop ecx
test edi, edi
je 0x77ba4194
push esi
push 0
push edi
call sub.MSVCRT.dll_memset
mov ecx, 0x77ba10d0
add esp, 0xc
mov eax, edi
sub ecx, edi
mov esi, 0x2875
mov dl, byte [ecx + eax]
xor dl, 0x61
mov byte [eax], dl
inc eax
dec esi
jne 0x77ba4148
mov esi, dword [0x77ba4b60]
lea eax, [ebp + 8]
push eax
push esi
push edi
call fcn.77ba3e0b
add esp, 0xc
test eax, eax
jne 0x77ba4175
push esi
call fcn.77ba4956
pop ecx
jmp 0x77ba4194
push edi
call fcn.77ba4956
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.77ba3f99
mov eax, dword [ebp + 0xc]
add esp, 0xc
add eax, esi
push 0
push 1
push esi
call eax
xor eax, eax
jmp 0x77ba41b1
mov eax, dword [0x77ba4b60]
test eax, eax
je 0x77ba41ae
push dword [ebp + 8]
push eax
call fcn.77ba4022
pop ecx
pop ecx
jmp 0x77ba41b1
push 1
pop eax
pop edi
pop esi
pop ebp
ret

Function at 0x77ba4323
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push 0xf01ff
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x77ba435b
lea eax, [ebp - 0x1c]
push edi
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x77ba4942
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x40
push 0x1000
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x10007f00
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.msvcrt.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10007f58
cmp byte [esi + ebx - 1], 0xa
je 0x10007f2c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x100171f0], eax
mov dword [esp], 2
call dword [0x100161c0]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x10008ff0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
sub esp, 0x18
test byte [0x10016254], 8
jne 0x10009060
mov eax, dword [ebx + 8]
test eax, eax
jne 0x10009093
mov eax, dword [ebx + 0x28]
cmp eax, dword [ebx + 0x2c]
jb 0x10009055
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
cmp eax, 0xffffffff
je 0x100090c0
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
sub eax, edx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x4c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__read]
mov edx, eax
test eax, eax
jle 0x100090c0
mov eax, dword [ebx + 0x10]
add edx, eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x2c], edx
movzx eax, byte [eax]
mov ebx, dword [ebp - 4]
leave
ret
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.__p__n
mov dword [esp + 8], str.filebuf_underflow
mov dword [esp + 4], 0x10016254
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov eax, dword [ebx + 8]
test eax, eax
je 0x1000900d
lea eax, [ebp - 5]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x4c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__read]
test eax, eax
jle 0x100090c0
movzx eax, byte [ebp - 5]
mov ebx, dword [ebp - 4]
leave
ret
mov eax, 0xffffffff
jmp 0x10009058
Function at 0x10012030
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x20
mov esi, dword [ebp + 8]
test byte [0x10016254], 8
jne 0x100120d8
mov edx, dword [ebx + 8]
test edx, edx
je 0x10012090
cmp esi, 0xffffffff
jne 0x10012070
mov eax, 1
add esp, 0x20
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, dword [ebx + 0x4c]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll_fputc]
add esp, 0x20
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov ecx, ebx
call sym.msvcirt.dll_protected:_int___thiscall_streambuf::allocate_void_
cmp eax, 0xffffffff
je 0x100121a8
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x10012140
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x18]
cmp edx, eax
ja 0x10012110
cmp esi, 0xffffffff
je 0x10012057
mov eax, dword [ebx + 0x20]
cmp dword [ebx + 0x18], eax
jae 0x10012070
mov eax, dword [ebx + 0x1c]
lea edx, [eax + 1]
mov dword [ebx + 0x1c], edx
mov edx, esi
mov byte [eax], dl
jmp 0x10012057
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.__p__d__n
mov dword [esp + 8], str.stdiobuf_overflow
mov dword [esp + 4], 0x10016254
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x1001204b
mov edi, edx
mov edx, dword [ebx + 0x4c]
mov dword [esp + 4], 1
sub edi, eax
mov dword [esp], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
call dword [sym.imp.msvcrt.dll_fwrite]
cmp edi, eax
jne 0x100121a8
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x1c], eax
jmp 0x100120b5
mov edx, dword [ebx + 0x14]
mov eax, edx
sub eax, dword [ebx + 0x10]
mov edi, eax
shr edi, 0x1f
add edi, eax
sar edi, 1
add edi, dword [ebx + 0x10]
test byte [0x10016254], 8
jne 0x10012170
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x20], edx
jmp 0x100120b5
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p__p__p__n
mov dword [esp + 8], str.streambuf_setp
mov dword [esp + 4], 0x10016254
mov dword [esp], 3
mov dword [ebp - 0x10], edx
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp - 0x10]
jmp 0x1001215d
mov eax, 0xffffffff
jmp 0x1001205c
Function at 0x10012770
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x24
test byte [0x10016254], 8
jne 0x10012848
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x100128e8
mov edx, dword [ebx + 8]
test edx, edx
jne 0x10012830
mov ecx, ebx
call sym.msvcirt.dll_protected:_int___thiscall_streambuf::allocate_void_
cmp eax, 0xffffffff
je 0x100128e8
mov edx, dword [ebx + 0x2c]
test edx, edx
je 0x10012878
mov eax, dword [ebx + 0x28]
cmp edx, eax
jbe 0x100127d8
lea edx, [eax + 1]
mov dword [ebx + 0x28], edx
movzx eax, byte [eax]
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebx + 0x24]
sub edx, esi
test esi, esi
je 0x100128e8
mov eax, dword [ebx + 0x4c]
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll_fread]
test eax, eax
jle 0x100128e8
mov edx, dword [ebx + 0x24]
mov esi, eax
mov dword [esp + 8], eax
neg esi
mov dword [esp + 4], edx
mov edx, dword [ebx + 0x2c]
sub edx, eax
mov dword [esp], edx
call dword [sym.imp.msvcrt.dll_memmove]
mov eax, dword [ebx + 0x2c]
add eax, esi
jmp 0x100127c0
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_fgetc]
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.__p__n
mov dword [esp + 8], str.stdiobuf_underflow
mov dword [esp + 4], 0x10016254
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10012788
mov esi, dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
sub eax, esi
mov edx, eax
shr edx, 0x1f
add edx, eax
sar edx, 1
lea edi, [esi + edx]
test byte [0x10016254], 8
jne 0x100128a8
mov dword [ebx + 0x24], esi
mov dword [ebx + 0x28], edi
mov dword [ebx + 0x2c], edi
jmp 0x100127dd
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p__p__p__p__n
mov dword [esp + 8], str.streambuf_setg
mov dword [esp + 4], 0x10016254
mov dword [esp], 3
mov dword [ebp - 0x10], edx
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp - 0x10]
jmp 0x10012895
mov eax, 0xffffffff
jmp 0x100127c9