joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a7f8
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, 0x42a834
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
xor edx, edx
call fcn.0041e760
mov edx, 0x42a854
mov eax, 0x42aa20
call fcn.0041eb40
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop ebp
ret

Function at 0x42aa38
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov eax, 0x42aac4
mov dword [ebp - 0x30], eax
mov eax, 0x42aae4
mov dword [ebp - 0x2c], eax
mov eax, 0x42ab04
mov dword [ebp - 0x28], eax
mov eax, 0x42ab24
mov dword [ebp - 0x24], eax
mov eax, 0x42ab48
mov dword [ebp - 0x20], eax
mov eax, 0x42ab68
mov dword [ebp - 0x1c], eax
mov eax, 0x42ab8c
mov dword [ebp - 0x18], eax
mov eax, 0x42abac
mov dword [ebp - 0x14], eax
mov eax, 0x42abcc
mov dword [ebp - 0x10], eax
mov eax, 0x42abec
mov dword [ebp - 0xc], eax
mov eax, 0x42ac0c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x30]
mov edx, 0xa
call fcn.0041e760
mov edx, 0x42ac2c
mov eax, 0x42bfcc
call fcn.0041eb40
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x42bfe0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov eax, 0x42c05c
mov dword [ebp - 0x28], eax
mov eax, 0x42c078
mov dword [ebp - 0x24], eax
mov eax, 0x42c098
mov dword [ebp - 0x20], eax
mov eax, 0x42c0b8
mov dword [ebp - 0x1c], eax
mov eax, 0x42c0d8
mov dword [ebp - 0x18], eax
mov eax, 0x42c0f4
mov dword [ebp - 0x14], eax
mov eax, 0x42c114
mov dword [ebp - 0x10], eax
mov eax, 0x42c134
mov dword [ebp - 0xc], eax
mov eax, 0x42c158
mov dword [ebp - 8], eax
lea eax, [ebp - 0x28]
mov edx, 8
call fcn.0041e760
mov edx, 0x42c178
mov eax, 0x42d648
call fcn.0041eb40
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x437068
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x437071
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 4], ecx
mov ebx, edx
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__WStrAddRef_qqrr17System_WideString
lea eax, [ebp + 8]
call sub.rtl60.bpl__System__WStrAddRef_qqrr17System_WideString
xor eax, eax
push ebp
push 0x4371ae
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebx + 0x610]
call fcn.00424dd0
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x3b8]
call sub.FR6.bpl__Fr_class_TfrReport_LoadFromFile_qqr17System_AnsiString
mov eax, dword [ebx + 0x3b8]
mov word [eax + 0x11c], 0xffff
mov eax, ebx
call fcn.00422aac
mov eax, dword [ebx + 0x3b8]
call sub.FR6.bpl__Fr_class_TfrReport_PrepareReport_qqrv
lea eax, [ebp - 0x24]
push eax
xor ecx, ecx
mov edx, 0x4371c4
mov eax, dword [ebp - 8]
call sub.JVCL200_R60.bpl__Jvstrutils_ReplaceStr_qqrx17System_AnsiStringt1t1
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 8]
mov ecx, 0x4371d4
call sub.rtl60.bpl__System__LStrCat3_qqrv
mov ecx, dword [ebp - 8]
mov edx, dword [ebx + 0x8d0]
mov eax, dword [ebx + 0x3b8]
call sub.FR6.bpl__Fr_class_TfrReport_ExportTo_qqrp24Fr_class_TfrExportFilter17System_AnsiString
mov dl, 1
mov eax, dword [sym.imp.rtl60.bpl__Classes_TStringList_]
call sub.rtl60.bpl__System_TObject__bctr_qqrv
mov ebx, eax
mov edx, dword [ebp - 8]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00436ffc
lea edx, [ebp - 0xc]
mov eax, dword [0x417774]
call fcn.004177d0
mov eax, dword [sym.imp.vcl60.bpl__Forms_Application]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
lea eax, [ebp - 0x20]
push eax
push 0x4371e0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4371b5
lea eax, [ebp - 0x24]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x20]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0xc]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 8]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__WStrClr_qqrpv
lea eax, [ebp + 8]
call sub.rtl60.bpl__System__WStrClr_qqrpv
ret
Function at 0x10003064
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x150], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x160], 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x168]
push ecx
push str._CCommPort__2_m_dwThreadID___.f_
push 3
call fcn.10003dfe
add esp, 0xc
mov edx, dword [ebp - 4]
add edx, 0x168
push edx
push 0
mov eax, dword [ebp - 4]
push eax
push 0x10002e5d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x164], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x164], 0
jne 0x100030d5
xor eax, eax
jmp 0x100030da
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x10007104
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x10007131
or eax, 0xffffffff
jmp 0x100071b5
push 0x10
push 0
lea eax, [ebp - 0x18]
push eax
call fcn.10025800
add esp, 0xc
mov word [ebp - 0x18], 2
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x14], eax
mov dx, word [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
mov word [ebp - 4], 0
mov word [ebp - 2], 1
push 4
lea eax, [ebp - 4]
push eax
push 0x80
push 0xffff
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x10007192
or eax, 0xffffffff
jmp 0x100071b5
push 0x10
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x100071b2
mov eax, 0xfffffffe
jmp 0x100071b5
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x10009eaa
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov dword [ebp - 0x104], ecx
mov eax, dword [ebp + 8]
and eax, 0xff
cmp eax, 1
je 0x10009edb
mov ecx, dword [ebp + 8]
and ecx, 0xff
cmp ecx, 2
je 0x10009edb
xor eax, eax
jmp 0x1000a11a
push 0x40
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0xfc]
push eax
mov ecx, dword [ebp - 0x104]
call fcn.1000a526
push 0x38
lea ecx, [ebp - 0xfc]
push ecx
lea edx, [ebp - 0x38]
push edx
push str.91__
mov ecx, dword [ebp - 0x104]
call fcn.1000a27d
push 0x40
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0xfc]
push ecx
mov ecx, dword [ebp - 0x104]
call fcn.1000a526
push 0x40
lea edx, [ebp - 0xfc]
push edx
push 0x1003cbac
mov ecx, dword [ebp - 0x104]
call fcn.1000a49e
mov dword [ebp - 0x5c], 0
jmp 0x10009f53
mov eax, dword [ebp - 0x5c]
add eax, 1
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0x10
jge 0x1000a0a4
lea ecx, [ebp - 0xbc]
push ecx
lea edx, [ebp - 0xdc]
push edx
push 0x1003cbec
mov ecx, dword [ebp - 0x104]
call fcn.1000a3b8
mov eax, dword [ebp + 8]
and eax, 0xff
cmp eax, 1
jne 0x10009fa1
mov ecx, dword [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x104]
call fcn.1000a1d9
jmp 0x10009fb8
mov ecx, dword [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x104]
call fcn.1000a120
push 0x30
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x8c]
push edx
push 0x1003ce74
mov ecx, dword [ebp - 0x104]
call fcn.1000a27d
push 0x30
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0xbc]
push ecx
mov ecx, dword [ebp - 0x104]
call fcn.1000a375
mov dword [ebp - 0x100], 0
jmp 0x1000a00b
mov edx, dword [ebp - 0x100]
add edx, 1
mov dword [ebp - 0x100], edx
cmp dword [ebp - 0x100], 8
jge 0x1000a044
mov eax, dword [ebp - 0x100]
push eax
mov ecx, dword [ebp - 0x100]
imul ecx, ecx, 6
lea edx, [ebp + ecx - 0xbc]
push edx
mov eax, dword [ebp - 0x100]
lea ecx, [ebp + eax*4 - 0x58]
push ecx
mov ecx, dword [ebp - 0x104]
call fcn.1000a2c6
jmp 0x10009ffc
push 0x20
lea edx, [ebp - 0x58]
push edx
push 0x1003ce1c
mov ecx, dword [ebp - 0x104]
call fcn.1000a49e
push 0x20
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp - 0x104]
call fcn.1000a375
push 0x20
lea edx, [ebp - 0xdc]
push edx
lea eax, [ebp - 0xfc]
push eax
call fcn.10025860
add esp, 0xc
push 0x20
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0xdc]
push edx
call fcn.10025860
add esp, 0xc
jmp 0x10009f4a
push 0x20
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.10025860
add esp, 0xc
push 0x20
lea edx, [ebp - 0xdc]
push edx
lea eax, [ebp - 0xfc]
push eax
call fcn.10025860
add esp, 0xc
push 0x20
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0xdc]
push edx
call fcn.10025860
add esp, 0xc
push 0x40
lea eax, [ebp - 0xfc]
push eax
push 0x1003cbac
mov ecx, dword [ebp - 0x104]
call fcn.1000a416
lea ecx, [ebp - 0xfc]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov ecx, dword [ebp - 0x104]
call fcn.1000a5d5
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1000e1b8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003a6c4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
push edi
mov dword [ebp - 0x234], ecx
mov byte [ebp - 0x114], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x21c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x21b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x22c]
call fcn.10002030
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x22c]
call fcn.10036485
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
jmp 0x1000e265
mov eax, dword [ebp - 0x224]
add eax, 1
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x220], 0
jne 0x1000e344
mov dword [ebp - 0x10], 0x104
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x224]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x1000e33f
push 8
push str.WCEUSBSH
lea edx, [ebp - 0x10c]
push edx
call fcn.10026db0
add esp, 0xc
test eax, eax
jne 0x1000e33f
mov dword [ebp - 0x10], 0x104
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x118]
push edx
push 0
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x21c]
push edx
push 0x10046234
push 3
call fcn.10003dfe
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x10046254
push 3
call fcn.10003dfe
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x118]
push edx
push 0x10046274
push 3
call fcn.10003dfe
add esp, 0x10
jmp 0x1000e256
lea eax, [ebp - 0x219]
push eax
lea ecx, [ebp - 0x22c]
call fcn.100178b0
lea ecx, [ebp - 0x22c]
call fcn.10002150
push eax
call fcn.10026b12
add esp, 4
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x230], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.100364fa
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x10017050
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003aaf1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.10032c7b
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.10002030
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.10002030
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.10002030
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.10002030
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.10002030
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.10002030
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.10002030
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.10002030
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.10002030
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call fcn.10002030
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.10002030
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.10002030
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call fcn.10002030
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call fcn.10002030
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x10]
add ecx, 0x3c
call fcn.10002030
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x10]
add ecx, 0x40
call fcn.10002030
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.10002030
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
call fcn.10002030
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.10002030
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.10032c7b
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x10]
add ecx, 0x54
call fcn.10002030
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x10]
add ecx, 0x58
call fcn.10032c7b
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x10]
add ecx, 0x5c
call fcn.10002030
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x100171f0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003ac11
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0x16
mov ecx, dword [ebp - 0x10]
add ecx, 0x5c
call fcn.100364fa
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x10]
add ecx, 0x58
call fcn.100364fa
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x10]
add ecx, 0x54
call fcn.100364fa
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.100364fa
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.100364fa
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
call fcn.100364fa
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.100364fa
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x10]
add ecx, 0x40
call fcn.100364fa
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x10]
add ecx, 0x3c
call fcn.100364fa
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call fcn.100364fa
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call fcn.100364fa
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.100364fa
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.100364fa
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call fcn.100364fa
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.100364fa
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.100364fa
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.100364fa
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.100364fa
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.100364fa
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.100364fa
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.100364fa
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.100364fa
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.100364fa
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
call fcn.100364fa
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1001c64d
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [0x1004b834]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x1001c68b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 4], eax
or eax, 0xffffffff
jmp 0x1001c68e
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1001ccb3
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push esi
push edi
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x108], 1
lea eax, [ebp - 0x108]
push eax
push 0x8004667e
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp - 0x210], 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jge 0x1001cd40
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.10026f2a
mov dword [eax], esi
call fcn.10026f2a
cmp dword [eax], 0x2734
je 0x1001cd40
call fcn.10026f2a
cmp dword [eax], 0x2733
je 0x1001cd40
or eax, 0xffffffff
jmp 0x1001ceba
cmp dword [ebp - 0x214], 0
jne 0x1001cd4e
jmp 0x1001ceb8
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x218], 0
jmp 0x1001cd73
mov edx, dword [ebp - 0x218]
add edx, 1
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 0x218]
cmp eax, dword [ebp - 0x104]
jae 0x1001cd97
mov ecx, dword [ebp - 0x218]
mov edx, dword [ebp + ecx*4 - 0x100]
cmp edx, dword [ebp + 8]
jne 0x1001cd95
jmp 0x1001cd97
jmp 0x1001cd64
mov eax, dword [ebp - 0x218]
cmp eax, dword [ebp - 0x104]
jne 0x1001cdcd
cmp dword [ebp - 0x104], 0x40
jae 0x1001cdcd
mov ecx, dword [ebp - 0x218]
mov edx, dword [ebp + 8]
mov dword [ebp + ecx*4 - 0x100], edx
mov eax, dword [ebp - 0x104]
add eax, 1
mov dword [ebp - 0x104], eax
xor ecx, ecx
test ecx, ecx
jne 0x1001cd58
mov ecx, 0x41
lea esi, [ebp - 0x104]
lea edi, [ebp - 0x20c]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp + 0x14], 0
jg 0x1001cdfe
cmp dword [ebp + 0x18], 0
jg 0x1001cdfe
mov dword [ebp - 0x220], 0
jmp 0x1001ce07
lea edx, [ebp + 0x14]
mov dword [ebp - 0x220], edx
mov eax, dword [ebp - 0x220]
push eax
push 0
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp + 8]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x1001ce4a
call fcn.10026f2a
mov dword [eax], 0x274c
or eax, 0xffffffff
jmp 0x1001ceba
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x1001ce72
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1001ce74
jmp 0x1001ce79
or eax, 0xffffffff
jmp 0x1001ceba
mov dword [ebp - 0x108], 0
lea edx, [ebp - 0x108]
push edx
push 0x8004667e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [ebp - 0x210], 0
je 0x1001ceb4
call fcn.10026f2a
mov ecx, dword [ebp - 0x210]
mov dword [eax], ecx
or eax, 0xffffffff
jmp 0x1001ceba
xor eax, eax
jmp 0x1001ceba
jmp 0x1001ce79
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1001cec2
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
mov dword [ebp - 0x1b8], ecx
mov dword [ebp - 0x1ac], 0
mov word [ebp - 0x14], 2
lea eax, [ebp - 0x1a4]
push eax
mov cx, word [ebp - 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1001cf01
mov eax, 0xfffffffe
jmp 0x1001d058
mov edx, dword [ebp - 0x1a4]
and edx, 0xff
cmp edx, 2
jge 0x1001cf1c
mov eax, 0xfffffffe
jmp 0x1001d058
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x1004b834], eax
cmp dword [0x1004b834], 0xffffffff
jne 0x1001cf40
mov eax, 0xfffffffe
jmp 0x1001d058
push 0x10
push 0
lea eax, [ebp - 0x10]
push eax
call fcn.10025800
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0xc], eax
mov dx, word [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
mov word [ebp - 0x10], 2
mov dword [ebp - 0x1a8], 1
push 4
lea eax, [ebp - 0x1a8]
push eax
push 4
push 0xffff
mov ecx, dword [0x1004b834]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1001cfbb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x1ac], eax
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x1ac]
jmp 0x1001d058
mov dword [ebp - 0x1a8], 3
mov edx, dword [ebp - 0x1a8]
mov dword [ebp - 0x1b4], edx
mov dword [ebp - 0x1b0], 0
mov eax, dword [ebp - 0x1b0]
push eax
mov ecx, dword [ebp - 0x1b4]
push ecx
push 0x10
lea edx, [ebp - 0x10]
push edx
mov eax, dword [0x1004b834]
push eax
mov ecx, dword [ebp - 0x1b8]
call fcn.1001ccb3
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 0xffffffff
jne 0x1001d03c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 0x2733
je 0x1001d03c
mov ecx, dword [0x1004b834]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x1ac]
jmp 0x1001d058
cmp dword [ebp - 0x1ac], 0
je 0x1001d052
mov edx, dword [0x1004b834]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x1ac]
mov esp, ebp
pop ebp
ret 8
Function at 0x1001ead3
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x70], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x70]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
je 0x1001eb10
cmp dword [ebp - 8], 5
je 0x1001eaff
jmp 0x1001eb21
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x50], 0xffffff3b
mov eax, 0xffffff3b
jmp 0x1001eb30
mov edx, dword [ebp - 4]
mov dword [edx + 0x50], 0xffffff3a
mov eax, 0xffffff3a
jmp 0x1001eb30
mov eax, dword [ebp - 4]
mov dword [eax + 0x50], 0xffffff3e
mov eax, 0xffffff3e
mov esp, ebp
pop ebp
ret