joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101334c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102afc6d
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x10373f78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov cx, ax
shr cx, 8
cmp al, 6
jb 0x1013359b
jne 0x10133510
cmp cx, 1
jbe 0x1013359b
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10389454]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10385e40]
cmp eax, dword [ecx + 4]
jg 0x101335b5
push 0x10000000
push 0
push dword [ebp + 8]
call dword [0x10385e3c]
test eax, eax
jne 0x101335a4
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x21
push str.C:jenkinsworkspaceext_win_buildexternals_srccrashpadutilwincritical_section_with_debug_info.cc
push str.bool___cdecl_crashpad::_anonymous_namespace::CrashpadInitializeCriticalSectionEx_struct__RTL_CRITICAL_SECTION__unsigned_long_unsigned_long_
lea ecx, [ebp - 0xc0]
call fcn.1012f040
push 0x102b891c
push eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 1
call fcn.1005d660
add esp, 8
lea ecx, [ebp - 0xc0]
call fcn.1012f290
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
push 0x10385e40
call fcn.10264b25
add esp, 4
cmp dword [0x10385e40], 0xffffffff
jne 0x10133530
push 1
push str.::InitializeCriticalSectionEx
push 0x102b8900
mov dword [ebp - 4], 0
call fcn.10147720
push 0x10385e40
mov dword [0x10385e3c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.10264adb
add esp, 0x10
jmp 0x10133530
Function at 0x10145820
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102b1c31
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x10373f78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x10], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xff
jbe 0x101458aa
push 1
push 0x10a
push str.C:jenkinsworkspaceext_win_buildexternals_srccrashpad_snapshotwin_system_snapshot_win.cc
push str.unsigned_char___thiscall_crashpad::internal::SystemSnapshotWin::CPUCount_void__const
lea ecx, [ebp - 0xdc]
call fcn.1012eeb0
push str.dwNumberOfProcessors_exceeds_uint8_t_storage
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call fcn.1005d660
add esp, 8
lea ecx, [ebp - 0xdc]
call fcn.1012f0d0
mov ecx, dword [ebp - 0x20]
mov al, 0
mov word [ebp - 0x10], 0x100
dec al
cmp ecx, 0xff
movzx eax, al
setbe dl
movzx ecx, cl
test dl, dl
cmovne eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x101458e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102b1c81
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
push ebx
push esi
push edi
mov eax, dword [0x10373f78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x14], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [ebp - 0x28]
cmp edx, 0xff
jbe 0x10145974
push 1
push 0x10a
push str.C:jenkinsworkspaceext_win_buildexternals_srccrashpad_snapshotwin_system_snapshot_win.cc
push str.unsigned_char___thiscall_crashpad::internal::SystemSnapshotWin::CPUCount_void__const
lea ecx, [ebp - 0xe4]
call fcn.1012eeb0
push str.dwNumberOfProcessors_exceeds_uint8_t_storage
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
call fcn.1005d660
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
call fcn.1012f0d0
mov edx, dword [ebp - 0x28]
cmp edx, 0xff
mov word [ebp - 0x10], 0x100
setbe al
xor ecx, ecx
test al, al
mov ecx, 0xff
cmovne ecx, edx
xor esi, esi
movzx eax, cl
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ebx, [eax + eax*2]
shl ebx, 3
test eax, eax
je 0x101459f3
cmp ebx, 0x1000
jb 0x101459d6
lea eax, [ebx + 0x23]
cmp eax, ebx
jbe 0x10145ada
push eax
call fcn.10264bfb
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x10145ad5
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x101459df
push ebx
call fcn.10264bfb
add esp, 4
mov esi, eax
push ebx
push 0
push eax
lea edi, [ebx + esi]
mov dword [ebp - 0x10], edi
call fcn.10267270
add esp, 0xc
push ebx
push esi
push 0
push 0
push 0xb
call sub.POWRPROF.dll_CallNtPowerInformation
test eax, eax
je 0x10145a24
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov edx, dword [ebp - 0x14]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x18]
jmp 0x10145a75
mov eax, esi
cmp esi, edi
je 0x10145a41
lea edx, [esi + 0x18]
cmp edx, edi
je 0x10145a41
mov ecx, dword [eax + 8]
cmp ecx, dword [edx + 8]
cmovb eax, edx
add edx, 0x18
cmp edx, edi
jne 0x10145a31
mov eax, dword [eax + 8]
mov ebx, 0xf4240
mov ecx, dword [ebp + 8]
mul ebx
mov dword [ecx], eax
mov eax, esi
mov dword [ecx + 4], edx
cmp esi, edi
je 0x10145a70
lea edx, [esi + 0x18]
cmp edx, edi
je 0x10145a70
mov ecx, dword [eax + 4]
cmp ecx, dword [edx + 4]
cmovb eax, edx
add edx, 0x18
cmp edx, edi
jne 0x10145a60
mov eax, dword [eax + 4]
mul ebx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
test esi, esi
je 0x10145ac1
mov ecx, dword [ebp - 0x10]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
shl ecx, 3
cmp ecx, 0x1000
jb 0x10145ab7
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x10145ad5
mov esi, edx
push ecx
push esi
call fcn.1026505f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.10275373
call fcn.10047c20
int3
Function at 0x10147620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
lea eax, [ebp - 4]
mov ecx, accept
push 0
push eax
mov eax, dword [ebp + 0x10]
cmp eax, ecx
cmova eax, ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10147654
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], 0xffffffff
mov dword [ebp + 0x10], 0xffffffff
jne 0x1014769d
push str.bytes_written___static_cast_DWORD___1_
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 4]
push eax
call fcn.1013deb0
add esp, 0xc
test eax, eax
je 0x1014769d
push eax
push 0x65
push str.C:jenkinsworkspaceext_win_buildexternals_srccrashpadutil_file_file_io_win.cc
push str.long___cdecl_crashpad::internal::NativeWriteFile_void__const_void__unsigned_int_
lea ecx, [ebp - 0xac]
call fcn.1012ef30
lea ecx, [ebp - 0xac]
call fcn.1012f0d0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10155070
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esi], 0x12345678
mov dword [esi + 4], 0x23456789
mov dword [esi + 8], 0x34567890
mov cl, byte [ebx]
test cl, cl
je 0x101550e8
push edi
mov eax, 0x12345678
mov edi, 0x23456789
mov edx, 0x34567890
mov ebx, dword [ebp + 0x10]
movsx ecx, cl
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ebx + ecx*4]
movzx ecx, al
add ecx, edi
mov dword [esi], eax
imul edi, ecx, 0x8088405
inc edi
mov ecx, edi
mov dword [esi + 4], edi
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ebx + ecx*4]
mov ebx, dword [ebp + 8]
inc ebx
mov dword [esi + 8], edx
mov dword [ebp + 8], ebx
mov cl, byte [ebx]
test cl, cl
jne 0x101550a5
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x101550f0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp dword [esi + 0x100ac], ebx
je 0x10155199
cmp dword [esi + 0x7c], ebx
jbe 0x10155199
mov eax, 0xffffff5c
lea ebx, [esi + 0xa4]
sub eax, esi
mov dword [ebp + 8], eax
movzx eax, byte [ebx]
mov ecx, dword [esi + 0x100d0]
xor eax, ecx
mov edx, dword [esi + 0x100dc]
movzx eax, al
mov edi, dword [esi + 0x100d8]
shr ecx, 8
and edi, 0xfffd
or edi, 2
xor ecx, dword [edx + eax*4]
movzx eax, cl
add eax, dword [esi + 0x100d4]
imul eax, eax, 0x8088405
mov dword [esi + 0x100d0], ecx
mov ecx, dword [esi + 0x100d8]
inc eax
mov dword [esi + 0x100d4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [edx + eax*4]
mov eax, edi
xor eax, 1
mov dword [esi + 0x100d8], ecx
imul eax, edi
shr eax, 8
xor byte [ebx], al
inc ebx
mov eax, dword [ebp + 8]
add eax, ebx
cmp eax, dword [esi + 0x7c]
jb 0x10155120
xor ebx, ebx
mov edi, dword [esi + 0x7c]
lea eax, [esi + 0xa4]
push edi
push eax
push dword [esi + 0x2c]
mov eax, dword [esi + 8]
push dword [esi + 0x1c]
call eax
add esp, 0x10
mov dword [esi + 0x7c], 0
or ecx, 0xffffffff
cmp eax, edi
cmovne ebx, ecx
add dword [esi + 0x100c0], edi
mov ecx, dword [esi + 0x48]
mov eax, ebx
adc dword [esi + 0x100c4], 0
add dword [esi + 0x100c8], ecx
pop edi
adc dword [esi + 0x100cc], 0
mov dword [esi + 0x48], 0
pop esi
pop ebx
pop ebp
ret
Function at 0x10158aa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x10158c25
cmp dword [esi + 0x20], 0
je 0x10158c25
cmp dword [esi + 0x24], 0
je 0x10158c25
mov edi, dword [esi + 0x1c]
test edi, edi
je 0x10158c25
cmp dword [edi], esi
jne 0x10158c25
mov eax, dword [edi + 4]
cmp eax, 0x2a
je 0x10158b08
cmp eax, 0x39
je 0x10158b08
cmp eax, 0x45
je 0x10158b08
cmp eax, 0x49
je 0x10158b08
cmp eax, 0x5b
je 0x10158b08
cmp eax, 0x67
je 0x10158b08
cmp eax, 0x71
je 0x10158b08
cmp eax, 0x29a
jne 0x10158c25
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x10158b3d
neg ecx
mov dword [edi + 0x18], ecx
cmp ecx, 2
mov eax, 0x2a
push 0
mov edx, 0x39
cmove eax, edx
push 0
mov dword [edi + 4], eax
push 0
jne 0x10158b5f
call fcn.101596c0
jmp 0x10158b64
call fcn.1015b710
add esp, 0xc
mov dword [esi + 0x30], eax
mov dword [edi + 0x28], 0xfffffffe
push edi
call fcn.1015a200
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.10267270
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x102bf932]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x102bf930]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x102bf934]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x102bf936]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
pop ebp
ret
pop edi
mov eax, 0xfffffffe
pop esi
pop ebp
ret

Function at 0x101596c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.101596d0

Function at 0x1015b710
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1015b720
Function at 0x101662a0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10166336
push esi
call fcn.10177e40
add esp, 4
test al, al
jne 0x10166336
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x101662c5
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.101842d0
add esp, 0xc
test eax, eax
je 0x101662f9
sub eax, esi
push eax
push 0x2e
push esi
call fcn.101842d0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x101662fb
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 0x1016632e
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.10176ab0
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 0x10166310
pop edi
movzx eax, bl
pop ebx
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10170af0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x6a7], 0
je 0x10170b88
cmp dword [esi + 0x1a8], 0
je 0x10170b45
push esi
call fcn.10160e20
push 1
push esi
mov byte [ebp + 8], al
call fcn.101610e0
push dword [esi + 0x14c]
mov eax, dword [esi + 0x1a8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
push dword [ebp + 8]
push esi
call fcn.101610e0
add esp, 0x28
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov eax, ecx
sub eax, 0
je 0x10170b59
sub eax, 1
je 0x10170b59
sub eax, 1
jne 0x10170b88
push dword [esi + 0x148]
lea eax, [ecx*2 + 0x102c4b20]
push 1
add eax, ecx
push 2
push eax
call fcn.1027db4c
push dword [esi + 0x148]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.1027db4c
add esp, 0x20
pop esi
pop ebp
ret
Function at 0x10171150
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x10373f78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10c], eax
xor eax, eax
mov ecx, dword [ebx + 0xc]
push esi
mov esi, 0x158
push edi
mov edx, dword [ecx + 0x134]
cmp dword [ebp + 0xc], edx
sete al
lea eax, [eax*4 + 0x130]
mov eax, dword [eax + ecx]
mov dword [ebp - 0x108], eax
mov eax, 0x168
cmove esi, eax
mov eax, dword [ecx + 0x280]
add esi, ecx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x10171251
xor eax, eax
cmp dword [ebp + 0xc], edx
sete al
lea eax, [eax*4 + 0x148]
cmp dword [eax + ecx], 0x10170dd0
jne 0x10171251
cmp dword [esi], 0
je 0x101711e2
test edi, edi
je 0x10171251
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x108]
call fcn.10181a20
add esp, 0x14
cmp eax, 0xffffffff
je 0x10171251
test al, 1
je 0x10171251
mov ecx, dword [esi]
test ecx, ecx
jne 0x10171235
mov eax, dword [ebx + 0x4b4]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x10373010]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
je 0x10171288
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 [ebp - 0x108]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10171251
add dword [esi + 8], eax
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x110]
push dword [ebp - 0x108]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
jne 0x101712d6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x101712aa
xor edi, edi
lea eax, [edi + 0x51]
jmp 0x101712d6
mov ecx, dword [ebp - 0x10c]
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov dword [ecx], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.102649e4
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.1015cfa0
push eax
push str.Send_failure:__s
push ebx
call fcn.10170b90
add esp, 0x18
mov dword [ebx + 0x8f8], esi
mov eax, 0x37
mov ecx, dword [ebp - 0x10c]
mov dword [ecx], edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.102649e4
mov esp, ebp
pop ebp
ret
Function at 0x101719a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x10373f78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x184]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push 0x80
push 0
push eax
mov dword [ebp - 0x188], 0x80
call fcn.10267270
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x184]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10171a1d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.1015cfa0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x10171a60
push edi
push esi
push dword [ebp - 0x188]
lea eax, [ebp - 0x184]
push eax
call fcn.101715c0
add esp, 0x10
test al, al
jne 0x10171a69
call fcn.10276a94
mov esi, dword [eax]
call fcn.10276a94
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.1015cfa0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.10170b90
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.102649e4
mov esp, ebp
pop ebp
ret
Function at 0x101736a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0x102c4f9c
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x101736c0
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push str.LoadLibraryExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x102b7d9c
push esi
mov dword [ebp - 8], ebx
call fcn.1027e604
add esp, 8
test eax, eax
je 0x1017370c
test ebx, ebx
je 0x101736fc
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10173735
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10173735
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x101737e0
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10173751
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x10373010]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x101737d6
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x101737d6
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10173782
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101737a0
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 0x101737b0
mov eax, dword [ebp - 8]
test eax, eax
je 0x101737cd
push 8
push 0
push ebx
call eax
jmp 0x101737d4
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x10373014]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10173830
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x10373f78]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x10173889
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10173876
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x10173870
shr eax, 8
cmp al, 2
je 0x10173889
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.102649e4
mov esp, ebp
pop ebp
ret
call fcn.1018e7f0
test eax, eax
jne 0x10173a1f
push esi
push edi
push 0x102c4f9c
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x101738b6
mov dword [0x10385f8c], esi
jmp 0x101739f5
push ebx
push str.LoadLibraryExA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x102b7d9c
push str.iphlpapi.dll
mov ebx, eax
call fcn.1027e604
add esp, 8
test eax, eax
je 0x10173903
test ebx, ebx
je 0x101738f1
push 8
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x101739cd
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x101739cd
test ebx, ebx
je 0x1017392c
push str.AddDllDirectory
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1017392c
push 0x800
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x101739cd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x198], eax
test eax, eax
je 0x101739cd
lea ecx, [eax + 0xd]
push ecx
call dword [0x10373010]
mov edi, eax
add esp, 4
test edi, edi
je 0x101739c3
push dword [ebp - 0x198]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x101739c3
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10173970
sub ecx, edx
mov eax, 0x5c
mov edx, edi
mov word [ecx + edi], ax
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x10173987
sub edx, ecx
mov ecx, str.iphlpapi.dll
sub edx, ecx
add edx, edi
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x101739a0
test ebx, ebx
je 0x101739ba
push 8
push 0
push edi
call ebx
jmp 0x101739c1
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push edi
call dword [0x10373014]
add esp, 4
mov dword [0x10385f8c], esi
pop ebx
test esi, esi
je 0x101739f5
push str.if_nametoindex
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x10385f88]
test eax, eax
cmovne ecx, eax
mov dword [0x10385f88], ecx
push 3
push 2
push 0
push 0
push 6
call fcn.1018d9b0
add esp, 0x14
test al, al
setne byte [0x1038b051]
push 0x1038b058
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.102649e4
mov esp, ebp
pop ebp
ret
Function at 0x10177e40
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10373f78]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x10177e87
lea eax, [ebp - 0x14]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x10177e87
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.102649e4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.102649e4
mov esp, ebp
pop ebp
ret

Function at 0x10177fb0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10177ff1
mov eax, dword [esi + 0x70]
cmp byte [eax + 0xe0], 0
jne 0x10177fe4
push 0
call fcn.10177fb0
add esp, 4
test al, al
mov eax, dword [esi + 0x70]
setne cl
inc cl
mov byte [eax + 0xe0], cl
mov eax, dword [esi + 0x70]
cmp byte [eax + 0xe0], 2
pop esi
sete al
pop ebp
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x10178007
xor al, al
pop esi
pop ebp
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
pop ebp
ret