joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447cd3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x46900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0043fc47
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0043fc47
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x447d4a
cmp word [ecx], dx
je 0x447d4a
mov eax, dword [0x458a54]
push edi
dec eax
push eax
push 0x458940
call fcn.00447c72
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x447dbd
cmp word [eax], dx
je 0x447dbd
mov eax, dword [edi]
test eax, eax
je 0x447d6e
cmp word [eax], dx
je 0x447d6e
lea eax, [ebp - 0x10]
push eax
call fcn.00447655
jmp 0x447d77
lea eax, [ebp - 0x10]
push eax
call fcn.004476f0
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x447de7
mov eax, dword [0x45893c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x458630
call fcn.00447c72
add esp, 0xc
test al, al
je 0x447de7
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x447db2
cmp word [eax], di
je 0x447db2
lea eax, [ebp - 0x10]
push eax
call fcn.00447655
pop ecx
jmp 0x447de9
lea eax, [ebp - 0x10]
push eax
call fcn.004476f0
jmp 0x447daf
mov eax, dword [edi]
test eax, eax
je 0x447dd4
cmp word [eax], dx
je 0x447dd4
lea eax, [ebp - 0x10]
push eax
call fcn.0044760a
pop ecx
jmp 0x447de7
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x447eb2
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00447af7
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x447eb2
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x447eb2
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x447eb2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x447e3f
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004413ee
test ebx, ebx
je 0x447ead
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004413ee
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x447eb2
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x447eb2
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0044d300
add esp, 0x10
xor eax, eax
inc eax
jmp 0x447eb4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004291f2
leave
ret
Function at 0x44eb85
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0044eb01
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x44ecf4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x44ecf4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x44eca9
jg 0x44ebe1
test eax, eax
je 0x44ec9f
push 1
push 0x1000
call fcn.00440db7
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x44ec04
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x44ec96
push 0x8000
push ebx
call fcn.0043c15a
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x44ec2d
jg 0x44ec28
cmp ecx, 0x1000
jb 0x44ec2d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0044081c
add esp, 0x10
cmp eax, 0xffffffff
je 0x44ec72
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x44ec28
jl 0x44ec59
test ecx, ecx
jne 0x44ec1a
push dword [ebp - 0xc]
push ebx
call fcn.0043c15a
push esi
call fcn.0043f4fe
add esp, 0xc
xor ebx, ebx
jmp 0x44ed02
cmp byte [edi + 0x24], 0
je 0x44ec89
cmp dword [edi + 0x20], 5
jne 0x44ec89
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x44ec94
mov ebx, dword [edi + 0x18]
jmp 0x44ec96
xor ebx, ebx
push esi
call fcn.0043f4fe
pop ecx
jmp 0x44ed02
test ecx, ecx
jg 0x44ec6b
jl 0x44eca9
test eax, eax
jae 0x44ec6b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00444398
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x44ecc9
cmp byte [edi + 0x1c], 0
je 0x44ec6b
jmp 0x44ecfa
push ebx
call fcn.00445acd
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x44ec6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x44ed02
cmp byte [edi + 0x1c], 0
je 0x44ecff
mov ebx, dword [edi + 0x18]
jmp 0x44ed02
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00444398
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001711
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10006004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 4
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x100017e9
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
jmp 0x100017da
cmp dword [ebp - 0x20], 0x10
jb 0x100017c8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x100017c8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x100017c8
mov edx, dword [esi]
test edx, edx
jne 0x10001796
push 0x200
push edx
push dword [0x1000665c]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x100017e2
jmp 0x100017bc
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x100017bc
shl eax, 3
push eax
push edx
push 0
push dword [0x1000665c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x100017e2
shl dword [esi + 4], 1
mov dword [esi], edx
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10001751
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1000243c
leave
ret

Function at 0x100017f7
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.10001711
cmp dword [esi], ebx
je 0x10001857
push edi
mov edi, ebx
cmp dword [esi + 8], ebx
jbe 0x10001856
mov eax, dword [esi]
push dword [eax + edi*4]
push ebx
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1000184d
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.100015be
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
push 0
pop ebx
cmp edi, dword [esi + 8]
jb 0x1000181d
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000185b
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x100018a9
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x10001899
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10001890
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x1000186d
mov eax, dword [esi]
pop ebx
push eax
push 0
push dword [0x1000665c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
ret
Function at 0x100018ab
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
imul esi, ecx, 0x2c
push edi
add esi, dword [0x10006670]
mov al, byte [esi + 0x14]
mov edi, dword [esi]
and al, 1
je 0x100018c7
sub edi, 5
movzx eax, al
lea ebx, [eax*2 + 5]
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100018e8
push 0xa
pop eax
jmp 0x10001927
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x10001903
mov eax, dword [esi]
mov word [eax], 0xf9eb
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [esi + 0x14], 6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10001ddc
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x10006664]
push esi
xor esi, esi
jmp 0x10001dee
cmp dword [edx + 4], esi
jne 0x10001e47
mov edx, dword [edx]
test edx, edx
jne 0x10001de7
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x10001e4b
push 0x20
mov dword [edx + 4], esi
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop esi
mov eax, dword [edx + 4]
add esi, 0x20
mov dword [ecx], eax
mov dword [edx + 4], ecx
add ecx, 0x20
cmp esi, 0xfe0
jbe 0x10001e17
mov eax, dword [0x10006664]
mov dword [edx], eax
mov dword [0x10006664], edx
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret
test edx, edx
jne 0x10001e3a
xor eax, eax
pop esi
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 0x5f2c58
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x689300]
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 0x67c9ac
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 9
push eax
call fcn.005b8783
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.00470aa0
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.00470aa0
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.00470aa0
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 0x67c9ac
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], 0xa
push eax
call fcn.005b8783
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 0x67c9ac
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 2
push eax
call fcn.005b8783
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.005b8774
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 0x65dda4
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 0x5f3140
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x689300]
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 0x67c9ac
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 1
push eax
call fcn.005b8783
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.00427c20
test al, al
jne 0x427499
push 0x67c9ac
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 4
push eax
call fcn.005b8783
mov ecx, ebx
call fcn.00427cc0
mov dword [ebx + 4], eax
cmp eax, 0x194
jne 0x4274bf
push 0x67c9ac
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 5
push eax
call fcn.005b8783
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x4274e5
push 0x67c9ac
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 4
push eax
call fcn.005b8783
mov eax, dword [ebp - 0x2c]
cmp eax, 0x800000
jbe 0x427504
push 0x67c9ac
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0xc
push eax
call fcn.005b8783
push eax
call fcn.005ba418
push 0x1000
mov dword [ebp - 0x1c], eax
call fcn.005ba418
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.005ba3e0
mov esi, dword [ebp - 0x18]
push esi
call fcn.005ba418
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 0x67c9ac
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 8
push eax
call fcn.005b8783
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x28]
add eax, esi
push edi
push eax
call fcn.005b8be0
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 0x67c9ac
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 8
push eax
call fcn.005b8783
mov esi, dword [ebp - 0x18]
test esi, esi
jne 0x427522
mov bl, 1
jmp 0x4275d1
test edi, edi
je 0x4275de
push edi
call fcn.005ba3e0
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.005ba3e0
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 0x5f31f8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x689300]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x689300]
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.005b8130
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 0x67c9ac
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 5
push eax
call fcn.005b8783
push 0x1000
call fcn.005ba418
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.005ba3e0
mov esi, dword [esp + 0x20]
push esi
call fcn.005ba418
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.005ba3e0
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.00470aa0
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.005b8774
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 [0x689300]
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.005ba350
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.005bc937
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.005b8774
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.005b8774
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 [0x689300]
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.005ba350
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.005bc937
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b8774
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.005b8774
mov esp, ebp
pop ebp
ret
Function at 0x427fa0
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f3268
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x689300]
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.00470aa0
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.00470aa0
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.005b8774
mov esp, ebp
pop ebp
ret 8