joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007280
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
call fcn.140003364
lea rdx, [0x140023c58]
mov rcx, rbx
call fcn.14000550c
lea rdx, [0x140023c68]
mov rcx, rbx
call fcn.140005684
lea rdx, [0x14001ede8]
lea rcx, [rsp + 0x20]
call fcn.140002ce8
lea r8, [0x140023c98]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400052b8
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp fcn.140003364

Function at 0x1400072e8
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140003364
lea rdx, [0x140023c48]
mov rcx, rbx
call fcn.140005394
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140007280

Function at 0x140007314
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor edi, edi
cmp dword [0x1400236bc], edi
jle 0x1400073bf
xor ebx, ebx
mov rax, qword [0x1400236c0]
lea rcx, [rsp + 0x20]
mov rsi, qword [rbx + rax]
and qword [rsp + 0x20], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x2c], 0
mov edx, dword [rsi + 0x18]
call fcn.140001140
mov r11, qword [rsi + 0x10]
mov rcx, qword [rsp + 0x20]
movzx eax, word [r11]
add r11, 2
mov word [rcx], ax
add rcx, 2
test ax, ax
jne 0x140007364
mov eax, dword [rsi + 0x18]
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], eax
call fcn.1400072e8
mov r11, qword [0x1400236c0]
mov rcx, qword [rbx + r11]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
add edi, 1
add rbx, 8
cmp edi, dword [0x1400236bc]
jl 0x140007333
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140009ad8
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x40]
mov r9, r8
mov rbx, rcx
mov r8, rdx
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rcx, rax
mov qword [rbx], rax
call fcn.140009a44
add rsp, 0x30
pop rbx
ret
Function at 0x14000c28c
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x510
mov rdi, rcx
mov rcx, qword [rcx + 8]
mov edx, 0x4b6
call qword [sym.imp.USER32.dll_GetDlgItem]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.14000218c
mov r11d, dword [rsp + 0x3c]
mov ebx, 1
sub r11d, dword [rsp + 0x34]
mov r8d, ebx
mov edx, 0x4b6
add r11d, 2
mov rcx, rdi
mov dword [rdi + 0x80], r11d
call fcn.140009f8c
mov r8d, ebx
mov ebx, 0x4b7
mov rcx, rdi
mov edx, ebx
call fcn.140009f8c
lea rcx, [rsp + 0x40]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [rsp + 0x250]
lea rcx, [rsp + 0x40]
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x20], 0x103
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov r11, qword [rsp + 0x250]
mov rcx, qword [rdi + 8]
mov edx, ebx
mov qword [rdi + 0x70], r11
call qword [sym.imp.USER32.dll_GetDlgItem]
lea r8, [0x14000a858]
mov edx, 0xfffffffc
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov rcx, rdi
mov qword [rdi + 0x78], rax
call fcn.14000be0c
mov rcx, rdi
mov ebx, eax
call fcn.14000ad18
mov eax, ebx
mov rbx, qword [rsp + 0x520]
add rsp, 0x510
pop rdi
ret
Function at 0x14000cd70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rsi
push r14
push r15
sub rsp, 0x20
mov r10d, dword [r9]
xor r15d, r15d
mov esi, r8d
and r10d, 7
cmp rdx, 5
mov r14, rcx
mov r11, r15
jae 0x14000cda8
xor eax, eax
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x10], rdi
mov qword [rsp + 8], r12
add esi, 5
mov qword [rsp], r13
mov r13d, dword [rsp + 0x60]
or r12, 0xffffffffffffffff
lea rdi, [rcx + rdx - 4]
lea r9, [0x140000000]
nop
nop
lea r8, [r11 + r14]
cmp r8, rdi
jae 0x14000ce03
nop
nop
movzx eax, byte [r8]
and al, 0xfe
cmp al, 0xe8
je 0x14000ce03
add r8, 1
cmp r8, rdi
jb 0x14000cdf0
mov r11, r8
sub r11, r14
cmp r8, rdi
jae 0x14000cf51
mov rax, r11
sub rax, r12
cmp rax, 3
jbe 0x14000ce42
mov r10d, r15d
movzx eax, byte [r8 + 4]
mov r12, r11
test al, al
je 0x14000ce8a
cmp al, 0xff
je 0x14000ce8a
and r10d, 3
add r10d, r10d
or r10d, 1
add r11, 1
jmp 0x14000cde0
lea ecx, [rax - 1]
shl r10d, cl
and r10d, 7
je 0x14000ce21
movzx eax, byte [r10 + r9 + 0x1f2d0]
mov rcx, r8
sub rcx, rax
cmp byte [r10 + r9 + 0x1f2c8], r15b
movzx eax, byte [rcx + 4]
je 0x14000ce73
test al, al
je 0x14000ce73
cmp al, 0xff
jne 0x14000ce21
and r10d, 3
mov r12, r11
add r10d, r10d
or r10d, 1
add r11, 1
jmp 0x14000cde0
movzx r9d, al
movzx eax, byte [r8 + 3]
movsxd rbp, r10d
shl r9d, 8
lea r14, [0x140000000]
or r9d, eax
movzx eax, byte [r8 + 2]
shl r9d, 8
or r9d, eax
movzx eax, byte [r8 + 1]
shl r9d, 8
or r9d, eax
nop
test r13d, r13d
je 0x14000cecd
lea edx, [r11 + r9]
add edx, esi
jmp 0x14000ced5
mov edx, r9d
sub edx, r11d
sub edx, esi
test r10d, r10d
je 0x14000cf17
movzx ebx, byte [r14 + rbp + 0x1f2d0]
mov ecx, 0x18
mov r9d, edx
shl ebx, 3
sub ecx, ebx
shr r9d, cl
test r9b, r9b
je 0x14000cefe
cmp r9b, 0xff
jne 0x14000cf17
mov ecx, 0x20
mov r9d, 1
sub ecx, ebx
shl r9d, cl
sub r9d, 1
xor r9d, edx
jmp 0x14000cec0
mov r14, qword [rsp + 0x40]
mov eax, edx
mov byte [r8 + 1], dl
shr eax, 0x18
lea r9, [0x140000000]
and al, 1
sub al, 1
not al
mov byte [r8 + 4], al
mov eax, edx
shr eax, 0x10
mov byte [r8 + 3], al
mov eax, edx
shr eax, 8
add r11, 5
mov byte [r8 + 2], al
jmp 0x14000cde0
mov r13, qword [rsp]
mov rdi, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x48]
mov rax, r11
sub rax, r12
mov r12, qword [rsp + 8]
cmp rax, 3
ja 0x14000cf82
lea ecx, [rax - 1]
shl r10d, cl
and r10d, 7
mov r15d, r10d
mov rax, qword [rsp + 0x58]
mov dword [rax], r15d
mov rax, r11
add rsp, 0x20
pop r15
pop r14
pop rsi
ret

Function at 0x140010c24
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [rcx]
mov rdi, rdx
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov ebx, eax
jne 0x140010c54
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140010c54
xor al, al
jmp 0x140010c67
mov ecx, dword [rsp + 0x40]
mov rax, rbx
mov al, 1
shl rcx, 0x20
add rcx, rbx
mov qword [rdi], rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140010d7c
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
and dword [rsp + 0x58], 0
and qword [rsp + 0x20], 0
mov rbx, r9
lea r9, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x58]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret
mov eax, dword [0x140023a90]
cmp r8d, eax
cmova r8d, eax
jmp 0x140010d7c

Function at 0x140010db0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
and dword [rsp + 0x58], 0
and qword [rsp + 0x20], 0
mov rbx, r9
lea r9, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x58]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret
mov eax, dword [0x140023a90]
cmp r8d, eax
cmova r8d, eax
jmp 0x140010d7c

Function at 0x140010e18
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x140023a90]
mov rcx, qword [rcx]
mov rbx, r9
cmp r8d, eax
lea r9, [rsp + 0x50]
cmova r8d, eax
and dword [rsp + 0x50], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x50]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x140010e58
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdi, rdx
mov rsi, rcx
call fcn.140010c74
xor ebx, ebx
cmp al, bl
jne 0x140010e84
xor al, al
jmp 0x140010e99
cmp qword [rsp + 0x40], rdi
jne 0x140010e80
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, ebx
setne al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14001b070
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
lea r10, [0x140023f80]
xor edx, edx
mov r8, r10
mov ecx, edx
mov eax, edx
add edx, 1
shr eax, 1
and ecx, 1
add r8, 4
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
xor eax, ecx
cmp edx, 0x100
mov dword [r8 - 4], eax
jb 0x14001b080
mov eax, 0x800
movsxd rcx, edx
cmp edx, eax
jae 0x14001b171
sub eax, edx
lea r8, [r10 + rcx*4]
mov r9d, eax
nop
nop
mov edx, dword [r8 - 0x400]
add r8, 4
movzx ecx, dl
shr edx, 8
mov eax, dword [r10 + rcx*4]
xor eax, edx
sub r9, 1
mov dword [r8 - 4], eax
jne 0x14001b150
lea rax, [0x14001b390]
mov qword [0x140023f28], rax
call fcn.14001b1b0
mov rcx, qword [0x140023f28]
lea rdx, [0x14001b2a0]
test eax, eax
cmove rcx, rdx
mov qword [0x140023f28], rcx
add rsp, 0x28
ret
Function at 0x14001b970
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
push r12
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140025f88], rdi
je 0x14001b9c9
cmp rax, rdi
jne 0x14001b9bc
mov esi, 1
jmp 0x14001b9c9
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001b9a3
mov eax, dword [0x140025f80]
cmp eax, 1
jne 0x14001b9de
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x14001ba43
mov eax, dword [0x140025f80]
test eax, eax
jne 0x14001ba39
mov dword [0x140025f80], 1
lea r12, [0x14001d7d0]
lea rdi, [0x14001d7b8]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
cmp rdi, r12
jae 0x14001ba2b
test eax, eax
jne 0x14001ba2b
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001ba20
call rcx
mov dword [rsp + 0x30], eax
add rdi, 8
mov qword [rsp + 0x38], rdi
jmp 0x14001ba09
test eax, eax
je 0x14001ba43
mov eax, 0xff
jmp 0x14001bb8d
mov dword [0x140023f54], 1
mov eax, dword [0x140025f80]
cmp eax, 1
jne 0x14001ba6b
lea rdx, [0x14001d7b0]
lea rcx, [0x14001d710]
call sub.msvcrt.dll__initterm
mov dword [0x140025f80], 2
test esi, esi
jne 0x14001ba78
xor eax, eax
xchg qword [0x140025f88], rax
cmp qword [0x140025f90], 0
je 0x14001baa1
lea rcx, [0x140025f90]
call fcn.14001bd88
test eax, eax
je 0x14001baa1
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x140025f90]
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rdi, qword [rax]
mov qword [rsp + 0x28], rdi
mov esi, dword [rsp + 0x20]
cmp byte [rdi], 0x20
ja 0x14001bb2c
cmp byte [rdi], 0
je 0x14001bac2
test esi, esi
jne 0x14001bb2c
cmp byte [rdi], 0
je 0x14001bad6
cmp byte [rdi], 0x20
ja 0x14001bad6
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x14001bac2
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rdi
xor edx, edx
lea rcx, [0x140000000]
call fcn.140009a04
mov dword [0x140023f50], eax
cmp dword [0x140023f34], 0
jne 0x14001bb15
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140023f54], 0
jne 0x14001bb2a
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140023f50]
jmp 0x14001bb8d
cmp byte [rdi], 0x22
jne 0x14001bb3e
xor eax, eax
test esi, esi
sete al
mov esi, eax
mov dword [rsp + 0x20], eax
movzx ecx, byte [rdi]
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x14001bb53
inc rdi
mov qword [rsp + 0x28], rdi
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x14001bab4
lea r11, [rsp + 0xb0]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r12
ret
sub rsp, 0x28
call fcn.14001be7c
add rsp, 0x28
jmp 0x14001b970
Function at 0x14001bddc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x14001be29
cmp rcx, 0xffffffffffffffff
je 0x14001be29
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001be21
cmp dword [rcx + 0x3c], edx
jl 0x14001be21
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14001be21
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14001be29
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x14000b8b0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x14000b8c0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call sym._amsg_exit
jmp 0x14000123c
mov rax, qword [0x14000b8c0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x14000b8c0]
mov dword [rax], 1
mov rax, qword [0x14000b900]
mov rdx, rax
mov rax, qword [0x14000b8f0]
mov rcx, rax
call sym._initterm
jmp 0x14000123c
mov dword [0x140010024], 1
mov rax, qword [0x14000b8c0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x14000b8e0]
mov rdx, rax
mov rax, qword [0x14000b8d0]
mov rcx, rax
call sym._initterm
mov rax, qword [0x14000b8c0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x14000b8b0]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x14000b800]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x14000b800]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call sym._pei386_runtime_relocator
mov rax, qword [sym._gnu_exception_handler]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x14000b8a0]
mov qword [rdx], rax
lea rax, [sym.__mingw_invalidParameterHandler]
mov rcx, rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov eax, dword [0x140010004]
lea rdx, [0x140010008]
mov ecx, eax
call sym.duplicate_ppstrings
call sym.__main
mov rax, qword [0x14000b830]
mov rax, qword [rax]
mov rdx, qword [0x140010010]
mov qword [rax], rdx
mov rcx, qword [0x140010010]
mov rdx, qword [0x140010008]
mov eax, dword [0x140010004]
mov r8, rcx
mov ecx, eax
call sym.main
mov dword [0x14001001c], eax
mov eax, dword [0x140010020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14001001c]
mov ecx, eax
call sym.exit
mov eax, dword [0x140010024]
test eax, eax
jne 0x14000136c
call sym._cexit
mov eax, dword [0x14001001c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14000b860]
mov dword [rax], 1
mov rax, qword [0x14000b870]
mov dword [rax], 1
mov rax, qword [0x14000b880]
mov dword [rax], 1
mov rax, qword [0x14000b820]
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 0x140003c40
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140004912
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140010168]
test eax, eax
je 0x1400049aa
lea rax, [0x140010140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140010170]
mov qword [rbp - 8], rax
jmp 0x14000498e
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 0x140004982
cmp qword [rbp - 0x10], 0
je 0x140004982
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 0x140004948
lea rax, [0x140010140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400049ab
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140004ab0
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 0x140004ad8
mov eax, 0
jmp 0x140004b26
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 0x140004b01
mov eax, 0
jmp 0x140004b26
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 0x140004b21
mov eax, 0
jmp 0x140004b26
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140004b2c
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 0x140004baa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140004ba1
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 0x140004ba1
mov rax, qword [rbp - 8]
jmp 0x140004bbf
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 0x140004b74
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc5341f0
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.2fc5352d0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc534bf2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc557108]
test eax, eax
je 0x2fc534c8a
lea rax, [0x2fc5570e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc557110]
mov qword [rbp - 8], rax
jmp 0x2fc534c6e
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 0x2fc534c62
cmp qword [rbp - 0x10], 0
je 0x2fc534c62
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 0x2fc534c28
lea rax, [0x2fc5570e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc534c8b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc534d90
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 0x2fc534db8
mov eax, 0
jmp 0x2fc534e06
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 0x2fc534de1
mov eax, 0
jmp 0x2fc534e06
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 0x2fc534e01
mov eax, 0
jmp 0x2fc534e06
mov eax, 1
add rsp, 0x20
pop rbp
ret