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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1400a62b0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140024492
cmp word [rdx], r12w
jne 0x140024492
or byte [rax + r8*8 + 0x38], cl
jmp 0x140024498
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400245f3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400245ce
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400244d1
mov rcx, r9
jmp 0x1400244f4
cmp r9, rdx
jae 0x14002450b
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1400244b5
jmp 0x1400245f3
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400245c8
cmp dword [rsp + 0x80], edi
je 0x1400245c8
mov rdx, r14
lea r11, [0x1400a62b0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1400245a1
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140024574
mov word [rbx], r12w
jmp 0x1400245ef
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14002457d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400245ef
cmp word [rsp + 0x70], r12w
jne 0x1400245ae
cmp rbx, rsi
je 0x14002456e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400250c0
cmp word [rsp + 0x70], r12w
je 0x1400245f3
mov word [rbx], r13w
jmp 0x1400245ef
lea r11, [0x1400a62b0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400245eb
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400245f3
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140028fd4
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 0x14002905b
mov rsi, rbx
cmp word [rax], bp
je 0x14002901a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140029004
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140029000
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002114c
mov rdi, rax
test rax, rax
je 0x140029048
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000fb30
mov rbp, rdi
xor ecx, ecx
call fcn.140021110
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 0x140030080
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.1400250c0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400250c0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400301d0
cmp rax, 0xffffffffffffffff
je 0x1400301d0
xor edi, edi
test rbp, rbp
jle 0x14003017b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140021098
mov rbx, rax
test rax, rax
jne 0x140030108
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140030171
mov edx, 0x8000
mov ecx, r14d
call fcn.14001de6c
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.140023378
cmp eax, 0xffffffff
je 0x140030151
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140030118
mov edx, r15d
mov ecx, r14d
call fcn.14001de6c
jmp 0x140030171
cmp byte [rsi + 0x38], dil
je 0x140030168
cmp dword [rsi + 0x34], 5
jne 0x140030168
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140030171
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140021110
jmp 0x1400301e4
jns 0x1400301e4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400250c0
cmp rax, 0xffffffffffffffff
jne 0x14003019c
cmp byte [rsi + 0x30], dil
je 0x1400301e4
mov edi, dword [rsi + 0x2c]
jmp 0x1400301e4
mov ecx, r14d
call fcn.140029558
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400301e4
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 0x1400301e4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400301dd
mov eax, dword [rsi + 0x2c]
jmp 0x1400301e2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400250c0
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 0x140034630
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x50
mov dword [rax - 0x2c], 0xb0027
lea rcx, [rsp + 0x2c]
mov dword [rax - 0x28], 0x25001b
mov dword [rax - 0x24], 0xb002e
mov dword [rax - 0x20], 0x2e0062
mov dword [rax - 0x1c], 0x290007
mov eax, 0x52
mov word [rsp + 0x40], ax
call fcn.14000c0f0
mov rsi, qword [rax]
mov rax, qword gs:[0x60]
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x1400346b9
nop word [rax + rax]
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
call fcn.14000eac8
test rax, rax
jne 0x14003472e
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x1400346a0
xor eax, eax
lea rcx, [rsp + 0x20]
mov qword [0x1400a68b0], rax
mov dword [rsp + 0x20], 0x3a0002
mov dword [rsp + 0x24], 0x7002d
mov dword [rsp + 0x28], 0x470007
call fcn.1400031e0
mov rsi, qword [rax]
mov rax, qword gs:[0x60]
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x140034719
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
call fcn.14000eac8
test rax, rax
jne 0x140034719
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x140034700
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov rax, qword [rbx + 0x20]
jmp 0x1400346bb
Function at 0x140035520
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r15
mov rbp, rsp
sub rsp, 0x40
mov rbx, qword [0x1400a68b8]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x26003f
xor r15d, r15d
mov dword [rbp - 0x1c], 0x7002c
mov dword [rbp - 0x18], 0x740007
mov dword [rbp - 0x14], 0x410012
mov dword [rbp - 0x10], 0x30
mov dword [rbp - 0xc], 0x47003e
call fcn.14000a390
mov rcx, qword [rax]
call rbx
movdqa xmm0, xmmword [0x140047e70]
lea rcx, [rbp - 0x20]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x1400a68a8], rax
mov word [rbp - 0x10], 0x233e
mov byte [rbp - 0xe], 0x53
call fcn.14000aa30
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x72c263f
mov dword [rbp - 0x1c], 0xa580207
mov dword [rbp - 0x18], 0x22261937
mov word [rbp - 0x14], 0x6133
call fcn.140009eb0
mov r11, qword [0x1400a68a8]
mov rdi, qword [rax]
test r11, r11
je 0x140035679
test rdi, rdi
je 0x140035679
movsxd rax, dword [r11 + 0x3c]
mov r10d, r15d
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], r14
mov ecx, dword [rax + r11 + 0x88]
add rcx, r11
mov esi, dword [rcx + 0x1c]
mov r9d, dword [rcx + 0x20]
add rsi, r11
mov r14d, dword [rcx + 0x24]
add r9, r11
mov ebx, dword [rcx + 0x18]
add r14, r11
test ebx, ebx
je 0x140035643
mov eax, dword [r9]
mov r8, rdi
add rax, r11
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140035633
inc rax
test ecx, ecx
jne 0x140035620
test edx, edx
je 0x140035662
inc r10d
add r9, 4
cmp r10d, ebx
jb 0x140035610
mov qword [0x1400a6890], r15
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop rdi
pop rbp
ret
mov eax, r10d
movzx ecx, word [r14 + rax*2]
mov eax, dword [rsi + rcx*4]
add rax, r11
mov qword [0x1400a6890], rax
jmp 0x14003564a
mov rbx, qword [rsp + 0x78]
mov qword [0x1400a6890], r15
add rsp, 0x40
pop r15
pop rdi
pop rbp
ret
Function at 0x140037d40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor ebx, ebx
mov r13, rdx
mov rbp, rcx
mov edi, dword [rax + rcx + 0x88]
add rdi, rcx
mov r14d, dword [rdi + 0x1c]
mov r15d, dword [rdi + 0x20]
add r14, rcx
mov r12d, dword [rdi + 0x24]
add r15, rcx
add r12, rcx
cmp dword [rdi + 0x18], ebx
jbe 0x140037db7
nop dword [rax]
movzx eax, word [r12 + rbx*2]
mov rdx, r13
mov ecx, dword [r15 + rbx*4]
add rcx, rbp
mov esi, dword [r14 + rax*4]
add rsi, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x140037dd6
inc ebx
cmp ebx, dword [rdi + 0x18]
jb 0x140037d90
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, rsi
jmp 0x140037db9
Function at 0x140005d94
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ebx, edx
lea rcx, [0x1400561a1]
call fcn.140010b20
mov r8d, ebx
lea rcx, str.APPDATA
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor ecx, ecx
mov r8d, 0x80070057
test eax, eax
cmovne r8d, ecx
je 0x140005def
mov edx, ebx
lea r8, str.MicrosoftWindowsStart_MenuPrograms_
mov rcx, rdi
call fcn.140017220
neg eax
sbb r8d, r8d
and r8d, 0x80070057
mov rbx, qword [rsp + 0x30]
mov eax, r8d
add rsp, 0x20
pop rdi
ret

Function at 0x140011bed
Capabilities:
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xe8
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x58], 0
jmp 0x1400151dc
mov rax, qword [rsp + 0x110]

Function at 0x14001280f
Capabilities:
Access peb ldr_data
Get process filename

Disassembly:
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
test eax, eax
jne 0x140015341
invalid
cmp eax, dword [rax]
invalid
jmp 0x140013681
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword gs:[0x60]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x20]
sub rax, 0x10
jmp 0x140013417
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax*2 + 2]
mov qword [rsp + 0x38], rax
jmp 0x1400143bb
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
jmp 0x140013abf
mov rcx, qword [rsp + 0x70]
call fcn.140012054
jmp 0x1400157bd
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14001428a
jmp 0x140017b87
jmp 0x1400143bb
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x10]
sub rax, 0x10
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x30], rax
je 0x140014585
jmp 0x140013abf
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
test eax, eax
jne 0x140015341
jmp 0x140013681
mov rax, qword [rsp + 0x48]
add rsp, 0x68
ret
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
cmp eax, 0x5c
je 0x14001286e
jmp 0x140014285
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call fcn.140014492
jmp 0x140015a87
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x48], rax
jmp 0x140014585
test eax, eax
jne 0x14001428a
jmp 0x140015a5b
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0
jmp 0x1400117aa
Function at 0x1400142b1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
jb 0x140012fe5
jmp 0x140015d35
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x20], 0
jmp 0x140017351
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x1a0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x24], 0
jmp 0x140013db9
test eax, eax
jne 0x1400169f3
jmp 0x140012ba9
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
jmp 0x140011437
mov rax, qword [rsp + 0x38]
add rsp, 0x198
ret
mov rax, rcx
mov qword [rsp + 0x58], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
and al, 0x58
lea rax, [rcx + rax + 0x88]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x1a0]
jmp 0x140017953
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x1a0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x68]
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x28], ax
jmp 0x140016e16
jmp 0x1400154fd
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x198
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x1a0]
add rcx, rax
jmp 0x1400135a1
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
je 0x140017d12
jmp 0x14001458f
sbb eax, eax
or eax, 1
jmp 0x1400127db
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x24], eax
jae 0x140011437
jmp 0x140013ade
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 4]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x38], rax
ja 0x140012fe5
jmp 0x1400114b3
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x24], eax
jae 0x140011437
jmp 0x140013ade
jmp 0x140016849
xor eax, eax
jmp 0x1400127db
movzx eax, word [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x1a0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x1a8]
sub rcx, rax
jmp 0x1400142e8
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
movsx eax, byte [rcx + rax]
cmp eax, 0x2e
je 0x1400133a9
jmp 0x140011c28
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x1a0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x1a0]
jmp 0x140012081
inc rax
test dl, dl
jne 0x1400142e8
jmp 0x140016d97
Function at 0x14001645c
Capabilities:
Enumerate pe sections

Disassembly:
mov rax, qword [rax]
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx]
movzx ecx, word [rcx + 0x14]
lea rax, [rax + rcx + 0x18]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x24], 0
jmp 0x1400116e8
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x88]
jmp 0x140015c86

Function at 0x14001cc2c
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 0x14001ca97
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001ca97
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001ca97
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001ca97
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001ca97
cmp dword [rcx + 0x84], 0xe
jbe 0x14001ca97
cmp dword [rcx + 0xf8], 0
je 0x14001ca97
mov ecx, ebx
call fcn.14001cb48
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.14001c924
nop
cmp dword [rbp + 0x20], 0
je 0x14001cae5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001caf0
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001ca28

Function at 0x140029cd0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140029ce6
mov al, 1
jmp 0x140029d46
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140029cf7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140029d44
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002dcc4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140029d44
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140029d44
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140029d44
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140029d46
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140030218
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.140024f94
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 0x1400302b9
cmp ebx, dword [rsp + 0x30]
je 0x1400302b2
test esi, esi
je 0x1400302b2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14003028d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14003029a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140030277
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14003029e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400302bb
mov eax, 1
jmp 0x1400302bb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002915c
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.14001c754
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c754
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400292ac
cmp rax, 0xffffffffffffffff
je 0x1400292ac
xor edi, edi
test rbp, rbp
jle 0x140029257
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f068
mov rbx, rax
test rax, rax
jne 0x1400291e4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002924d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a088
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.14001d430
cmp eax, 0xffffffff
je 0x14002922d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400291f4
mov edx, r15d
mov ecx, r14d
call fcn.14001a088
jmp 0x14002924d
cmp byte [rsi + 0x38], dil
je 0x140029244
cmp dword [rsi + 0x34], 5
jne 0x140029244
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002924d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001ae1c
jmp 0x1400292c0
jns 0x1400292c0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c754
cmp rax, 0xffffffffffffffff
jne 0x140029278
cmp byte [rsi + 0x30], dil
je 0x1400292c0
mov edi, dword [rsi + 0x2c]
jmp 0x1400292c0
mov ecx, r14d
call fcn.140018540
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400292c0
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 0x1400292c0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400292b9
mov eax, dword [rsi + 0x2c]
jmp 0x1400292be
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c754
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 0x140e6ae02
Capabilities:
Encode data using xor

Disassembly:
mov rcx, qword [rsp + 0x10]
or rsi, rsi
call fcn.140ee93f5
mov qword [rsp + 0x18], 0xffffffffaef770cb
push rcx
pushfq
movabs r9, 0x735329bc49a57eec
movabs rcx, 0x270152ed1b055716
xor r9w, cx
push rsi
neg r9w
movabs rcx, 0x3f1932c518344a02
mov r9, qword [rsp + 0x28]
mov rsi, rcx
add sil, 0xfd
jge 0x140e6ae21
lea rcx, [rcx*4 + 0x7cdc363b]
jae 0x140de5642
invalid
Function at 0x140001000
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
movsxd r11, dword [0x1400058b4]
movsxd rsi, edx
lea rdi, [0x140005820]
mov rdi, qword [rdi + r11*8]
lea eax, [rsi - 1]
inc r11d
mov rbx, rcx
test eax, eax
jle 0x14000109b
mov qword [rsp + 0x10], rbp
mov r8, rdi
sub rbx, rdi
lea rbp, [0x14000505e]
mov r10d, eax
movzx eax, byte [rbx + r8]
mov rdx, rbp
mov r9d, 4
mov byte [r8], al
nop word [rax + rax]
movzx eax, byte [rdx + 1]
sub rdx, 4
xor byte [r8], al
movzx eax, byte [rdx + 4]
xor al, byte [r8]
mov byte [r8], al
movzx ecx, byte [rdx + 3]
xor cl, al
mov byte [r8], cl
movzx eax, byte [rdx + 2]
xor al, cl
sub r9, 1
mov byte [r8], al
jne 0x140001060
inc r8
sub r10, 1
jne 0x140001042
mov rbp, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
xor eax, eax
cmp r11d, 0xf
cmovge r11d, eax
mov byte [rsi + rdi - 1], 0
mov rsi, qword [rsp + 0x20]
mov dword [0x1400058b4], r11d
mov rax, rdi
pop rdi
ret

Function at 0x1400010c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
movsxd rax, dword [rcx + 0x3c]
xor r9d, r9d
mov rdi, rdx
mov r8d, dword [rax + rcx + 0x88]
mov r11, rcx
add r8, rcx
mov esi, dword [r8 + 0x1c]
mov ebp, dword [r8 + 0x24]
mov r10d, dword [r8 + 0x20]
mov ebx, dword [r8 + 0x18]
add rsi, rcx
add rbp, rcx
add r10, rcx
test ebx, ebx
je 0x140001143
nop dword [rax]
mov r8d, dword [r10]
mov rax, rdi
add r8, r11
sub r8, rdi
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140001133
inc rax
test ecx, ecx
jne 0x140001120
test edx, edx
je 0x14000115a
inc r9d
add r10, 4
cmp r9d, ebx
jb 0x140001110
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
movzx ecx, word [rbp + r9*2]
mov eax, dword [rsi + rcx*4]
add rax, r11
jmp 0x140001145