joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474660
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA_1]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4746f2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x4746e4
mov ebp, dword [sym.imp.kernel32.dll_WriteFile_1]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x4746dc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x4746a5
push edi
call dword [sym.imp.kernel32.dll_CloseHandle_1]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.kernel32.dll_CloseHandle_1]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x474dd0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.kernel32.dll_CreateFileA_1]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x474e39
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.kernel32.dll_GetFileSize_1]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00473b50
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.kernel32.dll_ReadFile_1]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle_1]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x476f50
Capabilities:
Get file size

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x476f5e
or eax, 0xffffffff
pop esi
ret
push esi
call fcn.0047a8d0
add esp, 4
test eax, eax
jne 0x476f70
or eax, 0xffffffff
pop esi
ret
mov ecx, dword [esi]
or eax, 0xffffffff
cmp ecx, 1
jne 0x476f8b
mov esi, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.kernel32.dll_GetFileSize_1]
pop esi
ret
cmp ecx, 2
jne 0x476f98
mov ecx, dword [esi + 4]
call fcn.0047a8c0
pop esi
ret
Function at 0x476fa0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
jne 0x476fb3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push ebx
call fcn.0047a8d0
add esp, 4
test eax, eax
jne 0x476fc5
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, dword [esp + 0x24]
test edi, edi
jg 0x476fd4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x47702b
mov ebx, dword [ebx + 4]
push edi
call fcn.0047f3e0
add esp, 4
mov ebp, eax
lea eax, [esp + 0x18]
push esi
push eax
push edi
push ebp
push ebx
call dword [sym.imp.kernel32.dll_ReadFile_1]
test eax, eax
jne 0x47700e
push ebp
call fcn.0047f3ee
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x18]
push ecx
push ebp
call fcn.0047a460
push ebp
mov esi, eax
call fcn.0047f3ee
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x47706d
mov ebx, dword [ebx + 4]
lea edx, [edi + 8]
push edx
call fcn.00473b50
mov esi, eax
add esp, 4
lea ecx, [esi + 8]
mov dword [esi], 1
mov dword [esi + 4], edi
mov eax, dword [ebx]
push edi
push ecx
mov ecx, ebx
call dword [eax + 0x20]
test eax, eax
jne 0x47706a
push esi
call fcn.00473c10
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 4], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x477090
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x4770ae
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x4770a3
pop esi
ret
Function at 0x48a850
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x62f20c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x48a863
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x48a8a4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x62f2b4]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x48a8d6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x48a8da
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x48a8cb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x48a8f8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x48a8fc
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x48a8ed
xor ecx, ecx
mov eax, 0x62f21c
xor ebx, ebx
mov bl, byte [ecx + 0x62f2c4]
cmp byte [esp + ebx + 0x14], 0
je 0x48a927
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x62f2dc]
cmp byte [esp + ebx + 0x14], 0
je 0x48a93e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x48a90e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x48a897
lea edx, [esp + 0x84]
push edx
call fcn.0048a980
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x49d4db
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 0x49d509
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49d527
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049d441
jmp 0x49d527
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49d527
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049d441
test edi, edi
mov eax, edi
jne 0x49d511
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402410
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 0x402429
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402464
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402460
lea ebx, [ebx]
cmp esi, eax
jae 0x402464
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402450
cmp esi, eax
jb 0x40246a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403150
Capabilities:
Create thread
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x4338a0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
mov eax, dword [0x440e88]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, 1
lea esi, [esp + 0x18]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], str.CServiceController::ServiceRun
call fcn.00402380
xor ebx, ebx
mov dword [esp + 0x2c], ebx
cmp dword [esp + 0x34], ebp
je 0x4031e6
lea ebp, [edi + 0xc]
mov esi, 0x83
mov dword [ebp], 0x10
mov dword [edi + 0x10], 4
call fcn.0040f060
test eax, eax
je 0x4031c0
mov esi, 3
mov eax, dword [edi + 8]
push ebp
push eax
mov dword [edi + 0x14], esi
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], 0xbb8
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
cmp eax, ebx
je 0x4032dd
push 0x402a50
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xb
mov esi, 0xf
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push str.default_key
mov byte [ecx + 4], bl
call fcn.00401a50
mov byte [esp + 0x4c], 1
call fcn.00402db0
mov ecx, eax
mov byte [esp + 0x4c], bl
call fcn.0040c110
push 0x402ad0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push esi
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push str.execute_process
mov byte [ecx + 4], bl
call fcn.00401a50
mov byte [esp + 0x4c], 2
call fcn.00402db0
mov ecx, eax
mov byte [esp + 0x4c], bl
call fcn.0040c110
push 0x402cf0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xc
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push str.service_stop
mov byte [ecx + 4], bl
call fcn.00401a50
mov byte [esp + 0x4c], 3
call fcn.00402db0
mov ecx, eax
mov byte [esp + 0x4c], bl
call fcn.0040c110
lea esi, [edi + 4]
push esi
push ebx
push 0x4451e4
push 0x40c2c0
push ebx
push ebx
call fcn.0041b684
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 0x18
mov dword [edi], eax
mov ecx, dword [edi]
push 0x3e8
push ecx
call ebp
cmp dword [0x4451e4], 1
jne 0x4032b3
mov edx, dword [edi]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], ebx
mov dword [esi], ebx
lea esi, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004022a0
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x4036f0
Capabilities:
Delete file

Disassembly:
sub esp, 0x268
mov eax, dword [0x440e88]
xor eax, esp
mov dword [esp + 0x260], eax
mov eax, dword [0x44529c]
cmp dword [eax - 0xc], 0
push esi
jne 0x403728
xor eax, eax
pop esi
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.0041ac20
add esp, 0x268
ret
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x403771
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
test byte [esp + 0x10], 0x10
jne 0x403776
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
xor esi, esi
or eax, ecx
or edx, esi
mov dword [esp + 0xc], edx
ja 0x403764
cmp eax, 0x100000
jbe 0x403771
mov edx, dword [0x44529c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
mov ecx, dword [esp + 0x264]
pop esi
xor ecx, esp
call fcn.0041ac20
add esp, 0x268
ret
Function at 0x403e80
Capabilities:
Query service status
Start service

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x28
cmp dword [eax - 0xc], 0
push ebx
push ebp
push esi
push edi
jne 0x403eba
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403ead
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push 0xf003f
push 0
push 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
jne 0x403f0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f03
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov ecx, dword [esp + 0x3c]
push 0xf01ff
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [esp + 0x18], esi
test esi, esi
jne 0x403f4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x403ef7
mov ebx, dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f02
push 0
call ebx
mov ebp, dword [sym.imp.USER32.dll_SetCursor]
push eax
call ebp
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x403fbd
push 0x7f00
push eax
call ebx
push eax
call ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403fb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x1c]
push ecx
push esi
call edi
test eax, eax
je 0x403fee
nop
cmp dword [esp + 0x20], 2
jne 0x403fee
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x1c]
push eax
push esi
call edi
test eax, eax
jne 0x403fd0
push 0x7f00
push 0
call ebx
push eax
call ebp
cmp dword [esp + 0x20], 4
jne 0x40401d
lea esi, [esp + 0x14]
call fcn.004039b0
lea ecx, [esp + 0x3c]
call fcn.004023f0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esp + 0x14]
mov edi, eax
call fcn.004039b0
lea ecx, [esp + 0x3c]
call fcn.004023f0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x404050
Capabilities:
Query service status
Stop service

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x24
cmp dword [eax - 0xc], 0
push ebx
push ebp
push esi
push edi
jne 0x40408a
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40407d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
jne 0x4040d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4040cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov ecx, dword [esp + 0x38]
push 0xf01ff
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x404111
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4040bf
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x18]
push ecx
push esi
call ebx
cmp dword [esp + 0x1c], 1
mov ebp, dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
je 0x404143
lea edx, [esp + 0x18]
push edx
push 1
push esi
call ebp
push 0x3e8
call edi
lea eax, [esp + 0x18]
push eax
push 1
push esi
call ebp
test eax, eax
je 0x40417e
push 0x3e8
call edi
lea ecx, [esp + 0x18]
push ecx
push esi
call ebx
test eax, eax
je 0x40417e
cmp dword [esp + 0x1c], 3
jne 0x40417e
push 0x3e8
call edi
lea edx, [esp + 0x18]
push edx
push esi
call ebx
test eax, eax
jne 0x404164
cmp dword [esp + 0x1c], 1
jne 0x4041bf
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4041b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4041f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x404210
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c
cmp dword [eax - 0xc], 0
push ebx
push esi
push edi
jne 0x404248
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40423c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 2
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x40428e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404285
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
mov ecx, dword [esp + 0x2c]
push 0xf01ff
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4042ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x404279
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0x10], 1
je 0x4042f6
lea edx, [esp + 0xc]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40433e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404335
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40436a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
Function at 0x404f90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00404ca4
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x404fcd
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00404cdf
invalid
Function at 0x40d3d0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x3c
cmp dword [eax - 0xc], 0
jne 0x40d41f
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d3f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d419
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
add esp, 0x3c
ret
push 0
push eax
call fcn.0041bc4a
add esp, 8
test eax, eax
je 0x40d434
mov eax, dword [esp + 0x40]
jmp 0x40d3dd
push esi
call fcn.0040f0e0
push 0x3c
lea ecx, [esp + 8]
push 0
push ecx
mov esi, eax
call fcn.0041cf20
add esp, 0xc
cmp esi, 8
mov dword [esp + 4], 0x3c
pop esi
mov dword [esp + 0xc], str.runas
jge 0x40d46b
mov dword [esp + 0xc], str.open
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
lea ecx, [esp]
push ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40d4a2
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40d3ed
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d4cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d4ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
add esp, 0x3c
ret