joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400097fc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test rax, rax
je 0x140009846
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140009846
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140009846
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140009846
cmp dword [rcx + 0x84], 0xe
jbe 0x140009846
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140009848
xor al, al
add rsp, 0x28
ret
Function at 0x14000f624
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000f693
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test rax, rax
je 0x14000f693
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f693
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f693
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f693
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f693
cmp dword [rcx + 0xf8], 0
je 0x14000f693
mov ecx, ebx
call fcn.14000f744
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000f520
nop
cmp dword [rbp + 0x20], 0
je 0x14000f6e1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f6ec
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f624

Function at 0x14000f828
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000f693
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test rax, rax
je 0x14000f693
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f693
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f693
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f693
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f693
cmp dword [rcx + 0xf8], 0
je 0x14000f693
mov ecx, ebx
call fcn.14000f744
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000f520
nop
cmp dword [rbp + 0x20], 0
je 0x14000f6e1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f6ec
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f624
Function at 0x140019050
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400278a0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001c238
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001909f
mov rax, rbp
jmp 0x1400191a7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3b770]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001f5a0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3b770]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400191a3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x1400191a3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001f5a0
test rax, rax
js 0x1400191a3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400191a3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140019195
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140019195
cmp byte [rcx], 0xd
jne 0x14001917b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001918a
cmp byte [rcx + 1], 0xa
jne 0x14001918a
inc rcx
jmp 0x14001918a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3a360]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001915d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400191a7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140008df0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001edb8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001edce
mov al, 1
jmp 0x14001ee2e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001eddf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001ee2c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140021a40
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001ee2c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x14001ee2c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x14001ee2c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001ee2e
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001f64c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14003b770]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001f6a3
cmp word [rdx], r13w
jne 0x14001f6a3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001f6a8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001f7cd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001f7ee
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001f6e1
mov rdx, r9
mov word [rbx], cx
jmp 0x14001f708
cmp r9, r8
jae 0x14001f718
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001f6c2
jmp 0x14001f7cd
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x14001f7c2
cmp dword [rsp + 0x80], esi
je 0x14001f7c2
lea r8, [0x14003b770]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001f79a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001f76a
mov word [rbx], r13w
jmp 0x14001f7ca
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001f777
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001f7ca
cmp word [rsp + 0x70], r13w
jne 0x14001f7a7
cmp rbx, r14
je 0x14001f764
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001f5a8
cmp word [rsp + 0x70], r13w
je 0x14001f7cd
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14003b770]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001f7c7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001f7cd
Function at 0x1400214f8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14002157f
mov rsi, rbx
cmp word [rax], bp
je 0x14002153e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140021528
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140021524
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001acb4
mov rdi, rax
test rax, rax
je 0x14002156c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140027e00
mov rbp, rdi
xor ecx, ecx
call fcn.14001ac78
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400268f4
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001f5a8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001f5a8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140026a44
cmp rax, 0xffffffffffffffff
je 0x140026a44
xor edi, edi
test rbp, rbp
jle 0x1400269ef
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001ac00
mov rbx, rax
test rax, rax
jne 0x14002697c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400269e5
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a278
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001e8bc
cmp eax, 0xffffffff
je 0x1400269c5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002698c
mov edx, r15d
mov ecx, r14d
call fcn.14001a278
jmp 0x1400269e5
cmp byte [rsi + 0x38], dil
je 0x1400269dc
cmp dword [rsi + 0x34], 5
jne 0x1400269dc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400269e5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001ac78
jmp 0x140026a58
jns 0x140026a58
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001f5a8
cmp rax, 0xffffffffffffffff
jne 0x140026a10
cmp byte [rsi + 0x30], dil
je 0x140026a58
mov edi, dword [rsi + 0x2c]
jmp 0x140026a58
mov ecx, r14d
call fcn.140021a40
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
jne 0x140026a58
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140026a58
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140026a51
mov eax, dword [rsi + 0x2c]
jmp 0x140026a56
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001f5a8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400e0700]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400e0710]
mov dword [rax], 1
mov rax, qword [0x1400e0720]
mov dword [rax], 1
mov rax, qword [0x1400e0660]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400e06f0]
mov dword [0x14010c00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400e07f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400e07d0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400dfad0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001472
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbp
push rbx
sub rsp, 0x458
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], rcx
mov qword [rbp + 0x3f8], rdx
mov rax, qword [rbp + 0x3f0]
mov rcx, rax
call fcn.1400b1a50
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 1
lea rax, str.UserAgent
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp + 0x3c8], rax
cmp qword [rbp + 0x3c8], 0
je 0x1400015de
mov rax, qword [rbp + 0x3f8]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rdx, rax
mov rax, qword [rbp + 0x3c8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenUrlA]
call rax
mov qword [rbp + 0x3c0], rax
cmp qword [rbp + 0x3c0], 0
je 0x1400015ac
jmp 0x140001554
mov eax, dword [rbp + 0x3bc]
mov ecx, eax
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x3f0]
mov r8, rcx
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.append_char_const__unsigned_long_long_
lea rcx, [rbp + 0x3bc]
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x3c0]
mov r9, rcx
mov r8d, 0x400
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
test eax, eax
je 0x140001590
mov eax, dword [rbp + 0x3bc]
test eax, eax
je 0x140001590
mov eax, 1
jmp 0x140001595
mov eax, 0
test al, al
jne 0x140001536
mov rax, qword [rbp + 0x3c0]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0x3c8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
jmp 0x1400015de
nop
mov rax, qword [rbp + 0x3f0]
add rsp, 0x458
pop rbx
pop rbp
ret
Function at 0x140001d3d
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push rbp
sub rsp, 0x470
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x400], rcx
mov qword [rbp + 0x408], rdx
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 1
lea rax, str.UserAgent
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp + 0x3e0], rax
cmp qword [rbp + 0x3e0], 0
jne 0x140001da2
mov eax, 0
jmp 0x140001f78
mov rax, qword [rbp + 0x400]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rdx, rax
mov rax, qword [rbp + 0x3e0]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenUrlA]
call rax
mov qword [rbp + 0x3d8], rax
cmp qword [rbp + 0x3d8], 0
jne 0x140001e12
mov rax, qword [rbp + 0x3e0]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov eax, 0
jmp 0x140001f78
mov rax, qword [rbp + 0x408]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
mov r9d, 0
mov r8d, 0
mov edx, 0x40000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0x3d0], rax
cmp qword [rbp + 0x3d0], 0xffffffffffffffff
jne 0x140001e98
mov rax, qword [rbp + 0x3d8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0x3e0]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov eax, 0
jmp 0x140001f78
mov byte [rbp + 0x3ef], 1
jmp 0x140001ef5
mov ecx, dword [rbp - 0x34]
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x30]
mov rax, qword [rbp + 0x3d0]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
test eax, eax
je 0x140001edc
mov edx, dword [rbp - 0x38]
mov eax, dword [rbp - 0x34]
cmp edx, eax
je 0x140001ee3
mov eax, 1
jmp 0x140001ee8
mov eax, 0
test al, al
je 0x140001ef5
mov byte [rbp + 0x3ef], 0
jmp 0x140001f38
lea rcx, [rbp - 0x34]
lea rdx, [rbp - 0x30]
mov rax, qword [rbp + 0x3d8]
mov r9, rcx
mov r8d, 0x400
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
test eax, eax
je 0x140001f2b
mov eax, dword [rbp - 0x34]
test eax, eax
je 0x140001f2b
mov eax, 1
jmp 0x140001f30
mov eax, 0
test al, al
jne 0x140001ea1
mov rax, qword [rbp + 0x3d0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x3d8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0x3e0]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
movzx eax, byte [rbp + 0x3ef]
add rsp, 0x470
pop rbp
ret
Function at 0x140001f81
Capabilities:
Create process on windows

Disassembly:
push rbp
push rdi
sub rsp, 0xa8
lea rbp, [rsp + 0xa0]
mov qword [rbp + 0x20], rcx
lea rdx, [rbp - 0x70]
mov eax, 0
mov ecx, 0xe
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x70], 0x70
mov dword [rbp - 0x6c], 0x40
lea rax, str.runas
mov qword [rbp - 0x60], rax
mov rax, qword [rbp + 0x20]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x40], 1
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
test eax, eax
setne al
test al, al
je 0x14000205f
mov rax, qword [rbp - 8]
test rax, rax
je 0x140002058
mov rax, qword [rbp - 8]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x74]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
call rax
test eax, eax
setne al
test al, al
je 0x140002048
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp - 0x74]
test eax, eax
sete al
jmp 0x140002064
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
jmp 0x140002064
mov eax, 0
add rsp, 0xa8
pop rdi
pop rbp
ret

Function at 0x14000d130
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x14000d1a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14010c094]
mov rbx, rcx
test esi, esi
jle 0x14000d2d0
mov rax, qword [0x14010c098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000d1eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000d275
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000d1d0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14000d2f2
mov rax, qword [0x14010c098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14010c098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000d2d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000d26e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000d280
add dword [0x14010c094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14010c098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000d26e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x14000d1f8
mov rax, qword [0x14010c098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000d880
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14010c100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14010c0e0]
test rbx, rbx
je 0x14000d8dc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000d8d3
test eax, eax
jne 0x14000d8d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000d8b8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000daf0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000db08
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000db10
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret