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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14003eb40]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14003eb50]
mov dword [rax], 1
mov rax, qword [0x14003eb60]
mov dword [rax], 1
mov rax, qword [0x14003eb30]
mov dword [rax], 1
mov rax, qword [0x14003e9c0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x14003eb20]
mov dword [0x14004500c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14003eae0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14003eac0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14003e970]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x140001870
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x1400018e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1400450a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140001a90
mov rax, qword [0x1400450a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000192c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400019b7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140001910
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x140001aed
mov rax, qword [0x1400450a8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400450a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001ad2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400019b0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001a40
add dword [0x1400450a4], 1
cmp ebx, 8
jae 0x1400019e8
test bl, 4
jne 0x140001aa0
test ebx, ebx
je 0x1400019d9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140001ac0
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 0x1400019d9
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 0x140001a1a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1400450a8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400019b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x140001937
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x1400019d9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x1400019d9
mov rax, qword [0x1400450a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x140002000
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140045100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400450e0]
test rbx, rbx
je 0x140002054
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 0x14000204b
test r12, r12
je 0x14000204b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002030
lea rcx, [0x140045100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002280
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x140002290
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x1400022a0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1400022e5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x1400022dc
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x1400022e7
add rax, 0x28
cmp rax, r9
jne 0x1400022c8
xor eax, eax
ret

Function at 0x140002390
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x14003e9c0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140002409
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002409
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 0x140002406
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 0x1400023fd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140002409
add r8, 0x28
cmp r8, r9
jne 0x1400023e8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x1400024f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14003e9c0]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14000255f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14000255f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x14000255d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002554
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002568
add rax, 0x28
cmp rax, r9
jne 0x140002540
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x140002580
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x14003e9c0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x1400025f8
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400025f8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x1400025f8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1400025f8
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x1400025ec
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140002600
add rdx, 0x28
cmp rdx, r10
jne 0x1400025d8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x140002610
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x14000261e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400025f5
test r8d, r8d
jg 0x140002608
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret

Function at 0x1400079c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov eax, ecx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov byte [rbp + 0x10], al
mov byte [rbp - 1], 0
jmp 0x140007a59
mov byte [rbp - 2], 0
jmp 0x140007a4f
movzx eax, byte [rbp - 1]
movzx edx, byte [rbp - 2]
mov rcx, qword [rbp + 0x18]
movsxd rdx, edx
cdqe
shl rax, 2
add rax, rcx
add rax, rdx
movzx r8d, byte [rax]
movzx eax, byte [rbp + 0x10]
lea edx, [rax*4]
movzx eax, byte [rbp - 1]
add eax, edx
lea edx, [rax*4]
movzx eax, byte [rbp - 2]
add eax, edx
movsxd rdx, eax
mov rax, qword [rbp + 0x20]
add rax, rdx
movzx edx, byte [rax]
movzx eax, byte [rbp - 1]
movzx ecx, byte [rbp - 2]
xor edx, r8d
mov r8, qword [rbp + 0x18]
movsxd rcx, ecx
cdqe
shl rax, 2
add rax, r8
add rax, rcx
mov byte [rax], dl
add byte [rbp - 2], 1
cmp byte [rbp - 2], 3
jbe 0x1400079e1
add byte [rbp - 1], 1
cmp byte [rbp - 1], 3
jbe 0x1400079db
nop
nop
add rsp, 0x10
pop rbp
ret
Function at 0x140007d70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov dword [rbp - 0xc], 0x10
jmp 0x140007e63
cmp dword [rbp - 0xc], 0x10
jne 0x140007e33
mov rax, qword [rbp + 0x10]
add rax, 0xf0
mov rdx, qword [rax + 8]
mov rax, qword [rax]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov rdx, qword [rbp + 0x10]
lea rax, [rbp - 0x20]
mov rcx, rax
call sym.Cipher
mov dword [rbp - 0xc], 0xf
jmp 0x140007e26
mov rdx, qword [rbp + 0x10]
mov eax, dword [rbp - 0xc]
cdqe
movzx eax, byte [rdx + rax + 0xf0]
cmp al, 0xff
jne 0x140007e00
mov rdx, qword [rbp + 0x10]
mov eax, dword [rbp - 0xc]
cdqe
mov byte [rdx + rax + 0xf0], 0
sub dword [rbp - 0xc], 1
jmp 0x140007e26
mov rdx, qword [rbp + 0x10]
mov eax, dword [rbp - 0xc]
cdqe
movzx eax, byte [rdx + rax + 0xf0]
lea ecx, [rax + 1]
mov rdx, qword [rbp + 0x10]
mov eax, dword [rbp - 0xc]
cdqe
mov byte [rdx + rax + 0xf0], cl
jmp 0x140007e2c
cmp dword [rbp - 0xc], 0
jns 0x140007dd4
mov dword [rbp - 0xc], 0
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 8]
add rax, rdx
movzx ecx, byte [rax]
mov eax, dword [rbp - 0xc]
cdqe
movzx edx, byte [rbp + rax - 0x20]
mov r8, qword [rbp + 0x18]
mov rax, qword [rbp - 8]
add rax, r8
xor edx, ecx
mov byte [rax], dl
add qword [rbp - 8], 1
add dword [rbp - 0xc], 1
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x20]
jb 0x140007d98
nop
nop
add rsp, 0x40
pop rbp
ret
Function at 0x14001cf00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 8], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x14], 0
mov qword [rbp - 0x38], 0
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x20], rax
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x88]
mov ecx, eax
call sym.Rva2Offset
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x20]
mov ecx, eax
call sym.Rva2Offset
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 8], rax
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x24]
mov ecx, eax
call sym.Rva2Offset
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x18]
mov dword [rbp - 0x14], eax
jmp 0x14001d079
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
call sym.Rva2Offset
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x38]
mov rcx, rax
call sym.HashStringA
cmp eax, 0xa6caa1c5
je 0x14001d00b
mov rax, qword [rbp - 0x38]
mov rcx, rax
call sym.HashStringA
cmp eax, 0xffe885ef
jne 0x14001d06f
mov rax, qword [rbp - 0x38]
mov r9, rax
mov r8d, 0x3a
lea rdx, str.GetReflectiveLoaderOffset
lea rcx, str._DEBUG::_s::_d__FunctionName____s_n
call sym.printf_20
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x1c]
mov ecx, eax
call sym.Rva2Offset
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x10]
movzx eax, word [rax]
movzx eax, ax
shl rax, 2
add qword [rbp - 0x30], rax
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x30]
mov eax, dword [rax]
mov ecx, eax
call sym.Rva2Offset
jmp 0x14001d08f
add qword [rbp - 8], 4
add qword [rbp - 0x10], 2
mov eax, dword [rbp - 0x14]
lea edx, [rax - 1]
mov dword [rbp - 0x14], edx
test eax, eax
jne 0x14001cfc7
mov eax, 0
add rsp, 0x60
pop rbp
ret
Function at 0x140022330
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x48], 0
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x60], 0
mov qword [rbp - 0x58], 0
cmp qword [rbp + 0x10], 0
je 0x14002239c
cmp dword [rbp + 0x18], 0
jne 0x1400223a6
mov eax, 0
jmp 0x14002257b
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x88]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x8c]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x20]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x1c]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x38], rax
mov dword [rbp - 4], 0
jmp 0x140022547
mov eax, dword [rbp - 4]
lea rdx, [rax*4]
mov rax, qword [rbp - 0x30]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x40]
mov r8d, 1
mov edx, 0
mov rcx, rax
call sym.HashEx
cmp dword [rbp + 0x18], eax
jne 0x140022543
mov eax, dword [rbp - 4]
lea rdx, [rax + rax]
mov rax, qword [rbp - 0x38]
add rax, rdx
movzx eax, word [rax]
movzx eax, ax
lea rdx, [rax*4]
mov rax, qword [rbp - 0x28]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x48]
mov rdx, rax
mov rax, qword [rbp - 0x18]
cmp rdx, rax
jb 0x14002253d
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x20]
add rdx, rax
mov rax, qword [rbp - 0x48]
cmp rdx, rax
jbe 0x14002253d
mov rax, qword [rbp - 0x40]
mov rcx, rax
call sym.StringLengthA
mov word [rbp - 0x60], ax
movzx eax, word [rbp - 0x60]
add eax, 1
mov word [rbp - 0x5e], ax
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x58], rax
mov rax, qword [0x14003e880]
mov rax, qword [rax + 0x130]
test rax, rax
je 0x140022536
mov rax, qword [0x14003e880]
mov r10, qword [rax + 0x130]
lea rdx, [rbp - 0x48]
lea rax, [rbp - 0x60]
mov r9, rdx
mov r8d, 0
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call r10
test eax, eax
jns 0x14002253d
mov eax, 0
jmp 0x14002257b
mov eax, 0
jmp 0x14002257b
mov rax, qword [rbp - 0x48]
jmp 0x14002257b
add dword [rbp - 4], 1
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x18]
cmp dword [rbp - 4], eax
jb 0x140022431
mov eax, dword [rbp + 0x18]
mov r9d, eax
mov r8d, 0x1c0
lea rdx, str.LdrFunctionAddr
lea rcx, str._DEBUG::_s::_d__API_not_found:_FunctionHash:__lx__n
call sym.printf_1
mov eax, 0
sub rsp, 0xffffffffffffff80
pop rbp
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 [0x140147490]
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 [0x1401474a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.1401295e0
jmp 0x14000123c
mov rax, qword [0x1401474a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1401474a0]
mov dword [rax], 1
mov rax, qword [0x1401474e0]
mov rdx, rax
mov rax, qword [0x1401474d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x14014b024], 1
mov rax, qword [0x1401474a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1401474c0]
mov rdx, rax
mov rax, qword [0x1401474b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1401474a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140147490]
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 [0x1401473e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1401473e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.140128868
mov rax, qword [0x140147520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140147480]
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.140128060
mov eax, dword [0x14014b004]
lea rdx, [0x14014b008]
mov ecx, eax
call fcn.14000147c
call fcn.140127df7
mov rax, qword [0x140147410]
mov rax, qword [rax]
mov rdx, qword [0x14014b010]
mov qword [rax], rdx
mov rcx, qword [0x14014b010]
mov rdx, qword [0x14014b008]
mov eax, dword [0x14014b004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14014b01c], eax
mov eax, dword [0x14014b020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14014b01c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x14014b024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14014b01c]
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 [0x140147440]
mov dword [rax], 1
mov rax, qword [0x140147450]
mov dword [rax], 1
mov rax, qword [0x140147460]
mov dword [rax], 1
mov rax, qword [0x140147400]
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 0x140128070
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.1401293d0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x140128d42
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14014b168]
test eax, eax
je 0x140128dda
lea rax, [0x14014b140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14014b170]
mov qword [rbp - 8], rax
jmp 0x140128dbe
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 0x140128db2
cmp qword [rbp - 0x10], 0
je 0x140128db2
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 0x140128d78
lea rax, [0x14014b140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140128ddb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140128ee0
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 0x140128f08
mov eax, 0
jmp 0x140128f56
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 0x140128f31
mov eax, 0
jmp 0x140128f56
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 0x140128f51
mov eax, 0
jmp 0x140128f56
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140128f5c
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 0x140128fda
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140128fd1
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 0x140128fd1
mov rax, qword [rbp - 8]
jmp 0x140128fef
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 0x140128fa4
mov eax, 0
add rsp, 0x20
pop rbp
ret