joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009470
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140009500
jmp 0x1400094ef
jae 0x1400095c0
cmp r8, 0x201
jae 0x140009500
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140009558
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14000952f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14002af30
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140009581
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140009628
mov r8d, r14d
cmp r15, r8
jne 0x1400094e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000964b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400094ef
jmp 0x140009500
cmp rsi, r8
jb 0x140009665
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14000ba80
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x140009611
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140001f00
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x1400095f9
jmp 0x140009611
lea rcx, [0x141371e18]
lea r8, [0x141374530]
mov edx, 0x28
call fcn.14002bb60
jmp 0x14000967a
lea rax, [0x141374518]
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14002bfb0
ud2
Function at 0x14000c2e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
movzx ebp, byte [rdx + 0x38]
cmp bpl, 1
ja 0x14000c33d
movzx ebx, byte [rdi + 0x3a]
mov rcx, rdi
call fcn.14000c1c0
test bpl, bpl
jne 0x14000c341
lea rcx, [rdi + 0x10]
xor r8d, r8d
cmp byte [rdi + 0x10], 6
cmove rcx, r8
je case.0x14000c331.2
movzx edx, byte [rcx]
mov r8d, 6
lea r9, [0x14000c4b4]
movsxd rdx, dword [r9 + rdx*4]
add rdx, r9
jmp rdx
mov r8, qword [rcx + 0x10]
add r8, 4
jmp case.0x14000c331.2
xor eax, eax
xor ebx, ebx
xor r8d, r8d
movzx r10d, bl
movzx ebx, al
lea rcx, [r10 + rbx]
add rcx, r8
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x14000c498
mov r11, qword [rdi]
lea rax, [r11 + rcx]
cmp rdx, rcx
jne 0x14000c378
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x14000c3f9
movzx r9d, byte [rdi + 0x10]
add r8, rbx
add r8, r10
sub r8, rdx
inc r8
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x14000c3c0
nop dword [rax]
cmp byte [rdi], 0x5c
je 0x14000c3db
inc r8
dec rdi
cmp r8, 1
jne 0x14000c3a0
jmp 0x14000c3f9
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x14000c3db
cmp ebx, 0x5c
je 0x14000c3db
inc r8
dec rdi
cmp r8, 1
jne 0x14000c3c0
jmp 0x14000c3f9
neg r8
add rcx, r8
inc rcx
cmp rdx, rcx
jb 0x14000c4a6
add r11, rcx
mov r10d, 1
mov rax, r11
sub rdx, rcx
je 0x14000c422
mov cl, 9
cmp rdx, 2
je 0x14000c426
cmp rdx, 1
jne 0x14000c435
cmp byte [rax], 0x2e
jne 0x14000c435
xor ecx, ecx
cmp r9b, 3
setae cl
lea ecx, [rcx + rcx*2]
add ecx, 7
jmp 0x14000c435
mov cl, 0xa
jmp 0x14000c435
cmp byte [rax], 0x2e
jne 0x14000c435
cmp byte [rax + 1], 0x2e
sete cl
xor cl, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], cl
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rdx, qword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
lea r8, [rcx + 1]
test rcx, rcx
cmove r8, rcx
add r8, rdx
add r8, 8
jmp case.0x14000c331.2
mov rdx, qword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
lea r8, [rcx + 1]
test rcx, rcx
cmove r8, rcx
add r8, rdx
add r8, 2
jmp case.0x14000c331.2
mov r8d, 2
jmp case.0x14000c331.2
lea r8, [0x141372d40]
call fcn.14002bf30
ud2
lea r8, [0x141372d28]
call fcn.14002bf30
ud2
Function at 0x14000f5d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.14002a480
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov qword [rbp + 0xfd8], rdx
mov r14, rcx
lea rsi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0xfe8], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea r15, [rbp + 0xfe8]
mov qword [rbp + 0xfc8], r15
lea r12, [0x140015060]
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0xfb0]
mov rcx, r14
mov rdx, rsi
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x14000f7be
mov r13, qword [sym.imp.KERNEL32.dll_SleepEx]
lea rsi, [rbp + 0xfb0]
mov rdi, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov qword [rbp + 0xfe0], r14
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfe8], 0
je 0x14000f697
cmp dword [rbp + 0xfec], 0
jne 0x14000f7d3
mov ebx, dword [rbp + 0xff0]
test rbx, rbx
je 0x14000f7d3
cmp ebx, 0x1000
ja 0x14000f81e
xor r14d, r14d
nop dword [rax + rax]
cmp r14, rbx
ja 0x14000f803
lea rdx, [r14 + rbp]
add rdx, 0xffffffffffffffb0
mov r8d, ebx
sub r8d, r14d
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov rcx, qword [rbp + 0xfd8]
mov r9, rsi
call rdi
test eax, eax
je 0x14000f7c6
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfe8], 0
je 0x14000f740
cmp dword [rbp + 0xfec], 0
jne 0x14000f7cc
mov eax, dword [rbp + 0xff0]
add r14, rax
cmp r14, rbx
jne 0x14000f6e0
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov r14, qword [rbp + 0xfe0]
mov rcx, r14
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x14000f697
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000f7d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14, qword [rbp + 0xfe0]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call rsi
mov rcx, qword [rbp + 0xfd8]
call rsi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rbp + 0xfd0], rbx
lea r8, [0x141373f70]
mov rcx, r14
mov rdx, rbx
call fcn.14002c030
jmp 0x14000f838
mov ecx, ebx
mov qword [rbp + 0xfd0], rcx
lea r8, [0x141373f70]
mov edx, 0x1000
call fcn.14002bfb0
ud2
Function at 0x140012d40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x141373c28]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140012d84
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140012dea
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140012e21
test eax, eax
js 0x140012dfb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140012e14
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x141373c88]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14000b770
mov rcx, rax
call fcn.1400037e0
mov ecx, 7
int 0x29
ud2
Function at 0x140019a00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.14001ba70
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x140019a76
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.140012a20
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x140019a84
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140019aa4
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x140019a95
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
call fcn.140003d40
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
ret
mov qword [rsi], 0
movq rdx, xmm6
test rdx, rdx
je 0x140019a95
add rdx, rdx
mov r8d, 2
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
jmp fcn.140001f00

Function at 0x14001a690
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14001a6d3
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x14000a490]
mov qword [rbp - 0x28], rax
lea rax, [0x1413740c8]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, [0x141374100]
lea rcx, [rbp - 0x60]
call fcn.14002bac0
ud2
Function at 0x14001ad00
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14137e181]
mov ecx, 0x10
mov edx, 8
call fcn.140001ef0
test rax, rax
je 0x14001addf
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14001ae70]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14001add1
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14001ada8
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.140001f00
mov edx, 0x10
mov r8d, 8
mov rcx, qword [rbp - 0x18]
call fcn.140001f00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.14002ba40
ud2

Function at 0x140028de0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x140028e5a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140028e50
cmp r10, r11
jb 0x140028ef3
cmp r10, rdx
ja 0x140028f07
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140028e52
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140028e30
jmp 0x140028ec7
ja 0x140028e5a
mov r11, r10
cmp rax, r8
jne 0x140028e02
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x140028ecb
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140028ea0
mov r8, r10
sub ecx, r9d
jns 0x140028ebe
jmp 0x140028ecd
cmp r10, rdx
je 0x140028ed9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x140028ecd
xor al, 1
cmp r8, rdx
jne 0x140028e80
jmp 0x140028ecd
xor eax, eax
jmp 0x140028ecd
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x141375b20]
lea r8, [0x141376498]
mov edx, 0x2b
call fcn.14002bb60
ud2
lea r8, [0x1413764b0]
mov rcx, r11
mov rdx, r10
call fcn.14002c030
ud2
lea r8, [0x1413764b0]
mov rcx, r10
call fcn.14002bfb0
ud2

Function at 0x14002a9b0
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x60c41d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x60c42d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x60c415
lea eax, [rcx + 1]
jmp 0x60c43b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x60c44e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x60c434
sub eax, 3
jb 0x60c46e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x60c4bd
sar eax, 1
movsxd rbp, eax
jb 0x60c4a4
jmp 0x60c47c
add ebx, ebx
jne 0x60c47a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x60c4a4
inc ecx
add ebx, ebx
jne 0x60c48a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x60c4a4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x60c49d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x60c48c
add ecx, 2
jmp 0x60c4a9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.0060c3d2
jmp 0x60c41d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
mov ecx, 0x192a00
mov dl, 0x2c
mov rbx, rdi
jmp 0x60c4fd
mov al, byte [rdi]
add rdi, 1
cmp al, 0x80
jb 0x60c4e5
cmp al, 0x8f
ja 0x60c4e5
cmp byte [rdi - 2], 0xf
je 0x60c4eb
sub al, 0xe8
cmp al, 1
ja 0x60c50e
cmp byte [rdi], dl
jne 0x60c50e
mov eax, dword [rdi]
and eax, 0xffffff00
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
sub rcx, 4
mov al, byte [rdi]
add rdi, 1
dec rcx
jne 0x60c4e5
jmp 0x60c513
dec rcx
jne 0x60c4d1
sub rsp, 0x28
lea rdi, [rsi + 0x20a000]
mov eax, dword [rdi]
or eax, eax
je 0x60c56e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x20c000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x60c51e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x60c568
mov qword [rbx], rax
add rbx, 8
jmp 0x60c53e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.0060c5f1], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.0060c5f1
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x60c5e1
sub rsp, 0xffffffffffffff80
jmp 0x4014e0
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005460]
mov dword [rax], 1
mov rax, qword [0x140005470]
mov dword [rax], 1
mov rax, qword [0x140005480]
mov dword [rax], 1
mov rax, qword [0x140005420]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001a40
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140002712
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x1400027aa
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x14000278e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002782
cmp qword [rbp - 0x10], 0
je 0x140002782
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002748
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400027ab
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140002340
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x1150
call fcn.140005430
sub rsp, rax
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x1140], rax
lea r8, [rsp + 0x28]
mov edx, 0x1000
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x140002427
mov ebp, dword [rsp + 0x28]
xor edi, edi
shr ebp, 2
test ebp, ebp
je 0x140002427
lea rsi, [rsp + 0x30]
mov r8d, dword [rsi]
test r8d, r8d
je 0x140002419
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140002419
lea r9, [rsp + 0x2c]
mov r8d, 8
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x140002410
mov rdx, qword [rsp + 0x20]
lea r8, [rsp + 0x1030]
mov r9d, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameA]
lea rdx, str.Minecraft.Windows.exe
lea rcx, [rsp + 0x1030]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140002452
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
add rsi, 4
cmp edi, ebp
jb 0x1400023a2
xor eax, eax
mov rcx, qword [rsp + 0x1140]
xor rcx, rsp
call fcn.1400045e0
lea r11, [rsp + 0x1150]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + rdi*4 + 0x30]
jmp 0x140002429
Function at 0x140002470
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov eax, 0x2150
call fcn.140005430
sub rsp, rax
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x2140], rax
mov rbx, rcx
mov r8d, edx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea r9, [rsp + 0x20]
mov r8d, 0x2000
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x140002551
mov ecx, dword [rsp + 0x20]
xor edi, edi
test rcx, 0xfffffffffffffff8
jbe 0x140002551
lea rsi, [rsp + 0x30]
mov rdx, qword [rsi]
lea r8, [rsp + 0x2030]
mov r9d, 0x104
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameA]
test eax, eax
je 0x14000253b
mov r9, qword [rbx + 0x18]
mov r8, rbx
cmp r9, 0xf
jbe 0x140002510
mov r8, qword [rbx]
lea rax, [rsp + 0x2030]
sub r8, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140002533
inc rax
test ecx, ecx
jne 0x140002520
test edx, edx
je 0x1400025c8
mov ecx, dword [rsp + 0x20]
inc edi
shr rcx, 3
add rsi, 8
movsxd rax, edi
cmp rax, rcx
jb 0x1400024e2
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140002590
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14000258b
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002606
mov rcx, r8
call fcn.14000487c
xor al, al
mov byte [rbx], 0
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], 0
mov rcx, qword [rsp + 0x2140]
xor rcx, rsp
call fcn.1400045e0
mov rbx, qword [rsp + 0x2180]
add rsp, 0x2150
pop rdi
pop rsi
pop rbp
ret
cmp r9, 0xf
jbe 0x1400025fb
mov rcx, qword [rbx]
lea rdx, [r9 + 1]
cmp rdx, 0x1000
jb 0x1400025f6
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400025ff
mov rcx, r8
call fcn.14000487c
mov al, 1
jmp 0x140002592
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140003f84
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 0x140003fbe
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140003fc3
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 0x14000400c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140006440]
cmp byte [rcx + rax], 0
je 0x14000400c
dec r8
sub rdx, 1
jne 0x140003ff2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000507c
Capabilities:
Parse pe header

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