joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007bb0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rcx
mov eax, dword [0x14000f7e0]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
sete cl
cmp dword [0x14000f7dc], 0xa
setl dl
mov al, 1
cmp qword [rsi + 0x68], 0
je 0x140007d71
cmp byte [rsi + 0x71], 0
je 0x140007d71
or dl, cl
je 0x140007c1d
mov rax, qword [rsi]
mov rcx, rsi
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp dword [0x14000f7dc], 0xa
jl 0x140007c2d
mov ecx, dword [0x14000f7e0]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
je 0x140007c2d
mov rax, qword [rsi]
mov rcx, rsi
mov edx, 0xffffffff
call qword [rax + 0x18]
jmp 0x140007bf5
cmp eax, 0xffffffff
je 0x140007d6f
lea r15, [rsp + 0x50]
lea rbx, [rsi + 0x74]
lea rdi, [rsp + 0x28]
lea r14, [rsp + 0x30]
nop dword [rax]
mov rcx, qword [rsi + 0x68]
mov rax, qword [rcx]
mov qword [rsp + 0x20], rdi
mov rdx, rbx
mov r8, r14
mov r9, r15
call qword [rax + 0x40]
cmp dword [0x14000f7dc], 0xa
jl 0x140007c9c
mov ecx, dword [0x14000f7e0]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
je 0x140007c9c
mov rcx, qword [rsi + 0x68]
mov rax, qword [rcx]
mov qword [rsp + 0x20], rdi
mov rdx, rbx
mov r8, r14
mov r9, r15
call qword [rax + 0x40]
jmp 0x140007c50
test eax, eax
jle 0x140007cb4
cmp eax, 3
jge 0x140007d62
cmp eax, 1
jne 0x140007d6f
jmp 0x140007cc0
test eax, eax
jne 0x140007d6f
mov byte [rsi + 0x71], 0
mov rdi, qword [rsp + 0x28]
sub rdi, r14
je 0x140007d59
mov r9, qword [rsi + 0x80]
lea rcx, [rsp + 0x30]
mov edx, 1
mov r8, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp dword [0x14000f7dc], 0xa
jl 0x140007d54
mov ecx, dword [0x14000f7e0]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
je 0x140007d54
mov r14, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea rbx, [rsp + 0x30]
nop
mov r9, qword [rsi + 0x80]
mov edx, 1
mov rcx, rbx
mov r8, rdi
call r14
mov r9, qword [rsi + 0x80]
mov edx, 1
mov rcx, rbx
mov r8, rdi
call r14
cmp dword [0x14000f7dc], 0xa
jl 0x140007d54
mov ecx, dword [0x14000f7e0]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
jne 0x140007d10
cmp rdi, rax
jne 0x140007d6f
cmp byte [rsi + 0x71], 0
sete al
jmp 0x140007d71
cmp eax, 3
jne 0x140007d6f
mov byte [rsi + 0x71], 0
mov al, 1
jmp 0x140007d71
xor eax, eax
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x401980
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
call sub.msvcrt.dll_getenv
test rax, rax
je 0x4019a8
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.00401820
add rsp, 0x20
pop rbx
ret
Function at 0x4024a0
Capabilities:
Query environment variable

Disassembly:
mov r9d, 1
jmp fcn.00401ef0
Function at 0x404790
Capabilities:
Delete file

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov edx, dword [rcx + 0x18]
test edx, edx
mov rbx, rcx
jle 0x4047aa
mov rax, qword [rcx + 0x80]
call qword [rax + 0x18]
mov edx, dword [rbx + 0x2c]
test edx, edx
jle 0x4047be
mov rax, qword [rbx + 0x80]
mov rcx, rbx
call qword [rax + 0x18]
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x4047cc
call sub.msvcrt.dll_fclose
mov rcx, qword [rbx + 0x68]
test rcx, rcx
je 0x4047da
call sub.msvcrt.dll_fclose
cmp qword [rbx + 0x40], 0
je 0x404870
mov edx, dword [rbx + 0x28]
test edx, edx
jne 0x404860
mov rcx, qword [rbx + 0x38]
call sub.msvcrt.dll_free
mov rcx, qword [rbx + 0x40]
call sub.msvcrt.dll_free
mov rcx, qword [rbx + 0x48]
call sub.msvcrt.dll_free
mov eax, dword [rbx + 0x70]
test eax, eax
jle 0x40483c
xor esi, esi
mov rax, qword [rbx + 0x78]
mov rcx, qword [rax + rsi*8]
call sub.msvcrt.dll_remove
mov rax, qword [rbx + 0x78]
mov rcx, qword [rax + rsi*8]
add rsi, 1
call sub.msvcrt.dll_free
cmp dword [rbx + 0x70], esi
jg 0x404810
mov rcx, qword [rbx + 0x78]
call sub.msvcrt.dll_free
mov rax, qword [rbx + 0x80]
mov rax, qword [rax + 0x40]
test rax, rax
je 0x404851
mov rcx, rbx
call rax
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp sub.msvcrt.dll_free
mov rcx, qword [rbx + 0x20]
call sub.msvcrt.dll_free
jmp 0x4047ec
and dword [rbx], 0xfffffffe
lea r9, [rsp + 0x24]
mov edx, 1
mov rcx, rbx
lea r8, [rsp + 0x28]
call fcn.00403b60
jmp 0x4047e5

Function at 0x404a90
Capabilities:
Get common file path

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [0x00411140]
test rax, rax
je 0x404ab0
add rsp, 0x28
pop rbx
pop rsi
ret
xor edx, edx
xor ecx, ecx
mov rsi, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rsi
test eax, eax
mov ebx, eax
jne 0x404ae0
mov rax, qword [0x00411140]
test rax, rax
je 0x404b10
add rsp, 0x28
pop rbx
pop rsi
ret
mov ecx, eax
call fcn.00403760
mov ecx, ebx
mov rdx, rax
mov qword [0x00411140], rax
call rsi
test eax, eax
jne 0x404ac3
mov rcx, qword [0x00411140]
call sub.msvcrt.dll_free
mov qword [0x00411140], 0
lea rcx, [0x0040dac0]
call fcn.00403830
mov qword [0x00411140], rax
jmp 0x404aa2

Function at 0x404f30
Capabilities:
Write file on windows

Disassembly:
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.0040af90
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.0040af90
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x404fa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004111c4]
test esi, esi
mov rbx, rcx
jle 0x4050d0
mov rax, qword [0x004111c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x404feb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x405075
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x404fd0
mov rcx, rbx
call fcn.00405a20
test rax, rax
mov rdi, rax
je 0x4050f2
mov rax, qword [0x004111c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.00405b60
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x004111c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4050d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40506e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x405080
add dword [0x004111c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x004111c8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40506e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00404f30
nop dword [rax]
xor esi, esi
jmp 0x404ff8
mov rax, qword [0x004111c8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.00404f30
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00404f30
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x405690
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x00411220]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00411200]
test rbx, rbx
je 0x4056ec
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x4056e3
test eax, eax
jne 0x4056e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4056c8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x405a20
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x0040e240]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x405a40
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x405a48
ret
cmp word [r8 + 0x18], 0x20b
jne 0x405a40
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x405a9d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x405a94
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x405a40
add rax, 0x28
cmp rax, r9
jne 0x405a80
xor eax, eax
ret

Function at 0x405aa0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x0040e240]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x405abf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x405ac8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x405abf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x405b60
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x0040e240]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x405b7f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x405b88
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x5ef890
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x5ef89d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x5ef8ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x5ef895
lea eax, [rcx + 1]
jmp 0x5ef8bb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x5ef8ce
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x5ef8b4
sub eax, 3
jb 0x5ef8ee
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x5ef93d
sar eax, 1
movsxd rbp, eax
jb 0x5ef924
jmp 0x5ef8fc
add ebx, ebx
jne 0x5ef8fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x5ef924
inc ecx
add ebx, ebx
jne 0x5ef90a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x5ef924
call r11
adc ecx, ecx
add ebx, ebx
jne 0x5ef91d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x5ef90c
add ecx, 2
jmp 0x5ef929
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.005ef852
jmp 0x5ef89d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x19fa00
mov dl, 0x1e
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x5ef989
cmp rsi, rcx
jae 0x5ef991
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x5ef970
cmp al, 0x8f
ja 0x5ef970
cmp byte [rsi - 2], 0xf
je 0x5ef976
sub al, 0xe8
cmp al, 1
ja 0x5ef95a
cmp rsi, rcx
jae 0x5ef991
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x5ef960
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x5ef991
lodsb al, byte [rsi]
jmp 0x5ef970
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1ed000]
mov eax, dword [rdi]
or eax, eax
je 0x5ef9ee
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1ef000]
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 0x5ef99e
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 0x5ef9e8
mov qword [rbx], rax
add rbx, 8
jmp 0x5ef9be
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 + 0x1af]
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 0x5efa46
sub rsp, 0xffffffffffffff80
jmp 0x450490
Function at 0x140137b50
Capabilities:
Terminate process

Disassembly:
je 0x1400cd352
cmp byte [0xe01386bc], 0xee
rol dword [rax + 0x5f], 1
adc cl, byte [0x1bbfc0bed]
pop rdx
sub ecx, dword [rbx]
xchg byte [rcx], dl
sub cl, byte [rdi]
out dx, al
xchg dword [rax], ecx
mov esp, 0x74667e15
dec dword [rdx - 0x326aedd7]
std
invalid
xchg edx, eax
rol byte [rbp + rdx - 0x7f], 1
cmp bh, bh
mov r15b, 0xfb
invalid
js 0x1400cd30b
cld
invalid
cld
pop r11
jmp 0x140137b5d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140137b6d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140137b55
lea eax, [rcx + 1]
jmp 0x140137b7b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140137b8e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140137b74
sub eax, 3
jb 0x140137bae
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140137bfd
sar eax, 1
movsxd rbp, eax
jb 0x140137be4
jmp 0x140137bbc
add ebx, ebx
jne 0x140137bba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140137be4
inc ecx
add ebx, ebx
jne 0x140137bca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140137be4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140137bdd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140137bcc
add ecx, 2
jmp 0x140137be9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140137b12
jmp 0x140137b5d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xddc00
mov dl, 0x16
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140137c49
cmp rsi, rcx
jae 0x140137c51
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140137c30
cmp al, 0x8f
ja 0x140137c30
cmp byte [rsi - 2], 0xf
je 0x140137c36
sub al, 0xe8
cmp al, 1
ja 0x140137c1a
cmp rsi, rcx
jae 0x140137c51
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140137c20
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140137c51
lodsb al, byte [rsi]
jmp 0x140137c30
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x134000]
mov eax, dword [rdi]
or eax, eax
je 0x140137cba
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x13b668]
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 0x140137c5e
jns 0x140137c93
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140137c9d
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 0x140137cb4
mov qword [rbx], rax
add rbx, 8
jmp 0x140137c7e
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 + 0x21f]
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 0x140137d12
sub rsp, 0xffffffffffffff80
jmp 0x1400cd360
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400d0300]
mov dword [rax], 1
mov rax, qword [0x1400d0310]
mov dword [rax], 1
mov rax, qword [0x1400d0320]
mov dword [rax], 1
mov rax, qword [0x1400d02b0]
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 0x140013850
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 0x140014522
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400fa108]
test eax, eax
je 0x1400145ba
lea rax, [0x1400fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400fa110]
mov qword [rbp - 8], rax
jmp 0x14001459e
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 0x140014592
cmp qword [rbp - 0x10], 0
je 0x140014592
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 0x140014558
lea rax, [0x1400fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400145bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400146c0
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 0x1400146e8
mov eax, 0
jmp 0x140014736
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 0x140014711
mov eax, 0
jmp 0x140014736
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 0x140014731
mov eax, 0
jmp 0x140014736
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14001473c
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 0x1400147ba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400147b1
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 0x1400147b1
mov rax, qword [rbp - 8]
jmp 0x1400147cf
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 0x140014784
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14001f3fe
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
call sym.__mingw_get_msvcrt_handle
mov rcx, rax
lea rax, str.rand_s
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14001f46b
lea rax, [sym.mingw_rand_s]
mov qword [rbp - 8], rax
lea rax, str.advapi32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryW]
call rax
mov rcx, rax
lea rax, str.SystemFunction036
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [0x1400fac60], rax
mov rax, qword [rbp - 8]
mov qword [sym.init_rand_s], rax
mov rdx, qword [sym.init_rand_s]
mov rax, qword [rbp + 0x10]
mov rcx, rax
call rdx
add rsp, 0x30
pop rbp
ret

Function at 0x140021b60
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400c6178], eax
cmp eax, 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
ret
Function at 0x140021b80
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x7b], 0
mov qword [rsp + 0x83], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140021c82
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140021c5a
add rax, 1
cmp rax, 0x6b
je 0x140021c77
cmp byte [rcx + rax], 0
jne 0x140021c50
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x140021c77
cdqe
mov byte [rsp + rax + 0x20], 0xa
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.abort
mov edx, 0x28
mov eax, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140021c68

Function at 0x140022020
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400fad00], 1
je 0x140022098
lea rdi, [0x1400fad00]
mov rcx, rdi
call sym.enterOnceObject
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call sym.pthread_mutex_lock
mov esi, dword [0x1400fad00]
test esi, esi
jne 0x1400220a8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400c6178], eax
cmp eax, 0xffffffff
je sym._pthread_once_raw.constprop.0.isra.0.cold
mov dword [0x1400fad00], 1
mov rcx, rbp
call sym.pthread_mutex_unlock
test rbx, rbx
je 0x140022098
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sym.leaveOnceObject.part.0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140022078
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sym.fprintf
jmp 0x140022078