joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140034e4c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140034e83
call fcn.140033f18
mov dword [rax], 0x16
call fcn.140034430
xor eax, eax
jmp 0x140034f11
mov rdx, r9
mov rcx, r8
call fcn.140034de8
mov rbx, rax
test rax, rax
je 0x140034f0e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140034d14]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140034efb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140033e8c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140034ee2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140034ef1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14003e064
jmp 0x140034f0e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140034f0b
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140034ff8
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov r14, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.14002ea28
mov rax, qword [rbp - 0x58]
mov edi, 0xfde9
cmp dword [rax + 0xc], edi
jne 0x140035043
xor ebx, ebx
cmp byte [rbp - 0x48], bl
je 0x140035077
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140035077
call fcn.14003eaf8
xor ebx, ebx
test eax, eax
jne 0x140035065
cmp byte [rbp - 0x48], bl
je 0x14003505e
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, 1
jmp 0x140035077
cmp byte [rbp - 0x48], bl
je 0x140035075
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, ebx
mov r9d, edi
mov qword [rbp - 0x30], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x28], rbx
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x20], rbx
mov rcx, rsi
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rbx
mov byte [rbp - 8], bl
call fcn.14002e790
mov esi, eax
test eax, eax
je 0x1400350b3
call fcn.140033f18
or edi, 0xffffffff
mov dword [rax], esi
jmp 0x14003510c
mov r9d, edi
mov qword [rbp - 0x60], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x58], rbx
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x50], rbx
mov rcx, r14
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
mov byte [rbp - 0x38], bl
call fcn.14002e790
mov edi, eax
test eax, eax
je 0x1400350ef
call fcn.140033f18
mov dword [rax], edi
or edi, 0xffffffff
jmp 0x1400350fe
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x20]
call fcn.140043240
mov edi, eax
cmp byte [rbp - 0x38], bl
je 0x14003510c
mov rcx, qword [rbp - 0x50]
call fcn.14003e064
cmp byte [rbp - 8], bl
je 0x14003511a
mov rcx, qword [rbp - 0x20]
call fcn.14003e064
lea r11, [rsp + 0x80]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140035570
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x14003558f
call fcn.1400434b0
jmp 0x140035644
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.14002ea28
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x1400355da
cmp byte [rbp - 0x38], 0
je 0x14003560f
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14003560f
call fcn.14003eaf8
test eax, eax
jne 0x1400355fb
cmp byte [rbp - 0x38], al
je 0x1400355f3
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14003560f
cmp byte [rbp - 0x38], 0
je 0x14003560c
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.14002e790
test eax, eax
je 0x140035628
or ebx, 0xffffffff
jmp 0x140035633
mov rcx, qword [rbp - 0x20]
call fcn.1400434b0
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x140035642
mov rcx, qword [rbp - 0x20]
call fcn.14003e064
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret

Function at 0x140035c8c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140035a88
Function at 0x140042e48
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140042e68
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140033e8c
or eax, 0xffffffff
jmp 0x140042e6a
xor eax, eax
add rsp, 0x28
ret

Function at 0x140043368
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14004337e
mov al, 1
jmp 0x1400433de
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14004338f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400433dc
mov ecx, dword [rcx + 0x18]
nop
call fcn.140043988
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400433dc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400433dc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400433dc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400433de
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140044e70
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 0x140044ef7
mov rsi, rbx
cmp word [rax], bp
je 0x140044eb6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140044ea0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140044e9c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14003e0a0
mov rdi, rax
test rax, rax
je 0x140044ee4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002a150
mov rbp, rdi
xor ecx, ecx
call fcn.14003e064
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 0x140047ff8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14003e478
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140048099
cmp ebx, dword [rsp + 0x30]
je 0x140048092
test esi, esi
je 0x140048092
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14004806d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14004807a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140048057
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14004807e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14004809b
mov eax, 1
jmp 0x14004809b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004bafc
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, [0x1400753a0]
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 0x14004bb53
cmp word [rdx], r13w
jne 0x14004bb53
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14004bb58
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14004bc7d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14004bc9e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14004bb91
mov rdx, r9
mov word [rbx], cx
jmp 0x14004bbb8
cmp r9, r8
jae 0x14004bbc8
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 0x14004bb72
jmp 0x14004bc7d
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 0x14004bc72
cmp dword [rsp + 0x80], esi
je 0x14004bc72
lea r8, [0x1400753a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14004bc4a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14004bc1a
mov word [rbx], r13w
jmp 0x14004bc7a
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 0x14004bc27
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14004bc7a
cmp word [rsp + 0x70], r13w
jne 0x14004bc57
cmp rbx, r14
je 0x14004bc14
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140043c68
cmp word [rsp + 0x70], r13w
je 0x14004bc7d
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, [0x1400753a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14004bc77
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14004bc7d
Function at 0x14004ebdc
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.140043c68
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140043c68
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14004ed2c
cmp rax, 0xffffffffffffffff
je 0x14004ed2c
xor edi, edi
test rbp, rbp
jle 0x14004ecd7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14003dfec
mov rbx, rax
test rax, rax
jne 0x14004ec64
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14004eccd
mov edx, 0x8000
mov ecx, r14d
call fcn.140036ad8
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.14004273c
cmp eax, 0xffffffff
je 0x14004ecad
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14004ec74
mov edx, r15d
mov ecx, r14d
call fcn.140036ad8
jmp 0x14004eccd
cmp byte [rsi + 0x38], dil
je 0x14004ecc4
cmp dword [rsi + 0x34], 5
jne 0x14004ecc4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14004eccd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14003e064
jmp 0x14004ed40
jns 0x14004ed40
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140043c68
cmp rax, 0xffffffffffffffff
jne 0x14004ecf8
cmp byte [rsi + 0x30], dil
je 0x14004ed40
mov edi, dword [rsi + 0x2c]
jmp 0x14004ed40
mov ecx, r14d
call fcn.140043988
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14004ed40
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 0x14004ed40
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14004ed39
mov eax, dword [rsi + 0x2c]
jmp 0x14004ed3e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140043c68
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 0x141337058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1413371df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141337089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14133706f
add dl, dl
jne 0x141337096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1413370f6
xor eax, eax
add dl, dl
jne 0x1413370a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1413371ad
add dl, dl
jne 0x1413370b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413370c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413370d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413370dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1413370ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14133707e
mov eax, 1
add dl, dl
jne 0x141337106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141337113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1413370fb
sub eax, ebx
mov ebx, 1
jne 0x14133714c
mov ecx, 1
add dl, dl
jne 0x14133712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14133713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141337123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14133707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141337168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141337175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14133715d
cmp eax, 0x7d00
jae 0x14133719b
cmp eax, 0x500
jb 0x141337196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14133707e
cmp eax, 0x7f
ja 0x14133719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14133707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1413371d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14133707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1c44b1521
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
cmp dword [rbp + 0x18], 3
ja 0x1c44b15e7
cmp dword [rbp + 0x18], 2
jae 0x1c44b15e3
cmp dword [rbp + 0x18], 0
je 0x1c44b15c2
cmp dword [rbp + 0x18], 1
jne 0x1c44b15e7
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.Execute_void_]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x1c44b15a6
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x1c44b15e7
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_create_thread___u__n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x1c44b15e7
mov rax, qword [0x1c44bc020]
test rax, rax
je 0x1c44b15e6
mov rax, qword [0x1c44bc020]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x1c44b15e6
nop
jmp 0x1c44b15e7
nop
mov eax, 1
add rsp, 0x40
pop rbp
ret

Function at 0x1c44b17a0
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 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 rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x1c44b1810
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1c44bc074]
mov rbx, rcx
test esi, esi
jle 0x1c44b1940
mov rax, qword [0x1c44bc078]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1c44b185b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1c44b18e5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1c44b1840
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1c44b1962
mov rax, qword [0x1c44bc078]
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 [0x1c44bc078]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1c44b1947
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1c44b18de
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1c44b18f0
add dword [0x1c44bc074], 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 [0x1c44bc078]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1c44b18de
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 0x1c44b1868
mov rax, qword [0x1c44bc078]
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 0x1c44b1ce0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1c44bc0a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1c44bc080]
test rbx, rbx
je 0x1c44b1d3c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1c44b1d33
test eax, eax
jne 0x1c44b1d33
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1c44b1d18
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 0x1c44b1f50
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1c44b1f68
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1c44b1f70
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1c44b1f80
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 0x1c44b1fcd
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 0x1c44b1fc4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1c44b1fcf
add rax, 0x28
cmp rax, r9
jne 0x1c44b1fb0
xor eax, eax
ret

Function at 0x1c44b1fd0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1c44b2060
mov rdx, qword [0x1c44b9660]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1c44b204e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1c44b204e
cmp word [rax + 0x18], 0x20b
jne 0x1c44b204e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1c44b2060
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1c44b2039
add rbx, 0x28
cmp rbx, rdi
je 0x1c44b2060
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1c44b2030
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 0x1c44b2070
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1c44b20f0
Capabilities:
Parse pe header

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

Function at 0x1c44b2130
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1c44b9660]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1c44b2150
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1c44b2158
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1c44b2150
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1c44b21a0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1c44b2197
test rcx, rcx
je 0x1c44b2150
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1c44b2188
xor eax, eax
ret
Function at 0x1c44b21b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1c44b9660]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1c44b21cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1c44b21d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x1c44b9660]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1c44b2210
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1c44b2218
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1c44b2210
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1c44b2210
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1c44b2264
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1c44b2270
add rdx, 0x28
cmp rdx, r9
jne 0x1c44b2250
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1c44b9660]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1c44b22a2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1c44b22b0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1c44b22a2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1c44b22a2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1c44b22a2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1c44b2305
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1c44b2318
add rdx, 0x28
cmp r10, rdx
jne 0x1c44b22f0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1c44b2327
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1c44b2337
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1c44b230e
test ecx, ecx
jg 0x1c44b2320
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret