joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f32cb
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3100
call fcn.00447e30
mov eax, dword [0x732694]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x3100], edi
call fcn.005175d0
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.005175d0
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x108]
push eax
push 0x6aae68
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00418510
add esp, 0x10
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4f3361
mov al, 1
jmp 0x4f346a
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.005175d0
push 0x3e8
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.005175d0
push 0x3e8
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.005175d0
add esp, 0x24
mov dword [ebp - 0x30f0], ebx
lea eax, [ebp - 0x30fc]
mov dword [ebp - 0x30f8], ebx
mov dword [ebp - 0x30f4], ebx
push ebx
push eax
push 0x2710
lea eax, [ebp - 0x30ec]
push eax
push 0xc
lea eax, [ebp - 0x30f8]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4f33e3
mov bl, 2
jmp 0x4f3461
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.004f3479
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.004f3479
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f3424
sub ecx, edx
lea eax, [ebp - 0x5f4]
push ecx
push eax
mov ecx, edi
call fcn.004f2fad
lea edx, [ebp - 0x9dc]
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4f3445
mov ecx, dword [ebp - 0x3100]
lea eax, [ebp - 0x9dc]
sub edx, edi
push edx
push eax
call fcn.004f2fad
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00447de7
leave
ret
Function at 0x4f5988
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, ecx
cmp byte [edx + 4], 0
je 0x4f59b8
push esi
xor esi, esi
cmp dword [edx + 0x3cc], esi
jle 0x4f59b7
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub edi, ecx
mov al, byte [edi + ecx]
xor byte [ecx], al
inc ecx
inc esi
cmp esi, dword [edx + 0x3cc]
jl 0x4f59a7
pop edi
pop esi
pop ebp
ret 8
Function at 0x4fc2d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x690220
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x732694]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x67
push 0x6f
push 0x6c
push 0x74
push 0x6e
push 0x65
push 0x74
push 0x6e
push 0x6f
push 0x43
push 0x70
push 0x74
push 0x74
push 0x48
push 0x77
push 0x6f
push 0x68
push 0x53
push str._c_c_c_c_c_c_c_c_c_c_c_c_c_c_c._c_c_c
lea eax, [ebp - 0x28]
push eax
call fcn.004e7163
add esp, 0x50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004474e2
mov byte [ebp - 4], 1
push 0x6aa5d4
lea ecx, [ebp - 0x40]
call fcn.00402d70
push 0x697ab0
lea ecx, [ebp - 0x40]
call fcn.00402d70
push 0x693250
lea ecx, [ebp - 0x40]
call fcn.00402d70
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.0043c280
lea ecx, [ebp - 0x40]
call fcn.004475e4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4fc3f3
push 0x208
push 0
lea eax, [ebp - 0x248]
push eax
call fcn.005175d0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x248]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x40]
call fcn.004fb7c0
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x40]
call fcn.00402d70
push 0x693250
lea ecx, [ebp - 0x40]
call fcn.00402d70
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.0043c280
lea ecx, [ebp - 0x40]
call fcn.004475e4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4fc40f
mov byte [ebp - 0x2ca], 1
jmp 0x4fc416
mov byte [ebp - 0x2ca], 0
mov al, byte [ebp - 0x2ca]
mov byte [ebp - 0x2c9], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00401e90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401e90
mov al, byte [ebp - 0x2c9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00447de7
mov esp, ebp
pop ebp
ret
Function at 0x4ff600
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
je 0x4ff618
cmp dword [ebp + 0xc], 0
jne 0x4ff622
mov eax, 1
jmp 0x4ff71d
push 0
push 0x80
push 3
push 0
push 5
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4ff652
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4ff71d
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4ff67b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4ff71d
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jb 0x4ff691
mov eax, 8
jmp 0x4ff71d
cmp dword [ebp + 0x10], 0
je 0x4ff69f
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
call fcn.00447e5d
add esp, 4
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x60]
mov dword [ecx], edx
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
push 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call fcn.005175d0
add esp, 0xc
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4ff702
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4ff71d
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0xc]
je 0x4ff711
mov eax, 1
jmp 0x4ff71d
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4ffcf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
je 0x4ffd0c
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x4ffd13
mov eax, 1
jmp 0x4ffd75
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4ffd40
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4ffd75
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4ffd69
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4ffd75
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x50267c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x53a224
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00539ee4

Function at 0x53e2fd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053dfc0

Function at 0x53e308
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053e141
Function at 0x54e4e0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x54e529
mov al, byte [esi]
push eax
call fcn.0055a500
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x54e507
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret
Function at 0x556ca0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x6f2], 0
je 0x556d23
cmp dword [edi + 0x1b0], 0
je 0x556ced
push esi
push 1
push edi
call fcn.0054a7b0
push dword [edi + 0x14c]
mov eax, dword [edi + 0x1b0]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.0054a7b0
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x556d23
push dword [edi + 0x148]
lea eax, [eax + eax*2]
push 1
add eax, 0x6bd120
push 2
push eax
call fcn.00532597
push dword [edi + 0x148]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00532597
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

Function at 0x5570a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x732694]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov eax, dword [edx + 0xc]
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
mov ebx, dword [eax + ecx*4 + 0x148]
push ecx
push eax
push edx
mov dword [ebp - 0x108], edx
call fcn.00557520
add esp, 0xc
test eax, eax
je 0x5570fb
pop edi
mov dword [esi], 0x1b
or eax, 0xffffffff
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447de7
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp + 0x14]
push edi
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov dword [esi], 0
cmp edi, 0xffffffff
jne 0x557178
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x557140
xor edi, edi
mov dword [esi], 0x51
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447de7
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x104]
push eax
push ebx
call fcn.00543010
push eax
push str.Send_failure:__s
push dword [ebp - 0x108]
call fcn.00556d30
mov eax, dword [ebp - 0x108]
add esp, 0x18
mov dword [eax + 0x93c], ebx
mov dword [esi], 0x37
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00447de7
mov esp, ebp
pop ebp
ret
Function at 0x557520
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
lea esi, [edx + 0x17]
mov eax, dword [ecx + 0x288]
shl esi, 4
add esi, ecx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x5575f1
cmp dword [ecx + edx*4 + 0x160], 0x556fa0
jne 0x5575f1
cmp dword [esi], 0
je 0x557568
test edi, edi
je 0x5575f1
mov ebx, dword [ecx + edx*4 + 0x148]
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.00564ed0
add esp, 0x14
cmp eax, 0xffffffff
je 0x5575f1
test al, 1
je 0x5575f1
mov ecx, dword [esi]
test ecx, ecx
jne 0x5575cc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4c8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x733408]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
jne 0x5575b7
pop edi
pop esi
lea eax, [ecx + 0x1b]
pop ebx
pop ebp
ret
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x5575ea
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x5575f1
add dword [esi + 8], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov dword [esi + 4], 0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x19c], 0
je 0x5577a0
push eax
call fcn.00550cf0
add esp, 4
test eax, eax
jne 0x5577be
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x148]
cmp eax, 0xffffffff
je 0x55779c
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x55779c
mov al, 1
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x732694]
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.005175d0
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 0x557a2d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.00543010
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x557a70
push edi
push esi
push dword [ebp - 0x188]
lea eax, [ebp - 0x184]
push eax
call fcn.00557600
add esp, 0x10
test al, al
jne 0x557a79
call fcn.00527c8d
mov esi, dword [eax]
call fcn.00527c8d
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.00543010
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00556d30
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00447de7
mov esp, ebp
pop ebp
ret
Function at 0x558200
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x742114]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x558251
push 3
push 2
push eax
push 6
call fcn.00581980
add esp, 0x10
test al, al
je 0x558245
mov dword [0x742114], 2
mov esp, ebp
pop ebp
ret
mov dword [0x742114], 1
jmp 0x558256
cmp eax, 2
je 0x558296
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x55827d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x558296
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret
Function at 0x559100
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x732694]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0x6ff], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x55915d
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00556df0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447de7
mov esp, ebp
pop ebp
ret
push dword [esi + 0x698]
mov dword [ebp - 0x10], 1
call fcn.00559370
push dword [esi + 0x69c]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.00559370
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x5591cd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.00556df0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00447de7
mov esp, ebp
pop ebp
ret

Function at 0x5591e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x732694]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 4
push eax
push 1
push 6
push dword [ebp + 0xc]
mov dword [ebp - 0x108], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x559242
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00543010
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00556df0
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00447de7
mov esp, ebp
pop ebp
ret

Function at 0x559350
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.00444fd0
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.0053daf8
Function at 0x5595d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0x6af574
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x5595f0
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x6bd57c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x6bd58c
push esi
mov dword [ebp - 8], ebx
call fcn.0053b2f3
add esp, 8
test eax, eax
je 0x55963c
test ebx, ebx
je 0x55962c
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_LoadLibraryW]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x559665
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x559665
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_GetSystemDirectoryW]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x559728
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x559681
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x733408]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x55971e
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x55971e
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5596c0
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5596e0
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, esi
add ecx, ebx
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x5596f5
mov eax, dword [ebp - 8]
test eax, eax
je 0x559715
push 8
push 0
push ebx
call eax
jmp 0x55971c
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x73340c]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x559740
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x732694]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x559799
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x559786
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x559780
shr eax, 8
cmp al, 2
je 0x559799
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447de7
mov esp, ebp
pop ebp
ret
push str.iphlpapi.dll
call fcn.005595d0
add esp, 4
mov dword [0x74211c], eax
test eax, eax
je 0x5597cc
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x742118]
test eax, eax
cmovne ecx, eax
mov dword [0x742118], ecx
push 3
push 2
push 0
push 6
call fcn.00581980
add esp, 0x10
test al, al
setne byte [0x744e0c]
push 0x744e10
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00447de7
mov esp, ebp
pop ebp
ret

Function at 0x55bfa0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x55bfb5
mov eax, dword [eax + 0x70]
mov al, byte [eax + 0xe7]
pop ebp
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x55bfca
xor al, al
pop ebp
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop ebp
ret

Function at 0x55c160
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x55c17e
cmp dword [esi + 0x78], 0
je 0x55c17e
push 2
push 3
push esi
call fcn.0055b1f0
add esp, 0xc
push dword [ebp + 0xc]
call fcn.0055bb50
add esp, 4
test esi, esi
je 0x55c19e
cmp dword [esi + 0x78], 0
je 0x55c19e
push 3
push esi
call fcn.0055b230
add esp, 8
pop esi
pop ebp
ret