joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404ace
Capabilities:
Accept command line arguments

Disassembly:
push esi
push 1
call fcn.00404972
pop ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
call fcn.00404735
test al, al
jne 0x404afd
xor eax, eax
inc eax
jmp 0x404b0c
push esi
call fcn.00404935
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop esi
ret 0x10

Function at 0x405ba0
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x408640
call fcn.00406160
push 1
call fcn.00405547
pop ecx
test al, al
je 0x405b88
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00405515
mov byte [ebp - 0x24], al
mov eax, dword [0x40a2a0]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x405b88
test eax, eax
jne 0x405aac
mov dword [0x40a2a0], ecx
push 0x407270
push 0x407260
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x405a8f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x405b78
push 0x40725c
push 0x407244
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x40a2a0], 2
jmp 0x405ab1
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0040569b
pop ecx
call fcn.004062b8
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x405ae2
push esi
call fcn.00405607
pop ecx
test al, al
je 0x405ae2
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [0x407240]
call esi
call fcn.004062be
mov esi, eax
cmp dword [esi], edi
je 0x405b00
push esi
call fcn.00405607
pop ecx
test al, al
je 0x405b00
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call fcn.00406064
movzx esi, ax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push esi
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.004060a3
test al, al
je 0x405b8f
test bl, bl
jne 0x405b2e
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.004056b8
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x405b78
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.00405f4a
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push dword [ebp - 0x20]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
int3
call fcn.00499000
jmp 0x405a22
Function at 0x5f812dd2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
dec dword [ecx - 0x39f7b]
inc dword [ebx - 0x6fb43]
inc dword [eax]

Function at 0x5f81430d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
mov ebx, ecx
jmp 0x5f814331
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x5f814387
test eax, eax
je 0x5f814380
cmp eax, esi
ja 0x5f814380
sub esi, eax
add edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x5f81431e
call fcn.5f814d33
mov esi, eax
test esi, esi
jns 0x5f814387
lfence
mov eax, dword [0x5f831160]
cmp eax, 0x5f831160
je 0x5f81437c
test byte [eax + 0x1c], 1
je 0x5f81437c
push esi
push dword [eax + 0x14]
mov edx, 0x5f80876c
push dword [eax + 0x10]
push 0xf
pop ecx
call fcn.5f80a336
mov eax, esi
jmp 0x5f814389
mov esi, 0x8000ffff
jmp 0x5f81434f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x5f814bdc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
push esi
push edi
mov edi, edx
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5f814c31
call fcn.5f814d33
mov esi, eax
cmp esi, 0x80070002
je 0x5f814c2d
cmp esi, 0x80070003
je 0x5f814c2d
mov eax, dword [0x5f831160]
cmp eax, 0x5f831160
je 0x5f814c2d
test byte [eax + 0x1c], 1
je 0x5f814c2d
push esi
push edi
push dword [eax + 0x14]
mov edx, 0x5f8087e8
push dword [eax + 0x10]
push 0x2e
pop ecx
call fcn.5f80bc6b
mov eax, esi
jmp 0x5f814c35
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
pop ecx
ret
Function at 0x4016c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x414054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.ole32.dll_CoInitialize]
push 0
call edi
mov dword [0x41605c], 0
call fcn.00401630
mov esi, eax
test esi, esi
je 0x401716
mov eax, dword [esi]
fldz
mov edx, dword [eax + 0x24]
fstp dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
push ecx
push esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
fld dword [ebp - 0x14]
jmp 0x40171e
call dword [sym.imp.ole32.dll_CoUninitialize]
fldz
lea edx, [ebp - 0x1c]
fstp dword [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.Control_PanelSound
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
fld dword [ebp - 0x14]
sub esp, 8
fstp qword [esp]
push 0x412224
lea edx, [ebp - 0x10]
call fcn.00401950
mov edx, dword [ebp - 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esp, 0xc
push 0xa
lea ecx, [ebp - 0x10]
push ecx
push 1
push 0
push 0x412228
push edx
call ebx
push 0
call edi
call fcn.00401630
mov esi, eax
mov dword [ebp - 0x14], 0
test esi, esi
je 0x4017c2
mov eax, dword [esi]
mov edx, dword [eax + 0x3c]
lea ecx, [ebp - 0x14]
push ecx
push esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x14], 0
setne al
test al, al
je 0x4017c8
push str.true
push 0xa
lea edx, [ebp - 0x10]
push edx
jmp 0x4017d3
call dword [sym.imp.ole32.dll_CoUninitialize]
push str.false
push 0xa
lea eax, [ebp - 0x10]
push eax
call fcn.00401eac
mov edx, dword [ebp - 0x18]
add esp, 0xc
push 0xa
lea ecx, [ebp - 0x10]
push ecx
push 1
push 0
push str.Mute
push edx
call ebx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004019d4
mov esp, ebp
pop ebp
ret
Function at 0x401810
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x414054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
push eax
push str.Control_PanelSound
push 0x80000001
mov dword [ebp - 0x1c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov eax, dword [ebp - 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0
push 0
push 0x412228
push eax
call edi
mov ebx, dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jne 0x4018b8
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x14]
push 0x412224
push edx
call fcn.00401d2c
fld dword [ebp - 0x20]
add esp, 0xc
fstp dword [ebp - 0x24]
push 0
mov dword [0x41605c], 0
call ebx
call fcn.00401630
mov esi, eax
test esi, esi
je 0x4018b2
mov eax, dword [esi]
fld dword [ebp - 0x24]
push 0
push ecx
mov ecx, dword [eax + 0x1c]
fstp dword [esp]
push esi
call ecx
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0
push 0
push str.Mute
push eax
call edi
mov ecx, str.true
lea eax, [ebp - 0x14]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4018f7
test dl, dl
je 0x4018f3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4018f7
add eax, 2
add ecx, 2
test dl, dl
jne 0x4018d7
xor eax, eax
jmp 0x4018fc
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
sete cl
push 0
mov edi, ecx
call ebx
call fcn.00401630
mov esi, eax
test esi, esi
je 0x40192e
mov edx, dword [esi]
mov ecx, dword [edx + 0x38]
xor eax, eax
test edi, edi
setne al
push 0
push eax
push esi
call ecx
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004019d4
mov esp, ebp
pop ebp
ret

Function at 0x4019d4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x414054]
jne 0x4019de
repz ret
jmp fcn.004020ab
Function at 0x40a165
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x414054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00406b39
and dword [ebp - 0x14], 0
cmp dword [0x41602c], 0
mov dword [ebp - 0x18], eax
jne 0x40a218
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40a2c0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40a2c0
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41602c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x416030], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x416034], eax
call edi
push eax
call esi
mov dword [0x41603c], eax
test eax, eax
je 0x40a218
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x416038], eax
mov eax, dword [0x416038]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40a271
cmp dword [0x41603c], ecx
je 0x40a271
push eax
call esi
push dword [0x41603c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40a271
test ebx, ebx
je 0x40a271
call edi
test eax, eax
je 0x40a268
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40a268
test byte [ebp - 8], 1
jne 0x40a271
or dword [ebp + 0x10], 0x200000
jmp 0x40a2a4
mov eax, dword [0x416030]
cmp eax, dword [ebp - 0x18]
je 0x40a2a4
push eax
call esi
test eax, eax
je 0x40a2a4
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40a2a4
mov eax, dword [0x416034]
cmp eax, dword [ebp - 0x18]
je 0x40a2a4
push eax
call esi
test eax, eax
je 0x40a2a4
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41602c]
call esi
test eax, eax
je 0x40a2c0
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40a2c2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004019d4
leave
ret
Function at 0x4216b0
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 0x5f22d8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x686300]
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 0x4216f9
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x421719
push 0x67a544
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 9
push eax
call fcn.005b7dd3
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.004232a0
add esp, 0x18
mov dword [ebp - 0x28], 0xf
cmp byte [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
jne 0x421766
xor ecx, ecx
jmp 0x421779
lea ecx, [ebp - 0x24]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421770
sub ecx, edx
push ecx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00421120
lea edx, [ebp - 0x3c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.00424460
mov ebx, eax
lea esi, [edi + 0xc]
cmp esi, ebx
je 0x4217c9
cmp dword [esi + 0x14], 8
jb 0x4217ae
push dword [esi]
call fcn.005b7634
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.00424e30
cmp dword [ebp - 0x40], 8
jb 0x4217da
push dword [ebp - 0x54]
call fcn.005b7634
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 0x421802
push dword [ebp - 0x3c]
call fcn.005b7634
add esp, 4
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x421811
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 0x42183a
push 0x67a544
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], 0xa
push eax
call fcn.005b7dd3
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 0x4218a4
push 0x67a544
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 2
push eax
call fcn.005b7dd3
mov al, 1
jmp 0x4218bd
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.005b7dc4
mov esp, ebp
pop ebp
ret 8
Function at 0x427010
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.00428100
push 0
push 0
push 0
xorps xmm0, xmm0
push 0
movq qword [esi + 0x7c], xmm0
push 0x65b904
mov dword [esi + 0x84], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x427090
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 0x4273f0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f27c0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x686300]
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.00427d50
test al, al
jne 0x427475
push 0x67a544
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 1
push eax
call fcn.005b7dd3
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.00427c20
test al, al
jne 0x427499
push 0x67a544
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 4
push eax
call fcn.005b7dd3
mov ecx, ebx
call fcn.00427cc0
mov dword [ebx + 4], eax
cmp eax, 0x194
jne 0x4274bf
push 0x67a544
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 5
push eax
call fcn.005b7dd3
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x4274e5
push 0x67a544
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 4
push eax
call fcn.005b7dd3
mov eax, dword [ebp - 0x2c]
cmp eax, 0x800000
jbe 0x427504
push 0x67a544
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0xc
push eax
call fcn.005b7dd3
push eax
call fcn.005b9a68
push 0x1000
mov dword [ebp - 0x1c], eax
call fcn.005b9a68
mov esi, dword [ebp - 0x18]
mov edi, eax
add esp, 8
mov dword [ebp - 0x24], edi
cmp esi, 0x1000
jbe 0x427541
push edi
call fcn.005b9a30
mov esi, dword [ebp - 0x18]
push esi
call fcn.005b9a68
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 0x427569
push 0x67a544
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 8
push eax
call fcn.005b7dd3
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x28]
add eax, esi
push edi
push eax
call fcn.005b8230
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 0x4275aa
push 0x67a544
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 8
push eax
call fcn.005b7dd3
mov esi, dword [ebp - 0x18]
test esi, esi
jne 0x427522
mov bl, 1
jmp 0x4275d1
test edi, edi
je 0x4275de
push edi
call fcn.005b9a30
add esp, 4
test bl, bl
je 0x4275f4
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 0x4275ff
push dword [ebp - 0x1c]
call fcn.005b9a30
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
Function at 0x427a20
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f2878
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x686300]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x686300]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x18], edi
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x24], 0
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
push eax
push edx
push dword [ebp + 0x10]
mov dword [esp + 0x5c], 0
push esi
call fcn.00427d50
test al, al
jne 0x427af4
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], al
mov edx, dword [esp + 0x3c]
cmp edx, 0x10
jae 0x427adf
mov eax, dword [esp + 0x38]
inc eax
je 0x427ae5
push eax
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.005b7780
mov edx, dword [esp + 0x48]
add esp, 0xc
mov ecx, dword [esp + 0x38]
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], edx
jmp 0x427bf2
mov ecx, dword [esp + 0x28]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x38]
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], edx
jmp 0x427bf2
mov ecx, edi
call fcn.00427cc0
mov dword [edi + 4], eax
cmp eax, 0x194
jne 0x427b1c
push 0x67a544
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 5
push eax
call fcn.005b7dd3
push 0x1000
call fcn.005b9a68
add esp, 4
mov byte [esp + 0x17], 0
mov edi, eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x427baa
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x427ba5
cmp esi, 0x1000
jbe 0x427b6b
push edi
call fcn.005b9a30
mov esi, dword [esp + 0x20]
push esi
call fcn.005b9a68
add esp, 8
mov edi, eax
lea eax, [esp + 0x20]
push eax
push esi
mov esi, dword [esp + 0x20]
push edi
push dword [esi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x427baa
push dword [esp + 0x20]
lea ecx, [esp + 0x2c]
push edi
call fcn.00423510
lea eax, [esp + 0x1c]
push eax
push dword [esi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x427b46
jmp 0x427baa
mov byte [esp + 0x17], 1
push edi
call fcn.005b9a30
add esp, 4
cmp byte [esp + 0x17], 0
jne 0x427bd3
cmp dword [esp + 0x3c], 0x10
lea eax, [esp + 0x28]
mov dword [esp + 0x38], 0
cmovae eax, dword [esp + 0x28]
mov byte [eax], 0
lea eax, [esp + 0x28]
mov ecx, ebx
push eax
call fcn.004236a0
cmp dword [esp + 0x3c], 0x10
jb 0x427bf2
push dword [esp + 0x28]
call fcn.005b7634
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.005b7dc4
mov esp, ebp
pop ebp
ret 0x14
Function at 0x427c20
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x686300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x2e
push eax
mov word [ebp - 0x34], ax
mov esi, ecx
lea eax, [ebp - 0x32]
xor bl, bl
push eax
call fcn.005b99a0
add esp, 0xc
mov dword [ebp - 0x3c], 0x30
lea eax, [ebp - 0x3c]
push 0
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push 5
push dword [esi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x427ca1
push 0xa
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.005bbf87
add esp, 0xc
mov dword [edi], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b7dc4
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b7dc4
mov esp, ebp
pop ebp
ret 4

Function at 0x427cc0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x686300]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, ecx
push 0x2e
push eax
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x32]
push eax
call fcn.005b99a0
add esp, 0xc
mov dword [ebp - 0x3c], 0x30
lea eax, [ebp - 0x3c]
push 0
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x13
push dword [esi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
pop esi
test eax, eax
je 0x427d32
push 0xa
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.005bbf87
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b7dc4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.005b7dc4
mov esp, ebp
pop ebp
ret
Function at 0x427fa0
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f28e8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x686300]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x40]
mov ebx, dword [ebp + 0xc]
lea ecx, [edi + 0x24]
push eax
call fcn.00428940
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00424460
cmp dword [ebp - 0x2c], 0x10
jb 0x428001
push dword [ebp - 0x40]
call fcn.005b7634
add esp, 4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0xa0000000
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [edi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test esi, esi
jne 0x428026
xor ecx, ecx
jmp 0x428039
mov ecx, esi
lea edx, [ecx + 1]
jmp 0x428030
mov al, byte [ecx]
inc ecx
test al, al
jne 0x428030
sub ecx, edx
push 0
push ecx
push ecx
push esi
test ebx, ebx
jne 0x428046
push ebx
push ebx
jmp 0x428049
push 0xffffffffffffffff
push ebx
push dword [edi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, 1
sete bl
cmp dword [ebp - 0x14], 8
jb 0x428069
push dword [ebp - 0x28]
call fcn.005b7634
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b7dc4
mov esp, ebp
pop ebp
ret 8