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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100ac040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100725c0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008d728
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x100725fc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x100725fc
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008d728
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x100726d3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10072624
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10072630
movsx eax, bl
jmp 0x10072668
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x10072692
sub eax, 1
je 0x10072692
sub eax, 2
jne 0x100726d3
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008d728
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100726b0
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100726d3
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008d728
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008d728
mov esp, ebp
pop ebp
ret 4
Function at 0x10073d90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100ac040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10073e4c
cmp byte [esi + 0x3d], 0
je 0x10073e4c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10073e3a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x10073e01
sub eax, 1
je 0x10073e05
sub eax, 2
jne 0x10073e3a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008d728
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10073e23
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10073e3a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008d728
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008d728
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1008d728
mov esp, ebp
pop ebp
ret
Function at 0x100888f0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100ac040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], edx
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x100889ea
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x100889e3
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x100889c9
call ebx
cmp dword [ebp - 0x14], eax
jne 0x100889c9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x100889c9
mov edx, dword [esi]
test edx, edx
jne 0x10088992
push 0x200
push edx
push dword [0x10414604]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x100889e3
jmp 0x100889bd
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x100889bd
shl eax, 3
push eax
push edx
push 0
push dword [0x10414604]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x100889e3
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10088951
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x10088a2f
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x10088a2f
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10088a29
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.10088780
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x100889f6
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008d728
mov esp, ebp
pop ebp
ret

Function at 0x10088a40
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
je 0x10088a8c
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x10088a7b
push edi
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10088a74
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 8]
jb 0x10088a51
pop edi
push dword [ebx]
push 0
push dword [0x10414604]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
ret
Function at 0x10088a90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100ac040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x10422000]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10088af1
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008d728
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10088b12
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x10088b33
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10088b33
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x10088b2d
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x10088b33
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
xor eax, eax
add cl, cl
shl bl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0x14], bl
xor ecx, ebp
pop esi
pop ebx
call fcn.1008d728
mov esp, ebp
pop ebp
ret
Function at 0x10088b90
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [0x10422008]
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 4], edi
mov ebx, ecx
test edx, edx
je 0x10088c81
mov eax, dword [0x10422000]
add eax, 0x14
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, ebx
jne 0x10088bd5
inc esi
add eax, 0x2c
cmp esi, edx
jb 0x10088bb8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x10088c81
xor eax, eax
lea ecx, [ebp - 0x10]
test ebx, ebx
setne al
or edx, 0xffffffff
push eax
call fcn.100888f0
mov ecx, dword [0x10422008]
add esp, 4
cmp esi, ecx
jae 0x10088c35
imul edi, esi, 0x2c
mov eax, dword [0x10422000]
movzx eax, byte [edi + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x10088c2a
mov edx, ebx
mov ecx, esi
call fcn.10088a90
mov dword [ebp - 4], eax
test eax, eax
jne 0x10088c32
mov ecx, dword [0x10422008]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x10088c01
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10088c81
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x10088c72
mov edi, eax
push dword [edi + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10088c66
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x10088c45
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x10414604]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1008ac20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
jbe 0x1008aca9
mov eax, dword [eax + edi + 0x78]
xor ebx, ebx
add eax, edi
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x20]
add edx, edi
mov esi, dword [eax + 0x18]
add ecx, edi
mov dword [ebp - 0x14], edx
mov edx, dword [eax + 0x24]
add edx, edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
test esi, esi
je 0x1008aca9
nop dword [eax]
mov eax, esi
sub eax, ebx
shr eax, 1
add eax, ebx
mov dword [ebp - 4], eax
mov edx, dword [ecx + eax*4]
add edx, edi
mov eax, edx
lea ecx, [eax + 1]
mov dword [ebp - 8], ecx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1008ac78
sub eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
push eax
push edx
mov edx, dword [ebp + 0xc]
call fcn.1007dc00
add esp, 8
test eax, eax
je 0x1008acb2
mov ecx, dword [ebp - 4]
cmovle esi, dword [ebp - 4]
cmovle ecx, ebx
mov ebx, ecx
mov ecx, dword [ebp - 0xc]
cmp esi, ebx
jne 0x1008ac60
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
movzx eax, word [eax + edx*2]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1008ce57
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x1008ce7e
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x1008ce81
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1008ce33
pop esi
leave
ret 8
Function at 0x423cb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19000]
push edi
jmp 0x423cca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x423cd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x423cc0
mov eax, 1
add ebx, ebx
jne 0x423ce3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x423cd8
jne 0x423cf4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x423cd8
xor ecx, ecx
sub eax, 3
jb 0x423d08
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x423d7a
mov ebp, eax
add ebx, ebx
jne 0x423d13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x423d20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x423d44
inc ecx
add ebx, ebx
jne 0x423d30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x423d25
jne 0x423d41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x423d25
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x423d64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x423d55
jmp 0x423cc6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x423d64
add edi, ecx
jmp 0x423cc6
pop esi
mov edi, esi
mov ecx, 0x225
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x423d82
cmp byte [edi], 5
jne 0x423d82
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 0x423d87
lea edi, [esi + 0x21000]
mov eax, dword [edi]
or eax, eax
je 0x423dff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x23fec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x24028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x423db4
mov ecx, edi
jns 0x423de3
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 + 0x24030]
or eax, eax
je 0x423df9
mov dword [ebx], eax
add ebx, 4
jmp 0x423dd1
call dword [esi + 0x2402c]
mov ebp, dword [esi + 0x24034]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
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 0x423e33
sub esp, 0xffffff80
jmp 0x402bf0
Function at 0x401250
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401267
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401298
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401294
cmp esi, eax
jae 0x401298
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x401284
cmp esi, eax
jb 0x40129e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x402180
Capabilities:
Access peb ldr_data
Download url
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x40c9e9
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x41304c]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [0x41304c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
push str.https:__microsoft.com
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
xor eax, eax
mov dword [esp + 0x40], 0
cmp dword [esp + 0x24], 0x10
mov word [esp + 0x28], ax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov eax, dword [esp + 0x10]
jae 0x4021e3
lea eax, [esp + 0x10]
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push eax
push 0
call sub.urlmon.dll_URLOpenBlockingStreamA
test eax, eax
jne 0x40221c
mov eax, dword [esp + 4]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [esp + 8]
push ecx
push 4
lea ecx, [esp + 0x30]
push ecx
push eax
call edx
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
mov dword [esp + 0x40], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0040bc76
add esp, 0x40
ret
Function at 0x406cc0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x1c0
mov eax, dword [0x41304c]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x30]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor eax, eax
cmp dword [0x416290], 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], eax
mov eax, dword [0x41627c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 6
jae 0x406d35
mov eax, 0x41627c
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x406d8b
mov esi, dword [esp + 0xc]
test esi, esi
je 0x406d84
mov edi, dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ebx, dword [sym.imp.MSVCR90.dll_strcpy_s]
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 4]
push eax
call edi
push eax
push 0x104
push 0x415a38
call ebx
mov esi, dword [esi + 0x1c]
add esp, 0xc
test esi, esi
jne 0x406d60
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [esp + 0x1c4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040bc76
add esp, 0x1c0
ret

Function at 0x406db0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x1c0
mov eax, dword [0x41304c]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x30]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor eax, eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push str.microsoft.com
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 6
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x406e6b
mov esi, dword [esp + 0xc]
test esi, esi
je 0x406e64
mov edi, dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ebx, dword [sym.imp.MSVCR90.dll_strcpy_s]
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 4]
push eax
call edi
push eax
push 0x104
push 0x415c48
call ebx
mov esi, dword [esi + 0x1c]
add esp, 0xc
test esi, esi
jne 0x406e40
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [esp + 0x1c4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040bc76
add esp, 0x1c0
ret
Function at 0x406e90
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push 0xffffffffffffffff
push 0x40c9a9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x41304c]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x41304c]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
push 0xb930
call dword [sym.imp.WS2_32.dll_htons]
mov word [0x415512], ax
mov eax, 2
push 0x415a38
lea ecx, [esp + 8]
mov word [0x415510], ax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
cmp dword [esp + 0x1c], 0x10
mov eax, dword [esp + 8]
jae 0x406ef8
lea eax, [esp + 8]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 6
push 1
push 2
mov dword [0x415514], eax
call dword [sym.imp.WS2_32.dll_socket]
push 0x10
push 0x415510
push eax
mov dword [0x415520], eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x406f4e
mov ecx, dword [0x415520]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
lea ecx, [esp + 4]
mov dword [0x415520], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor al, al
jmp 0x406f69
lea ecx, [esp + 4]
mov byte [0x415624], 1
mov dword [esp + 0x2c], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0040bc76
add esp, 0x2c
ret
Function at 0x407e80
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x5c
push esi
push 0x44
lea eax, [esp + 0x1c]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
xor eax, eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x84]
push eax
push 0
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
pop esi
add esp, 0x5c
ret

Function at 0x408160
Capabilities:
Terminate process

Disassembly:
sub esp, 0x444
mov eax, dword [0x41304c]
xor eax, esp
mov dword [esp + 0x43c], eax
push 0x434
lea eax, [esp + 8]
push 0
push eax
mov dword [esp + 0xc], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
call fcn.00407e20
lea edx, [esp]
jmp 0x4081a0
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x4081a0
lea ecx, [esp]
push ecx
call fcn.00407e80
add esp, 4
push 0
call dword [sym.imp.MSVCR90.dll_exit]
int3

Function at 0x4081d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
test edi, edi
jle 0x408202
mov ebx, dword [sym.imp.WS2_32.dll_recv]
mov edx, dword [0x415520]
push 0
mov eax, edi
sub eax, esi
push eax
lea ecx, [esi + ebp]
push ecx
push edx
call ebx
cmp eax, 0xffffffff
je 0x408208
add esi, eax
cmp esi, edi
jl 0x4081e3
pop esi
pop ebp
mov al, 1
pop ebx
ret
pop esi
pop ebp
xor al, al
pop ebx
ret

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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
test edi, edi
jle 0x408242
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov edx, dword [0x415520]
push 0
mov eax, edi
sub eax, esi
push eax
lea ecx, [esi + ebp]
push ecx
push edx
call ebx
cmp eax, 0xffffffff
je 0x408248
add esi, eax
cmp esi, edi
jl 0x408223
pop esi
pop ebp
mov al, 1
pop ebx
ret
pop esi
pop ebp
xor al, al
pop ebx
ret

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

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov edi, dword [sym.imp.WS2_32.dll_send]
mov dword [esp + 0xc], eax
xor esi, esi
lea esp, [esp]
mov eax, dword [0x415520]
push 0
mov ecx, 4
sub ecx, esi
push ecx
lea edx, [esp + esi + 0x14]
push edx
push eax
call edi
cmp eax, 0xffffffff
je 0x408298
add esi, eax
cmp esi, 4
jl 0x408270
pop edi
mov al, 1
pop esi
ret
pop edi
xor al, al
pop esi
ret