joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415c50
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.0040f280
mov eax, dword [0x420500]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x415db2
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x420400]
test byte [edx + ecx*8 + 4], 1
je 0x415db2
push 1
push ebp
push ebx
call fcn.00412220
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x415dbc
push 2
push ebp
push ebx
call fcn.00412220
add esp, 0xc
cmp eax, 0xffffffff
je 0x415dbc
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x415d58
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call sym.___crtMessageBoxA
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x415cff
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.004122e0
add esp, 0xc
cmp eax, 0xffffffff
je 0x415d1b
sub esi, eax
test esi, esi
jle 0x415d31
jmp 0x415cf0
cmp dword [0x41eddc], 5
jne 0x415d2e
mov dword [0x41edd8], 0xd
or ebp, 0xffffffff
push edi
push ebx
call sym.___crtMessageBoxA
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.00412220
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x415d99
push 0
push ecx
push ebx
call fcn.00412220
add esp, 0xc
push ebx
call fcn.004146f0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x415d99
mov dword [0x41edd8], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x41eddc], eax
push 0
push edi
push ebx
call fcn.00412220
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x41edd8], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret

Function at 0x416720
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4168de
push 0x3d
push edi
call fcn.00416a20
mov esi, eax
add esp, 8
test esi, esi
je 0x4168de
cmp edi, esi
je 0x4168de
mov dl, byte [esi + 1]
mov ecx, dword [0x41ee04]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
Function at 0x1132bb3b
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop word [esp + 1]
pop ecx
lea edx, reloc.mscoree.dll__CorExeMain
xchg dword [esp], ebx
xchg word [esp + 1], dx
xchg dh, al
jmp 0x1132bb3d
xchg word [esp + 5], dx
xchg dword [esp], ecx
cpuid
setns dh
mov dx, 0x3893
push esp
jmp 0x1132baf3
jmp 0x1132bb1d
pop ecx
push edx
xchg byte [esp + 2], al
xchg edi, edx
mov dword [esp], ebp
pop bx
jmp 0x1132bc5d
push dword [esp + 4]
mov byte [esp + 0x15], bh
xchg ebx, eax
mov eax, ebp
setns ah
mov cl, ch
jmp 0x1132bc16
xchg dword [esp], ebp
mov byte [esp + 0x20], ch
xchg dx, si
mov di, bx
not bh
jmp 0x1132bb6d
mov dword [esp + 0x15], esi
mov bh, byte [esp + 0x17]
lea ebx, [ebx*4]
mov si, di
mov dx, word [esp + 0x12]
push word [esp + 0x21]
jmp 0x1132bb8a
rdtsc
mov eax, dword [esp]
cpuid
mov bl, 0xf0
mov ax, 0xbf05
pushal
jmp 0x1132bbf0
rdtsc
mov al, byte [esp]
lea ecx, [ebx + edi]
bswap edx
bswap ebp
xchg dh, al
jmp 0x1132bbbf
mov bl, bh
setno ah
lea esp, [esp + 0xb]
xchg si, dx
xchg word [esp + 0x11], dx
pop word [esp + 0xc]
jmp 0x1132bc46
pop dword [esp + 0x22]
pop word [esp + 0x11]
not ah
pushal
lea esp, [esp + 0x46]
mov cx, 0x2e8f
jmp 0x1132bbe0
xchg di, ax
push edx
rdtsc
mov edi, dword [esp + 3]
mov al, 0x96
lea ebx, [esi - 0x15]
jmp 0x1132bdb1
pop word [esp + 5]
mov ax, word [esp + 4]
mov word [esp + 9], di
pop edi
jmp 0x1132bc2c
mov eax, 0x968be54a
mov word [esp], bx
push esp
cpuid
pop ax
pushal
jmp 0x1132bba1
lea esp, [esp + 2]
lea esp, [esp + 4]
popal
pushal
call fcn.1132bc9a
shl bl, 1
daa
lahf
cmp byte [edi + 0x2a], bl
mov word [ebp - 0x51], gs
pop edi
test eax, 0
mov es, word [ebx]
push ds
out dx, eax
add byte [eax], al
add byte [eax], al
out 5, eax
mov dl, 0xcc
add byte [eax], al
add byte [eax], al
rol byte [edi], cl
and ecx, dword [esi]
dec esp
invalid
mov esi, eax
lea esp, [esp + 7]
lea ecx, [eax - 0x39]
lea ebx, [edx*4]
pop dword [esp]
mov ebp, dword [esp + 1]
jmp 0x1132bd22

Function at 0x1132d1a1
Capabilities:
Parse pe header

Disassembly:
mov word [esp + 0xc], bx
mov dword [esp + 0xb], eax
push esp
lea esp, [esp + 0x25]
mov byte [esp + 1], dh
jmp 0x1132d249
mov dword [esp + 0x4c], ebp
call int.1132d22f
pop word [esp]
push dword [esp + 3]
mov word [esp + 2], sp
lea esp, [esp + 1]
jmp 0x1132d1d7
mov dword [esp + 0x48], esp
pushal
mov byte [esp + 4], dh
mov word [esp], sp
push word [esp + 0x13]
lea esp, [esp + 0x1b]
jmp 0x1132d1ff
mov byte [esp + 1], bh
push word [esp + 2]
mov word [esp], dx
push word [esp + 4]
mov byte [esp + 3], ch
lea esp, [esp + 3]
jmp 0x1132d217

Function at 0x1132d1e0
Capabilities:
Parse pe header

Disassembly:
call fcn.1132c148
pop dword [esp]
push esp
lea esp, [esp + 2]
jmp 0x1132d293
mov dword [esp + 0x50], esi
call fcn.1132d27c
pop word [esp + 0x10]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
jmp 0x1132d2bd
pop word [esp + 9]
lea esp, [esp + 0x17]
pushal
mov dword [esp + 0x78], edi
lea esp, [esp + 0x78]
jmp 0x1132dd13
mov eax, dword [eax + 8]
push eax
jmp 0x1132c143
push ebx
mov ebx, eax
mov eax, dword [ebx]
pop ebx
jmp 0x1132d435
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x1132da9c
Function at 0x1132d27c
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
pop word [esp]
lea esp, [esp + 1]
mov byte [esp], bh
call fcn.1132d265
xchg ebx, eax
adc al, byte [eax + 0x134f12e7]
Function at 0x401c00
Capabilities:
Query service configuration
Query service status

Disassembly:
sub esp, 0x20
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
jne 0x401c76
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x1f
ja 0x401c52
je 0x401c48
mov ecx, eax
sub ecx, 5
je 0x401c3e
dec ecx
jne 0x401d27
mov eax, 0xfffffff5
pop ebp
add esp, 0x20
ret
mov eax, 0xfffffff2
pop ebp
add esp, 0x20
ret
mov eax, 0xffffffeb
pop ebp
add esp, 0x20
ret
cmp eax, 0x7b
je 0x401c6c
cmp eax, 0x424
jne 0x401d27
mov eax, 0xfffffff3
pop ebp
add esp, 0x20
ret
mov eax, 0xfffffff4
pop ebp
add esp, 0x20
ret
push edi
push 0xf01ff
push str.XRNBO
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x401c99
call fcn.00401820
pop edi
pop ebp
add esp, 0x20
ret
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x401cb3
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
push ebx
push esi
push 0x200
call fcn.00403c93
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
add esp, 4
lea edx, [esp + 0x10]
push edx
push 0x200
mov esi, eax
push esi
push edi
call ebx
cmp eax, 0x7a
jne 0x401cf2
push esi
call fcn.00403be9
mov eax, dword [esp + 0x14]
push eax
call fcn.00403c93
add esp, 8
mov esi, eax
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push edx
push esi
push edi
call ebx
mov eax, dword [esp + 0x34]
test eax, eax
je 0x401d0d
mov ecx, dword [esi + 4]
mov dword [eax], ecx
push esi
call fcn.00403be9
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 4
push edi
call esi
push ebp
call esi
pop esi
pop ebx
xor eax, eax
pop edi
pop ebp
add esp, 0x20
ret

Function at 0x4020e0
Capabilities:
Modify service

Disassembly:
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 0xf01ff
mov edi, eax
push str.XRNBO
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x40212f
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push esi
call ebx
push edi
call ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4021a0
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x1c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x402212
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x1f
ja 0x4021f2
je 0x4021e8
mov ecx, eax
sub ecx, 5
je 0x4021de
dec ecx
jne 0x40225f
mov eax, 0xfffffff5
pop edi
add esp, 0x1c
ret
mov eax, 0xfffffff2
pop edi
add esp, 0x1c
ret
mov eax, 0xffffffeb
pop edi
add esp, 0x1c
ret
cmp eax, 0x7b
je 0x402208
cmp eax, 0x424
jne 0x40225f
mov eax, 0xfffffff3
pop edi
add esp, 0x1c
ret
mov eax, 0xfffffff4
pop edi
add esp, 0x1c
ret
push esi
push 0xf01ff
push str.XRNBO
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x402259
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x402259
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
xor eax, eax
pop edi
add esp, 0x1c
ret
call fcn.00401820
pop esi
pop edi
add esp, 0x1c
ret

Function at 0x402270
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x4022e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x1f
ja 0x4022c2
je 0x4022b8
mov ecx, eax
sub ecx, 5
je 0x4022ae
dec ecx
jne 0x40232e
mov eax, 0xfffffff5
pop edi
add esp, 0x1c
ret
mov eax, 0xfffffff2
pop edi
add esp, 0x1c
ret
mov eax, 0xffffffeb
pop edi
add esp, 0x1c
ret
cmp eax, 0x7b
je 0x4022d8
cmp eax, 0x424
jne 0x40232e
mov eax, 0xfffffff3
pop edi
add esp, 0x1c
ret
mov eax, 0xfffffff4
pop edi
add esp, 0x1c
ret
push esi
push 0xf01ff
push str.XRNBO
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x402328
lea eax, [esp + 8]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
xor eax, eax
pop edi
add esp, 0x1c
ret
call fcn.00401820
pop esi
pop edi
add esp, 0x1c
ret
Function at 0x402440
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [0x40d8b8]
test eax, eax
push esi
push edi
jne 0x4024c1
push 0xa
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x402465
pop edi
mov eax, 0xffff0004
pop esi
ret
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40247a
pop edi
mov eax, 0xffff0005
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov dword [0x40d840], eax
call fcn.00403c93
add esp, 4
test eax, eax
mov dword [0x40d8b8], eax
jne 0x4024ab
pop edi
mov eax, 0xffff0006
pop esi
ret
mov ecx, dword [0x40d840]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
xor eax, eax
pop esi
ret
Function at 0x4024d0
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x208
mov eax, dword [0x40d040]
push esi
mov dword [esp + 0x208], eax
push 0x80
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 8]
push ecx
call fcn.00409f2e
lea edx, [esp + 0xc]
push 0x5c
push edx
call fcn.00403d40
mov esi, eax
push str.system
push esi
call fcn.00403cb0
add esp, 0x14
test eax, eax
je 0x402658
push edi
push str.system
push esi
call fcn.00403cb0
lea edi, [esp + 0x14]
add esp, 8
mov byte [eax], 0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402538
mov eax, dword [str._system32drivers_]
mov ecx, dword [0x40b63c]
mov edx, dword [0x40b640]
mov dword [edi], eax
mov eax, dword [0x40b644]
mov dword [edi + 4], ecx
mov cx, word [0x40b648]
mov dword [edi + 8], edx
mov dl, byte [0x40b64a]
mov dword [edi + 0xc], eax
mov word [edi + 0x10], cx
mov byte [edi + 0x12], dl
lea edi, [esp + 0xc]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402580
mov eax, dword [str.XRNBO]
mov cx, word [0x40b1d8]
mov dword [edi], eax
mov word [edi + 4], cx
lea edi, [esp + 0xc]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4025a0
mov edx, dword [str..sys]
mov al, byte [0x40b634]
mov dword [edi], edx
mov byte [edi + 4], al
call fcn.00402440
test eax, eax
pop edi
je 0x4025db
call fcn.00401820
pop esi
mov ecx, dword [esp + 0x204]
call fcn.00403bdb
add esp, 0x208
ret
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402618
mov eax, 0xfffffff0
pop esi
mov ecx, dword [esp + 0x204]
call fcn.00403bdb
add esp, 0x208
ret
mov eax, dword [0x40d840]
mov ecx, dword [0x40d8b8]
push 0
lea edx, [esp + 8]
push edx
push eax
push ecx
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x204]
call fcn.00403bdb
add esp, 0x208
ret
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10c]
push str.Cannot_get_target_directory___s_
push eax
call fcn.00403b52
add esp, 0xc
push 0
push str.Failure
lea ecx, [esp + 0x110]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x208]
mov eax, 0xfffffffe
pop esi
call fcn.00403bdb
add esp, 0x208
ret
Function at 0x4026b0
Capabilities:
Delete file
Delete service
Get common file path

Disassembly:
sub esp, 0x184
mov eax, dword [0x40d040]
push esi
push 0xf003f
push 0
push 0
mov dword [esp + 0x190], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 0x10000
mov esi, eax
push str.XRNBO
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
je 0x4026f0
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x80
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 4]
push ecx
call fcn.00409f2e
lea edx, [esp + 8]
push 0x5c
push edx
call fcn.00403d40
mov esi, eax
push str.system
push esi
call fcn.00403cb0
add esp, 0x14
test eax, eax
je 0x4027eb
push edi
push str.system
push esi
call fcn.00403cb0
lea edi, [esp + 0x10]
add esp, 8
mov byte [eax], 0
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402750
mov eax, dword [str._system32drivers_]
mov ecx, dword [0x40b63c]
mov edx, dword [0x40b640]
mov dword [edi], eax
mov eax, dword [0x40b644]
mov dword [edi + 4], ecx
mov cx, word [0x40b648]
mov dword [edi + 8], edx
mov dl, byte [0x40b64a]
mov dword [edi + 0xc], eax
mov word [edi + 0x10], cx
mov byte [edi + 0x12], dl
lea edi, [esp + 8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402792
mov eax, dword [str.XRNBO]
mov cx, word [0x40b1d8]
mov dword [edi], eax
mov word [edi + 4], cx
lea edi, [esp + 8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4027b1
mov edx, dword [str..sys]
mov al, byte [0x40b634]
lea ecx, [esp + 8]
mov dword [edi], edx
push ecx
mov byte [edi + 4], al
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x180]
call fcn.00403bdb
add esp, 0x184
ret
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x88]
push str.Cannot_get_target_directory___s_
push eax
call fcn.00403b52
add esp, 0xc
push 0
push str.Failure
lea ecx, [esp + 0x8c]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x184]
mov eax, 0xfffffffe
pop esi
call fcn.00403bdb
add esp, 0x184
ret
Function at 0x402840
Capabilities:
Delete file
Delete service
Get common file path
Stop service

Disassembly:
sub esp, 0x1a0
mov eax, dword [0x40d040]
push ebx
push ebp
push esi
push edi
push 0xf003f
push 0
push 0
mov dword [esp + 0x1b8], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push 0x10000
mov edi, eax
push str.RNBOEMUL
push edi
call ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x40289e
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
push 0x10000
push str.SENTEMUL
push edi
call ebp
mov esi, eax
test esi, esi
je 0x4028c9
lea ecx, [esp + 0x10]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
push edi
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x80
lea edx, [esp + 0x30]
push edx
call ebx
lea eax, [esp + 0x2c]
push eax
call fcn.00409f2e
lea ecx, [esp + 0x30]
push 0x5c
push ecx
call fcn.00403d40
mov esi, eax
push str.system
push esi
call fcn.00403cb0
add esp, 0x14
test eax, eax
je 0x4029c9
push str.system
push esi
call fcn.00403cb0
lea edi, [esp + 0x34]
add esp, 8
mov byte [eax], 0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402922
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, 7
mov esi, str._system32drivers_sentemul.sys
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edx, [esp + 0x2c]
push edx
movsb byte es:[edi], byte [esi]
call ebp
push 0x80
lea eax, [esp + 0x30]
push eax
call ebx
lea ecx, [esp + 0x2c]
push ecx
call fcn.00409f2e
lea edx, [esp + 0x30]
push 0x5c
push edx
call fcn.00403d40
mov esi, eax
push str.system
push esi
call fcn.00403cb0
add esp, 0x14
test eax, eax
je 0x4029c9
push str.system
push esi
call fcn.00403cb0
lea edi, [esp + 0x34]
add esp, 8
mov byte [eax], 0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402992
mov ecx, 7
mov esi, str._system32drivers_rnboemul.sys
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [esp + 0x2c]
push eax
movsb byte es:[edi], byte [esi]
call ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x19c]
call fcn.00403bdb
add esp, 0x1a0
ret
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0xb0]
push str.Cannot_get_target_directory___s_
push edx
call fcn.00403b52
add esp, 0xc
push 0
push str.Failure
lea eax, [esp + 0xb4]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x1ac]
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
call fcn.00403bdb
add esp, 0x1a0
ret
Function at 0x402a20
Capabilities:
Create service
Get common file path

Disassembly:
sub esp, 0x184
mov eax, dword [0x40d040]
mov dword [esp + 0x180], eax
call fcn.00402840
call fcn.004024d0
test eax, eax
je 0x402ae7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x1f
ja 0x402aa7
je 0x402a8f
mov ecx, eax
sub ecx, 5
je 0x402a77
dec ecx
jne 0x402c68
mov eax, 0xfffffff5
mov ecx, dword [esp + 0x180]
call fcn.00403bdb
add esp, 0x184
ret
mov eax, 0xfffffff2
mov ecx, dword [esp + 0x180]
call fcn.00403bdb
add esp, 0x184
ret
mov eax, 0xffffffeb
mov ecx, dword [esp + 0x180]
call fcn.00403bdb
add esp, 0x184
ret
cmp eax, 0x7b
je 0x402acf
cmp eax, 0x424
jne 0x402c68
mov eax, 0xfffffff3
mov ecx, dword [esp + 0x180]
call fcn.00403bdb
add esp, 0x184
ret
mov eax, 0xfffffff4
mov ecx, dword [esp + 0x180]
call fcn.00403bdb
add esp, 0x184
ret
push esi
push 0x80
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 4]
push ecx
call fcn.00409f2e
lea edx, [esp + 8]
push 0x5c
push edx
call fcn.00403d40
mov esi, eax
push str.system
push esi
call fcn.00403cb0
add esp, 0x14
test eax, eax
je 0x402c31
push edi
push str.system
push esi
call fcn.00403cb0
lea edi, [esp + 0x10]
add esp, 8
mov byte [eax], 0
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402b40
mov eax, dword [str._system32drivers_]
mov ecx, dword [0x40b63c]
mov edx, dword [0x40b640]
mov dword [edi], eax
mov eax, dword [0x40b644]
mov dword [edi + 4], ecx
mov cx, word [0x40b648]
mov dword [edi + 8], edx
mov dl, byte [0x40b64a]
mov dword [edi + 0xc], eax
mov word [edi + 0x10], cx
mov byte [edi + 0x12], dl
lea edi, [esp + 8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402b82
mov eax, dword [str.XRNBO]
mov cx, word [0x40b1d8]
mov dword [edi], eax
mov word [edi + 4], cx
lea edi, [esp + 8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402ba1
mov edx, dword [str..sys]
mov al, byte [0x40b634]
push 0xf003f
push 0
mov dword [edi], edx
push 0
mov byte [edi + 4], al
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
pop edi
je 0x402c02
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push 3
push 1
push 0xf01ff
push 0
push str.XRNBO
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x402c1b
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.00401820
pop esi
mov ecx, dword [esp + 0x180]
call fcn.00403bdb
add esp, 0x184
ret
xor eax, eax
pop esi
mov ecx, dword [esp + 0x180]
call fcn.00403bdb
add esp, 0x184
ret
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x88]
push str.Cannot_get_target_directory___s_
push eax
call fcn.00403b52
add esp, 0xc
push 0
push str.Failure
lea ecx, [esp + 0x8c]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0xfffffffe
pop esi
mov ecx, dword [esp + 0x180]
call fcn.00403bdb
add esp, 0x184
ret
Function at 0x402ec0
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x284
mov eax, dword [0x40d040]
mov ecx, dword [0x40b788]
mov edx, dword [0x40b78c]
mov dword [esp + 0x280], eax
mov eax, dword [str.sentinel.bin]
mov dword [esp + 0x7c], eax
mov al, byte [0x40b790]
mov dword [esp + 0x80], ecx
push ebx
push esi
push edi
mov byte [esp + 0x94], al
xor eax, eax
mov dword [esp + 0x90], edx
mov ecx, 0x3c
lea edi, [esp + 0x95]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 6
mov esi, str.Dump_files__.dng_
lea edi, [esp + 0x6c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
mov ecx, 0x13
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x188]
push ecx
push 0x100
mov dword [esp + 0x20], 0x4c
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [esp + 0x188]
mov dword [esp + 0x44], edx
lea edx, [esp + 0x18]
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x88]
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], 0x100
call dword [sym.imp.comdlg32.dll_GetOpenFileNameA]
test eax, eax
je 0x403026
push 0
push 0
push 3
push 0
push 0
push 0x80000000
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402fcf
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.00403c93
mov edi, eax
add esp, 4
test edi, edi
jne 0x402fe5
or eax, 0xffffffff
mov ecx, dword [esp + 0x28c]
call fcn.00403bdb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [esp + 0x18]
push ecx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x40d8b4]
test eax, eax
mov dword [esp + 0x10], 0
je 0x40301d
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.00403be9
add esp, 4
mov ecx, dword [esp + 0x28c]
xor eax, eax
call fcn.00403bdb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403040
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xbc
mov eax, dword [0x40d040]
xor ecx, ecx
mov dword [esp + 0xb8], eax
mov eax, dword [0x40d8b4]
cmp eax, ecx
mov dword [esp + 0xb0], 0xffffffff
mov dword [esp + 8], ecx
mov dword [esp + 4], 0xb4
mov dword [esp], ecx
je 0x40308e
push ecx
lea ecx, [esp + 4]
push ecx
push 0xb4
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0xb8]
xor eax, eax
call fcn.00403bdb
add esp, 0xbc
ret