joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42fe10
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c080
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x4c
mov eax, dword [0x58d214]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], 0x400
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42fe6c
jmp 0x42feca
cmp dword [ebp + 0x1c], 0
jne 0x42fe87
mov dword [ebp - 0x3c], 1
push 0x58286c
lea eax, [ebp - 0x3c]
push eax
call fcn.0050ca6d
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x24]
push edx
push 0
push 0xf003f
push 0
push 0x546054
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x42fec6
mov dword [ebp - 0x40], 1
push 0x58286c
lea edx, [ebp - 0x40]
push edx
call fcn.0050ca6d
xor eax, eax
jne 0x42fe4d
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42feff
mov dword [ebp - 0x44], 2
push 0x58286c
lea eax, [ebp - 0x44]
push eax
call fcn.0050ca6d
cmp dword [ebp + 0x1c], 0
jne 0x42ff1a
mov dword [ebp - 0x48], 3
push 0x58286c
lea ecx, [ebp - 0x48]
push ecx
call fcn.0050ca6d
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
add eax, 2
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x2c]
mov dx, word [ecx]
mov word [ebp - 0x32], dx
add dword [ebp - 0x2c], 2
cmp word [ebp - 0x32], 0
jne 0x42ff29
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x4c]
sar eax, 1
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp + 0x18]
push edx
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x54], 3
push 0x58286c
lea edx, [ebp - 0x54]
push edx
call fcn.0050ca6d
mov eax, dword [ebp - 0x58]
and eax, 1
je 0x42ffbf
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x38]
mov dx, word [ecx]
mov word [ebp - 0x26], dx
mov eax, dword [ebp - 0x30]
mov cx, word [ebp - 0x26]
mov word [eax], cx
mov edx, dword [ebp - 0x38]
add edx, 2
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x30]
add eax, 2
mov dword [ebp - 0x30], eax
cmp word [ebp - 0x26], 0
jne 0x42ff92
mov ecx, dword [ebp - 0x58]
and ecx, 2
je 0x42ffd1
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x42ffe0
ret
Function at 0x430410
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x430430
xor al, al
jmp 0x43045a
mov ecx, dword [ebp - 4]
and ecx, 2
jne 0x430458
mov edx, dword [ebp - 4]
or edx, 2
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, 0xffffffff
jne 0x430452
xor al, al
jmp 0x43045a
mov al, 1
jmp 0x43045a
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x4312f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c310
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x2c
mov eax, dword [0x58d214]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x431345
jmp 0x4313a3
cmp dword [ebp + 0x18], 0
jne 0x431360
mov dword [ebp - 0x28], 0
push 0x58286c
lea eax, [ebp - 0x28]
push eax
call fcn.0050ca6d
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0
push 0xf003f
push 0
push 0x546054
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x43139f
mov dword [ebp - 0x2c], 0
push 0x58286c
lea edx, [ebp - 0x2c]
push edx
call fcn.0050ca6d
xor eax, eax
jne 0x431326
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
add edx, 2
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x20]
mov cx, word [eax]
mov word [ebp - 0x22], cx
add dword [ebp - 0x20], 2
cmp word [ebp - 0x22], 0
jne 0x4313b2
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp - 0x30]
sar edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x38], 1
push 0x58286c
lea edx, [ebp - 0x38]
push edx
call fcn.0050ca6d
cmp dword [ebp - 0x3c], 0
je 0x431415
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x431424
ret
Function at 0x431450
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c340
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x20
mov eax, dword [0x58d214]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4314a5
jmp 0x431503
cmp dword [ebp + 0x18], 0
jne 0x4314c0
mov dword [ebp - 0x24], 0
push 0x58286c
lea eax, [ebp - 0x24]
push eax
call fcn.0050ca6d
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0
push 0xf003f
push 0
push 0x546054
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4314ff
mov dword [ebp - 0x28], 0
push 0x58286c
lea edx, [ebp - 0x28]
push edx
call fcn.0050ca6d
xor eax, eax
jne 0x431486
mov dword [ebp - 0x18], 1
push 4
lea ecx, [ebp - 0x18]
push ecx
push 4
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x2c], 1
push 0x58286c
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0050ca6d
cmp dword [ebp - 0x30], 0
je 0x431547
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x431556
ret
Function at 0x43e058
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x43e066
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
shr eax, 4
and al, 1
pop ebp
ret

Function at 0x43e0b1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x43e0bf
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x43e122
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43e148
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x43e148
xor al, al
jmp 0x43e15c
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x43fbd8
Capabilities:
Create directory

Disassembly:
push 0x38
mov eax, 0x53d2e8
call fcn.004d5863
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x43fbf8
mov al, 1
jmp 0x43fc3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x43fc09
xor al, al
jmp 0x43fc3f
lea ecx, [ebp - 0x44]
call fcn.0043fd42
lea ecx, [ebp - 0x1c]
call fcn.0043f2fd
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.0043fdda
test al, al
je 0x43fc34
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.004d4f30
pop ecx
mov al, bl
call fcn.004d582c
ret

Function at 0x43fc9c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x4402f1
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
pop ebp
ret
Function at 0x4407e0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x198
mov eax, dword [0x58d214]
xor eax, esp
mov dword [esp + 0x194], eax
cmp dword [0x592400], 0
jne 0x44088a
mov dword [0x592400], 1
mov dword [fcn.00517918], 0x517918
mov dword [fcn.00515b2e], 0x515b2e
mov dword [fcn.0051739e], 0x51739e
mov dword [0x58d0bc], 0x526b80
mov dword [fcn.0051790d], 0x51790d
call fcn.004482f0
test eax, eax
je 0x44089a
lea eax, [esp + 4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x44089a
mov eax, dword [esp + 4]
cmp al, 2
jne 0x4408b1
shr eax, 8
cmp al, 2
jne 0x4408b1
call fcn.004464c0
test eax, eax
jne 0x44089a
call fcn.004468b0
test eax, eax
jne 0x44089a
mov dword [0x592404], 3
call fcn.00453890
lea eax, [esp]
push eax
call fcn.004498a0
add esp, 4
test eax, eax
je 0x4408ce
xor eax, eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004d48f1
add esp, 0x198
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004d48f1
add esp, 0x198
ret
mov ecx, dword [esp + 0x194]
mov eax, dword [esp]
xor ecx, esp
call fcn.004d48f1
add esp, 0x198
ret

Function at 0x440b80
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x58d214]
xor eax, esp
mov dword [esp + 0x190], eax
mov eax, dword [0x592400]
mov ecx, eax
inc eax
mov dword [0x592400], eax
test ecx, ecx
je 0x440bbc
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004d48f1
add esp, 0x194
ret
cmp byte [esp + 0x19c], 0
je 0x440bf8
mov dword [fcn.00517918], 0x517918
mov dword [fcn.00515b2e], 0x515b2e
mov dword [fcn.0051739e], 0x51739e
mov dword [0x58d0bc], 0x526b80
mov dword [fcn.0051790d], 0x51790d
push ebx
mov ebx, dword [esp + 0x19c]
test bl, 1
je 0x440c0e
call fcn.004482f0
test eax, eax
je 0x440c48
test bl, 2
je 0x440c3f
lea eax, [esp + 4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x440c48
mov eax, dword [esp + 4]
cmp al, 2
jne 0x440c63
shr eax, 8
cmp al, 2
jne 0x440c63
call fcn.004464c0
test eax, eax
jne 0x440c48
call fcn.004468b0
test eax, eax
je 0x440c6b
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004d48f1
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x440c48
mov eax, dword [0x592440]
test bl, 4
mov ecx, 1
mov dword [0x592404], ebx
cmovne eax, ecx
mov dword [0x592440], eax
call fcn.00453890
mov ecx, dword [esp + 0x194]
xor eax, eax
pop ebx
xor ecx, esp
call fcn.004d48f1
add esp, 0x194
ret
Function at 0x451580
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x58d214]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push edi
mov edi, dword [esp + 0x114]
lea eax, [esp + 0x11c]
push eax
push dword [esp + 0x11c]
lea eax, [esp + 0x10]
push 0x100
push eax
call fcn.00453bf0
lea esi, [esp + 0x18]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4515c5
sub esi, ecx
mov ecx, dword [edi + 0x198]
test ecx, ecx
je 0x4515f9
cmp byte [edi + 0x4778], al
jne 0x4515f9
lea edx, [esp + 8]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x4515e4
mov byte [edi + 0x4778], 1
cmp byte [edi + 0x3c8], 0
je 0x451633
mov byte [esp + esi + 8], 0xa
inc esi
cmp esi, 0x102
jae 0x45168b
mov eax, dword [edi + 0x208]
mov byte [esp + esi + 8], 0
test eax, eax
je 0x45164a
push dword [edi + 0x194]
lea ecx, [esp + 0xc]
push esi
push ecx
push 0
push edi
call eax
add esp, 0x14
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004d48f1
add esp, 0x108
ret
push dword [edi + 0x190]
push 1
push 2
push 0x54d3f8
call fcn.00516c82
push dword [edi + 0x190]
lea eax, [esp + 0x1c]
push 1
push esi
push eax
call fcn.00516c82
mov ecx, dword [esp + 0x12c]
add esp, 0x20
pop edi
pop esi
xor ecx, esp
call fcn.004d48f1
add esp, 0x108
ret
call fcn.004d54b4
int3

Function at 0x4516a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x58d214]
xor eax, esp
mov dword [esp + 0x804], eax
push edi
mov edi, dword [esp + 0x810]
test edi, edi
je 0x451769
cmp byte [edi + 0x3c8], 0
je 0x451769
push esi
lea eax, [esp + 0x81c]
push eax
push dword [esp + 0x81c]
lea eax, [esp + 0x10]
push 0x801
push eax
call fcn.00453bf0
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 0x451700
mov eax, dword [edi + 0x208]
sub esi, ecx
test eax, eax
je 0x45173e
push dword [edi + 0x194]
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.004d48f1
add esp, 0x808
ret
push dword [edi + 0x190]
push 1
push 2
push 0x54d3f8
call fcn.00516c82
push dword [edi + 0x190]
lea eax, [esp + 0x1c]
push 1
push esi
push eax
call fcn.00516c82
add esp, 0x20
pop esi
mov ecx, dword [esp + 0x808]
pop edi
xor ecx, esp
call fcn.004d48f1
add esp, 0x808
ret
Function at 0x451d60
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, 0x1cc
mov ecx, dword [edi + 0x1ac]
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x1a8]
mov ebp, dword [eax + edi]
mov eax, 0x1dc
cmove esi, eax
mov eax, dword [edi + 0x3d0]
add esi, edi
mov ebx, dword [esi + 4]
sub ebx, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x451e38
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x1bc]
cmp dword [eax + edi], 0x451920
jne 0x451e38
cmp dword [esi], 0
je 0x451dc8
test ebx, ebx
je 0x451e38
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.00450ef0
add esp, 0x14
cmp eax, 0xffffffff
je 0x451e38
test al, 1
je 0x451e38
mov ecx, dword [esi]
test ecx, ecx
jne 0x451e18
mov eax, dword [edi]
mov eax, dword [eax + 0x388]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x58d0b0]
mov ebx, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x451e31
mov eax, dword [esi + 8]
push 0
push ebx
add eax, ecx
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x451e38
add dword [esi + 8], eax
jmp 0x451e38
mov dword [esi + 4], 0
push 0
push dword [esp + 0x24]
push dword [esp + 0x24]
push ebp
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x451ea1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x451e72
mov ecx, dword [esp + 0x24]
lea eax, [ebx + 0x52]
pop edi
pop esi
pop ebp
mov dword [ecx], 0
pop ebx
ret
push esi
push edi
call fcn.00441490
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.00451580
mov eax, dword [edi]
add esp, 0x14
mov ecx, dword [esp + 0x24]
pop edi
mov dword [eax + 0x477c], esi
mov eax, 0x37
pop esi
pop ebp
mov dword [ecx], ebx
pop ebx
ret
mov ecx, dword [esp + 0x24]
xor eax, eax
pop edi
pop esi
pop ebp
mov dword [ecx], ebx
pop ebx
ret

Function at 0x451fa0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x208]
test eax, eax
je 0x451fc9
push dword [esi + 0x194]
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 0x452002
push dword [esi + 0x190]
lea eax, [eax + eax*2]
push 1
add eax, 0x54d3f8
push 2
push eax
call fcn.00516c82
push dword [esi + 0x190]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.00516c82
add esp, 0x20
xor eax, eax
pop esi
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x1ec], 0
je 0x4520dd
push eax
call fcn.00447b70
add esp, 4
test eax, eax
jne 0x4520fc
xor al, al
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x4520da
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4520da
mov al, 1
ret
Function at 0x45f0d0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x54f538
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x45f0ea
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x54f554
push esi
call fcn.0051fe20
add esp, 8
test eax, eax
je 0x45f132
test ebp, ebp
je 0x45f123
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 0x45f158
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45f158
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 0x45f20f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45f175
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x58d0b0]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x45f205
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x45f205
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45f1a7
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 0x45f1c0
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 0x45f1d0
test ebp, ebp
je 0x45f1fc
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x58d0b4]
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 [0x58d0b4]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x45f3c0
Capabilities:
Resolve dns

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x18]
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
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 0x45f53c
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x45f527
push esi
cmp dword [edi + 4], 2
jne 0x45f4b4
cmp dword [edi + 0x18], 0
je 0x45f4b4
mov eax, dword [edi + 0x10]
test eax, eax
je 0x45f4b4
cmp eax, 0x10
jb 0x45f4b4
push 0x20
call dword [0x58d0b0]
mov esi, eax
add esp, 4
test esi, esi
je 0x45f51c
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 0x10
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x58d0b0]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x45f50b
mov ecx, dword [edi + 0x18]
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x45f4a6
push eax
call dword [0x58d0bc]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x45f4f1
test ebx, ebx
cmove ebx, esi
test ebp, ebp
je 0x45f4b2
mov dword [ebp + 0x1c], esi
mov ebp, esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x45f400
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
pop esi
test eax, eax
je 0x45f4d3
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x45f523
push ebx
call fcn.0045f380
mov eax, dword [esp + 0x28]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, ebp
pop edi
pop ebp
pop ebx
add esp, 8
ret
push dword [esi + 0x18]
mov ebp, 8
call dword [0x58d0b4]
push esi
call dword [0x58d0b4]
add esp, 8
jmp 0x45f4c3
push esi
mov ebp, 8
call dword [0x58d0b4]
add esp, 4
jmp 0x45f4c3
mov ebp, 8
jmp 0x45f4c3
test ebx, ebx
jne 0x45f533
mov ebp, 0x2af9
push ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x24]
pop edi
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret

Function at 0x45f980
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 0x45f9c5
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 0x45f9cc
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