joyce8/EMBER2024-capa huggingface dataset:
Function at 0x715800
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [esp + 0x44]
mov edi, dword [eax]
test edi, edi
js 0x715935
mov edx, dword [esp + 0x40]
movzx eax, byte [edx]
movzx ebp, byte [edx + 1]
movzx ecx, byte [edx + 2]
movzx esi, byte [edx + 3]
mov dword [esp + 0x18], esi
movzx esi, byte [edx + 4]
mov dword [esp + 0x14], esi
movzx ebx, byte [edx + 5]
movzx esi, byte [edx + 6]
mov dword [esp + 0x10], esi
movzx edx, byte [edx + 7]
mov byte [esp], al
mov esi, eax
mov eax, ebp
mov byte [esp + 1], al
shl esi, 0x18
shl ebp, 0x10
or ebp, esi
mov byte [esp + 2], cl
shl ecx, 8
or ecx, ebp
mov eax, dword [esp + 0x18]
or ecx, eax
mov byte [esp + 3], al
mov eax, dword [esp + 0x14]
mov byte [esp + 4], al
mov esi, eax
mov byte [esp + 5], bl
shl esi, 0x18
shl ebx, 0x10
or ebx, esi
mov eax, dword [esp + 0x10]
mov byte [esp + 6], al
shl eax, 8
or eax, ebx
or eax, edx
mov byte [esp + 7], dl
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
cmp dword [esp + 0x38], 0
je 0x71592f
xor ebp, ebp
xor ebx, ebx
jmp 0x7158cd
movzx edx, byte [esp + edi]
mov esi, dword [esp + 0x30]
xor dl, byte [esi + ebp]
mov esi, dword [esp + 0x34]
mov byte [esi + ebp], dl
inc edi
and edi, 7
inc ebp
cmp dword [esp + 0x38], ebp
je 0x7158fc
test edi, edi
jne 0x7158b0
push dword [esp + 0x3c]
lea eax, [esp + 0xc]
push eax
call fcn.00714f10
add esp, 8
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov edx, ecx
bswap edx
mov dword [esp], edx
mov edx, eax
bswap edx
mov dword [esp + 4], edx
inc ebx
jmp 0x7158b0
test ebx, ebx
je 0x71592f
mov edx, ecx
shr edx, 0x18
mov esi, dword [esp + 0x40]
mov byte [esi], dl
mov edx, ecx
shr edx, 0x10
mov byte [esi + 1], dl
mov byte [esi + 2], ch
mov byte [esi + 3], cl
mov ecx, eax
shr ecx, 0x18
mov byte [esi + 4], cl
mov ecx, eax
shr ecx, 0x10
mov byte [esi + 5], cl
mov byte [esi + 6], ah
mov byte [esi + 7], al
mov eax, dword [esp + 0x44]
jmp 0x71593a
mov edi, 0xffffffff
mov dword [eax], edi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x71b800
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xa0
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x71b94b
mov edi, ecx
lea eax, [ecx + 0xc]
mov dword [esp + 0x18], eax
lea eax, [ecx + 0x14]
mov dword [esp + 0x10], eax
movzx ecx, byte [ecx + 0xc]
movzx eax, byte [edi + 0x14]
xor ebp, ebp
mov dword [esp + 0x14], edx
nop word [eax + eax]
mov esi, dword [edx + ebp]
mov dword [esp + 0x1c], esi
mov dword [esp], esi
mov dword [esp + 8], esi
mov ebx, dword [edx + ebp + 4]
mov dword [esp + 4], ebx
mov dword [esp + 0xc], ebx
and cl, 0x9f
or cl, 0x40
mov byte [edi + 0xc], cl
and al, 0x9f
or al, 0x20
mov byte [edi + 0x14], al
mov esi, dword [esp + 0x18]
push esi
call fcn.005946f0
add esp, 4
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00594b60
add esp, 8
push 1
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.006baac0
add esp, 0xc
mov esi, dword [esp + 0x10]
push esi
call fcn.005946f0
add esp, 4
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00594b60
add esp, 8
push 1
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 8]
push eax
call fcn.006baac0
add esp, 0xc
mov eax, dword [esp]
mov edx, dword [esp + 0x1c]
xor eax, edx
mov ecx, dword [esp + 4]
xor edx, dword [esp + 8]
xor ecx, ebx
xor ebx, dword [esp + 0xc]
mov byte [edi + 0xc], dl
mov byte [edi + 0xd], dh
mov esi, edx
shr edx, 0x10
mov byte [edi + 0xe], dl
mov edx, esi
shr edx, 0x18
mov byte [edi + 0xf], dl
mov byte [edi + 0x10], cl
mov byte [edi + 0x11], ch
mov edx, ecx
shr edx, 0x10
mov byte [edi + 0x12], dl
mov edx, dword [esp + 0x14]
shr ecx, 0x18
mov byte [edi + 0x13], cl
mov byte [edi + 0x14], al
mov byte [edi + 0x15], ah
mov ecx, eax
shr ecx, 0x10
mov byte [edi + 0x16], cl
mov ecx, eax
shr ecx, 0x18
mov byte [edi + 0x17], cl
mov byte [edi + 0x18], bl
mov byte [edi + 0x19], bh
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 0x1a], cl
shr ebx, 0x18
mov byte [edi + 0x1b], bl
mov ebx, dword [esp + 0xb4]
mov ecx, esi
add ebp, 8
cmp ebp, ebx
jb 0x71b840
add esp, 0xa0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x721dc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov edi, dword [eax]
movzx esi, byte [edx]
movzx eax, byte [edx + 1]
movzx ecx, byte [edx + 2]
mov dword [esp + 0x1c], ecx
movzx ebx, byte [edx + 3]
movzx ecx, byte [edx + 4]
mov dword [esp + 0x14], ecx
movzx ebp, byte [edx + 5]
movzx ecx, byte [edx + 6]
mov dword [esp + 0x18], ecx
movzx ecx, byte [edx + 7]
mov dword [esp + 0x10], ecx
mov ecx, esi
mov byte [esp], cl
mov byte [esp + 1], al
mov esi, eax
shl esi, 8
or esi, ecx
mov edx, dword [esp + 0x1c]
mov byte [esp + 2], dl
mov byte [esp + 3], bl
mov ecx, dword [esp + 0x14]
mov byte [esp + 4], cl
mov eax, ebp
mov byte [esp + 5], al
shl eax, 8
or eax, ecx
shl edx, 0x10
or edx, esi
mov ecx, ebx
shl ecx, 0x18
or ecx, edx
mov ebx, dword [esp + 0x18]
mov byte [esp + 6], bl
shl ebx, 0x10
or ebx, eax
mov eax, dword [esp + 0x10]
mov byte [esp + 7], al
shl eax, 0x18
or eax, ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
cmp dword [esp + 0x3c], 0
je 0x721ee3
xor ebp, ebp
xor ebx, ebx
jmp 0x721e8d
movzx edx, byte [esp + edi]
mov esi, dword [esp + 0x34]
xor dl, byte [esi + ebp]
mov esi, dword [esp + 0x38]
mov byte [esi + ebp], dl
inc edi
and edi, 7
inc ebp
cmp dword [esp + 0x3c], ebp
je 0x721eb4
test edi, edi
jne 0x721e70
push dword [esp + 0x40]
lea eax, [esp + 0xc]
push eax
call fcn.007213b0
add esp, 8
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], eax
inc ebx
jmp 0x721e70
test ebx, ebx
je 0x721ee3
mov esi, dword [esp + 0x44]
mov byte [esi], cl
mov byte [esi + 1], ch
mov edx, ecx
shr edx, 0x10
mov byte [esi + 2], dl
shr ecx, 0x18
mov byte [esi + 3], cl
mov byte [esi + 4], al
mov byte [esi + 5], ah
mov ecx, eax
shr ecx, 0x10
mov byte [esi + 6], cl
shr eax, 0x18
mov byte [esi + 7], al
mov eax, dword [esp + 0x48]
mov dword [eax], edi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x737fb0
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 + 0xa6b1d0]
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 + 0xa6b240]
shl eax, 0x18
shr ebx, 0x10
movzx ebx, bl
movzx ebp, byte [ebx + 0xa6b240]
shl ebp, 0x10
or ebp, eax
movzx eax, dh
movzx edx, dl
movzx eax, byte [eax + 0xa6b240]
shl eax, 8
or eax, ebp
movzx edx, byte [edx + 0xa6b240]
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 + 0xa6b1d4]
xor eax, edi
xor eax, esi
xor eax, ecx
mov edx, eax
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + 0xa6b240]
shl ebx, 0x18
shr edx, 0x10
movzx edx, dl
movzx ebp, byte [edx + 0xa6b240]
shl ebp, 0x10
or ebp, ebx
movzx edx, ah
movzx eax, al
movzx edx, byte [edx + 0xa6b240]
shl edx, 8
or edx, ebp
movzx eax, byte [eax + 0xa6b240]
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 + 0xa6b1d8]
xor eax, edi
xor eax, ecx
xor eax, dword [esp + 4]
mov edx, eax
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + 0xa6b240]
shl ebx, 0x18
shr edx, 0x10
movzx edx, dl
movzx ebp, byte [edx + 0xa6b240]
shl ebp, 0x10
or ebp, ebx
movzx edx, ah
movzx eax, al
movzx edx, byte [edx + 0xa6b240]
shl edx, 8
or edx, ebp
movzx eax, byte [eax + 0xa6b240]
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 + 0xa6b1dc]
xor eax, ecx
xor eax, dword [esp + 4]
xor eax, esi
mov edx, eax
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + 0xa6b240]
shl ebx, 0x18
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + 0xa6b240]
shl edx, 0x10
or edx, ebx
movzx ebx, ah
movzx ebx, byte [ebx + 0xa6b240]
shl ebx, 8
or ebx, edx
movzx eax, al
movzx eax, byte [eax + 0xa6b240]
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 0x737ff0
mov eax, 1
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x73bde0
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 0x73be00
nop
movzx eax, byte [ecx + esi]
cmp al, byte [edx + esi]
jne 0x73be00
inc esi
cmp ebx, esi
jne 0x73bdf0
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 0x73be2d
cmp byte [ecx + edi], 0
jne 0x73be3d
cmp byte [edx + edi], 0xff
lea edi, [edi - 1]
lea ebx, [eax - 1]
je 0x73be10
jmp 0x73be32
mov eax, ebp
mov ebx, dword [esp]
mov ebp, 0xffffffff
cmp esi, ebx
jge 0x73be4a
jmp case.0x73be6a.2
mov eax, ebx
mov ebx, edi
mov ebp, 0xffffffff
cmp esi, ebx
jl case.0x73be6a.2
cmp esi, eax
jge 0x73be78
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.0x73be6a
mov edi, 7
jmp dword [ebx*4 + 0xa6cd88]
mov edi, 6
jmp case.0x73be6a.1
shl esi, 3
mov ebp, esi
jmp case.0x73be6a.2
cmp eax, 0x3f
je 0x73bea5
cmp eax, 0x7f
jne case.0x73be6a.2
mov edi, 1
jmp case.0x73be6a.1
mov edi, 5
jmp case.0x73be6a.1
mov edi, 4
jmp case.0x73be6a.1
mov edi, 3
jmp case.0x73be6a.1
mov edi, 2
not dl
or cl, dl
test ch, cl
jne case.0x73be6a.2
lea ebp, [edi + esi*8]
mov eax, ebp
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x7456a0
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 0x7456bd
mov ecx, esi
mov edx, ebx
call fcn.007460f0
test eax, eax
jle 0x74573a
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
cmp dword [ebx + 0x28], 0
je 0x7456fe
push 0xf
push esi
call fcn.0057d690
add esp, 8
push ebp
push edi
push dword [ebx + 0x28]
call fcn.0057d960
add esp, 0xc
mov edi, eax
push 0xf
push dword [ebx + 0x28]
call fcn.0057d6a0
add esp, 8
push eax
push esi
call fcn.0057d6b0
add esp, 8
jmp 0x74573c
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.0057d690
add esp, 8
test edi, edi
jg 0x74573c
push edi
call fcn.00585550
add esp, 4
mov ecx, eax
mov eax, 0xa
test ecx, ecx
jne 0x7456f2
jmp 0x74573c
mov edi, eax
mov eax, edi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x746600
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
cmp ecx, dword [ebx + 4]
mov edi, eax
cmovl edi, ebx
cmovl ebx, eax
push dword [edi + 4]
push esi
call fcn.00589cf0
add esp, 8
test eax, eax
je 0x74665d
cmp dword [ebx + 4], 0
jle 0x746661
mov ecx, dword [edi]
mov edx, dword [ebx]
mov ebp, dword [esi]
xor eax, eax
nop dword [eax]
mov esi, dword [edx + eax*4]
xor esi, dword [ecx + eax*4]
mov dword [ebp + eax*4], esi
inc eax
cmp eax, dword [ebx + 4]
jl 0x746640
mov ebx, dword [edi + 4]
cmp eax, ebx
mov ebp, dword [esp + 0x14]
jl 0x74666e
jmp 0x74668e
xor eax, eax
jmp 0x74669f
xor eax, eax
mov ebx, dword [edi + 4]
cmp eax, ebx
mov ebp, dword [esp + 0x14]
jge 0x74668e
mov ecx, dword [edi]
mov edx, dword [ebp]
nop word cs:[eax + eax]
mov esi, dword [ecx + eax*4]
mov dword [edx + eax*4], esi
inc eax
mov ebx, dword [edi + 4]
cmp eax, ebx
jl 0x746680
mov dword [ebp + 4], ebx
push ebp
call fcn.0058a7e0
add esp, 4
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x7567a0
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 0x7567e9
mov eax, 1
mov ecx, 0x3020100
jmp 0x756868
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 [0xa76550]
xor ebx, ebx
movdqa xmm1, xmmword [0xa76560]
movdqa xmm2, xmmword [0xa76570]
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 0x756830
cmp esi, edi
mov esi, dword [esp + 4]
mov edi, dword [esp]
je 0x75687e
add ecx, 0x4040404
nop
mov dword [esi + eax*4], ecx
inc eax
add ecx, 0x4040404
cmp edi, eax
jne 0x756870
test edx, edx
je 0x756897
lea ecx, [ebp + 0x113]
cmp edx, 1
mov dword [esp + 0xc], edx
jne 0x75689e
xor esi, esi
xor ebx, ebx
jmp 0x75690b
xor ebx, ebx
jmp 0x756940
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 0x7568b0
test byte [esp + 0xc], 1
je 0x756939
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 0x787b50
Capabilities:
Get common file path

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x25c
mov eax, dword [0xae660c]
mov dword [esp + 0x24], str.getaddrinfo
movzx ebx, word [esp + 0x270]
mov dword [esp + 0x28], 0x787d60
mov dword [esp + 0x2c], str.getnameinfo
mov dword [esp + 0x30], 0x788110
mov dword [esp + 0x34], str.freeaddrinfo
mov dword [esp + 0x38], fcn.00787d10
test eax, eax
je 0x787bb0
mov eax, dword [ebx*8 + 0x8c449c]
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 0x787be0
mov dword [0xae660c], 1
jmp 0x787b9b
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 0x787c9c
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 0x787c90
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 0x787cf6
add esi, 8
cmp esi, edi
jne 0x787c46
mov eax, dword [esp + 0x28]
mov dword [0x8c449c], eax
mov eax, dword [esp + 0x30]
mov dword [0x8c44a4], eax
mov eax, dword [esp + 0x38]
mov dword [fcn.00787d10], eax
jmp 0x787bcc
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 0x787bcc
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 0x787c3e
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
sub esp, 4
jmp 0x787bcc
Function at 0x788690
Capabilities:
Resolve dns

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
mov dword [ebx], 0
mov byte [eax], 0
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
sub esp, 4
test eax, eax
je 0x788768
cmp dword [eax + 8], 0x40002
mov ecx, eax
jne 0x788734
mov edi, dword [eax + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x788734
mov dword [esp + 0x1c], ecx
movzx esi, si
jmp 0x7886f4
add edi, 4
lea ebx, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
je 0x788730
mov eax, dword [eax]
mov dword [esp + 8], esi
mov dword [esp + 4], ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.00788430
mov dword [ebx], eax
sub esp, 0x10
test eax, eax
jne 0x7886e8
add esp, 0x2c
mov eax, 8
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
mov ecx, dword [esp + 0x1c]
mov dword [esp + 8], 0x400
mov eax, dword [ecx]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strncpy
mov eax, dword [esp + 0x50]
mov byte [eax + 0x400], 0
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [eax - 0x2afa]
cmp edx, 3
mov edx, 0x2af9
cmovae eax, edx
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret 0x18

Function at 0x789220
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
lea esi, [esi]
Function at 0x789280
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0xae6660]
test esi, esi
jle 0x7893a0
mov eax, dword [0xae6664]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x7892b4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x789337
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x7892a0
mov dword [esp], ebx
call fcn.00789c70
mov edi, eax
test eax, eax
je 0x7893c7
mov eax, dword [0xae6664]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00789db0
mov edx, dword [0xae6664]
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 0x7893a7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x789330
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x789340
add dword [0xae6660], 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 [0xae6664]
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 0x789330
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00789220
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x7892be
mov eax, dword [0xae6664]
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.00789220
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00789220
lea esi, [esi]
nop

Function at 0x7898e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0xae667c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0xae6674]
sub esp, 4
test ebx, ebx
je 0x789935
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 0x78992e
test esi, esi
je 0x78992e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x789910
mov dword [esp], 0xae667c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret