joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007442c
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
xor edi, edi
mov rax, r15
lea rcx, [0x1400ba850]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x140074482
cmp word [rdx], r9w
jne 0x140074482
or byte [rax + rbp*8 + 0x38], 4
jmp 0x140074487
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x140074606
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x1400745d1
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x1400744cf
cmp rcx, r8
jae 0x1400744ef
cmp word [rcx], r9w
jne 0x1400744cf
add rax, 4
mov edx, r9d
jmp 0x1400744d2
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x1400744a4
jmp 0x140074606
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400745ca
cmp dword [rsp + 0x80], edi
je 0x1400745ca
lea r9, [0x1400ba850]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x1400745a4
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x140074557
mov word [rbx], bp
jmp 0x140074603
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x140074572
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x140074603
cmp word [rsp + 0x70], bp
jne 0x1400745b0
cmp rbx, rsi
je 0x14007454f
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140073da4
cmp word [rsp + 0x70], bp
je 0x140074606
mov word [rbx], 0xd
jmp 0x140074603
mov rcx, r15
lea r9, [0x1400ba850]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140074600
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140074606
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
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
Function at 0x1400756cc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1400c3050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x140075731
test rax, rax
jne 0x14007571f
lea r9, [0x140091850]
lea r8, [0x140091848]
lea rdx, [0x140091850]
lea ecx, [rax + 0xa]
call fcn.140075280
test rax, rax
je 0x140075731
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.140088c00
jmp 0x14007574b
xor edx, edx
mov rcx, rbp
call fcn.1400759b4
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140078a64
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140078a7a
mov al, 1
jmp 0x140078ae6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140078a8b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140078ae4
mov ecx, dword [rcx + 0x18]
nop
call fcn.14007dd74
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140078ae4
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140078ae4
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140078ae4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140078ae6
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140079ac0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140079ae0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14006fa94
or eax, 0xffffffff
jmp 0x140079ae2
xor eax, eax
add rsp, 0x28
ret
Function at 0x14007d0cc
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 0x14007d0fc
xor eax, eax
jmp 0x14007d1bf
mov rbp, rbx
cmp word [rax], si
je 0x14007d121
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14007d108
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14007d104
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.14007b93c
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x14007d162
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14007d0f5
call fcn.140077050
mov rdi, rax
test rax, rax
jne 0x14007d178
xor ecx, ecx
call fcn.140073ab0
jmp 0x14007d157
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.14007b93c
test eax, eax
jne 0x14007d1a9
mov rcx, rdi
call fcn.140073ab0
jmp 0x14007d1b3
xor ecx, ecx
call fcn.140073ab0
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 0x14008026c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x1400802df
cmp word [rcx], si
je 0x1400802df
lea rdx, [0x140092de8]
call fcn.140083ca0
test eax, eax
je 0x1400802df
lea rdx, [0x140092e00]
mov rcx, rbx
call fcn.140083ca0
test eax, eax
jne 0x1400802d5
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400802fc
mov eax, dword [rsp + 0x30]
jmp 0x14008030e
mov rcx, rbx
call fcn.1400739cc
jmp 0x14008030e
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x140080300
xor eax, eax
jmp 0x14008030e
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x14008030e
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140080320
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.140074278
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400803c3
cmp edi, dword [rsp + 0x30]
je 0x1400803bc
test ebp, ebp
je 0x1400803bc
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x140080398
sub dx, 0x61
cmp dx, 0x19
ja 0x1400803a4
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x140080385
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x1400803a8
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x1400803c5
mov eax, 1
jmp 0x1400803c5
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400839a0
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.14006977c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140083a2a
cmp byte [rbp - 0x21], r15b
je 0x140083a25
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140083a60
call fcn.1400754ec
test eax, eax
jne 0x140083a4c
cmp byte [rbp - 0x21], r15b
je 0x140083a44
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140083a60
cmp byte [rbp - 0x21], r15b
je 0x140083a5d
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.14006d0c8
test eax, eax
jne 0x140083b00
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14006977c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140083a9f
cmp byte [rbp - 0x21], r15b
je 0x140083ad4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140083ad4
call fcn.1400754ec
test eax, eax
jne 0x140083ac0
cmp byte [rbp - 0x21], r15b
je 0x140083ab9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140083ad4
cmp byte [rbp - 0x21], r15b
je 0x140083ad1
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.14006d0c8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140083b00
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140083b03
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140083b11
mov rcx, rdi
call fcn.140073ab0
cmp byte [rbp + 0x3f], r15b
je 0x140083b20
mov rcx, qword [rbp + 0x27]
call fcn.140073ab0
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 0x140084684
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.140073da4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140073da4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400847d1
cmp rax, 0xffffffffffffffff
je 0x1400847d1
xor edi, edi
test rbp, rbp
jle 0x14008477f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140075160
mov rbx, rax
test rax, rax
jne 0x14008470c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140084775
mov edx, 0x8000
mov ecx, r14d
call fcn.140071478
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.14007691c
cmp eax, 0xffffffff
je 0x140084755
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14008471c
mov edx, r15d
mov ecx, r14d
call fcn.140071478
jmp 0x140084775
cmp byte [rsi + 0x38], dil
je 0x14008476c
cmp dword [rsi + 0x34], 5
jne 0x14008476c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140084775
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140073ab0
jmp 0x1400847e3
jns 0x1400847e3
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140073da4
cmp rax, 0xffffffffffffffff
jne 0x14008479d
cmp byte [rsi + 0x30], dil
je 0x1400847e3
jmp 0x1400847d9
mov ecx, r14d
call fcn.14007dd74
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400847e3
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 0x1400847e3
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400847de
mov edi, dword [rsi + 0x2c]
jmp 0x1400847e3
mov edi, 0x16
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140073da4
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 0x140085520
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140085548
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140085548
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400bb140
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400bc010
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400bc010
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1400bb1b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1400c20a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x1400bb360
mov rax, qword [0x1400c20a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400bb1fc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400bb287
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x1400bb1e0
mov rcx, r12
call fcn.1400bbc60
mov rbp, rax
test rax, rax
je 0x1400bb3bd
mov rax, qword [0x1400c20a8]
lea rdi, [rdi + rdi*4]
cmp ebx, 8
jae 0x1400bb2b8
test bl, 4
jne 0x1400bb370
test ebx, ebx
je 0x1400bb2a9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x1400bb390
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x1400bb2a9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x1400bb2ea
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor edi, edi
jmp 0x1400bb207
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x1400bb2a9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x1400bb2a9
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400bb140
nop
nop dword [rax]

Function at 0x1400bb8d0
Capabilities:
Get thread local storage value

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

Function at 0x1400bbb50
Capabilities:
Parse pe header

Disassembly:
shl byte [rsi - 0x7f], 0x7a
sbb byte [rbx], cl
add cl, byte [rdi]
xchg esp, eax
rol bl, 0x66
nop
cmp word [rcx], 0x5a4d
jne 0x1400bbb60
jmp fcn.1400bbb30
xor eax, eax
ret
Function at 0x1400bbc60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x1400bf400]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1400bbcd9
mov rcx, r10
call fcn.1400bbb30
test eax, eax
je 0x1400bbcd9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x1400bbcd6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1400bbccd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1400bbcd9
add r8, 0x28
cmp r8, r9
jne 0x1400bbcb8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x1400bbdc0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1400bf400]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1400bbe2f
mov rcx, r9
call fcn.1400bbb30
test eax, eax
je 0x1400bbe2f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9

Function at 0x1400bcd70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
xor r10d, r10d
movsxd rax, dword [rdx + 0x3c]
mov ebx, dword [rdx + rax + 0x88]
add rbx, rdx
mov rsi, rcx
mov r9, rdx
mov rdi, r8
mov r11d, dword [rbx + 0x20]
mov ebp, dword [rbx + 0x18]
add r11, rdx
cmp ebp, r10d
jbe 0x1400bcde0
mov ecx, dword [r11]
add r11, 4
add rcx, r9
call fcn.1400bcf00
lea rdx, [r10 + 1]
mov eax, eax
cmp rax, rsi
jne 0x1400bcddb
mov edx, dword [rbx + 0x24]
add r10, r10
mov eax, dword [rbx + 0x1c]
add r10, r9
movzx edx, word [r10 + rdx]
mov r10, rdx
jmp 0x1400bcd9c
xor eax, eax
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 [0x140523e10]
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 [0x140523e20]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.1400060e0
jmp 0x14000123c
mov rax, qword [0x140523e20]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x140523e20]
mov dword [rax], 1
mov rax, qword [0x140523e60]
mov rdx, rax
mov rax, qword [0x140523e50]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140528024], 1
mov rax, qword [0x140523e20]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x140523e40]
mov rdx, rax
mov rax, qword [0x140523e30]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x140523e20]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140523e10]
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 [str._b:R_]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [str._b:R_]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.140005368
mov rax, qword [0x140523ea0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140523e00]
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.140004b60
mov eax, dword [0x140528004]
lea rdx, [0x140528008]
mov ecx, eax
call fcn.14000147c
call fcn.1400048f7
mov rax, qword [0x140523d90]
mov rax, qword [rax]
mov rdx, qword [0x140528010]
mov qword [rax], rdx
mov rcx, qword [0x140528010]
mov rdx, qword [0x140528008]
mov eax, dword [0x140528004]
mov r8, rcx
mov ecx, eax
call fcn.1400063f0
mov dword [0x14052801c], eax
mov eax, dword [0x140528020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14052801c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140528024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14052801c]
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 [0x140523dc0]
mov dword [rax], 1
mov rax, qword [0x140523dd0]
mov dword [rax], 1
mov rax, qword [0x140523de0]
mov dword [rax], 1
mov rax, qword [0x140523d80]
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 0x140001880
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 0x7bfa480
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rcx, rax
test rax, rax
je 0x14000189f
add rsp, 0x28
jmp sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor ecx, ecx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
nop word [rax + rax]

Function at 0x1400018b0
Capabilities:
Get file size
Terminate process

Disassembly:
push rbx
sub rsp, 0x160
xor ecx, ecx
mov r8d, 0x104
lea rbx, [rsp + 0x50]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140001951
mov rcx, rbx
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov r8d, 1
mov dword [rsp + 0x28], pe_nt_image_headers64
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001951
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140001960
pxor xmm0, xmm0
movsd xmm1, qword [0x140523680]
mov rcx, rbx
cvtsi2sd xmm0, qword [rsp + 0x48]
mulsd xmm0, qword [0x140523678]
comisd xmm1, xmm0
ja 0x14000194b
comisd xmm0, xmmword [0x140523688]
jbe 0x140001970
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x160
pop rbx
ret