joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011f9a
Capabilities:
Enumerate pe sections

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r14, r8
mov r12, rdx
mov r13, rcx
call fcn.140023b70
mov rsi, rax
movsxd rax, dword [r12 + 0x3c]
movzx ebx, word [rax + r12 + 6]
test rbx, rbx
je 0x14001202b
movzx ecx, word [rax + r12 + 0x14]
add rax, r12
lea rdi, [rcx + rax]
add rdi, 0x18
xor r15d, r15d
xor ebp, ebp
mov rcx, rdi
mov rdx, r13
mov r8, rsi
call fcn.140018190
test eax, eax
jne 0x140012000
mov rcx, rdi
call fcn.140023b70
cmp rsi, rax
je 0x14001200e
inc rbp
add rdi, 0x28
cmp rbp, rbx
jb 0x140011fe1
jmp 0x14001202e
mov eax, dword [rdi + 0xc]
test eax, eax
je 0x14001202b
test r14, r14
je 0x140012023
mov eax, dword [rdi + 8]
mov dword [r14], eax
mov eax, dword [rdi + 0xc]
mov r15d, eax
add r15, r12
jmp 0x14001202e
xor r15d, r15d
mov rax, r15
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14001b914
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001ba5c

Function at 0x14001f2e0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001f300
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001dd6c
or eax, 0xffffffff
jmp 0x14001f302
xor eax, eax
add rsp, 0x28
ret

Function at 0x14002ebec
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.1400280a8
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 0x14002ec8d
cmp ebx, dword [rsp + 0x30]
je 0x14002ec86
test esi, esi
je 0x14002ec86
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002ec61
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002ec6e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002ec4b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002ec72
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002ec8f
mov eax, 1
jmp 0x14002ec8f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002f72c
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.140012b80
sub rsp, rax
mov rax, qword [0x14005f788]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002c238
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002f77b
mov rax, rbp
jmp 0x14002f883
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 + 0x61ed0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002f45c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x61ed0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002f87f
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 0x14002f87f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002f45c
test rax, rax
js 0x14002f87f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002f87f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002f871
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002f871
cmp byte [rcx], 0xd
jne 0x14002f857
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002f866
cmp byte [rcx + 1], 0xa
jne 0x14002f866
inc rcx
jmp 0x14002f866
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x602b0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002f839
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002f883
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140012be0
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 0x140030114
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 0x14003019b
mov rsi, rbx
cmp word [rax], bp
je 0x14003015a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140030144
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140030140
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140027e78
mov rdi, rax
test rax, rax
je 0x140030188
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140018290
mov rbp, rdi
xor ecx, ecx
call fcn.140027e3c
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 0x1400321a4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400321ba
mov al, 1
jmp 0x14003221a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400321cb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140032218
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003060c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140032218
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140032218
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140032218
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003221a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140032c4c
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, [0x140061ed0]
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 0x140032ca3
cmp word [rdx], r13w
jne 0x140032ca3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140032ca8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140032dcd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140032dee
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140032ce1
mov rdx, r9
mov word [rbx], cx
jmp 0x140032d08
cmp r9, r8
jae 0x140032d18
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 0x140032cc2
jmp 0x140032dcd
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 0x140032dc2
cmp dword [rsp + 0x80], esi
je 0x140032dc2
lea r8, [0x140061ed0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140032d9a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140032d6a
mov word [rbx], r13w
jmp 0x140032dca
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 0x140032d77
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140032dca
cmp word [rsp + 0x70], r13w
jne 0x140032da7
cmp rbx, r14
je 0x140032d64
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002f3b8
cmp word [rsp + 0x70], r13w
je 0x140032dcd
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, [0x140061ed0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140032dc7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140032dcd
Function at 0x14003982c
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.14002f3b8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002f3b8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14003997c
cmp rax, 0xffffffffffffffff
je 0x14003997c
xor edi, edi
test rbp, rbp
jle 0x140039927
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400292b8
mov rbx, rax
test rax, rax
jne 0x1400398b4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14003991d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001ee08
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.14003109c
cmp eax, 0xffffffff
je 0x1400398fd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400398c4
mov edx, r15d
mov ecx, r14d
call fcn.14001ee08
jmp 0x14003991d
cmp byte [rsi + 0x38], dil
je 0x140039914
cmp dword [rsi + 0x34], 5
jne 0x140039914
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14003991d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140027e3c
jmp 0x140039990
jns 0x140039990
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002f3b8
cmp rax, 0xffffffffffffffff
jne 0x140039948
cmp byte [rsi + 0x30], dil
je 0x140039990
mov edi, dword [rsi + 0x2c]
jmp 0x140039990
mov ecx, r14d
call fcn.14003060c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140039990
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 0x140039990
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140039989
mov eax, dword [rsi + 0x2c]
jmp 0x14003998e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002f3b8
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 0x140004907
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.1400123e0
mov r15, qword [0x14002048c]
cmp r15, 1
jne 0x1400049d6
push qword [0x14002057c]
pop rcx
call fcn.14000d5b4
mov r15, rax
and r15, r15
jle 0x14000496c
mov rcx, qword [0x14002057c]
call fcn.14000d5bc
mov rcx, qword [0x14002057c]
call fcn.14000d5d0
or rax, rax
je 0x14000496c
mov rbp, qword [0x140020584]
push qword [rbp + 0x10]
pop rcx
call fcn.14000da6c
jmp 0x140004949
push qword [0x14002056c]
pop rcx
call fcn.14000d5b4
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x1400049d6
push 5
push 0
push 1
push qword [0x14002056c]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009070
mov rcx, qword [0x14002056c]
call fcn.14000d5bc
mov rcx, qword [0x14002056c]
call fcn.14000d5d0
or rax, rax
je 0x1400049d6
mov rbp, qword [0x140020574]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x1400049b3
mov rax, 1
jmp 0x1400049e2
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006a58
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x14000720c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14000719c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x140007248
cmp qword [rbx + 0x18], rdi
je 0x14000724f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000723f
jmp 0x140007269
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400205b8]
call fcn.140011c68
lea rcx, [0x140021170]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movabs al, byte [0xa0ff0d6fa0ff0d6f]
outsd dx, dword [rsi]
or eax, 0xd6fa0ff
jmp qword [rax - 0x5f00f291]
movabs al, byte [0xa0ff0d6fa0ff0d6f]
outsd dx, dword [rsi]
or eax, 0xd6fa0ff
jmp qword [rax - 0x5f00f291]
movabs al, byte [0xabff0b6e9fff0d6f]
sub byte [rcx], 0xff
invalid
and bh, bh
lahf
outsb dx, byte [rsi]
or edi, edi
movabs al, byte [0xa0ff0d6fa0ff0d6f]
outsd dx, dword [rsi]
or eax, 0xd6fa0ff
movabs al, byte [0xa0ff0d6fa0ff0d6f]
movabs al, byte [0xa0ff0d6fa0ff0d6f]
outsd dx, dword [rsi]
or eax, 0xd6fa0ff
jmp qword [rax - 0x5f00f291]
invalid
outsd dx, dword [rsi]
invalid
invalid
invalid
movabs al, byte [0xa0ff0d6fa0ff0d6f]
outsd dx, dword [rsi]
or eax, 0xd6fa0ff
jmp qword [rax - 0x5f00f291]
movabs al, byte [0xa0ff0d6fa0ff0d6f]
outsd dx, dword [rsi]
or eax, 0xd6fa0ff
jmp qword [rax - 0x5f00f291]
or eax, 0xd6fa0ff
jmp qword [rax - 0x5f00f291]
invalid
or eax, 0xd6fa0ff
jmp qword [rax - 0x5f00f291]
Function at 0x1400016aa
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov qword [rbp + 0xf8], rdx
mov qword [rbp + 0x100], r8
mov qword [rbp + 0x108], r9
mov rcx, qword [rbp + 0xf8]
lea rax, [rbp - 0x30]
mov rdx, qword [rbp + 0x128]
mov qword [rsp + 0x48], rdx
mov rdx, qword [rbp + 0x120]
mov qword [rsp + 0x40], rdx
mov rdx, qword [rbp + 0x118]
mov qword [rsp + 0x38], rdx
mov rdx, qword [rbp + 0x110]
mov qword [rsp + 0x30], rdx
mov rdx, qword [rbp + 0x108]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0x100]
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str._s__s__s__s__s__s__s
mov edx, 0x100
mov rcx, rax
call fcn.1400014e7
mov rax, qword [rbp + 0xf0]
lea rdx, [0x14001003c]
mov rcx, rax
call sub.msvcrt.dll_fopen
mov qword [rbp + 0xd8], rax
cmp qword [rbp + 0xd8], 0
je 0x1400017b4
lea rax, [rbp - 0x30]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov rdx, rax
mov rcx, qword [rbp + 0xd8]
lea rax, [rbp - 0x30]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sub.msvcrt.dll_fclose
lea rax, str.Strings_written_to_file_successfully._n
mov rcx, rax
call fcn.140001493
jmp 0x1400017c3
lea rax, str.Failed_to_open_file_for_writing._n
mov rcx, rax
call fcn.140001493
nop
add rsp, 0x160
pop rbp
ret
Function at 0x14000211a
Capabilities:
Execute command

Disassembly:
push rbp
sub rsp, 0x460
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], rcx
lea rax, str.System.Log.exe
mov qword [rbp + 0x3d8], rax
lea rax, [rbp + 0x2d0]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
test eax, eax
jne 0x140002186
mov ecx, 2
mov rax, qword [fcn.14000e790]
call rax
mov rcx, rax
lea rax, str.Error_getting_the_path_of_the_executable._n
mov rdx, rax
call fcn.140001450
jmp 0x140002231
mov rcx, qword [rbp + 0x3f0]
lea rax, [rbp + 0x1c0]
mov rdx, qword [rbp + 0x3d8]
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str._s_s
mov edx, 0x104
mov rcx, rax
call fcn.1400014e7
lea rcx, [rbp + 0x2d0]
lea rax, [rbp - 0x50]
lea rdx, [rbp + 0x1c0]
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str.copy___s____s_
mov edx, 0x208
mov rcx, rax
call fcn.1400014e7
lea rax, [rbp - 0x50]
mov rcx, rax
call sub.msvcrt.dll_system
test eax, eax
je 0x140002217
mov ecx, 2
mov rax, qword [fcn.14000e790]
call rax
mov rcx, rax
lea rax, str.Error_executing_the_command._n
mov rdx, rax
call fcn.140001450
jmp 0x140002231
lea rax, [rbp + 0x1c0]
mov rdx, rax
lea rax, str.Successfully_copied_to__s_n
mov rcx, rax
call fcn.140001493
nop
add rsp, 0x460
pop rbp
ret
Function at 0x14000223a
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x518
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x4b0], rcx
mov qword [rbp + 0x4b8], rdx
lea rax, [rbp + 0x380]
mov edx, 0x104
mov rcx, rax
call sub.msvcrt.dll__getcwd
test rax, rax
jne 0x14000228b
lea rax, str.getcwd
mov rcx, rax
call sub.msvcrt.dll_perror
mov ecx, 1
call sub.msvcrt.dll_exit
mov rax, qword [rbp + 0x4b0]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov rcx, rax
mov rdx, qword [rbp + 0x4b0]
lea rax, [rbp + 0x380]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_strncmp
test eax, eax
je 0x14000246d
mov rcx, qword [rbp + 0x4b0]
lea rax, [rbp + 0x40]
mov rdx, qword [rbp + 0x4b8]
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str._s__s
mov edx, 0x104
mov rcx, rax
call fcn.1400014e7
lea rax, [rbp + 0x40]
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll__access
cmp eax, 0xffffffff
jne 0x14000231b
lea rax, str.access
mov rcx, rax
call sub.msvcrt.dll_perror
mov ecx, 1
call sub.msvcrt.dll_exit
lea rcx, [rbp + 0x40]
lea rax, [rbp + 0x150]
mov rdx, qword [rbp + 0x4b0]
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str.__s____run___s_
mov edx, 0x208
mov rcx, rax
call fcn.1400014e7
lea rax, [rbp - 0x30]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov dword [rbp - 0x30], 0x68
mov dword [rbp + 0xc], 1
mov word [rbp + 0x10], 0
lea rax, [rbp + 0x360]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
lea rax, [rbp + 0x150]
lea rdx, [rbp + 0x360]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x40], rdx
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 rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
jne 0x140002425
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ebx, eax
mov ecx, 2
mov rax, qword [fcn.14000e790]
call rax
mov rcx, rax
mov r8d, ebx
lea rax, str.CreateProcess_failed___lu__n
mov rdx, rax
call fcn.140001450
mov ecx, 1
call sub.msvcrt.dll_exit
mov rax, qword [rbp + 0x360]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0x360]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x368]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov ecx, 0
call sub.msvcrt.dll_exit
nop
add rsp, 0x518
pop rbx
pop rbp
ret
Function at 0x140002478
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0xffffffff
jne 0x1400024b5
mov rax, qword [rbp + 0x10]
mov rdx, rax
lea rax, str.The_specified_path_is_invalid:__s_n
mov rcx, rax
call fcn.140001493
jmp 0x140002521
mov eax, dword [rbp - 4]
and eax, 0x10
test eax, eax
jne 0x1400024d7
mov rax, qword [rbp + 0x10]
mov rdx, rax
lea rax, str.The_specified_path_is_not_a_folder:__s_n
mov rcx, rax
call fcn.140001493
jmp 0x140002521
or dword [rbp - 4], 6
mov edx, dword [rbp - 4]
mov rax, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
call rax
test eax, eax
je 0x14000250a
mov rax, qword [rbp + 0x10]
mov rdx, rax
lea rax, str.Attributes_set_successfully_for_folder:__s_n
mov rcx, rax
call fcn.140001493
jmp 0x140002521
mov rax, qword [rbp + 0x10]
mov rdx, rax
lea rax, str.Failed_to_set_attributes_for_folder:__s_n
mov rcx, rax
call fcn.140001493
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400025c6
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0xffffffff
je 0x1400025f5
mov eax, dword [rbp - 4]
and eax, 0x10
test eax, eax
jne 0x140002610
mov rax, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__mkdir]
call rax
test eax, eax
je 0x140002610
mov eax, 0
jmp 0x140002615
mov eax, 1
add rsp, 0x30
pop rbp
ret
Function at 0x1400032ff
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0x860
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x800], rcx
mov qword [rbp + 0x808], rdx
mov dword [rbp + 0x810], r8d
mov eax, dword [rbp + 0x810]
movzx eax, ax
mov rdx, rax
mov rax, qword [rbp + 0x808]
mov r8d, 0xa
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindResourceA]
call rax
mov qword [rbp + 0x7d8], rax
cmp qword [rbp + 0x7d8], 0
jne 0x140003375
lea rax, str.Failed_to_find_resource_n
mov rcx, rax
call fcn.140001493
mov ecx, 1
call sub.msvcrt.dll_exit
mov rdx, qword [rbp + 0x7d8]
mov rax, qword [rbp + 0x808]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadResource]
call rax
mov qword [rbp + 0x7d0], rax
cmp qword [rbp + 0x7d0], 0
jne 0x1400033b9
lea rax, str.Failed_to_load_resource_n
mov rcx, rax
call fcn.140001493
mov ecx, 1
call sub.msvcrt.dll_exit
mov rdx, qword [rbp + 0x7d8]
mov rax, qword [rbp + 0x808]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SizeofResource]
call rax
mov dword [rbp + 0x7cc], eax
mov rax, qword [rbp + 0x7d0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LockResource]
call rax
mov qword [rbp + 0x7c0], rax
cmp qword [rbp + 0x7c0], 0
je 0x140003558
mov edx, dword [rbp + 0x7cc]
lea rcx, [rbp + 0x7a8]
mov rax, qword [rbp + 0x7c0]
mov r8, rcx
mov rcx, rax
call fcn.140002665
mov qword [rbp + 0x7b8], rax
cmp qword [rbp + 0x7b8], 0
jne 0x14000344a
lea rax, str.Failed_to_decode_resource_data_n
mov rcx, rax
call fcn.140001493
mov ecx, 1
call sub.msvcrt.dll_exit
mov rax, qword [rbp + 0x7a8]
add rax, 1
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x7b0], rax
cmp qword [rbp + 0x7b0], 0
jne 0x140003496
lea rax, str.Failed_to_allocate_memory_for_decoded_string_n
mov rcx, rax
call fcn.140001493
mov rax, qword [rbp + 0x7b8]
mov rcx, rax
call sub.msvcrt.dll_free
mov ecx, 1
call sub.msvcrt.dll_exit
mov rcx, qword [rbp + 0x7a8]
mov rdx, qword [rbp + 0x7b8]
mov rax, qword [rbp + 0x7b0]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rdx, qword [rbp + 0x7a8]
mov rax, qword [rbp + 0x7b0]
add rax, rdx
mov byte [rax], 0
lea rax, [rbp - 0x60]
mov rdx, qword [rbp + 0x7b0]
mov rcx, rax
call fcn.140003145
mov rax, qword [rbp + 0x7b8]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x7b0]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x800]
mov rdx, rax
lea rax, [rbp - 0x60]
mov ecx, 0x800
mov r8, qword [rax]
mov qword [rdx], r8
mov r8d, ecx
add r8, rdx
lea r9, [r8 + 8]
mov r8d, ecx
add r8, rax
add r8, 8
mov r8, qword [r8 - 0x10]
mov qword [r9 - 0x10], r8
lea r8, [rdx + 8]
and r8, 0xfffffffffffffff8
sub rdx, r8
sub rax, rdx
add ecx, edx
and ecx, 0xfffffff8
mov edx, ecx
shr edx, 3
mov edx, edx
mov rdi, r8
mov rsi, rax
mov rcx, rdx
rep movsq qword [rdi], qword [rsi]
jmp 0x140003571
lea rax, str.Failed_to_lock_resource_n
mov rcx, rax
call fcn.140001493
mov ecx, 1
call sub.msvcrt.dll_exit
mov rax, qword [rbp + 0x800]
add rsp, 0x860
pop rsi
pop rdi
pop rbp
ret