joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002bb0d
Capabilities:
Delete registry value

Disassembly:
push 0x30c
mov eax, 0x1007a0bc
call fcn.10063f27
push 0x430
xor ebx, ebx
call fcn.10059e60
pop ecx
cmp byte [ebp + 8], bl
je 0x1002bb48
mov dword [ebp - 0x318], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x1002bb72
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 1
push ebx
push eax
jmp 0x1002bb6b
mov dword [ebp - 0x314], eax
xor eax, eax
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 0x314], ebx
je 0x1002bb72
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push eax
push ebx
push dword [ebp - 0x314]
call fcn.10031d77
jmp 0x1002bb74
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov esi, eax
cmp byte [esi + 0x420], bl
je 0x1002bbf8
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x318]
mov dword [ebp - 0x314], ebx
push eax
mov ebx, str.OCDLMgr
push ebx
mov dword [ebp - 0x318], 0x200
call fcn.10039fb8
push eax
mov eax, esi
call fcn.1003230b
test eax, eax
jne 0x1002bbf8
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x310]
push pe_nt_image_headers32
push eax
call fcn.1002a5ca
push dword [edi]
lea eax, [ebp - 0x110]
push eax
call fcn.1005b580
add esp, 0x14
test eax, eax
je 0x1002bbf8
push ebx
push dword [esi + 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
xor eax, eax
call fcn.10063faa
ret 4

Function at 0x10030933
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp byte [0x100aba33], bl
jne 0x10030a01
call fcn.10030881
call fcn.100308d4
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x14]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov byte [eax + 0xc], bl
mov byte [eax + 0xd], bl
mov dword [eax + 0x10], ecx
xor eax, eax
push esi
mov ecx, dword [eax*4 + 0x100ab9e8]
cmp byte [ecx + 8], 1
jne 0x10030982
cmp byte [ecx + 9], 1
je 0x100309a4
inc eax
cmp eax, 8
jl 0x1003096f
mov eax, 0x100ab9e8
mov esi, dword [eax]
cmp esi, ebx
je 0x10030998
cmp byte [esi + 8], bl
je 0x100309e2
add eax, 4
cmp eax, 0x100aba08
jl 0x1003098d
jmp 0x10030a00
lea esi, [eax*4 + 0x100ab9e8]
mov eax, dword [esi]
cmp dword [eax], ebx
je 0x100309bd
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
mov dword [eax], ebx
mov eax, dword [esi]
mov byte [eax + 9], bl
mov eax, dword [esi]
mov byte [eax + 8], 1
mov eax, dword [esi]
add eax, 4
push eax
push ebx
push ebx
push 0x10030397
push ebx
push ebx
call fcn.1005b758
mov ecx, dword [esi]
mov dword [ecx], eax
jmp 0x100309fd
lea eax, [esi + 4]
push eax
push ebx
push ebx
push 0x10030397
push ebx
push ebx
mov byte [esi + 9], bl
mov byte [esi + 8], 1
call fcn.1005b758
mov dword [esi], eax
add esp, 0x18
pop esi
pop ebx
pop ebp
ret
Function at 0x1003230b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
or esi, 0xffffffff
cmp byte [eax + 0x420], 0
je 0x1003236e
cmp byte [eax + 0x422], 0
je 0x10032342
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [eax + 0x41c]
mov eax, dword [ebp + 0xc]
call fcn.1002a49b
add esp, 0x10
mov esi, eax
jmp 0x1003236e
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [eax + 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10032364
xor esi, esi
jmp 0x1003236e
cmp eax, 0xea
jne 0x1003236e
push 0xfffffffffffffffe
pop esi
mov eax, esi
pop esi
pop ebp
ret 0x10

Function at 0x10032375
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
cmp byte [eax + 0x420], cl
je 0x100323c5
cmp byte [eax + 0x422], cl
jne 0x100323aa
push dword [ebp + 8]
push dword [ebp + 0xc]
push 1
push ecx
push 0x100989a8
push dword [eax + 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x100323c5
jmp 0x100323c8
push dword [ebp + 0xc]
push 0x100989a8
push dword [eax + 0x41c]
mov eax, dword [ebp + 8]
call fcn.1002a41b
add esp, 0xc
jmp 0x100323c8
or eax, 0xffffffff
pop ebp
ret 8

Function at 0x100323cc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0x420], 0
push esi
push edi
je 0x1003243d
cmp byte [ecx + 0x422], 0
mov edx, dword [eax]
mov eax, edx
lea edi, [eax + 2]
jne 0x10032417
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x100323ea
sub eax, edi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [ecx + 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1003243d
jmp 0x10032440
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x10032417
push edx
push dword [ebp + 8]
sub eax, edi
push dword [ecx + 0x41c]
sar eax, 1
lea eax, [eax + eax + 2]
call fcn.1002a41b
add esp, 0xc
jmp 0x10032440
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret 4

Function at 0x1003251c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x100a82b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x400
lea ecx, [ebp - 0x804]
push ecx
push dword [ebp + 0xc]
push dword [eax + 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1003256a
push esi
lea eax, [ebp - 0x804]
push 0x800
push eax
call fcn.1002a5ca
add esp, 0xc
xor eax, eax
jmp 0x10032578
xor ecx, ecx
cmp eax, 0x103
sete cl
dec ecx
dec ecx
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10059ccb
leave
ret 8
Function at 0x10032f70
Capabilities:
Get file size
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1007b1c1
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push edi
mov eax, dword [0x100a82b0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x10033187
cmp esi, ebx
je 0x10033187
cmp dword [esi + 0x10], ebx
je 0x10033187
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x10033187
lea ecx, [esp + 0x24]
push ecx
push eax
mov byte [esp + 0x1b], bl
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp dword [esp + 0x24], ebx
jne 0x10033177
cmp edi, ebx
je 0x10033177
cmp edi, dword [esi + 0xc]
ja 0x10033177
push edi
call fcn.10059bd9
pop ecx
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x10033177
push ebx
lea ecx, [esp + 0x20]
push ecx
push edi
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10033167
lea eax, [esp + 0x18]
push eax
movzx eax, byte [esi + 8]
push ebx
push eax
push dword [esi + 4]
mov eax, dword [esp + 0x2c]
push dword [esi]
push dword [esp + 0x28]
call fcn.10007b6c
add esp, 0x18
test al, al
je 0x10033167
mov eax, dword [esp + 0x18]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10059bd9
mov edi, eax
pop ecx
mov dword [esp + 0x28], edi
cmp edi, ebx
je 0x10033167
lea eax, [esp + 0x18]
push eax
movzx eax, byte [esi + 8]
push edi
push eax
push dword [esi + 4]
mov eax, dword [esp + 0x2c]
push dword [esi]
push dword [esp + 0x28]
call fcn.10007b6c
push dword [esp + 0x2c]
call fcn.1005a1d0
add esp, 0x1c
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 1
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x80], ebx
mov eax, dword [esi + 0x10]
lea ecx, [esp + 0x2c]
call fcn.10038484
lea eax, [esp + 0x4c]
push eax
call fcn.10038b1d
push edi
lea eax, [esp + 0x30]
push eax
lea edi, [esp + 0x54]
mov byte [esp + 0x88], 1
call fcn.10038529
push dword [esp + 0x28]
test eax, eax
setne byte [esp + 0x17]
call fcn.1005a1d0
mov byte [esp + 0x84], bl
pop ecx
cmp dword [esp + 0x60], ebx
je 0x10033133
push dword [esp + 0x60]
call fcn.1005a0d8
pop ecx
push dword [esp + 0x5c]
call fcn.1005a1d0
push dword [esp + 0x5c]
mov dword [esp + 0x64], ebx
call fcn.1005a1d0
or dword [esp + 0x88], 0xffffffff
pop ecx
pop ecx
mov dword [esp + 0x58], ebx
cmp dword [esp + 0x30], ebx
je 0x10033177
push dword [esp + 0x30]
call fcn.1005a0d8
pop ecx
cmp dword [esp + 0x14], ebx
je 0x10033177
push dword [esp + 0x14]
call fcn.1005a1d0
pop ecx
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
jmp 0x10033189
xor al, al
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10034934
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x87c
mov eax, dword [0x100a82b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x878], eax
mov esi, 0x104
lea eax, [ebp - 0x210]
xor ecx, ecx
push esi
push eax
mov dword [ebp - 0x87c], edi
mov word [ebp - 0x210], cx
call fcn.1005ab1d
add esp, 0xc
mov ebx, 0x100996dc
push ebx
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.1005ab1d
add esp, 0xc
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.1005ab1d
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add esp, 0xc
lea eax, [ebp - 0x870]
push eax
lea eax, [ebp - 0x210]
push eax
call edi
cmp eax, 0xffffffff
je 0x100349cb
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
jmp 0x10034b01
mov eax, dword [ebp + 0x10]
cmp eax, 0xffffffff
je 0x100349dc
cmp eax, dword [ebp + 0x14]
je 0x10034aff
push dword [ebp - 0x878]
xor eax, eax
mov word [ebp - 0x620], ax
lea eax, [ebp - 0x620]
push esi
push eax
call fcn.1005ab1d
add esp, 0xc
push 0x1009ce00
lea eax, [ebp - 0x620]
push esi
push eax
call fcn.1005ab1d
add esp, 0xc
lea eax, [ebp - 0x870]
push eax
lea eax, [ebp - 0x620]
push eax
call edi
mov dword [ebp - 0x874], eax
cmp eax, 0xffffffff
je 0x10034aff
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebp - 0x844]
push 0x1009ce08
push eax
call fcn.1005b3f9
pop ecx
pop ecx
test eax, eax
je 0x10034adc
lea eax, [ebp - 0x844]
push 0x1009ce0c
push eax
call fcn.1005b3f9
pop ecx
pop ecx
test eax, eax
je 0x10034adc
mov eax, dword [ebp - 0x870]
shr eax, 4
test al, 1
je 0x10034adc
push dword [ebp - 0x878]
xor eax, eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x418]
push esi
push eax
call fcn.1005ab1d
add esp, 0xc
push ebx
lea eax, [ebp - 0x418]
push esi
push eax
call fcn.1005ab1d
add esp, 0xc
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x418]
push esi
push eax
call fcn.1005ab1d
mov eax, dword [ebp + 0x14]
add esp, 0xc
inc eax
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x418]
push dword [ebp - 0x87c]
push eax
call fcn.10034934
add esp, 0x10
test al, al
jne 0x10034b10
lea eax, [ebp - 0x870]
push eax
push dword [ebp - 0x874]
call edi
test eax, eax
jne 0x10034a35
push dword [ebp - 0x874]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10059ccb
leave
ret
push dword [ebp - 0x874]
jmp 0x100349be
Function at 0x10035acd
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x884
mov eax, dword [0x100a82b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x880], eax
mov esi, 0x104
lea eax, [ebp - 0x210]
xor ecx, ecx
push esi
push eax
mov dword [ebp - 0x884], edi
mov word [ebp - 0x210], cx
call fcn.1005ab1d
add esp, 0xc
mov ebx, 0x100996dc
push ebx
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.1005ab1d
add esp, 0xc
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.1005ab1d
fldz
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
fstp qword [ebp - 0x878]
add esp, 0xc
lea eax, [ebp - 0x870]
push eax
lea eax, [ebp - 0x210]
push eax
call edi
mov dword [ebp - 0x87c], eax
cmp eax, 0xffffffff
je 0x10035be0
lea eax, [ebp - 0x844]
push 0x1009ce08
push eax
call fcn.1005b3f9
pop ecx
pop ecx
test eax, eax
je 0x10035bbd
lea eax, [ebp - 0x844]
push 0x1009ce0c
push eax
call fcn.1005b3f9
pop ecx
pop ecx
test eax, eax
je 0x10035bbd
mov eax, dword [ebp - 0x870]
shr eax, 4
test al, 1
je 0x10035ba5
cmp byte [ebp + 0x1c], 0
jmp 0x10035ba9
cmp byte [ebp + 0x18], 0
je 0x10035bbd
fld qword [ebp - 0x878]
fadd qword [0x1009dc78]
fstp qword [ebp - 0x878]
lea eax, [ebp - 0x870]
push eax
push dword [ebp - 0x87c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10035b64
push dword [ebp - 0x87c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 0x10]
cmp eax, 0xffffffff
je 0x10035bf1
cmp eax, dword [ebp + 0x14]
je 0x10035d16
push dword [ebp - 0x880]
xor eax, eax
mov word [ebp - 0x620], ax
lea eax, [ebp - 0x620]
push esi
push eax
call fcn.1005ab1d
add esp, 0xc
push 0x1009ce00
lea eax, [ebp - 0x620]
push esi
push eax
call fcn.1005ab1d
add esp, 0xc
lea eax, [ebp - 0x870]
push eax
lea eax, [ebp - 0x620]
push eax
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x10035d16
lea eax, [ebp - 0x844]
push 0x1009ce08
push eax
call fcn.1005b3f9
pop ecx
pop ecx
test eax, eax
je 0x10035cf9
lea eax, [ebp - 0x844]
push 0x1009ce0c
push eax
call fcn.1005b3f9
pop ecx
pop ecx
test eax, eax
je 0x10035cf9
mov eax, dword [ebp - 0x870]
shr eax, 4
test al, 1
je 0x10035cf9
push dword [ebp - 0x880]
xor eax, eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x418]
push esi
push eax
call fcn.1005ab1d
add esp, 0xc
push ebx
lea eax, [ebp - 0x418]
push esi
push eax
call fcn.1005ab1d
add esp, 0xc
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x418]
push esi
push eax
call fcn.1005ab1d
mov eax, dword [ebp + 0x14]
add esp, 0xc
push dword [ebp + 0x1c]
inc eax
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x418]
push dword [ebp - 0x884]
push eax
call fcn.10035acd
fadd qword [ebp - 0x878]
add esp, 0x18
fstp qword [ebp - 0x878]
lea eax, [ebp - 0x870]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10035c40
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
fld qword [ebp - 0x878]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10059ccb
leave
ret
Function at 0x1003b72e
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
push esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jge 0x1003b753
push 2
pop eax
pop esi
leave
ret 4
lea eax, [ebp - 8]
push eax
push 0x1009daf8
push 1
push esi
push 0x1009dae8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x1003b74b
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x1003b78a
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1003b74b
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x1003b7a6
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1003b77f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x20]
test eax, eax
jge 0x1003b7dc
push 2
pop esi
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x1003b74e
cmp word [ebp - 4], si
mov ecx, dword [ebp + 8]
setne al
mov byte [ecx], al
jmp 0x1003b7ba
Function at 0x1003cfcc
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 0x10], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x1003f0fa
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x100a82b0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1003f13e
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x1003f138
shr eax, 8
cmp al, 2
jne 0x1003f138
xor eax, eax
jmp 0x1003f141
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10059ccb
leave
ret

Function at 0x10045a44
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x48
push 1
mov ebx, eax
mov edi, ecx
call dword [0x100a8010]
mov esi, eax
xor eax, eax
pop ecx
pop ecx
mov dword [ebp - 4], 0xc
mov dword [edi + 0x334], esi
cmp esi, eax
je 0x10045af6
mov dword [edi + 0x32c], eax
mov dword [edi + 0x330], eax
mov dword [edi + 0x328], eax
mov dword [edi + 0x324], ebx
or dword [esi + 4], 0xffffffff
push ebx
push dword [ebp + 8]
mov dword [esi], eax
lea eax, [esi + 0x10]
call fcn.100458f9
pop ecx
pop ecx
test eax, eax
je 0x10045af6
lea ebx, [edi + 0x320]
push dword [ebx]
call fcn.1003d8b5
push dword [ebp + 8]
call dword [0x100a800c]
pop ecx
pop ecx
mov dword [ebx], eax
test eax, eax
je 0x10045af6
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x10045af6
lea eax, [esi + 0x10]
push eax
push 0x10045971
call fcn.10052cda
pop ecx
pop ecx
mov dword [esi], eax
test eax, eax
jne 0x10045b10
call fcn.1005f833
mov eax, dword [eax]
mov dword [ebp - 4], eax
add edi, 0x320
push edi
call fcn.100459ef
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10045b13
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x10046405
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0x10046526
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 0x16c]
test ecx, ecx
je 0x10046548
push dword [esi + 0xfc]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push esi
call ecx
add esp, 0x14
pop ebp
ret
test eax, eax
jl 0x1004657f
cmp eax, 2
jg 0x1004657f
push dword [esi + 0xf8]
imul eax, eax, 3
push 1
add eax, 0x10081258
push 2
push eax
call fcn.1005e66d
push dword [esi + 0xf8]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1005e66d
add esp, 0x20
xor eax, eax
pop ebp
ret
Function at 0x10046734
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + eax*4 + 0xc8]
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, dword [ebp + 0x18]
and dword [esi], 0
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10046797
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1004677a
xor ebx, ebx
mov dword [esi], 0x51
jmp 0x10046797
push eax
push edi
call fcn.10052b76
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.100466a5
add esp, 0x14
mov dword [esi], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x10047982
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x100a82b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x134], 0
mov ebx, dword [esi]
mov dword [ebp - 0x10c], esi
jne 0x10047aa2
push edi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 0xc]
mov edi, 0x80
mov dword [ebp - 0x108], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x100479f1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.10052b76
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
jmp 0x10047a98
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x108], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10047a2a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.10052b76
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x10047a98
lea edi, [ebx + 0x86cc]
lea ecx, [ebx + 0x869c]
lea esi, [ebp - 0x84]
call fcn.10047949
test eax, eax
jne 0x10047a62
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x10c]
call fcn.10052b76
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x10047a98
lea edi, [ebx + 0x8700]
lea ecx, [ebx + 0x86d0]
lea esi, [ebp - 0x104]
call fcn.10047949
test eax, eax
jne 0x10047aa1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x10c]
call fcn.10052b76
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.100466a5
add esp, 0x18
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10059ccb
leave
ret

Function at 0x10047ab0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x308]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push 6
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x10047af5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.10052b76
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.1004663b
add esp, 0x14
jmp 0x10047b02
push str.TCP_NODELAY_set_n
push esi
call fcn.1004663b
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x10047f7f
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x518]
push esi
cmp eax, 0xffffffff
je 0x10047fdd
mov ecx, dword [ecx + 0x50c]
mov ecx, dword [ecx]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
je 0x10047fdd
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax]
test ecx, ecx
je 0x10047fac
mov dword [ecx], eax
mov ecx, dword [eax + 0xc8]
mov esi, dword [ebp + 0xc]
mov dword [esi], ecx
cmp dword [eax + 0xe0], 0
jne 0x10047fd8
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push dword [eax + 0xc8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x10047fe3
or dword [esi], 0xffffffff
jmp 0x10047fe3
mov eax, dword [ebp + 0xc]
or dword [eax], 0xffffffff
xor eax, eax
pop esi
pop ebp
ret