joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180017c40
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x180131010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x18013e338]
mov edi, edx
cmp byte [rbx + 0x1e25], 0
jne 0x180017ca0
cmp byte [rbx + 0x1e26], 0
jne 0x180017ca0
mov r9d, dword [rbx + 0x2ec8]
lea r8, str.Tooltip__02d
mov edx, send
lea rcx, [rsp + 0x20]
call fcn.1800092f0
test dil, 1
je 0x180017dbe
jmp 0x180017d28
movss xmm1, dword [rbx + 0x1614]
lea r8, str.Tooltip__02d
movaps xmm0, xmm1
lea rcx, [rsp + 0x20]
mulss xmm0, dword [0x180128c30]
xor eax, eax
mulss xmm1, dword [0x180128c14]
addss xmm0, dword [rbx + 0x128]
lea edx, [rax + 0x10]
addss xmm1, dword [rbx + 0x12c]
mov qword [rbx + 0x1ba0], rax
mov dword [rbx + 0x1b8c], 1
movss dword [rbx + 0x1b98], xmm0
movss dword [rbx + 0x1b9c], xmm1
movss xmm0, dword [rbx + 0x1670]
mulss xmm0, dword [0x180128b70]
or dword [rbx + 0x1b88], 0x41
movss dword [rbx + 0x1be8], xmm0
mov r9d, dword [rbx + 0x2ec8]
call fcn.1800092f0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x180017d78
lea r11, [0x18011dc60]
cmp r9b, 0x23
jne 0x180017d5b
cmp byte [r8], r9b
jne 0x180017d5b
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x180017d48
not ecx
call fcn.180010a20
test rax, rax
je 0x180017dbe
cmp byte [rax + 0x8e], 0
je 0x180017dbe
mov byte [rax + 0x95], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xac], 1
lea rcx, [rsp + 0x20]
inc dword [rbx + 0x2ec8]
mov edx, send
mov r9d, dword [rbx + 0x2ec8]
call fcn.1800092f0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.1800131f0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18004ae30
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x18001d680
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x40
mov rbx, qword [0x18013e338]
cmp byte [rbx + 0x2f5c], 0
je 0x18001d76c
cmp qword [rbx + 0x2f68], 0
mov qword [rax - 0x18], rsi
lea rsi, [rax + 0x10]
mov qword [rax - 0x20], rdi
lea rdi, [rbx + 0x2f70]
je 0x18001d754
mov r9d, dword [rdi + 4]
mov qword [rax - 0x10], rbp
xor ebp, ebp
test r9d, r9d
jns 0x18001d6fb
mov eax, r9d
mov rcx, rdi
cdq
sub eax, edx
mov edx, ebp
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.18001f880
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov dword [rdi], ebp
mov rcx, rdi
mov r8, rsi
call fcn.180009d10
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x2f68]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x2f78]
cmove ecx, ebp
test rax, rax
movsxd r8, ecx
lea rcx, [0x18013e30a]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
mov r8, rsi
mov rcx, rdi
call fcn.180009d10
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
Function at 0x180049460
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x180131010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x1800494af
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18013e660]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x1800494ed
cmp rsi, r14
jb 0x1800494e5
cmp rsi, r15
jae 0x1800494e5
cmp qword [rsi + 8], 0
jne 0x1800496b7
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800494d0
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180049582
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180049579
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180049579
cmp dword [rsp + 0x40], 0x10000
je 0x1800495fb
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180049579
sub rbx, rbp
cmp rbx, r14
jae 0x180049540
test rsi, rsi
jne 0x180049660
cmp rdi, r15
ja 0x18004969f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18004969f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18004969f
cmp dword [rsp + 0x40], 0x10000
je 0x180049631
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x1800495b2
jmp 0x18004969f
test rbx, rbx
je 0x180049579
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180049660
cmp rbx, r14
jae 0x180049520
jmp 0x180049582
test rdi, rdi
je 0x18004969f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180049660
cmp rdi, r15
jbe 0x180049590
jmp 0x18004969f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180049670
mov rax, qword [0x18013e660]
mov qword [rsi], rax
mov qword [0x18013e660], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18004ae30
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x18004a0b0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180131010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18004a1db
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18004a1d2
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x18004a1b4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18004a1b4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18004a1b4
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18004a172
mov rcx, qword [0x18013e3c8]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x18004a1d2
jmp 0x18004a1a7
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18004a1a7
mov rcx, qword [0x18013e3c8]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18004a1d2
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18004a120
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x18004a233
cmp dword [rbx + 0xc], esi
jbe 0x18004a233
nop word [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, esi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18004a22c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180049f00
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x18004a1f0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18004ae30
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x18004a260
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180131010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x18013e650]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18004a2d3
mov eax, 0xa
jmp 0x18004a362
test esi, esi
je 0x18004a2f5
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18004a318
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18004a318
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18004a311
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18004a318
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18004ae30
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18004a390
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x18013e65c]
mov ebx, edi
test ecx, ecx
je 0x18004a4cb
mov rax, qword [0x18013e650]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x18004a3e8
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18004a3c0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x18004a4cb
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.18004a0b0
mov r8d, dword [0x18013e65c]
cmp ebx, r8d
jae 0x18004a458
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18013e650]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x18004a451
mov edx, esi
mov ecx, ebx
call fcn.18004a260
mov edi, eax
test eax, eax
jne 0x18004a458
mov r8d, dword [0x18013e65c]
inc ebx
cmp ebx, r8d
jb 0x18004a420
cmp qword [rsp + 0x20], 0
je 0x18004a4cb
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18004a4b7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18004a4a8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x18004a480
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18013e3c8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18004a850
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov edi, 1
mov ebp, r15d
mov ebx, r15d
xor eax, eax
lock cmpxchg dword [0x18013e3c0], edi
je 0x18004a8a1
nop
cmp rbx, 0x20
jae 0x18004a88a
xor ecx, ecx
jmp 0x18004a88c
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18013e3c0], edi
jne 0x18004a880
cmp qword [0x18013e3c8], rbp
je 0x18004a9cd
mov r8d, dword [0x18013e65c]
mov ebx, r15d
test r8d, r8d
je 0x18004a9d2
mov rdx, qword [0x18013e650]
add rdx, 0x20
nop dword [rax]
movzx ecx, byte [rdx]
shr cl, 1
xor cl, byte [rdx]
test cl, 2
jne 0x18004a8ec
inc ebx
add rdx, 0x38
cmp ebx, r8d
jb 0x18004a8d0
jmp 0x18004a9d2
cmp ebx, 0xffffffff
je 0x18004a9d2
mov edx, 0xffffffff
lea rcx, [rsp + 0x20]
mov r8d, 2
call fcn.18004a0b0
mov edx, dword [0x18013e65c]
cmp ebx, edx
jae 0x18004a961
nop dword [rax]
nop dword [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18013e650]
movzx r8d, byte [rcx + rax + 0x20]
movzx eax, r8b
shr al, 1
xor al, r8b
test al, 2
je 0x18004a95b
mov edx, r8d
mov ecx, ebx
shr edx, 2
and edx, edi
call fcn.18004a260
mov ebp, eax
test eax, eax
jne 0x18004a961
mov edx, dword [0x18013e65c]
inc ebx
cmp ebx, edx
jb 0x18004a920
cmp qword [rsp + 0x20], r15
je 0x18004a9d2
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18004a9b7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rsi
mov esi, eax
nop dword [rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18004a9a8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x18004a980
mov rsi, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18013e3c8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18004a9d2
mov ebp, 2
xchg dword [0x18013e3c0], r15d
mov rbx, qword [rsp + 0x48]
mov eax, ebp
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x140001a70
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
call fcn.140001a8d

Function at 0x140003b90
Capabilities:
Enumerate process modules
Link many functions at runtime

Disassembly:
mov eax, 0x20d8
call fcn.140048560
sub rsp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x80], rax
mov rax, rcx
mov rax, rcx
add eax, 0x35869beb
cmc
mov rax, r8
cmp al, cl
cmp eax, ecx
mov eax, 0x3d989429
push rax
pop rax
cmc
cmp rax, 0x150e480b
mov rax, r8
mov eax, 0x2133591b
mov rax, rcx
cmp eax, ecx
cmp al, cl
call fcn.140003b80
cmp rax, rcx
mov eax, 0x75d06146
cmc
add eax, 0x9bdeb931
xor eax, eax
push rax
pop rax
cmp al, cl
inc eax
cmp rax, 0x32469d0c
add rax, 0x3f6da3b7
movabs rax, 0xb62a793cd16cd117
cmp al, cl
cmp eax, ecx
call fcn.140003b80
lea r9, [rsp + 0x74]
mov r8d, 0x2000
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x140003fbd
push r8
pop rax
pushfq
cmp ecx, edx
popfq
jmp 0x140003c49
nop
jmp 0x140003c4f
nop
add rax, 0xffffffffc8b3418e
cmc
add eax, 0xb91714a2
dec eax
cmp rax, 0x714d7bf6
add rax, 0x1e76f88
cmp al, cl
cmc
call fcn.140003b80
mov dword [rsp + 0x70], 0
jmp 0x140003c86

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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 8]
mov qword [rsp + 0x50], rax
movabs rax, 0x6ae39dc1b2868efd
cmc
cmp rax, rcx
add rax, 0x48eb7535
call fcn.140006df5
Function at 0x14000a5d0
Capabilities:
Accept command line arguments
Create a process with modified i/o handles and window
Parse pe header
Read file on windows
Set current directory

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x2b50
call fcn.140048560
sub rsp, rax
mov eax, 0xbb494a6
push r8
pop rax
cmc
inc eax
cmp rax, 0xffffffffd7674a84
dec rax
pushfq
cmp ecx, edx
popfq
cmp rax, rcx
cmp rax, 0x4c1b9de0
cmp rax, rcx
movabs rax, 0xd04bfa3a3e4b6844
cmp al, cl
call fcn.14000a2f0
call fcn.14000a62c

Function at 0x140049120
Capabilities:
Parse pe header

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

Function at 0x14005d988
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14005d777
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005d777
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005d777
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005d777
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005d777
cmp dword [rcx + 0x84], 0xe
jbe 0x14005d777
cmp dword [rcx + 0xf8], 0
je 0x14005d777
mov ecx, ebx
call fcn.14005d8a8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14005d4f4
cmp dword [rbp + 0x20], 0
je 0x14005d7c4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14005d7cc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14005d710
Function at 0x14000ac7c
Capabilities:
Parse pe header

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

Function at 0x140017ebc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140018004

Function at 0x14001cca0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001ccc8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001ccc8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140024978
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.14001db58
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 0x140024a19
cmp ebx, dword [rsp + 0x30]
je 0x140024a12
test esi, esi
je 0x140024a12
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400249ed
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400249fa
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400249d7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400249fe
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140024a1b
mov eax, 1
jmp 0x140024a1b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400258f8
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 0x140025928
xor eax, eax
jmp 0x1400259eb
mov rbp, rbx
cmp word [rax], si
je 0x14002594d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140025934
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140025930
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.140025818
movsxd r14, eax
test eax, eax
jne 0x14002598b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140025921
mov rcx, r14
call fcn.14001fa5c
mov rdi, rax
test rax, rax
jne 0x1400259a4
xor ecx, ecx
call fcn.14001efa4
jmp 0x140025980
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.140025818
test eax, eax
jne 0x1400259d5
mov rcx, rdi
call fcn.14001efa4
jmp 0x1400259df
xor ecx, ecx
call fcn.14001efa4
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 0x140029504
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002951a
mov al, 1
jmp 0x14002957a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002952b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140029578
mov ecx, dword [rcx + 0x18]
nop
call fcn.140025a08
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140029578
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140029578
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140029578
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002957a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400112b2
Capabilities:
Terminate process

Disassembly:
jmp 0x1400143e0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011366
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015730
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015750
xor al, al
jmp 0x1400157d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015763
xor al, al
jmp 0x1400157d1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001578d
xor al, al
jmp 0x1400157d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400157a1
xor al, al
jmp 0x1400157d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400157b3
xor al, al
jmp 0x1400157d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400157cf
xor al, al
jmp 0x1400157d1
mov al, 1
add rsp, 0x38
ret
Function at 0x140001d74
Capabilities:
Parse pe header

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

Function at 0x1400084a8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400082a4