joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a6f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov eax, dword [rsp + 0x68]
mov qword [rsp + 0x48], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x14000a7a5
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x14000a77b
mov eax, dword [rsp + 0x70]
cmp dword [rsp + 0x30], eax
jne 0x14000a77b
mov dword [rsp + 0x34], 1
jmp 0x14000a783
mov dword [rsp + 0x34], 0
cmp dword [rsp + 0x34], 0
jne 0x14000a794
mov dword [rsp + 0x38], 0
jmp 0x14000a79c
mov dword [rsp + 0x38], 1
movzx eax, byte [rsp + 0x38]
jmp 0x14000a7a7
xor al, al
add rsp, 0x58
ret
Function at 0x14000a7c0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp qword [rsp + 0x50], 0
je 0x14000a7fb
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0xb1]
test eax, eax
jne 0x14000a7fb
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0xb0]
test eax, eax
je 0x14000a816
mov r8d, 0x79d
lea rdx, [0x14007fce0]
lea rcx, str.thread___thread__valid___thread__stop_requested
call fcn.140047fbc
xor eax, eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 8], 0
jne 0x14000a856
mov r8d, 0x7a0
lea rdx, [0x14007fdb0]
lea rcx, str.__void__0____thread__incoming_event
call fcn.140047fbc
xor eax, eax
mov rax, qword [rsp + 0x50]
add rax, 0x10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rax, qword [rsp + 0x50]
add rax, 0x38
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rax, qword [rsp + 0x50]
add rax, 0x60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rax, qword [rsp + 0x50]
add rax, 0x88
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rax, qword [rsp + 0x50]
add rax, 0x60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rsp + 0x38], 0x80000
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
je 0x14000a900
mov dword [rsp + 0x30], 1
jmp 0x14000a908
mov dword [rsp + 0x30], 0
cmp dword [rsp + 0x30], 0
jne 0x14000a919
mov dword [rsp + 0x34], 0
jmp 0x14000a921
mov dword [rsp + 0x34], 1
mov rax, qword [rsp + 0x50]
movzx ecx, byte [rsp + 0x34]
mov byte [rax + 0xb1], cl
mov rax, qword [rsp + 0x50]
add rax, 0x60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0xb1]
add rsp, 0x48
ret
Function at 0x14001d600
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x28], 0
jmp 0x14001d62b
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x28], eax
jge 0x14001d7f0
mov dword [rsp + 0x20], 0
jmp 0x14001d650
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x88]
cmp dword [rsp + 0x20], eax
jge 0x14001d7eb
movsxd rax, dword [rsp + 0x28]
imul rax, rax, 0x100
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x20]
imul rcx, rcx, 0x10
cmp qword [rax + rcx], 0
je 0x14001d692
mov dword [rsp + 0x2c], 1
jmp 0x14001d69a
mov dword [rsp + 0x2c], 0
cmp dword [rsp + 0x2c], 0
jne 0x14001d6ab
mov dword [rsp + 0x30], 0
jmp 0x14001d6b3
mov dword [rsp + 0x30], 1
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x24], al
movsxd rax, dword [rsp + 0x28]
imul rax, rax, 0x100
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x20]
imul rcx, rcx, 0x10
cmp qword [rax + rcx + 8], 0
jbe 0x14001d6ee
mov dword [rsp + 0x34], 1
jmp 0x14001d6f6
mov dword [rsp + 0x34], 0
cmp dword [rsp + 0x34], 0
jne 0x14001d707
mov dword [rsp + 0x38], 0
jmp 0x14001d70f
mov dword [rsp + 0x38], 1
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x25], al
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x14001d72a
movzx eax, byte [rsp + 0x25]
test eax, eax
jne 0x14001d74c
mov dword [0x1400bae2c], 0x6f
mov r9d, 0x3da4
xor r8d, r8d
mov edx, 1
mov ecx, 0x6f
call fcn.140013ad0
mov edx, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x70]
call fcn.140014590
mov dword [rsp + 0x40], eax
mov edx, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x78]
call fcn.140014590
mov dword [rsp + 0x3c], eax
mov r9d, 1
mov r8d, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x68]
call fcn.1400145e0
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
imul eax, dword [rsp + 0x90]
mov dword [rsp + 0x48], eax
movsxd rax, dword [rsp + 0x28]
imul rax, rax, 0x100
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x20]
imul rcx, rcx, 0x10
mov eax, dword [rax + rcx + 8]
cmp dword [rsp + 0x48], eax
je 0x14001d7e6
mov dword [0x1400bae2c], 0x70
mov r9d, 0x3da9
xor r8d, r8d
mov edx, 1
mov ecx, 0x70
call fcn.140013ad0
jmp 0x14001d646
jmp 0x14001d621
add rsp, 0x58
ret
Function at 0x140040e0c
Capabilities:
Parse pe header

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

Function at 0x140049474
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.140040390
sub rsp, rax
mov rax, qword [0x140096780]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140052338
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400494c3
mov rax, rbp
jmp 0x1400495cb
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 + 0x20c6c00]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140053734
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x20c6c00]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400495c7
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 0x1400495c7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140053734
test rax, rax
js 0x1400495c7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400495c7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400495b9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400495b9
cmp byte [rcx], 0xd
jne 0x14004959f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400495ae
cmp byte [rcx + 1], 0xa
jne 0x1400495ae
inc rcx
jmp 0x1400495ae
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x96b00]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140049581
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400495cb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400403f0
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 0x14004a488
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14004a284
Function at 0x140052ad4
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, [0x1420c6c00]
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 0x140052b2b
cmp word [rdx], r13w
jne 0x140052b2b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140052b30
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140052c55
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140052c76
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140052b69
mov rdx, r9
mov word [rbx], cx
jmp 0x140052b90
cmp r9, r8
jae 0x140052ba0
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 0x140052b4a
jmp 0x140052c55
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 0x140052c4a
cmp dword [rsp + 0x80], esi
je 0x140052c4a
lea r8, [0x1420c6c00]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140052c22
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140052bf2
mov word [rbx], r13w
jmp 0x140052c52
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 0x140052bff
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140052c52
cmp word [rsp + 0x70], r13w
jne 0x140052c2f
cmp rbx, r14
je 0x140052bec
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14005373c
cmp word [rsp + 0x70], r13w
je 0x140052c55
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, [0x1420c6c00]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140052c4f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140052c55
Function at 0x140054fdc
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 0x14005500c
xor eax, eax
jmp 0x1400550cf
mov rbp, rbx
cmp word [rax], si
je 0x140055031
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140055018
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140055014
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.140054efc
movsxd r14, eax
test eax, eax
jne 0x14005506f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140055005
mov rcx, r14
call fcn.14004dfc0
mov rdi, rax
test rax, rax
jne 0x140055088
xor ecx, ecx
call fcn.14004df84
jmp 0x140055064
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.140054efc
test eax, eax
jne 0x1400550b9
mov rcx, rdi
call fcn.14004df84
jmp 0x1400550c3
xor ecx, ecx
call fcn.14004df84
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 0x1400599ac
Capabilities:
Get file size

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

Function at 0x14005c654
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.14005373c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14005373c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14005c7a4
cmp rax, 0xffffffffffffffff
je 0x14005c7a4
xor edi, edi
test rbp, rbp
jle 0x14005c74f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400512f0
mov rbx, rax
test rax, rax
jne 0x14005c6dc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14005c745
mov edx, 0x8000
mov ecx, r14d
call fcn.14004a504
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.140058724
cmp eax, 0xffffffff
je 0x14005c725
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14005c6ec
mov edx, r15d
mov ecx, r14d
call fcn.14004a504
jmp 0x14005c745
cmp byte [rsi + 0x38], dil
je 0x14005c73c
cmp dword [rsi + 0x34], 5
jne 0x14005c73c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14005c745
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14004df84
jmp 0x14005c7b8
jns 0x14005c7b8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14005373c
cmp rax, 0xffffffffffffffff
jne 0x14005c770
cmp byte [rsi + 0x30], dil
je 0x14005c7b8
mov edi, dword [rsi + 0x2c]
jmp 0x14005c7b8
mov ecx, r14d
call fcn.140055760
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14005c7b8
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 0x14005c7b8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14005c7b1
mov eax, dword [rsi + 0x2c]
jmp 0x14005c7b6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14005373c
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 0x14005d740
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14005d768
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14005d768
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x141256058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1412561df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141256089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14125606f
add dl, dl
jne 0x141256096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1412560f6
xor eax, eax
add dl, dl
jne 0x1412560a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1412561ad
add dl, dl
jne 0x1412560b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412560c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412560d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412560dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1412560ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14125607e
mov eax, 1
add dl, dl
jne 0x141256106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141256113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1412560fb
sub eax, ebx
mov ebx, 1
jne 0x14125614c
mov ecx, 1
add dl, dl
jne 0x14125612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14125613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141256123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14125607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141256168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141256175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14125615d
cmp eax, 0x7d00
jae 0x14125619b
cmp eax, 0x500
jb 0x141256196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14125607e
cmp eax, 0x7f
ja 0x14125619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14125607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1412561d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14125607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140028f90]
mov dword [rax], 1
mov rax, qword [0x140028fa0]
mov dword [rax], 1
mov rax, qword [0x140028fb0]
mov dword [rax], 1
mov rax, qword [0x140028f20]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14001b750
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x2020
call fcn.14001cff0
sub rsp, rax
mov rsi, rcx
mov eax, dword [0x1400310b0]
test eax, eax
je 0x14001b773
test eax, eax
jg 0x14001b7bb
jmp 0x14001b7f2
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
call fcn.140014570
test al, al
je 0x14001b86a
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll__wcsdup
movsxd rcx, dword [0x1400310b0]
lea rdx, [0x140036120]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x1400310b0], eax
test eax, eax
jle 0x14001b7f2
lea rdi, [0x140036120]
xor ebx, ebx
nop word cs:[rax + rax]
mov rdx, qword [rdi]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x14001b85d
inc rbx
movsxd rax, dword [0x1400310b0]
add rdi, 8
cmp rbx, rax
jl 0x14001b7d0
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14001b809
mov al, 1
cmp word [rsi + 2], 0x3a
je 0x14001b85f
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, eax
mov al, 1
test ecx, ecx
jne 0x14001b82a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
test al, al
je 0x14001b85f
cmp dword [0x1400310b0], 0x3ff
jg 0x14001b85f
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
movsxd rcx, dword [0x1400310b0]
lea rdx, [0x140036120]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x1400310b0], eax
mov al, 1
add rsp, 0x2020
pop rbx
pop rdi
pop rsi
ret
lea rcx, str.HOME
call fcn.140015ad0
int3

Function at 0x14001bcd0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140022c30
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140022c30
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14001c9a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400401e8]
test eax, eax
je 0x14001ca3a
lea rax, [0x1400401c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400401f0]
mov qword [rbp - 8], rax
jmp 0x14001ca1e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14001ca12
cmp qword [rbp - 0x10], 0
je 0x14001ca12
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14001c9d8
lea rax, [0x1400401c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001ca3b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14001cb40
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14001cb68
mov eax, 0
jmp 0x14001cbb6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14001cb91
mov eax, 0
jmp 0x14001cbb6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14001cbb1
mov eax, 0
jmp 0x14001cbb6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14001cbbc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001cc3a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14001cc31
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14001cc31
mov rax, qword [rbp - 8]
jmp 0x14001cc4f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14001cc04
mov eax, 0
add rsp, 0x20
pop rbp
ret