joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454ad2
Capabilities:
Copy file
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x12d4
call fcn.00426240
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
lea eax, [esp + 0x430]
xor bl, bl
call fcn.0040ff60
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x640]
call fcn.0040ff60
lea eax, [esp + 0x640]
push eax
lea ecx, [esp + 0x434]
push ecx
call fcn.0044c7e2
lea edx, [esp + 0x438]
push edx
mov byte [esp + 0x1b], al
call fcn.004383c4
add esp, 0xc
test al, al
je 0x454b47
lea eax, [esp + 0x430]
push str..
push eax
call fcn.00412548
add esp, 8
lea ecx, [esp + 0x640]
push ecx
call fcn.004383c4
add esp, 4
test al, al
je 0x454b70
lea edx, [esp + 0x640]
push str..
push edx
call fcn.00412548
add esp, 8
lea eax, [esp + 0xec0]
push eax
lea ecx, [esp + 0x10d4]
push ecx
lea edx, [esp + 0xcb8]
push edx
lea eax, [esp + 0xaac]
push eax
lea ecx, [esp + 0x440]
push ecx
call fcn.00415090
add esp, 0x14
lea edx, [esp + 0x850]
push edx
lea eax, [esp + 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov byte [esp + 0xe], 1
cmp esi, 0xffffffff
je 0x454d2c
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp byte [esp + 0xe], 1
jne 0x454d2c
test byte [esp + 0x850], 0x10
jne 0x454d0c
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x644]
push edx
lea eax, [esp + 0xec8]
push eax
lea ecx, [esp + 0x10dc]
push ecx
lea edx, [esp + 0x88c]
push edx
call fcn.00438220
add esp, 0x14
lea eax, [esp + 0xaa0]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00412576
lea edx, [esp + 0xcb8]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00412548
lea ecx, [esp + 0x88c]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00412548
lea eax, [esp + 0x238]
push eax
call fcn.00438422
add esp, 0x1c
test al, al
je 0x454c8a
cmp byte [ebp + 0x10], 0
je 0x454ce3
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x454cf3
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp + 0x14], 1
jne 0x454cce
cmp byte [esp + 0xf], 0
jne 0x454cac
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x454cdf
push 0
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x18]
push ecx
call edi
test eax, eax
je 0x454ce3
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x454cdf
push 0
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x18]
push ecx
call edi
test eax, eax
jne 0x454d0a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x220]
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x454ce3
mov bl, 1
lea ecx, [esp + 0x850]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x454bcc
mov byte [esp + 0xe], al
jmp 0x454bcc
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4569d2
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esi]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esi + 0x158], ecx
mov dword [esi + 0x15c], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp eax, dword [esi + 0x160]
jne 0x456a26
cmp ecx, dword [esi + 0x164]
je 0x456a44
cmp dword [esp + 0x24], 1
mov dword [esi + 0x160], eax
mov dword [esi + 0x164], ecx
jl 0x456a44
push ecx
push eax
push esi
push 0xfffffffffffffff5
push ebx
call fcn.0045054c
mov ecx, dword [ebx + 0x18]
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push ecx
call ebp
mov edx, dword [ebx + 0x1c]
movzx edi, ax
push edx
shr edi, 0xf
call ebp
movzx ebp, ax
shr ebp, 0xf
cmp edi, dword [esi + 0x168]
je 0x456ae4
cmp dword [esp + 0x24], 1
jl 0x456ae4
cmp byte [esi + 0x194], 0
je 0x456ae4
test edi, edi
je 0x456a8d
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push esi
push 0xfffffffffffffff9
jmp 0x456ad7
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
push esi
push 0xfffffffffffffff8
push ebx
call fcn.0045054c
cmp byte [esi + 0x170], 0
je 0x456add
mov ecx, dword [esi]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x1000000
je 0x456aca
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
push esi
push 0xfffffffffffffffa
jmp 0x456ad7
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push esi
push 0xfffffffffffffff4
push ebx
call fcn.0045054c
mov byte [esi + 0x170], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x456af2
mov dword [esi + 0x168], edi
cmp ebp, dword [esi + 0x16c]
je 0x456b25
cmp eax, 1
jl 0x456b25
test ebp, ebp
je 0x456b12
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push esi
push 0xfffffffffffffff7
jmp 0x456b1f
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
push esi
push 0xfffffffffffffff6
push ebx
call fcn.0045054c
cmp dword [esp + 0x24], 0
je 0x456b32
mov dword [esi + 0x16c], ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x45cff8
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2020
call fcn.00426240
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.00407c30
lea ecx, [esp + 0x20]
call fcn.00407c30
mov eax, dword [esp + 0x2034]
push eax
xor ebp, ebp
call fcn.0044baed
mov esi, eax
movzx eax, word [esi]
xor bl, bl
test ax, ax
je 0x45d126
nop
inc ebp
cmp ax, 0x25
jne 0x45d0fa
cmp word [esi + ebp*2], ax
jne 0x45d05d
push 0x25
lea ecx, [esp + 0x14]
push ecx
mov bl, 1
call fcn.0044c155
inc ebp
jmp 0x45d105
push 0x47f878
lea eax, [esp + 0x24]
call fcn.00401b00
movzx eax, word [esi + ebp*2]
cmp ax, 0x25
je 0x45d097
lea ecx, [ecx]
test ax, ax
je 0x45d097
movzx eax, ax
push eax
lea edx, [esp + 0x24]
push edx
call fcn.0044c155
movzx eax, word [esi + ebp*2 + 2]
inc ebp
cmp ax, 0x25
jne 0x45d078
cmp word [esi + ebp*2], 0
je 0x45d145
mov edx, dword [esp + 0x20]
push 0xfff
lea ecx, [esp + 0x34]
push ecx
xor eax, eax
push edx
inc ebp
mov word [esp + 0x3c], ax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
lea eax, [esp + 0x10]
je 0x45d0d4
lea edi, [esp + 0x30]
call fcn.0040dc50
mov bl, 1
jmp 0x45d105
mov edi, 0x4862bc
mov bl, 1
call fcn.0040dc50
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.004546d2
lea eax, [esp + 0x10]
call fcn.0040dc50
jmp 0x45d105
push eax
lea edx, [esp + 0x14]
push edx
call fcn.0044c155
movzx eax, word [esi + ebp*2]
test ax, ax
jne 0x45d038
test bl, bl
je 0x45d126
mov esi, dword [esp + 0x2034]
lea edi, [esp + 0x10]
call fcn.0040f7a0
lea ecx, [esp + 0x20]
call fcn.0040c3f0
lea ecx, [esp + 0x10]
call fcn.0040c3f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2020
ret 4
mov edi, 0x4862bc
lea eax, [esp + 0x10]
call fcn.0040dc50
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.004546d2
jmp 0x45d116
Function at 0x100c03c4
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp + 0x3c]
ja 0x100a4266
sal al, 1
jmp 0x10106102

Function at 0x41df50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
jmp 0x41df6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41df71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41df60
mov eax, 1
add ebx, ebx
jne 0x41df83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41df78
jne 0x41df94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41df78
xor ecx, ecx
sub eax, 3
jb 0x41dfa8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41e01a
mov ebp, eax
add ebx, ebx
jne 0x41dfb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41dfc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41dfe4
inc ecx
add ebx, ebx
jne 0x41dfd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41dfc5
jne 0x41dfe1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41dfc5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41e004
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41dff5
jmp 0x41df66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41e004
add edi, ecx
jmp 0x41df66
pop esi
mov edi, esi
mov ecx, 0x1e1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41e022
cmp byte [edi], 1
jne 0x41e022
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41e027
lea edi, [esi + 0x1b000]
mov eax, dword [edi]
or eax, eax
je 0x41e09f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x20478]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20504]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41e054
mov ecx, edi
jns 0x41e083
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x20508]
or eax, eax
je 0x41e099
mov dword [ebx], eax
add ebx, 4
jmp 0x41e071
call dword [esi + 0x20518]
mov ebp, dword [esi + 0x2050c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41e0d3
sub esp, 0xffffff80
jmp 0x403892
Function at 0x4053e0
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ecx
push esi
push edi
sub esp, 8
mov esi, eax
mov edi, edx
xor edx, edx
mov ecx, eax
inc eax
cmp byte [ecx], 0
je 0x4053f7
inc edx
jmp 0x4053ec
push 0
lea eax, [esp + 4]
push eax
push edx
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push 0
lea eax, [esp + 4]
push eax
push 2
lea eax, [esp + 0x10]
push eax
push 0xfffffffffffffff4
mov word [esp + 0x18], 0xa0d
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, edi
jmp 0x402390

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x431072
mov ebx, 0x40915c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x128824a7
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
loop 0x431060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
je 0x4310d2
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x672b2175
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401090
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x208
mov eax, dword [0x406024]
xor eax, esp
push esi
mov esi, dword [esp + 0x210]
push edi
push 0xf003f
push 0
push 0
mov dword [esp + 0x218], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x4010fd
lea eax, [esp + 8]
push pe_nt_image_headers32
push eax
call section..text
push eax
push esi
push str.Failed_to_install_Service__s____s_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 0x14
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.00402d2b
add esp, 0x208
ret
push 0x104
lea ecx, [esp + 0x10c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x11c]
push edx
push 1
push 2
push 0x110
push 0xf01ff
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x401181
lea eax, [esp + 8]
push pe_nt_image_headers32
push eax
call section..text
push eax
push esi
push str.Failed_to_install_Service__s____s_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 0x14
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.00402d2b
add esp, 0x208
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call ebx
push edi
call ebx
push esi
push str.Succeed_to_install_Service__s_n
call dword [sym.imp.MSVCR71.dll_printf]
mov ecx, dword [esp + 0x218]
add esp, 8
pop ebx
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00402d2b
add esp, 0x208
ret
Function at 0x4011c0
Capabilities:
Delete service

Disassembly:
sub esp, 0x104
mov eax, dword [0x406024]
xor eax, esp
push ebx
push esi
mov esi, dword [esp + 0x110]
push 0xf003f
push 0
push 0
mov dword [esp + 0x114], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x40122d
lea eax, [esp + 8]
push pe_nt_image_headers32
push eax
call section..text
push eax
push esi
push str.Failed_to_uninstall_Service__s____s_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 0x14
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.00402d2b
add esp, 0x104
ret
push ebp
push edi
push 0x10000
push esi
push ebx
mov ebp, 1
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x40126a
lea ecx, [esp + 0x10]
push pe_nt_image_headers32
push ecx
call section..text
push eax
push esi
push str.Failed_to_uninstall_Service__s____s_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 0x14
mov eax, ebp
jmp 0x4012b5
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x401288
push esi
push str.Succeed_to_uninstall_Service__s_n
xor ebp, ebp
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 8
jmp 0x4012a7
lea edx, [esp + 0x10]
push pe_nt_image_headers32
push edx
call section..text
push eax
push esi
push str.Failed_to_uninstall_Service__s____s_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 0x14
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebx
call esi
mov eax, ebp
mov ecx, dword [esp + 0x110]
pop edi
pop ebp
pop esi
pop ebx
xor ecx, esp
call fcn.00402d2b
add esp, 0x104
ret
Function at 0x4012d0
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x12c
mov eax, dword [0x406024]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x134]
push ebp
push edi
push 0xf003f
push 0
mov edi, 1
push 0
mov dword [esp + 0x140], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x14], ebp
je 0x401451
push esi
push 0xf01ff
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x401429
mov edi, dword [sym.imp.MSVCR71.dll_printf]
push ebx
push str.Starting_up__s.
call edi
add esp, 8
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x4013f9
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [esp + 0x1c]
push eax
push esi
call ebp
test eax, eax
je 0x401397
cmp dword [esp + 0x20], 2
jne 0x401397
push 0x4042f8
call edi
add esp, 4
push 0x3e8
call ebx
lea ecx, [esp + 0x1c]
push ecx
push esi
call ebp
test eax, eax
jne 0x401373
cmp dword [esp + 0x20], 4
jne 0x4013d1
mov edx, dword [esp + 0x14]
push edx
push str._n_s_started._n
mov dword [esp + 0x18], 0
call edi
mov ebp, dword [esp + 0x20]
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0x10]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
jmp 0x40146f
mov eax, dword [esp + 0x14]
push eax
push str._n_s_failed_to_start._n
call edi
mov ebp, dword [esp + 0x20]
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0x10]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
jmp 0x40146f
lea ecx, [esp + 0x38]
push pe_nt_image_headers32
push ecx
call section..text
push eax
push ebx
push str._n_s_failed_to_start:__s_n
call edi
add esp, 0x14
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0x10]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
jmp 0x40146f
lea edx, [esp + 0x38]
push pe_nt_image_headers32
push edx
call section..text
push eax
push str.OpenService_failed____s_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 0x10
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
jmp 0x40146f
lea eax, [esp + 0x34]
push pe_nt_image_headers32
push eax
call section..text
push eax
push str.OpenSCManager_failed____s_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 0x10
mov ecx, dword [esp + 0x134]
mov eax, edi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402d2b
add esp, 0x12c
ret
Function at 0x401600
Capabilities:
Modify service

Disassembly:
sub esp, 0x10c
mov eax, dword [0x406024]
xor eax, esp
push ebx
push esi
mov esi, dword [esp + 0x118]
push edi
push 0xf003f
push 0
mov ebx, 1
push 0
mov dword [esp + 0x120], eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
je 0x40171d
push ebp
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, eax
test ebp, ebp
je 0x4016f5
mov edi, dword [esp + 0x124]
mov ebx, dword [sym.imp.MSVCR71.dll_printf]
push edi
push esi
push str.Change_Service_Config__s____d.
call ebx
add esp, 0xc
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
push 0xffffffffffffffff
push ebp
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
je 0x4016c0
push edi
push esi
push str._n_s____d_change_service_succeed._n
mov dword [esp + 0x1c], 0
call ebx
add esp, 0xc
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebp
jmp 0x40173b
lea eax, [esp + 0x18]
push pe_nt_image_headers32
push eax
call section..text
push eax
push edi
push esi
push str._n_s____d_failed_to_change_service:__s_n
call ebx
add esp, 0x18
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebp
jmp 0x40173b
lea ecx, [esp + 0x18]
push pe_nt_image_headers32
push ecx
call section..text
push eax
push str.OpenService_failed____s_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebp
jmp 0x40173b
lea edx, [esp + 0x14]
push pe_nt_image_headers32
push edx
call section..text
push eax
push str.OpenSCManager_failed____s_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 0x10
mov ecx, dword [esp + 0x114]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00402d2b
add esp, 0x10c
ret

Function at 0x401760
Capabilities:
Modify service

Disassembly:
push ecx
push ebx
push esi
push 0xf003f
push 0
push 0
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x4017d0
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov ebp, eax
test ebp, ebp
je 0x4017c8
mov eax, dword [esp + 0x14]
push edi
push 2
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x4017c0
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
push 1
push edi
mov dword [esp + 0x1c], ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
test eax, eax
je 0x4017b9
mov bl, 1
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
pop edi
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebp
pop esi
mov al, bl
pop ebx
pop ecx
ret
Function at 0x4017e0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4030ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x820
mov eax, dword [0x406024]
xor eax, esp
mov ecx, 0x406058
mov dword [esp + 0x81c], eax
call fcn.00401ca0
push 0x400
lea eax, [esp + 0x420]
push eax
push 0
mov byte [esp + 0x428], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x41c]
push 0x5c
push ecx
call dword [sym.imp.MSVCR71.dll_strrchr]
add esp, 8
test eax, eax
je 0x40184a
mov byte [eax], 0
push esi
mov esi, dword [sym.imp.MSVCR71.dll_sprintf]
push edi
lea edx, [esp + 0x424]
push edx
lea eax, [esp + 0x28]
push str._sconfigconfig.ini
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
push 1
push str.AutoRun
push str.SYSTEM
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [0x406054], 1
jne 0x401953
lea edx, [esp + 0x424]
push edx
lea eax, [esp + 0x28]
push str._sjfCacheMgr.exe
push eax
call esi
lea ecx, [esp + 0x30]
push ecx
call fcn.00402500
add esp, 0x10
test eax, eax
je 0x40190f
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0xc]
push eax
call fcn.00402bb0
add esp, 8
push 0
push str.Zhejiang_HaoYing_Network
lea ecx, [esp + 0x10]
mov dword [esp + 0x838], 0
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp eax, dword [ecx]
je 0x4018fa
mov byte [0x406054], 0
lea ecx, [esp + 8]
mov dword [esp + 0x830], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea edx, [esp + 0x424]
push edx
lea eax, [esp + 0x28]
push str.__sjfCacheMgr.exe___background
push eax
call esi
mov al, byte [0x406054]
add esp, 0xc
test al, al
jne 0x401953
nop
lea ecx, [esp + 0x24]
push ecx
mov ecx, 0x406058
call fcn.00402070
test al, al
jne 0x401953
push 0x7d0
call edi
mov al, byte [0x406054]
test al, al
je 0x401930
push 0x7d0
call edi
mov ecx, 0x406058
call fcn.00401df0
mov ecx, dword [esp + 0x828]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x820]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00402d2b
add esp, 0x82c
ret