joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4041cb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
push 1
and byte [ebp - 0x110], 0
pop edx
push 0x40
xor eax, eax
pop esi
lea edi, [ebp - 0x10f]
mov ecx, esi
and dword [ebp - 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
and dword [ebp - 0xc], 0
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push edx
mov dword [ebp - 8], edx
push dword [0x415150]
stosb byte es:[edi], al
mov edi, str._spftw_d.pkg
lea eax, [ebp - 0x110]
push edi
push eax
call ebx
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004014b2
add esp, 0x18
test eax, eax
je 0x404339
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x110]
push eax
call section..text
cmp dword [ebp - 4], 0
pop ecx
pop ecx
jl 0x404253
add dword [ebp - 0xc], eax
inc dword [ebp - 8]
jmp 0x404259
cmp dword [ebp - 4], 0xfffffff6
je 0x40426c
push dword [ebp - 8]
lea eax, [ebp - 0x110]
push dword [0x415150]
push edi
push eax
jmp 0x404218
and byte [ebp - 0x318], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x317]
rep stosd dword es:[edi], eax
and byte [ebp - 0x41c], 0
mov ecx, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x41b]
rep stosd dword es:[edi], eax
and byte [ebp - 0x214], 0
mov ecx, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x213]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, 0x104
lea eax, [ebp - 0x318]
push esi
mov edi, 0x13e
push eax
push edi
push dword [0x4150d8]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x318]
push esi
push eax
push edi
push 0x414178
call fcn.00401447
add esp, 0x10
lea eax, [ebp - 0x214]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x214]
push 4
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x41c]
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x41c]
push 0x10
push dword [0x415178]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [ebp - 4], 0xfffffff6
pop edi
pop esi
pop ebx
jne 0x404346
xor eax, eax
leave
ret
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00404359
add esp, 0xc
leave
ret
Function at 0x4099ec
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409abf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409ad8
push ebx
push 0x409ae4
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a6c
mov al, 0x6a
call fcn.00409648
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.004099c0
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a75
call fcn.004099c0
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409ac6
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409b78
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
jmp 0x409c21
cmp dword [esi + 0x10], 0x1000
jne 0x409c0d
test byte [esi + 0x15], 1
jne 0x409c0d
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409bcc
cmp eax, 2
je 0x409bcc
cmp eax, 0x10
je 0x409bcc
cmp eax, 0x20
jne 0x409be1
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409be1
mov bl, 1
xor ebp, ebp
jmp 0x409bf2
mov eax, dword [esi]
add eax, ebp
call fcn.00409b70
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409be5
test bl, bl
je 0x409c0d
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409ba4
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x10001060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call fcn.1000106f
Function at 0x4044b1
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x404522
push 0
push ecx
mov eax, esp
mov dword [esp + 0xc], esp
push str.Analyzer.dll
push 0x420c3c
push eax
call sub.MFC42.DLL_operator_1
mov ecx, 0x420b98
call fcn.00401130
test eax, eax
jne 0x4044f7
push 3
mov ecx, esi
call fcn.00404730
mov ecx, esi
call fcn.00404710
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [esi + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edx, [esp + 4]
push edx
push 0
push esi
push 0x404980
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], 1
mov eax, 1
pop esi
pop ecx
ret

Function at 0x406620
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4174a1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x30]
call fcn.00415e00
lea edi, [esi + 0x34]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x18], ebx
call fcn.00415e00
lea ecx, [esi + 0x38]
mov byte [esp + 0x18], 1
call fcn.00415e00
mov eax, dword [esp + 0x20]
mov ecx, edi
push eax
mov byte [esp + 0x1c], 2
mov dword [esi], 0x419ad8
mov dword [esi + 0x28], ebx
mov dword [esi + 0x24], ebx
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x20], ebx
mov dword [esi + 4], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x4079c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4175f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov esi, dword [esp + 0x40]
mov dword [esp + 0x38], 0
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextColor]
push 1
mov ecx, esi
mov dword [esp + 0x44], eax
call sub.MFC42.DLL_CDC::SetBkMode
mov ebx, dword [esp + 0x48]
mov dword [esp + 0xc], eax
mov al, byte [esp + 0x50]
test al, al
je 0x407aa1
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push ebp
mov ebp, dword [esi]
push 0x14
call edi
push eax
mov ecx, esi
call dword [ebp + 0x38]
mov eax, dword [esp + 0x50]
mov edx, ebx
mov ebp, dword [edx]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], ebp
mov ebp, dword [edx + 4]
push eax
mov dword [esp + 0x1c], ebp
lea eax, [esp + 0x18]
mov ebp, dword [edx + 8]
push ecx
push eax
mov dword [esp + 0x28], ebp
mov edx, dword [edx + 0xc]
mov dword [esp + 0x2c], edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x28], edx
mov edx, dword [esi]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
lea ebp, [esp + 0x24]
push 0x8024
push ebp
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
mov ebp, dword [esi]
push 0x10
call edi
push eax
mov ecx, esi
call dword [ebp + 0x38]
pop ebp
jmp 0x407ab1
mov edi, dword [esi]
push 0x12
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov ecx, esi
call dword [edi + 0x38]
mov eax, dword [esp + 0x44]
mov edx, dword [esi]
push 0x8024
push ebx
mov ecx, dword [eax - 8]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
mov ecx, dword [esp + 0x40]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x38]
mov edx, dword [esp + 0xc]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::SetBkMode
lea ecx, [esp + 0x44]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret

Function at 0x407b10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x417618
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
xor eax, eax
mov ecx, 0xa
mov dword [esp + 0x20], eax
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax - 8]
lea edi, [esp + 8]
push 0x520
mov esi, dword [ecx]
push edi
push edx
push eax
call dword [esi + 0x70]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
mov esi, dword [esp + 0x28]
sub ecx, edx
mov dword [esp + 0x20], 0xffffffff
mov dword [esi], ecx
lea ecx, [esp + 0x30]
mov dword [esi + 4], eax
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x407ce0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x417666
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x419c70
mov eax, dword [esi + 0x10]
xor edi, edi
test eax, eax
mov dword [esp + 0x14], 1
je 0x407d79
mov eax, dword [esi + 0x18]
test eax, eax
je 0x407d34
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
add eax, ecx
add eax, edx
test eax, eax
jg 0x407d34
mov edi, 1
jmp 0x407d50
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x28]
push ecx
push edx
push eax
push 0x41fd7c
push 5
push esi
call fcn.00407db0
add esp, 0x18
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [esi + 0x10], 0
test edi, edi
je 0x407d79
mov eax, dword [esi + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x407d79
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esi + 0xc]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x408140
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags
Reference http user-agent string

Disassembly:
push 0xffffffffffffffff
push 0x417724
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
lea ebx, [esi + 8]
mov ecx, ebx
call fcn.00415e00
lea ebp, [esi + 0xc]
xor edi, edi
mov ecx, ebp
mov dword [esp + 0x20], edi
call fcn.00415e00
lea ecx, [esi + 0x10]
mov byte [esp + 0x20], 1
call fcn.00415e00
lea ecx, [esi + 0x14]
mov byte [esp + 0x20], 2
call fcn.00415e00
lea ecx, [esi + 0x18]
mov byte [esp + 0x20], 3
call fcn.00415e00
lea ecx, [esi + 0x1c]
mov byte [esp + 0x20], 4
call fcn.00415e00
lea ecx, [esi + 0x20]
mov byte [esp + 0x20], 5
call fcn.00415e00
lea ecx, [esi + 0x24]
mov byte [esp + 0x20], 6
call fcn.00415e00
lea ecx, [esi + 0x358]
mov byte [esp + 0x20], 7
call fcn.00415e00
mov al, byte [esp + 0x13]
mov dword [esi + 0x368], edi
mov byte [esi + 0x364], al
mov dword [esi + 0x36c], edi
mov dword [esi + 0x370], edi
push str.Mozilla_5.0__Windows__U__Windows_NT_6.1__en_US_
mov ecx, ebx
mov byte [esp + 0x24], 9
mov dword [esi], 0x419c74
mov dword [esi + 0x350], edi
mov dword [esi + 0x34c], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
call sub.MFC42.DLL_CString::operator_1
mov ecx, ebp
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x14]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x1c]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x20]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x24]
call sub.MFC42.DLL_CString::Empty
mov dword [esi + 0x398], edi
mov dword [esi + 0x3a0], edi
mov dword [esi + 0x388], edi
mov dword [esi + 0x39c], edi
mov dword [esi + 0x3a4], edi
mov dword [esi + 0x38c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x2c], edi
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x30], edi
mov dword [esi + 0x3a8], edi
mov dword [esi + 0x3ac], edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x408e50
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
sub esp, 0x400
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x34c]
test eax, eax
jne 0x408e83
mov eax, dword [esi + 8]
push 0
push 0x420b8c
push 0x420b8c
push 1
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
jmp 0x408f11
cmp eax, 1
jne 0x408ea2
mov eax, dword [esi + 8]
push 0
push 0x420b8c
push 0x420b8c
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
jmp 0x408f11
mov eax, dword [esi + 0x248]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esi + 0x24c]
push eax
push edi
lea ecx, [esp + 0x18]
push str.httphttp:___s:_d
push ecx
call ebx
mov eax, dword [esi + 8]
mov ebp, dword [sym.imp.WININET.dll_InternetOpenA]
add esp, 0x10
lea edx, [esp + 0x10]
push 0
push 0x420b8c
push edx
push 3
push eax
call ebp
test eax, eax
mov dword [esi + 0x3c], eax
jne 0x408f14
mov eax, dword [esi + 0x248]
lea ecx, [esp + 0x10]
push eax
push edi
push str.socks_s:_d
push ecx
call ebx
mov eax, dword [esi + 8]
add esp, 0x10
lea edx, [esp + 0x10]
push 0
push 0x420b8c
push edx
push 3
push eax
call ebp
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x3c]
test eax, eax
jne 0x408f30
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x400
ret 8
mov ecx, dword [esp + 0x418]
mov edx, dword [esp + 0x414]
push 0
push 0x400000
push 3
push 0
push 0
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edx, eax
test edx, edx
mov dword [esi + 0x40], edx
jne 0x408f79
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
call fcn.00408dd0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x400
ret 8
mov eax, dword [esi + 0x350]
mov ebp, dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
je 0x408fb4
lea ebx, [esi + 0x48]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x408fb4
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
push ebx
push 0x2b
push edx
call ebp
test eax, eax
jne 0x408fb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi + 0x350]
test eax, eax
je 0x408fef
lea edx, [esi + 0x148]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x408fef
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x40]
not ecx
push ecx
push edx
push 0x2c
push eax
call ebp
test eax, eax
jne 0x408fef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x409017
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
call fcn.00408dd0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x400
ret 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x400
ret 8
Function at 0x409670
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x44]
test eax, eax
jne 0x40968a
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor eax, eax
pop ebp
ret 0x10
mov edx, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x14]
mov ecx, edx
mov esi, ecx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
mov esi, dword [esp + 0x20]
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
lea eax, [esp + 0x14]
mov dword [esi], edi
mov dword [esi + 4], edi
mov ecx, dword [ebp + 0x44]
push eax
push edx
push ebx
push ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
pop ebx
jne 0x4096da
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor eax, eax
pop ebp
ret 0x10
mov edx, dword [esp + 0x10]
mov eax, 1
mov dword [esi], edx
mov dword [esi + 4], edi
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x409e20
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags
Reference http user-agent string

Disassembly:
push 0xffffffffffffffff
push 0x417877
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
lea ebx, [esi + 8]
mov ecx, ebx
call fcn.00415e00
lea ebp, [esi + 0xc]
xor edi, edi
mov ecx, ebp
mov dword [esp + 0x20], edi
call fcn.00415e00
lea ecx, [esi + 0x10]
mov byte [esp + 0x20], 1
call fcn.00415e00
lea ecx, [esi + 0x14]
mov byte [esp + 0x20], 2
call fcn.00415e00
lea ecx, [esi + 0x18]
mov byte [esp + 0x20], 3
call fcn.00415e00
lea ecx, [esi + 0x1c]
mov byte [esp + 0x20], 4
call fcn.00415e00
lea ecx, [esi + 0x20]
mov byte [esp + 0x20], 5
call fcn.00415e00
lea ecx, [esi + 0x354]
mov byte [esp + 0x20], 6
call fcn.00415e00
mov al, byte [esp + 0x13]
mov dword [esi + 0x364], edi
mov byte [esi + 0x360], al
mov dword [esi + 0x368], edi
mov dword [esi + 0x36c], edi
lea ecx, [esi + 0x394]
mov byte [esp + 0x20], 8
call fcn.00415e00
push str.Mozilla_5.0__Windows__U__Windows_NT_6.1__en_US_
mov ecx, ebx
mov byte [esp + 0x24], 9
mov dword [esi], 0x419c90
mov dword [esi + 0x34c], edi
mov dword [esi + 0x348], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], edi
call sub.MFC42.DLL_CString::operator_1
mov ecx, ebp
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x14]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x18]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x1c]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x20]
call sub.MFC42.DLL_CString::Empty
mov dword [esi + 0x398], edi
mov dword [esi + 0x380], edi
mov dword [esi + 0x39c], edi
mov dword [esi + 0x3a0], edi
mov dword [esi + 0x384], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x3a4], edi
mov dword [esi + 0x3a8], edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40a880
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
sub esp, 0x400
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x348]
test eax, eax
jne 0x40a8b3
mov eax, dword [esi + 8]
push 0
push 0x420b8c
push 0x420b8c
push 1
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
jmp 0x40a941
cmp eax, 1
jne 0x40a8d2
mov eax, dword [esi + 8]
push 0
push 0x420b8c
push 0x420b8c
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
jmp 0x40a941
mov eax, dword [esi + 0x244]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esi + 0x248]
push eax
push edi
lea ecx, [esp + 0x18]
push str.httphttp:___s:_d
push ecx
call ebx
mov eax, dword [esi + 8]
mov ebp, dword [sym.imp.WININET.dll_InternetOpenA]
add esp, 0x10
lea edx, [esp + 0x10]
push 0
push 0x420b8c
push edx
push 3
push eax
call ebp
test eax, eax
mov dword [esi + 0x38], eax
jne 0x40a944
mov eax, dword [esi + 0x244]
lea ecx, [esp + 0x10]
push eax
push edi
push str.socks_s:_d
push ecx
call ebx
mov eax, dword [esi + 8]
add esp, 0x10
lea edx, [esp + 0x10]
push 0
push 0x420b8c
push edx
push 3
push eax
call ebp
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x40a960
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x400
ret 8
mov ecx, dword [esp + 0x418]
mov edx, dword [esp + 0x414]
push 0
push 0x400000
push 3
push 0
push 0
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edx, eax
test edx, edx
mov dword [esi + 0x3c], edx
jne 0x40a9a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
call fcn.0040aa60
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x400
ret 8
mov eax, dword [esi + 0x34c]
mov ebp, dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
je 0x40a9e4
lea ebx, [esi + 0x44]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40a9e4
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
push ebx
push 0x2b
push edx
call ebp
test eax, eax
jne 0x40a9e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x40aa1f
lea edx, [esi + 0x144]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40aa1f
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x3c]
not ecx
push ecx
push edx
push 0x2c
push eax
call ebp
test eax, eax
jne 0x40aa1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x40aa47
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
call fcn.0040aa60
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x400
ret 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x400
ret 8
Function at 0x40b060
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x40]
test eax, eax
jne 0x40b07a
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor eax, eax
pop ebp
ret 0x10
mov edx, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x14]
mov ecx, edx
mov esi, ecx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
mov esi, dword [esp + 0x20]
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
lea eax, [esp + 0x14]
mov dword [esi], edi
mov dword [esi + 4], edi
mov ecx, dword [ebp + 0x40]
push eax
push edx
push ebx
push ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
pop ebx
jne 0x40b0ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor eax, eax
pop ebp
ret 0x10
mov edx, dword [esp + 0x10]
mov eax, 1
mov dword [esi], edx
mov dword [esi + 4], edi
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x40b860
Capabilities:
Create thread
Terminate thread

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0040b6d0
mov ebp, dword [esp + 0x1c]
mov ecx, ebp
call sub.MFC42.DLL_CString::Empty
mov eax, dword [esp + 0x18]
lea ecx, [esi + 0x354]
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov ebx, 1
push ecx
push 0
push esi
push 0x40b790
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 0x2710
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40b8c2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0040aa60
mov ecx, esi
call fcn.0040b730
test ebx, ebx
je 0x40b8f1
mov eax, dword [esi + 0x390]
cmp eax, 0xc8
je 0x40b8f1
cmp eax, 0xce
je 0x40b8f1
xor ebx, ebx
add esi, 0x394
mov ecx, ebp
push esi
call sub.MFC42.DLL_CString::operator_2
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret 8