joyce8/EMBER2024-capa huggingface dataset:
Function at 0x469b70
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push dword [esp + 0x24]
call fcn.00436d40
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x69e050]
mov esi, eax
add esp, 8
test esi, esi
je 0x469cf2
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x469bf2
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x38], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x469c63
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x469c20
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x469c95
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x68fdd5
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x68fdd6
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x469c70
push dword [esp + 0x30]
call fcn.00436d40
mov ecx, dword [esi]
push eax
push dword [esp + 0x34]
push dword [esi + 4]
mov eax, dword [ecx + 4]
call eax
mov edi, dword [esp + 0x44]
add esp, 0x10
mov ebx, dword [esi]
test edi, edi
jne 0x469cc0
mov edi, dword [ebx + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebx + 8]
push edi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebx + 8]
push edi
call eax
push esi
call dword [0x69e054]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0xc
ret
Function at 0x46b4d0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x46b51c
push ebx
mov ebx, dword [esp + 0x10]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0x46b4e1
pop ebx
pop edi
pop esi
ret

Function at 0x46d4e3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x46d522
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x46d522
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46d522
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x46d522
cmp dword [ecx + 0x74], 0xe
jbe 0x46d522
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4866db
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048655a

Function at 0x48adf2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048aab2

Function at 0x490f90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x490fbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x490fbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402830
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push edi
push 0x19000
mov eax, dword [ecx + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0xc], eax
call fcn.004777e0
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ebp - 8], eax
xor edi, edi
mov edx, dword [ecx]
push 0x19000
push eax
call dword [edx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x4028ed
mov eax, dword [ebp + 0xc]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0xc]
push 0
add eax, edi
push eax
push dword [ebp - 4]
call fcn.00482c8c
push dword [ebp - 4]
call fcn.00482dc2
push dword [ebp - 4]
push ebx
push 1
push dword [ebp - 8]
call fcn.0047f5d6
push dword [ebp - 4]
call fcn.00482dc2
add dword [esi + 0x10], ebx
add esp, 0x24
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4028c9
mov eax, dword [esi]
push dword [eax + 4]
push dword [esi + 0xc]
push dword [esi + 0x10]
push 2
call ecx
add esp, 0x10
mov eax, dword [ebp + 0xc]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp + 8]
add edi, ebx
push 0x19000
push dword [ebp - 8]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, eax
test ebx, ebx
jg 0x402870
push dword [ebp - 8]
call fcn.0047e441
mov eax, dword [ebp + 0xc]
add esp, 4
cmp edi, dword [eax + 0xc]
je 0x402939
mov ecx, dword [ebp + 8]
sub dword [esi + 0x10], edi
push edi
push dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 4]
push eax
push str.ERR:__s__download_Fail__dstSize:__d____downloadingSize:__d_
push 1
push 0x181
push str.HttpDownload.cpp
push str.CHttpDownload::ReadUrlContent
call fcn.00462700
add esp, 0x20
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x403c20
Capabilities:
Check internet connectivity via wininet
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov esi, ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x403ca4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERR:InternetGetConnectedState_fail_0x_x
push 1
push 0x37
push 0x4d2e60
push str.CBaseRequest::IsUseProxyConnect
call fcn.00462700
add esp, 0x18
push 0
push 0
push 0
push 1
push 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 0x64], eax
pop esi
test eax, eax
jne 0x403cb4
push str.CWinHttpRequest::OpenSession
push 0x4d2bc4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, 0x4d2bd0
call fcn.00403a70
add esp, 8
xor al, al
mov esp, ebp
pop ebp
ret
test byte [ebp - 4], 4
je 0x403c60
push 0
push 0
push 0
push 0
jmp 0x403c68
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x403d30
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov dword [ebp - 8], 0x4d2c18
cmp dword [esi + 0x48], 8
lea edx, [esi + 0x34]
push edi
mov dword [ebp - 4], 0
jb 0x403d53
mov edx, dword [edx]
cmp dword [esi + 0x18], 8
lea ecx, [esi + 4]
jb 0x403d5e
mov ecx, dword [ecx]
cmp byte [ebp + 8], 0
mov eax, 0x100
mov edi, 0x800100
cmovne eax, edi
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x4d2c20
push edx
push ecx
push dword [esi + 0x68]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0x6c], eax
pop edi
pop esi
test eax, eax
jne 0x403dbd
push str.CWinHttpRequest::OpenRequest
push 0x4d2c54
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, 0x4d2c60
call fcn.00403a70
add esp, 8
xor al, al
mov esp, ebp
pop ebp
ret 4
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x403dd0
Capabilities:
Receive http response
Set http header

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x403e23
cmp dword [esi + 0x30], 8
lea eax, [esi + 0x1c]
jb 0x403de5
mov eax, dword [eax]
push 0x20000000
push ecx
push eax
push dword [esi + 0x6c]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x403e23
push 0x4d2c74
push 0x4d2c94
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, 0x4d2ca0
call fcn.00403a70
add esp, 8
xor al, al
pop esi
ret
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esi + 0x6c]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x403e66
push 0x4d2cbc
push 0x4d2cdc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, 0x4d2ce8
call fcn.00403a70
add esp, 8
xor al, al
pop esi
ret
push 0
push dword [esi + 0x6c]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x403e9f
push str.CWinHttpRequest::SendRequest
push 0x4d2d1c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, 0x4d2d28
call fcn.00403a70
add esp, 8
xor al, al
pop esi
ret
mov al, 1
pop esi
ret

Function at 0x403eb0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x6c]
sub esp, 0xc
test eax, eax
je 0x403f16
lea ecx, [ebp - 8]
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], 0
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], 4
push ecx
push 0
push 0x20000005
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x403f1e
push str.CWinHttpRequest::GetUrlFileSize
push 0x4d2d60
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, 0x4d2d6c
call fcn.00403a70
add esp, 8
xor al, al
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x403f30
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx + 0x6c]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x403f81
push 0x4d2d80
push 0x4d2d9c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, 0x4d2da8
call fcn.00403a70
add esp, 8
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 8
push 0x88
push str.CWinHttpRequest::HttpRead
push 0x4d2dd4
push 1
call fcn.0040ed10
mov eax, dword [ebp - 4]
add esp, 0x10
mov esp, ebp
pop ebp
ret 8

Function at 0x404930
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b2338
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4e4520]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x4e4520]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
mov esi, dword [ebp + 8]
lea eax, [esp + 0x10]
push ecx
push eax
push esi
mov dword [esp + 0x44], 0
call fcn.00404770
test al, al
jne 0x404a08
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x24], 0x10
jb 0x4049b9
push dword [esp + 0x10]
call fcn.0047c598
add esp, 4
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
push 4
lea eax, [ebp + 0xc]
push eax
push esi
push 0
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
jne 0x404a51
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERR:_InternetSetOption_fail__0x_x
push 1
push 0xdd
push str.toolBaseRequest.cpp
push str.CBaseRequest::InternetSetOpt
call fcn.00462700
add esp, 0x18
jmp 0x404a6a
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x10]
mov edx, dword [esp + 0x10]
cmp ecx, 0x10
cmovae eax, edx
mov edi, dword [eax]
mov dword [esp + 0xc], edi
mov dword [esp + 0x38], 0xffffffff
jb 0x404a33
push edx
call fcn.0047c598
add esp, 4
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
cmp edi, dword [ebp + 0xc]
jne 0x4049ce
mov al, 1
jmp 0x404a6c
push ecx
lea eax, [esp + 0x10]
push eax
push esi
call fcn.00404890
test al, al
je 0x404a6a
mov eax, dword [esp + 0xc]
cmp eax, dword [ebp + 0xc]
je 0x404a4d
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0047cd24
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405640
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov esi, ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x4056c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERR:InternetGetConnectedState_fail_0x_x
push 1
push 0x37
push 0x4d2e60
push str.CBaseRequest::IsUseProxyConnect
call fcn.00462700
add esp, 0x18
push 0
push 0
push 0
push 4
push 0x4d2fd0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0x64], eax
pop esi
test eax, eax
jne 0x4056dc
push str.CInternetRequest::OpenSession
push 0x4d2ff4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, str.InternetOpen
call fcn.00403a70
add esp, 8
xor al, al
mov esp, ebp
pop ebp
ret
test byte [ebp - 4], 4
je 0x405680
push 0
push 0
push 0
push 0
push 0x4d2fcc
jmp 0x40568d
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x4056f0
Capabilities:
Connect to http server

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x60], 8
lea eax, [esi + 0x4c]
jb 0x4056fe
mov eax, dword [eax]
push 0
push 0
push 3
push 0
push 0
push 0x1bb
push eax
push dword [esi + 0x64]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 0x68], eax
pop esi
test eax, eax
jne 0x40574a
push str.CInternetRequest::ConnectSession
push 0x4d3034
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, str.InternetConnect
call fcn.00403a70
add esp, 8
xor al, al
ret 4
mov al, 1
ret 4

Function at 0x4059a0
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx + 0x6c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4059f1
push 0x4d3168
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, 0x4d3190
call fcn.00403a70
add esp, 8
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 8
push 0x87
push str.CInternetRequest::HttpRead
push str.dwNumberOfBytesRead___0
push 1
call fcn.0040ed10
mov eax, dword [ebp - 4]
add esp, 0x10
mov esp, ebp
pop ebp
ret 8
Function at 0x405c90
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2418
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x4e4520]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x6c], edi
mov byte [ebp - 0x65], 0
cmp dword [eax + 0x14], 0x10
jb 0x405cd9
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x405cf9
push 0x4e17fc
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 9
push eax
call fcn.0047cd33
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x24], xmm0
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
movzx eax, byte [ecx + 3]
push eax
movzx eax, byte [ecx + 2]
push eax
movzx eax, byte [ecx + 1]
push eax
movzx eax, byte [ecx]
push eax
lea eax, [ebp - 0x24]
push str._d._d._d._d
push eax
call fcn.004077c0
add esp, 0x18
mov dword [ebp - 0x28], 0xf
cmp byte [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
jne 0x405d46
xor ecx, ecx
jmp 0x405d59
lea ecx, [ebp - 0x24]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405d50
sub ecx, edx
push ecx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00403660
lea edx, [ebp - 0x3c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.004084e0
mov ebx, eax
lea esi, [edi + 0xc]
cmp esi, ebx
je 0x405da9
cmp dword [esi + 0x14], 8
jb 0x405d8e
push dword [esi]
call fcn.0047c598
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push ebx
mov word [esi], ax
call fcn.00405490
cmp dword [ebp - 0x40], 8
jb 0x405dba
push dword [ebp - 0x54]
call fcn.0047c598
add esp, 4
xor eax, eax
mov dword [ebp - 0x40], 7
mov byte [ebp - 4], al
cmp dword [ebp - 0x28], 0x10
mov dword [ebp - 0x44], 0
mov word [ebp - 0x54], ax
jb 0x405de2
push dword [ebp - 0x3c]
call fcn.0047c598
add esp, 4
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x405df1
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 8], eax
cmp eax, 0xffffffff
jne 0x405e1a
push 0x4e17fc
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], 0xa
push eax
call fcn.0047cd33
push 4
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x2710
push ecx
push 0x1006
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [ebp + 0xc]
mov eax, 2
mov word [ebp - 0x64], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x62], ax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x64]
push 0x10
push eax
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x405e84
push 0x4e17fc
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 2
push eax
call fcn.0047cd33
mov al, 1
jmp 0x405e9d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047cd24
mov esp, ebp
pop ebp
ret 8
Function at 0x40a140
Capabilities:
Initialize winhttp library

Disassembly:
push esi
mov esi, ecx
lea ecx, [esi + 0x24]
mov dword [esi], vtable.CWinHttp.0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x1388
mov dword [esi + 0x1c], 0x1388
mov dword [esi + 0x20], 0x1388
call fcn.0040b1d0
push 0
push 0
push 0
xorps xmm0, xmm0
push 0
movq qword [esi + 0x7c], xmm0
push 0x4d3798
mov dword [esi + 0x84], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x40a1c0
mov dword [esi + 0x84], 1
mov eax, esi
pop esi
ret
push dword [esi + 0x20]
push dword [esi + 0x1c]
push dword [esi + 0x18]
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov eax, esi
pop esi
ret
Function at 0x40a520
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b28e0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x4e4520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x4c], ebx
xor ecx, ecx
mov byte [ebp - 0x11], 0
push ecx
push ecx
push ecx
push dword [ebp + 8]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], ecx
mov ecx, ebx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
call fcn.0040ae90
test al, al
jne 0x40a5a5
push 0x4e17fc
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 1
push eax
call fcn.0047cd33
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.0040ad50
test al, al
jne 0x40a5c9
push 0x4e17fc
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 4
push eax
call fcn.0047cd33
mov ecx, ebx
call fcn.0040adf0
mov dword [ebx + 4], eax
cmp eax, 0x194
jne 0x40a5ef
push 0x4e17fc
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 5
push eax
call fcn.0047cd33
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x40a615
push 0x4e17fc
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 4
push eax
call fcn.0047cd33
mov eax, dword [ebp - 0x2c]
cmp eax, 0x800000
jbe 0x40a634
push 0x4e17fc
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0xc
push eax
call fcn.0047cd33
push eax
call fcn.0047e8e8
push 0x1000
mov dword [ebp - 0x1c], eax
call fcn.0047e8e8
mov esi, dword [ebp - 0x18]
mov edi, eax
add esp, 8
mov dword [ebp - 0x24], edi
cmp esi, 0x1000
jbe 0x40a671
push edi
call fcn.0047e8b0
mov esi, dword [ebp - 0x18]
push esi
call fcn.0047e8e8
mov edi, eax
add esp, 8
mov dword [ebp - 0x24], edi
lea eax, [ebp - 0x20]
push eax
push esi
push edi
push dword [ebx + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x40a699
push 0x4e17fc
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 8
push eax
call fcn.0047cd33
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x28]
add eax, esi
push edi
push eax
call fcn.0047d190
add esi, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
add esp, 0xc
mov dword [ebp - 0x28], esi
push eax
push dword [ebx + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x40a6da
push 0x4e17fc
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 8
push eax
call fcn.0047cd33
mov esi, dword [ebp - 0x18]
test esi, esi
jne 0x40a652
mov bl, 1
jmp 0x40a701
test edi, edi
je 0x40a70e
push edi
call fcn.0047e8b0
add esp, 4
test bl, bl
je 0x40a724
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
jmp 0x40a72f
push dword [ebp - 0x1c]
call fcn.0047e8b0
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc