joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a080
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x140
mov rax, qword [0x1400ba060]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov r11, rcx
mov qword [rsp], rcx
xor r9b, r9b
lea r10, [rsp + 0x30]
mov ebx, 0x10
nop word [rax + rax]
movzx eax, r9b
lea r10, [r10 + 4]
movzx r8d, byte [rax + r11]
lea rdx, [rax + r11]
shl r8d, 8
movzx eax, r9b
add r9b, 4
movzx ecx, byte [rax + r11 + 1]
movzx eax, byte [rdx + 2]
or r8d, ecx
shl r8d, 8
or r8d, eax
movzx eax, byte [rdx + 3]
shl r8d, 8
or r8d, eax
mov dword [r10 - 4], r8d
sub rbx, 1
jne 0x14000a0d0
mov r10b, 0x10
lea r9, [rsp + 0x30]
nop
mov ecx, dword [r9 + 4]
lea r9, [r9 + 4]
mov r8d, ecx
movzx eax, r10b
rol r8d, 0xe
inc r10b
mov edx, dword [rsp + rax*4 + 0x28]
mov eax, ecx
shr ecx, 3
ror eax, 7
xor r8d, eax
mov eax, edx
xor r8d, ecx
rol eax, 0xd
mov ecx, edx
shr edx, 0xa
rol ecx, 0xf
xor ecx, eax
xor ecx, edx
add r8d, ecx
add r8d, dword [r9 + 0x20]
add r8d, dword [r9 - 4]
mov dword [r9 + 0x3c], r8d
cmp r10b, 0x40
jb 0x14000a120
movups xmm0, xmmword [r11 + 0x50]
lea rax, [r11 + 0x50]
xor esi, esi
movups xmm1, xmmword [rax + 0x10]
mov qword [rsp + 8], rax
movups xmmword [rsp + 0x10], xmm0
mov r15d, dword [rsp + 0x18]
lea r13d, [rsi + 0x40]
mov r12d, dword [rsp + 0x14]
mov ebx, dword [rsp + 0x10]
mov r11d, dword [rsp + 0x1c]
movups xmmword [rsp + 0x20], xmm1
mov ebp, dword [rsp + 0x28]
mov r14d, dword [rsp + 0x24]
mov edi, dword [rsp + 0x20]
mov eax, dword [rsp + 0x2c]
nop dword [rax]
nop dword [rax + rax]
mov ecx, edi
lea rsi, [rsi + 4]
rol ecx, 7
mov r10d, edi
ror r10d, 0xb
mov edx, edi
xor r10d, ecx
not edx
and edx, ebp
mov ecx, edi
ror ecx, 6
mov r9d, r12d
xor r10d, ecx
mov r8d, r15d
mov ecx, r14d
and ecx, edi
xor edx, ecx
lea rcx, [0x1400a8030]
add r10d, edx
mov edx, ebx
add r10d, dword [rsi + rcx - 4]
mov ecx, ebx
add r10d, dword [rsp + rsi + 0x2c]
rol ecx, 0xa
add r10d, eax
ror edx, 0xd
mov eax, ebp
xor edx, ecx
mov ebp, r14d
mov ecx, ebx
mov r14d, edi
ror ecx, 2
lea edi, [r11 + r10]
xor edx, ecx
mov r11d, r15d
mov r15d, r12d
and r9d, r11d
mov r12d, ebx
mov ecx, r15d
or ecx, r11d
and ebx, ecx
lea ecx, [r10 + rdx]
or ebx, r9d
add ebx, ecx
sub r13, 1
jne 0x14000a1c0
lea r8, [rsp + 0x10]
mov dword [rsp + 0x2c], eax
sub r8, qword [rsp]
lea edx, [r13 + 8]
mov rax, qword [rsp + 8]
mov dword [rsp + 0x10], ebx
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x24], r14d
mov dword [rsp + 0x18], r15d
mov dword [rsp + 0x14], r12d
mov dword [rsp + 0x1c], r11d
mov ecx, dword [r8 + rax - 0x50]
add dword [rax], ecx
lea rax, [rax + 4]
sub rdx, 1
jne 0x14000a281
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140062280
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14002ed80
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x1400ba060]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rdx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x40], 0x238
xor edx, edx
lea ecx, [rbp + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
mov dword [rsp + 0x20], 1
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x14002ee58
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x14002ee58
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14002ee13
mov rdx, qword [rdi]
lea rcx, [rsp + 0x6c]
call fcn.140075874
test eax, eax
jne 0x14002ee45
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x14002ee38
mov eax, dword [rsp + 0x48]
mov dword [rdx], eax
add qword [rbx + 8], 4
jmp 0x14002ee45
lea r8, [rsp + 0x48]
mov rcx, rbx
call fcn.140035b60
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x14002ee06
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x14002ee9d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14002ee98
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002eed2
mov rcx, r8
call fcn.1400623ac
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 7
mov word [rdi], bp
mov rax, rbx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140062280
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
call fcn.14006e6a8
int3
Function at 0x14002fc30
Capabilities:
Get geographical location

Disassembly:
push rbx
sub rsp, 0x2e0
mov rax, qword [0x1400ba060]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0xd0]
call fcn.140064de0
mov r9d, 0x200
lea r8, [rsp + 0xd0]
mov edx, 0x5c
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14002fcb6
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], 0xf
mov byte [rbx], al
xor r8d, r8d
lea rdx, [0x1400a7218]
mov rcx, rbx
call fcn.140003810
jmp 0x14002fd7a
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], ax
lea rax, [rsp + 0xd0]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x14002fce0
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x28]
call fcn.140001db0
nop
lea rcx, [rsp + 0x50]
call fcn.140031690
nop
lea r8, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae r8, qword [rsp + 0x28]
mov rax, qword [rsp + 0x38]
lea r9, [r8 + rax*2]
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140033880
nop
lea rcx, [rsp + 0x50]
call fcn.1400315a0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14002fd7a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002fd75
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002fd96
call fcn.1400623ac
mov rax, rbx
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140062280
add rsp, 0x2e0
pop rbx
ret
call fcn.14006e6a8
int3

Function at 0x1400310d0
Capabilities:
Get session information
Get session user name

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
mov rbx, rcx
xor eax, eax
mov dword [rsp + 0x30], eax
mov qword [rcx], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 7
mov word [rcx], ax
xor r8d, r8d
lea rdx, [0x1400a7230]
call fcn.140001db0
mov dword [rsp + 0x30], 1
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x14003116f
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x60]
mov r8d, 5
mov edx, eax
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x14003116f
mov rdx, qword [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140031150
mov rcx, rbx
call fcn.140001db0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
nop
mov rax, rbx
add rsp, 0x40
pop rbx
ret
Function at 0x140075b28
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140075b5f
call fcn.14007018c
mov dword [rax], 0x16
call fcn.14006e688
xor eax, eax
jmp 0x140075bed
mov rdx, r9
mov rcx, r8
call fcn.140075ac4
mov rbx, rax
test rax, rax
je 0x140075bea
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400759f0]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140075bd7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140070100
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140075bbe
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140075bcd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14007fc4c
jmp 0x140075bea
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140075be7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140083148
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14008315e
mov al, 1
jmp 0x1400831be
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14008316f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400831bc
mov ecx, dword [rcx + 0x18]
nop
call fcn.14008a578
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400831bc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400831bc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400831bc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400831be
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140084a40
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.1400629c0
sub rsp, rax
mov rax, qword [0x1400ba060]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140081e78
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140084a8f
mov rax, rbp
jmp 0x140084b97
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 + 0xbdfc0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14008598c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xbdfc0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140084b93
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 0x140084b93
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14008598c
test rax, rax
js 0x140084b93
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140084b93
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140084b85
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140084b85
cmp byte [rcx], 0xd
jne 0x140084b6b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140084b7a
cmp byte [rcx + 1], 0xa
jne 0x140084b7a
inc rcx
jmp 0x140084b7a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xba470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140084b4d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140084b97
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140062280
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 0x140084d2c
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, [0x1400bdfc0]
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 0x140084d83
cmp word [rdx], r13w
jne 0x140084d83
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140084d88
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140084ead
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140084ece
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140084dc1
mov rdx, r9
mov word [rbx], cx
jmp 0x140084de8
cmp r9, r8
jae 0x140084df8
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 0x140084da2
jmp 0x140084ead
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 0x140084ea2
cmp dword [rsp + 0x80], esi
je 0x140084ea2
lea r8, [0x1400bdfc0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140084e7a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140084e4a
mov word [rbx], r13w
jmp 0x140084eaa
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 0x140084e57
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140084eaa
cmp word [rsp + 0x70], r13w
jne 0x140084e87
cmp rbx, r14
je 0x140084e44
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140085994
cmp word [rsp + 0x70], r13w
je 0x140084ead
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, [0x1400bdfc0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140084ea7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140084ead
Function at 0x14008993c
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 0x1400899c3
mov rsi, rbx
cmp word [rax], bp
je 0x140089982
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14008996c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140089968
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140080cf4
mov rdi, rax
test rax, rax
je 0x1400899b0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140064710
mov rbp, rdi
xor ecx, ecx
call fcn.14007fc4c
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 0x14008cacc
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.14007f79c
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 0x14008cb6d
cmp ebx, dword [rsp + 0x30]
je 0x14008cb66
test esi, esi
je 0x14008cb66
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14008cb41
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14008cb4e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14008cb2b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14008cb52
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14008cb6f
mov eax, 1
jmp 0x14008cb6f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140091200
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.140085994
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140085994
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140091350
cmp rax, 0xffffffffffffffff
je 0x140091350
xor edi, edi
test rbp, rbp
jle 0x1400912fb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14007fbd4
mov rbx, rax
test rax, rax
jne 0x140091288
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400912f1
mov edx, 0x8000
mov ecx, r14d
call fcn.14007d830
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.140083ea0
cmp eax, 0xffffffff
je 0x1400912d1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140091298
mov edx, r15d
mov ecx, r14d
call fcn.14007d830
jmp 0x1400912f1
cmp byte [rsi + 0x38], dil
je 0x1400912e8
cmp dword [rsi + 0x34], 5
jne 0x1400912e8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400912f1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14007fc4c
jmp 0x140091364
jns 0x140091364
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140085994
cmp rax, 0xffffffffffffffff
jne 0x14009131c
cmp byte [rsi + 0x30], dil
je 0x140091364
mov edi, dword [rsi + 0x2c]
jmp 0x140091364
mov ecx, r14d
call fcn.14008a578
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140091364
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 0x140091364
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14009135d
mov eax, dword [rsi + 0x2c]
jmp 0x140091362
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140085994
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 0x401ea0
Capabilities:
Write file on windows

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

Function at 0x401f10
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00408614]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x4020b8
mov rax, qword [0x00408618]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x401f5c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x401fe7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x401f40
mov rcx, r12
call fcn.00402c70
mov rbp, rax
test rax, rax
je 0x4020f2
mov rax, qword [0x00408618]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.00402da0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00408618]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402101
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x401fe0
sub eax, 4
and eax, 0xfffffffb
jne 0x402070
add dword [0x00408614], 1
cmp ebx, 8
jae 0x402018
test bl, 4
jne 0x4020c0
test ebx, ebx
je 0x402009
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x4020e0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x402009
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x40204a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x00408618]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401fe0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00401ea0
nop dword [rax]
xor edi, edi
jmp 0x401f67
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x402009
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x402009
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.00401ea0
mov rax, qword [0x00408618]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.00401ea0
nop
nop dword [rax]
Function at 0x4028e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004088e0]
test rbx, rbx
je 0x402934
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x40292b
test r12, r12
je 0x40292b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402910
lea rcx, [0x00408900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402c70
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00405a90]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x402ce9
mov rcx, r10
call fcn.00402b40
test eax, eax
je 0x402ce9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x402ce6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x402cdd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x402ce9
add r8, 0x28
cmp r8, r9
jne 0x402cc8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x14000302c
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbp
push rdi
lea rbp, [rax - 0x418]
sub rsp, 0x508
mov rax, qword [0x14000e3b8]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
xor edi, edi
lea r9, [rbp + 0x428]
mov r8, rcx
mov word [rbp - 0x20], di
lea rcx, [rbp - 0x20]
mov word [rbp + 0x3ee], di
mov edx, 0x208
call fcn.1400025e8
test eax, eax
js 0x140003147
xor edx, edx
lea r8d, [rdi + 0x68]
lea rcx, [rsp + 0x70]
call sub.msvcrt.dll_memset
lea eax, [rdi + 6]
mov dword [rsp + 0x70], 0x68
mov word [rbp - 0x50], ax
lea rdx, [rbp - 0x20]
lea rax, [rsp + 0x58]
mov dword [rbp - 0x54], 0x81
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 8
mov dword [rsp + 0x20], edi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW]
test eax, eax
je 0x140003131
mov rcx, qword [rsp + 0x58]
or edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], edi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, dword [rsp + 0x50]
jmp 0x140003137
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, ecx
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.1400065b0
add rsp, 0x508
pop rdi
pop rbp
ret

Function at 0x140003b04
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x7f0ea553
add rsp, 0x28
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]