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

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

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180154244
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 0x1801542b3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1801542b3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1801542b3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1801542b3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1801542b3
cmp dword [rcx + 0x84], 0xe
jbe 0x1801542b3
cmp dword [rcx + 0xf8], 0
je 0x1801542b3
mov ecx, ebx
call fcn.18015417c
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.1801543d8
nop
cmp dword [rbp + 0x20], 0
je 0x180154301
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180154210
int3

Function at 0x180158030
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180158058
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180158058
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180162410
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.18014db20
sub rsp, rax
mov rax, qword [0x1801890c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1801613cc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18016245f
mov rax, rbp
jmp 0x180162567
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x18bed0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180162140
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x18bed0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180162563
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 0x180162563
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180162140
test rax, rax
js 0x180162563
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180162563
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180162555
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180162555
cmp byte [rcx], 0xd
jne 0x18016253b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18016254a
cmp byte [rcx + 1], 0xa
jne 0x18016254a
inc rcx
jmp 0x18016254a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x189c30]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18016251d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180162567
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18014db80
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 0x180162d6c
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180162d9c
xor eax, eax
jmp 0x180162e5f
mov rbp, rbx
cmp word [rax], si
je 0x180162dc1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180162da8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180162da4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18015b6e4
movsxd r14, eax
test eax, eax
jne 0x180162dff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180162d95
mov rcx, r14
call fcn.18015b5f4
mov rdi, rax
test rax, rax
jne 0x180162e18
xor ecx, ecx
call fcn.18015b5b8
jmp 0x180162df4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18015b6e4
test eax, eax
jne 0x180162e49
mov rcx, rdi
call fcn.18015b5b8
jmp 0x180162e53
xor ecx, ecx
call fcn.18015b5b8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x180164168
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18016417e
mov al, 1
jmp 0x1801641de
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18016418f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1801641dc
mov ecx, dword [rcx + 0x18]
nop
call fcn.18016a504
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1801641dc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1801641dc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1801641dc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1801641de
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180164b14
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, [0x18018bed0]
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 0x180164b6b
cmp word [rdx], r13w
jne 0x180164b6b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180164b70
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180164c95
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180164cb6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180164ba9
mov rdx, r9
mov word [rbx], cx
jmp 0x180164bd0
cmp r9, r8
jae 0x180164be0
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 0x180164b8a
jmp 0x180164c95
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 0x180164c8a
cmp dword [rsp + 0x80], esi
je 0x180164c8a
lea r8, [0x18018bed0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180164c62
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180164c32
mov word [rbx], r13w
jmp 0x180164c92
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 0x180164c3f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180164c92
cmp word [rsp + 0x70], r13w
jne 0x180164c6f
cmp rbx, r14
je 0x180164c2c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18016209c
cmp word [rsp + 0x70], r13w
je 0x180164c95
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, [0x18018bed0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180164c8f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180164c95
Function at 0x18016a090
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.18015b824
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x18016a131
cmp ebx, dword [rsp + 0x30]
je 0x18016a12a
test esi, esi
je 0x18016a12a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18016a105
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18016a112
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18016a0ef
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18016a116
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18016a133
mov eax, 1
jmp 0x18016a133
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18016ef90
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.18016209c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18016209c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18016f0e0
cmp rax, 0xffffffffffffffff
je 0x18016f0e0
xor edi, edi
test rbp, rbp
jle 0x18016f08b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18015e4f4
mov rbx, rax
test rax, rax
jne 0x18016f018
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18016f081
mov edx, 0x8000
mov ecx, r14d
call fcn.18016ee14
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.1801632d8
cmp eax, 0xffffffff
je 0x18016f061
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18016f028
mov edx, r15d
mov ecx, r14d
call fcn.18016ee14
jmp 0x18016f081
cmp byte [rsi + 0x38], dil
je 0x18016f078
cmp dword [rsi + 0x34], 5
jne 0x18016f078
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18016f081
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18015b5b8
jmp 0x18016f0f4
jns 0x18016f0f4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18016209c
cmp rax, 0xffffffffffffffff
jne 0x18016f0ac
cmp byte [rsi + 0x30], dil
je 0x18016f0f4
mov edi, dword [rsi + 0x2c]
jmp 0x18016f0f4
mov ecx, r14d
call fcn.18016a504
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18016f0f4
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 0x18016f0f4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18016f0ed
mov eax, dword [rsi + 0x2c]
jmp 0x18016f0f2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18016209c
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 0x140001440
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
sub rsp, 0x158
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov edx, 0x1a
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
call rax
test eax, eax
setne al
test al, al
je 0x1400014f5
lea rax, str.Failed_to_get_AppData_path.
mov rdx, rax
mov rax, qword [str.__b_r_]
mov rcx, rax
call fcn.1400c8f00
mov rcx, rax
mov rax, qword [0x1400d82e0]
mov rdx, rax
call fcn.14008a560
lea rax, [rbp + 0xbe]
mov qword [rbp + 0xc8], rax
nop
nop
lea rdx, [rbp + 0xbe]
mov rax, qword [rbp + 0xf0]
mov r8, rdx
lea rdx, [0x1400d201c]
mov rcx, rax
call fcn.1400b88d0
lea rax, [rbp + 0xbe]
mov rcx, rax
call fcn.1400a9ed0
jmp 0x14000156f
lea rax, [rbp + 0xbf]
mov qword [rbp + 0xc0], rax
nop
nop
lea rcx, [rbp + 0xbf]
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0xf0]
mov r8, rcx
mov rcx, rax
call fcn.1400b88d0
lea rax, [rbp + 0xbf]
mov rcx, rax
call fcn.1400a9ed0
jmp 0x14000156f
mov rax, qword [rbp + 0xf0]
add rsp, 0x158
pop rbx
pop rbp
ret

Function at 0x140001580
Capabilities:
Create directory
Set file attributes

Disassembly:
push rbp
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
lea rax, [rbp - 0x30]
mov rdx, qword [rbp + 0x28]
lea r8, [0x1400d201d]
mov rcx, rax
call fcn.1400c9740
lea rax, [rbp - 0x50]
mov rcx, qword [rbp + 0x30]
lea rdx, [rbp - 0x30]
mov r8, rcx
mov rcx, rax
call fcn.1400c9640
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.1400b8e30
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.140031550
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call rax
test eax, eax
jne 0x140001602
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0xb7
jne 0x140001609
mov eax, 1
jmp 0x14000160e
mov eax, 0
test al, al
je 0x140001641
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.140031550
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
call rax
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x20]
mov rcx, rax
call fcn.1400b8420
jmp 0x1400016ac
lea rax, str.Failed_to_create_directory:
mov rdx, rax
mov rax, qword [str.__b_r_]
mov rcx, rax
call fcn.1400c8f00
mov rcx, rax
lea rax, [rbp - 0x50]
mov rdx, rax
call fcn.1400c9240
mov rcx, rax
mov rax, qword [0x1400d82e0]
mov rdx, rax
call fcn.14008a560
lea rax, [rbp - 9]
mov qword [rbp - 8], rax
nop
nop
lea rdx, [rbp - 9]
mov rax, qword [rbp + 0x20]
mov r8, rdx
lea rdx, [0x1400d201c]
mov rcx, rax
call fcn.1400b88d0
lea rax, [rbp - 9]
mov rcx, rax
call fcn.1400a9ed0
nop
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.1400b8e30
jmp 0x140001700
mov rax, qword [rbp + 0x20]
add rsp, 0x78
pop rbx
pop rbp
ret
Function at 0x14000170b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rbx
sub rsp, 0x218
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1b0], rcx
mov qword [rbp + 0x1b8], rdx
mov dword [rbp + 0x1c0], r8d
mov qword [rbp + 0x1c8], r9
mov rax, qword [rbp + 0x1c8]
mov rcx, rax
call fcn.140031550
mov rdx, rax
mov eax, dword [rbp + 0x1c0]
movzx eax, ax
mov rcx, rax
mov rax, qword [rbp + 0x1b8]
mov r8, rdx
mov rdx, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindResourceA]
call rax
mov qword [rbp + 0x188], rax
cmp qword [rbp + 0x188], 0
jne 0x1400017e9
lea rax, str.Resource_not_found:
mov rdx, rax
mov rax, qword [str.__b_r_]
mov rcx, rax
call fcn.1400c8f00
mov rcx, rax
mov rax, qword [rbp + 0x1c8]
mov rdx, rax
call fcn.1400c9240
mov rcx, rax
lea rax, str._with_ID
mov rdx, rax
call fcn.1400c8f00
mov rcx, rax
mov eax, dword [rbp + 0x1c0]
mov edx, eax
call fcn.14008a7b0
mov rcx, rax
mov rax, qword [0x1400d82e0]
mov rdx, rax
call fcn.14008a560
mov ebx, 0
jmp 0x1400018f0
mov rdx, qword [rbp + 0x188]
mov rax, qword [rbp + 0x1b8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadResource]
call rax
mov qword [rbp + 0x180], rax
mov rdx, qword [rbp + 0x188]
mov rax, qword [rbp + 0x1b8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SizeofResource]
call rax
mov dword [rbp + 0x17c], eax
mov rax, qword [rbp + 0x180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LockResource]
call rax
mov qword [rbp + 0x170], rax
mov rdx, qword [rbp + 0x1b0]
lea rax, [rbp - 0x60]
mov r8d, 4
mov rcx, rax
call fcn.1400a77b0
lea rax, [rbp - 0x60]
add rax, 0xc8
mov rcx, rax
call fcn.140079380
test al, al
je 0x1400018b7
lea rax, str.Failed_to_create_file:
mov rdx, rax
mov rax, qword [str.__b_r_]
mov rcx, rax
call fcn.1400c8f00
mov rcx, rax
mov rax, qword [rbp + 0x1b0]
mov rdx, rax
call fcn.1400c9240
mov rcx, rax
mov rax, qword [0x1400d82e0]
mov rdx, rax
call fcn.14008a560
mov ebx, 0
jmp 0x1400018e4
mov ecx, dword [rbp + 0x17c]
mov rdx, qword [rbp + 0x170]
lea rax, [rbp - 0x60]
mov r8, rcx
mov rcx, rax
call fcn.1400889f0
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.1400a73e0
mov ebx, 1
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.1400a7ea0
mov eax, ebx
jmp 0x14000190e
add rsp, 0x218
pop rbx
pop rbp
ret

Function at 0x140001918
Capabilities:
Execute command

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x20], rcx
lea rax, [rbp - 0x20]
mov rdx, qword [rbp + 0x20]
mov r8, rdx
lea rdx, [0x1400d2073]
mov rcx, rax
call fcn.1400c9690
lea rax, [rbp - 0x20]
mov rcx, rax
call fcn.140031550
mov rcx, rax
call sub.msvcrt.dll_system
lea rax, [rbp - 0x20]
mov rcx, rax
call fcn.1400b8e30
jmp 0x14000197e
add rsp, 0x48
pop rbx
pop rbp
ret
Function at 0x140001985
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
sub rsp, 0xe8
lea rbp, [rsp + 0xe0]
mov qword [rbp + 0x20], rcx
lea rax, [rbp - 0x70]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov dword [rbp - 0x70], 0x68
mov dword [rbp - 0x34], 1
mov word [rbp - 0x30], 0
lea rax, [rbp - 0x90]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov rax, qword [rbp + 0x20]
mov rcx, rax
call fcn.140031550
mov rdx, rax
lea rax, [rbp - 0x90]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
sete al
test al, al
je 0x140001a90
lea rax, str.CreateProcess_failed__
mov rdx, rax
mov rax, qword [str.__b_r_]
mov rcx, rax
call fcn.1400c8f00
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
mov rcx, rbx
call fcn.14008a7e0
mov rcx, rax
lea rax, [0x1400d2091]
mov rdx, rax
call fcn.1400c8f00
mov eax, 0
jmp 0x140001abb
mov rax, qword [rbp - 0x90]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x88]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
add rsp, 0xe8
pop rbx
pop rbp
ret

Function at 0x140004910
Capabilities:
Parse pe header

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [rcx + 0x18]
movzx edx, byte [rax]
cmp dl, 0x4c
je 0x140004980
jg 0x140004940
sub edx, 0x49
cmp dl, 1
ja 0x140004990
add rax, 1
mov qword [rcx + 0x18], rax
add rsp, 0x30
pop rsi
jmp fcn.1400049b0
cmp dl, 0x58
jne 0x140004990
add rax, 1
mov esi, dword [rcx + 0x4c]
mov dword [rcx + 0x4c], 1
mov qword [rcx + 0x18], rax
mov qword [rsp + 0x28], rcx
call fcn.140004c80
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx + 0x18]
mov dword [rcx + 0x4c], esi
cmp byte [rdx], 0x45
jne 0x1400049a0
add rdx, 1
mov qword [rcx + 0x18], rdx
add rsp, 0x30
pop rsi
ret
add rsp, 0x30
pop rsi
jmp fcn.140004720
add rsp, 0x30
pop rsi
jmp fcn.140003050
xor eax, eax
jmp 0x14000497a
Function at 0x14000e6e0
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 fcn.14001a010
mov r8d, 0x1b
mov edx, 1
lea rcx, [0x1400d7120]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14001a010
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14000e750
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140100094]
mov rbx, rcx
test esi, esi
jle 0x14000e880
mov rax, qword [0x140100098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000e79b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000e825
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000e780
mov rcx, rbx
call fcn.14000f200
mov rdi, rax
test rax, rax
je 0x14000e8a2
mov rax, qword [0x140100098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000f340
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140100098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000e887
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000e81e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000e830
add dword [0x140100094], 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 [0x140100098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000e81e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x1400d7198]
mov edx, eax
call fcn.14000e6e0
nop dword [rax]
xor esi, esi
jmp 0x14000e7a8
mov rax, qword [0x140100098]
mov edx, dword [rdi + 8]
lea rcx, [0x1400d7160]
mov r8, qword [rax + rbx + 0x18]
call fcn.14000e6e0
mov rdx, rbx
lea rcx, [0x1400d7140]
call fcn.14000e6e0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000ee40
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140100100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401000e0]
test rbx, rbx
je 0x14000eea4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000ee9b
test eax, eax
jne 0x14000ee9b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000ee80
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]