joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400035e0
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
cmp byte [rcx + 0x17], 0
js 0x14000363d
mov rcx, rdi
je 0x14000360c
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [rdi + 0x17], 0
js 0x140003659
mov word [rdi], 0
mov byte [rdi + 0x17], 0
cmp rdi, rsi
je 0x140003630
cmp byte [rdi + 0x17], 0
movzx r8d, byte [rsi + 0x17]
js 0x140003679
test r8b, r8b
jns 0x140003649
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
mov rcx, rdi
call fcn.14000b960
cmp byte [rsi + 0x17], 0
js 0x14000366b
add rsp, 0x28
pop rdi
pop rsi
ret
cmp qword [rdi + 8], 0
je 0x14000360c
mov rcx, qword [rdi]
jmp 0x1400035f7
mov rax, qword [rsi + 0x10]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsi]
movups xmmword [rdi], xmm0
jmp 0x140003630
mov rax, qword [rdi]
mov word [rax], 0
mov qword [rdi + 8], 0
jmp 0x14000360c
mov rcx, qword [rsi]
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14000d0a0
test r8b, r8b
js 0x140003687
and r8d, 0x7f
mov rdx, rsi
jmp 0x14000368e
mov r8, qword [rsi + 8]
mov rdx, qword [rsi]
mov rcx, rdi
call fcn.14000b870
jmp 0x140003630

Function at 0x1400050f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r8
mov rsi, rdx
mov r15b, byte [rbp + 0x68]
test byte [r9 + 8], 1
jne 0x14000515b
mov dl, byte [rbp + 0x60]
movzx r8d, r15b
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
mov dword [rsp + 0x28], r8d
mov byte [rsp + 0x20], dl
mov rdx, rsi
mov r8, rdi
call qword [0x140071008]
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov qword [rsi], rdi
test al, al
jns 0x14000513d
call fcn.14000d0a0
jmp 0x14000513d
lea rbx, [rbp - 0x20]
mov rcx, r9
mov rdx, rbx
call fcn.14000bf20
lea rdx, [0x14006bd50]
mov rcx, rbx
call fcn.14000ca60
mov r14, rax
mov rcx, qword [rbp - 0x20]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
test eax, eax
jne 0x14000519b
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140071008]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [0x14005c6b0]
movaps xmmword [rbx], xmm0
mov rax, qword [r14]
xor r15b, 1
movzx ecx, r15b
mov rax, qword [rax + rcx*8 + 0x28]
mov rcx, r14
mov rdx, rbx
call qword [0x140071008]
movzx eax, byte [rbx + 0x17]
test al, al
js 0x1400051de
mov edx, eax
and edx, 0x7f
jmp 0x1400051e2
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
test rdx, rdx
je 0x14000514d
test al, al
cmovns rcx, rbx
mov r14, rcx
jmp 0x14000523e
movzx edx, al
mov rax, qword [rdi]
mov rax, qword [rax + 0x60]
mov rcx, rdi
call qword [0x140071008]
cmp eax, 0xffffffff
jne 0x140005214
xor edi, edi
inc r14
movzx eax, byte [rbp - 9]
mov edx, eax
and edx, 0x7f
test al, al
mov rcx, qword [rbp - 0x20]
mov r8, rbx
cmovs rdx, qword [rbp - 0x18]
cmovs r8, rcx
add rdx, r8
cmp r14, rdx
je 0x14000514d
test rdi, rdi
je 0x140005212
mov al, byte [r14]
mov rcx, qword [rdi + 0x30]
cmp rcx, qword [rdi + 0x38]
je 0x1400051fa
lea rdx, [rcx + 1]
mov qword [rdi + 0x30], rdx
mov byte [rcx], al
jmp 0x140005214
Function at 0x14000d688
Capabilities:
Parse pe header

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

Function at 0x14000e228
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x14000e2a0
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x14000e2a0
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x14000e2a0
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14000e294
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14000e2b2
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14000e282
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14000e2a2

Function at 0x140024fd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140024ff8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140024ff8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x14002f4f4
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.140028c08
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 0x14002f595
cmp ebx, dword [rsp + 0x30]
je 0x14002f58e
test esi, esi
je 0x14002f58e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002f569
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002f576
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002f553
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002f57a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002f597
mov eax, 1
jmp 0x14002f597
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002ff9c
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 0x140030023
mov rsi, rbx
cmp word [rax], bp
je 0x14002ffe2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002ffcc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14002ffc8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002b7f4
mov rdi, rax
test rax, rax
je 0x140030010
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000fd20
mov rbp, rdi
xor ecx, ecx
call fcn.1400282cc
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 0x140033d74
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140033d8a
mov al, 1
jmp 0x140033dea
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140033d9b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140033de8
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001f3e8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140033de8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140033de8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140033de8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140033dea
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14004c150
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14004c15d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14004c16d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14004c155
lea eax, [rcx + 1]
jmp 0x14004c17b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14004c18e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14004c174
sub eax, 3
jb 0x14004c1ae
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14004c1fd
sar eax, 1
movsxd rbp, eax
jb 0x14004c1e4
jmp 0x14004c1bc
add ebx, ebx
jne 0x14004c1ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14004c1e4
inc ecx
add ebx, ebx
jne 0x14004c1ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14004c1e4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14004c1dd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14004c1cc
add ecx, 2
jmp 0x14004c1e9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14004c112
jmp 0x14004c15d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x22e00
mov dl, reloc.COMCTL32.dll_InitCommonControls
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14004c249
cmp rsi, rcx
jae 0x14004c251
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14004c230
cmp al, 0x8f
ja 0x14004c230
cmp byte [rsi - 2], 0xf
je 0x14004c236
sub al, 0xe8
cmp al, 1
ja 0x14004c21a
cmp rsi, rcx
jae 0x14004c251
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14004c220
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14004c251
lodsb al, byte [rsi]
jmp 0x14004c230
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x4a000]
mov eax, dword [rdi]
or eax, eax
je 0x14004c2ba
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x63f44]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14004c25e
jns 0x14004c293
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14004c29d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14004c2b4
mov qword [rbx], rax
add rbx, 8
jmp 0x14004c27e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x18f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14004c312
sub rsp, 0xffffffffffffff80
jmp 0x140023590
Function at 0x1400088ac
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000869c
Function at 0x14000d208
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 0x14000d238
xor eax, eax
jmp 0x14000d2fb
mov rbp, rbx
cmp word [rax], si
je 0x14000d25d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000d244
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000d240
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.14000d158
movsxd r14, eax
test eax, eax
jne 0x14000d29b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000d231
mov rcx, r14
call fcn.1400096ec
mov rdi, rax
test rax, rax
jne 0x14000d2b4
xor ecx, ecx
call fcn.1400096b0
jmp 0x14000d290
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.14000d158
test eax, eax
jne 0x14000d2e5
mov rcx, rdi
call fcn.1400096b0
jmp 0x14000d2ef
xor ecx, ecx
call fcn.1400096b0
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 0x140011dac
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000c25c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140011e36
cmp byte [rbp - 0x21], r15b
je 0x140011e31
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140011e6c
call fcn.14000e608
test eax, eax
jne 0x140011e58
cmp byte [rbp - 0x21], r15b
je 0x140011e50
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140011e6c
cmp byte [rbp - 0x21], r15b
je 0x140011e69
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000b838
test eax, eax
jne 0x140011f0c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000c25c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140011eab
cmp byte [rbp - 0x21], r15b
je 0x140011ee0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140011ee0
call fcn.14000e608
test eax, eax
jne 0x140011ecc
cmp byte [rbp - 0x21], r15b
je 0x140011ec5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140011ee0
cmp byte [rbp - 0x21], r15b
je 0x140011edd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000b838
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140011f0c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140011f0f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140011f1d
mov rcx, rdi
call fcn.1400096b0
cmp byte [rbp + 0x3f], r15b
je 0x140011f2c
mov rcx, qword [rbp + 0x27]
call fcn.1400096b0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140003a94
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1400038fc
Function at 0x1404f2066
Capabilities:
Encode data using xor

Disassembly:
push qword [rsp + 0x60]
popfq
lea rsp, [rsp + 0x70]
call fcn.140a32a9c
invalid
Function at 0x1400290fc
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.14001c6f4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c6f4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002924c
cmp rax, 0xffffffffffffffff
je 0x14002924c
xor edi, edi
test rbp, rbp
jle 0x1400291f7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f008
mov rbx, rax
test rax, rax
jne 0x140029184
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400291ed
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a028
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.14001d3d0
cmp eax, 0xffffffff
je 0x1400291cd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029194
mov edx, r15d
mov ecx, r14d
call fcn.14001a028
jmp 0x1400291ed
cmp byte [rsi + 0x38], dil
je 0x1400291e4
cmp dword [rsi + 0x34], 5
jne 0x1400291e4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400291ed
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001adbc
jmp 0x140029260
jns 0x140029260
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c6f4
cmp rax, 0xffffffffffffffff
jne 0x140029218
cmp byte [rsi + 0x30], dil
je 0x140029260
mov edi, dword [rsi + 0x2c]
jmp 0x140029260
mov ecx, r14d
call fcn.1400184e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029260
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 0x140029260
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029259
mov eax, dword [rsi + 0x2c]
jmp 0x14002925e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c6f4
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 0x140001eca
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
sub rsp, 0x20
call sub.KERNEL32.dll_GetCommandLineA
add rsp, 0x20
mov rsi, rax
lea rdi, [rbp - 0x18]
and dword [rdi], 0
sub rsp, 0x20
mov rcx, rax
mov rdx, rdi
call fcn.140001fd8
add rsp, 0x20
mov eax, dword [rdi]
inc eax
lea rax, [rax*8 + 0xf]
and rax, 0xfffffffffffffff0
call section..text
sub rsp, rax
mov rbx, rsp
mov rax, qword [rdi + 0x10]
add rax, 0xf
and rax, 0xfffffffffffffff0
call section..text
sub rsp, rax
mov rdi, rsp
mov eax, 0xe6180df4
xor eax, dword [0x140003a68]
inc eax
cdqe
add rax, qword [0x140003a58]
jmp rax
Function at 0x401a70
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00407624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x401bf8
mov rax, qword [0x00407628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401abc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401b45
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401aa0
mov rcx, rbx
call fcn.00402710
test rax, rax
mov r12, rax
je 0x401c2d
mov rax, qword [0x00407628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00402840
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00407628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401c10
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401b3e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401ba0
add dword [0x00407624], 1
cmp edi, 8
jae 0x401b73
test dil, 4
jne 0x401be4
test edi, edi
je 0x401b68
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x401bff
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x401b68
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x401b8c
jmp 0x401b68
add rsi, qword [0x00407628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401b3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00402c10
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401b68
xor esi, esi
jmp 0x401ac7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401b68
mov rax, qword [0x00407628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00402c10
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00402c10
nop
nop dword [rax]

Function at 0x402380
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00407900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004078e0]
test rbx, rbx
je 0x4023d4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4023cb
test rsi, rsi
je 0x4023cb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4023b0
lea rcx, [0x00407900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402710
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00404360]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40277d
mov rcx, r8
call fcn.004025f0
test eax, eax
je 0x40277d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40277d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402774
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40277f
add rax, 0x28
cmp rax, r9
jne 0x402760
xor eax, eax
add rsp, 0x28
ret

Function at 0x402bf0
Capabilities:
Execute command

Disassembly:
sub rsp, 0x28
call fcn.00401600
lea rcx, str.cmd.exe__c_mkdir_a
call sub.msvcrt.dll_system
xor eax, eax
add rsp, 0x28
ret

Function at 0x402c10
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.00402ac0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.00402ac0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530