joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4119f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x494014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [esi]
cmp edi, 0xffffffff
je 0x411a39
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x80
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
mov dword [esi], 0xffffffff
xor ecx, ebp
pop esi
call fcn.0041caaf
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x494014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
push edi
mov edi, ecx
cmp esi, 0x3e80000
jbe 0x411a9c
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041caaf
mov esp, ebp
pop ebp
ret 0x14
push ebx
push 0x30
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call dword [sym.imp.mfc140u.dll_operator_2]
push 0x30
mov ebx, eax
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x18], 4
cmp dword [edi + 4], 0
je 0x411b05
add esi, 4
push esi
call dword [sym.imp.mfc140u.dll_operator]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x28], esi
mov dword [ebp - 8], eax
mov ecx, dword [ebx + 0x28]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
push ecx
push dword [ebp - 0x10]
add eax, 4
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x10
jmp 0x411b17
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x28], esi
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0xc], eax
push 0
push ebx
push 0
lea eax, [ebx + 0x24]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x411b62
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x411b62
push 0x30
push ebx
call fcn.0041cd4e
add esp, 8
mov eax, 1
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041caaf
mov esp, ebp
pop ebp
ret 0x14
xor esi, esi
cmp dword [edi + 8], 1
jne 0x411b93
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x7d0
jg 0x411b85
push 1
call ebx
cmp dword [edi + 8], 1
je 0x411b70
jmp 0x411b93
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0041caaf
mov esp, ebp
pop ebp
ret 0x14
Function at 0x411bb0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x494014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp esi, 0xffffffff
jne 0x411bd9
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041caaf
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x80
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041caaf
mov esp, ebp
pop ebp
ret

Function at 0x411e60
Capabilities:
Create thread
Get system information on windows
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1bc
mov eax, dword [0x494014]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x30]
mov dword [0x494a58], 0x200
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x411eb8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.0041caaf
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
push 0
push 0
push 0
push 0xffffffffffffffff
mov dword [0x496490], 0x406230
mov dword [0x496488], 0x406d50
call esi
mov dword [0x496498], eax
push 0
test eax, eax
je 0x411ef9
push 0
push 0
push 0xffffffffffffffff
call esi
mov dword [0x49648c], eax
test eax, eax
jne 0x411f1c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.0041caaf
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x20]
mov ecx, 5
add eax, 2
cmp eax, ecx
cmovl eax, ecx
xor esi, esi
mov dword [0x496494], eax
test eax, eax
jle 0x411f87
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
nop
push 0
push 0
push 0
push 0x411c20
push 0
push 0
call ebx
add esp, 0x18
push eax
call edi
push 0
push 0
push 0
push 0x411d60
push 0
push 0
call ebx
add esp, 0x18
push eax
call edi
inc esi
cmp esi, dword [0x496494]
jl 0x411f50
mov ecx, dword [esp + 0x1c4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041caaf
mov esp, ebp
pop ebp
ret 4

Function at 0x412010
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x494014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x4958d4]
test esi, esi
je 0x412068
push edi
mov edi, dword [esi]
cmp edi, 0xffffffff
je 0x412061
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x80
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0041caaf
mov esp, ebp
pop ebp
ret
Function at 0x412e50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x412e81
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x412e70
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x41b4a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a7d8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x494014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi]
test edx, edx
setne al
test al, al
je 0x41b52c
cmp byte [edx + 0x15], 0
jne 0x41b52c
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
call fcn.0041af10
push esi
mov dword [ebp - 4], 0
call fcn.0041bd90
mov eax, dword [0x496574]
mov esi, dword [eax + 4]
lea eax, [ebp - 0x20]
push eax
push 0
add esi, 8
push esi
push 0x41b090
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi]
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x1c]
call fcn.0041afb0
mov eax, esi
jmp 0x41b52e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041caaf
mov esp, ebp
pop ebp
ret 4
Function at 0x427810
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4278bf
push esi
call fcn.0043b720
add esp, 4
test al, al
jne 0x4278bf
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x427837
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.0044aa80
add esp, 0xc
test eax, eax
je 0x42786b
sub eax, esi
push eax
push 0x2e
push esi
call fcn.0044aa80
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x42786d
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
lea ebx, [esi + edi]
mov edi, 0x1505
cmp esi, ebx
jae 0x42789e
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.0043c860
movsx ecx, al
inc esi
mov eax, edi
add esp, 4
shl eax, 5
add eax, edi
xor ecx, eax
mov edi, ecx
cmp esi, ebx
jb 0x427880
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4357e0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp byte [edi + 0x696], 0
je 0x43587f
cmp dword [edi + 0x194], 0
je 0x435837
push edi
call fcn.00422490
push 1
push edi
mov byte [esp + 0x14], al
call fcn.00422cb0
push dword [edi + 0x144]
mov eax, dword [edi + 0x194]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push dword [esp + 0x28]
push edi
call fcn.00422cb0
add esp, 0x28
pop edi
ret
mov ecx, dword [esp + 0xc]
mov eax, ecx
sub eax, 0
je 0x43584c
sub eax, 1
je 0x43584c
sub eax, 1
jne 0x43587f
push dword [edi + 0x140]
lea eax, [ecx*2 + 0x47f6ac]
push 1
add eax, ecx
push 2
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [edi + 0x140]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x20
pop edi
ret

Function at 0x439000
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x480058
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x43901a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push 0x480064
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x480074
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
add esp, 8
test eax, eax
je 0x439063
test ebp, ebp
je 0x439054
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 0x439089
push 0x480078
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x439089
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 0x43913f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4390a6
sub ecx, ebx
lea eax, [ecx + 1]
add eax, edx
push eax
call dword [0x494020]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x439135
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x439135
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4390d8
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 0x4390f0
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 0x439100
test ebp, ebp
je 0x43912c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x494024]
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 [0x494024]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x4391f0
Capabilities:
Get common file path
Initialize winsock library
Link many functions at runtime

Disassembly:
sub esp, 0x198
mov eax, dword [0x494014]
xor eax, esp
mov dword [esp + 0x194], eax
test byte [esp + 0x19c], 2
je 0x439251
lea eax, [esp + 4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x439237
mov eax, dword [esp + 4]
cmp al, 2
jne 0x439231
shr eax, 8
cmp al, 2
je 0x439251
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0041caaf
add esp, 0x198
ret
call fcn.0046c6d0
test eax, eax
jne 0x43942c
push ebp
push esi
push edi
push 0x480058
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x439285
mov dword [0x49582c], esi
jmp 0x4393b1
push ebx
push 0x480064
push edi
call ebp
push 0x480074
push 0x47fffc
mov ebx, eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
add esp, 8
test eax, eax
je 0x4392cf
test ebx, ebx
je 0x4392bd
push 8
push 0
push 0x47fffc
call ebx
mov esi, eax
jmp 0x43938d
push 0x47fffc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x43938d
test ebx, ebx
je 0x4392f4
push 0x480078
push edi
call ebp
test eax, eax
je 0x4392f4
push 0x800
push 0
push 0x47fffc
call ebx
mov esi, eax
jmp 0x43938d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [esp + 0x10], eax
test eax, eax
je 0x43938d
lea ecx, [eax + 0xd]
push ecx
call dword [0x494020]
mov edi, eax
add esp, 4
test edi, edi
je 0x439383
push dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x439383
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x439331
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 0x439348
sub edx, ecx
mov ecx, 0x47fffc
sub edx, ecx
add edx, edi
nop word [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x439360
test ebx, ebx
je 0x43937a
push 8
push 0
push edi
call ebx
jmp 0x439381
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push edi
call dword [0x494024]
add esp, 4
mov dword [0x49582c], esi
pop ebx
test esi, esi
je 0x4393b1
push 0x48000c
push esi
call ebp
mov ecx, dword [0x49581c]
test eax, eax
cmovne ecx, eax
mov dword [0x49581c], ecx
push 0x48001c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x4393e9
push 0x480024
push esi
call ebp
push 0x480034
push esi
mov dword [0x495820], eax
call ebp
push 0x480048
push esi
mov dword [0x495824], eax
call ebp
mov dword [0x495828], eax
push 3
push 2
push 0
push 0
push 6
call fcn.0046c2d0
push 3
push 2
push 0
test al, al
push 2
push 6
setne byte [0x498649]
call fcn.0046c2d0
add esp, 0x28
test al, al
setne byte [0x498648]
push 0x498650
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0041caaf
add esp, 0x198
ret
Function at 0x43b8c0
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x43b8fe
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x144], 0
jne 0x43b8ef
push 0
call fcn.0043b8c0
add esp, 4
test al, al
mov eax, dword [esi + 0x7c]
setne cl
inc cl
mov byte [eax + 0x144], cl
mov eax, dword [esi + 0x7c]
pop esi
cmp byte [eax + 0x144], 2
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x43b913
xor al, al
pop esi
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret

Function at 0x43c650
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov eax, dword [0x494014]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x70]
push ebp
mov ebp, dword [esp + 0x78]
push edi
xor edi, edi
mov dword [esp + 8], eax
cmp byte [eax + 0x696], 0
je 0x43c832
cmp byte [ebp + 0x18], 0
push ebx
lea ebx, [ebp + 0x18]
je 0x43c831
lea eax, [esp + 0x30]
push eax
push ebx
push 2
call fcn.00451780
add esp, 0xc
test eax, eax
jg 0x43c831
lea eax, [esp + 0x34]
push eax
push ebx
push 0x17
call fcn.00451780
add esp, 0xc
test eax, eax
jg 0x43c831
cmp byte [ebx], 0
mov eax, 0x480538
push esi
push dword [ebp + 0x14]
mov esi, dword [ebp]
cmovne eax, ebx
mov ebp, dword [esp + 0x14]
push eax
push 0x480540
push ebp
call fcn.00435960
lea eax, [esp + 0x24]
push 0x400
push eax
call fcn.00427e50
lea eax, [esp + 0x3c]
push 0x400
push eax
call fcn.00427e50
add esp, 0x20
test esi, esi
je 0x43c7a4
lea edx, [edi + 0x10]
mov ecx, dword [esi + 4]
cmp ecx, 0x17
je 0x43c718
cmp ecx, 2
jne 0x43c799
xor eax, eax
mov byte [esp + 0x48], 0
cmp ecx, 2
lea ebx, [esp + 0x14]
cmovne eax, edx
add ebx, eax
sub ecx, 2
je 0x43c747
sub ecx, 0x15
jne 0x43c75f
push 0x2e
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 0x18]
add eax, 8
push eax
push 0x17
jmp 0x43c757
push 0x2e
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 0x18]
add eax, 4
push eax
push 2
call fcn.0046b230
add esp, 0x10
push ebx
call fcn.00427e70
add esp, 4
test eax, eax
je 0x43c77e
push 2
push 0x47f6ec
push ebx
call fcn.00427e10
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x43c7c4
lea eax, [esp + 0x48]
push eax
push ebx
call fcn.00427db0
mov edi, eax
add esp, 8
test edi, edi
jne 0x43c7c4
lea edx, [eax + 0x10]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x43c707
lea eax, [esp + 0x24]
push eax
call fcn.00427e70
add esp, 4
test eax, eax
je 0x43c7d4
lea eax, [esp + 0x24]
push eax
call fcn.00427e80
add esp, 4
jmp 0x43c7d9
push 0x48055c
push ebp
call fcn.00435960
add esp, 8
jmp 0x43c819
mov eax, 0x480538
push eax
push 0x480578
push ebp
call fcn.00435960
lea eax, [esp + 0x20]
push eax
call fcn.00427e70
add esp, 0x10
test eax, eax
je 0x43c805
lea eax, [esp + 0x14]
push eax
call fcn.00427e80
add esp, 4
jmp 0x43c80a
mov eax, 0x480538
push eax
push 0x480584
push ebp
call fcn.00435960
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call fcn.00427e20
lea eax, [esp + 0x28]
push eax
call fcn.00427e20
add esp, 8
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
pop edi
pop ebp
xor ecx, esp
call fcn.0041caaf
add esp, 0x6c
ret
Function at 0x43de80
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x495830]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x43ded1
push 3
push 2
push eax
push eax
push 6
call fcn.0046c2d0
add esp, 0x14
test al, al
je 0x43dec5
mov dword [0x495830], 2
add esp, 0xc
ret
mov dword [0x495830], 1
jmp 0x43ded6
cmp eax, 2
je 0x43df1c
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 0x43df01
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x43df1c
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 0x43e9e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x494014]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
push ebx
mov ebx, dword [esp + 0x194]
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [esi + 0x98]
cmp edi, 0xffffffff
je 0x43eb18
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x2ac]
test dword [eax + 0x48], 0x800
jne 0x43eb18
push 0x80
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0x80
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x43eaa6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.004215f0
push eax
push esi
push 0x480a2c
push ebx
call fcn.00435890
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0041caaf
add esp, 0x188
ret
lea eax, [esi + 0xfc]
push eax
lea eax, [esi + 0xca]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.00437c60
add esp, 0x10
test al, al
jne 0x43eb18
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call esi
mov edi, dword [eax]
call esi
mov esi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push edi
call fcn.004215f0
push eax
push dword [esi]
push 0x480a54
push ebx
call fcn.00435890
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0041caaf
add esp, 0x188
ret
mov ecx, dword [esp + 0x190]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041caaf
add esp, 0x188
ret
Function at 0x44b1e0
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.00427b70
push dword [esp + 0x38]
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call esi
push dword [esp + 0x40]
mov edi, eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebp
test eax, eax
jne 0x44b275
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.00427b70
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.00427c20
add esp, 0x20
test edx, edx
ja 0x44b299
jb 0x44b267
cmp eax, 0x3e8
ja 0x44b299
push 1
call ebx
push 1
push esi
push edi
call ebp
test eax, eax
je 0x44b230
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test edi, edi
je 0x44b285
push edi
call ebx
add esp, 4
test esi, esi
je 0x44b28f
push esi
call ebx
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test edi, edi
je 0x44b2a9
push edi
call ebx
add esp, 4
test esi, esi
je 0x44b2b3
push esi
call ebx
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x44b7c0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
push edi
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [eax], edi
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x44b94f
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x44b93a
push ebx
push ebp
mov eax, dword [esi + 0x14]
test eax, eax
je 0x44b81c
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44b810
sub eax, edx
inc eax
jmp 0x44b81e
xor eax, eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], eax
cmp ecx, 2
jne 0x44b82f
lea ebp, [ecx + 0xe]
jmp 0x44b83b
cmp ecx, 0x17
jne 0x44b8dc
lea ebp, [ecx + 5]
cmp dword [esi + 0x18], 0
je 0x44b8dc
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x44b8dc
cmp ecx, ebp
jb 0x44b8dc
add eax, 0x20
add eax, ebp
push eax
call dword [0x494020]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x44b92b
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x20]
push ebp
mov dword [ebx + 0x10], ebp
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x18], eax
push dword [esi + 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x44b8c8
mov eax, dword [ebx + 0x18]
add eax, ebp
push ecx
mov dword [ebx + 0x14], eax
push dword [esi + 0x14]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x18]
test edi, edi
cmove edi, ebx
test eax, eax
je 0x44b8d8
mov dword [eax + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x44b802
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
pop ebp
pop ebx
test eax, eax
je 0x44b8fc
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x44b936
test edi, edi
je 0x44b91b
mov esi, dword [edi + 0x1c]
push edi
call dword [0x494024]
add esp, 4
mov edi, esi
test esi, esi
jne 0x44b904
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x28]
xor edi, edi
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
add esp, 0x10
ret
mov esi, 8
mov dword [esp + 0x10], esi
jmp 0x44b8eb
test edi, edi
jne 0x44b946
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
add esp, 0x10
ret

Function at 0x44bd50
Capabilities:
Create thread

Disassembly:
push 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
xor eax, eax
test ecx, ecx
je 0x44bd77
cmp ecx, 0xffffffff
cmovne eax, ecx
ret