joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10105c60
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x14]
test eax, eax
jg 0x10105c81
jl 0x10105c77
test esi, esi
jne 0x10105c81
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ecx
ret 0xc
cmp dword [ebx + 0x38], 0
push ebp
push edi
mov edi, esi
je 0x10105d34
mov ebp, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
nop dword [eax]
mov ecx, ebx
call fcn.100efa30
mov esi, eax
mov eax, edx
mov dword [esp + 0x10], eax
test eax, eax
jl 0x10105cf1
jg 0x10105cb9
test esi, esi
je 0x10105cf1
cmp ebp, eax
jg 0x10105cc9
jl 0x10105cc3
cmp edi, esi
jae 0x10105cc9
mov esi, edi
mov dword [esp + 0x10], ebp
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push dword [esp + 0x20]
call fcn.101787d0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
sub edi, esi
sbb ebp, dword [esp + 0x10]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x18]
jmp 0x10105d10
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x10105d20
mov eax, dword [esp + 0x18]
add edi, 0xffffffff
mov esi, 1
adc ebp, 0xffffffff
mov byte [eax], cl
add eax, esi
mov dword [esp + 0x18], eax
test ebp, ebp
jg 0x10105ca0
jl 0x10105d20
test edi, edi
jne 0x10105ca0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, edi
pop edi
sbb edx, ebp
pop ebp
pop esi
pop ebx
pop ecx
ret 0xc
mov eax, dword [ebx + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, dword [eax]
test edx, edx
je 0x10105d79
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
test eax, eax
je 0x10105d80
mov edi, dword [esp + 0x1c]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ebp
call fcn.101787d0
mov eax, dword [ebx + 0x2c]
add ebp, esi
sub edi, esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x10105d80
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
je 0x10105de9
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10105daa
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax], edx
cmp edi, 0xfff
jbe 0x10105dd4
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call fcn.10186580
add esp, 0x10
add ebp, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10105de9
cmp edi, eax
ja 0x10105db2
test edi, edi
je 0x10105de9
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call fcn.10186580
add esp, 0x10
sub edi, eax
mov edx, dword [esp + 0x20]
sub esi, edi
pop edi
pop ebp
mov eax, esi
sbb edx, 0
pop esi
pop ebx
pop ecx
ret 0xc
Function at 0x10108e40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a6664
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x101fd700]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x114]
push 0x104
push eax
push str.SteamPath
mov dword [ebp - 0x16c], esi
mov dword [ebp - 0x168], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x138], 0
xorps xmm0, xmm0
mov dword [ebp - 0x134], 0
push eax
lea ecx, [ebp - 0x148]
movups xmmword [ebp - 0x148], xmm0
call fcn.100cfea0
cmp dword [ebp - 0x138], 0
mov dword [ebp - 4], 0
jne 0x10108f6b
lea eax, [ebp - 0x164]
mov dword [ebp - 0x120], 0
push eax
lea eax, [ebp - 0x130]
mov dword [ebp - 0x11c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x164], 0x1f
push eax
movups xmmword [ebp - 0x130], xmm0
call fcn.100cfe40
movups xmm0, xmmword [str.C:_Program_Files__x86__Steam]
mov ecx, eax
mov dword [ebp - 0x120], 0x1c
mov eax, dword [ebp - 0x164]
add esp, 8
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x130], ecx
movups xmmword [ecx], xmm0
movq xmm0, qword [0x101af808]
movq qword [ecx + 0x10], xmm0
mov eax, dword [0x101af810]
mov dword [ecx + 0x18], eax
mov byte [ecx + 0x1c], 0
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 1
mov eax, 1
jmp 0x10108f8b
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x160]
call fcn.100d9b90
mov ecx, eax
mov dword [ebp - 4], 2
mov eax, 2
cmp dword [ecx + 0x14], 0xf
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x164], eax
mov eax, dword [ecx + 0x10]
mov byte [ebp - 0x16c], 0
jbe 0x10108fa9
mov ecx, dword [ecx]
push dword [ebp - 0x16c]
push eax
push ecx
push esi
call fcn.100cff30
mov eax, dword [ebp - 0x164]
add esp, 0x10
or eax, 0xc
test al, 2
je 0x1010902b
mov ecx, dword [ebp - 0x14c]
and eax, 0xfffffffd
mov dword [ebp - 0x164], eax
cmp ecx, 0xf
jbe 0x10109010
mov edx, dword [ebp - 0x160]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10109000
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101090d2
push ecx
push edx
call fcn.10176a32
mov eax, dword [ebp - 0x164]
add esp, 8
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0xf
mov byte [ebp - 0x160], 0
test al, 1
je 0x10109080
mov ecx, dword [ebp - 0x11c]
cmp ecx, 0xf
jbe 0x10109065
mov edx, dword [ebp - 0x130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1010905b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101090d2
push ecx
push edx
call fcn.10176a32
add esp, 8
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
mov ecx, dword [ebp - 0x134]
cmp ecx, 0xf
jbe 0x101090b6
mov edx, dword [ebp - 0x148]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x101090ac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101090d2
push ecx
push edx
call fcn.10176a32
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10176e3f
mov esp, ebp
pop ebp
ret
call fcn.1017c2af
int3
Function at 0x101176e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
mov cl, byte [esp + 0x20]
mov eax, 0x21c
push ebx
push ebp
test cl, cl
mov edx, 0x1dc
push esi
cmove eax, edx
push edi
mov edi, dword [esp + 0x2c]
add eax, edi
mov dword [esp + 0x20], eax
test cl, cl
je 0x10117710
mov eax, dword [edi + 0xac]
jmp 0x10117713
mov eax, dword [edi + 0x64]
mov ebp, dword [esp + 0x40]
test ebp, ebp
je 0x1011771f
mov byte [ebp], 0
mov ebx, dword [esp + 0x28]
mov esi, dword [ebx + 0x900]
test esi, esi
je 0x101178da
mov ecx, dword [esi + 0x14]
push eax
mov dword [esp + 0x44], ecx
call dword [0x101fd2f0]
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x10117775
cmp byte [edi + 0x269], 0
je 0x10117782
push dword [edi + 0x7c]
call dword [0x101fd2f0]
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
jne 0x1011778a
mov ebx, dword [esp + 0x14]
push ebx
call dword [0x101fd2e8]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x14
ret
mov dword [esp + 0x28], 0
cmp byte [edi + 0x26a], 0
je 0x1011779f
mov ecx, dword [edi + 0xcc]
mov dword [esp + 0x18], ecx
jmp 0x101177a7
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x101177bd
test byte [eax + 4], 0x10
je 0x101177bd
lea ecx, [eax + 0x74]
mov dword [esp + 0x10], ecx
jmp 0x101177c7
lea eax, [ebx + 0x904]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x4c0]
mov edx, 1
cmp eax, edx
jbe 0x10117813
mov ecx, dword [ebx + 0x900]
add ecx, 0x74
nop
cmp dword [ecx - 8], 0
mov dword [esp + 0x1c], esi
je 0x10117813
mov eax, dword [ecx]
lea esi, [ecx - 0x14]
cmp eax, dword [esp + 0x40]
cmovge esi, dword [esp + 0x1c]
inc edx
add ecx, 0x60
cmp eax, dword [esp + 0x40]
cmovge eax, dword [esp + 0x40]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x4c0]
cmp edx, eax
jb 0x101177e0
cmp edx, eax
jne 0x10117822
push esi
call fcn.101182a0
add esp, 4
jmp 0x1011782e
lea esi, [edx + edx*2]
shl esi, 5
add esi, dword [ebx + 0x900]
mov eax, dword [esp + 0x34]
push dword [esi]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov dword [esi + 0x14], eax
call dword [0x101fd2e8]
push dword [esi + 4]
call dword [0x101fd2e8]
mov eax, dword [esp + 0x30]
add esp, 8
cmp byte [esp + 0x30], 0
mov ebx, dword [esp + 0x14]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esi], ebx
mov dword [esi + 0x1c], eax
je 0x1011787c
mov eax, dword [edi + 0xc4]
jmp 0x10117882
mov eax, dword [edi + 0xc8]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x2a8]
lea edi, [esi + 0x20]
push edi
push dword [esp + 0x24]
mov eax, dword [eax]
mov dword [esi + 8], eax
call fcn.10116f40
add esp, 8
test al, al
jne 0x101178d2
push edi
call fcn.101171a0
push ebx
mov dword [esi + 0xc], 0
call dword [0x101fd2e8]
push dword [esp + 0x30]
call dword [0x101fd2e8]
add esp, 0xc
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
test ebp, ebp
je 0x101178da
mov byte [ebp], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
Function at 0x1011ba10
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x1011ba9c
push esi
call fcn.10129a30
add esp, 4
test al, al
jne 0x1011ba9c
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x1011ba33
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.1012a490
add esp, 0xc
test eax, eax
je 0x1011ba67
sub eax, esi
push eax
push 0x2e
push esi
call fcn.1012a490
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1011ba69
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x1011ba95
mov al, byte [esi]
push eax
call fcn.10119b80
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x1011ba77
pop edi
movzx eax, bl
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x10121150
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
mov eax, dword [0x101fd700]
xor eax, esp
mov dword [esp + 0x108], eax
mov edx, dword [esp + 0x114]
mov eax, dword [esp + 0x118]
push ebx
mov ebx, dword [esp + 0x124]
push ebp
mov ebp, dword [esp + 0x118]
mov dword [esp + 0xc], eax
push esi
push edi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + edx*4 + 0x150]
lea esi, [ecx + 0x178]
mov dword [esp + 0x10], eax
mov eax, edx
shl eax, 4
add esi, eax
mov eax, dword [ecx + 0x2a8]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x1012123a
cmp dword [ecx + edx*4 + 0x168], 0x10121000
jne 0x1012123a
cmp dword [esi], 0
je 0x101211cf
test edi, edi
je 0x1012123a
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.101423a0
add esp, 0x14
cmp eax, 0xffffffff
je 0x1012123a
test al, 1
je 0x1012123a
mov ecx, dword [esi]
test ecx, ecx
jne 0x10121220
mov eax, dword [ebp + 0x4c8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x101fd2e4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
je 0x10121278
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1012123a
add dword [esi + 8], eax
push 0
push dword [esp + 0x130]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x101212ae
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x10121283
xor esi, esi
mov dword [ebx], 0x51
jmp 0x101212ae
mov dword [ebx], 0x1b
or eax, 0xffffffff
jmp 0x101212b0
push 0x100
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.10128e80
push eax
push str.Send_failure:__s
push ebp
call fcn.10120da0
mov dword [ebp + 0x948], edi
add esp, 0x18
mov dword [ebx], 0x37
mov eax, esi
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10176e3f
add esp, 0x10c
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x1a4], 0
je 0x101217cd
push eax
call fcn.10117970
add esp, 4
test eax, eax
je 0x101217ee
mov al, 1
ret
mov eax, dword [eax + 0x150]
cmp eax, 0xffffffff
je 0x101217ee
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
ret
xor al, al
ret
Function at 0x101220b0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x10203684]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x10122101
push 3
push 2
push eax
push eax
push 6
call fcn.10146220
add esp, 0x14
test al, al
je 0x101220f5
mov dword [0x10203684], 2
add esp, 0xc
ret
mov dword [0x10203684], 1
jmp 0x10122106
cmp eax, 2
je 0x1012214c
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x10122131
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x1012214c
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x10123520
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x101b2504
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x1012353a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x101b2520
push esi
call fcn.1018cc30
add esp, 8
test eax, eax
je 0x10123582
test ebp, ebp
je 0x10123573
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x101235a8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x101235a8
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x1012365f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101235c5
sub ecx, ebx
lea eax, [ecx + 1]
add eax, edx
push eax
call dword [0x101fd2e4]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10123655
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10123655
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101235f7
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10123610
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x10123620
test ebp, ebp
je 0x1012364c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x101fd2e8]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x101fd2e8]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x10127250
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x101fd2ec]
mov edi, eax
add esp, 8
test edi, edi
je 0x101272a7
nop word [eax + eax]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x101272bf
cmp esi, ebx
je 0x101272bf
cmp esi, 0x8000
ja 0x101272bf
cmp esi, ebx
jb 0x101272b8
push esi
push edi
call dword [0x101fd2ec]
mov edi, eax
add esp, 8
test edi, edi
jne 0x10127270
push ebp
call dword [0x101fd2e8]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x101fd2e8]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10129a30
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x18
mov eax, dword [0x101fd700]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
lea eax, [esp + 4]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x10129a78
lea eax, [esp + 8]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
pop esi
setg al
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10176e3f
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
mov al, 1
pop esi
xor ecx, esp
call fcn.10176e3f
add esp, 0x18
ret

Function at 0x10129b70
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x10129b82
mov eax, dword [eax + 0x70]
mov al, byte [eax + 0xe3]
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x10129b96
xor al, al
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
ret
Function at 0x1012ab80
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.10140a20
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.10193957
push dword [esp + 0x40]
mov edi, eax
call fcn.10193957
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x1012ac15
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.10140a20
movups xmm0, xmmword [esp + 0x14]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.10140ad0
add esp, 0x20
test edx, edx
ja 0x1012ac39
jb 0x1012ac07
cmp eax, 0x3e8
ja 0x1012ac39
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x1012abd0
test edi, edi
je 0x1012ac22
push edi
call fcn.1017c32c
add esp, 4
test esi, esi
je 0x1012ac2f
push esi
call fcn.1017c32c
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x1012ac46
push edi
call fcn.1017c32c
add esp, 4
test esi, esi
je 0x1012ac53
push esi
call fcn.1017c32c
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret

Function at 0x1012ffc0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x101fd700]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x9c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
or esi, 0xffffffff
push eax
mov ebx, dword [edi + 0xc]
mov ebp, dword [ebx + 0x154]
push ebp
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10130023
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x80
push eax
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
push ebp
push ebx
push edi
call fcn.101216e0
add esp, 0xc
cmp esi, 0xffffffff
jne 0x10130048
push str.Error_accept__ing_server_connect
push edi
call fcn.10120da0
add esp, 8
mov eax, 0x1e
jmp 0x101300b8
push str.Connection_accepted_from_server
push edi
call fcn.10120e70
push 1
push esi
mov byte [ebx + 0x26d], 0
mov dword [ebx + 0x154], esi
call fcn.10145e80
add esp, 0x10
mov byte [ebx + 0x280], 1
cmp dword [edi + 0x1b0], 0
je 0x101300b6
push 1
push edi
call fcn.1011eb20
mov eax, dword [edi + 0x1b0]
push 1
push esi
push dword [edi + 0x1b4]
call eax
push 0
push edi
mov esi, eax
call fcn.1011eb20
add esp, 0x1c
test esi, esi
je 0x101300b6
push ebx
push edi
call fcn.10130550
add esp, 8
mov eax, 0x2a
jmp 0x101300b8
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10176e3f
add esp, 0x88
ret
Function at 0x10131ff0
Capabilities:
Check http status code

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
lea eax, [ecx - 0xc8]
xor edi, edi
mov ebx, dword [esi + 0xc]
cmp eax, 0x64
jb 0x10132020
push str.Couldnt_set_desired_mode
push esi
call fcn.10120da0
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
ret
cmp ecx, 0xc8
je 0x10132037
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.10120e70
add esp, 0xc
mov eax, dword [esp + 0x18]
push ebp
cmp eax, 0x13
jne 0x10132052
push ebx
push esi
call fcn.10131ef0
add esp, 8
mov edi, eax
pop ebp
pop edi
pop esi
pop ebx
ret
cmp eax, 0x14
jne 0x10132162
mov edi, dword [esi + 0xc]
xor ebx, ebx
cmp dword [esi + 0x4e8], 2
mov dword [esp + 0x18], edi
jne 0x101320d0
mov eax, dword [esi + 0x134]
mov eax, dword [eax]
test eax, eax
je 0x101320d0
push 3
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push ecx
push ebx
push eax
call fcn.10114ac0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1013218f
push 0x2f
push dword [esp + 0x18]
call fcn.10179450
add esp, 8
test eax, eax
je 0x101320bf
mov ebx, dword [esp + 0x14]
mov ecx, 1
sub eax, ebx
cmovne ecx, eax
mov byte [ecx + ebx], 0
jmp 0x101320cc
push dword [esp + 0x14]
call dword [0x101fd2e8]
add esp, 4
mov edi, dword [esp + 0x18]
mov ecx, dword [esi + 0x530]
test ecx, ecx
jne 0x101320ee
cmp byte [esi + 0xd0c], 0
mov ecx, str.NLST
mov eax, str.LIST
cmove ecx, eax
mov edx, 0x101dca3e
test ebx, ebx
mov eax, edx
cmovne eax, ebx
push eax
mov eax, 0x101e3100
cmove eax, edx
push eax
push ecx
push 0x101b1c38
call fcn.10118710
push ebx
mov ebp, eax
call dword [0x101fd2e8]
add esp, 0x14
test ebp, ebp
jne 0x1013212b
mov edi, 0x1b
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
push ebp
push 0x101defac
lea eax, [edi + 0x440]
push eax
push esi
call fcn.1014cd70
push ebp
mov edi, eax
call dword [0x101fd2e8]
add esp, 0x14
test edi, edi
jne 0x1013218f
mov eax, dword [esi + 0xc]
pop ebp
mov dword [eax + 0x4c4], 0x1f
mov eax, edi
pop edi
pop esi
pop ebx
ret
cmp eax, 0x15
jne 0x1013217b
push 0xd
push 1
push esi
call fcn.10131a80
add esp, 0xc
mov edi, eax
pop ebp
pop edi
pop esi
pop ebx
ret
cmp eax, 0x16
jne 0x1013218f
push 0xe
push 1
push esi
call fcn.10131a80
add esp, 0xc
mov edi, eax
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret