joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a1f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x44a3c9
cmp dword [esi + 0x20], 0
je 0x44a3c9
cmp dword [esi + 0x24], 0
je 0x44a3c9
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x44a3c9
cmp dword [eax], esi
jne 0x44a3c9
mov eax, dword [eax + 4]
cmp eax, 0x2a
je 0x44a253
cmp eax, 0x39
je 0x44a253
cmp eax, 0x45
je 0x44a253
cmp eax, 0x49
je 0x44a253
cmp eax, 0x5b
je 0x44a253
cmp eax, 0x67
je 0x44a253
cmp eax, 0x71
je 0x44a253
cmp eax, 0x29a
jne 0x44a3c9
push edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x44a28c
neg ecx
mov dword [edi + 0x18], ecx
cmp ecx, 2
mov eax, 0x2a
mov edx, 0x39
cmove eax, edx
mov dword [edi + 4], eax
push 0
jne 0x44a2ae
xor edx, edx
xor ecx, ecx
call fcn.00449b30
jmp 0x44a2b7
xor edx, edx
xor ecx, ecx
call fcn.004498c0
mov dword [esi + 0x30], eax
add esp, 4
lea eax, [edi + 0x94]
mov dword [edi + 0x28], 0xfffffffe
mov dword [edi + 0xb18], eax
mov ecx, edi
lea eax, [edi + 0x988]
mov dword [edi + 0xb20], 0x465aac
mov dword [edi + 0xb24], eax
lea eax, [edi + 0xa7c]
mov dword [edi + 0xb30], eax
xor eax, eax
mov dword [edi + 0xb2c], 0x465fd0
mov dword [edi + 0xb38], 0x465ac0
mov word [edi + 0x16b8], ax
mov dword [edi + 0x16bc], eax
call fcn.004503b0
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esi + 0x84]
add esp, 0xc
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x4642e2]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x4642e0]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x4642e4]
mov dword [esi + 0x90], eax
movzx eax, word [ecx*4 + 0x4642e6]
mov dword [esi + 0x7c], eax
xor eax, eax
pop edi
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret
Function at 0x44ccb0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edx
mov dword [ebx], 0
xor esi, esi
mov ecx, 0x40000000
mov eax, ebp
sub eax, esi
cmp eax, 0x40000000
cmova eax, ecx
push eax
lea eax, [esi + edx]
push eax
push dword [edi + 0x14]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
add esp, 0xc
test eax, eax
jle 0x44cd06
mov esi, dword [ebx]
mov ecx, 0x40000000
mov edx, dword [esp + 0x10]
add esi, eax
mov dword [ebx], esi
cmp esi, ebp
jb 0x44ccd0
test eax, eax
jns 0x44cdef
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov ecx, dword [edi + 0x68]
add esp, 4
mov esi, eax
test ecx, ecx
je 0x44cd3d
cmp dword [edi + 0x64], 0xfffffffc
je 0x44cd36
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [edi + 0x68], 0
or ebp, 0xffffffff
mov dword [edi], 0
mov dword [edi + 0x64], 0xffffffff
test esi, esi
je 0x44cde7
mov ecx, dword [edi + 0x18]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44cd60
sub ecx, edx
mov edx, esi
lea ebx, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x44cd70
sub edx, ebx
lea eax, [edx + ecx]
add eax, 3
cmovb eax, ebp
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
mov dword [edi + 0x68], ebx
test ebx, ebx
jne 0x44cda4
mov dword [edi + 0x64], 0xfffffffc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edi, dword [edi + 0x18]
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44cdb0
sub ecx, edx
mov edx, esi
lea ebp, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x44cdc0
push esi
push 0x471088
sub edx, ebp
push edi
add edx, 3
push str._s_s_s
add ecx, edx
push ecx
push ebx
call fcn.0044c8f0
add esp, 0x18
or ebp, 0xffffffff
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
test eax, eax
jne 0x44cdfa
mov dword [edi + 0x40], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x45a09c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x45a0db
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45a0db
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45a0db
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x45a0db
cmp dword [ecx + 0x74], 0xe
jbe 0x45a0db
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x410b04
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestSaturate.exe_gMozillaPoisonSize], eax
call fcn.0040ced9
pop ecx
mov ecx, dword [sym.TestSaturate.exe_gMozillaPoisonSize]
mov dword [sym.TestSaturate.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x410b3c
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestSaturate.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x2db3700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.02db378f
jae 0x2db370e
xor ecx, ecx
call fcn.02db378f
jae 0x2db373d
xor eax, eax
call fcn.02db378f
jae 0x2db374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.02db378f
adc al, al
jae 0x2db372f
jne 0x2db3779
stosb byte es:[edi], al
jmp 0x2db3711
call fcn.02db379b
sub ecx, ebx
jne 0x2db3756
call fcn.02db3799
jmp 0x2db3775
lodsb al, byte [esi]
shr eax, 1
je 0x2db3783
adc ecx, ecx
jmp 0x2db3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02db3799
cmp eax, 0x7d00
jae 0x2db3772
cmp ah, 5
jae 0x2db3773
cmp eax, 0x7f
ja 0x2db3774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2db3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x2dd3700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.02dd378f
jae 0x2dd370e
xor ecx, ecx
call fcn.02dd378f
jae 0x2dd373d
xor eax, eax
call fcn.02dd378f
jae 0x2dd374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.02dd378f
adc al, al
jae 0x2dd372f
jne 0x2dd3779
stosb byte es:[edi], al
jmp 0x2dd3711
call fcn.02dd379b
sub ecx, ebx
jne 0x2dd3756
call fcn.02dd3799
jmp 0x2dd3775
lodsb al, byte [esi]
shr eax, 1
je 0x2dd3783
adc ecx, ecx
jmp 0x2dd3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02dd3799
cmp eax, 0x7d00
jae 0x2dd3772
cmp ah, 5
jae 0x2dd3773
cmp eax, 0x7f
ja 0x2dd3774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2dd3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x401760
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push 0xffffffffffffffff
push 0x40facb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 0x10]
call fcn.00402e70
mov dword [esi], 0x4112b0
mov eax, dword [0x416e48]
test eax, eax
mov dword [esp + 0x14], 0
jle 0x4017b9
mov ecx, dword [0x416e44]
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esi + 8], eax
jmp 0x4017c0
mov dword [esi + 8], 0x1bd
mov eax, dword [0x4167a0]
test eax, eax
jbe 0x4017ce
mov dword [esi + 0xc], eax
jmp 0x4017d5
mov dword [esi + 0xc], 0x7d0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
mov ecx, 8
xor eax, eax
lea edi, [esi + 0xdf]
rep stosd dword es:[edi], eax
lea eax, [esi + 0x44]
mov ecx, 8
lea edi, [esi + 0x48]
lea edx, [esi + 0x68]
mov dword [eax], 0
xor eax, eax
rep stosd dword es:[edi], eax
xor ecx, ecx
lea edi, [esi + 0x6f]
mov dword [edx], ecx
mov word [edx + 4], cx
mov byte [edx + 6], cl
mov ecx, 0xa
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esi + 0x99]
xor eax, eax
lea edi, [esi + 0xad]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov ecx, 0xa
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc]
stosw word es:[edi], ax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4027f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40fb81
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push ebp
push 0x41357c
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402839
call fcn.00402760
pop ebp
pop ebx
mov ecx, dword [esp + 0x10c]
mov dword fs:[0], ecx
add esp, 0x118
ret
push 0x413578
push 0x41357c
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
xor ebx, ebx
add esp, 8
cmp ebp, ebx
je 0x402962
test byte [ebp + 0xc], 0x10
jne 0x402958
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebp
lea eax, [esp + 0x20]
push 0x100
push eax
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
push 0x416610
push 0x413574
lea ecx, [esp + 0x18]
mov dword [esp + 0x12c], ebx
call sub.MFC42.DLL_CString::Replace
push 0x413570
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
cmp esi, ebx
jle 0x402938
lea edx, [esi + 1]
lea eax, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid_1
mov edi, eax
lea ecx, [esp + 0x14]
push esi
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 1
call sub.MFC42.DLL_CString::Left
mov esi, eax
push ebx
mov ecx, edi
mov byte [esp + 0x128], 2
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ebx
mov ecx, esi
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.004024f0
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0x124], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x124], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x124], 0xffffffff
call sub.MFC42.DLL_CString::CString
test byte [ebp + 0xc], 0x10
je 0x402864
pop edi
pop esi
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, dword [esp + 0x114]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x402980
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40fba6
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push esi
push 0x41357c
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4029b4
xor eax, eax
jmp 0x402ba4
call fcn.004027f0
mov eax, dword [esp + 0x124]
push 0x413578
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
xor ebx, ebx
add esp, 8
cmp esi, ebx
mov dword [esp + 0x10], esi
jne 0x4029e2
xor eax, eax
jmp 0x402ba4
test byte [esi + 0xc], 0x10
jne 0x402b95
push ebp
mov ebp, dword [esp + 0x12c]
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
lea ecx, [esp + 0x20]
push 0x100
push ecx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::CString_2
push 0x413594
lea ecx, [esp + 0x14]
mov dword [esp + 0x128], ebx
call sub.MFC42.DLL_CString::Find_1
cmp eax, ebx
jle 0x402a7d
push ebx
push ebx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ebp
call fcn.0040eba0
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x124], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x402b89
push 0x413590
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
cmp esi, ebx
jle 0x402b71
push 0x416610
push 0x413574
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
inc esi
lea ecx, [esp + 0x14]
push esi
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid_1
mov byte [esp + 0x124], 1
xor esi, esi
mov eax, dword [0x416604]
cmp eax, ebx
je 0x402b20
mov edx, dword [0x416608]
sub edx, eax
sar edx, 2
cmp esi, edx
jae 0x402b20
mov eax, dword [eax + esi*4]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jl 0x402b1d
push 0x41358c
lea ecx, [esp + 0x18]
call fcn.0040f9d6
mov ecx, dword [0x416604]
mov edx, dword [ecx + esi*4]
lea ecx, [esp + 0x14]
add edx, 0xc
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x413588
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
inc esi
jmp 0x402ac2
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_2
push 0x413574
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push ebx
push ebx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ebp
call fcn.0040eba0
mov ecx, dword [esp + 0x1c]
push ecx
push 0x413584
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x124], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x124], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x18]
test byte [esi + 0xc], 0x10
je 0x4029f5
pop edi
pop ebp
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x114]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret 8
Function at 0x403320
Capabilities:
Reference http user-agent string

Disassembly:
push 0xffffffffffffffff
push 0x40fc40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
mov ebp, ecx
push edi
mov dword [esp + 0xc], ebp
lea ecx, [ebp + 0x3ec]
call fcn.00402e70
xor ebx, ebx
lea ecx, [ebp + 0x418]
mov dword [esp + 0x18], ebx
call fcn.00402e70
lea ecx, [ebp + 0x444]
mov byte [esp + 0x18], 1
call fcn.00402e70
lea ecx, [ebp + 0x470]
mov byte [esp + 0x18], 2
call fcn.00402e70
lea ecx, [ebp + 0x49c]
mov byte [esp + 0x18], 3
call fcn.00402e70
lea ecx, [ebp + 0x4c8]
mov byte [esp + 0x18], 4
call fcn.00402e70
lea ecx, [ebp + 0x4f4]
mov byte [esp + 0x18], 5
call fcn.00402e70
lea ecx, [ebp + 0x520]
mov byte [esp + 0x18], 6
call fcn.00402e70
lea ecx, [ebp + 0x54c]
mov byte [esp + 0x18], 7
call fcn.00402e70
mov ecx, 0x20
xor eax, eax
lea edi, [ebp + 4]
mov dword [ebp], 0x4112c8
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [ebp + 0xa4]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [ebp + 0x1a4]
rep stosd dword es:[edi], eax
mov ecx, 8
lea edi, [ebp + 0x1e4]
rep stosd dword es:[edi], eax
mov ecx, 8
lea edi, [ebp + 0x204]
rep stosd dword es:[edi], eax
lea edx, [ebp + 0x224]
mov ecx, 0x40
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, 8
lea edi, [ebp + 0x84]
rep stosd dword es:[edi], eax
mov ecx, 0x20
lea edi, [ebp + 0x324]
rep stosd dword es:[edi], eax
mov eax, 1
mov dword [ebp + 0x3c4], ebx
mov dword [ebp + 0x3c0], eax
mov dword [ebp + 0x3cc], eax
mov dword [ebp + 0x3e8], ebx
mov dword [ebp + 0x3d0], ebx
mov dword [ebp + 0x3d4], ebx
mov dword [ebp + 0x3d8], ebx
mov dword [ebp + 0x3dc], eax
mov dword [ebp + 0x3e0], ebx
mov dword [ebp + 0x3c8], ebx
mov dword [ebp + 0x3a4], 0x50
mov dword [ebp + 0x3bc], 0xfa0
mov dword [ebp + 0x3a8], eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp + 0x3b8], ebx
mov dword [ebp + 0x3ac], ebx
mov dword [ebp + 0x3b4], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4034d8
mov edi, str.Mozilla_5.0__Windows_NT_6.1__rv:12.0__Gecko_20100101_Firefox_45.0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov ecx, dword [esp + 0x10]
mov dword [ebp + 0x578], ebx
mov dword [ebp + 0x57c], ebx
mov dword [ebp + 0x580], ebx
mov eax, ebp
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x404580
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x40fd6c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 8]
mov ecx, edi
call fcn.00402e70
lea ebx, [esi + 0x34]
mov dword [esp + 0x1a8], 0
mov ecx, ebx
call fcn.00402e70
lea eax, [esp + 0x10]
mov byte [esp + 0x1a8], 1
push eax
push 0x202
mov dword [esi], 0x4112cc
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, edi
mov dword [esi + 4], eax
call fcn.00403180
mov ecx, ebx
call fcn.00403180
mov ecx, dword [esp + 0x1a0]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a0
ret

Function at 0x4046a0
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x24]
push ebx
push esi
push edi
mov esi, ecx
push eax
mov word [esp + 0x20], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x20], eax
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [esp + 0x38]
mov word [esp + 0x1e], ax
test edi, edi
jle 0x40478b
mov eax, dword [esi + 4]
mov ebx, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea edx, [esp + 0x30]
mov dword [esp + 0x30], 1
push edx
push 0x8004667e
push eax
call ebx
test eax, eax
je 0x404707
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret 0xc
mov edx, dword [esi + 4]
lea ecx, [esp + 0x1c]
push 0x10
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
mov eax, dword [esi + 4]
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], eax
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov ecx, edx
mov eax, edi
shr ecx, 0x1f
add edx, ecx
mov ecx, 0x3e8
mov dword [esp + 0xc], edx
cdq
idiv ecx
lea eax, [esp + 0x14]
mov dword [esp + 0x10], edx
lea edx, [esp + 0xc]
push edx
push 0
push eax
push 0
push 0
call dword [sym.imp.WS2_32.dll_select]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x30]
push ecx
push 0x8004667e
push edx
mov edi, eax
mov dword [esp + 0x3c], 0
call ebx
neg eax
sbb eax, eax
not eax
and eax, edi
pop edi
pop esi
pop ebx
add esp, 0x20
ret 0xc
mov ecx, dword [esi + 4]
lea eax, [esp + 0x1c]
push 0x10
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
xor edx, edx
cmp eax, 0xffffffff
setne dl
pop edi
pop esi
mov eax, edx
pop ebx
add esp, 0x20
ret 0xc
Function at 0x4047d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, 0x13c1c
call fcn.0040f7b0
push ebx
mov ebx, ecx
push ebp
push esi
push edi
lea ecx, [ebx + 0x34]
call fcn.00403180
mov ebp, dword [sym.imp.WS2_32.dll_recv]
mov dword [esp + 0x10], 0
mov ecx, dword [0x41661c]
xor eax, eax
inc ecx
lea edi, [esp + 0x14]
mov dword [0x41661c], ecx
mov ecx, 0x4f06
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 4]
push eax
lea eax, [esp + 0x18]
push 0x13c18
push eax
push ecx
call ebp
mov esi, eax
test esi, esi
jle 0x40483f
mov edx, dword [esp + 0x10]
push esi
add edx, esi
lea ecx, [ebx + 0x34]
mov dword [esp + 0x14], edx
lea edx, [esp + 0x18]
push edx
call fcn.00403000
cmp esi, 0x13c18
je 0x4047f6
test esi, esi
jle 0x404862
cmp esi, 0x13c18
jge 0x404862
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x13c1c
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.recv_err_id_d
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x13c1c
ret