joyce8/EMBER2024-capa huggingface dataset:
Function at 0x487890
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4878c3
push esi
call fcn.00495c00
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4878bc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x487949
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x487932
mov eax, dword [esi + 8]
test eax, eax
je 0x4878e7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x48792e
cmp eax, 2
je 0x487932
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4878da
cmp eax, 3
je 0x48790d
cmp eax, 1
jne 0x4878da
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4878da
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4878da
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00487970
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x487958
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00487970
add esp, 4
pop esi
ret

Function at 0x4881d0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4881f1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4881f1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4881f1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4a5a10
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x53c424]
xor edx, edx
cmp eax, edx
jne 0x4a5a36
xor eax, eax
mov byte [eax + 0x53c324], al
inc eax
cmp eax, 0x100
jl 0x4a5a1e
mov dword [0x53c424], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x53c324
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4a5ac7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4a5a9a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4a5a68
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4a5b40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4a5b93
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4a5b7a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ac540
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d892e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004ace60
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4fba24
call fcn.004ca84c
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4ac5d3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004ca84c
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4ac5cc
push 0
mov ecx, eax
call fcn.004a3640
mov dword [esi + 0xc], eax
jmp 0x4ac5d5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4ac5d5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4ccedc
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ccf14
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004caf66
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004caf3e
jmp 0x4ccf20
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ce5ca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ce60c
call fcn.004d4083
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ce60c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ce603
xor eax, eax
jmp 0x4ce614
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ce61a
pop edi
pop esi
pop ebx
ret 4
Function at 0x4d45b3
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4d45e1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d45ff
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d4519
jmp 0x4d45ff
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d45ff
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d4519
test edi, edi
mov eax, edi
jne 0x4d45e9
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401020
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnterMode3
push eax
call edi
test eax, eax
mov dword [esi + 4], eax
jne 0x40103c
xor al, al
pop edi
ret
mov ecx, dword [esi]
push str.EnterMode0
push ecx
call edi
test eax, eax
mov dword [esi + 8], eax
je 0x401038
mov edx, dword [esi]
push str.ResetWM
push edx
call edi
test eax, eax
mov dword [esi + 0xc], eax
je 0x401038
mov eax, dword [esi]
push str.GetModeState
push eax
call edi
test eax, eax
mov dword [esi + 0x10], eax
je 0x401038
mov ecx, dword [esi]
push str.GetSnapVUEROMVersion
push ecx
call edi
mov dword [esi + 0x14], eax
mov al, 1
pop edi
ret

Function at 0x4020e0
Capabilities:
Accept command line arguments

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.00404fff
test eax, eax
jne 0x402110
push str.Fatal_Error:_MFC_initialization_failed_n
call fcn.0040dd74
mov eax, 1
add esp, 4
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push eax
call fcn.00401170
add esp, 4
ret

Function at 0x402760
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402779
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4027b4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4027b0
lea ebx, [ebx]
cmp esi, eax
jae 0x4027b4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4027a0
cmp esi, eax
jb 0x4027ba
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4029d0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x124
mov eax, dword [0x427a34]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
mov esi, ecx
mov eax, esi
push edi
mov dword [esp + 0x1c], esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4029f1
sub eax, edx
add eax, 1
push eax
push esi
call fcn.0040e91d
add esp, 8
push 0x423648
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
je 0x402ba8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push ebp
push str.EnumProcesses
push edi
call esi
push str.EnumProcessModules
push edi
mov ebp, eax
call esi
push str.GetModuleFileNameExA
mov ebx, eax
push edi
mov dword [esp + 0x24], ebx
call esi
test ebp, ebp
mov dword [esp + 0x20], eax
je 0x402b9f
test ebx, ebx
je 0x402b9f
test eax, eax
je 0x402b9f
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov eax, 0x400
mov dword [esp + 0x10], eax
xor edi, edi
lea ecx, [ecx]
test edi, edi
je 0x402a9a
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x10]
add eax, eax
mov dword [esp + 0x10], eax
push eax
push 0
call ebx
push eax
call esi
mov edi, eax
test edi, edi
je 0x402b75
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x402b8c
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
je 0x402a80
shr dword [esp + 0x14], 2
mov ebp, 0
je 0x402b8c
jmp 0x402ae0
mov byte [esp + 0x2c], 0
mov ecx, dword [edi + ebp*4]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x402b66
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x30]
push eax
push esi
call dword [esp + 0x2c]
test eax, eax
je 0x402b5f
mov edx, dword [esp + 0x28]
push 0x104
lea ecx, [esp + 0x30]
push ecx
push edx
push esi
call dword [esp + 0x30]
test eax, eax
je 0x402b5f
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402b30
sub eax, edx
add eax, 1
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0040e91d
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.0040e930
add esp, 0x10
test eax, eax
jne 0x402b7c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebp, 1
cmp ebp, dword [esp + 0x14]
jb 0x402ae0
jmp 0x402b8c
mov edx, dword [esp + 0x18]
push edx
jmp 0x402ba0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x18]
push eax
jmp 0x402ba0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebp
pop ebx
mov ecx, dword [esp + 0x128]
pop edi
pop esi
xor ecx, esp
call fcn.0040dd12
add esp, 0x124
ret
Function at 0x402bc0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41f9d6
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x427a34]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x427a34]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
xor esi, esi
mov ebx, ecx
xor ebp, ebp
mov dword [esp + 0x1c], esi
push 0x103
lea eax, [esp + 0x25]
push ebp
mov dword [esp + 0x138], ebp
push eax
mov byte [esp + 0x2c], 0
call fcn.0040f520
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push ebp
push 0x20019
push ebp
push ebp
push ebp
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsWCESCOMM.EXE
push 0x80000002
mov dword [esp + 0x38], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebp
jne 0x402c57
mov esi, dword [esp + 0x14]
mov dword [esp + 0x1c], esi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
push ebp
push 0x423603
push esi
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebp
je 0x402c83
mov edi, eax
jmp 0x402cb5
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x402c98
cmp eax, 2
je 0x402c98
mov edi, 0xd
jmp 0x402cb5
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x402cae
cmp byte [esp + eax + 0x1f], 0
je 0x402cb3
mov edi, 0xd
jmp 0x402cb5
mov byte [esp + 0x20], 0
xor edi, edi
cmp esi, ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x402cc8
push esi
call ebp
xor esi, esi
mov dword [esp + 0x1c], esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402560
push eax
mov ecx, ebx
mov byte [esp + 0x134], 1
call fcn.004036a0
mov byte [esp + 0x130], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402d0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
sete bl
test esi, esi
je 0x402d1a
push esi
call ebp
mov al, bl
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0040dd12
add esp, 0x120
ret

Function at 0x402d50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
xor esi, esi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
push 0x20019
push esi
push esi
push esi
push str.SoftwareMicrosoftWindows_CE_Services
push 0x80000002
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402d8b
mov esi, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push str.MajorVersion
push esi
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x402dbf
push esi
call edi
xor esi, esi
cmp dword [esp + 0x10], 6
setb bl
test esi, esi
je 0x402dce
push esi
call edi
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0x14
ret
Function at 0x402de0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x41fa48
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push esi
mov eax, dword [0x427a34]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
call fcn.004053a8
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x402e20
push 0x80004005
call fcn.004023d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 8], eax
lea ecx, [esp + 8]
mov dword [esp + 0x70], esi
call fcn.00402bc0
test al, al
jne 0x402e7c
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402e69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x6c
ret
push 0x3c
lea ecx, [esp + 0x28]
push esi
push ecx
mov dword [esp + 0x28], 0x44
mov dword [esp + 0x2c], esi
call fcn.0040f520
add esp, 0xc
xor eax, eax
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
push eax
push esi
push esi
push 0x20
push esi
push esi
push esi
push esi
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea eax, [esi - 0x10]
mov dword [esp + 0x70], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402eeb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x6c
ret

Function at 0x403040
Capabilities:
Start service

Disassembly:
push ecx
push esi
push edi
call fcn.00402d50
test al, al
je 0x403063
call fcn.00402de0
neg al
sbb eax, eax
and eax, 0xfffffc17
add eax, 0x3e9
pop edi
pop esi
pop ecx
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x403096
push 0xf01ff
push str.wcescomm
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40309f
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0x3f2
pop edi
pop esi
pop ecx
ret
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
cmp eax, 1
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x4030c4
call edi
push esi
call edi
mov eax, 0x3f3
pop edi
pop esi
pop ecx
ret
call edi
push esi
call edi
pop edi
xor eax, eax
pop esi
pop ecx
ret
Function at 0x4030d0
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push esi
push edi
call fcn.00402d50
test al, al
je 0x4030f7
call fcn.00402f00
neg al
sbb eax, eax
and eax, 0xfffffc17
add eax, 0x3e9
pop edi
pop esi
add esp, 0x1c
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x40312a
push 0xf01ff
push str.wcescomm
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x403135
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0x3f2
pop edi
pop esi
add esp, 0x1c
ret
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 8]
push eax
push 1
push esi
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jne 0x403180
call edi
push esi
call edi
mov eax, 0x3f3
pop edi
pop esi
add esp, 0x1c
ret
call edi
push esi
call edi
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret

Function at 0x4032f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10c
mov eax, dword [0x427a34]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x110]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40334b
pop edi
mov eax, 0x3ec
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0040dd12
add esp, 0x10c
ret
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push edi
call sub.RAPI.dll_CeCreateFile
mov edi, eax
cmp edi, 0xffffffff
jne 0x4033b2
call sub.RAPI.dll_CeRapiGetError
cmp eax, 0xb7
jne 0x40338f
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0040dd12
add esp, 0x10c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 0x3ee
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0040dd12
add esp, 0x10c
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea esp, [esp]
push 0
lea eax, [esp + 0x10]
push eax
push pe_nt_image_headers32
lea ecx, [esp + 0x20]
push ecx
push esi
call ebx
test eax, eax
je 0x40344b
mov eax, dword [esp + 0xc]
push 0
lea edx, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
push edi
call sub.RAPI.dll_CeWriteFile
test eax, eax
je 0x403421
cmp dword [esp + 0xc], 0
jne 0x4033c0
push edi
call sub.RAPI.dll_CeCloseHandle
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0040dd12
add esp, 0x10c
ret
push edi
call sub.RAPI.dll_CeCloseHandle
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, 0x3ef
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0040dd12
add esp, 0x10c
ret
push edi
call sub.RAPI.dll_CeCloseHandle
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x114]
pop ebx
pop edi
pop esi
xor ecx, esp
mov eax, 0x3f0
call fcn.0040dd12
add esp, 0x10c
ret
Function at 0x4034e0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1000c
call fcn.00410ff0
mov eax, dword [0x427a34]
xor eax, esp
mov dword [esp + 0x10008], eax
mov eax, dword [esp + 0x10010]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov edi, ecx
call sub.RAPI.dll_CeCreateFile
mov esi, eax
cmp esi, 0xffffffff
jne 0x40353e
pop edi
mov eax, 0x3ed
pop esi
mov ecx, dword [esp + 0x10008]
xor ecx, esp
call fcn.0040dd12
add esp, 0x1000c
ret
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4035a5
call sub.RAPI.dll_CeRapiGetError
cmp eax, 0xb7
jne 0x403583
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10008]
xor ecx, esp
call fcn.0040dd12
add esp, 0x1000c
ret
push esi
call sub.RAPI.dll_CeCloseHandle
pop edi
mov eax, 0x3ee
pop esi
mov ecx, dword [esp + 0x10008]
xor ecx, esp
call fcn.0040dd12
add esp, 0x1000c
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [esp]
push 0
lea eax, [esp + 0x10]
push eax
push 0x10000
lea ecx, [esp + 0x20]
push ecx
push esi
call sub.RAPI.dll_CeReadFile
test eax, eax
je 0x40363b
mov eax, dword [esp + 0xc]
push 0
lea edx, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
push edi
call ebx
test eax, eax
je 0x403611
cmp dword [esp + 0xc], 0
jne 0x4035b0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.RAPI.dll_CeCloseHandle
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10008]
xor ecx, esp
call fcn.0040dd12
add esp, 0x1000c
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.RAPI.dll_CeCloseHandle
pop ebx
pop edi
mov eax, 0x3ef
pop esi
mov ecx, dword [esp + 0x10008]
xor ecx, esp
call fcn.0040dd12
add esp, 0x1000c
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.RAPI.dll_CeCloseHandle
mov ecx, dword [esp + 0x10014]
pop ebx
pop edi
pop esi
xor ecx, esp
mov eax, 0x3f0
call fcn.0040dd12
add esp, 0x1000c
ret

Function at 0x40dd12
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427a34]
jne 0x40dd1c
repz ret
jmp fcn.0041183a