joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f880
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x14000f903
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
add rax, 1
cmp rax, 2
jb 0x14000f8ce
call fcn.140014640
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsi]
mov rdx, rsi
mov r9, rax
call fcn.1400146c0
mov rcx, qword [rsi]
call fcn.140014650
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x14000f8fc
mov qword [rsi], rdi
call fcn.140014640
mov r8, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
mov r9, rax
call fcn.140014680
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
adc eax, 0xf2c43760
cmp dl, byte [rdi + 0x6972bea4]
add bl, bh
push rdx
invalid
wait
cmpsd dword [rsi], dword [rdi]
invalid
invalid

Function at 0x140010e90
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov r14, rcx
mov rax, qword [0x140065020]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov word [rdi], 0
xor ebx, ebx
lea r15, str.PROGRAMFILES
mov rsi, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx + r15]
mov word [rsp + 0x20], 0
mov r8d, 0x104
mov rdx, rdi
call rsi
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140010eff
mov edx, eax
mov rcx, rdi
mov r8, r14
call fcn.140010e20
test al, al
jne 0x140010f0d
add rbx, 8
cmp rbx, 0x18
jne 0x140010ecd
xor esi, esi
jmp 0x140010f10
mov sil, 1
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.14002a340
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140029880]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140029890]
mov dword [rax], 1
mov rax, qword [0x1400298a0]
mov dword [rax], 1
mov rax, qword [0x1400297f0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140029870]
mov dword [0x14002f00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140029960]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140029940]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400297d0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400298c0]
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001318
mov ecx, 0x3e8
call rdi
xor eax, eax
lock cmpxchg qword [rbx], rsi
jne 0x1400011b0
mov rsi, qword [0x1400298d0]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x14000132f
mov eax, dword [rsi]
test eax, eax
je 0x140001390
mov dword [0x14002f008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x140001344
test edi, edi
je 0x140001365
mov rax, qword [0x140029820]
mov rax, qword [rax]
test rax, rax
je 0x14000121f
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call dbg._pei386_runtime_relocator
mov rcx, qword [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x1400298b0]
lea rcx, [dbg.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call dbg._fpreset
mov ebx, dword [0x14002f028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x14002f020]
mov rbp, rax
test ebx, ebx
jle 0x1400013b0
sub rdi, 8
xor ebx, ebx
nop dword [rax]
mov rcx, qword [r12 + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x14002f020], rbp
call dbg.__main
call dbg.__p___initenv
mov r8, qword [0x14002f018]
mov ecx, dword [0x14002f028]
mov qword [rax], r8
mov rdx, qword [0x14002f020]
call sym.main
mov ecx, dword [0x14002f00c]
mov dword [0x14002f010], eax
test ecx, ecx
je 0x1400013b8
mov edx, dword [0x14002f008]
test edx, edx
je 0x140001370
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x1400298d0]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011dd
mov ecx, 0x1f
call dbg._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011fc
mov rdx, qword [0x140029910]
mov rcx, qword [0x140029900]
call sym._initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001204
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001204
call sym._cexit
mov eax, dword [0x14002f010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140029930]
mov rcx, qword [0x140029920]
mov dword [rsi], 1
call sym._initterm
jmp 0x1400011f1
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
nop

Function at 0x140003eb9
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x140003ee9
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.nimCStrLen
mov rcx, rax
jmp 0x140003eee
mov ecx, 0
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140003f2a
Capabilities:
Terminate process

Disassembly:
push rbp
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov rbx, rcx
mov rax, qword [rbx]
mov rdx, qword [rbx + 8]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov ecx, 2
mov rax, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call rax
mov rcx, rax
lea rax, str.could_not_load:
mov rdx, rax
call sym.rawWrite
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.nimToCStringConv
mov rbx, rax
mov ecx, 2
mov rax, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call rax
mov rdx, rbx
mov rcx, rax
call sym.rawWrite
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0xc1
jne 0x140003fd6
mov ecx, 2
mov rax, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call rax
mov rcx, rax
lea rax, str._n_bad_format__library_may_be_wrong_architecture_
mov rdx, rax
call sym.rawWrite
jmp 0x140003fd7
nop
mov ecx, 2
mov rax, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call rax
mov rcx, rax
lea rax, [0x140027fa9]
mov rdx, rax
call sym.rawWrite
mov ecx, 1
call sym.exit
nop

Function at 0x140004820
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
lea rax, str.raiseOutOfMem
mov qword [rbp - 0x28], rax
lea rax, str.C:_nim_2.0.8lib_systemmmdisp.nim
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x20], 0
mov word [rbp - 0x10], 0
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.nimFrame_5
mov qword [rbp - 0x20], 0x2f
lea rax, str.C:_nim_2.0.8lib_systemmmdisp.nim
mov qword [rbp - 0x18], rax
mov rax, qword [0x14002f0f0]
test rax, rax
je 0x140004882
mov rax, qword [0x14002f0f0]
call rax
jmp 0x140004883
nop
mov qword [rbp - 0x20], 0x30
mov ecx, 2
mov rax, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call rax
mov rcx, rax
lea rax, str.out_of_memory_n
mov rdx, rax
call sym.rawWrite
mov qword [rbp - 0x20], 0x31
mov ecx, 1
call sym.exit
nop

Function at 0x140007d9b
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rax, str.osDeallocPages
mov qword [rbp - 0x38], rax
lea rax, str.C:_nim_2.0.8lib_systemosalloc.nim
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x30], 0
mov word [rbp - 0x20], 0
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.nimFrame_5
mov qword [rbp - 0x30], 0xbe
lea rax, str.C:_nim_2.0.8lib_systemosalloc.nim
mov qword [rbp - 0x28], rax
mov dword [rbp - 4], 0
mov rax, qword [rbp + 0x10]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jne 0x140007e4c
mov qword [rbp - 0x30], 0xbf
mov dword [rbp - 8], 0
lea rax, str.virtualFree_failing_
mov rcx, rax
call sym.printf
mov dword [rbp - 8], eax
mov qword [rbp - 0x30], 0xc0
mov ecx, 1
call sym.exit
nop
call sym.popFrame_5
nop
add rsp, 0x60
pop rbp
ret
Function at 0x14000e227
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000e48e
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
call sym.nimErrorFlag_4
mov qword [rbp - 8], rax
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
call sym.writeStackTrace__system_u2629
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
lea rax, [rbp - 0x30]
mov edx, 0x7d0
mov rcx, rax
call sym.dollar___systemZdollars_u8
mov rax, qword [rbp - 8]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
jne 0x14000e5c0
mov rax, qword [rbp - 0x30]
lea rdx, [rax + 0xa7]
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.rawNewString
mov rax, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
mov rax, qword [0x1400279a0]
mov rdx, qword [0x1400279a8]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
lea rdx, [rbp - 0x50]
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.appendString
mov rax, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
lea rdx, [rbp - 0x50]
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.appendString
mov rax, qword [0x140027a40]
mov rdx, qword [0x140027a48]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
lea rdx, [rbp - 0x50]
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.appendString
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x38]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.showErrorMessage2__system_u4013
mov ecx, 1
call sym.exit
nop
nop
add rsp, 0x70
pop rbp
ret

Function at 0x14000e6dc
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov ecx, 2
mov rax, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call rax
mov rcx, rax
lea rax, str.could_not_import:
mov rdx, rax
call sym.rawWrite
mov ecx, 2
mov rax, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call rax
mov rcx, rax
mov rax, qword [rbp + 0x10]
mov rdx, rax
call sym.rawWrite
mov ecx, 2
mov rax, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call rax
mov rcx, rax
lea rax, [0x140027fa9]
mov rdx, rax
call sym.rawWrite
mov ecx, 1
call sym.exit
nop
Function at 0x14000f1cf
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov qword [rbp - 0x10], 0
mov qword [rbp - 8], 0
lea rax, [rbp - 0x20]
mov edx, 0x7d0
mov rcx, rax
call sym.rawNewString
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rdx
lea rax, [rbp - 0x10]
mov rcx, rax
call sym.rawWriteStackTrace__system_u4342
cmp dword [rbp + 0x10], 2
jne 0x14000f259
lea rax, [rbp - 0x10]
mov edx, 0x1f
mov rcx, rax
call sym.prepareAdd
mov rax, qword [0x140027ab0]
mov rdx, qword [0x140027ab8]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
lea rdx, [rbp - 0x20]
lea rax, [rbp - 0x10]
mov rcx, rax
call sym.appendString
jmp 0x14000f398
nop
cmp dword [rbp + 0x10], 0xb
jne 0x14000f29c
lea rax, [rbp - 0x10]
mov edx, 0x3d
mov rcx, rax
call sym.prepareAdd
mov rax, qword [0x140027b10]
mov rdx, qword [0x140027b18]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
lea rdx, [rbp - 0x20]
lea rax, [rbp - 0x10]
mov rcx, rax
call sym.appendString
jmp 0x14000f398
nop
cmp dword [rbp + 0x10], 0x16
jne 0x14000f2df
lea rax, [rbp - 0x10]
mov edx, 0x1f
mov rcx, rax
call sym.prepareAdd
mov rax, qword [0x140027b50]
mov rdx, qword [0x140027b58]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
lea rdx, [rbp - 0x20]
lea rax, [rbp - 0x10]
mov rcx, rax
call sym.appendString
jmp 0x14000f398
nop
cmp dword [rbp + 0x10], 8
jne 0x14000f31f
lea rax, [rbp - 0x10]
mov edx, 0x1a
mov rcx, rax
call sym.prepareAdd
mov rax, qword [0x140027b90]
mov rdx, qword [0x140027b98]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
lea rdx, [rbp - 0x20]
lea rax, [rbp - 0x10]
mov rcx, rax
call sym.appendString
jmp 0x14000f398
nop
cmp dword [rbp + 0x10], 4
jne 0x14000f35f
lea rax, [rbp - 0x10]
mov edx, 0x1b
mov rcx, rax
call sym.prepareAdd
mov rax, qword [0x140027bd0]
mov rdx, qword [0x140027bd8]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
lea rdx, [rbp - 0x20]
lea rax, [rbp - 0x10]
mov rcx, rax
call sym.appendString
jmp 0x14000f398
nop
nop
lea rax, [rbp - 0x10]
mov edx, 0xf
mov rcx, rax
call sym.prepareAdd
mov rax, qword [0x140027c60]
mov rdx, qword [0x140027c68]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
lea rdx, [rbp - 0x20]
lea rax, [rbp - 0x10]
mov rcx, rax
call sym.appendString
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
lea rax, [rbp - 0x20]
mov rcx, rax
call sym.showErrorMessage2__system_u4013
mov ecx, 1
call sym.exit
nop
Function at 0x140010c4e
Capabilities:
Terminate process

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov byte [rbp - 1], 0
lea rax, [0x140026120]
mov rcx, rax
call sym.__emutls_get_address
movzx eax, byte [rax]
mov byte [rbp - 1], al
movzx eax, byte [rbp - 1]
xor eax, 1
test al, al
jne 0x140010c9a
lea rax, [0x1400261e0]
mov rcx, rax
call sym.__emutls_get_address
mov rax, qword [rax]
test rax, rax
setne al
mov byte [rbp - 1], al
jmp 0x140010c9b
nop
movzx eax, byte [rbp - 1]
xor eax, 1
test al, al
jne 0x140010cda
lea rax, [0x1400261e0]
mov rcx, rax
call sym.__emutls_get_address
mov rbx, rax
mov rax, qword [rbx]
mov rcx, rax
call sym.reportUnhandledError__system_u4370
mov edx, 0
mov rcx, rbx
call sym.eqsink___stdZtypedthreads_u177
mov ecx, 1
call sym.exit
nop
nop
add rsp, 0x38
pop rbx
pop rbp
ret

Function at 0x1400139a4
Capabilities:
Hash data with md5

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
lea rax, str.md5Init
mov qword [rbp - 0x38], rax
lea rax, str.C:UsersAdmin.nimblepkgs2checksums_0.2.1_d3c7a1d0c0dee8fa089bd7f4d474e005877b608achecksumsmd5.nim
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x30], 0
mov word [rbp - 0x20], 0
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.nimFrame_9
call sym.nimErrorFlag_7
mov qword [rbp - 8], rax
mov qword [rbp - 0x30], 0x118
mov rax, qword [rbp + 0x10]
mov dword [rax], 0x67452301
mov qword [rbp - 0x30], 0x119
mov rax, qword [rbp + 0x10]
mov dword [rax + 4], 0xefcdab89
mov qword [rbp - 0x30], 0x11a
mov rax, qword [rbp + 0x10]
mov dword [rax + 8], 0x98badcfe
mov qword [rbp - 0x30], 0x11b
mov rax, qword [rbp + 0x10]
mov dword [rax + 0xc], 0x10325476
mov qword [rbp - 0x30], 0x11c
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x10], 0
mov qword [rbp - 0x30], 0x11d
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x14], 0
mov qword [rbp - 0x30], 0x11e
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.clearBuffer__OOZOOZOnimbleZpkgs50Zchecksums4548O50O4945d51c55a49d48c48dee56fa485657bd55f52d525552e484853565555b544856aZchecksu
mov rax, qword [rbp - 8]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
nop
call sym.popFrame_9
nop
add rsp, 0x60
pop rbp
ret

Function at 0x1400194a0
Capabilities:
Write file on windows

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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14002f204]
mov rbx, rcx
test esi, esi
jle 0x140019640
mov rax, qword [0x14002f208]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001955b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400195e5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140019540
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140019662
mov rax, qword [0x14002f208]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14002f208]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140019647
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400195de
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400195f0
add dword [0x14002f204], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14002f208]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400195de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140019568
mov rax, qword [0x14002f208]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140019c00
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14002f260]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002f240]
test rbx, rbx
je 0x140019c64
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140019c5b
test eax, eax
jne 0x140019c5b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140019c40
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 0x140019ea0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140019eb8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140019ec0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140019ed0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x140019f1d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140019f14
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140019f1f
add rax, 0x28
cmp rax, r9
jne 0x140019f00
xor eax, eax
ret

Function at 0x140019f20
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140019fb0
mov rdx, qword [0x1400297f0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140019f9e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140019f9e
cmp word [rax + 0x18], 0x20b
jne 0x140019f9e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140019fb0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140019f89
add rbx, 0x28
cmp rbx, rdi
je 0x140019fb0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140019f80
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140019fc0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400297f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140019fe0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140019fe8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140019fe0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14001a03d
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]
mov rdx, r8
cmp rcx, r8
jb 0x14001a034
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140019fe0
add rax, 0x28
cmp rax, r9
jne 0x14001a020
xor eax, eax
ret

Function at 0x14001a040
Capabilities:
Parse pe header

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

Function at 0x14001a080
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400297f0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14001a0a0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14001a0a8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14001a0a0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14001a0f8
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14001a0ef
test rcx, rcx
je 0x14001a0a0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x14001a0e0
xor eax, eax
ret