joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c64d
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push ebx
push esi
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
xor ebx, ebx
or dword [eax], 0xffffffff
inc ebx
mov eax, dword [ebp + 0x10]
push edi
push ebx
mov dword [ebp - 4], ecx
mov dword [eax], ecx
lea eax, [ebp - 4]
push eax
push ecx
call esi
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x1c]
inc eax
push eax
call fcn.0044d55a
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 4]
push ebx
push eax
push edi
call esi
test eax, eax
jne 0x45c71e
mov ecx, dword [edi]
xor esi, esi
and dword [ebp - 0xc], esi
or eax, 0xffffffff
or edx, 0xffffffff
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
test ecx, ecx
jle 0x45c71e
lea ecx, [edi + 0x28]
cmp dword [ebp + 8], 0xffffffff
je 0x45c6d6
cmp dword [ebp + 8], 0
jbe 0x45c6d6
mov edi, dword [ecx - 0x24]
cmp edi, 0xffffffff
je 0x45c6d6
test edi, edi
je 0x45c6d6
mov eax, dword [ecx - 0x20]
and eax, dword [ebp + 8]
cmp eax, edi
je 0x45c707
mov eax, dword [ebp - 8]
cmp dword [ecx - 0x24], 0
jne 0x45c6f6
cmp dword [ecx - 0x20], 0
jne 0x45c6f6
cmp eax, 0xffffffff
je 0x45c6eb
cmp dword [ecx], eax
jae 0x45c6f6
mov eax, dword [ecx]
mov edx, dword [ecx - 0x14]
mov esi, dword [ecx - 0x18]
mov dword [ebp - 8], eax
mov edi, dword [ebp - 0xc]
add ecx, 0x38
inc edi
mov dword [ebp - 0xc], edi
cmp edi, dword [ebp - 0x10]
jl 0x45c6b1
jmp 0x45c70d
mov edx, dword [ecx - 0x14]
mov esi, dword [ecx - 0x18]
cmp edx, 0xffffffff
je 0x45c71e
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
jmp 0x45c720
xor bl, bl
lea ecx, [ebp - 0x1c]
call fcn.00408f76
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45cd87
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x24
mov eax, 0x56d40d
call fcn.0056127f
mov ebx, ecx
mov dword [ebp - 0x24], ebx
xor eax, eax
mov dword [ebp - 0x2c], ebx
and dword [ebp - 0x1c], eax
and dword [ebp - 0x18], eax
mov word [ebp - 0x20], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov ecx, esi
mov dword [ebp - 0x28], esi
sub ecx, dword [ebx + 0x2c]
cmp ecx, 0x7d0
jbe 0x45cf42
mov ecx, ebx
mov dword [ebx + 0x2c], esi
call fcn.0045e04e
test al, al
jne 0x45cea8
cmp byte [ebx + 0x1c], al
jne 0x45ceae
mov eax, esi
sub eax, dword [ebx + 0x14]
cmp eax, dword [ebx + 0x94]
jbe 0x45cea8
inc dword [ebx + 0x20]
mov ecx, ebx
push 2
pop edi
cmp dword [ebx + 0x20], edi
jl 0x45ce9b
lea eax, [ebp - 0x20]
push eax
call fcn.0045dfb2
test al, al
je 0x45ce92
lea esi, [ebx + 0x30]
mov ecx, esi
mov dword [ebp - 0x30], esi
call fcn.005383c0
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
cmp byte [ebx + 0x90], 0
je 0x45ce82
cmp byte [ebx + 0x1c], 0
jne 0x45ce82
mov eax, dword [ebp - 0x20]
add ebx, 8
mov dword [ebx], eax
mov eax, dword [ebp - 0x1c]
mov word [ebx], di
mov edi, dword [ebp - 0x24]
add edi, 0x10
mov dword [ebx + 4], eax
mov ax, word [ebp - 0x18]
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x24]
push edi
push ebx
mov ebx, ecx
and dword [ecx + 0x20], 0
mov dword [ecx + 0x14], eax
mov byte [ecx + 0x1c], 0
call fcn.0045d39f
mov byte [ebx + 0x54], 1
jmp 0x45ce82
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.005383d0
mov esi, dword [ebp - 0x28]
jmp 0x45cea8
mov ecx, ebx
call fcn.0045dde5
jmp 0x45cea8
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 8]
push eax
call fcn.0045d39f
cmp byte [ebx + 0x1c], 0
je 0x45cf0a
mov eax, esi
sub eax, dword [ebx + 0x18]
cmp eax, 0x2710
jbe 0x45cf0a
mov ecx, dword [ebx + 0x24]
lea edi, [ebp - 0x1f]
xor eax, eax
mov byte [ebx + 0x1c], 0
stosd dword es:[edi], eax
mov dword [ebx + 0x14], esi
stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, 0x131
mov word [ebp - 0x20], ax
mov byte [ebp - 0x1e], 0x68
test ecx, ecx
je 0x45cf0a
call fcn.00448333
mov dword [ebp - 0x1d], eax
xor eax, eax
push eax
push ecx
push ecx
push 7
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebx + 0x24]
push eax
push eax
movzx eax, word [ebx + 0x10]
push eax
push dword [ebx + 0xc]
push dword [ebx + 8]
push 0x70000002
call fcn.0044983f
mov ecx, ebx
call fcn.0045e04e
test al, al
je 0x45cf4a
mov eax, dword [ebx + 0x68]
jmp 0x45cf3b
mov ecx, esi
sub ecx, dword [eax + 0x14]
cmp ecx, 0x3a98
jbe 0x45cf38
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebx + 0x68]
call fcn.0045e500
mov eax, dword [eax]
jmp 0x45cf3b
add eax, 0x20
cmp eax, dword [ebx + 0x6c]
jne 0x45cf1a
jmp 0x45cf4a
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.005611d1
ret
Function at 0x45d39f
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x5c31c8]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebx + 0xc0]
cmp dword [edi + 0x14], 2
jne 0x45d3d8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0x10]
add dword [edi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 1
xor eax, eax
mov ecx, dword [ebx + 0x24]
lea edi, [esp + 9]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, 0x131
mov word [esp + 8], ax
mov byte [esp + 0xa], 0x64
test ecx, ecx
je 0x45d431
call fcn.00448333
xor ecx, ecx
mov dword [esp + 0xb], eax
push ecx
push ecx
push ecx
push 7
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push ecx
mov ecx, dword [ebx + 0x24]
movzx eax, word [eax]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
push dword [eax]
push 0x70000002
call fcn.0044983f
mov ecx, dword [esp + 0x14]
pop edi
pop ebx
xor ecx, esp
call fcn.0055daac
mov esp, ebp
pop ebp
ret 8

Function at 0x45d4fa
Capabilities:
Create thread

Disassembly:
push ebx
push edi
mov edi, ecx
push edi
push 0x45cd60
push 0x131
mov ecx, dword [edi + 0x24]
call fcn.00449718
xor ebx, ebx
cmp dword [edi + 0x28], ebx
jne 0x45d54e
push esi
push 0xc
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
pop ecx
test esi, esi
je 0x45d548
push ebx
push ebx
push esi
push 0x45e3d6
push ebx
mov dword [esi], edi
mov dword [esi + 4], ebx
push ebx
mov byte [esi + 8], bl
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
jmp 0x45d54a
mov esi, ebx
mov dword [edi + 0x28], esi
pop esi
pop edi
pop ebx
ret
Function at 0x45dde5
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x40
mov eax, 0x56d609
call fcn.00561249
mov ebx, ecx
mov dword [ebp - 0x18], ebx
xor edi, edi
xor eax, eax
mov word [ebp - 0x4c], ax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 1
mov eax, dword [ebx + 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [ebx + 0x74]
jl 0x45de3d
call esi
sub eax, dword [ebx + 0x4c]
cmp eax, 0xea60
jbe 0x45de3d
mov dword [ebx + 0x48], edi
mov eax, dword [ebx + 0x48]
cmp eax, dword [ebx + 0x74]
jge 0x45df94
mov edi, dword [ebx + 0xc0]
cmp dword [edi + 0x14], 1
jne 0x45de62
call esi
sub eax, dword [edi + 0x10]
add dword [edi + 8], eax
call esi
mov dword [edi + 0x10], eax
and dword [edi + 0x14], 0
call esi
mov ecx, dword [ebx + 0x24]
mov dword [ebx + 0x4c], eax
mov eax, dword [ecx + 0xf0]
mov word [ebp - 0x4c], ax
call fcn.00448333
push 3
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x48], eax
call fcn.0045e45a
mov edi, dword [sym.imp.MSVCR120.dll_rand]
call edi
push 0x64
cdq
pop ecx
idiv ecx
mov esi, dword [ebp - 0x44]
mov byte [esi], dl
call edi
push 0x64
cdq
pop ecx
idiv ecx
mov byte [esi + 1], dl
call edi
push 0x64
pop ecx
cdq
idiv ecx
lea eax, [ebp - 0x38]
mov ecx, ebx
push eax
lea eax, [ebp - 0x4c]
mov byte [esi + 2], dl
push eax
call fcn.0045d930
mov ecx, dword [ebp - 0x2c]
mov eax, ecx
sub eax, dword [ebp - 0x30]
push 0xc
pop esi
cdq
idiv esi
cmp dword [ebp - 0x38], 0
mov edi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
jle 0x45df91
cmp dword [ebp - 0x30], ecx
je 0x45df91
add ebx, 0x30
mov byte [ebp - 4], 2
mov ecx, ebx
mov dword [ebp - 0x24], ebx
call fcn.005383c0
mov byte [ebp - 4], 3
xor esi, esi
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
cmp esi, edi
jae 0x45df58
lea edi, [ecx + 0x7c]
mov eax, dword [edi + 4]
sub eax, dword [edi]
cdq
idiv dword [ebp - 0x1c]
cmp eax, dword [ecx + 0x78]
jae 0x45df58
mov eax, dword [edi + 4]
sub eax, dword [edi]
push 0xc
pop ecx
cdq
idiv ecx
mov ecx, edi
inc eax
push eax
call fcn.0045e4a0
mov eax, dword [edi + 4]
sub eax, dword [edi]
push 0xc
pop ecx
cdq
idiv ecx
mov edi, dword [edi]
imul esi, esi, 0xc
add edi, 0xfffffff4
imul ecx, eax, 0xc
add esi, dword [ebp - 0x30]
add edi, ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
inc esi
jmp 0x45df02
mov esi, dword [ecx + 0xc0]
cmp dword [esi + 0x14], 0
jne 0x45df7e
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [esi + 0x10]
add dword [esi + 4], eax
call edi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 1
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.005383d0
jmp 0x45df94
inc dword [ebx + 0x48]
lea ecx, [ebp - 0x30]
call fcn.00408f76
lea ecx, [ebp - 0x44]
call fcn.00408f76
call fcn.005611ae
ret
Function at 0x45e063
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0xc0]
call ebx
sub eax, dword [esi]
mov esi, dword [edi + 0xc0]
mov dword [edi + 0xb0], eax
cmp dword [esi + 0x14], 0
jne 0x45e09d
call ebx
sub eax, dword [esi + 0x10]
add dword [esi + 4], eax
call ebx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
mov esi, dword [edi + 0xc0]
mov dword [edi + 0xb4], eax
cmp dword [esi + 0x14], 1
jne 0x45e0bf
call ebx
sub eax, dword [esi + 0x10]
add dword [esi + 8], eax
call ebx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
mov esi, dword [edi + 0xc0]
mov dword [edi + 0xb8], eax
cmp dword [esi + 0x14], 2
jne 0x45e0e1
call ebx
sub eax, dword [esi + 0x10]
add dword [esi + 0xc], eax
call ebx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
lea edx, [edi + 0x98]
push 0xa
mov dword [edi + 0xbc], eax
mov esi, edx
mov edi, dword [ebp + 8]
xor eax, eax
pop ecx
rep movsd dword es:[edi], dword [esi]
push 0xa
pop ecx
push 0xa
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
pop ecx
lea esi, [ebp - 0x28]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x45e117
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56d65d
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x5c31c8]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x5c31c8]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x24]
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.005321e4
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
mov dword [esp + 0xec], ebx
call fcn.00441a4a
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
call fcn.00441a7a
push ebx
push 4
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
call fcn.00531dda
push 2
pop eax
mov word [esp + 0x1c], ax
lea ecx, [esp + 0x24]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ebx
push eax
call fcn.00441a4a
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
call fcn.00441a62
mov ecx, dword [edi + 0x24]
call fcn.00448333
push ebx
cmp dword [esp + 0x14], eax
jne 0x45e250
lea ecx, [esp + 0x50]
call fcn.0045173c
mov byte [esp + 0xe8], 1
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x60], eax
mov ax, word [esi + 0x18]
mov word [esp + 0x64], ax
mov eax, dword [esi + 0xc]
add eax, ecx
push eax
lea eax, [ecx + 0xd]
push eax
lea ecx, [esp + 0x9c]
call fcn.0044f267
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x98]
sub eax, ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
lea eax, [esp + 0x4c]
push eax
push dword [edi + 0x88]
mov byte [esp + 0x70], 0x65
call dword [edi + 0x8c]
pop ecx
pop ecx
lea ecx, [esp + 0x4c]
call fcn.00448081
jmp 0x45e273
push ecx
push ecx
push dword [esi + 0xc]
mov ecx, dword [edi + 0x24]
push dword [esi + 8]
push ebx
push ebx
push dword [esp + 0x34]
push dword [esp + 0x34]
push dword [esp + 0x40]
push 0x70000002
call fcn.0044983f
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0055daac
mov esp, ebp
pop ebp
ret 4

Function at 0x460904
Capabilities:
Get common file path

Disassembly:
push 0x22c
mov eax, 0x56dc5d
call fcn.00561213
mov dword [ebp - 0x234], edx
mov ebx, ecx
and dword [ebp - 0x238], 0
lea eax, [ebp - 0x1f0]
push 0xa
pop ecx
push 0x1e0
mov esi, 0x5900a4
lea edi, [ebp - 0x218]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.004077bf
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x4609a6
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0x5c
cmovae eax, dword [ebp - 0x230]
pop edx
cmp word [eax + ecx*2 - 2], dx
je 0x4609a6
push edx
push 1
lea ecx, [ebp - 0x230]
call fcn.004098a0
push dword [ebp - 0x234]
lea edx, [ebp - 0x230]
mov ecx, ebx
call fcn.0040a10d
pop ecx
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.00401d84
mov eax, ebx
call fcn.005611c2
ret
Function at 0x460a30
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x56dcd1
call fcn.005611e0
mov esi, ecx
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x3c], 0
jne 0x460aad
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 8]
call fcn.004026df
lea edi, [esi + 0x20]
lea eax, [ebp + 0x20]
cmp edi, eax
je 0x460a86
mov ecx, edi
call fcn.0040276b
mov ecx, dword [ebp + 0x30]
test ecx, ecx
jne 0x460a73
and dword [edi + 0x10], ecx
jmp 0x460a86
lea eax, [ebp + 0x20]
cmp ecx, eax
mov eax, dword [ecx]
jne 0x460a7f
push edi
jmp 0x460a81
push 0
call dword [eax]
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 0x38]
mov dword [esi + 0x40], eax
xor eax, eax
push eax
push eax
push esi
push 0x460b08
push eax
push eax
mov byte [esi + 0x38], al
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x460aad
mov dword [esi + 0x3c], eax
jmp 0x460aaf
xor bl, bl
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.0040276b
lea ecx, [ebp + 8]
call fcn.0040276b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.0040276b
lea ecx, [ebp + 0x20]
call fcn.0040276b
mov al, bl
call fcn.005611ae
ret 0x34
Function at 0x462ce9
Capabilities:
Read file on windows

Disassembly:
push 0x45c
mov eax, 0x56e25a
call fcn.00561213
mov ebx, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x468]
mov edx, dword [ebp + 8]
or dword [ebp - 0x468], 0xffffffff
or dword [ebp - 0x464], 0xffffffff
push eax
push edx
call fcn.00532bd5
test al, al
je 0x462e78
push dword [ebp - 0x468]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov dword [ebp - 0x430], 0xf
mov dword [ebp - 0x434], ecx
mov byte [ebp - 0x444], cl
mov dword [ebp - 4], ecx
xor eax, eax
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x41c], ecx
mov word [ebp - 0x42c], ax
push 0x3ff
push ecx
lea eax, [ebp - 0x413]
mov byte [ebp - 4], 1
push eax
mov byte [ebp - 0x414], cl
call sub.MSVCR120.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x462dc2
cmp dword [ebp - 0x460], 0
je 0x462de6
push dword [ebp - 0x460]
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x444]
call fcn.0040edb6
push 0x3ff
lea eax, [ebp - 0x413]
mov byte [ebp - 0x414], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x460]
push 0
push eax
push 0x400
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x464]
call esi
test eax, eax
jne 0x462d87
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
lea edx, [ebp - 0x444]
lea ecx, [ebp - 0x45c]
call fcn.0045429f
pop ecx
push eax
lea ecx, [ebp - 0x42c]
call fcn.00407814
xor esi, esi
lea ecx, [ebp - 0x45c]
push esi
push 1
call fcn.00401d84
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebx + 0x4c]
call fcn.00409a1d
cmp dword [ebp - 0x418], 8
lea eax, [ebp - 0x42c]
lea ecx, [ebx + 8]
cmovae eax, dword [ebp - 0x42c]
push eax
push 1
call fcn.0046335c
push esi
push 1
lea ecx, [ebp - 0x42c]
call fcn.00401d84
push esi
push 1
lea ecx, [ebp - 0x444]
call fcn.00401d3f
mov al, 1
jmp 0x462e7a
xor al, al
call fcn.005611c2
ret 8
Function at 0x4667e3
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5c31c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
cmp dword [esi], 0xffffffff
jne 0x466827
cmp dword [ebx + 4], 0
je 0x466827
cmp dword [ebp + 0xc], 0
je 0x466827
xor eax, eax
push 6
inc eax
push eax
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46683c
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055daac
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ax, word [ebx]
push dword [ebp + 0xc]
mov word [ebp - 0x14], ax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
xor eax, eax
push eax
push eax
push eax
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_WSAConnect]
cmp eax, 0xffffffff
jne 0x4668cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
je 0x4668cb
xor eax, eax
inc eax
mov word [ebp - 0x18], ax
xor eax, eax
push 4
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x18]
push eax
push 0x80
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x466827
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 8], eax
mov ecx, dword [ebx]
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebx + 4]
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [esi + 0x10], ecx
inc eax
mov byte [esi + 0x18], 0
jmp 0x466829

Function at 0x4668f3
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi], eax
mov byte [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 8], eax
mov dword [ebp + 8], 1
mov eax, dword [edx]
mov dword [esi + 0xc], eax
mov eax, dword [edx + 4]
mov dword [esi + 0x14], ecx
lea ecx, [ebp + 8]
push ecx
push 0x8004667e
push dword [esi]
mov dword [esi + 0x10], eax
mov byte [esi + 0x18], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov al, 1
pop esi
pop ebp
ret 0xc

Function at 0x466eb7
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov byte [esi], bl
call fcn.00467019
test al, al
je 0x466ee7
push ebx
push ebx
push esi
push 0x466f2f
push ebx
push ebx
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x466ee7
mov dword [esi + 4], eax
mov al, 1
jmp 0x466ee9
xor al, al
pop esi
pop ebx
pop ecx
ret
Function at 0x467019
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5c31c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 1
xor eax, eax
mov edi, ecx
push eax
push eax
push eax
push 1
push 2
pop eax
push eax
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46704f
xor al, al
jmp 0x4670e4
push 1
lea eax, [ebp - 0x15]
mov byte [ebp - 0x15], 1
push eax
push 0xfffffffffffffffb
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, dword [edi + 0xc]
jmp 0x467089
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
je 0x467080
cmp eax, 0x2726
jne 0x4670f5
cmp ebx, 0xffff
jge 0x4670f5
inc ebx
push 2
pop eax
push 0
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htonl]
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x46706c
push 8
push dword [edi + 8]
mov dword [edi + 0xc], ebx
push esi
mov dword [edi + 0x10], esi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x467048
push 5
push dword [edi + 0x10]
call dword [sym.imp.WS2_32.dll_listen]
neg eax
sbb al, al
inc al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055daac
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x467048

Function at 0x467320
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, ecx
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov esi, eax
test esi, esi
je 0x46734f
mov edx, dword [edi + 0xc]
push 1
push esi
push dword [edx]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x467348
mov dword [edi + 8], esi
jmp 0x46734f
push esi
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
xor ecx, ecx
push ecx
push ecx
push edi
push 0x4673b9
push ecx
push ecx
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x46736f
mov dword [edi + 4], eax
mov al, 1
jmp 0x467371
xor al, al
pop edi
pop esi
ret
Function at 0x4673d8
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5c31c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
push 0
pop ecx
cmp byte [esi], 0
jne 0x4674b5
lea ebx, [esi + 8]
cmp dword [ebx], ecx
je 0x46743e
push ecx
push 0xffffffffffffffff
push ecx
push ebx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp byte [esi], 0
mov edi, eax
jne 0x4674b3
cmp edi, 0xc0
je 0x4674b3
cmp edi, 0xffffffff
je 0x4674b3
push dword [ebx]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
test edi, edi
jne 0x4674a7
jmp 0x4674a0
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x114], 0x64
mov eax, dword [eax]
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x118]
push eax
push ecx
push ecx
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 1
push eax
push 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x4674a7
test eax, eax
jle 0x4674a7
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x110]
push ecx
push dword [eax]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x4674a7
mov ecx, esi
call fcn.004674d4
cmp byte [esi], 0
push 0
pop ecx
je 0x4673ff
xor ecx, ecx
xor eax, eax
mov dword [esi + 0xc], ecx
cmp byte [esi], al
je 0x4674c2
mov byte [esi], cl
jmp 0x4674c3
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055daac
mov esp, ebp
pop ebp
ret