joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410608
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
xor edx, edx
mov ecx, esp
xor edi, edi
mov eax, ecx
lea ebx, [esi + edx*4]
movzx ebx, byte [ebx + edi + 0x117]
mov byte [eax], bl
inc edi
inc eax
cmp edi, 4
jne 0x410618
inc edx
add ecx, 4
cmp edx, 4
jne 0x410614
xor edi, edi
mov ebx, esp
movzx edx, byte [ebx]
mov eax, esi
call fcn.00410748
push eax
movzx edx, byte [ebx + 4]
mov eax, esi
call fcn.0041075c
pop edx
xor dl, al
push edx
movzx edx, byte [ebx + 8]
mov eax, esi
call fcn.00410744
pop edx
xor dl, al
push edx
movzx edx, byte [ebx + 0xc]
mov eax, esi
call fcn.00410744
pop edx
xor dl, al
mov byte [esi + edi + 0x117], dl
movzx edx, byte [ebx]
mov eax, esi
call fcn.00410744
push eax
movzx edx, byte [ebx + 4]
mov eax, esi
call fcn.00410748
pop edx
xor dl, al
push edx
movzx edx, byte [ebx + 8]
mov eax, esi
call fcn.0041075c
pop edx
xor dl, al
push edx
movzx edx, byte [ebx + 0xc]
mov eax, esi
call fcn.00410744
pop edx
xor dl, al
mov byte [esi + edi + 0x11b], dl
movzx edx, byte [ebx]
mov eax, esi
call fcn.00410744
push eax
movzx edx, byte [ebx + 4]
mov eax, esi
call fcn.00410744
pop edx
xor dl, al
push edx
movzx edx, byte [ebx + 8]
mov eax, esi
call fcn.00410748
pop edx
xor dl, al
push edx
movzx edx, byte [ebx + 0xc]
mov eax, esi
call fcn.0041075c
pop edx
xor dl, al
mov byte [esi + edi + 0x11f], dl
movzx edx, byte [ebx]
mov eax, esi
call fcn.0041075c
push eax
movzx edx, byte [ebx + 4]
mov eax, esi
call fcn.00410744
pop edx
xor dl, al
push edx
movzx edx, byte [ebx + 8]
mov eax, esi
call fcn.00410744
pop edx
xor dl, al
push edx
movzx edx, byte [ebx + 0xc]
mov eax, esi
call fcn.00410748
pop edx
xor dl, al
mov byte [esi + edi + 0x123], dl
inc edi
inc ebx
cmp edi, 4
jne 0x410639
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x410770
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movzx ebx, byte [esi]
and bl, 0xf
movzx ebx, bl
movzx edi, byte [esi]
shr edi, 4
add edi, edi
lea edi, [edi*8 + 0x41e89c]
movzx ebx, byte [edi + ebx]
mov byte [esi], bl
movzx ebx, byte [eax]
and bl, 0xf
movzx ebx, bl
movzx esi, byte [eax]
shr esi, 4
add esi, esi
lea esi, [esi*8 + 0x41e89c]
movzx ebx, byte [esi + ebx]
mov byte [eax], bl
movzx eax, byte [ecx]
and al, 0xf
movzx eax, al
movzx ebx, byte [ecx]
shr ebx, 4
add ebx, ebx
lea ebx, [ebx*8 + 0x41e89c]
movzx eax, byte [ebx + eax]
mov byte [ecx], al
movzx eax, byte [edx]
and al, 0xf
movzx eax, al
movzx ecx, byte [edx]
shr ecx, 4
add ecx, ecx
lea ecx, [ecx*8 + 0x41e89c]
movzx eax, byte [ecx + eax]
mov byte [edx], al
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x410d0c
Capabilities:
Create http request

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov ebx, eax
cmp dword [ebx + 4], 0
jne 0x410e35
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x410d2a
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x410d4c
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x18]
call fcn.0040430c
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebx + 4], eax
jmp 0x410dcf
push 0
push 0
mov eax, dword [ebx + 0x20]
call fcn.0040430c
push eax
push 3
mov eax, dword [ebx + 0x18]
call fcn.0040430c
push eax
call sub.wininet.dll_InternetOpenA
mov edi, eax
mov dword [ebx + 4], edi
mov edx, dword [ebx + 0x24]
mov eax, edx
test eax, eax
je 0x410d7c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x410d9d
mov esi, edx
test esi, esi
je 0x410d8b
sub esi, 4
mov esi, dword [esi]
push esi
mov eax, dword [ebx + 0x24]
call fcn.0040430c
push eax
push 0x2b
push edi
call sub.wininet.dll_InternetSetOptionA
mov edx, dword [ebx + 0x28]
mov eax, edx
test eax, eax
je 0x410dab
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x410dcf
mov esi, edx
test esi, esi
je 0x410dba
sub esi, 4
mov esi, dword [esi]
push esi
mov eax, dword [ebx + 0x28]
call fcn.0040430c
push eax
push 0x2c
mov eax, dword [ebx + 4]
push eax
call sub.wininet.dll_InternetSetOptionA
mov dword [esp + 4], 0x7530
push 4
lea eax, [esp + 8]
push eax
push 2
mov eax, dword [ebx + 4]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
lea eax, [esp + 8]
push eax
push 6
mov eax, dword [ebx + 4]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
lea eax, [esp + 8]
push eax
push 5
mov eax, dword [ebx + 4]
push eax
call sub.wininet.dll_InternetSetOptionA
cmp byte [ebx + 0x1c], 0
je 0x410e35
mov dword [esp], 0xffffffff
push 4
lea eax, [esp + 4]
push eax
push 0x41
mov eax, dword [ebx + 4]
push eax
call sub.wininet.dll_InternetSetOptionA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebx + 0x1d], al
cmp dword [ebx + 4], 0
setne al
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4111c8
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov byte [ebp - 9], 0
xor esi, esi
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x41123e
cmp dword [ebp - 0x10], 0
jbe 0x411234
lea edx, [ebp - 0x1010]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov edi, dword [eax]
call dword [edi + 0x10]
add esi, dword [ebp - 0x10]
mov ecx, esi
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00410e44
cmp byte [ebx + 8], 0
jne 0x41123e
cmp dword [ebp - 0x10], 0
jne 0x4111eb
mov byte [ebp - 9], 1
movzx eax, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41124c
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x18]
push ecx
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, ecx
mov ebx, eax
lea eax, [ebp - 0x18]
mov edx, dword [0x41097c]
call fcn.00404ba8
xor eax, eax
push ebp
push 0x4113bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x19], 0
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x41139a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.0040430c
push eax
mov eax, dword [ebp - 8]
call fcn.0040430c
push eax
mov edx, 0x15
mov eax, dword [ebp - 0x10]
call fcn.004061b4
push eax
mov eax, dword [ebp - 0x14]
call fcn.0040430c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4112e9
cmp byte [ebx + 8], 0
je 0x4112f3
call fcn.0040397c
jmp 0x4113a1
push 0
push 0x10
lea eax, [ebp - 0x164]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040430c
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_FtpFindFirstFileA
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x41132a
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_InternetCloseHandle
mov edi, dword [ebp - 0x144]
jmp 0x41132d
or edi, 0xffffffff
push 0
push 2
push 0x80000000
mov eax, dword [ebp - 0xc]
call fcn.0040430c
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_FtpOpenFileA
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x411357
cmp byte [ebx + 8], 0
je 0x41135e
call fcn.0040397c
jmp 0x4113a1
push esi
mov ecx, edi
mov edx, dword [ebp - 0x24]
mov eax, ebx
call fcn.004111c8
mov byte [ebp - 0x19], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4113a1
cmp dword [ebp - 0x24], 0
je 0x41138a
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp dword [ebp - 0x20], 0
je 0x411399
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4113c4
lea eax, [ebp - 0x18]
mov edx, dword [0x41097c]
call fcn.00404a70
ret
Function at 0x4120cc
Capabilities:
Acquire debug privileges

Disassembly:
mov dl, 1
mov eax, 0x41221c
call fcn.00411fe0
mov dl, 1
mov eax, 0x41223c
call fcn.00411fe0
mov dl, 1
mov eax, 0x412254
call fcn.00411fe0
mov dl, 1
mov eax, 0x412278
call fcn.00411fe0
mov dl, 1
mov eax, 0x4122a0
call fcn.00411fe0
mov dl, 1
mov eax, 0x4122c8
call fcn.00411fe0
mov dl, 1
mov eax, 0x4122ec
call fcn.00411fe0
mov dl, 1
mov eax, 0x412310
call fcn.00411fe0
mov dl, 1
mov eax, 0x41232c
call fcn.00411fe0
mov dl, 1
mov eax, 0x412348
call fcn.00411fe0
mov dl, 1
mov eax, 0x412368
call fcn.00411fe0
mov dl, 1
mov eax, 0x412388
call fcn.00411fe0
mov dl, 1
mov eax, 0x4123a8
call fcn.00411fe0
mov dl, 1
mov eax, 0x4123d0
call fcn.00411fe0
mov dl, 1
mov eax, 0x4123ec
call fcn.00411fe0
mov dl, 1
mov eax, 0x412414
call fcn.00411fe0
mov dl, 1
mov eax, 0x41243c
call fcn.00411fe0
mov dl, 1
mov eax, 0x412460
call fcn.00411fe0
mov dl, 1
mov eax, 0x41247c
call fcn.00411fe0
mov dl, 1
mov eax, 0x4124a0
call fcn.00411fe0
mov dl, 1
mov eax, 0x4124c0
call fcn.00411fe0
mov dl, 1
mov eax, 0x4124e0
call fcn.00411fe0
mov dl, 1
mov eax, 0x4124fc
call fcn.00411fe0
mov dl, 1
mov eax, 0x412518
call fcn.00411fe0
mov dl, 1
mov eax, 0x412534
call fcn.00411fe0
mov dl, 1
mov eax, 0x41255c
call fcn.00411fe0
mov dl, 1
mov eax, 0x412578
call fcn.00411fe0
ret

Function at 0x412590
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0x412618
push 0
mov eax, edi
call fcn.0040430c
push eax
push ebx
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x4125fe
mov ebx, esi
test ebx, ebx
je 0x4125d8
sub ebx, 4
mov ebx, dword [ebx]
push ebx
mov eax, esi
call fcn.0040430c
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.0040430c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete al
jmp 0x412600
xor eax, eax
mov ebx, eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x412620
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0x412694
push 0
mov eax, esi
call fcn.0040430c
push eax
push ebx
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x412678
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
mov eax, edi
call fcn.0040430c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x41267c
xor eax, eax
jmp 0x41267e
mov al, 1
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x412a9c
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x412bc8
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x412bd8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x412bad
lea eax, [ebp - 8]
mov edx, esi
call fcn.004040bc
lea eax, [ebp - 8]
mov edx, 0x412c04
call fcn.00404148
mov eax, dword [ebp - 8]
call fcn.0040430c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegDeleteKeyA
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.004040bc
lea eax, [ebp - 0xc]
mov edx, 0x412c14
call fcn.00404148
mov eax, dword [ebp - 0xc]
call fcn.0040430c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegDeleteKeyA
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.004040bc
push dword [ebp - 0x14]
push 0x412c28
lea eax, [ebp - 0x18]
mov edx, esi
call fcn.004040bc
push dword [ebp - 0x18]
push 0x412c3c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404210
mov eax, dword [ebp - 0x10]
call fcn.0040430c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegDeleteKeyA
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.004040bc
lea eax, [ebp - 0x1c]
mov edx, 0x412c50
call fcn.00404148
mov eax, dword [ebp - 0x1c]
call fcn.0040430c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegDeleteKeyA
push esi
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412bcf
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.00403ee8
ret

Function at 0x412c5c
Capabilities:
Install driver

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
xor edx, edx
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x21c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x412cf9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21c]
mov edx, ebx
call fcn.004040bc
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
mov edx, 0x412d10
call fcn.00404194
mov eax, dword [ebp - 0x218]
lea edx, [ebp - 0x212]
mov ecx, 0x104
call fcn.00404edc
lea eax, [ebp - 0x212]
push eax
lea eax, [ebp - 8]
push eax
call sub.ntdll.dll_RtlInitUnicodeString
lea eax, [ebp - 8]
push eax
call sub.ntdll.dll_ZwLoadDriver
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412d00
lea eax, [ebp - 0x21c]
mov edx, 2
call fcn.00403ee8
ret
Function at 0x412d48
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004042fc
xor eax, eax
push ebp
push 0x412dca
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.0040430c
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
test ebx, ebx
je 0x412db4
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412dd1
lea eax, [ebp - 4]
call fcn.00403ec4
ret

Function at 0x412e74
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
mov eax, dword [ebp + 0xc]
call fcn.004042fc
xor eax, eax
push ebp
push 0x412ed6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp + 0xc]
call fcn.0040430c
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x104]
mov ecx, 0x104
call fcn.004040f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412edd
lea eax, [ebp + 0xc]
call fcn.00403ec4
ret

Function at 0x413128
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x4131fa
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push 0x413208
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x4131d9
lea eax, [ebp - 8]
call fcn.00412ee4
push 0x41321c
lea eax, [ebp - 0xc]
push eax
call fcn.00412e74
push dword [ebp - 0xc]
push dword [ebp - 8]
push 0x413244
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404210
mov eax, dword [0x43d4e4]
mov ecx, dword [ebp - 4]
mov edx, 0x13a10
call fcn.00412d48
mov eax, dword [ebp - 8]
call fcn.0040430c
mov ebx, eax
mov eax, ebx
call fcn.00412a9c
mov eax, dword [ebp - 4]
call fcn.0040430c
mov esi, eax
push esi
mov eax, ebx
pop edx
call fcn.004126ac
mov eax, ebx
call fcn.00412c5c
mov eax, ebx
call fcn.00412a9c
push esi
call sub.kernel32.dll_DeleteFileA
jmp 0x4131df
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413201
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403ee8
ret

Function at 0x413aac
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov byte [esp], 0
xor eax, eax
mov dword [esp + 4], eax
push 0
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 1
lea eax, [esp + 0x18]
push eax
push 0x9800000c
push ebx
call sub.ws2_32.dll_WSAIoctl
mov esi, eax
mov byte [esp], 1
push 1
lea eax, [esp + 4]
push eax
push 4
push 0xffff
push ebx
call sub.ws2_32.dll_setsockopt_1
test eax, eax
jne 0x413b12
mov edx, 0x3a98
mov eax, ebx
call fcn.00413a64
mov edx, 0xbb8
mov eax, ebx
call fcn.00413a88
mov eax, esi
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x413b1c
Capabilities:
Create udp socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004042fc
xor eax, eax
push ebp
push 0x413c6d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
push 0x11
push 2
push 2
call sub.ws2_32.dll_socket_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x413c57
xor eax, eax
push ebp
push 0x413c44
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.00413aac
mov eax, dword [ebp - 4]
call fcn.0040430c
push eax
call sub.ws2_32.dll_gethostbyname_1
mov esi, eax
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.004030ec
mov dword [ebp - 0x10], 0x10
mov word [ebp - 0x20], 2
push edi
call sub.ws2_32.dll_htons_1
mov word [ebp - 0x1e], ax
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
mov eax, dword [ebx]
call fcn.00404f40
push eax
mov eax, dword [ebx]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ws2_32.dll_sendto_1
mov esi, eax
inc esi
jne 0x413be1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x413c57
push 0x8000
mov eax, ebx
mov ecx, 1
mov edx, dword [0x413a34]
call fcn.004050f4
add esp, 4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0x8000
mov eax, dword [ebx]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ws2_32.dll_recvfrom_1
mov esi, eax
test esi, esi
setg byte [ebp - 5]
cmp byte [ebp - 5], 0
je 0x413c3a
push esi
mov eax, ebx
mov ecx, 1
mov edx, dword [0x413a34]
call fcn.004050f4
add esp, 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x413c4e
mov eax, dword [ebp - 0xc]
push eax
call sub.ws2_32.dll_closesocket_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413c74
lea eax, [ebp - 4]
call fcn.00403ec4
ret

Function at 0x413ccc
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004042fc
xor eax, eax
push ebp
push 0x413d7a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, 0x413d90
call fcn.00403f18
mov eax, dword [ebp - 4]
test eax, eax
je 0x413d06
sub eax, 4
mov eax, dword [eax]
test eax, eax
je 0x413d64
xor eax, eax
push ebp
push 0x413d5a
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.dnsapi.dll_DnsFlushResolverCache_1
mov eax, dword [ebp - 4]
call fcn.0040430c
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
test ebx, ebx
jne 0x413d3b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x413d64
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, esi
call fcn.004040bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x413d64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413d81
lea eax, [ebp - 4]
call fcn.00403ec4
ret
Function at 0x413da0
Capabilities:
Get networking parameters

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, eax
mov eax, ebx
call fcn.00403ec4
mov dword [ebp - 8], 0x248
mov eax, 0x248
call fcn.00402c60
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x413e41
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.iphlpapi.dll_GetNetworkParams
cmp eax, 0x6f
jne 0x413e0c
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00402c94
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.iphlpapi.dll_GetNetworkParams
test eax, eax
je 0x413e0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x413e53
mov eax, dword [ebp - 4]
cmp byte [eax + 0x110], 0
jne 0x413e22
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x413e53
mov eax, ebx
mov edx, dword [ebp - 4]
add edx, 0x110
mov ecx, 0x10
call fcn.004040f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x413e4b
mov eax, dword [ebp - 4]
call fcn.00402c7c
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x413e5c
Capabilities:
Get networking parameters

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, eax
mov eax, esi
call fcn.00403ec4
mov dword [ebp - 8], 0x248
mov eax, 0x248
call fcn.00402c60
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x413f04
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.iphlpapi.dll_GetNetworkParams
cmp eax, 0x6f
jne 0x413ec8
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00402c94
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.iphlpapi.dll_GetNetworkParams
test eax, eax
je 0x413ec8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x413f16
mov eax, dword [ebp - 4]
cmp byte [eax + 0x110], 0
jne 0x413ede
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x413f16
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x10c]
test ebx, ebx
je 0x413efa
mov eax, esi
lea edx, [ebx + 4]
mov ecx, 0x10
call fcn.004040f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x413f0e
mov eax, dword [ebp - 4]
call fcn.00402c7c
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret