joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10018180
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x7c]
sub esp, 0x7c
push 0xffffffffffffffff
push 0x10068fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10080248]
xor eax, ebp
mov dword [ebp + 0x78], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0xd]
push eax
push 0x1388
lea ecx, [ebp - 0x24]
call fcn.100173d0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
add ecx, 4
call fcn.100029d0
push eax
lea ecx, [ebp - 0x24]
call fcn.10025480
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.100179c0
push eax
mov ecx, dword [ebp + 0x84]
call fcn.100029d0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov esi, eax
lea ecx, [ebp - 0x24]
call fcn.10025480
sub eax, 2
cmp esi, eax
jne 0x1001822d
mov byte [ebp - 0xf], 0
lea ecx, [ebp - 0xf]
push ecx
lea ecx, [ebp - 0x24]
call fcn.10025480
shl eax, 1
push eax
lea ecx, [ebp - 0x24]
call fcn.1001c230
jmp 0x100181cd
push 0
lea ecx, [ebp - 0x24]
call fcn.100179c0
mov dword [ebp - 0x14], eax
lea ecx, [ebp + 0x60]
call fcn.100028d0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
movsx eax, byte [edx]
test eax, eax
je 0x10018329
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp + 0x60]
call fcn.10008ce0
lea ecx, [ebp + 0x60]
call fcn.10011730
movzx edx, al
test edx, edx
je 0x10018274
jmp 0x10018329
lea ecx, [ebp + 0x60]
call fcn.10014b80
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x14], edx
push 0
push 0x3d
lea ecx, [ebp + 0x60]
call fcn.1001bd30
push eax
push 0
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp + 0x60]
call fcn.1001c4e0
mov byte [ebp - 4], 2
mov ecx, dword [0x1006d5f0]
push ecx
push 0
push 0x3d
lea ecx, [ebp + 0x60]
call fcn.1001bd30
add eax, 1
push eax
lea edx, [ebp + 0x30]
push edx
lea ecx, [ebp + 0x60]
call fcn.1001c4e0
mov byte [ebp - 4], 3
lea eax, [ebp + 0x30]
push eax
lea ecx, [ebp + 0x48]
push ecx
lea edx, [ebp]
push edx
call fcn.10016f50
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x30]
push ecx
lea edx, [ebp - 0x38]
push edx
mov ecx, dword [ebp + 0x88]
call fcn.10016f00
mov byte [ebp - 4], 3
lea ecx, [ebp]
call fcn.10017600
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x30]
call fcn.10002900
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x48]
call fcn.10002900
jmp 0x10018246
mov ecx, dword [ebp + 0x88]
call fcn.1001bc60
movzx eax, al
test eax, eax
jne 0x10018344
mov dword [ebp - 0x18], 1
jmp 0x1001834b
mov dword [ebp - 0x18], 0
mov cl, byte [ebp - 0x18]
mov byte [ebp - 0xe], cl
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x60]
call fcn.10002900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.100089c0
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x78]
xor ecx, ebp
call fcn.1004e80a
add ebp, 0x7c
mov esp, ebp
pop ebp
ret 8
Function at 0x10018b40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100690e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x10080248]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0xd]
push eax
push 0x3e8
lea ecx, [ebp - 0x24]
call fcn.100173d0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.100029d0
push eax
lea ecx, [ebp - 0x24]
call fcn.10025480
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.100179c0
push eax
push 0
mov ecx, dword [ebp + 0xc]
call fcn.100029d0
push eax
mov ecx, dword [ebp + 8]
call fcn.100029d0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
lea ecx, [ebp - 0x24]
call fcn.10025480
sub eax, 2
cmp esi, eax
jne 0x10018bed
mov byte [ebp - 0xe], 0
lea ecx, [ebp - 0xe]
push ecx
lea ecx, [ebp - 0x24]
call fcn.10025480
shl eax, 1
push eax
lea ecx, [ebp - 0x24]
call fcn.1001c230
jmp 0x10018b85
push 0
lea ecx, [ebp - 0x24]
call fcn.100179c0
push eax
mov ecx, dword [ebp + 0x10]
call fcn.10008ce0
mov ecx, dword [ebp + 0x10]
call fcn.10011730
movzx edx, al
test edx, edx
jne 0x10018c18
mov dword [ebp - 0x14], 1
jmp 0x10018c1f
mov dword [ebp - 0x14], 0
mov al, byte [ebp - 0x14]
mov byte [ebp - 0xf], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.100089c0
mov al, byte [ebp - 0xf]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1002b3a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0xffffffff
je 0x1002b4be
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1002b402
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
and edx, 8
je 0x1002b402
xor eax, eax
mov word [ebp - 8], ax
xor ecx, ecx
mov word [ebp - 6], cx
lea ecx, [ebp - 0x14]
call fcn.100287f0
lea edx, [ebp - 0x14]
push edx
push 4
lea eax, [ebp - 8]
push eax
push 0x80
push 0xffff
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1002e080
add esp, 0x1c
call fcn.1002b2d0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
push eax
call fcn.100270b0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1002b4be
push 0
push 0x2733
lea ecx, [ebp - 0x1c]
call fcn.100267f0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.10029e90
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x1002b477
push 0
push 0x4d5
lea ecx, [ebp - 0x24]
call fcn.100267f0
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.10029e90
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x1002b4be
mov dword [ebp - 0xc], 0
lea edx, [ebp - 0xc]
push edx
push 0x8004667e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
and edx, 0xfffffffc
mov eax, dword [ebp + 0xc]
mov byte [eax], dl
call fcn.1002b2d0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
push eax
call fcn.100270b0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1002b4d9
lea ecx, [ebp - 0x2c]
call fcn.100287f0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1002c920
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 0
je 0x1002c93e
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
test ecx, ecx
je 0x1002c93e
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
jmp 0x1002c945
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0x10], 0
je 0x1002c963
mov ecx, dword [ebp + 0x10]
movsx edx, byte [ecx]
test edx, edx
je 0x1002c963
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
jmp 0x1002c96a
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 8]
mov dword [ebp + 0x10], ecx
call fcn.1002b2d0
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.1002eba0
add esp, 8
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret

Function at 0x1002cb40
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ebp - 8], eax
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0xc]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1002ead0
movzx ecx, al
test ecx, ecx
je 0x1002cb95
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1002cbb8
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
push 0x1002af40
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esp, ebp
pop ebp
ret
Function at 0x1002d010
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x140
mov eax, dword [0x10080248]
xor eax, ebp
mov dword [ebp + 0x68], eax
cmp dword [ebp + 0x74], 0xffffffff
jne 0x1002d040
push 0x2719
mov ecx, dword [ebp + 0x7c]
call fcn.10026850
or eax, 0xffffffff
jmp 0x1002d1c0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xa0], 0
jmp 0x1002d065
mov eax, dword [ebp - 0xa0]
add eax, 1
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa0]
cmp ecx, dword [ebp - 0x9c]
jae 0x1002d089
mov edx, dword [ebp - 0xa0]
mov eax, dword [ebp + edx*4 - 0x98]
cmp eax, dword [ebp + 0x74]
jne 0x1002d087
jmp 0x1002d089
jmp 0x1002d056
mov ecx, dword [ebp - 0xa0]
cmp ecx, dword [ebp - 0x9c]
jne 0x1002d0bf
cmp dword [ebp - 0x9c], 0x40
jae 0x1002d0bf
mov edx, dword [ebp - 0xa0]
mov eax, dword [ebp + 0x74]
mov dword [ebp + edx*4 - 0x98], eax
mov ecx, dword [ebp - 0x9c]
add ecx, 1
mov dword [ebp - 0x9c], ecx
xor edx, edx
jne 0x1002d04a
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
movzx eax, byte [ebp + 0x78]
and eax, 1
je 0x1002d0ee
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xa8], ecx
jmp 0x1002d0f8
mov dword [ebp - 0xa8], 0
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0xb4], edx
call fcn.1002b2d0
mov eax, dword [ebp + 0x7c]
push eax
mov ecx, dword [ebp - 0xb4]
push ecx
push 0
push 0
lea edx, [ebp - 0x9c]
push edx
mov eax, dword [ebp + 0x74]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
push eax
call fcn.100270b0
add esp, 8
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jne 0x1002d199
movzx ecx, byte [ebp + 0x78]
and ecx, 1
je 0x1002d167
push 0
push 0x2733
lea ecx, [ebp - 0xd4]
call fcn.100267f0
mov dword [ebp - 0xac], eax
jmp 0x1002d178
lea ecx, [ebp - 0xc4]
call fcn.100287f0
mov dword [ebp - 0xac], eax
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0xb0], edx
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0x7c]
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x1002d1ba
cmp dword [ebp - 0xa4], 0
jle 0x1002d1ba
lea ecx, [ebp - 0xcc]
call fcn.100287f0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0x7c]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp + 0x68]
xor ecx, ebp
call fcn.1004e80a
add ebp, 0x6c
mov esp, ebp
pop ebp
ret
Function at 0x1002d1e0
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x140
mov eax, dword [0x10080248]
xor eax, ebp
mov dword [ebp + 0x68], eax
cmp dword [ebp + 0x74], 0xffffffff
jne 0x1002d210
push 0x2719
mov ecx, dword [ebp + 0x7c]
call fcn.10026850
or eax, 0xffffffff
jmp 0x1002d390
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xa0], 0
jmp 0x1002d235
mov eax, dword [ebp - 0xa0]
add eax, 1
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa0]
cmp ecx, dword [ebp - 0x9c]
jae 0x1002d259
mov edx, dword [ebp - 0xa0]
mov eax, dword [ebp + edx*4 - 0x98]
cmp eax, dword [ebp + 0x74]
jne 0x1002d257
jmp 0x1002d259
jmp 0x1002d226
mov ecx, dword [ebp - 0xa0]
cmp ecx, dword [ebp - 0x9c]
jne 0x1002d28f
cmp dword [ebp - 0x9c], 0x40
jae 0x1002d28f
mov edx, dword [ebp - 0xa0]
mov eax, dword [ebp + 0x74]
mov dword [ebp + edx*4 - 0x98], eax
mov ecx, dword [ebp - 0x9c]
add ecx, 1
mov dword [ebp - 0x9c], ecx
xor edx, edx
jne 0x1002d21a
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
movzx eax, byte [ebp + 0x78]
and eax, 1
je 0x1002d2be
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xa8], ecx
jmp 0x1002d2c8
mov dword [ebp - 0xa8], 0
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0xb4], edx
call fcn.1002b2d0
mov eax, dword [ebp + 0x7c]
push eax
mov ecx, dword [ebp - 0xb4]
push ecx
push 0
lea edx, [ebp - 0x9c]
push edx
push 0
mov eax, dword [ebp + 0x74]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
push eax
call fcn.100270b0
add esp, 8
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jne 0x1002d369
movzx ecx, byte [ebp + 0x78]
and ecx, 1
je 0x1002d337
push 0
push 0x2733
lea ecx, [ebp - 0xd4]
call fcn.100267f0
mov dword [ebp - 0xac], eax
jmp 0x1002d348
lea ecx, [ebp - 0xc4]
call fcn.100287f0
mov dword [ebp - 0xac], eax
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0xb0], edx
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0x7c]
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x1002d38a
cmp dword [ebp - 0xa4], 0
jle 0x1002d38a
lea ecx, [ebp - 0xcc]
call fcn.100287f0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0x7c]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp + 0x68]
xor ecx, ebp
call fcn.1004e80a
add ebp, 0x6c
mov esp, ebp
pop ebp
ret
Function at 0x1002d6a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.1002b2d0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x20]
push ecx
push 0
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
push eax
call fcn.100270b0
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x20]
call fcn.10023fc0
cmp eax, 0x40
jne 0x1002d720
push 0x2746
mov ecx, dword [ebp + 0x20]
call fcn.10026850
jmp 0x1002d73c
mov ecx, dword [ebp + 0x20]
call fcn.10023fc0
cmp eax, 0x4d2
jne 0x1002d73c
push 0x274d
mov ecx, dword [ebp + 0x20]
call fcn.10026850
cmp dword [ebp - 0x14], 0
je 0x1002d747
or eax, 0xffffffff
jmp 0x1002d75f
lea ecx, [ebp - 0x1c]
call fcn.100287f0
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 0x20]
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x1002dee0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call fcn.1002b2d0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x18]
push edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
push eax
call fcn.100270b0
add esp, 8
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x18]
call fcn.10023fc0
cmp eax, 0x40
jne 0x1002df48
push 0x2746
mov ecx, dword [ebp + 0x18]
call fcn.10026850
jmp 0x1002df64
mov ecx, dword [ebp + 0x18]
call fcn.10023fc0
cmp eax, 0x4d2
jne 0x1002df64
push 0x274d
mov ecx, dword [ebp + 0x18]
call fcn.10026850
cmp dword [ebp - 0x10], 0
je 0x1002df6f
or eax, 0xffffffff
jmp 0x1002df87
lea ecx, [ebp - 0x18]
call fcn.100287f0
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1002df90
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call fcn.1002b2d0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0x20]
push ecx
push 0
push 0
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSASendTo]
push eax
call fcn.100270b0
add esp, 8
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x20]
call fcn.10023fc0
cmp eax, 0x40
jne 0x1002dffa
push 0x2746
mov ecx, dword [ebp + 0x20]
call fcn.10026850
jmp 0x1002e016
mov ecx, dword [ebp + 0x20]
call fcn.10023fc0
cmp eax, 0x4d2
jne 0x1002e016
push 0x274d
mov ecx, dword [ebp + 0x20]
call fcn.10026850
cmp dword [ebp - 0xc], 0
je 0x1002e021
or eax, 0xffffffff
jmp 0x1002e039
lea ecx, [ebp - 0x14]
call fcn.100287f0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0x20]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x1002e500
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call fcn.1002b2d0
mov eax, dword [ebp + 0x14]
push eax
push 1
push 0
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_WSASocketW]
push eax
call fcn.100270b0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1002e53e
mov eax, dword [ebp - 4]
jmp 0x1002e577
cmp dword [ebp + 8], 0x17
jne 0x1002e55f
mov dword [ebp - 8], 0
push 4
lea ecx, [ebp - 8]
push ecx
push 0x1b
push 0x29
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 0x10]
call fcn.100287f0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1002e7f0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x10080248]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x1002e859
lea ecx, [ebp - 0x194]
push ecx
movzx edx, byte [ebp + 0xc]
and edx, 0xff
movzx eax, dl
movzx ecx, byte [ebp + 0x10]
and ecx, 0xff
movzx edx, cl
shl edx, 8
or eax, edx
push eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x198], eax
mov eax, dword [ebp - 0x198]
push eax
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004e80a
mov esp, ebp
pop ebp
ret

Function at 0x1002f120
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1002f161
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
call fcn.1002c910
push eax
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.10028a40
push 0x1006de88
lea ecx, [ebp - 0x10]
push ecx
call fcn.1002eb20
add esp, 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1003c670
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x3a8]
sub esp, 0x428
mov eax, dword [0x10080248]
xor eax, ebp
mov dword [ebp + 0x3a4], eax
cmp dword [ebp + 0x3b0], 0
je 0x1003c6b5
mov eax, dword [ebp + 0x3b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1003c6b5
push 0
mov ecx, dword [ebp + 0x3b0]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp + 0x3b4]
movzx eax, word [edx]
test eax, eax
jne 0x1003c6c7
jmp 0x1003c7fd
mov ecx, dword [ebp + 0x3b4]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x74]
movzx ecx, word [eax]
test ecx, ecx
je 0x1003c707
mov edx, dword [ebp - 0x74]
movzx eax, word [edx]
cmp eax, 0x2f
je 0x1003c6f6
mov ecx, dword [ebp - 0x74]
movzx edx, word [ecx]
cmp edx, 0x5c
jne 0x1003c6fc
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x74]
add ecx, 2
mov dword [ebp - 0x74], ecx
jmp 0x1003c6d6
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp + 0x3b4]
je 0x1003c77f
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3b4]
sar ecx, 1
shl ecx, 1
push ecx
mov edx, dword [ebp + 0x3b4]
push edx
lea eax, [ebp - 0x6c]
push eax
call fcn.1004da20
add esp, 0xc
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3b4]
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x7c], ecx
cmp dword [ebp - 0x7c], 0x208
jae 0x1003c754
jmp 0x1003c759
call fcn.10053670
xor edx, edx
mov eax, dword [ebp - 0x7c]
mov word [ebp + eax - 0x6c], dx
lea ecx, [ebp - 0x6c]
push ecx
mov edx, dword [ebp + 0x3b0]
push edx
call fcn.1003c670
add esp, 8
mov eax, dword [ebp - 0x78]
add eax, 2
mov dword [ebp - 0x78], eax
mov ecx, 2
imul edx, ecx, 0
mov dword [ebp - 0x80], edx
cmp dword [ebp - 0x80], 0x208
jae 0x1003c795
jmp 0x1003c79a
call fcn.10053670
xor eax, eax
mov ecx, dword [ebp - 0x80]
mov word [ebp + ecx + 0x19c], ax
cmp dword [ebp + 0x3b0], 0
je 0x1003c7c6
mov edx, dword [ebp + 0x3b0]
push edx
lea eax, [ebp + 0x19c]
push eax
call fcn.10053877
add esp, 8
mov ecx, dword [ebp + 0x3b4]
push ecx
lea edx, [ebp + 0x19c]
push edx
call fcn.10053848
add esp, 8
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1003c7fd
push 0
lea ecx, [ebp + 0x19c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp + 0x3a4]
xor ecx, ebp
call fcn.1004e80a
add ebp, 0x3a8
mov esp, ebp
pop ebp
ret
Function at 0x1003d340
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x1003d35a
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 0xffffffff
je 0x1003d364
mov eax, 0x1000000
jmp 0x1003d44e
mov edx, dword [ebp - 0xc]
add edx, 0x244
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp - 0xc]
add eax, 0x244
push eax
call fcn.100507f0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dx, word [ecx + eax*2 + 0x242]
mov word [ebp - 8], dx
movzx eax, word [ebp - 8]
cmp eax, 0x5c
je 0x1003d3c2
movzx ecx, word [ebp - 8]
cmp ecx, 0x2f
je 0x1003d3c2
push 0x10070720
mov edx, dword [ebp - 0xc]
add edx, 0x244
push edx
call fcn.10053848
add esp, 8
cmp dword [ebp + 0x10], 1
jne 0x1003d406
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x1003d3ea
mov dword [ebp - 0x10], 1
jmp 0x1003d3f1
mov dword [ebp - 0x10], 0
mov cl, byte [ebp - 0x10]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
test edx, edx
jne 0x1003d406
mov eax, 0x2000000
jmp 0x1003d44e
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10042190
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1003d42c
mov eax, dword [ebp - 0x1c]
jmp 0x1003d44e
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10042e80
add esp, 4
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x1003d44c
mov eax, 0x200
jmp 0x1003d44e
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc