joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419130
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62b140
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
push dword [0x6b123c]
mov eax, dword [eax]
mov esi, dword [eax + 4]
lea ebx, [eax + 4]
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41918f
nop dword [eax + eax]
cmp dword [eax], esi
je 0x41928b
mov eax, dword [eax + 8]
test eax, eax
jne 0x419180
mov esi, dword [ebp + 0xc]
push esi
push 0x70
mov dword [ebp - 0x30], esi
call fcn.0042c900
mov edi, eax
mov dword [ebp - 0x28], 0
add esp, 8
mov dword [ebp - 0x2c], edi
mov dword [edi + 0x14], 0
lea ecx, [edi + 0x28]
mov dword [edi + 0x18], fcn.00432620
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x1c], 0
mov eax, dword [esi]
mov dword [edi + 0x20], eax
lea eax, [esi + 8]
push eax
mov dword [ebp - 4], 1
call fcn.0041da40
mov eax, dword [esi + 0x48]
mov dword [edi + 0x68], eax
mov eax, dword [esi + 0x4c]
mov esi, dword [ebp - 0x20]
mov ecx, esi
push edi
push ebx
mov dword [edi + 0x6c], eax
call fcn.00435f40
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
test al, al
je 0x4192d4
mov eax, dword [ebx]
xorps xmm0, xmm0
push dword [0x6b123c]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push dword [0x6b123c]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx]
mov dword [ebp - 0x20], eax
push 0x6b1290
push 0x413160
push 0x6b128c
mov byte [ebp - 4], 3
call fcn.004805c1
add esp, 0xc
test eax, eax
je 0x4192f0
jmp 0x4192ab
cmp dword [eax + 4], 0
je 0x41918f
mov eax, dword [ebp + 0xc]
push eax
push eax
mov dword [ebp - 4], 0
call fcn.004149b0
add esp, 8
jmp 0x4192d4
push 0
lea eax, [ebp - 0x38]
push eax
push edi
push dword [esi + 0x14]
call fcn.00432620
add esp, 0x10
lea ecx, [ebp - 0x24]
call fcn.00422a30
push dword [ebp - 0x14]
push dword [0x6b123c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret
call fcn.006027a2
int3
Function at 0x41a660
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62b486
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ecx, dword [eax]
test ecx, ecx
je 0x41a6a2
mov eax, dword [ecx]
call dword [eax]
mov ebx, eax
jmp 0x41a6a4
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
push esi
lea ecx, [ebp - 0x134]
mov dword [ebp - 4], 0
mov byte [ebp - 0x13b], 1
call fcn.0041d0e0
mov eax, dword [esi + 0x78]
mov dword [ebp - 0xbc], eax
mov eax, dword [esi + 0x7c]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 1
test ebx, ebx
je 0x41a804
mov eax, dword [ebx]
lea ecx, [ebp - 0xac]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x28], eax
mov al, byte [ebp - 0x13b]
mov byte [ebp - 0xb3], al
lea eax, [ebp - 0x134]
push eax
mov byte [ebp - 0x13b], 0
call fcn.0041d0e0
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x30], eax
push dword [0x6b1224]
lea eax, [ebp - 0x11]
mov byte [ebp - 4], 3
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41a73d
mov eax, dword [eax + 4]
jmp 0x41a73f
xor eax, eax
push 0x98
push eax
push dword [ebp - 0x2c]
call fcn.004148f0
mov edi, eax
mov dword [ebp - 0x18], 0
add esp, 0xc
mov dword [ebp - 0x1c], edi
mov dword [edi], 0x4341b0
lea eax, [ebp - 0xac]
mov cl, byte [ebp - 0xb3]
mov byte [edi + 9], cl
lea ecx, [edi + 0x10]
push eax
mov byte [ebp - 4], 4
mov byte [ebp - 0xb3], 0
call fcn.0041d0e0
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x20]
mov dword [edi + 0x88], eax
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x8c], eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], 0
call fcn.0044d330
lea ecx, [ebp - 0xac]
call fcn.004218c0
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 5
push eax
mov ecx, ebx
call dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 6
test eax, eax
je 0x41a7d6
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
lea ecx, [ebp - 0x134]
call fcn.004218c0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
call fcn.0041e770
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
call fcn.0041ab00
int3
Function at 0x41e290
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov eax, 1
lock xadd dword [0x6b1230], eax
inc eax
mov ebx, 0x6b1234
cmp eax, 1
jne 0x41e2d0
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [ebx], eax
cmp byte [ebp + 8], 0
je 0x41e2e2
push esi
xor esi, esi
lock xadd dword [ebx], esi
test esi, esi
jne 0x41e2f6
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.005bb391
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x6b1214]
test al, 1
jne 0x41e328
or eax, 1
mov dword [0x6b1210], 0x6b120c
push 0x63e650
mov dword [0x6b1214], eax
mov dword [0x6b120c], 0x6413a8
call fcn.005bb37c
add esp, 4
push str.winsock
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x19c], esi
push eax
mov dword [ebp - 0x198], 0x6b120c
call fcn.00437ff0
int3

Function at 0x41e3f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62bd8b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6a73e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [ebx], eax
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [ebx + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [edi + 0x20]
lea ecx, [ebx + 0x38]
mov dword [ebx + 0x20], eax
mov eax, dword [edi + 0x28]
mov dword [ebx + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x30]
add edi, 0x38
push edi
mov dword [ebp - 4], 0
mov dword [ebx + 0x30], eax
call fcn.0041d900
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], 0
mov eax, dword [edi + 0x30]
mov dword [ebx + 0x68], eax
mov eax, dword [edi + 0x34]
mov dword [ebx + 0x6c], eax
mov eax, ebx
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41e4e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62bd8b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6a73e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [ebx], eax
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [ebx + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [edi + 0x20]
lea ecx, [ebx + 0x40]
mov dword [ebx + 0x20], eax
mov eax, dword [edi + 0x28]
mov dword [ebx + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x30]
mov dword [ebx + 0x30], eax
mov eax, dword [edi + 0x38]
add edi, 0x40
push edi
mov dword [ebp - 4], 0
mov dword [ebx + 0x38], eax
call fcn.0041d9a0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x74], 0
mov eax, dword [edi + 0x30]
mov dword [ebx + 0x70], eax
mov eax, dword [edi + 0x34]
mov dword [ebx + 0x74], eax
mov eax, ebx
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42b5e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62b670
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6a73e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.005bb0ab
mov edi, eax
add esp, 4
test edi, edi
je 0x42b692
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00480320
mov dword [edi + 4], eax
add esp, 4
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42c900
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [0x6b1224]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42c92a
push dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
push dword [ebp - 4]
call fcn.00414890
add esp, 0xc
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
xor eax, eax
push eax
push dword [ebp - 4]
call fcn.00414890
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x42c940
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x6b1224]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42c958
mov edx, dword [eax + 4]
jmp 0x42c95a
xor edx, edx
mov eax, dword [ebp + 0xc]
cmp eax, 0x3fc
ja 0x42c979
test edx, edx
je 0x42c979
cmp dword [edx], 0
jne 0x42c979
mov ecx, dword [ebp + 8]
mov al, byte [ecx + eax]
mov byte [ecx], al
mov dword [edx], ecx
pop ebp
ret
push dword [ebp + 8]
call fcn.0050d350
add esp, 4
pop ebp
ret
Function at 0x42df10
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 8
mov eax, dword [eax + 4]
test eax, eax
je 0x42df85
cmp dword [eax + 4], 0
je 0x42df85
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x42df37
cmp byte [edi], 0
jne 0x42df39
xor edi, edi
test esi, esi
je 0x42df42
cmp byte [esi], 0
jne 0x42df44
xor esi, esi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
push edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00451dd0
mov edx, dword [ebp + 0x20]
add esp, 8
mov ecx, dword [eax]
mov dword [edx], ecx
mov eax, dword [eax + 4]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x6b1214]
test al, 1
jne 0x42dfb7
or eax, 1
mov dword [0x6b1210], 0x6b120c
push 0x63e650
mov dword [0x6b1214], eax
mov dword [0x6b120c], 0x6413a8
call fcn.005bb37c
add esp, 4
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 8]
mov dword [edx], 0x3e3
mov ecx, dword [edx]
mov dword [edx + 4], 0x6b120c
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov esp, ebp
pop ebp
ret
Function at 0x42dfe0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62cdc9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6a73e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
mov edi, dword [ebp + 8]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
test ebx, ebx
je 0x42e19e
mov ecx, dword [ebp + 0xc]
mov al, byte [ecx]
dec ebx
mov byte [ebp + esi - 0x14], al
inc ecx
mov ah, byte [ebp - 0x12]
inc esi
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0xe], ah
mov byte [ebp + 0x13], dl
mov byte [ebp - 0xd], dh
cmp esi, 3
jne 0x42e0d5
mov al, dh
mov cl, dh
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ah
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
xor esi, esi
nop dword [eax]
cmp dword [0x6a1064], 0x10
mov ecx, 0x6a1050
movzx eax, byte [ebp + esi - 0x18]
cmovae ecx, dword [0x6a1050]
movzx eax, byte [eax + ecx]
mov ecx, edi
push eax
call fcn.0044bb90
inc esi
cmp esi, 4
jl 0x42e0a0
mov ecx, dword [ebp + 0xc]
xor esi, esi
mov dl, byte [ebp + 0x13]
mov dh, byte [ebp - 0xd]
test ebx, ebx
jne 0x42e041
mov dword [ebp + 0x10], esi
test esi, esi
je 0x42e19e
mov eax, esi
cmp esi, 3
jge 0x42e10e
cmp eax, 3
jae 0x42e1b2
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x42e0f2
mov cl, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
jmp 0x42e111
mov cl, byte [ebp - 0xe]
mov al, dh
xor ebx, ebx
shr al, 2
and dh, 3
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl dh, 4
add dh, al
shl dl, 2
mov al, cl
mov byte [ebp - 0x17], dh
shr al, 6
and cl, 0x3f
add dl, al
mov byte [ebp - 0x15], cl
lea eax, [esi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x42e17c
mov esi, eax
nop dword [eax]
cmp dword [0x6a1064], 0x10
mov ecx, 0x6a1050
movzx eax, byte [ebp + ebx - 0x18]
cmovae ecx, dword [0x6a1050]
movzx eax, byte [eax + ecx]
mov ecx, edi
push eax
call fcn.0044bb90
inc ebx
cmp ebx, esi
jl 0x42e150
mov esi, dword [ebp + 0x10]
cmp esi, 3
jge 0x42e19e
mov ebx, 3
sub ebx, esi
nop dword [eax + eax]
push 0x3d
mov ecx, edi
call fcn.0044bb90
sub ebx, 1
jne 0x42e190
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.005bb643
int3
Function at 0x42f970
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
mov dword [ebp - 0x10], eax
cmp ebx, 0xffffffff
je 0x42fac8
cmp byte [ebp + 0x10], 0
mov edi, dword [sym.imp.WS2_32.dll_WSASetLastError]
je 0x42f9f2
test byte [eax], 8
je 0x42f9f2
xor eax, eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 8], eax
call fcn.0041e800
mov eax, dword [ebp - 0x10]
push 0
or byte [eax], 8
call edi
push 4
lea eax, [ebp - 8]
push eax
push 0x80
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.00417e70
add esp, 8
test eax, eax
jne 0x42f9f2
lea ecx, [ebp - 0x18]
call fcn.0041e800
push 0
call edi
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edi, eax
mov eax, dword [0x6b1214]
test al, 1
jne 0x42fa31
or eax, 1
mov dword [0x6b1210], 0x6b120c
push 0x63e650
mov dword [0x6b1214], eax
mov dword [0x6b120c], 0x6413a8
call fcn.005bb37c
add esp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], 0x6b120c
test edi, edi
je 0x42fac8
push 0x2733
lea ecx, [ebp - 0xc]
call fcn.0040fae0
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 8]
cmp ecx, dword [eax + 4]
jne 0x42fa6a
mov eax, dword [esi]
cmp eax, dword [ebp - 0xc]
je 0x42fa8c
push 0x4d5
lea ecx, [ebp - 0xc]
call fcn.0040fae0
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 8]
cmp ecx, dword [eax + 4]
jne 0x42fac4
mov eax, dword [esi]
cmp eax, dword [ebp - 0xc]
jne 0x42fac4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp - 0x10]
push 0
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push esi
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push eax
call fcn.00417e70
add esp, 8
mov edi, eax
test edi, edi
jne 0x42faf0
push 0x6b1290
push 0x413160
push 0x6b128c
call fcn.004805c1
add esp, 0xc
test eax, eax
je 0x42fb03
mov dword [esi], 0
mov dword [esi + 4], 0x6b1290
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005bb391
mov esp, ebp
pop ebp
ret
call fcn.006027a2
int3
Function at 0x42fc50
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp eax, 0x4cf
jg 0x42fcd1
je 0x42fc97
cmp eax, 0x79
je 0x42fc86
cmp eax, 0x4c9
jne 0x42fd17
push 0x274d
mov ecx, esi
call fcn.0040fd10
jmp 0x42fd17
push 0x274c
mov ecx, esi
call fcn.0040fd10
jmp 0x42fd17
mov eax, dword [0x6b1214]
test al, 1
jne 0x42fcc9
or eax, 1
mov dword [0x6b1210], 0x6b120c
push 0x63e650
mov dword [0x6b1214], eax
mov dword [0x6b120c], 0x6413a8
call fcn.005bb37c
add esp, 4
mov dword [esi], 0x2743
jmp 0x42fd10
cmp eax, 0x4d0
jne 0x42fd17
mov eax, dword [0x6b1214]
test al, 1
jne 0x42fd0a
or eax, 1
mov dword [0x6b1210], 0x6b120c
push 0x63e650
mov dword [0x6b1214], eax
mov dword [0x6b120c], 0x6413a8
call fcn.005bb37c
add esp, 4
mov dword [esi], 0x2751
mov dword [esi + 4], 0x6b120c
cmp dword [esi], 0
jne 0x42fda9
cmp dword [ebp + 8], 0xffffffff
jne 0x42fd6a
mov eax, dword [0x6b1214]
test al, 1
jne 0x42fd58
or eax, 1
mov dword [0x6b1210], 0x6b120c
push 0x63e650
mov dword [0x6b1214], eax
mov dword [0x6b120c], 0x6413a8
call fcn.005bb37c
add esp, 4
mov dword [esi], 0x2719
mov dword [esi + 4], 0x6b120c
pop esi
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push 0x7010
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
push esi
push eax
call fcn.00417e70
add esp, 8
test eax, eax
jne 0x42fda9
lea ecx, [ebp - 8]
call fcn.0041e800
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x430000
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x430054
mov eax, dword [0x6b1214]
test al, 1
jne 0x43003e
or eax, 1
mov dword [0x6b1210], 0x6b120c
push 0x63e650
mov dword [0x6b1214], eax
mov dword [0x6b120c], 0x6413a8
call fcn.005bb37c
add esp, 4
mov eax, dword [ebp + 0x14]
pop esi
mov dword [eax], 0x2719
mov dword [eax + 4], 0x6b120c
or eax, 0xffffffff
pop ebp
ret
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov ecx, dword [0x6b1214]
mov edi, eax
test cl, 1
jne 0x4300a1
or ecx, 1
mov dword [0x6b1210], 0x6b120c
push 0x63e650
mov dword [0x6b1214], ecx
mov dword [0x6b120c], 0x6413a8
call fcn.005bb37c
add esp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [ebp + 0x14]
mov dword [esi], eax
mov dword [esi + 4], 0x6b120c
test edi, edi
jne 0x4300db
push 0x6b1290
push 0x413160
push 0x6b128c
call fcn.004805c1
add esp, 0xc
test eax, eax
je 0x4300e1
mov dword [esi], edi
mov dword [esi + 4], 0x6b1290
mov eax, edi
pop edi
pop esi
pop ebp
ret
call fcn.006027a2
int3
Function at 0x431fb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62d280
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6a73e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push dword [0x6b1224]
mov ebx, dword [ebp + 8]
lea eax, [edi + 0x10]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x431ff8
mov eax, dword [eax + 4]
jmp 0x431ffa
xor eax, eax
push 0x28
push eax
push dword [ebp - 0x1c]
call fcn.00414890
mov esi, eax
add esp, 0xc
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x4342e0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
mov eax, dword [ebx]
mov dword [esi + 0x20], eax
mov dword [ebx], 0
mov eax, dword [edi + 0xc]
mov edi, dword [eax + 8]
lock inc dword [edi + 0x18]
push esi
push 0
push 0
mov dword [esi + 0x1c], 1
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x4320a3
lea ebx, [edi + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esi + 0x14], 0
mov eax, dword [edi + 0x58]
test eax, eax
je 0x43208c
mov dword [eax + 0x14], esi
jmp 0x43208f
mov dword [edi + 0x54], esi
mov dword [edi + 0x58], esi
lea eax, [edi + 0x34]
mov ecx, 1
xchg dword [eax], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.0044d3a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4