joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e5247
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x100e551d
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x73223889
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x7321a84f
push 0xffffffffffffffff
call fcn.100dc447
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x100e52b1
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.100e52c9
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x100e5511
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x100e54e5
Function at 0x100f4d17
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x100f4d39
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x100f4d39
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x100f4d39
ret
cmp word [ebx + 4], 0x14c
jne 0x100f4d39
test word [ebx + 0x16], 2
je 0x100f4d39
test word [ebx + 0x16], 0x100
je 0x100f4d39
cmp word [ebx + 0x18], 0x10b
jne 0x100f4d39
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x100f4d39
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x100f4dc5
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x100f4d59
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.100dbca4
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x100f4d39
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x100f4dc5
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x100f4d39
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x100f4d39
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x100f4d39
ret
cmp word [ebx + 4], 0x14c
jne 0x100f4d39
test word [ebx + 0x16], 2
je 0x100f4d39
test word [ebx + 0x16], 0x100
je 0x100f4d39
cmp word [ebx + 0x18], 0x10b
jne 0x100f4d39
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x100f4d39
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x100f4dc5
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x100f4d59
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.100dbca4
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x100f4d39
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x100f4e7c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x100f4ed5
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x100f4e7c
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x100f4e8b
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x104fab2e
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x100f4edc
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.100dbd52
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100f4f7b
add edi, 4
add eax, 2
dec ecx
jne 0x100f4ec1
call 0x100f4f28
loope 0x100f4f1e
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100f4f78
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x100f4f89
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100f4f3c
cmp eax, ecx
ja 0x100f4f3c
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100f4fc6
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x100f4fbc
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.100dc231
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x100f4e8b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x100f4ed5
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x100f4e7c
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x100f4e8b
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x104fab2e
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x100f4edc
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.100dbd52
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100f4f7b
add edi, 4
add eax, 2
dec ecx
jne 0x100f4ec1
call 0x100f4f28
loope 0x100f4f1e
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100f4f78
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x100f4f89
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100f4f3c
cmp eax, ecx
ja 0x100f4f3c
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100f4fc6
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x100f4fbc
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.100dc231
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x401190
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.360EntPublish
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x4011de
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4011de
call fcn.00418cf0
test al, al
je 0x4011cc
call fcn.0040f3d0
mov ecx, dword [0x4336f0]
call fcn.00406f70
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret
or eax, 0xffffffff
pop esi
ret

Function at 0x401300
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 0x401317
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401348
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401344
cmp esi, eax
jae 0x401348
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x401334
cmp esi, eax
jb 0x40134e
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 0x402190
Capabilities:
Hash data with md5

Disassembly:
push 0x40
lea eax, [esi + 4]
push 0
push eax
mov dword [esi], vtable.CMD5Checksum.0
call fcn.0041c570
add esp, 0xc
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
mov eax, esi
ret
Function at 0x402a00
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x428528
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push edi
mov eax, dword [0x431040]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
cmp dword [eax - 0xc], edi
jne 0x402a70
or ebx, 0xffffffff
mov dword [esp + 0x24], ebx
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x402a5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x1c
ret 4
lea ebx, [esi + 4]
lea eax, [esp + 0x2c]
call fcn.00402c20
mov ebx, dword [ebx]
push edi
push 0x8000000
push 3
push edi
push 7
push connect
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
or ebx, 0xffffffff
mov dword [esi], eax
cmp eax, ebx
jne 0x402aa8
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x2c]
jmp 0x402a41
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov dword [esi + 0xc], eax
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esi + 8], edx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x402aeb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x1c
ret 4

Function at 0x402b70
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x402b7c
xor eax, eax
pop ecx
ret
push 0
lea ecx, [esp + 4]
push ecx
push 0x4000
push edx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
test eax, eax
jbe 0x402ba6
add dword [esi + 0x10], eax
adc dword [esi + 0x14], 0
pop ecx
ret
Function at 0x4041c0
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
push edi
xor edi, edi
cmp dword [esi], edi
jne 0x4041d5
xor eax, eax
pop edi
pop ebx
add esp, 0x14
ret 8
lea ebx, [esi + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0xc], edi
je 0x404232
mov ecx, dword [esi]
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
xor eax, eax
cmp edx, eax
jl 0x404232
jg 0x404211
mov eax, dword [esp + 0x10]
cmp eax, ecx
jbe 0x404232
mov edx, dword [esi]
push edi
lea ecx, [esp + 0x18]
push ecx
push edi
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push edi
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi]
push edx
push eax
push ecx
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, 1
pop ebx
add esp, 0x14
ret 8

Function at 0x405110
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x800c
call fcn.00427360
mov eax, dword [0x431040]
xor eax, esp
mov dword [esp + 0x8008], eax
push ebx
push ebp
mov ebp, dword [esp + 0x8018]
xor ebx, ebx
push edi
mov edi, ecx
mov byte [edi], bl
mov byte [edi + 0x3fff], bl
cmp dword [ebp + 0x8008], ebx
jne 0x40514d
xor eax, eax
jmp 0x4051fd
push esi
lea esi, [esp + 0x10]
mov edx, ebp
mov dword [esp + 0x10], ebx
call fcn.004050b0
test eax, eax
je 0x40516b
mov eax, 1
jmp 0x4051fc
mov eax, dword [ebp + 0x8000]
mov esi, dword [ebp + 0x8004]
sub esi, eax
cmp esi, ebx
jle 0x4051a2
add eax, ebp
push esi
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0041da20
push esi
lea ecx, [esp + 0x28]
push ecx
push ebp
call fcn.0041da20
add esp, 0x18
mov dword [ebp + 0x8004], esi
jmp 0x4051a8
mov dword [ebp + 0x8004], ebx
mov ecx, dword [ebp + 0x8004]
push ebx
lea edx, [esp + 0x18]
push edx
mov eax, 0x8000
sub eax, ecx
push eax
lea eax, [ecx + ebp]
mov ecx, dword [ebp + 0x8008]
push eax
push ecx
mov dword [ebp + 0x8000], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4051fc
mov edx, dword [esp + 0x14]
add dword [ebp + 0x8004], edx
lea esi, [esp + 0x10]
mov edx, ebp
mov dword [ebp + 0x8000], ebx
call fcn.004050b0
neg eax
sbb eax, eax
neg eax
pop esi
mov ecx, dword [esp + 0x8014]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041a2c9
add esp, 0x800c
ret 4
Function at 0x405230
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x428228
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x431040]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x18], 0x10
jb 0x405263
mov eax, dword [ebx + 4]
jmp 0x405266
lea eax, [ebx + 4]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x405340
push 0x433594
mov dword [esp + 0x18], 0x433594
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x28], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], 0
call esi
sub eax, dword [0x4335ac]
cmp eax, 0x1b7740
jbe 0x4052e9
mov eax, dword [0x43358c]
mov ecx, dword [eax + 4]
push ecx
mov ecx, 0x433574
call fcn.00405f10
mov eax, dword [0x43358c]
mov dword [eax + 4], eax
mov eax, dword [0x43358c]
mov dword [0x433590], 0
mov dword [eax], eax
mov eax, dword [0x43358c]
mov dword [eax + 8], eax
call esi
mov dword [0x4335ac], eax
lea edx, [esp + 0x18]
push edx
call fcn.00405bf0
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebx, dword [0x43358c]
test esi, esi
je 0x40530a
cmp esi, dword [0x433574]
je 0x40530f
call fcn.0041aa5b
cmp edi, ebx
je 0x40532f
test esi, esi
jne 0x40532b
call fcn.0041aa5b
cmp edi, dword [esi + 0x18]
jne 0x405326
call fcn.0041aa5b
mov edi, dword [edi + 0x28]
jmp 0x405333
mov esi, dword [esi]
jmp 0x40531c
mov edi, dword [esp + 0x10]
push 0x433594
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x405500
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push esi
push 0x4057d0
push 0
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
pop ecx
ret
Function at 0x405530
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x428968
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x431040]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x405663
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebp, eax
xor esi, esi
cmp ebp, esi
je 0x405660
lea eax, [esp + 0x18]
push eax
call fcn.00404030
mov dword [esp + 0x38], esi
mov eax, dword [ebp + 0xc]
cmp dword [eax], esi
je 0x4055b5
mov ecx, dword [eax]
mov edx, dword [ecx]
lea ebx, [esp + 0x14]
lea edi, [esp + 0x18]
mov dword [esp + 0x14], edx
call fcn.00405c70
mov eax, dword [ebp + 0xc]
inc esi
cmp dword [eax + esi*4], 0
lea eax, [eax + esi*4]
jne 0x405591
xor esi, esi
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
sub ecx, eax
test ecx, 0xfffffffc
je 0x40563a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov edx, eax
mov eax, 0x10624dd3
mul edx
shr edx, 6
sub ecx, edi
mov eax, edx
sar ecx, 2
xor edx, edx
div ecx
mov ebx, edx
cmp ebx, ecx
jb 0x4055fb
call fcn.0041aa5b
mov edi, dword [esp + 0x24]
mov ebx, dword [edi + ebx*4]
cmp edi, esi
je 0x40560b
push edi
call fcn.0041a2be
add esp, 4
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.0041a2be
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
cmp eax, esi
je 0x405647
push eax
call fcn.0041a2be
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.0041a2be
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x405680
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x428d78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x431040]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov eax, dword [0x431040]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ecx, dword [edi]
add ecx, 0x2c
xor ebx, ebx
mov eax, ecx
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4056d2
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.00403d40
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], ebx
call fcn.00405230
mov esi, dword [edi]
add esi, 0x1c
mov ebx, eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov eax, 2
mov word [esi], ax
mov ecx, dword [edi]
movzx edx, word [ecx + 0x12c]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
mov dword [esi + 4], 0xffffffff
test ebx, ebx
je 0x405733
mov dword [esi + 4], ebx
jmp 0x40575c
mov ecx, dword [edi]
add ecx, 0x2c
call fcn.00405530
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x405751
lea eax, [esp + 0xc]
push eax
call fcn.004053d0
jmp 0x40575c
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00405360
cmp dword [esi + 4], 0xffffffff
mov ebx, 0x10
je 0x405796
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
push ebx
push esi
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x405790
push 1
mov eax, edi
call fcn.004054b0
cmp dword [esp + 0x24], ebx
jb 0x4057b2
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x4057aa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0
mov eax, edi
call fcn.004054b0
cmp dword [esp + 0x24], ebx
jb 0x4057b2
mov edx, dword [esp + 0x10]
push edx
call fcn.0041a2be
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0041a2c9
mov esp, ebp
pop ebp
ret
Function at 0x407450
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [eax + 0x4020], 0
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 4]
je 0x407464
mov edx, dword [edi + 0x18]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov esi, dword [eax + 0x401c]
push 0
push eax
lea ecx, [eax + 0x1c]
mov dword [eax + 0x18], ecx
lea ecx, [eax + 0x14]
push 0
lea eax, [esp + 0x14]
push eax
push 1
push ecx
push edx
mov dword [ecx], esi
mov dword [esp + 0x24], 0
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x4074cb
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x4074cb
call esi
push eax
push str.WSASend__
call fcn.00406df0
add esp, 8
xor al, al
pop edi
pop esi
pop ecx
ret
pop edi
mov al, 1
pop esi
pop ecx
ret

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

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 4]
xor ecx, ecx
cmp dword [eax + 0x4020], ecx
je 0x4074f8
mov esi, dword [edi + 0x18]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
push ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
push eax
lea ebx, [eax + 0x1c]
lea edx, [eax + 0x14]
mov dword [eax + 0x18], ebx
mov dword [eax + 0x4024], 1
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
push ecx
push 1
push edx
push esi
mov dword [edx], 0x4000
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x40756a
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x40756a
call esi
push eax
push str.WSARecv__
call fcn.00406df0
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
add esp, 8
ret
pop edi
pop esi
mov al, 1
pop ebx
add esp, 8
ret
Function at 0x407eb0
Capabilities:
Get local ipv4 addresses

Disassembly:
push 0xffffffffffffffff
push 0x429756
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [0x431040]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov ecx, dword [0x4335c0]
mov eax, dword [0x4335bc]
mov ebx, ecx
cmp eax, ecx
jbe 0x407efd
call fcn.0041aa5b
mov ecx, dword [0x4335c0]
mov eax, dword [0x4335bc]
mov esi, dword [0x4335b0]
mov edi, eax
cmp eax, ecx
jbe 0x407f0e
call fcn.0041aa5b
mov eax, dword [0x4335b0]
push ebx
push esi
push edi
push eax
push 0x4335b0
lea ebx, [esp + 0x30]
call fcn.00403b70
lea ecx, [esp + 0x14]
push ecx
push 0
mov dword [esp + 0x1c], 0
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov eax, dword [esp + 0x14]
test eax, eax
je 0x408018
push eax
call fcn.0041b262
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
je 0x408018
lea edx, [esp + 0x14]
push edx
push edi
mov esi, edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x40800f
cmp dword [esi + 0x1a0], 0x18
je 0x408005
lea eax, [esi + 0x1b0]
test eax, eax
je 0x408005
push eax
lea eax, [esp + 0x28]
call fcn.00407e60
mov dword [esp + 0xb0], 0
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.00401680
mov byte [esp + 0xb0], 2
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
cmp eax, edx
je 0x407fc8
push eax
call fcn.0041af8c
add esp, 4
lea ebx, [esp + 0x18]
mov edi, 0x4335b0
call fcn.00403950
mov dword [esp + 0xb0], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408001
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x1c]
mov esi, dword [esi]
test esi, esi
jne 0x407f71
push edi
call fcn.0041af8c
add esp, 4
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xa4
ret