joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4034b0
Capabilities:
Get geographical location
Get system information on windows
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d804
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x45506c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xa8], 0
call fcn.004082c0
push eax
mov ecx, 0x458660
call fcn.004057f0
mov edx, dword [ebp - 0x90]
cmp edx, 0x10
jb 0x403535
mov ecx, dword [ebp - 0xa4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40352b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403719
push edx
push ecx
call fcn.0040d83c
add esp, 8
lea ecx, [ebp - 0xa4]
call fcn.004085f0
push eax
mov ecx, 0x458678
call fcn.004057f0
mov edx, dword [ebp - 0x90]
cmp edx, 0x10
jb 0x403585
mov ecx, dword [ebp - 0xa4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40357b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40371e
push edx
push ecx
call fcn.0040d83c
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xa4]
push 2
push 0x44ddb8
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0xf
mov byte [ebp - 0xa4], 0
call fcn.004067e0
lea eax, [ebp - 0x8c]
mov dword [ebp - 0xa8], 1
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x8c]
cmp ax, 9
je 0x4035e9
cmp ax, 6
je 0x4035e9
cmp ax, 0xc
jne 0x4035fb
push 2
push 0x44ddbc
lea ecx, [ebp - 0xa4]
call fcn.004067e0
lea eax, [ebp - 0xa4]
mov ecx, 0x458690
push eax
call fcn.004057f0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x90]
cmp edx, 0x10
jb 0x40364d
mov ecx, dword [ebp - 0xa4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403643
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403723
push edx
push ecx
call fcn.0040d83c
add esp, 8
mov dword [ebp - 4], 1
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0xf
mov byte [ebp - 0xa4], 0
mov dword [ebp - 0xa8], 2
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
push 0x55
lea eax, [ebp - 0x68]
push eax
push 0x59
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4036b9
lea ecx, [ebp - 0x68]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4036a0
sub ecx, edx
lea eax, [ebp - 0x68]
push ecx
push eax
lea ecx, [ebp - 0xa4]
call fcn.004067e0
lea eax, [ebp - 0xa4]
mov ecx, 0x4586a8
push eax
call fcn.004057f0
mov edx, dword [ebp - 0x90]
cmp edx, 0x10
jb 0x403700
mov ecx, dword [ebp - 0xa4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4036f6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403728
push edx
push ecx
call fcn.0040d83c
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d826
mov esp, ebp
pop ebp
ret
call fcn.00428830
call fcn.00428830
call fcn.00428830
call fcn.00428830
int3
Function at 0x404950
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43da04
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x45506c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x120], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x11c]
push 0x104
push 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
push eax
mov byte [edi], 0
mov dword [ebp - 0x120], 2
call fcn.00425850
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
dec eax
cmp eax, 0x102
ja 0x404a08
lea ecx, [ebp - 0x11c]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4049f0
sub ecx, edx
lea eax, [ebp - 0x11c]
push ecx
push eax
mov ecx, edi
call fcn.004067e0
mov dword [ebp - 4], 0
mov eax, edi
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x120], 1
jb 0x404a23
mov eax, dword [edi]
push 0
push eax
call fcn.00428b04
add esp, 8
test eax, eax
je 0x404a77
lea ecx, [ebp - 0x140]
call fcn.00409030
push eax
mov ecx, edi
call fcn.004057f0
mov edx, dword [ebp - 0x12c]
cmp edx, 0x10
jb 0x404a9c
mov ecx, dword [ebp - 0x140]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404a92
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404b0f
jmp 0x404a92
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x404a81
mov eax, dword [edi]
push 4
push eax
call fcn.00428b04
add esp, 8
test eax, eax
je 0x404a9c
jmp 0x404a32
push edx
push ecx
call fcn.0040d83c
add esp, 8
mov edx, dword [edi + 0x14]
mov eax, edx
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 0x14
jb 0x404ad3
lea eax, [ecx + 0x14]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x404aba
mov eax, dword [edi]
push 0x14
lea esi, [eax + ecx]
push str.TempAltRemoveKeyPath
push esi
call fcn.004252d0
add esp, 0xc
mov byte [esi + 0x14], 0
jmp 0x404af0
push 0x14
push str.TempAltRemoveKeyPath
mov byte [ebp - 0x124], 0
mov ecx, edi
push dword [ebp - 0x124]
push 0x14
call fcn.00407360
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040d826
mov esp, ebp
pop ebp
ret 4
call fcn.00428830
int3
Function at 0x405980
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43db82
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x45506c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x44dcf4
mov dword [edi + 0x10], 0x44dc8c
mov dword [edi + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.00402b70
push ecx
lea ebx, [edi + 0x18]
mov dword [esi + 0x3c], 0
mov ecx, esi
mov dword [esi + 0x38], ebx
call fcn.004069c0
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x405a38
mov eax, dword [esi + 0xc]
mov ecx, esi
or eax, 4
push 0
push eax
call fcn.00402af0
lea edx, [edi + 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [edx + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + edi - 4], eax
mov dword [ebp - 4], 5
mov eax, dword [edi]
push 8
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ebx
lea eax, [ecx - 0x68]
mov dword [ecx + edi - 4], eax
mov dword [ebx], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040da71
mov esi, eax
xorps xmm0, xmm0
add esp, 4
movq qword [esi], xmm0
push 1
mov byte [ebp - 4], 6
call fcn.0040c06a
mov dword [esi + 4], eax
lea ecx, [ebx + 8]
lea eax, [ebx + 4]
mov dword [ebx + 0x34], esi
mov dword [ebx + 0xc], eax
add esp, 4
lea eax, [ebx + 0x14]
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x18]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x24]
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov dword [ecx], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov eax, edi
mov dword [ebx], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x408b00
Capabilities:
Access peb ldr_data
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43de93
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x45506c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x88
mov dword [ebp - 4], 1
call fcn.0040da71
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
lea esi, [edi + 0x24]
mov dword [edi], vtable.CWinHttp.0
mov dword [edi + 4], 0
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0x1388
mov dword [edi + 0x1c], 0x1388
mov dword [edi + 0x20], 0x1388
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.CHttpHeader.0
mov dword [esi + 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0xf
mov byte [esi + 8], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0xf
mov byte [esi + 0x20], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0xf
mov byte [esi + 0x38], 0
add esi, 0x50
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040b1aa
push 0
push 0
push 0
mov dword [esi], eax
xorps xmm0, xmm0
push 0
movq qword [edi + 0x7c], xmm0
push str.Microsoft_Internet_Explorer
mov dword [edi + 0x84], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [edi + 0xc], eax
test eax, eax
jne 0x408c1b
mov dword [edi + 0x84], 1
jmp 0x408c2d
push dword [edi + 0x20]
push dword [edi + 0x1c]
push dword [edi + 0x18]
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov byte [ebp - 4], 1
lea edx, [ebp + 0x20]
cmp dword [ebp + 0x34], 8
lea ecx, [ebp + 8]
mov eax, dword [edi]
cmovae edx, dword [ebp + 0x20]
cmp dword [ebp + 0x1c], 8
push edx
cmovae ecx, dword [ebp + 8]
mov eax, dword [eax + 4]
push ecx
mov ecx, edi
call eax
test al, al
mov ecx, edi
mov eax, dword [edi]
jne 0x408c61
call dword [eax + 0xc]
xor bl, bl
jmp 0x408c66
call dword [eax + 0xc]
mov bl, 1
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x408c9c
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408c92
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408cfa
push edx
push ecx
call fcn.0040d83c
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x408ce6
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408cdc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408cff
push edx
push ecx
call fcn.0040d83c
add esp, 8
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
call fcn.00428830
call fcn.00428830
int3
Function at 0x409110
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x45506c]
xor eax, esp
mov dword [esp + 0x68], eax
cmp dword [edx + 0x14], 0x10
xorps xmm0, xmm0
mov eax, dword [edx + 0x10]
push esi
mov esi, ecx
movlpd qword [esp + 8], xmm0
mov dword [esp + 4], esi
mov dword [esp + 4], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x54], 0x67452301
mov dword [esp + 0x58], 0xefcdab89
mov dword [esp + 0x5c], 0x98badcfe
mov dword [esp + 0x60], 0x10325476
jb 0x40916b
mov edx, dword [edx]
push eax
push edx
lea ecx, [esp + 0x10]
call fcn.00401890
push esi
lea ecx, [esp + 0xc]
call fcn.00401940
mov ecx, dword [esp + 0x6c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040d826
mov esp, ebp
pop ebp
ret
Function at 0x4097b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43dfc8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x45506c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp dword [ebp + 0x1c], 8
lea edx, [ebp + 8]
cmovae edx, dword [ebp + 8]
push edx
push 0x84
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4098c5
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x4098c5
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4098c5
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4098c5
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
mov ebx, eax
push 0x10
mov dword [ebp - 0x14], ebx
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x409886
lea ecx, [esi + 4]
mov dword [esi + 8], 0
push ecx
mov dword [esi + 0xc], 0
push ebx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [ecx], 0
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [esi + 8], eax
jmp 0x409888
xor esi, esi
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push ecx
mov eax, dword [ebx]
mov dword [eax + 0x4c], esi
mov eax, dword [ecx]
call dword [eax + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x4c]
test ecx, ecx
je 0x4098c5
call fcn.00401150
mov ecx, dword [ebx]
mov dword [ecx], eax
mov ecx, dword [ebx]
mov ecx, dword [ecx + 0x4c]
call fcn.00401190
mov ecx, dword [ebx]
mov bl, 1
mov dword [ecx + 4], eax
jmp 0x4098c7
xor bl, bl
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x4098fd
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4098f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409913
push edx
push ecx
call fcn.0040d83c
add esp, 8
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 0x18
call fcn.00428830
int3

Function at 0x40a17c
Capabilities:
Initialize winhttp library

Disassembly:
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push edi
push str.Microsoft_Internet_Explorer
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x40a1a6
mov dword [esi + 0x84], 1
xor al, al
jmp 0x40a1b9
push dword [esi + 0x20]
push dword [esi + 0x1c]
push dword [esi + 0x18]
push edi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov al, 1
pop edi
pop esi
ret
Function at 0x40a432
Capabilities:
Receive http response

Disassembly:
push 0x44
mov eax, 0x43e04c
call fcn.0040e3b7
mov esi, ecx
mov dword [ebp - 0x4c], esi
xor ebx, ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], ebx
call fcn.0040aaa7
test al, al
je 0x40a5fd
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.0040a9c6
test al, al
jne 0x40a493
mov dword [ebp - 0x34], 4
lea eax, [ebp - 0x34]
push 0x453630
jmp 0x40a60c
mov ecx, esi
call fcn.0040aa3b
mov dword [esi + 4], eax
cmp eax, 0x194
jne 0x40a4b8
mov dword [ebp - 0x38], 5
lea eax, [ebp - 0x38]
push 0x453630
jmp 0x40a60c
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x40a4dd
mov dword [ebp - 0x3c], 4
lea eax, [ebp - 0x3c]
push 0x453630
jmp 0x40a60c
cmp dword [ebp - 0x20], 0x800000
jbe 0x40a4fa
mov dword [ebp - 0x40], 0xc
lea eax, [ebp - 0x40]
push 0x453630
jmp 0x40a60c
push dword [ebp - 0x20]
call fcn.00428669
mov dword [ebp - 0x1c], eax
mov dword [esp], 0x1000
call fcn.00428669
mov edi, eax
mov eax, dword [ebp - 0x18]
pop ecx
mov dword [ebp - 0x28], edi
cmp eax, 0x1000
jbe 0x40a539
push edi
call fcn.0042864e
push dword [ebp - 0x18]
call fcn.00428669
mov edi, eax
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
mov dword [ebp - 0x28], edi
lea ecx, [ebp - 0x24]
push ecx
push eax
push edi
push dword [esi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x40a560
mov dword [ebp - 0x44], 8
lea eax, [ebp - 0x44]
push 0x453630
jmp 0x40a60c
push dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add eax, ebx
push edi
push eax
call fcn.00424d50
add ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x18]
add esp, 0xc
mov dword [ebp - 0x2c], ebx
push eax
push dword [esi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x40a59a
mov dword [ebp - 0x48], 8
lea eax, [ebp - 0x48]
push 0x453630
jmp 0x40a60c
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40a51a
mov byte [ebp + 0xb], 1
jmp 0x40a5c9
test edi, edi
je 0x40a5d4
push edi
call fcn.0042864e
pop ecx
cmp byte [ebp + 0xb], 0
je 0x40a5e9
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
jmp 0x40a5f2
push dword [ebp - 0x1c]
call fcn.0042864e
pop ecx
mov al, byte [ebp + 0xb]
call fcn.0040e326
ret 0xc
mov dword [ebp - 0x30], 1
lea eax, [ebp - 0x30]
push 0x453630
push eax
call fcn.00424ce3
int3
Function at 0x40a691
Capabilities:
Receive http response

Disassembly:
push 0x98
mov eax, 0x43e0f5
call fcn.0040e380
mov edi, ecx
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x94], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0xa0], ecx
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], cl
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x58]
push eax
call fcn.00405870
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0040a06f
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.00401e00
mov eax, dword [ebp - 0xa0]
test eax, eax
jne 0x40a711
xor ecx, ecx
jmp 0x40a74f
push eax
lea ecx, [ebp - 0x88]
call fcn.00405870
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
mov edx, eax
mov dword [ebp - 0x98], 1
call fcn.0040a06f
mov ecx, eax
push 3
mov dword [ebp - 4], 5
cmp dword [ecx + 0x14], 8
pop ebx
mov dword [ebp - 0x98], ebx
jb 0x40a74f
mov ecx, dword [ecx]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push ecx
push dword [ebp - 0x94]
cmovae eax, dword [ebp - 0x40]
mov ecx, edi
push dword [ebp + 0x10]
push eax
call fcn.0040aaa7
neg al
sbb al, al
inc al
mov byte [ebp - 0x89], al
test bl, 2
je 0x40a788
lea ecx, [ebp - 0x70]
and ebx, 0xfffffffd
call fcn.004056b0
mov dword [ebp - 4], 3
test bl, 1
je 0x40a79f
lea ecx, [ebp - 0x88]
call fcn.00401e00
cmp byte [ebp - 0x89], 0
je 0x40a7ca
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00401e50
lea ecx, [ebp - 0x40]
call fcn.004056b0
lea ecx, [ebp - 0x28]
call fcn.00401e00
mov eax, esi
jmp 0x40a893
mov ecx, edi
call fcn.0040aa3b
mov dword [edi + 4], eax
cmp eax, 0x194
je 0x40a89b
push 0x1000
call fcn.00428669
pop ecx
mov esi, eax
xor bl, bl
jmp 0x40a841
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x40a857
cmp eax, 0x1000
jbe 0x40a81c
push esi
call fcn.0042864e
push dword [ebp - 0x90]
call fcn.00428669
pop ecx
mov esi, eax
mov eax, dword [ebp - 0x90]
pop ecx
lea ecx, [ebp - 0x9c]
push ecx
push eax
push esi
push dword [edi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x40a859
push dword [ebp - 0x9c]
lea ecx, [ebp - 0x28]
push esi
call fcn.00406920
lea eax, [ebp - 0x90]
push eax
push dword [edi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x40a7f0
jmp 0x40a859
mov bl, 1
push esi
call fcn.0042864e
pop ecx
test bl, bl
jne 0x40a86e
push 0
lea ecx, [ebp - 0x28]
call fcn.00409d30
mov ecx, dword [ebp - 0xa4]
lea eax, [ebp - 0x28]
push eax
call fcn.00401e50
lea ecx, [ebp - 0x40]
call fcn.004056b0
lea ecx, [ebp - 0x28]
call fcn.00401e00
mov eax, dword [ebp - 0xa4]
call fcn.0040e33b
ret 0x14
push 0x453630
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 5
push eax
call fcn.00424ce3
int3
Function at 0x40a9c6
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x45506c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x34]
push 0x30
xor ebx, ebx
mov esi, ecx
push ebx
push eax
call fcn.00425850
add esp, 0xc
mov dword [ebp - 0x38], 0x30
lea eax, [ebp - 0x38]
push ebx
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push 5
push dword [esi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x40aa28
push 0xa
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], ebx
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0042e9e7
add esp, 0xc
mov dword [edi], eax
mov bl, 1
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d826
leave
ret 4

Function at 0x40aa3b
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x45506c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x30
xor edi, edi
lea eax, [ebp - 0x34]
push edi
push eax
mov esi, ecx
call fcn.00425850
add esp, 0xc
mov dword [ebp - 0x38], 0x30
lea eax, [ebp - 0x38]
push edi
push eax
lea eax, [ebp - 0x34]
push eax
push edi
push 0x13
push dword [esi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x40aa97
push 0xa
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0042e9e7
add esp, 0xc
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040d826
leave
ret
Function at 0x40aaa7
Capabilities:
Prepare http request
Receive http response

Disassembly:
push 0x44
mov eax, 0x43e15a
call fcn.0040e380
mov esi, ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
call fcn.0040a1bc
mov ecx, esi
call fcn.0040a17c
test al, al
je 0x40abf2
push 7
xor ebx, ebx
xor eax, eax
pop ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ecx
mov word [ebp - 0x44], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
lea edx, [ebp - 0x44]
call fcn.00409edc
mov eax, 0x1bb
pop ecx
pop ecx
cmp word [ebp - 0x48], ax
jne 0x40ab1d
mov byte [esi + 8], 1
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push ebx
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x44]
push eax
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edx, eax
mov dword [esi + 0x10], edx
test edx, edx
jne 0x40ab4e
mov dword [esi + 0x84], 2
jmp 0x40abe0
xor ecx, ecx
mov eax, 0x800000
cmp byte [esi + 8], cl
cmovne ecx, eax
cmp dword [ebp - 0x18], 8
push ecx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
mov ecx, str.POST
cmovae eax, dword [ebp - 0x2c]
cmp dword [ebp + 0xc], 0
push eax
mov eax, 0x44df10
cmovne eax, ecx
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0x14], eax
test eax, eax
je 0x40abd2
cmp byte [esi + 8], 0
je 0x40aba7
push 4
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], 0x3301
push ecx
push 0x1f
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push dword [ebp - 0x4c]
mov ecx, esi
push dword [ebp - 0x50]
call fcn.0040abfa
test al, al
jne 0x40abc4
mov dword [esi + 0x84], 3
jmp 0x40abe0
push ebx
push dword [esi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x40abde
mov dword [esi + 0x84], 1
jmp 0x40abe0
mov bl, 1
lea ecx, [ebp - 0x2c]
call fcn.004056b0
lea ecx, [ebp - 0x44]
call fcn.004056b0
mov al, bl
call fcn.0040e33b
ret 0x10
Function at 0x4105a7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret