joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433300
Capabilities:
Check os version

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x5c5244]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x5c33c4]
test ecx, ecx
js 0x433348
xor eax, eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da3bd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x118
xorps xmm0, xmm0
mov dword [0x5c33c4], 0
lea eax, [ebp - 0x124]
movaps xmmword [ebp - 0x160], xmm0
push 0
push eax
movaps xmmword [ebp - 0x150], xmm0
mov dword [ebp - 0x140], 0
call fcn.004f39e0
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4333b9
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x433410
push str.GetNativeSystemInfo
push 0x56ef78
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x433410
lea ecx, [ebp - 0x160]
push ecx
call eax
mov ax, word [ebp - 0x160]
cmp ax, 9
je 0x4333f0
cmp ax, 6
jne 0x433410
mov dword [0x5c33c4], 1
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da3bd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004da3bd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x433850
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1858
call fcn.004da530
mov eax, dword [0x5c5244]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x804]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push 0x800
push 0
push eax
call fcn.004f39e0
add esp, 0xc
cmp dword [ebp + 0x24], 0
je 0x4338ba
push 0x400
lea eax, [ebp - 0x804]
push eax
push esi
push ebx
call fcn.00432ca0
add esp, 0x10
test eax, eax
jne 0x4338d2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da3bd
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x804]
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x4338c2
cmp dword [ebp + 0x20], 0
je 0x4338fc
lea eax, [ebp - 0x804]
push eax
call fcn.004cf4a0
add esp, 4
test eax, eax
jne 0x4338fc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da3bd
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - 0x1858], 0x44
lea eax, [ebp - 0x1858]
movlpd qword [ebp - 0x1854], xmm0
push eax
movlpd qword [ebp - 0x184c], xmm0
movlpd qword [ebp - 0x1844], xmm0
movlpd qword [ebp - 0x183c], xmm0
movlpd qword [ebp - 0x1834], xmm0
movlpd qword [ebp - 0x182c], xmm0
movlpd qword [ebp - 0x1824], xmm0
movlpd qword [ebp - 0x181c], xmm0
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov ax, word [ebp + 0x14]
xorps xmm0, xmm0
push 0x1000
mov word [ebp - 0x1828], ax
lea eax, [ebp - 0x1804]
push 0
push eax
mov dword [ebp - 0x182c], 1
movups xmmword [ebp - 0x1814], xmm0
call fcn.004f39e0
add esp, 0xc
lea eax, [ebp - 0x804]
test edi, edi
je 0x4339ad
push edi
push eax
lea eax, [ebp - 0x1804]
push 0x56e634
push eax
call fcn.00431e20
add esp, 0x10
jmp 0x4339c2
push eax
lea eax, [ebp - 0x1804]
push str.__s_
push eax
call fcn.00431e20
add esp, 0xc
lea eax, [ebp - 0x1814]
push eax
lea eax, [ebp - 0x1858]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x433a30
cmp dword [ebp + 0x18], 0
je 0x433a06
push dword [ebp + 0x1c]
push dword [ebp - 0x1814]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x433a1a
push eax
push dword [ebp - 0x1814]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1810]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1814]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da3bd
mov esp, ebp
pop ebp
ret
Function at 0x4340a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x5c5244]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x4340ff
cmp word [esi], 0
je 0x4340ff
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.004f39e0
add esp, 0xc
cmp dword [ebp + 0x1c], 0
je 0x434112
push 0x400
lea eax, [ebp - 0x804]
push eax
push esi
push edi
call fcn.00432ca0
add esp, 0x10
test eax, eax
jne 0x434130
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da3bd
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x804]
sub ecx, esi
nop word [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x434120
cmp dword [ebp + 0x18], 0
je 0x434149
lea eax, [ebp - 0x804]
push eax
call fcn.004cf4a0
add esp, 4
test eax, eax
je 0x4340ff
lea eax, [ebp - 0x804]
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x830], eax
xorps xmm0, xmm0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x824], eax
lea eax, [ebp - 0x840]
push eax
movlpd qword [ebp - 0x838], xmm0
movlpd qword [ebp - 0x820], xmm0
movlpd qword [ebp - 0x818], xmm0
movlpd qword [ebp - 0x810], xmm0
mov dword [ebp - 0x808], 0
mov dword [ebp - 0x840], 0x3c
mov dword [ebp - 0x82c], ebx
mov dword [ebp - 0x83c], 0x400
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
je 0x4341ce
push dword [ebp - 0x808]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da3bd
mov esp, ebp
pop ebp
ret

Function at 0x4347d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5c5244]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call fcn.004f39e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.MobileMgrIosLDSkoudai.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43487b
lea eax, [ebp - 0x20c]
push 0x56f654
push eax
call fcn.004cf1c0
add esp, 8
test eax, eax
je 0x43487b
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push 1
push 0
push 0x1388
push 1
push 5
push esi
push eax
push 0
call fcn.004337b0
add esp, 0x24
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004da3bd
mov esp, ebp
pop ebp
ret
Function at 0x4356c0
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b7b2
mov eax, dword fs:[0]
push eax
mov eax, 0x1128
call fcn.004da530
mov eax, dword [0x5c5244]
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 - 0x1128], ebx
mov dword [ebp - 4], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1134], edi
mov dword [ebp - 0x1118], 0
mov dword [ebp - 4], 1
mov ecx, edi
call fcn.00434b90
mov ecx, dword [ebx]
mov dword [ebp - 0x1118], 1
cmp ecx, 0xffffffff
je 0x4358b8
mov eax, dword [ebp + 0xc]
push 0
push dword [eax - 0xc]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4358b8
cmp dword [ebx], 0xffffffff
je 0x4358b8
mov ecx, edi
call fcn.00434ff0
mov eax, dword [ebx]
mov dword [ebp - 0x1110], eax
mov eax, 0x10624dd3
mul dword [ebp + 0x10]
lea eax, [ebp - 0x1130]
mov dword [ebp - 0x1114], 1
push eax
push 0
push 0
lea eax, [ebp - 0x1114]
shr edx, 6
push eax
push 0
mov dword [ebp - 0x1130], edx
mov dword [ebp - 0x112c], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x4358b8
lea eax, [ebp - 0x1114]
push eax
push dword [ebx]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4358b8
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.004f39e0
add esp, 0xc
nop dword [eax + eax]
push 0
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4358b8
lea ecx, [ebp - 0x1010]
mov dword [ebp - 0x1124], ecx
lea edx, [ebp - 0x1010]
mov ecx, dword [edi]
sub edx, ecx
mov dword [ebp - 0x1120], edx
mov ebx, dword [ecx - 0xc]
test eax, eax
js 0x4358fa
push eax
lea eax, [ebp - 0x1010]
push eax
call fcn.0051042c
mov edx, eax
mov ecx, SysReAllocString
sub ecx, edx
mov dword [ebp - 0x111c], edx
add esp, 8
cmp ecx, ebx
jl 0x4358fa
lea esi, [ebx + edx]
test esi, esi
js 0x4358fa
mov eax, dword [edi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or eax, ecx
jge 0x435878
push esi
mov ecx, edi
call fcn.004350d0
mov edx, dword [ebp - 0x111c]
mov eax, dword [ebp - 0x1120]
mov ecx, dword [edi]
cmp eax, ebx
ja 0x435888
add eax, ecx
jmp 0x43588e
mov eax, dword [ebp - 0x1124]
push edx
push eax
push edx
lea eax, [ecx + ebx]
push eax
call fcn.00434f20
mov eax, dword [edi]
add esp, 0x10
cmp esi, dword [eax - 8]
jg 0x4358fa
mov ebx, dword [ebp - 0x1128]
mov dword [eax - 0xc], esi
mov eax, dword [edi]
mov byte [esi + eax], 0
jmp 0x4357e0
mov dword [ebp - 4], 0
or eax, 0xffffffff
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4358da
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.004da3bd
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.004225f0
int3
Function at 0x437dc0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5a4288
push 0x4f3b80
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5c5244]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x24], 0
xor esi, esi
xor eax, eax
xor edi, edi
mov dword [ebp - 4], eax
xorps xmm0, xmm0
mov ecx, dword [ebp + 0xc]
movups xmmword [ecx], xmm0
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x437eaa
push edi
push 1
push 3
push edi
push 1
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x34], esi
test esi, esi
je 0x437ea8
cmp esi, 0xffffffff
je 0x437ea8
push edi
push edi
push edi
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x30], edi
test edi, edi
je 0x437ea8
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x437ebc
push 2
push 0
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
call esi
mov edi, eax
push 0
push 0
push 0
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x24], 1
push dword [ebp + 0xc]
push edi
push dword [ebp - 0x20]
call fcn.00437cf0
add esp, 0xc
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
jmp 0x437eaa
xor eax, eax
test eax, eax
je 0x437ebc
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x2c], 0
test edi, edi
je 0x437ed2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov dword [ebp - 0x30], 0
jmp 0x437ed8
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x437efe
push esi
call edi
mov dword [ebp - 0x34], 0
jmp 0x437efe
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4381e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x5c5244]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [ebp + 8]
mov eax, dword [ebp + 0x48]
push esi
movups xmmword [ebp - 0x48], xmm0
mov esi, dword [ebp + 0x8c]
movups xmm0, xmmword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x90]
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x4c], esi
mov dword [edi + 0x40], esi
movups xmm0, xmmword [ebp + 0x28]
movups xmmword [ebp - 0x28], xmm0
movups xmm0, xmmword [ebp + 0x38]
movups xmmword [ebp - 0x18], xmm0
movups xmm0, xmmword [ebp + 0x4c]
movups xmmword [ebp - 0x8c], xmm0
movups xmm0, xmmword [ebp + 0x5c]
movups xmmword [ebp - 0x7c], xmm0
movups xmm0, xmmword [ebp + 0x6c]
movups xmmword [ebp - 0x6c], xmm0
movups xmm0, xmmword [ebp + 0x7c]
movups xmmword [ebp - 0x5c], xmm0
test esi, esi
jle 0x438364
cmp esi, 0x40
jb 0x43834d
lea edx, [esi - 1]
lea ecx, [ebp + esi - 0x49]
add edx, edi
cmp edi, ecx
ja 0x438287
lea ecx, [ebp - 0x48]
cmp edx, ecx
jae 0x43834d
lea ecx, [ebp + esi - 0x8d]
cmp edi, ecx
ja 0x4382a0
lea ecx, [ebp - 0x8c]
cmp edx, ecx
jae 0x43834d
mov ecx, esi
push ebx
and ecx, 0x8000003f
jns 0x4382b0
dec ecx
or ecx, 0xffffffc0
inc ecx
mov ebx, esi
lea edx, [edi + 0x20]
sub ebx, ecx
mov dword [ebp - 0x98], edx
mov esi, edi
lea ecx, [ebp - 0x38]
sub esi, ecx
sub ecx, edi
mov dword [ebp - 0x90], ecx
lea ecx, [ebp - 0x7c]
sub ecx, edi
mov edi, dword [ebp - 0x90]
mov dword [ebp - 0x94], ecx
nop dword [eax]
movups xmm0, xmmword [ebp + eax - 0x48]
lea ecx, [ebp - 0x38]
add edx, eax
movups xmm1, xmmword [ebp + eax - 0x8c]
add ecx, eax
pxor xmm1, xmm0
movups xmm0, xmmword [ecx]
movups xmmword [esi + ecx], xmm1
mov ecx, dword [ebp - 0x94]
movups xmm1, xmmword [ebp + eax - 0x7c]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp + eax - 0x6c]
movups xmmword [edx - 0x10], xmm1
movups xmm1, xmmword [ebp + eax - 0x28]
add eax, 0x40
pxor xmm1, xmm0
movups xmm0, xmmword [edi + edx]
movups xmmword [edx], xmm1
movups xmm1, xmmword [ecx + edx]
pxor xmm1, xmm0
movups xmmword [edx + 0x10], xmm1
mov edx, dword [ebp - 0x98]
cmp eax, ebx
jl 0x4382e0
mov esi, dword [ebp - 0x9c]
mov edi, dword [ebp - 0xa0]
pop ebx
cmp eax, esi
jge 0x438364
mov cl, byte [ebp + eax - 0x8c]
xor cl, byte [ebp + eax - 0x48]
mov byte [edi + eax], cl
inc eax
cmp eax, esi
jl 0x438351
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004da3bd
mov esp, ebp
pop ebp
ret
Function at 0x43b060
Capabilities:
Check for time delay via gettickcount
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.004da530
mov eax, dword [0x5c5244]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [ebp - 0x100c], ebx
mov ecx, ebx
mov dword [ebp - 0x101c], edi
mov dword [ebp - 0x1018], esi
call fcn.00434ff0
push 0x1000
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x1008], 0
push 0
push eax
call fcn.004f39e0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x1020], eax
nop word [eax + eax]
push 0
push 0
lea eax, [ebp - 0x1008]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x43b1fd
cmp dword [ebp - 0x1008], 0
jbe 0x43b1fd
push 0
lea eax, [ebp - 0x1008]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43b23e
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x1010], eax
mov eax, dword [ebx]
lea ebx, [ebp - 0x1004]
sub ebx, eax
mov edi, dword [eax - 0xc]
mov eax, dword [ebp - 0x1008]
test eax, eax
js 0x43b261
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.0051042c
mov ecx, SysReAllocString
mov dword [ebp - 0x1014], eax
sub ecx, eax
add esp, 8
cmp ecx, edi
jl 0x43b261
lea esi, [edi + eax]
test esi, esi
js 0x43b261
mov edx, dword [ebp - 0x100c]
mov ecx, 1
mov edx, dword [edx]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, esi
or ecx, eax
jge 0x43b1af
mov ecx, dword [ebp - 0x100c]
push esi
call fcn.004350d0
mov eax, dword [ebp - 0x100c]
mov edx, dword [eax]
cmp ebx, edi
ja 0x43b1bc
lea eax, [edx + ebx]
mov dword [ebp - 0x1010], eax
mov eax, dword [ebp - 0x1014]
push eax
push dword [ebp - 0x1010]
push eax
lea eax, [edi + edx]
push eax
call fcn.00434f20
mov ebx, dword [ebp - 0x100c]
add esp, 0x10
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x43b261
mov edi, dword [ebp - 0x101c]
mov dword [eax - 0xc], esi
mov eax, dword [ebx]
mov byte [esi + eax], 0
mov esi, dword [ebp - 0x1018]
jmp 0x43b0d0
mov edx, dword [ebx]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x43b215
lea ecx, [eax - 1]
jle 0x43b261
cmp ecx, eax
jg 0x43b261
cmp byte [edx + ecx], 0x3e
je 0x43b23e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x1020]
cmp eax, dword [ebp + 0xc]
ja 0x43b23e
push 0x14
test esi, esi
je 0x43b256
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x43b0d0
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da3bd
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x43b0d0
push 0x80070057
call fcn.004225f0
int3
Function at 0x43bf40
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54bdf0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5c5244]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x43bf94
mov eax, 0x80004003
mov dword [ebp - 0x10], eax
jmp 0x43c06b
xor esi, esi
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
push ebx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x43bfee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x41f
jne 0x43c003
push 0x10c
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x43c003
lea eax, [ebp - 0x1c]
push eax
push 0x10c
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceLockStatusW]
test eax, eax
je 0x43c003
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 0x80004005
jmp 0x43c04f
push 2
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x43c00a
mov eax, 0x80004005
jmp 0x43c04f
cmp dword [ebp + 0xc], 0
mov ecx, 4
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, 1
cmovne eax, ecx
push eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push dword [ebp - 0x10]
neg eax
sbb edi, edi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
xor ecx, ecx
mov eax, 0x80004005
and edi, 1
cmovne eax, ecx
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0
test esi, esi
je 0x43c06b
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x43c087
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43c600
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54bf40
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5c5244]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x43c654
mov eax, 0x80004003
mov dword [ebp - 0x10], eax
jmp 0x43c71c
xor esi, esi
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
push ebx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x43c6ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x41f
jne 0x43c6c3
push 0x10c
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x43c6c3
lea eax, [ebp - 0x1c]
push eax
push 0x10c
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceLockStatusW]
test eax, eax
je 0x43c6c3
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 0x80004005
jmp 0x43c700
push 2
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x43c6ca
mov eax, 0x80004005
jmp 0x43c700
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push dword [ebp - 0x10]
neg eax
sbb edi, edi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
xor ecx, ecx
mov eax, 0x80004005
and edi, 1
cmovne eax, ecx
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0
test esi, esi
je 0x43c71c
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x43c738
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43c750
Capabilities:
Accept command line arguments
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54bf97
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x5c5244]
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 eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0xf003f
push 0
push 0
mov dword [ebp - 0x118], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x128], edi
mov dword [ebp - 4], 0
test edi, edi
jne 0x43c7b6
mov esi, 0x80004003
jmp 0x43c8ba
mov dword [ebp - 0x124], 0
mov byte [ebp - 4], 1
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
mov dword [ebp - 0x124], ebx
test ebx, ebx
jne 0x43c7e7
mov esi, 0x80004005
jmp 0x43c8a1
push dword [ebp - 0x118]
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x11c], 0
xor esi, esi
call fcn.0043bd30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x120]
push dword [eax]
call fcn.0042b850
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x110]
mov eax, dword [ebp - 0x114]
cmp eax, ecx
je 0x43c832
push eax
call fcn.004fe668
add esp, 4
mov eax, dword [ebp - 0x120]
cmp dword [eax - 0xc], 0
je 0x43c84e
lea ecx, [ebp - 0x11c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
push esi
push dword [ebp - 0x11c]
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 0x118], eax
test esi, esi
je 0x43c873
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x118]
xor ecx, ecx
mov esi, 0x80004005
test eax, eax
cmovne esi, ecx
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x120]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43c8a1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
test ebx, ebx
je 0x43c8ba
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x124], 0
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x43c8d6
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x128], 0
mov eax, esi
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.004da3bd
mov esp, ebp
pop ebp
ret