joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4203a8
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0x254
mov eax, 0x62d424
call fcn.004e5a7f
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x228], 0xf
mov dword [ebp - 0x22c], ebx
mov byte [ebp - 0x23c], bl
push 0x1a
lea edx, [ebp - 0x23c]
mov dword [ebp - 4], ebx
pop ecx
call fcn.00413625
mov esi, 0x104
lea eax, [ebp - 0x224]
push esi
push ebx
push eax
call fcn.004fc480
add esp, 0xc
lea eax, [ebp - 0x224]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x224]
lea esi, [edi + 0xb0]
push eax
mov ecx, esi
call fcn.004060b1
cmp dword [edi + 0xc0], ebx
je 0x42043b
push 9
call fcn.0041f747
test al, al
je 0x420444
mov edx, esi
xor ecx, ecx
call fcn.00413625
push 0x104
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.004fc480
add esp, 0xc
lea eax, [ebp - 0x23c]
cmp dword [ebp - 0x228], 0x10
cmovae eax, dword [ebp - 0x23c]
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ecx
push str.root_count
lea eax, [ebp - 0x260]
push eax
call fcn.0040fafc
cmp dword [eax + 4], ebx
je 0x420496
mov eax, ebx
jmp 0x420498
mov eax, dword [eax]
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x258], eax
call fcn.0040b066
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push eax
lea eax, [ebp - 0x11c]
push eax
call esi
lea eax, [ebp - 0x11c]
push eax
lea ecx, [edi + 0xc8]
call fcn.004060b1
lea eax, [ebp - 0x11c]
push eax
call fcn.00509216
pop ecx
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4205ab
lea ecx, [ebp - 0x254]
call fcn.00413530
push 0x104
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 1
push ebx
push eax
call fcn.004fc480
add esp, 0xc
lea eax, [ebp - 0x254]
cmp dword [ebp - 0x240], 0x10
cmovae eax, dword [ebp - 0x254]
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ecx
push str.root_count
lea eax, [ebp - 0x260]
push eax
call fcn.0040fafc
cmp dword [eax + 4], ebx
je 0x42054e
mov eax, ebx
jmp 0x420550
mov eax, dword [eax]
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x258], eax
call fcn.0040b066
push eax
lea eax, [ebp - 0x11c]
push eax
call esi
lea eax, [ebp - 0x11c]
push eax
call fcn.00509216
pop ecx
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42059e
lea eax, [ebp - 0x11c]
push eax
lea ecx, [edi + 0xc8]
call fcn.004060b1
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x254]
call fcn.004060fd
jmp 0x4205ae
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x23c]
call fcn.004060fd
mov eax, ebx
call fcn.004e5a3a
ret
Function at 0x422a6f
Capabilities:
Check http status code

Disassembly:
push 0x10c
mov eax, 0x62d82f
call fcn.004e5a7f
mov edi, dword [0x6e5184]
mov esi, str.Config
mov ebx, 0x6e52b8
push esi
mov ecx, ebx
call fcn.004d8a20
push str.bin_md5
mov ecx, eax
call fcn.004d8a20
mov ecx, eax
call fcn.004da4b0
test al, al
jne 0x422bc6
push esi
mov ecx, ebx
call fcn.004d8a20
push str.bin_url
mov ecx, eax
call fcn.004d8a20
mov ecx, eax
call fcn.004da4b0
test al, al
jne 0x422bc6
lea ecx, [ebp - 0xa8]
call fcn.00419fea
and dword [ebp - 4], 0
mov ecx, ebx
push esi
call fcn.004d8a20
push 1
push 1
lea ecx, [ebp - 0xa8]
push ecx
push str.bin_url
mov ecx, eax
call fcn.004d8a20
mov ecx, eax
call fcn.004d9740
push eax
call fcn.0041c74b
test al, al
je 0x422bb2
cmp dword [ebp - 0xa4], 0xc8
jne 0x422bb2
mov edx, dword [ebp - 0x3c]
sub edx, dword [ebp - 0x40]
cmp edx, 0x800
jbe 0x422bb2
lea ecx, [ebp - 0x118]
call fcn.004085db
push edx
push dword [ebp - 0x40]
call fcn.00408602
push esi
mov ecx, ebx
call fcn.004d8a20
push str.bin_md5
mov ecx, eax
call fcn.004d8a20
mov ecx, eax
call fcn.004d9740
mov esi, eax
lea ecx, [ebp - 0x118]
lea eax, [ebp - 0x28]
push eax
call fcn.00408ef3
cmp dword [eax + 0x14], 0x10
jb 0x422b7d
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.004060fd
test esi, esi
jne 0x422bae
lea edx, [edi + 0x10c]
lea ecx, [ebp - 0x40]
call fcn.004092d6
mov esi, eax
neg esi
sbb esi, esi
neg esi
add esi, 0xe
jmp 0x422bb5
push 0x12
jmp 0x422bb4
push 0x13
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.0041a052
jmp 0x422bc9
push 0xb
pop esi
push esi
mov ecx, edi
call fcn.004233a5
xor eax, eax
call fcn.004e5a3a
ret
Function at 0x422bd9
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0x3c
mov eax, 0x62d866
call fcn.004e5a7f
mov edi, ecx
push 4
pop ebx
push ecx
push str.root_count
lea eax, [ebp - 0x48]
mov dword [ebp - 0x34], ebx
xor esi, esi
push eax
mov dword [ebp - 0x2c], esi
call fcn.0040fafc
cmp dword [eax + 4], esi
je 0x422c0a
mov eax, esi
jmp 0x422c0c
mov eax, dword [eax]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], eax
call fcn.0040b066
push eax
lea eax, [ebp - 0x28]
push str.Software_s
push eax
call fcn.00412ef9
add esp, 8
mov dword [ebp - 4], esi
lea eax, [ebp - 0x3c]
push str.root_use
push eax
call fcn.0040fafc
cmp dword [eax + 4], esi
je 0x422c43
mov eax, esi
jmp 0x422c45
mov eax, dword [eax]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], eax
call fcn.0040b066
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x2c]
push edx
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push eax
push ecx
push reloc.WS2_32.dll_accept
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
push ecx
test eax, eax
lea eax, [ebp - 0x3c]
push str.root_use
push eax
jne 0x422c87
inc dword [ebp - 0x2c]
jmp 0x422c8e
mov dword [ebp - 0x2c], 1
call fcn.0040fafc
cmp dword [eax + 4], esi
jne 0x422c9a
mov esi, dword [eax]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], esi
call fcn.0040b066
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x2c]
push ebx
push edx
push ebx
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push eax
push ecx
push reloc.WS2_32.dll_accept
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
mov dword [edi + 0xe8], eax
call fcn.004060fd
call fcn.004e5a3a
ret
Function at 0x43a6e0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x43a729
mov al, byte [esi]
push eax
call fcn.00447190
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x43a707
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x43b970
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2c0], 2
jne 0x43b985
pop ebp
jmp fcn.0043b920
mov al, 1
pop ebp
ret
Function at 0x444520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x600], 0
je 0x444564
push esi
push 1
push edi
call fcn.00437050
push dword [edi + 0x594]
mov eax, dword [edi + 0x600]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.00437050
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x44459a
push dword [edi + 0x590]
lea eax, [eax + eax*2]
push 1
add eax, 0x636ca8
push 2
push eax
call fcn.00501034
push dword [edi + 0x590]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00501034
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x6d93a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ecx + eax*4 + 0x1b8]
push edi
mov edi, dword [ebp + 0x10]
push eax
push ecx
mov dword [ebp - 0x88], ecx
call fcn.00444e90
add esp, 8
push 0
push dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x4449ea
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x4449ac
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e48e6
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.0046d630
push eax
mov eax, dword [ebp - 0x88]
push str.Send_failure:__s
push dword [eax]
call fcn.004445a0
mov eax, dword [ebp - 0x88]
add esp, 0x18
mov eax, dword [eax]
mov dword [eax + 0xcac], edi
mov eax, esi
mov dword [ebx], 0x37
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e48e6
mov esp, ebp
pop ebp
ret
Function at 0x444e90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
shl eax, 4
push edi
lea esi, [ebx + 0x1dc]
add esi, eax
mov eax, dword [ebx + 0x2b8]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x444f58
cmp dword [ebx + ecx*4 + 0x1cc], 0x444840
jne 0x444f58
cmp dword [esi], 0
je 0x444ed9
test edi, edi
je 0x444f58
mov eax, dword [ebx + ecx*4 + 0x1b8]
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
mov dword [ebp + 0xc], eax
call fcn.004440d0
add esp, 0x14
cmp eax, 0xffffffff
je 0x444f58
test al, 1
je 0x444f58
mov ecx, dword [esi]
test ecx, ecx
jne 0x444f33
mov eax, dword [ebx]
mov eax, dword [eax + 0x8e4]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
mov edi, 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 0x444f51
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x444f58
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test byte [eax + 0x208], 1
je 0x445060
push eax
call fcn.0043de10
add esp, 4
test eax, eax
jne 0x44507e
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x1b8]
cmp eax, 0xffffffff
je 0x44505c
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x44505c
mov al, 1
pop ebp
ret

Function at 0x445870
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6e1ad0]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x4458c1
push 3
push 2
push eax
push 6
call fcn.00446e10
add esp, 0x10
test al, al
je 0x4458b5
mov dword [0x6e1ad0], 2
mov esp, ebp
pop ebp
ret
mov dword [0x6e1ad0], 1
jmp 0x4458c6
cmp eax, 2
je 0x445906
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4458ed
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x445906
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret
Function at 0x445b40
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x6d93a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x90], 2
je 0x445d54
mov eax, dword [esi + 0x294]
push ebx
push edi
test al, 2
jne 0x445d49
test eax, 0x8000000
jne 0x445d49
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x188]
mov ebx, dword [esi]
push eax
lea eax, [ebp - 0x184]
mov dword [ebp - 0x188], 0x80
push eax
push edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x445be2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push esi
call fcn.0046d630
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004445a0
add esp, 0x1c
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e48e6
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x104]
mov dword [ebp - 0x188], 0x80
push 0
push eax
call fcn.004fc480
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x104]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x445c56
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push esi
call fcn.0046d630
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.004445a0
add esp, 0x1c
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e48e6
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x138]
push eax
lea edi, [esi + 0x10a]
lea eax, [ebp - 0x184]
push edi
push eax
call fcn.00446330
add esp, 0xc
test al, al
jne 0x445cb9
call fcn.00509ec7
mov esi, dword [eax]
call fcn.00509ec7
mov edi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push esi
call fcn.0046d630
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004445a0
add esp, 0x1c
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e48e6
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [edi]
mov eax, dword [edi + 0x28]
movups xmmword [esi + 0x5c], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [esi + 0x6c], xmm0
movq xmm0, qword [edi + 0x20]
movq qword [esi + 0x7c], xmm0
mov dword [esi + 0x84], eax
mov ax, word [edi + 0x2c]
mov word [esi + 0x88], ax
lea eax, [esi + 0x16c]
push eax
lea eax, [esi + 0x13c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00446330
add esp, 0xc
test al, al
jne 0x445d49
call fcn.00509ec7
mov esi, dword [eax]
call fcn.00509ec7
mov edi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push esi
call fcn.0046d630
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004445a0
add esp, 0x1c
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e48e6
mov esp, ebp
pop ebp
ret
push esi
call fcn.00445790
add esp, 4
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004e48e6
mov esp, ebp
pop ebp
ret
Function at 0x446760
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6d93a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 4
mov eax, dword [esi + 0xa90]
shr eax, 0xb
and eax, 1
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4467be
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00444680
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e48e6
mov esp, ebp
pop ebp
ret
push dword [esi + 0xa50]
mov dword [ebp - 0x10], 1
call fcn.00446a30
push dword [esi + 0xa54]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.00446a30
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x44682e
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.00444680
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004e48e6
mov esp, ebp
pop ebp
ret

Function at 0x446840
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x6d93a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 4
mov dword [ebp - 0x88], 1
mov esi, dword [eax]
lea eax, [ebp - 0x88]
push eax
push 1
push 6
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4468b3
push 0x80
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0046d630
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00444680
add esp, 0x18
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e48e6
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00444680
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop esi
call fcn.004e48e6
mov esp, ebp
pop ebp
ret

Function at 0x446a10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.00446a50
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.00516bc7
Function at 0x446ca0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x446cc0
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x63711c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x63712c
push esi
mov dword [ebp - 8], ebx
call fcn.0050e1ee
add esp, 8
test eax, eax
je 0x446d0c
test ebx, ebx
je 0x446cfc
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x446d35
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x446d35
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x446df8
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x446d51
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x446dee
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x446dee
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x446d90
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x446db0
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, esi
add ecx, ebx
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x446dc5
mov eax, dword [ebp - 8]
test eax, eax
je 0x446de5
push 8
push 0
push ebx
call eax
jmp 0x446dec
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x6d9004]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x446fb0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x6d93a8]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x447009
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x446ff6
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x446ff0
shr eax, 8
cmp al, 2
je 0x447009
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e48e6
mov esp, ebp
pop ebp
ret
push str.iphlpapi.dll
call fcn.00446ca0
add esp, 4
mov dword [0x6e1ad8], eax
test eax, eax
je 0x44703c
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x6e1ad4]
test eax, eax
cmovne ecx, eax
mov dword [0x6e1ad4], ecx
push 3
push 2
push 0
push 6
call fcn.00446e10
add esp, 0x10
test al, al
je 0x447072
push 0x6e8638
mov byte [0x6e8630], 1
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e48e6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
mov byte [0x6e8630], 0
call fcn.004e48e6
mov esp, ebp
pop ebp
ret

Function at 0x447d80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x447da1
cmp dword [esi + 0x80], 0
je 0x447da1
push 2
push 3
push esi
call fcn.004364e0
add esp, 0xc
push dword [ebp + 0xc]
call fcn.004477c0
add esp, 4
test esi, esi
je 0x447dc4
cmp dword [esi + 0x80], 0
je 0x447dc4
push 3
push esi
call fcn.00436520
add esp, 8
pop esi
pop ebp
ret
Function at 0x454270
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x454404
push edi
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x4543f0
push esi
nop dword [eax]
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x4542bf
mov eax, 0x10
jmp 0x4542cd
cmp eax, 0x17
jne 0x454381
mov eax, 0x1c
cmp dword [edi + 0x18], 0
mov dword [ebp - 4], eax
je 0x454381
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x454381
cmp ecx, eax
jb 0x454381
push 0x20
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x4543e5
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]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
push eax
mov dword [esi + 0x10], eax
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 0x4543d4
push dword [ebp - 4]
push dword [edi + 0x18]
push eax
call fcn.004fc5e0
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x45436f
push eax
call dword [0x6d900c]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x4543ba
mov eax, dword [ebp - 8]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x45437e
mov dword [eax + 0x1c], esi
mov dword [ebp - 8], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4542b0
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
pop esi
test eax, eax
je 0x45439e
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x4543ec
push ebx
call fcn.00454230
mov eax, dword [ebp + 0x14]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x18]
mov edi, 8
call dword [0x6d9004]
push esi
call dword [0x6d9004]
add esp, 8
jmp 0x45438f
push esi
mov edi, 8
call dword [0x6d9004]
add esp, 4
jmp 0x45438f
mov edi, 8
jmp 0x45438f
test ebx, ebx
jne 0x4543fc
mov edi, 0x2af9
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4547b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.0050941a
add esp, 0x18
test eax, eax
je 0x4547d2
cmp eax, 0xffffffff
jne 0x4547d4
xor eax, eax
pop ebp
ret