joyce8/EMBER2024-capa huggingface dataset:
Function at 0x557220
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c7ca1
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
push ebx
push esi
push edi
mov eax, dword [0x78efc4]
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 0x5572b4
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.005407a0
push str.dwNumberOfProcessors_exceeds_uint8_t_storage
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
call fcn.004b47f0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
call fcn.005409c0
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 0x557333
cmp ebx, 0x1000
jb 0x557316
lea eax, [ebx + 0x23]
cmp eax, ebx
jbe 0x55741a
push eax
call fcn.00677616
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x557415
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x55731f
push ebx
call fcn.00677616
add esp, 4
mov esi, eax
push ebx
push 0
push eax
lea edi, [ebx + esi]
mov dword [ebp - 0x10], edi
call fcn.00679eb0
add esp, 0xc
push ebx
push esi
push 0
push 0
push 0xb
call sub.POWRPROF.dll_CallNtPowerInformation
test eax, eax
je 0x557364
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 0x5573b5
mov eax, esi
cmp esi, edi
je 0x557381
lea edx, [esi + 0x18]
cmp edx, edi
je 0x557381
mov ecx, dword [eax + 8]
cmp ecx, dword [edx + 8]
cmovb eax, edx
add edx, 0x18
cmp edx, edi
jne 0x557371
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 0x5573b0
lea edx, [esi + 0x18]
cmp edx, edi
je 0x5573b0
mov ecx, dword [eax + 4]
cmp ecx, dword [edx + 4]
cmovb eax, edx
add edx, 0x18
cmp edx, edi
jne 0x5573a0
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 0x557401
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 0x5573f7
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x557415
mov esi, edx
push ecx
push esi
call fcn.006779b1
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.00682da2
call fcn.00447c10
int3
Function at 0x558f60
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 0x558f94
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], 0xffffffff
mov dword [ebp + 0x10], 0xffffffff
jne 0x558fdd
push str.bytes_written___static_cast_DWORD___1_
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0054f780
add esp, 0xc
test eax, eax
je 0x558fdd
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.00540820
lea ecx, [ebp - 0xac]
call fcn.005409c0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x566960
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 0x5669d8
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 0x566995
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x5669e0
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 0x566a89
cmp dword [esi + 0x7c], ebx
jbe 0x566a89
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 0x566a10
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 0x56a390
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 0x56a515
cmp dword [esi + 0x20], 0
je 0x56a515
cmp dword [esi + 0x24], 0
je 0x56a515
mov edi, dword [esi + 0x1c]
test edi, edi
je 0x56a515
cmp dword [edi], esi
jne 0x56a515
mov eax, dword [edi + 4]
cmp eax, 0x2a
je 0x56a3f8
cmp eax, 0x39
je 0x56a3f8
cmp eax, 0x45
je 0x56a3f8
cmp eax, 0x49
je 0x56a3f8
cmp eax, 0x5b
je 0x56a3f8
cmp eax, 0x67
je 0x56a3f8
cmp eax, 0x71
je 0x56a3f8
cmp eax, 0x29a
jne 0x56a515
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 0x56a42d
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 0x56a44f
call fcn.0056afb0
jmp 0x56a454
call fcn.0056d000
add esp, 0xc
mov dword [esi + 0x30], eax
mov dword [edi + 0x28], 0xfffffffe
push edi
call fcn.0056baf0
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.00679eb0
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x6d5982]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x6d5980]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x6d5984]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x6d5986]
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 0x56afb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056afc0

Function at 0x56d000
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056d010
Function at 0x577ba0
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 0x577c36
push esi
call fcn.00589750
add esp, 4
test al, al
jne 0x577c36
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x577bc5
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.00595bd0
add esp, 0xc
test eax, eax
je 0x577bf9
sub eax, esi
push eax
push 0x2e
push esi
call fcn.00595bd0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x577bfb
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 0x577c2e
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.005883c0
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 0x577c10
pop edi
movzx eax, bl
pop ebx
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x5823f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x6a7], 0
je 0x582488
cmp dword [esi + 0x1a8], 0
je 0x582445
push esi
call fcn.00572710
push 1
push esi
mov byte [ebp + 8], al
call fcn.005729d0
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.005729d0
add esp, 0x28
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov eax, ecx
sub eax, 0
je 0x582459
sub eax, 1
je 0x582459
sub eax, 1
jne 0x582488
push dword [esi + 0x148]
lea eax, [ecx*2 + 0x6dab70]
push 1
add eax, ecx
push 2
push eax
call fcn.0068dc25
push dword [esi + 0x148]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0068dc25
add esp, 0x20
pop esi
pop ebp
ret
Function at 0x582a50
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 [0x78efc4]
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 0x582b51
xor eax, eax
cmp dword [ebp + 0xc], edx
sete al
lea eax, [eax*4 + 0x148]
cmp dword [eax + ecx], 0x5826d0
jne 0x582b51
cmp dword [esi], 0
je 0x582ae2
test edi, edi
je 0x582b51
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x108]
call fcn.00593320
add esp, 0x14
cmp eax, 0xffffffff
je 0x582b51
test al, 1
je 0x582b51
mov ecx, dword [esi]
test ecx, ecx
jne 0x582b35
mov eax, dword [ebx + 0x4b4]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x78e010]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
je 0x582b88
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 0x582b51
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 0x582bd6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x582baa
xor edi, edi
lea eax, [edi + 0x51]
jmp 0x582bd6
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.006773ff
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.0056e890
push eax
push str.Send_failure:__s
push ebx
call fcn.00582490
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.006773ff
mov esp, ebp
pop ebp
ret
Function at 0x5832a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x78efc4]
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.00679eb0
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 0x58331d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.0056e890
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x583360
push edi
push esi
push dword [ebp - 0x188]
lea eax, [ebp - 0x184]
push eax
call fcn.00582ec0
add esp, 0x10
test al, al
jne 0x583369
call fcn.00683c71
mov esi, dword [eax]
call fcn.00683c71
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.0056e890
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00582490
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006773ff
mov esp, ebp
pop ebp
ret
Function at 0x584fb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0x6dafec
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x584fd0
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 0x6cddec
push esi
mov dword [ebp - 8], ebx
call fcn.00694334
add esp, 8
test eax, eax
je 0x58501c
test ebx, ebx
je 0x58500c
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 0x585045
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x585045
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 0x5850f0
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x585061
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x78e010]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5850e6
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x5850e6
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x585092
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 0x5850b0
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 0x5850c0
mov eax, dword [ebp - 8]
test eax, eax
je 0x5850dd
push 8
push 0
push ebx
call eax
jmp 0x5850e4
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x78e014]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x585140
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x78efc4]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x585199
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x585186
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x585180
shr eax, 8
cmp al, 2
je 0x585199
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006773ff
mov esp, ebp
pop ebp
ret
call fcn.005a00f0
test eax, eax
jne 0x58532f
push esi
push edi
push 0x6dafec
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x5851c6
mov dword [0x7a4f4c], esi
jmp 0x585305
push ebx
push str.LoadLibraryExA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6cddec
push str.iphlpapi.dll
mov ebx, eax
call fcn.00694334
add esp, 8
test eax, eax
je 0x585213
test ebx, ebx
je 0x585201
push 8
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x5852dd
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x5852dd
test ebx, ebx
je 0x58523c
push str.AddDllDirectory
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x58523c
push 0x800
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x5852dd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x198], eax
test eax, eax
je 0x5852dd
lea ecx, [eax + 0xd]
push ecx
call dword [0x78e010]
mov edi, eax
add esp, 4
test edi, edi
je 0x5852d3
push dword [ebp - 0x198]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x5852d3
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x585280
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 0x585297
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 0x5852b0
test ebx, ebx
je 0x5852ca
push 8
push 0
push edi
call ebx
jmp 0x5852d1
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push edi
call dword [0x78e014]
add esp, 4
mov dword [0x7a4f4c], esi
pop ebx
test esi, esi
je 0x585305
push str.if_nametoindex
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x7a4f48]
test eax, eax
cmovne ecx, eax
mov dword [0x7a4f48], ecx
push 3
push 2
push 0
push 0
push 6
call fcn.0059f2c0
add esp, 0x14
test al, al
setne byte [0x7a9c08]
push 0x7a9c10
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006773ff
mov esp, ebp
pop ebp
ret
Function at 0x589750
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x78efc4]
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 0x589797
lea eax, [ebp - 0x14]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x589797
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006773ff
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.006773ff
mov esp, ebp
pop ebp
ret

Function at 0x5898c0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x589901
mov eax, dword [esi + 0x70]
cmp byte [eax + 0xe0], 0
jne 0x5898f4
push 0
call fcn.005898c0
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 0x589917
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
Function at 0x596260
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00588c10
push dword [ebp + 8]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x10], xmm0
call fcn.00696cec
push dword [ebp + 0xc]
mov edi, eax
call fcn.00696cec
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 0x5962e7
lea eax, [ebp - 0x20]
push eax
call fcn.00588c10
movups xmm0, xmmword [ebp - 0x10]
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.00588cc0
add esp, 0x20
test edx, edx
ja 0x59630a
jb 0x5962d5
cmp eax, 0x3e8
ja 0x59630a
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x5962a0
test edi, edi
je 0x5962f4
push edi
call fcn.00683c8f
add esp, 4
test esi, esi
je 0x596301
push esi
call fcn.00683c8f
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x596317
push edi
call fcn.00683c8f
add esp, 4
test esi, esi
je 0x596324
push esi
call fcn.00683c8f
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret