joyce8/EMBER2024-capa huggingface dataset:
Function at 0x69bf10
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
movups xmm0, xmmword [edx]
movups xmm1, xmmword [edx + 0x10]
shl ecx, 4
xorps xmm2, xmm0
pxor xmm3, xmm0
pxor xmm4, xmm0
pxor xmm5, xmm0
movups xmm0, xmmword [edx + 0x20]
lea edx, [edx + ecx + 0x20]
neg ecx
nop dword [eax]
add ecx, 0x10
aesdec xmm2, xmm1
aesdec xmm3, xmm1
aesdec xmm4, xmm1
aesdec xmm5, xmm1
movups xmm1, xmmword [edx + ecx]
add ecx, 0x20
aesdec xmm2, xmm0
aesdec xmm3, xmm0
aesdec xmm4, xmm0
aesdec xmm5, xmm0
movups xmm0, xmmword [edx + ecx - 0x10]
jne 0x69bf3a
aesdec xmm2, xmm1
aesdec xmm3, xmm1
aesdec xmm4, xmm1
aesdec xmm5, xmm1
aesdeclast xmm2, xmm0
aesdeclast xmm3, xmm0
aesdeclast xmm4, xmm0
aesdeclast xmm5, xmm0
ret

Function at 0x69bfa0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movups xmm0, xmmword [edx]
shl ecx, 4
movups xmm1, xmmword [edx + 0x10]
xorps xmm2, xmm0
pxor xmm3, xmm0
pxor xmm4, xmm0
aesenc xmm2, xmm1
pxor xmm5, xmm0
pxor xmm6, xmm0
aesenc xmm3, xmm1
lea edx, [edx + ecx + 0x20]
neg ecx
aesenc xmm4, xmm1
pxor xmm7, xmm0
movups xmm0, xmmword [edx + ecx]
add ecx, 0x10
jmp 0x69bfef

Function at 0x69bffe
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aesenc xmm2, xmm1
aesenc xmm3, xmm1
aesenc xmm4, xmm1
aesenc xmm5, xmm1
aesenc xmm6, xmm1
aesenc xmm7, xmm1
movups xmm1, xmmword [edx + ecx]
add ecx, 0x20
aesenc xmm2, xmm0
aesenc xmm3, xmm0
aesenc xmm4, xmm0
aesenc xmm5, xmm0
aesenc xmm6, xmm0
aesenc xmm7, xmm0
movups xmm0, xmmword [edx + ecx - 0x10]
jne reloc.WS2_32.dll_bind
aesenc xmm2, xmm1
aesenc xmm3, xmm1
aesenc xmm4, xmm1
aesenc xmm5, xmm1
aesenc xmm6, xmm1
aesenc xmm7, xmm1
aesenclast xmm2, xmm0
aesenclast xmm3, xmm0
aesenclast xmm4, xmm0
aesenclast xmm5, xmm0
aesenclast xmm6, xmm0
aesenclast xmm7, xmm0
ret

Function at 0x69c070
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
movups xmm0, xmmword [edx]
shl ecx, 4
movups xmm1, xmmword [edx + 0x10]
xorps xmm2, xmm0
pxor xmm3, xmm0
pxor xmm4, xmm0
aesdec xmm2, xmm1
pxor xmm5, xmm0
pxor xmm6, xmm0
aesdec xmm3, xmm1
lea edx, [edx + ecx + 0x20]
neg ecx
aesdec xmm4, xmm1
pxor xmm7, xmm0
movups xmm0, xmmword [edx + ecx]
add ecx, 0x10
jmp listen

Function at 0x69c0ce
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
aesdec xmm2, xmm1
aesdec xmm3, xmm1
aesdec xmm4, xmm1
aesdec xmm5, xmm1
aesdec xmm6, xmm1
aesdec xmm7, xmm1
movups xmm1, xmmword [edx + ecx]
add ecx, 0x20
aesdec xmm2, xmm0
aesdec xmm3, xmm0
aesdec xmm4, xmm0
aesdec xmm5, xmm0
aesdec xmm6, xmm0
aesdec xmm7, xmm0
movups xmm0, xmmword [edx + ecx - 0x10]
jne setsockopt
aesdec xmm2, xmm1
aesdec xmm3, xmm1
aesdec xmm4, xmm1
aesdec xmm5, xmm1
aesdec xmm6, xmm1
aesdec xmm7, xmm1
aesdeclast xmm2, xmm0
aesdeclast xmm3, xmm0
aesdeclast xmm4, xmm0
aesdeclast xmm5, xmm0
aesdeclast xmm6, xmm0
aesdeclast xmm7, xmm0
ret
Function at 0x6a9740
Capabilities:
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
push 0x1048
push 0xa08640
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
cmp esi, 0x48
mov eax, 0x48
cmovl eax, esi
add eax, edi
xor ecx, ecx
mov edx, edi
jmp 0x6a97ab
movzx edx, byte [edx]
movzx ebx, byte [ebx]
shl edx, 0x10
shl ebx, 8
or ebx, edx
movzx edx, byte [ebp]
or edx, ebx
shl edx, 8
movzx edi, byte [edi]
or edi, edx
mov ebx, dword [esp + 0x1c]
xor dword [ebx + ecx*4], edi
inc ecx
mov edx, esi
cmp ecx, 0x12
je 0x6a97f7
lea ebx, [edx + 1]
cmp ebx, eax
jae 0x6a97d0
lea ebp, [ebx + 1]
cmp ebp, eax
jae 0x6a97db
lea edi, [ebp + 1]
cmp edi, eax
jae 0x6a97e6
lea esi, [edi + 1]
cmp esi, eax
jb 0x6a9780
jmp 0x6a97f1
mov ebx, dword [esp + 0x24]
lea ebp, [ebx + 1]
cmp ebp, eax
jb 0x6a97b9
mov ebp, dword [esp + 0x24]
lea edi, [ebp + 1]
cmp edi, eax
jb 0x6a97c0
mov edi, dword [esp + 0x24]
lea esi, [edi + 1]
cmp esi, eax
jb 0x6a9780
mov esi, dword [esp + 0x24]
jmp 0x6a9780
mov dword [esp], 0
mov dword [esp + 4], 0
mov edi, esp
push ebx
push edi
call fcn.006a8a40
add esp, 8
movsd xmm0, qword [esp]
movsd qword [ebx], xmm0
push ebx
push edi
call fcn.006a8a40
add esp, 8
movsd xmm0, qword [esp]
movsd qword [ebx + 8], xmm0
push ebx
push edi
call fcn.006a8a40
add esp, 8
movsd xmm0, qword [esp]
movsd qword [ebx + 0x10], xmm0
push ebx
push edi
call fcn.006a8a40
add esp, 8
movsd xmm0, qword [esp]
movsd qword [ebx + 0x18], xmm0
push ebx
push edi
call fcn.006a8a40
add esp, 8
movsd xmm0, qword [esp]
movsd qword [ebx + 0x20], xmm0
push ebx
push edi
call fcn.006a8a40
add esp, 8
movsd xmm0, qword [esp]
movsd qword [ebx + 0x28], xmm0
push ebx
push edi
call fcn.006a8a40
add esp, 8
movsd xmm0, qword [esp]
movsd qword [ebx + 0x30], xmm0
push ebx
push edi
call fcn.006a8a40
add esp, 8
movsd xmm0, qword [esp]
movsd qword [ebx + 0x38], xmm0
push ebx
push edi
call fcn.006a8a40
add esp, 8
movsd xmm0, qword [esp]
movsd qword [ebx + 0x40], xmm0
mov esi, 0xfffffffe
push ebx
push edi
call fcn.006a8a40
add esp, 8
movsd xmm0, qword [esp]
movsd qword [ebx + esi*4 + 0x50], xmm0
add esi, 2
cmp esi, 0x3fe
jb 0x6a98c0
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x701230
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xa0
mov dword [esp + 0xc], edx
mov ebx, dword [esp + 0xb4]
mov dword [esp + 4], ecx
mov ecx, dword [ecx]
xor eax, eax
cmp ecx, 1
sbb eax, eax
mov dword [esp], eax
mov eax, 1
test ebx, ebx
je 0x7013ae
mov edx, dword [ebx]
test edx, edx
je 0x7013ae
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x3c]
mov dword [esp + 8], eax
or dword [esp], ecx
nop word [eax + eax]
xorps xmm0, xmm0
movsd qword [esp + 0x70], xmm0
xorps xmm1, xmm1
movups xmmword [esp + 0x60], xmm1
movups xmmword [esp + 0x50], xmm1
movups xmmword [esp + 0x40], xmm1
movups xmmword [esp + 0x30], xmm1
movups xmmword [esp + 0x20], xmm1
movups xmmword [esp + 0x10], xmm1
lea eax, [esp + 0x88]
movsd qword [eax + 0x10], xmm0
movups xmmword [eax], xmm1
mov eax, dword [esp + 0xc]
mov dword [esp + 0x78], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp]
mov dword [esp + 0x84], eax
mov dword [esp + 0x94], edx
lea ecx, [esp + 0x78]
mov edx, 0xa1cfa0
push 0x56
call fcn.007015d0
add esp, 4
mov esi, eax
mov edi, fcn.007009b0
test eax, eax
je 0x701317
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0x24]
test edi, edi
mov ecx, fcn.007009b0
cmove edi, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], ebx
lea eax, [esp + 0x10]
push eax
push esi
push 7
call edi
add esp, 0xc
mov ebp, eax
test eax, eax
jle 0x70135f
cmp dword [esp + 0x14], 0
je 0x70135f
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x20]
push dword [esp + 0xc]
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.005d0f80
add esp, 0x18
mov ebp, eax
test ebp, ebp
jle 0x701378
mov dword [esp + 0x24], ebp
lea eax, [esp + 0x10]
push eax
push esi
push 8
call edi
add esp, 0xc
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x701393
push 0x2c9
push str.crypto_evp_ctrl_params_translate.c
push eax
call fcn.005db5b0
add esp, 0xc
test ebp, ebp
jle 0x7013ac
mov edx, dword [ebx + 0x14]
add ebx, 0x14
test edx, edx
jne 0x701280
mov eax, 1
jmp 0x7013ae
xor eax, eax
add esp, 0xa0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x735fb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
bswap ecx
xor ecx, 0xa3b1bac6
bswap ebx
xor ebx, 0x56aa3350
mov esi, dword [eax + 8]
bswap esi
xor esi, 0x677d9197
mov edi, dword [eax + 0xc]
bswap edi
xor edi, 0xb27022dc
mov eax, 0xfffffffc
nop dword [eax + eax]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov ebp, dword [eax*4 + 0xa28b70]
xor ebp, edi
mov edx, esi
xor edx, ebx
xor edx, ebp
mov ebx, edx
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0xa28be0]
shl eax, 0x18
shr ebx, 0x10
movzx ebx, bl
movzx ebp, byte [ebx + 0xa28be0]
shl ebp, 0x10
or ebp, eax
movzx eax, dh
movzx edx, dl
movzx eax, byte [eax + 0xa28be0]
shl eax, 8
or eax, ebp
movzx edx, byte [edx + 0xa28be0]
or edx, eax
mov eax, edx
rol eax, 0xd
xor eax, ecx
mov ecx, edx
rol ecx, 0x17
xor ecx, edx
xor ecx, eax
mov eax, dword [esp]
mov eax, dword [eax*4 + 0xa28b74]
xor eax, edi
xor eax, esi
xor eax, ecx
mov edx, eax
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + 0xa28be0]
shl ebx, 0x18
shr edx, 0x10
movzx edx, dl
movzx ebp, byte [edx + 0xa28be0]
shl ebp, 0x10
or ebp, ebx
movzx edx, ah
movzx eax, al
movzx edx, byte [edx + 0xa28be0]
shl edx, 8
or edx, ebp
movzx eax, byte [eax + 0xa28be0]
or eax, edx
mov edx, eax
rol edx, 0xd
xor dword [esp + 4], eax
rol eax, 0x17
xor eax, edx
xor dword [esp + 4], eax
mov eax, dword [esp]
mov eax, dword [eax*4 + 0xa28b78]
xor eax, edi
xor eax, ecx
xor eax, dword [esp + 4]
mov edx, eax
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + 0xa28be0]
shl ebx, 0x18
shr edx, 0x10
movzx edx, dl
movzx ebp, byte [edx + 0xa28be0]
shl ebp, 0x10
or ebp, ebx
movzx edx, ah
movzx eax, al
movzx edx, byte [edx + 0xa28be0]
shl edx, 8
or edx, ebp
movzx eax, byte [eax + 0xa28be0]
or eax, edx
mov edx, eax
rol edx, 0xd
xor esi, eax
rol eax, 0x17
xor eax, edx
xor esi, eax
mov eax, dword [esp]
mov eax, dword [eax*4 + 0xa28b7c]
xor eax, ecx
xor eax, dword [esp + 4]
xor eax, esi
mov edx, eax
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + 0xa28be0]
shl ebx, 0x18
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + 0xa28be0]
shl edx, 0x10
or edx, ebx
movzx ebx, ah
movzx ebx, byte [ebx + 0xa28be0]
shl ebx, 8
or ebx, edx
movzx eax, al
movzx eax, byte [eax + 0xa28be0]
or eax, ebx
mov ebx, dword [esp + 4]
mov edx, eax
rol edx, 0xd
xor edi, eax
rol eax, 0x17
xor eax, edx
xor edi, eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp]
mov dword [eax + edx*4 + 0x10], ecx
mov edx, dword [esp]
mov dword [eax + edx*4 + 0x14], ebx
mov edx, dword [esp]
mov dword [eax + edx*4 + 0x18], esi
mov edx, dword [esp]
mov dword [eax + edx*4 + 0x1c], edi
mov eax, dword [esp]
add eax, 4
cmp eax, 0x1c
jb 0x735ff0
mov eax, 1
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x739de0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebx, dword [esp + 0x18]
xor esi, esi
test ebx, ebx
jle 0x739e00
nop
movzx eax, byte [ecx + esi]
cmp al, byte [edx + esi]
jne 0x739e00
inc esi
cmp ebx, esi
jne 0x739df0
mov esi, ebx
mov ebp, ebx
sar ebp, 0x1f
and ebp, ebx
lea eax, [ebp - 1]
mov dword [esp], eax
lea edi, [ebx - 1]
mov eax, ebx
lea ebx, [edi + 1]
test ebx, ebx
jle 0x739e2d
cmp byte [ecx + edi], 0
jne 0x739e3d
cmp byte [edx + edi], 0xff
lea edi, [edi - 1]
lea ebx, [eax - 1]
je 0x739e10
jmp 0x739e32
mov eax, ebp
mov ebx, dword [esp]
mov ebp, 0xffffffff
cmp esi, ebx
jge 0x739e4a
jmp case.0x739e6a.2
mov eax, ebx
mov ebx, edi
mov ebp, 0xffffffff
cmp esi, ebx
jl case.0x739e6a.2
cmp esi, eax
jge 0x739e78
movzx ecx, byte [ecx + esi]
movzx edx, byte [edx + esi]
mov ch, dl
xor ch, cl
movzx eax, ch
lea ebx, [eax - 1]
cmp ebx, 0x1e
ja case.default.0x739e6a
mov edi, 7
jmp dword [ebx*4 + 0xa2a728]
mov edi, 6
jmp case.0x739e6a.1
shl esi, 3
mov ebp, esi
jmp case.0x739e6a.2
cmp eax, 0x3f
je 0x739ea5
cmp eax, 0x7f
jne case.0x739e6a.2
mov edi, 1
jmp case.0x739e6a.1
mov edi, 5
jmp case.0x739e6a.1
mov edi, 4
jmp case.0x739e6a.1
mov edi, 3
jmp case.0x739e6a.1
mov edi, 2
not dl
or cl, dl
test ch, cl
jne case.0x739e6a.2
lea ebp, [edi + esi*8]
mov eax, ebp
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x7436a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x14]
mov ebx, dword [esi + 0x28]
cmp dword [ebx], 5
je 0x7436bd
mov ecx, esi
mov edx, ebx
call fcn.007440f0
test eax, eax
jle 0x74373a
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
cmp dword [ebx + 0x28], 0
je 0x7436fe
push 0xf
push esi
call fcn.0057c080
add esp, 8
push ebp
push edi
push dword [ebx + 0x28]
call fcn.0057c350
add esp, 0xc
mov edi, eax
push 0xf
push dword [ebx + 0x28]
call fcn.0057c090
add esp, 8
push eax
push esi
call fcn.0057c0a0
add esp, 8
jmp 0x74373c
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push ebp
push edi
push dword [esi + 0x24]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
push 0xf
push esi
call fcn.0057c080
add esp, 8
test edi, edi
jg 0x74373c
push edi
call fcn.00583f40
add esp, 4
mov ecx, eax
mov eax, 0xa
test ecx, ecx
jne 0x7436f2
jmp 0x74373c
mov edi, eax
mov eax, edi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x7547a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [esp + 8], ecx
mov ebp, dword [esp + 0x28]
mov ecx, dword [ebp + 0x10c]
lea esi, [ebp + 0x114]
mov dword [ebp + 0x114], 0x3020100
inc ecx
cmp ecx, 3
mov edi, 2
cmovae edi, ecx
cmp ecx, 9
mov dword [esp + 4], esi
jae 0x7547e9
mov eax, 1
mov ecx, 0x3020100
jmp 0x754868
mov dword [esp], edi
lea esi, [edi - 1]
mov edi, esi
and edi, 0xfffffff8
imul ecx, edi, 0x4040404
add ecx, 0x3020100
lea eax, [edi + 1]
movdqa xmm0, xmmword [0xa33ef0]
xor ebx, ebx
movdqa xmm1, xmmword [0xa33f00]
movdqa xmm2, xmmword [0xa33f10]
movdqa xmm3, xmmword [str._________________NO_ERROR]
nop word cs:[eax + eax]
movdqa xmm4, xmm0
paddd xmm4, xmm1
movdqa xmm5, xmm0
paddd xmm5, xmm2
movdqu xmmword [ebp + ebx*4 + 0x118], xmm4
movdqu xmmword [ebp + ebx*4 + 0x128], xmm5
add ebx, 8
paddd xmm0, xmm3
cmp edi, ebx
jne 0x754830
cmp esi, edi
mov esi, dword [esp + 4]
mov edi, dword [esp]
je 0x75487e
add ecx, 0x4040404
nop
mov dword [esi + eax*4], ecx
inc eax
add ecx, 0x4040404
cmp edi, eax
jne 0x754870
test edx, edx
je 0x754897
lea ecx, [ebp + 0x113]
cmp edx, 1
mov dword [esp + 0xc], edx
jne 0x75489e
xor esi, esi
xor ebx, ebx
jmp 0x75490b
xor ebx, ebx
jmp 0x754940
and edx, 0xfffffffe
mov dword [esp + 0x10], edx
xor esi, esi
xor ebx, ebx
mov dword [esp], ecx
nop dword [eax]
mov edi, dword [esp + 8]
movzx ebp, byte [edi + esi]
mov edx, dword [esp + 4]
movzx eax, byte [edx + ebp]
mov byte [edi + esi], al
mov byte [ecx], al
lea eax, [ebp + 1]
push eax
push ecx
push edx
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
add esp, 0xc
or ebx, ebp
movzx ebp, byte [edi + esi + 1]
mov edx, dword [esp + 4]
movzx eax, byte [edx + ebp]
mov byte [edi + esi + 1], al
mov ecx, dword [esp]
mov byte [ecx], al
lea eax, [ebp + 1]
push eax
push dword [esp + 4]
push edx
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
mov ecx, dword [esp + 0xc]
add esp, 0xc
or ebx, ebp
add esi, 2
cmp dword [esp + 0x10], esi
jne 0x7548b0
test byte [esp + 0xc], 1
je 0x754939
mov edx, dword [esp + 8]
movzx ebp, byte [edx + esi]
mov edi, ecx
mov ecx, dword [esp + 4]
movzx eax, byte [ecx + ebp]
mov byte [edx + esi], al
mov byte [edi], al
lea eax, [ebp + 1]
push eax
push edi
push ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
add esp, 0xc
or ebx, ebp
shr ebx, 2
mov ebp, dword [esp + 0x28]
mov dword [ebp + 0x10c], ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x785b50
Capabilities:
Get common file path

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x25c
mov eax, dword [0xa9860c]
mov dword [esp + 0x24], str.getaddrinfo
movzx ebx, word [esp + 0x270]
mov dword [esp + 0x28], 0x785d60
mov dword [esp + 0x2c], str.getnameinfo
mov dword [esp + 0x30], 0x786110
mov dword [esp + 0x34], str.freeaddrinfo
mov dword [esp + 0x38], fcn.00785d10
test eax, eax
je 0x785bb0
mov eax, dword [ebx*8 + 0x8682fc]
add esp, 0x25c
pop ebx
pop esi
pop edi
pop ebp
ret 4
lea esi, [esp + 0x3f]
mov dword [esp + 4], 0x104
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
sub esp, 8
test eax, eax
jne 0x785be0
mov dword [0xa9860c], 1
jmp 0x785b9b
lea edi, [esp + 0x144]
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov dword [esp], edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add eax, edi
mov dword [eax], 0x3273775c
mov dword [eax + 4], 0x32335f
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp], edi
mov dword [esp + 0x1c], eax
call eax
sub esp, 4
mov ebp, eax
test eax, eax
je 0x785c9c
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 4], str.getaddrinfo
mov dword [esp + 0x18], eax
call eax
sub esp, 8
test eax, eax
je 0x785c90
lea esi, [esp + 0x24]
lea edi, [esp + 0x3c]
mov eax, dword [esi]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
call eax
mov dword [esi + 4], eax
sub esp, 8
test eax, eax
je 0x785cf6
add esi, 8
cmp esi, edi
jne 0x785c46
mov eax, dword [esp + 0x28]
mov dword [0x8682fc], eax
mov eax, dword [esp + 0x30]
mov dword [0x868304], eax
mov eax, dword [esp + 0x38]
mov dword [fcn.00785d10], eax
jmp 0x785bcc
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
sub esp, 4
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov dword [esp], edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add eax, edi
mov dword [eax], 0x6873775c
mov dword [eax + 4], 0x367069
mov eax, dword [esp + 0x1c]
mov dword [esp], edi
call eax
sub esp, 4
mov ebp, eax
test eax, eax
je 0x785bcc
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 4], str.getaddrinfo
mov dword [esp + 0x18], eax
call eax
sub esp, 8
test eax, eax
jne 0x785c3e
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
sub esp, 4
jmp 0x785bcc
Function at 0x787220
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0xa9864c]
test esi, esi
jle 0x787340
mov eax, dword [0xa98650]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x787254
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x7872d7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x787240
mov dword [esp], ebx
call fcn.00787c10
mov edi, eax
test eax, eax
je 0x787367
mov eax, dword [0xa98650]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00787d50
mov edx, dword [0xa98650]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x787347
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x7872d0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x7872e0
add dword [0xa9864c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0xa98650]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x7872d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.007871c0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x78725e
mov eax, dword [0xa98650]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.007871c0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.007871c0
lea esi, [esi]
nop

Function at 0x787880
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0xa98668
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0xa98660]
sub esp, 4
test ebx, ebx
je 0x7878d5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x7878ce
test esi, esi
je 0x7878ce
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x7878b0
mov dword [esp], 0xa98668
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4012d1
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
cmp dword [ebp + 8], 0
jne 0x4012e4
xor eax, eax
jmp 0x4013de
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401329
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0xc], esp
lea eax, [ebp - 0x10]
push eax
push 0x40f118
call fcn.00403450
mov dword [ebp - 0x24], eax
call fcn.00402e21
add esp, 0x14
jmp 0x4013dc
push 0xf01ff
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40136f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x14], esp
lea eax, [ebp - 0x18]
push eax
push 0x40f140
call fcn.00403450
mov dword [ebp - 0x28], eax
call fcn.00402e21
add esp, 0x14
jmp 0x4013d2
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x4013a0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x4013de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0x20]
push eax
push str.StartService_failed__error_code___d
call fcn.00403450
mov dword [ebp - 0x2c], eax
call fcn.00402e21
add esp, 0x14
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401680
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4016cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0xc], esp
lea eax, [ebp - 0x10]
push eax
push 0x40f2bc
call fcn.00403450
mov dword [ebp - 0x2c], eax
call fcn.00402e21
add esp, 0x14
jmp 0x40177f
push 0xf01ff
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401711
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x14], esp
lea eax, [ebp - 0x18]
push eax
push str.OpenService_failed__error_code___d
call fcn.00403450
mov dword [ebp - 0x30], eax
call fcn.00402e21
add esp, 0x14
jmp 0x401775
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x401746
mov edx, dword [ebp + 8]
push edx
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0x20]
push eax
push str.Failed_to_delete_service__s
call fcn.00403450
mov dword [ebp - 0x34], eax
call fcn.00402e21
add esp, 0x14
jmp 0x40176b
mov ecx, dword [ebp + 8]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x24], esp
lea edx, [ebp - 0x28]
push edx
push str.Service__s_removed
call fcn.00403450
mov dword [ebp - 0x38], eax
call fcn.00402e21
add esp, 0x14
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esp, ebp
pop ebp
ret