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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x180361560]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1800db3fe
cmp word [rdx], r12w
jne 0x1800db3fe
or byte [rax + r8*8 + 0x38], cl
jmp 0x1800db404
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1800db55f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1800db53a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1800db43d
mov rcx, r9
jmp 0x1800db460
cmp r9, rdx
jae 0x1800db477
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1800db421
jmp 0x1800db55f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800db534
cmp dword [rsp + 0x80], edi
je 0x1800db534
mov rdx, r14
lea r11, [0x180361560]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1800db50d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1800db4e0
mov word [rbx], r12w
jmp 0x1800db55b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1800db4e9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1800db55b
cmp word [rsp + 0x70], r12w
jne 0x1800db51a
cmp rbx, rsi
je 0x1800db4da
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1800dc02c
cmp word [rsp + 0x70], r12w
je 0x1800db55f
mov word [rbx], r13w
jmp 0x1800db55b
lea r11, [0x180361560]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1800db557
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1800db55f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800e03fc
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 0x1800e042c
xor eax, eax
jmp 0x1800e04ef
mov rbp, rbx
cmp word [rax], si
je 0x1800e0451
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800e0438
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800e0434
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.1800ded80
movsxd r14, eax
test eax, eax
jne 0x1800e048f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800e0425
mov rcx, r14
call fcn.1800d78d0
mov rdi, rax
test rax, rax
jne 0x1800e04a8
xor ecx, ecx
call fcn.1800d6c50
jmp 0x1800e0484
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.1800ded80
test eax, eax
jne 0x1800e04d9
mov rcx, rdi
call fcn.1800d6c50
jmp 0x1800e04e3
xor ecx, ecx
call fcn.1800d6c50
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 0x1800e050c
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 0x1800e0593
mov rsi, rbx
cmp word [rax], bp
je 0x1800e0552
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1800e053c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1800e0538
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1800d78d0
mov rdi, rax
test rax, rax
je 0x1800e0580
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1800bc4c0
mov rbp, rdi
xor ecx, ecx
call fcn.1800d6c50
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 0x1800e7ecc
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.1800c1b48
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1800e7f56
cmp byte [rbp - 0x21], r15b
je 0x1800e7f51
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1800e7f8c
call fcn.1800d9404
test eax, eax
jne 0x1800e7f78
cmp byte [rbp - 0x21], r15b
je 0x1800e7f70
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1800e7f8c
cmp byte [rbp - 0x21], r15b
je 0x1800e7f89
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.1800c99e4
test eax, eax
jne 0x1800e802c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1800c1b48
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1800e7fcb
cmp byte [rbp - 0x21], r15b
je 0x1800e8000
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1800e8000
call fcn.1800d9404
test eax, eax
jne 0x1800e7fec
cmp byte [rbp - 0x21], r15b
je 0x1800e7fe5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1800e8000
cmp byte [rbp - 0x21], r15b
je 0x1800e7ffd
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.1800c99e4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1800e802c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1800e802f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1800e803d
mov rcx, rdi
call fcn.1800d6c50
cmp byte [rbp + 0x3f], r15b
je 0x1800e804c
mov rcx, qword [rbp + 0x27]
call fcn.1800d6c50
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 0x1800e8eb4
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.1800dc02c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800dc02c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800e9004
cmp rax, 0xffffffffffffffff
je 0x1800e9004
xor edi, edi
test rbp, rbp
jle 0x1800e8faf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800db208
mov rbx, rax
test rax, rax
jne 0x1800e8f3c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800e8fa5
mov edx, 0x8000
mov ecx, r14d
call fcn.1800e8d3c
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.1800da948
cmp eax, 0xffffffff
je 0x1800e8f85
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800e8f4c
mov edx, r15d
mov ecx, r14d
call fcn.1800e8d3c
jmp 0x1800e8fa5
cmp byte [rsi + 0x38], dil
je 0x1800e8f9c
cmp dword [rsi + 0x34], 5
jne 0x1800e8f9c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1800e8fa5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800d6c50
jmp 0x1800e9018
jns 0x1800e9018
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800dc02c
cmp rax, 0xffffffffffffffff
jne 0x1800e8fd0
cmp byte [rsi + 0x30], dil
je 0x1800e9018
mov edi, dword [rsi + 0x2c]
jmp 0x1800e9018
mov ecx, r14d
call fcn.1800e5fa0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800e9018
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1800e9018
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800e9011
mov eax, dword [rsi + 0x2c]
jmp 0x1800e9016
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800dc02c
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 0x1800e95b0
Capabilities:
Parse pe header

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

Function at 0x140001918
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001962
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001962
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001962
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001962
cmp dword [rcx + 0x84], 0xe
jbe 0x140001962
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001964
xor al, al
add rsp, 0x28
ret
Function at 0x2fc52e730
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc52f810
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc52f132
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc551108]
test eax, eax
je 0x2fc52f1ca
lea rax, [0x2fc5510e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc551110]
mov qword [rbp - 8], rax
jmp 0x2fc52f1ae
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 0x2fc52f1a2
cmp qword [rbp - 0x10], 0
je 0x2fc52f1a2
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 0x2fc52f168
lea rax, [0x2fc5510e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc52f1cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc52f2d0
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 0x2fc52f2f8
mov eax, 0
jmp 0x2fc52f346
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 0x2fc52f321
mov eax, 0
jmp 0x2fc52f346
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 0x2fc52f341
mov eax, 0
jmp 0x2fc52f346
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc52f34c
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 0x2fc52f3ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc52f3c1
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 0x2fc52f3c1
mov rax, qword [rbp - 8]
jmp 0x2fc52f3df
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 0x2fc52f394
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140029a0c
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.14001d0d4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d0d4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029b5c
cmp rax, 0xffffffffffffffff
je 0x140029b5c
xor edi, edi
test rbp, rbp
jle 0x140029b07
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fa00
mov rbx, rax
test rax, rax
jne 0x140029a94
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029afd
mov edx, 0x8000
mov ecx, r14d
call fcn.14001aa08
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.14001ddb0
cmp eax, 0xffffffff
je 0x140029add
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029aa4
mov edx, r15d
mov ecx, r14d
call fcn.14001aa08
jmp 0x140029afd
cmp byte [rsi + 0x38], dil
je 0x140029af4
cmp dword [rsi + 0x34], 5
jne 0x140029af4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029afd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b79c
jmp 0x140029b70
jns 0x140029b70
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d0d4
cmp rax, 0xffffffffffffffff
jne 0x140029b28
cmp byte [rsi + 0x30], dil
je 0x140029b70
mov edi, dword [rsi + 0x2c]
jmp 0x140029b70
mov ecx, r14d
call fcn.140018ec4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029b70
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 0x140029b70
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029b69
mov eax, dword [rsi + 0x2c]
jmp 0x140029b6e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d0d4
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 0x14002ac60
Capabilities:
Parse pe header

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

Function at 0x1418ddf68
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1418ddf72
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1418ddf9b
pop rbp
sub rbp, 0x33
sub rbp, 0x18ddf68
sub rsp, 0x20
jmp 0x1418ddfba
mov rax, 0x18ddf68
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffa68627dd
ret 0x27dd
xor byte [rax], dl
inc rax
dec rcx
jne 0x1418ddfd9
jmp 0x1418ddff0
xchg ebp, eax
push rsp
xor al, 0x56
push rsp
loope 0x1418ddfd4
fstp st(5)
xchg ebp, eax
pop rsp
sbb al, 0xd5
invalid
Function at 0x1800119e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [rcx]
cmp eax, 0x138
jne 0x180011a70
mov rax, 0xfffffffffffffec8
movdqa xmm0, xmmword [0x180023ba0]
movdqa xmm1, xmmword [0x180023bb0]
movdqa xmm2, xmmword [0x180023bc0]
nop dword [rax]
movdqu xmm3, xmmword [rcx + rax*8 + 0x9c8]
pand xmm3, xmm0
movdqu xmm4, xmmword [rcx + rax*8 + 0x9d0]
pshufd xmm5, xmm4, 0xa0
pand xmm4, xmm1
por xmm4, xmm3
psrlq xmm4, 1
pslld xmm5, 0x1f
psrad xmm5, 0x1f
pand xmm5, xmm2
movdqu xmm3, xmmword [rcx + rax*8 + 0xea8]
pxor xmm3, xmm4
pxor xmm3, xmm5
movdqu xmmword [rcx + rax*8 + 0x1388], xmm3
add rax, 2
jne 0x180011a10
mov eax, 0x138
jmp 0x180011bbc
cmp eax, 0x270
jb 0x180011bbc
mov rax, 0xffffffffffffff64
movdqa xmm0, xmmword [0x180023ba0]
movdqa xmm1, xmmword [0x180023bb0]
movdqa xmm2, xmmword [0x180023bc0]
nop word [rax + rax]
movdqu xmm3, xmmword [rcx + rax*8 + 0xea8]
movdqu xmm4, xmmword [rcx + rax*8 + 0xeb0]
pand xmm3, xmm0
pshufd xmm5, xmm4, 0xa0
pand xmm4, xmm1
por xmm4, xmm3
psrlq xmm4, 1
pslld xmm5, 0x1f
psrad xmm5, 0x1f
pand xmm5, xmm2
movdqu xmm3, xmmword [rcx + rax*8 + 0x1388]
pxor xmm3, xmm4
pxor xmm3, xmm5
movdqu xmmword [rcx + rax*8 + 0x4e8], xmm3
add rax, 2
jne 0x180011aa0
xor eax, eax
nop dword [rax + rax]
movdqu xmm3, xmmword [rcx + rax*8 + 0xea8]
pand xmm3, xmm0
movdqu xmm4, xmmword [rcx + rax*8 + 0xeb0]
pshufd xmm5, xmm4, 0xa0
pand xmm4, xmm1
por xmm4, xmm3
psrlq xmm4, 1
pslld xmm5, 0x1f
psrad xmm5, 0x1f
pand xmm5, xmm2
movdqu xmm3, xmmword [rcx + rax*8 + 8]
pxor xmm3, xmm4
pxor xmm3, xmm5
movdqu xmmword [rcx + rax*8 + 0x4e8], xmm3
add rax, 2
cmp rax, 0x9a
jne 0x180011b00
movdqu xmm0, xmmword [rcx + 0x1378]
pand xmm0, xmmword [0x180023ba0]
movq xmm1, qword [rcx + 8]
movq xmm2, qword [rcx + 0x1380]
punpcklqdq xmm2, xmm1
pshufd xmm1, xmm2, 0xa0
pand xmm2, xmmword [0x180023bb0]
por xmm2, xmm0
psrlq xmm2, 1
pslld xmm1, 0x1f
psrad xmm1, 0x1f
pand xmm1, xmmword [0x180023bc0]
movdqu xmm0, xmmword [rcx + 0x4d8]
pxor xmm0, xmm2
pxor xmm0, xmm1
movdqu xmmword [rcx + 0x9b8], xmm0
xor eax, eax
lea edx, [rax + 1]
mov dword [rcx], edx
mov eax, eax
mov rax, qword [rcx + rax*8 + 8]
mov rdx, rax
shr rdx, 0x1d
and rdx, qword [rcx + 0x1388]
xor rdx, rax
mov rax, rdx
shl rax, 0x11
movabs rcx, 0x71d67fffeda60000
and rcx, rax
xor rcx, rdx
mov edx, ecx
and edx, 0x7ffbf77
shl rdx, 0x25
xor rdx, rcx
mov rax, rdx
shr rax, 0x2b
xor rax, rdx
ret
Function at 0x2fc4cdea0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4cef80
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4ce8a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f1108]
test eax, eax
je 0x2fc4ce93a
lea rax, [0x2fc4f10e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f1110]
mov qword [rbp - 8], rax
jmp 0x2fc4ce91e
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 0x2fc4ce912
cmp qword [rbp - 0x10], 0
je 0x2fc4ce912
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 0x2fc4ce8d8
lea rax, [0x2fc4f10e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4ce93b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cea40
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 0x2fc4cea68
mov eax, 0
jmp 0x2fc4ceab6
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 0x2fc4cea91
mov eax, 0
jmp 0x2fc4ceab6
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 0x2fc4ceab1
mov eax, 0
jmp 0x2fc4ceab6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4ceabc
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 0x2fc4ceb3a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4ceb31
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 0x2fc4ceb31
mov rax, qword [rbp - 8]
jmp 0x2fc4ceb4f
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 0x2fc4ceb04
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14001125d
Capabilities:
Terminate process

Disassembly:
jmp 0x1400139c0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret