joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18011f6e4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
xor edi, edi
mov rax, r15
lea rcx, [0x180195cc0]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x18011f73a
cmp word [rdx], r9w
jne 0x18011f73a
or byte [rax + rbp*8 + 0x38], 4
jmp 0x18011f73f
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x18011f8be
mov r11d, recv
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x18011f889
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x18011f787
cmp rcx, r8
jae 0x18011f7a7
cmp word [rcx], r9w
jne 0x18011f787
add rax, 4
mov edx, r9d
jmp 0x18011f78a
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x18011f75c
jmp 0x18011f8be
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18011f882
cmp dword [rsp + 0x80], edi
je 0x18011f882
lea r9, [0x180195cc0]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x18011f85c
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x18011f80f
mov word [rbx], bp
jmp 0x18011f8bb
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], recv
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x18011f82a
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x18011f8bb
cmp word [rsp + 0x70], bp
jne 0x18011f868
cmp rbx, rsi
je 0x18011f807
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180120404
cmp word [rsp + 0x70], bp
je 0x18011f8be
mov word [rbx], recv
jmp 0x18011f8bb
mov rcx, r15
lea r9, [0x180195cc0]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x18011f8b8
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x18011f8be
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180124e98
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180124ec8
xor eax, eax
jmp 0x180124f8b
mov rbp, rbx
cmp word [rax], si
je 0x180124eed
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180124ed4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180124ed0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180122c88
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x180124f2e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180124ec1
call fcn.18011acb0
mov rdi, rax
test rax, rax
jne 0x180124f44
xor ecx, ecx
call fcn.18011ac50
jmp 0x180124f23
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180122c88
test eax, eax
jne 0x180124f75
mov rcx, rdi
call fcn.18011ac50
jmp 0x180124f7f
xor ecx, ecx
call fcn.18011ac50
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x180124fa8
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 0x18012502f
mov rsi, rbx
cmp word [rax], bp
je 0x180124fee
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x180124fd8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x180124fd4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.18011acb0
mov rdi, rax
test rax, rax
je 0x18012501c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.18012fad0
mov rbp, rdi
xor ecx, ecx
call fcn.18011ac50
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 0x1801280e4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x180128157
cmp word [rcx], si
je 0x180128157
lea rdx, [0x180161268]
call fcn.18012baa8
test eax, eax
je 0x180128157
lea rdx, [0x180161280]
mov rcx, rbx
call fcn.18012baa8
test eax, eax
jne 0x18012814d
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x180128174
mov eax, dword [rsp + 0x30]
jmp 0x180128186
mov rcx, rbx
call fcn.1801188fc
jmp 0x180128186
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x180128178
xor eax, eax
jmp 0x180128186
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x180128186
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180128198
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.1801190fc
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x18012823b
cmp edi, dword [rsp + 0x30]
je 0x180128234
test ebp, ebp
je 0x180128234
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x180128210
sub dx, 0x61
cmp dx, 0x19
ja 0x18012821c
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x1801281fd
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x180128220
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x18012823d
mov eax, 1
jmp 0x18012823d
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18012adc4
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x18018f280]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x18012ae0e
call fcn.18010d6c4
mov dword [rax], send
call fcn.18010d6e8
mov dword [rax], recv
call fcn.18010dd68
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18008e310
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x18012ae19
lea eax, [rbx + 1]
jmp 0x18012adfb
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x18012adf9
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x18012adfb

Function at 0x18012c598
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.180120404
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180120404
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18012c6e5
cmp rax, 0xffffffffffffffff
je 0x18012c6e5
xor edi, edi
test rbp, rbp
jle 0x18012c693
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180118a90
mov rbx, rax
test rax, rax
jne 0x18012c620
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18012c689
mov edx, 0x8000
mov ecx, r14d
call fcn.18012c41c
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.18011e190
cmp eax, 0xffffffff
je 0x18012c669
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18012c630
mov edx, r15d
mov ecx, r14d
call fcn.18012c41c
jmp 0x18012c689
cmp byte [rsi + 0x38], dil
je 0x18012c680
cmp dword [rsi + 0x34], 5
jne 0x18012c680
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
cmp byte [rsi + 0x30], dil
je 0x18012c689
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18011ac50
jmp 0x18012c6f7
jns 0x18012c6f7
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180120404
cmp rax, 0xffffffffffffffff
jne 0x18012c6b1
cmp byte [rsi + 0x30], dil
je 0x18012c6f7
jmp 0x18012c6ed
mov ecx, r14d
call fcn.180121c44
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18012c6f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
jmp 0x18012c6f7
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18012c6f2
mov edi, dword [rsi + 0x2c]
jmp 0x18012c6f7
mov edi, 0x16
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180120404
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 0x18012cb10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18012cb38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18012cb38
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0040caf0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x0040cb00]
mov dword [rax], 1
mov rax, qword [0x0040cb10]
mov dword [rax], 1
mov rax, qword [0x0040cae0]
mov dword [rax], 1
mov rax, qword [0x0040c9c0]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x0040cad0]
mov dword [0x0040f008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x0040ca90]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x0040c970]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x402420
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0040f624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4025a8
mov rax, qword [0x0040f628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40246c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4024f5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x402450
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x4025dd
mov rax, qword [0x0040f628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0040f628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4025c0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4024ee
sub eax, 0x40
and eax, 0xffffffbf
jne 0x402550
add dword [0x0040f624], 1
cmp edi, 8
jae 0x402523
test dil, 4
jne 0x402594
test edi, edi
je 0x402518
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4025af
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x402518
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x40253c
jmp 0x402518
add rsi, qword [0x0040f628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4024ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x402518
xor esi, esi
jmp 0x402477
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x402518
mov rax, qword [0x0040f628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x402d30
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0040f900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040f8e0]
test rbx, rbx
je 0x402d84
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x402d7b
test rsi, rsi
je 0x402d7b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402d60
lea rcx, [0x0040f900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402fc0
Capabilities:
Parse pe header

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

Function at 0x402fe0
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 0x403021
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x403018
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x403023
add rax, 0x28
cmp rax, r9
jne 0x403004
xor eax, eax
ret

Function at 0x4030c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0040c9c0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40312d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40312d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40312d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x403124
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40312f
add rax, 0x28
cmp rax, r9
jne 0x403110
xor eax, eax
add rsp, 0x28
ret

Function at 0x403230
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0040c9c0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x403250
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x403248
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4032ad
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4032a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4032b4
add rax, 0x28
cmp rax, r9
jne 0x403290
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x4032d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x0040c9c0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x40333e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40333e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x40333e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x40333e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x403335
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x403345
add rcx, 0x28
cmp rcx, rax
jne 0x403320
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x403358
jmp 0x40333e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x403366
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x40333e
test r9d, r9d
jg 0x403350
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x40a220
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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 sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140009500
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14002a080]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400095d3
cmp byte [rcx + 0x71], 0
je 0x1400095d3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400095cf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140009594
sub eax, 1
je 0x140009598
cmp eax, 2
jne 0x1400095cf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001e480
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400095c6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400095cf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000957c
xor al, al
jmp 0x14000957c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001e480
add rsp, 0x60
pop rbx
ret
Function at 0x14000d380
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r9, rdx
mov r10, rcx
xor esi, esi
call fcn.1400096e0
movsx r11d, al
call fcn.1400096d0
movsx ecx, al
imul r11d, ecx
call fcn.140009710
movsx ebx, al
xor edx, edx
movsx eax, byte [0x14002a003]
xorps xmm2, xmm2
movsx ecx, byte [0x14002a002]
lea edi, [rbx + r11]
add eax, edi
div ecx
movsx ecx, byte [section..data]
xor edx, edx
sub eax, ecx
cvtsi2sd xmm2, rax
movsx eax, byte [0x14002a010]
movd xmm1, eax
movsx eax, byte [0x14002a001]
cvtdq2pd xmm1, xmm1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm0
subsd xmm1, xmm0
mulsd xmm1, xmm2
movsd qword [rsp + 0x40], xmm1
movsx eax, byte [0x14002a003]
movsx ecx, byte [0x14002a002]
add eax, edi
div ecx
movsx ecx, byte [section..data]
cmp eax, ecx
je 0x14000d467
call fcn.1400096f0
movsx edx, al
movsx eax, byte [0x14002a390]
imul edx, eax
lea r8d, [rdx + rdx*4]
add r8d, r8d
call fcn.140009720
movsx ecx, al
sub r8d, ecx
call fcn.140009700
movsx ecx, al
add r8d, ecx
movsx ecx, byte [0x14002a001]
add ecx, r8d
jne 0x14000d4c5
movsx eax, byte [0x14002a003]
xor edx, edx
imul ecx, r11d, 7
add ecx, ebx
add eax, ecx
movsx ecx, byte [0x14002a002]
div ecx
movsx ecx, byte [section..data]
cmp eax, ecx
je 0x14000d4bd
movsx eax, byte [0x14002a003]
xor edx, edx
movsx ecx, byte [0x14002a002]
add eax, edi
div ecx
movsx ecx, byte [section..data]
xorps xmm0, xmm0
sub eax, ecx
cvtsi2sd xmm0, rax
mulsd xmm0, qword [rsp + 0x40]
cvttsd2si eax, xmm0
jmp 0x14000d4c1
mov eax, dword [rsp + 0x40]
cmp esi, eax
jge 0x14000d4ea
cmp qword [r9 + 0x18], 0xf
jbe 0x14000d4cf
mov r9, qword [r9]
cmp qword [r10 + 0x18], 0xf
jbe 0x14000d4d9
mov r10, qword [r10]
mov rdx, r9
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
setne al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret