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

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r9, qword [rcx + 8]
xor r8d, r8d
mov word [rsp + 0x30], r8w
mov rdx, rcx
mov dword [rsp + 0x34], r8d
test r9, r9
je 0x1400149f2
mov ecx, dword [rcx + 0x40]
sub ecx, 1
je 0x14001499e
sub ecx, 1
je 0x14001494d
sub ecx, 1
je 0x1400148fd
sub ecx, 1
je 0x1400148e3
cmp ecx, 1
jne 0x1400149f2
mov rcx, r9
call fcn.1400257d0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140016e60
add rsp, 0x48
ret
mov rcx, rdx
call fcn.140015310
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140016e60
add rsp, 0x48
ret
mov edx, 1
lea rcx, [rsp + 0x30]
mov r8d, edx
call fcn.14002367c
lea rax, [rsp + 0x34]
mov dword [rsp + 0x28], 1
mov r9d, 1
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx eax, word [rsp + 0x34]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140016e60
add rsp, 0x48
ret
mov edx, 1
lea rcx, [rsp + 0x30]
mov r8d, edx
call fcn.14002367c
mov r9d, 1
mov dword [rsp + 0x28], 1
lea rax, [rsp + 0x34]
mov ecx, r9d
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx eax, word [rsp + 0x34]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140016e60
add rsp, 0x48
ret
mov edx, 1
lea rcx, [rsp + 0x30]
mov r8d, edx
call fcn.14002367c
movzx eax, word [rsp + 0x30]
cmp al, 0x80
jae 0x1400149ce
movzx eax, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140016e60
add rsp, 0x48
ret
movzx ecx, al
lea rax, [0x140048ba0]
movzx eax, word [rax + rcx*2 - 0x100]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140016e60
add rsp, 0x48
ret
movzx eax, r8w
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140016e60
add rsp, 0x48
ret
Function at 0x140014b20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov edi, 1
xor eax, eax
mov word [rsp + 0x40], ax
mov byte [rsp + 0x42], al
mov rax, qword [rcx]
call qword [rax + 0x28]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
lea r8d, [rdi + 1]
lea rdx, [0x140048fbc]
lea rcx, [rsp + 0x20]
call fcn.1400059f0
nop
lea rdx, [rbx + 0x10]
lea r8, [rsp + 0x20]
call fcn.140002660
mov qword [rbx + 8], rax
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140014bcd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014bc8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014c5c
call fcn.140016e80
mov r9, qword [rbx + 8]
test r9, r9
je 0x140014c42
mov r8d, 3
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.14002367c
movzx eax, byte [rsp + 0x40]
cmp al, 0xff
jne 0x140014c00
cmp byte [rsp + 0x41], 0xfe
jne 0x140014c19
mov edi, 5
jmp 0x140014c39
cmp al, 0xef
jne 0x140014c19
cmp byte [rsp + 0x41], 0xbb
jne 0x140014c19
cmp byte [rsp + 0x42], 0xbf
jne 0x140014c19
mov edi, 4
jmp 0x140014c39
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 8]
call fcn.140024380
mov qword [rbx + 0x48], 0
mov rcx, rbx
call fcn.140014d50
mov edi, eax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x28]
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140016e60
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
call fcn.1400231e8
int3

Function at 0x140014cd0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov byte [rsp + 0x20], 0
mov rcx, qword [rcx + 8]
call fcn.14002441c
test eax, eax
jne 0x140014d2c
mov r9, qword [rbx + 8]
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, edx
call fcn.14002367c
add qword [rbx + 0x48], rax
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140016e60
add rsp, 0x30
pop rbx
ret
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140016e60
add rsp, 0x30
pop rbx
ret
Function at 0x140015310
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r9, qword [rcx + 8]
mov ebx, 1
mov rsi, rcx
xor ebp, ebp
mov edx, ebx
mov qword [rsp + 0x38], rbp
mov r8d, ebx
mov dword [rsp + 0x30], ebp
lea rcx, [rsp + 0x38]
call fcn.14002367c
mov dil, 0x40
test byte [rsp + 0x38], dil
je 0x140015390
mov r9, qword [rsi + 8]
lea rcx, [rsp + 0x38]
movsxd rax, ebx
mov edx, 1
add rcx, rax
mov r8d, edx
inc ebx
call fcn.14002367c
shr dil, 1
cmp ebx, 7
jge 0x1400153e1
test byte [rsp + 0x38], dil
jne 0x140015363
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 1
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x38]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx eax, word [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140016e60
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
movzx eax, bp
jmp 0x1400153bf

Function at 0x140015fb4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140015fee
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140015ff3
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14001603c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14003e8e0]
cmp byte [rcx + rax], 0
je 0x14001603c
dec r8
sub rdx, 1
jne 0x140016022
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140017be8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140017c32
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140017c32
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140017c32
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140017c32
cmp dword [rcx + 0x84], 0xe
jbe 0x140017c32
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140017c34
xor al, al
add rsp, 0x28
ret
Function at 0x140023e94
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140017790
sub rsp, rax
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002b07c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140023ee3
mov rax, rbp
jmp 0x140023feb
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x54570]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002f00c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x54570]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140023fe7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140023fe7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002f00c
test rax, rax
js 0x140023fe7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140023fe7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140023fd9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140023fd9
cmp byte [rcx], 0xd
jne 0x140023fbf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140023fce
cmp byte [rcx + 1], 0xa
jne 0x140023fce
inc rcx
jmp 0x140023fce
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x52460]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140023fa1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140023feb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140016e60
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140027380
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002717c
Function at 0x14002cfc8
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, [0x140054570]
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 0x14002d01f
cmp word [rdx], r13w
jne 0x14002d01f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14002d024
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14002d149
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002d16a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14002d05d
mov rdx, r9
mov word [rbx], cx
jmp 0x14002d084
cmp r9, r8
jae 0x14002d094
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 0x14002d03e
jmp 0x14002d149
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 0x14002d13e
cmp dword [rsp + 0x80], esi
je 0x14002d13e
lea r8, [0x140054570]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002d116
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002d0e6
mov word [rbx], r13w
jmp 0x14002d146
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 0x14002d0f3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002d146
cmp word [rsp + 0x70], r13w
jne 0x14002d123
cmp rbx, r14
je 0x14002d0e0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002f014
cmp word [rsp + 0x70], r13w
je 0x14002d149
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, [0x140054570]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002d143
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14002d149
Function at 0x14002eb90
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002eba6
mov al, 1
jmp 0x14002ec06
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002ebb7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14002ec04
mov ecx, dword [rcx + 0x18]
nop
call fcn.140033220
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002ec04
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002ec04
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002ec04
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002ec06
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14003256c
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 0x1400325f3
mov rsi, rbx
cmp word [rax], bp
je 0x1400325b2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003259c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140032598
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140029d4c
mov rdi, rax
test rax, rax
je 0x1400325e0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003a590
mov rbp, rdi
xor ecx, ecx
call fcn.140029dac
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 0x140035774
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.14002b588
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 0x140035815
cmp ebx, dword [rsp + 0x30]
je 0x14003580e
test esi, esi
je 0x14003580e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400357e9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400357f6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400357d3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400357fa
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140035817
mov eax, 1
jmp 0x140035817
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400398ac
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.14002f014
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002f014
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400399fc
cmp rax, 0xffffffffffffffff
je 0x1400399fc
xor edi, edi
test rbp, rbp
jle 0x1400399a7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14002bb5c
mov rbx, rax
test rax, rax
jne 0x140039934
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14003999d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400281cc
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.14002e694
cmp eax, 0xffffffff
je 0x14003997d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140039944
mov edx, r15d
mov ecx, r14d
call fcn.1400281cc
jmp 0x14003999d
cmp byte [rsi + 0x38], dil
je 0x140039994
cmp dword [rsi + 0x34], 5
jne 0x140039994
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14003999d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140029dac
jmp 0x140039a10
jns 0x140039a10
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002f014
cmp rax, 0xffffffffffffffff
jne 0x1400399c8
cmp byte [rsi + 0x30], dil
je 0x140039a10
mov edi, dword [rsi + 0x2c]
jmp 0x140039a10
mov ecx, r14d
call fcn.140033220
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140039a10
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 0x140039a10
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140039a09
mov eax, dword [rsi + 0x2c]
jmp 0x140039a0e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002f014
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 0x14003a230
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003a258
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14003a258
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140006900
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14000c918], rbx
je 0x14000694c
cmp rax, rbx
jne 0x14000693f
mov ebx, 1
mov esi, ebx
jmp 0x140006951
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140006924
mov ebx, 1
mov eax, dword [0x14000c920]
cmp eax, ebx
jne 0x140006967
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400069cc
mov eax, dword [0x14000c920]
test eax, eax
jne 0x1400069c6
mov dword [0x14000c920], ebx
lea r15, [0x1400085d8]
lea rdi, [0x1400085c0]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x1400069b8
test eax, eax
jne 0x1400069bc
cmp qword [rdi], 0
je 0x1400069ad
mov rax, qword [rdi]
mov rcx, qword [0x1400085a0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000698e
test eax, eax
je 0x1400069cc
mov eax, 0xff
jmp 0x140006aa8
mov dword [0x14000c354], ebx
mov eax, dword [0x14000c920]
cmp eax, ebx
jne 0x1400069f3
lea rdx, [0x1400085b8]
lea rcx, [0x1400085a8]
call sub.msvcrt.dll__initterm
mov dword [0x14000c920], 2
test esi, esi
jne 0x140006a00
xor eax, eax
xchg qword [0x14000c918], rax
cmp qword [0x14000c928], 0
je 0x140006a34
lea rcx, [0x14000c928]
call fcn.140006d70
test eax, eax
je 0x140006a34
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14000c928]
mov r9, qword [0x1400085a0]
call r9
mov r8, qword [0x14000c368]
mov rdx, qword [0x14000c360]
mov ecx, dword [0x14000c358]
call fcn.1400017f4
mov dword [0x14000c350], eax
cmp dword [0x14000c370], 0
jne 0x140006a64
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000c354], 0
jne 0x140006a79
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000c350]
jmp 0x140006aa8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.14013c000
add rsp, 0x28
jmp 0x140006900

Function at 0x140006c5c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140006ca8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140006ca0
cmp dword [rcx + 0x3c], edx
jl 0x140006ca0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140006ca0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140006ca8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001450
Capabilities:
Create directory
Get common file path
Query environment variable

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rbx, [0x14000c3a0]
xor r9d, r9d
xor r8d, r8d
lea rdi, [0x14000c280]
mov qword [rsp + 0x20], rbx
mov rsi, rcx
xor ecx, ecx
push 0x1a
pop rdx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x140001498
lea rcx, [0x140009007]
mov r8d, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov rcx, rdi
mov qword [rsp + 0x20], rsi
mov r9, rbx
mov edx, 0x104
lea r8, str._s_s_
call fcn.140007d70
xor edx, edx
mov rcx, rdi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_CreateDirectoryA]

Function at 0x1400014c7
Capabilities:
Download url
Receive data

Disassembly:
push rsi
push rbx
sub rsp, 0x148
lea rsi, str.fud_new.exe
mov edx, 0x104
lea r9, str.topgamecheats.dev
lea r8, str.http:___s__s
lea rbx, [rsp + 0x3c]
mov qword [rsp + 0x20], rsi
mov rcx, rbx
call fcn.140007d70
mov qword [rsp + 0x20], rsi
mov edx, 0x104
lea rsi, [0x14000c160]
lea r9, [0x14000c280]
mov rcx, rsi
lea r8, str._s_s
call fcn.140007d70
xor r9d, r9d
mov r8, rsi
mov rdx, rbx
and qword [rsp + 0x20], 0
xor ecx, ecx
call sub.urlmon.dll_URLDownloadToFileA
nop
add rsp, 0x148
pop rbx
pop rsi
ret

Function at 0x140001544
Capabilities:
Create process on windows

Disassembly:
push rdi
push rbx
sub rsp, 0xa8
lea rbx, [0x14000c040]
mov edx, 0x104
lea rax, str.fud_new.exe
mov rcx, rbx
lea r9, [0x14000c280]
lea r8, str._s_s
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x38]
call fcn.140007d70
movabs rax, 0x4000000070
mov qword [rsp + 0x30], rax
xor eax, eax
push 0x1a
pop rcx
rep stosd dword [rdi], eax
mov qword [rsp + 0x48], rbx
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
nop
add rsp, 0xa8
pop rbx
pop rdi
ret

Function at 0x140001900
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 fcn.140007680
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140007680
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140001970
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000c524]
test esi, esi
mov rbx, rcx
jle 0x140001aa0
mov rax, qword [0x14000c528]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400019bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001a45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400019a0
mov rcx, rbx
call fcn.1400023e0
test rax, rax
mov rdi, rax
je 0x140001ac2
mov rax, qword [0x14000c528]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002520
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000c528]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001aa7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001a3e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001a50
add dword [0x14000c524], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x14000c528]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001a3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001900
nop dword [rax]
xor esi, esi
jmp 0x1400019c8
mov rax, qword [0x14000c528]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.140001900
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.140001900
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002030
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000c580]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c560]
test rbx, rbx
je 0x14000208c
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 eax, eax
jne 0x140002083
test rsi, rsi
je 0x140002083
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002068
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 0x1400022a0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400022d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400022e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret