joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4028fa
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x5c
mov eax, 0x46478d
call fcn.00464204
mov edi, ecx
mov dword [ebp - 0x5c], edi
xor ebx, ebx
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x54], ebx
call fcn.0044602f
push ebx
push 0x2710
push edx
push eax
call fcn.00446cd0
push eax
call fcn.00450755
movaps xmm0, xmmword [0x4763e0]
xor esi, esi
mov eax, dword [0x47c1f4]
inc esi
mov dword [ebp - 0x20], 0x5a595857
mov dword [ebp - 0x1c], 0x34333231
mov dword [ebp - 0x18], 0x38373635
mov word [ebp - 0x14], 0x3039
mov byte [ebp - 0x12], bl
movups xmmword [ebp - 0x50], xmm0
pop ecx
movaps xmm0, xmmword [str.qrstuvwxyzABCDEFGHIJKLMNOPQRSTUVabcdefghijklmnop]
movups xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [0x4763d0]
movups xmmword [ebp - 0x30], xmm0
test al, 1
jne 0x4029bb
or eax, esi
mov dword [0x47c1f4], eax
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x50]
mov dword [0x47c20c], 0xf
lea edx, [ecx + 1]
mov dword [0x47c208], ebx
mov byte [0x47c1f8], bl
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40299d
sub ecx, edx
lea eax, [ebp - 0x50]
push ecx
push eax
call fcn.0040acbb
push 0x464941
call fcn.00446873
pop ecx
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], ebx
jb 0x4029cf
mov eax, dword [edi]
jmp 0x4029d1
mov eax, edi
mov byte [eax], bl
push 8
mov dword [ebp - 4], ebx
pop eax
mov dword [ebp - 0x54], esi
cmp dword [edi + 0x10], eax
jb 0x4029f5
mov dword [edi + 0x10], eax
cmp dword [edi + 0x14], 0x10
jb 0x4029ee
mov eax, dword [edi]
jmp 0x4029f0
mov eax, edi
mov byte [eax + 8], bl
jmp 0x402a01
sub eax, dword [edi + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.0040a944
mov esi, dword [0x47c208]
call fcn.00450734
xor edx, edx
mov ecx, 0x47c1f8
div esi
cmp dword [0x47c20c], 0x10
cmovae ecx, dword [0x47c1f8]
cmp dword [edi + 0x14], 0x10
jb 0x402a2d
mov eax, dword [edi]
jmp 0x402a2f
mov eax, edi
mov cl, byte [ecx + edx]
mov byte [eax + ebx], cl
inc ebx
cmp ebx, 8
jl 0x402a01
mov eax, edi
call fcn.004641bf
ret
Function at 0x402c50
Capabilities:
Check os version
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x479060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x9c
xor edi, edi
push esi
push edi
mov ebx, 0x47adb8
push ebx
call fcn.00449140
add esp, 0xc
mov dword [0x47adb8], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push ebx
call esi
test eax, eax
jne 0x402c9d
push ebx
mov dword [0x47adb8], 0x94
call esi
cmp dword [0x47adc8], 2
jne 0x402d63
mov eax, dword [0x47adbc]
cmp eax, 5
jb 0x402d63
jne 0x402cc6
cmp dword [0x47adc0], edi
je 0x402d63
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x74], 4
jb 0x402d63
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x54]
shrd ecx, eax, 0x14
shr eax, 0x14
cmp ecx, 0x800
jb 0x402d63
push edi
push edi
push 3
push edi
push 3
push edi
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
lea ecx, [ebp - 0x64]
push ecx
push 0x18
lea ecx, [ebp - 0x20]
push ecx
push edi
push edi
push 0x70000
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [ebp - 0xc]
mul dword [ebp - 0x10]
push edi
push dword [ebp - 0x14]
push edx
push eax
call fcn.00447170
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push edx
push eax
call fcn.00447170
push edi
push 0x40000000
push edx
push eax
call fcn.00446cd0
cmp eax, 0x64
jb 0x402d63
mov al, 1
jmp 0x402d78
push 0x10
push str.Fatal_Error
push str.ERROR:_Unfortunately__this_doesnt_support_Win95___98___ME___2000___NT_4.0_environment.
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004465ce
mov esp, ebp
pop ebp
ret
Function at 0x402d89
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x479060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402db5
mov al, 1
jmp 0x402eca
lea eax, [ebp - 0x110]
push eax
push 0x20019
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402dda
cmp eax, 2
sete al
jmp 0x402eca
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [edi + eax]
cmp byte [esi - 1], 0x5c
je 0x402e72
mov byte [esi], 0x5c
inc esi
xor ecx, ecx
mov byte [esi], cl
jmp 0x402e74
mov ecx, edi
mov byte [esi], 0
call fcn.00401180
lea ecx, [ebp - 0x108]
call fcn.00401180
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x402e13
sub edx, ecx
lea ecx, [ebp - 0x108]
lea eax, [ecx + 1]
mov dword [ebp - 0x114], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402e2b
sub ecx, dword [ebp - 0x114]
lea eax, [ecx + edx]
cmp eax, 0x208
jb 0x402e49
mov ecx, 0x207
sub ecx, edx
test ecx, ecx
je 0x402e65
push ecx
lea eax, [ebp - 0x108]
push eax
push edi
call fcn.0044ce30
add esp, 0xc
mov byte [eax + 0x207], 0
mov edx, edi
mov ecx, ebx
call fcn.00402d89
test al, al
je 0x402eab
xor ecx, ecx
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x10c], 0x104
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push ecx
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x402df9
mov byte [esi - 1], 0
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
pop esi
sbb al, al
inc al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004465ce
mov esp, ebp
pop ebp
ret

Function at 0x402f3d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ecx + 0x14], 0
jne 0x402f4d
xor eax, eax
jmp 0x402f7e
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402f49
mov eax, dword [ebp - 8]
xor ecx, ecx
cmp dword [ebp - 0xc], 4
cmovne eax, ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x40a2a5
Capabilities:
Create thread
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x479060]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x47adc4], 0x23f0
push ebx
push esi
push edi
mov edi, ecx
jae 0x40a2cd
xor al, al
jmp 0x40a3d7
push 7
xor ebx, ebx
mov dword [ebp - 0x2c], 0xd7c2ccd4
pop eax
mov dword [ebp - 0x28], 0xa1f3d1
lea edx, [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov esi, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x10], 4
mov dword [ebp - 0xc], 5
mov dword [ebp - 8], 6
test eax, eax
je 0x40a32b
mov ecx, dword [edx]
lea edx, [edx + 4]
lea eax, [ecx - 0x65]
xor byte [ebp + ecx - 0x2c], al
inc esi
cmp esi, 7
jne 0x40a319
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], 1
push eax
mov ecx, 0x479fa0
call fcn.00402f3d
cmp eax, 1
je 0x40a2c6
push 7
pop eax
mov dword [ebp - 0x2c], 0xd7c2ccd4
lea edx, [ebp - 0x20]
mov dword [ebp - 0x28], 0xa1f3d1
mov esi, ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x10], 4
mov dword [ebp - 0xc], 5
mov dword [ebp - 8], 6
test eax, eax
je 0x40a3a1
push eax
pop ebx
mov ecx, dword [edx]
lea edx, [edx + 4]
lea eax, [ecx - 0x65]
xor byte [ebp + ecx - 0x2c], al
inc esi
cmp esi, ebx
jne 0x40a38e
xor ebx, ebx
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], 1
push eax
mov ecx, 0x479fa0
call fcn.00402f3d
cmp eax, 2
je 0x40a2c6
push ebx
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
push ecx
push 0x4050ee
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 4], eax
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004465ce
mov esp, ebp
pop ebp
ret
Function at 0x40b190
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x479060]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40b1e5
mov eax, dword [esp]
cmp al, 2
jne 0x40b1df
shr eax, 8
cmp al, 2
jne 0x40b1df
call fcn.0040fb00
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004465ce
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
mov eax, 2
xor ecx, esp
call fcn.004465ce
add esp, 0x194
ret

Function at 0x410530
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x41054c
cmp dword [esi + 0x48], 0
je 0x41054c
push 2
push 3
push esi
call fcn.004254a0
add esp, 0xc
push dword [esp + 0xc]
call fcn.0041e700
add esp, 4
test esi, esi
je 0x41056d
cmp dword [esi + 0x48], 0
je 0x41056d
push 3
push esi
call fcn.004254e0
add esp, 8
pop esi
ret

Function at 0x410cb0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x3a8], 2
je fcn.00410c60
mov al, 1
ret
Function at 0x41a5f0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
push 0x4000
push dword [edi + 0x63c]
call fcn.00425aa0
mov eax, dword [edi + 0x120]
add esp, 0x10
test eax, eax
je 0x41a644
cmp byte [edi + 0x4690], 0
jne 0x41a644
push dword [edi + 0x63c]
push 0x475d40
push 0x100
push eax
call fcn.004259b0
add esp, 0x10
mov byte [edi + 0x4690], 1
cmp byte [edi + 0x350], 0
je 0x41a6cd
mov ecx, dword [edi + 0x63c]
push esi
mov esi, ecx
lea edx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x41a660
sub esi, edx
cmp esi, 0x3fff
jae 0x41a680
mov byte [ecx + esi], 0xa
inc esi
mov eax, dword [edi + 0x63c]
mov byte [esi + eax], 0
mov eax, dword [edi + 0x190]
push ebx
mov ebx, dword [edi + 0x63c]
test eax, eax
je 0x41a6a5
push dword [edi + 0x11c]
push esi
push ebx
push 0
push edi
call eax
add esp, 0x14
pop ebx
pop esi
pop edi
ret
push dword [edi + 0x118]
push 1
push 2
push 0x466540
call fcn.00450d79
push dword [edi + 0x118]
push 1
push esi
push ebx
call fcn.00450d79
add esp, 0x20
pop ebx
pop esi
pop edi
ret

Function at 0x41a6d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x479060]
xor eax, esp
mov dword [esp + 0x804], eax
push edi
mov edi, dword [esp + 0x810]
test edi, edi
je 0x41a799
cmp byte [edi + 0x350], 0
je 0x41a799
push esi
lea eax, [esp + 0x81c]
push eax
push dword [esp + 0x81c]
lea eax, [esp + 0x10]
push 0x801
push eax
call fcn.00425aa0
lea esi, [esp + 0x18]
add esp, 0x10
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x41a730
mov eax, dword [edi + 0x190]
sub esi, ecx
test eax, eax
je 0x41a76e
push dword [edi + 0x11c]
lea ecx, [esp + 0xc]
push esi
push ecx
push 0
push edi
call eax
add esp, 0x14
pop esi
pop edi
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.004465ce
add esp, 0x808
ret
push dword [edi + 0x118]
push 1
push 2
push 0x466540
call fcn.00450d79
push dword [edi + 0x118]
lea eax, [esp + 0x1c]
push 1
push esi
push eax
call fcn.00450d79
add esp, 0x20
pop esi
mov ecx, dword [esp + 0x808]
pop edi
xor ecx, esp
call fcn.004465ce
add esp, 0x808
ret

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

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x190]
call fcn.0041ae30
add esp, 8
push 0
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [ebp], 0
cmp ebx, 0xffffffff
jne 0x41aa86
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x41aa5e
pop edi
pop esi
mov dword [ebp], 0x51
xor eax, eax
pop ebp
pop ebx
ret
push esi
push edi
call fcn.00427ad0
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.0041a5f0
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x4694], esi
mov eax, ebx
mov dword [ebp], 0x37
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x41ae30
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov eax, edx
push ebx
push esi
shl eax, 4
lea esi, [ecx + 0x1b4]
mov ebx, dword [ecx + edx*4 + 0x190]
add esi, eax
mov eax, dword [ecx + 0x3a0]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x3c], 3
je 0x41aee0
cmp dword [ecx + edx*4 + 0x1a4], 0x41a960
jne 0x41aee0
cmp dword [esi], 0
je 0x41ae77
test edi, edi
je 0x41aee0
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.00419f40
add esp, 0x14
cmp eax, 0xffffffff
je 0x41aee0
test al, 1
je 0x41aee0
cmp dword [esi], 0
jne 0x41aec9
push 0x8000
mov dword [esi + 4], 0x8000
call dword [section..data]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x41aec9
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x41aee0
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
ret

Function at 0x41aef0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x190]
test eax, eax
je 0x41af19
push dword [esi + 0x11c]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push esi
call eax
add esp, 0x14
pop esi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x41af52
push dword [esi + 0x118]
lea eax, [eax + eax*2]
push 1
add eax, 0x466540
push 2
push eax
call fcn.00450d79
push dword [esi + 0x118]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.00450d79
add esp, 0x20
xor eax, eax
pop esi
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x1d4], 0
je 0x41b03d
push eax
call fcn.004110c0
add esp, 4
test eax, eax
jne 0x41b05f
xor al, al
ret
mov eax, dword [eax + 0x190]
cmp eax, 0xffffffff
je 0x41b03a
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x41b05f
xor al, al
ret
mov al, 1
ret

Function at 0x41b9f0
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [esp + 0x20]
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x41ba38
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00427ad0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0041a6d0
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0041a6d0
add esp, 8
pop edi
pop esi
ret
Function at 0x41bb40
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x108
mov eax, dword [0x479060]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push edi
mov edi, dword [esp + 0x114]
cmp dword [edi + 0x8c], 2
mov ebx, dword [edi]
je 0x41bd33
cmp byte [edi + 0x366], 0
push esi
jne 0x41bd29
cmp byte [edi + 0x382], 0
jne 0x41bd29
mov esi, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x94]
mov dword [esp + 0x10], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x41bbe5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00427ad0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0041a5f0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004465ce
add esp, 0x108
ret
push 0x80
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0x80
push 0
push eax
call fcn.00449140
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x41bc4d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00427ad0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0041a5f0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004465ce
add esp, 0x108
ret
lea eax, [edi + 0x130]
push eax
lea esi, [edi + 0x102]
lea eax, [esp + 0x94]
push esi
push eax
call fcn.0041c240
add esp, 0xc
test al, al
jne 0x41bca6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00427ad0
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0041a5f0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004465ce
add esp, 0x108
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movups xmmword [edi + 0x58], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x68], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [edi + 0x78], xmm0
mov dword [edi + 0x80], eax
mov ax, word [esi + 0x2c]
mov word [edi + 0x84], ax
lea eax, [edi + 0x164]
push eax
lea eax, [edi + 0x134]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0041c240
add esp, 0xc
test al, al
jne 0x41bd29
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00427ad0
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0041a5f0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004465ce
add esp, 0x108
ret
push edi
call fcn.0041b780
add esp, 4
pop esi
mov ecx, dword [esp + 0x10c]
pop edi
pop ebx
xor ecx, esp
call fcn.004465ce
add esp, 0x108
ret
Function at 0x41c5c0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x479060]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
xor eax, eax
push edi
mov edi, dword [esp + 0x28]
push 4
cmp byte [esi + 0x49c], al
setne al
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x41c620
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0041a6d0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004465ce
add esp, 0x18
ret
push dword [esi + 0x4a0]
mov dword [esp + 0x14], 1
call fcn.004244e0
push dword [esi + 0x4a4]
imul eax, eax, 0x3e8
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
call fcn.004244e0
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x28]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x41c697
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.0041a6d0
add esp, 0x10
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.004465ce
add esp, 0x18
ret
Function at 0x426ca0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x426cba
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push 0x468320
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x468330
push esi
call fcn.00453f80
add esp, 8
test eax, eax
je 0x426d02
test ebp, ebp
je 0x426cf3
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 0x426d28
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x426d28
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 0x426ddf
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x426d45
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x426dd5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x426dd5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x426d77
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 0x426d90
sub ecx, edx
add ecx, ebx
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x426da0
test ebp, ebp
je 0x426dcc
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x479004]
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 [0x479004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x426f90
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [eax], ebx
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x427122
push ebp
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x42710c
push esi
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x426fdf
lea ebp, [eax + 0xe]
jmp 0x426feb
cmp eax, 0x17
jne 0x427099
lea ebp, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x427099
mov eax, dword [edi + 0x10]
test eax, eax
je 0x427099
cmp eax, ebp
jb 0x427099
push 0x20
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x427101
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push ebp
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebp
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [section..data]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x4270f0
push ebp
push dword [edi + 0x18]
push eax
call fcn.004492a0
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x427085
push eax
call dword [0x47900c]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x4270d6
mov eax, dword [esp + 0x10]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x427095
mov dword [eax + 0x1c], esi
mov dword [esp + 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x426fd2
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
je 0x4270b8
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x427108
push ebx
call fcn.00426f50
mov eax, dword [esp + 0x2c]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, ebp
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
push dword [esi + 0x18]
mov ebp, 8
call dword [0x479004]
push esi
call dword [0x479004]
add esp, 8
jmp 0x4270a8
push esi
mov ebp, 8
call dword [0x479004]
add esp, 4
jmp 0x4270a8
mov ebp, 8
jmp 0x4270a8
test ebx, ebx
jne 0x427118
mov ebp, 0x2af9
push ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x428710
Capabilities:
Generate random numbers via winapi

Disassembly:
push ecx
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x428755
push dword [esp + 8]
push dword [esp + 0x10]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 4]
test eax, eax
jne 0x42875c
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
pop ecx
ret
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop ecx
ret