joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400111f4
Capabilities:
Parse pe header

Disassembly:
jmp 0x140011c50
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400240a3]
call fcn.1400113d4
mov rax, qword [rbp + 0x120]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140011c91
xor eax, eax
jmp 0x140011cea
mov rax, qword [rbp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x120]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0x4550
je 0x140011cba
xor eax, eax
jmp 0x140011cea
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rbp + 0x120]
add rcx, rax
mov rax, rcx
mov rcx, qword [rbp + 0x128]
mov qword [rcx], rax
mov eax, 1
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140011221
Capabilities:
Terminate process

Disassembly:
jmp 0x140013dd0
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

Function at 0x1400112a8
Capabilities:
Read file on windows

Disassembly:
jmp 0x1400121d0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1400240a3]
call fcn.1400113d4
lea rdx, [0x14001b34c]
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.ucrtbased.dll_fopen]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x14001223f
mov rdx, qword [rbp + 0x100]
lea rcx, str.Error_opening_file:__s
call fcn.1400111ae
mov rax, qword [rbp + 0x108]
mov dword [rax], 0
xor eax, eax
jmp 0x1400122e7
mov r8d, 2
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fseek]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_ftell]
mov rcx, qword [rbp + 0x108]
mov dword [rcx], eax
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_rewind]
mov rax, qword [rbp + 0x108]
movsxd rax, dword [rax]
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_malloc]
mov rcx, qword [rbp + 0x110]
mov qword [rcx], rax
mov rax, qword [rbp + 0x110]
cmp qword [rax], 0
jne 0x1400122b2
lea rcx, str.Memory_allocation_failed
call fcn.1400111ae
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fclose]
xor eax, eax
jmp 0x1400122e7
mov rax, qword [rbp + 0x108]
movsxd rax, dword [rax]
mov r9, qword [rbp + 8]
mov r8, rax
mov edx, 1
mov rax, qword [rbp + 0x110]
mov rcx, qword [rax]
call qword [sym.imp.ucrtbased.dll_fread]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fclose]
mov eax, 1
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x1400112bc
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015160
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015180
xor al, al
jmp 0x140015201
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015193
xor al, al
jmp 0x140015201
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400151bd
xor al, al
jmp 0x140015201
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400151d1
xor al, al
jmp 0x140015201
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400151e3
xor al, al
jmp 0x140015201
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400151ff
xor al, al
jmp 0x140015201
mov al, 1
add rsp, 0x38
ret
Function at 0x14001141a
Capabilities:
Execute syscall

Disassembly:
jmp 0x1400129c1
mov r10, rcx
mov eax, dword [section..data]
syscall
ret
Function at 0x140001000
Capabilities:
Hash data via bcrypt

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [0x14005e2a8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ebx, r9d
mov rbp, r8
mov esi, edx
mov rdi, rcx
cmp r9d, 0x10
jae 0x140001030
xor al, al
jmp 0x1400010c3
mov qword [rsp + 0x60], r14
lea rdx, [0x140058c70]
xor r14d, r14d
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x40], r14
xor r8d, r8d
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x30], r14d
xor r9d, r9d
mov dword [rsp + 0x28], r14d
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x48], r14
call qword [sym.imp.bcrypt.dll_BCryptCreateHash]
mov rcx, qword [rsp + 0x40]
mov r9, rdi
mov dword [rsp + 0x30], ebx
xor r8d, r8d
mov qword [rsp + 0x28], rbp
xor edx, edx
mov dword [rsp + 0x20], esi
call qword [sym.imp.bcrypt.dll_BCryptHash]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.bcrypt.dll_BCryptDestroyHash]
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov r14, qword [rsp + 0x60]
test ebx, ebx
sete al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140002780
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001350
Capabilities:
Hash data via bcrypt

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [0x14005e2a8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0xb8]
mov rsi, rcx
mov rcx, qword [rsp + 0xb0]
mov rbp, rdx
mov rbx, qword [rsp + 0xc8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, rsi
call fcn.1400010e0
mov rcx, rbx
call fcn.14001348c
mov rdi, rax
test rax, rax
je 0x140001462
cmp ebx, 0x10
jb 0x14000143f
mov qword [rsp + 0x60], r14
lea rdx, [0x140058c70]
xor r14d, r14d
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x40], r14
xor r8d, r8d
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x30], r14d
xor r9d, r9d
mov dword [rsp + 0x28], r14d
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x48], r14
call qword [sym.imp.bcrypt.dll_BCryptCreateHash]
mov rcx, qword [rsp + 0x40]
mov r9, rsi
mov dword [rsp + 0x30], ebx
xor r8d, r8d
mov qword [rsp + 0x28], rdi
xor edx, edx
mov dword [rsp + 0x20], ebp
call qword [sym.imp.bcrypt.dll_BCryptHash]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.bcrypt.dll_BCryptDestroyHash]
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov r14, qword [rsp + 0x60]
mov rdx, qword [rsp + 0xc0]
mov r8, rbx
mov rcx, rdi
call fcn.14004c8d0
test eax, eax
mov rcx, rdi
sete bl
call fcn.140013478
movzx eax, bl
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140002780
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400149b0
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.14004c7a0
sub rsp, rax
mov rax, qword [0x14005e2a8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002f284
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400149ff
mov rax, rbp
jmp 0x140014b07
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 + 0x60000]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14003379c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x60000]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140014b03
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 0x140014b03
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14003379c
test rax, rax
js 0x140014b03
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140014b03
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140014af5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140014af5
cmp byte [rcx], 0xd
jne 0x140014adb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140014aea
cmp byte [rcx + 1], 0xa
jne 0x140014aea
inc rcx
jmp 0x140014aea
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x5e590]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140014abd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140014b07
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140002780
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 0x140017318
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400170b8
Function at 0x140030b80
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, [0x140060000]
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 0x140030bd7
cmp word [rdx], r13w
jne 0x140030bd7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140030bdc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140030d01
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140030d22
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140030c15
mov rdx, r9
mov word [rbx], cx
jmp 0x140030c3c
cmp r9, r8
jae 0x140030c4c
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 0x140030bf6
jmp 0x140030d01
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 0x140030cf6
cmp dword [rsp + 0x80], esi
je 0x140030cf6
lea r8, [0x140060000]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140030cce
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140030c9e
mov word [rbx], r13w
jmp 0x140030cfe
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 0x140030cab
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140030cfe
cmp word [rsp + 0x70], r13w
jne 0x140030cdb
cmp rbx, r14
je 0x140030c98
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400337a4
cmp word [rsp + 0x70], r13w
je 0x140030d01
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, [0x140060000]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140030cfb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140030d01
Function at 0x140037108
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 0x140037138
xor eax, eax
jmp 0x1400371fb
mov rbp, rbx
cmp word [rax], si
je 0x14003715d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140037144
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140037140
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.140036fcc
movsxd r14, eax
test eax, eax
jne 0x14003719b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140037131
mov rcx, r14
call fcn.14002e324
mov rdi, rax
test rax, rax
jne 0x1400371b4
xor ecx, ecx
call fcn.14002e2e8
jmp 0x140037190
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.140036fcc
test eax, eax
jne 0x1400371e5
mov rcx, rdi
call fcn.14002e2e8
jmp 0x1400371ef
xor ecx, ecx
call fcn.14002e2e8
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 0x140037218
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 0x14003729f
mov rsi, rbx
cmp word [rax], bp
je 0x14003725e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140037248
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140037244
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002e324
mov rdi, rax
test rax, rax
je 0x14003728c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140003a80
mov rbp, rdi
xor ecx, ecx
call fcn.14002e2e8
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 0x140048774
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.1400337a4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400337a4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400488c4
cmp rax, 0xffffffffffffffff
je 0x1400488c4
xor edi, edi
test rbp, rbp
jle 0x14004886f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400340d0
mov rbx, rax
test rax, rax
jne 0x1400487fc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140048865
mov edx, 0x8000
mov ecx, r14d
call fcn.1400174bc
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.1400326e4
cmp eax, 0xffffffff
je 0x140048845
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14004880c
mov edx, r15d
mov ecx, r14d
call fcn.1400174bc
jmp 0x140048865
cmp byte [rsi + 0x38], dil
je 0x14004885c
cmp dword [rsi + 0x34], 5
jne 0x14004885c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140048865
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14002e2e8
jmp 0x1400488d8
jns 0x1400488d8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400337a4
cmp rax, 0xffffffffffffffff
jne 0x140048890
cmp byte [rsi + 0x30], dil
je 0x1400488d8
mov edi, dword [rsi + 0x2c]
jmp 0x1400488d8
mov ecx, r14d
call fcn.140038594
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400488d8
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 0x1400488d8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400488d1
mov eax, dword [rsi + 0x2c]
jmp 0x1400488d6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400337a4
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 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 [0x140131490]
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 [0x1401314a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140113640
jmp 0x14000123c
mov rax, qword [0x1401314a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1401314a0]
mov dword [rax], 1
mov rax, qword [0x1401314e0]
mov rdx, rax
mov rax, qword [0x1401314d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140135024], 1
mov rax, qword [0x1401314a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1401314c0]
mov rdx, rax
mov rax, qword [0x1401314b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1401314a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140131490]
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 [0x1401313e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1401313e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.1401128c8
mov rax, qword [0x140131520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140131480]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.1401120c0
mov eax, dword [0x140135004]
lea rdx, [0x140135008]
mov ecx, eax
call fcn.14000147c
call fcn.140111e57
mov rax, qword [0x140131410]
mov rax, qword [rax]
mov rdx, qword [0x140135010]
mov qword [rax], rdx
mov rcx, qword [0x140135010]
mov rdx, qword [0x140135008]
mov eax, dword [0x140135004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14013501c], eax
mov eax, dword [0x140135020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14013501c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140135024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14013501c]
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 [0x140131440]
mov dword [rax], 1
mov rax, qword [0x140131450]
mov dword [rax], 1
mov rax, qword [0x140131460]
mov dword [rax], 1
mov rax, qword [0x140131400]
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 0x1401120d0
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.140113430
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x140112da2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140135168]
test eax, eax
je 0x140112e3a
lea rax, [0x140135140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140135170]
mov qword [rbp - 8], rax
jmp 0x140112e1e
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 0x140112e12
cmp qword [rbp - 0x10], 0
je 0x140112e12
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 0x140112dd8
lea rax, [0x140135140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140112e3b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140112f40
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 0x140112f68
mov eax, 0
jmp 0x140112fb6
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 0x140112f91
mov eax, 0
jmp 0x140112fb6
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 0x140112fb1
mov eax, 0
jmp 0x140112fb6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140112fbc
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 0x14011303a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140113031
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 0x140113031
mov rax, qword [rbp - 8]
jmp 0x14011304f
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 0x140113004
mov eax, 0
add rsp, 0x20
pop rbp
ret