joyce8/EMBER2024-capa huggingface dataset:
Function at 0x65016050
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x140
lea rdi, [rcx + 0x10]
mov rbx, rcx
mov dword [rcx], 0xa
mov qword [rcx + 8], rdi
lea rdx, str.112233445566778
lea rcx, [rsp + 0x20]
mov r8d, 0x80
call fcn.65015990
mov rax, qword [rsp + 0x28]
mov r11d, dword [rsp + 0x20]
shl r11d, 2
add rdi, 0x10
movsxd rdx, r11d
lea r9, [rax + rdx*4]
sub r9, 0x10
mov eax, dword [r9 + 0x10]
mov dword [rdi - 0x10], eax
mov eax, dword [r9 + 0x14]
mov dword [rdi - 0xc], eax
mov eax, dword [r9 + 0x18]
mov dword [rdi - 8], eax
mov eax, dword [r9 + 0x1c]
mov dword [rdi - 4], eax
mov r10d, dword [rbx]
sub r10d, 1
test r10d, r10d
jle 0x65016264
lea r11, [0x65000000]
nop
nop
nop
movzx eax, byte [r9]
sub r10d, 1
add rdi, 0x10
movzx edx, byte [rax + r11 + 0x45b30]
movzx eax, byte [r9 + 3]
sub r9, 0x10
movzx ecx, byte [rax + r11 + 0x45b30]
mov r8d, dword [r11 + rdx*4 + 0x46830]
movzx eax, byte [r9 + 0x12]
xor r8d, dword [r11 + rcx*4 + 0x45c30]
movzx ecx, byte [rax + r11 + 0x45b30]
movzx eax, byte [r9 + 0x11]
xor r8d, dword [r11 + rcx*4 + 0x46030]
movzx ecx, byte [rax + r11 + 0x45b30]
xor r8d, dword [r11 + rcx*4 + 0x46430]
mov dword [rdi - 0x10], r8d
movzx eax, byte [r9 + 0x14]
movzx edx, byte [rax + r11 + 0x45b30]
movzx eax, byte [r9 + 0x17]
movzx ecx, byte [rax + r11 + 0x45b30]
movzx eax, byte [r9 + 0x16]
mov r8d, dword [r11 + rdx*4 + 0x46830]
xor r8d, dword [r11 + rcx*4 + 0x45c30]
movzx ecx, byte [rax + r11 + 0x45b30]
movzx eax, byte [r9 + 0x15]
xor r8d, dword [r11 + rcx*4 + 0x46030]
movzx ecx, byte [rax + r11 + 0x45b30]
xor r8d, dword [r11 + rcx*4 + 0x46430]
mov dword [rdi - 0xc], r8d
movzx eax, byte [r9 + 0x18]
movzx edx, byte [rax + r11 + 0x45b30]
movzx eax, byte [r9 + 0x1b]
movzx ecx, byte [rax + r11 + 0x45b30]
movzx eax, byte [r9 + 0x1a]
mov r8d, dword [r11 + rdx*4 + 0x46830]
xor r8d, dword [r11 + rcx*4 + 0x45c30]
movzx ecx, byte [rax + r11 + 0x45b30]
movzx eax, byte [r9 + 0x19]
xor r8d, dword [r11 + rcx*4 + 0x46030]
movzx ecx, byte [rax + r11 + 0x45b30]
xor r8d, dword [r11 + rcx*4 + 0x46430]
mov dword [rdi - 8], r8d
movzx eax, byte [r9 + 0x1c]
movzx edx, byte [rax + r11 + 0x45b30]
movzx eax, byte [r9 + 0x1f]
movzx ecx, byte [rax + r11 + 0x45b30]
movzx eax, byte [r9 + 0x1e]
mov r8d, dword [r11 + rdx*4 + 0x46830]
xor r8d, dword [r11 + rcx*4 + 0x45c30]
movzx ecx, byte [rax + r11 + 0x45b30]
movzx eax, byte [r9 + 0x1d]
xor r8d, dword [r11 + rcx*4 + 0x46030]
movzx ecx, byte [rax + r11 + 0x45b30]
xor r8d, dword [r11 + rcx*4 + 0x46430]
test r10d, r10d
mov dword [rdi - 4], r8d
jg 0x650160e0
mov eax, dword [r9]
mov rbx, qword [rsp + 0x150]
mov dword [rdi], eax
mov eax, dword [r9 + 4]
mov dword [rdi + 4], eax
mov eax, dword [r9 + 8]
mov dword [rdi + 8], eax
mov eax, dword [r9 + 0xc]
mov dword [rdi + 0xc], eax
add rsp, 0x140
pop rdi
ret
Function at 0x65016d50
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x1b8], rbx
mov rax, qword [0x65043120]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdi, r9
mov rsi, r8
mov r15, rcx
mov rax, qword [rsp + 0x1d0]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x150], 0
lea r13, [r9 + 8]
mov rcx, r13
and ecx, 0xf
je 0x65016dbe
mov eax, 0x10
sub rax, rcx
add r13, rax
mov rcx, r13
call fcn.6501d2f0
mov rbx, rax
mov qword [rsp + 0x150], rax
mov rcx, r13
call fcn.6501d2f0
mov qword [r15], rax
mov r8, r13
xor edx, edx
mov rcx, rbx
call fcn.6501efa0
mov dword [rbx], 0x52514f4b
mov dword [rbx + 4], edi
lea rcx, [rbx + 8]
mov r8, rdi
mov rdx, rsi
call fcn.6501fd30
xor r11d, r11d
mov qword [rsp + 0x150], r11
mov qword [rsp + 0x158], r11
mov r8d, 0x80
lea rdx, str.112233445566778
lea rcx, [rsp + 0x30]
call fcn.65015990
mov rdi, qword [r15]
mov rsi, rbx
test r13d, r13d
jle 0x65016ef8
lea rax, [rsp + 0x150]
mov rbp, rdi
sub rbp, rax
lea rax, [rsp + 0x150]
mov r12, rbx
sub r12, rax
lea r14d, [r13 - 1]
shr r14d, 4
add r14d, 1
xor edx, edx
lea r8, [rdi + 1]
mov r9, rsi
sub r9, rdi
nop
lea rcx, [rsp + rdx + 0x150]
movzx eax, byte [r12 + rcx]
xor al, byte [rcx]
mov byte [rcx + rbp], al
movzx eax, byte [r9 + r8]
xor al, byte [rcx + 1]
mov byte [r8], al
movzx eax, byte [rsi + rdx + 2]
xor al, byte [rcx + 2]
mov byte [r8 + 1], al
movzx eax, byte [rsi + rdx + 3]
xor al, byte [rcx + 3]
mov byte [r8 + 2], al
add rdx, 4
add r8, 4
cmp rdx, 0x10
jl 0x65016e70
mov r9, rdi
mov r8, rdi
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.65016290
lea r11, [rsp + 0x150]
mov rax, qword [rdi]
mov qword [r11], rax
mov rax, qword [rdi + 8]
mov qword [r11 + 8], rax
add rsi, 0x10
add r12, 0x10
add rdi, 0x10
add rbp, 0x10
sub r14, 1
jne 0x65016e62
mov rax, qword [rsp + 0x20]
mov qword [rax], r13
xor ecx, ecx
call fcn.6501d300
nop
mov rcx, rbx
call fcn.6501d300
mov rax, r15
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.6501e650
mov rbx, qword [rsp + 0x1b8]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x65016f60
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x65043120]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r14, qword [rsp + 0x1d0]
xor r15d, r15d
test r9b, 0xf
mov rbp, r9
mov r13, r8
mov r12, rcx
mov dword [rsp + 0x140], r15d
je 0x65016fbc
mov qword [rcx], r15
xor ecx, ecx
mov qword [rsp + 0x140], r15
call fcn.6501d300
jmp 0x6501710a
mov rcx, r9
mov qword [rsp + 0x1b8], rbx
mov qword [rsp + 0x170], rdi
call fcn.6501d2f0
lea rdx, str.112233445566778
lea rcx, [rsp + 0x20]
mov rbx, rax
xor eax, eax
mov r8d, 0x80
mov qword [rsp + 0x140], rax
mov qword [rsp + 0x148], rax
call fcn.65016050
test ebp, ebp
mov rdi, rbx
jle 0x650170ae
mov qword [rsp + 0x178], rsi
add ebp, 0xffffffff
lea rsi, [rsp + 0x141]
shr ebp, 4
sub rsi, rbx
sub r13, rbx
add ebp, 1
nop
nop
mov rax, qword [r13 + rdi]
lea r8, [r13 + rdi]
lea rcx, [rsp + 0x150]
mov qword [rcx], rax
mov rax, qword [r8 + 8]
mov r9, rdi
mov qword [rcx + 8], rax
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.65016290
mov ecx, 4
movzx eax, byte [rsi + rdi - 1]
add rdi, 4
xor byte [rdi - 4], al
movzx eax, byte [rsi + rdi - 4]
xor byte [rdi - 3], al
movzx eax, byte [rsi + rdi - 3]
xor byte [rdi - 2], al
movzx eax, byte [rsi + rdi - 2]
xor byte [rdi - 1], al
sub rcx, 1
jne 0x65017061
movaps xmm0, xmmword [rsp + 0x150]
sub rsi, 0x10
sub rbp, 1
movdqa xmmword [rsp + 0x140], xmm0
jne 0x65017030
mov rsi, qword [rsp + 0x178]
cmp dword [rbx], 0x52534f4b
mov rdi, qword [rsp + 0x170]
je 0x650170dd
xor ecx, ecx
mov qword [rsp + 0x140], r15
mov qword [r12], r15
call fcn.6501d300
xor ecx, ecx
call fcn.6501d300
mov rcx, rbx
jmp 0x650170fd
movsxd r8, dword [rbx + 4]
lea rdx, [rbx + 8]
mov rcx, rbx
mov qword [r14], r8
call fcn.6501fd30
xor ecx, ecx
mov qword [r12], rbx
call fcn.6501d300
xor ecx, ecx
call fcn.6501d300
mov rbx, qword [rsp + 0x1b8]
mov rax, r12
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.6501e650
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x6501cb90
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r8, [0x6501ca50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
add rsp, 0x38
ret

Function at 0x6501ce6c
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x65043120]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.6501efa0
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x65000000]
mov esi, DllRegisterServer
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call fcn.6501efa0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x6501ceff
cmp dword [rsp + 0x24], 5
jb 0x6501cf19
jmp 0x6501cf15
cmp dword [rsp + 0x30], esi
jne 0x6501cf19
cmp dword [rsp + 0x24], 4
ja 0x6501cf15
jne 0x6501cf19
cmp dword [rsp + 0x28], 0
jbe 0x6501cf19
mov byte [rbx + 0x18], sil
lea rax, [0x65035148]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.6501ccac
movzx ecx, byte [0x65047df0]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x65047df0], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.6501e650
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x6501d9c0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x65044c10]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.650206e0
test rax, rax
je 0x6501da14
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x6501daa9
mov ecx, 2
call fcn.65020510
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.6501efa0
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x6501da95
test ebx, ebx
jne 0x6501da95
lea ecx, [rax + 2]
call fcn.65020510
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x6501dad0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x5b8
mov rcx, qword [0x65044c10]
call fcn.650206e0
test rax, rax
je 0x6501db05
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], 0
call rax
add rsp, 0x5b8
ret
mov ecx, 2
mov qword [rsp + 0x5b0], rbx
call fcn.65020510
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.6501efa0
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x6501db8e
test ebx, ebx
jne 0x6501db8e
lea ecx, [rax + 2]
call fcn.65020510
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rbx, qword [rsp + 0x5b0]
add rsp, 0x5b8
ret
Function at 0x6501f0e0
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x20
cmp edx, 1
mov rbx, r8
jne 0x6501f247
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, DllRegisterServer
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x6501f138
mov rcx, rax
mov dword [rax], DllRegisterServer
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x6501f140
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x30], rbp
mov ebp, dword [rbx + 8]
mov qword [rsp + 0x38], rsi
mov esi, dword [rbx + 4]
mov qword [rsp + 0x40], rdi
mov edi, dword [rbx + 0xc]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x10]
and edi, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp r12d, 2
je 0x6501f185
bts edi, 0xf
mov eax, esi
mov ecx, 1
mov dword [0x650451fc], r12d
shl eax, 8
mov dword [0x65045208], esi
mov dword [0x6504520c], ebp
add eax, ebp
mov dword [0x65045200], edi
mov dword [0x65045204], eax
call fcn.650266b0
mov r12, qword [rsp + 0x48]
test eax, eax
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
je 0x6501f138
call fcn.65020ca0
test eax, eax
je 0x6501f23a
call fcn.65027180
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x650491d0], rax
call fcn.65026fb0
mov qword [0x65044c40], rax
call fcn.65026740
test eax, eax
js 0x6501f235
call fcn.65026ea0
test eax, eax
js 0x6501f230
call fcn.65026b10
test eax, eax
js 0x6501f230
xor ecx, ecx
call fcn.65022dd0
test eax, eax
jne 0x6501f230
add dword [0x65044c38], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
call fcn.65026a80
call fcn.650207c0
call fcn.65026710
xor eax, eax
add rsp, 0x20
pop rbx
ret
test edx, edx
jne 0x6501f290
mov eax, dword [0x65044c38]
test eax, eax
jle 0x6501f138
sub eax, 1
cmp dword [0x65045258], edx
mov dword [0x65044c38], eax
jne 0x6501f26f
call fcn.65022ff0
test rbx, rbx
jne 0x6501f309
call fcn.65026a80
call fcn.650207c0
call fcn.65026710
lea eax, [rbx + 1]
add rsp, 0x20
pop rbx
ret
cmp edx, 2
jne 0x6501f2fd
call fcn.650207b0
mov edx, 0x2d8
mov ecx, 1
call fcn.65022af0
test rax, rax
mov rbx, rax
je 0x6501f138
mov ecx, dword [0x650432a0]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
test eax, eax
je 0x6501f2ed
xor edx, edx
mov rcx, rbx
call fcn.65020810
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov qword [rbx + 8], 0xffffffffffffffff
mov dword [rbx], eax
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
call fcn.6501fc00
xor eax, eax
add rsp, 0x20
pop rbx
ret
cmp edx, 3
jne 0x6501f309
xor ecx, ecx
call fcn.65020c40
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x650229d7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x65043120]
jne 0x6501e66a
rol rcx, 0x10
test cx, 0xffff
jne 0x6501e666
repz ret
ror rcx, 0x10
jmp 0x65022930
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x65044d20]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x65044e18]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x650229b5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x65044d20]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x650229d7
mov rax, qword [rsp + 0x88]
mov qword [0x65044e18], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x65044db8], rax
mov rax, qword [0x65044e18]
mov qword [0x65044c90], rax
mov rax, qword [rsp + 0x90]
mov qword [0x65044da0], rax
mov dword [0x65044c80], 0xc0000409
mov dword [0x65044c84], 1
mov rax, qword [0x65043120]
mov qword [rsp + 0x68], rax
mov rax, qword [0x65043128]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x65044d18], eax
mov ecx, 1
call fcn.65020510
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x65035428]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x65044d18], 0
jne 0x65022a5e
mov ecx, 1
call fcn.65020510
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x65026fb0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x650453c8]
test eax, eax
jne 0x65027003
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x65026fe3
mov dword [0x650453c8], 1
jmp 0x6502701e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x65026ffd
mov dword [0x650453c8], 2
jmp 0x650270f9
mov eax, dword [0x650453c8]
cmp eax, 1
jne 0x650270f0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x65027143
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x65027045
add rbx, 2
cmp word [rbx], 0
jne 0x65027031
add rbx, 2
cmp word [rbx], 0
jne 0x65027031
xor r12d, r12d
sub rbx, rdi
mov r8, rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
sar rbx, 1
lea r9d, [rbx + 1]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
movsxd rbp, eax
je 0x650270e3
mov rcx, rbp
call fcn.65022a80
test rax, rax
mov rsi, rax
je 0x650270e3
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9d, [rbx + 1]
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x650270bd
mov rcx, rsi
call fcn.6501fc00
mov rsi, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x650270c9
cmp eax, 2
je 0x650270f9
test eax, eax
jne 0x65027143
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x65027143
cmp byte [rax], 0
je 0x65027122
nop
add rax, 1
cmp byte [rax], 0
jne 0x65027110
add rax, 1
cmp byte [rax], 0
jne 0x65027110
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.65022a80
test rax, rax
mov rdi, rax
jne 0x65027155
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.6501fd30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x40
pop rdi
ret
Function at 0x65029220
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x6502925e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x65029240
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x65029445
mov ecx, 3
call fcn.6502d750
cmp eax, 1
je 0x650293fc
mov ecx, 3
call fcn.6502d750
test eax, eax
jne 0x65029295
cmp dword [0x65044c50], 1
je 0x650293fc
cmp edi, 0xfc
je 0x65029445
mov qword [rsp + 0x50], rbp
lea rbp, [0x650453d0]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.65020320
test eax, eax
je 0x650292d9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.6501d920
lea rdx, [0x650453e9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x650454ed], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x65029329
lea r8, str._program_name_unknown_
lea rcx, [0x650453e9]
mov edx, 0x2fb
call fcn.65020320
test eax, eax
je 0x65029329
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.6501d920
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x650453e9]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x65029378
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x650456e4]
lea r9d, [rax + 3]
lea r8, [0x65035b14]
sub rdx, rcx
call fcn.6502a700
test eax, eax
je 0x65029378
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.6501d920
lea r8, [0x65035b10]
mov edx, 0x314
mov rcx, rbp
call fcn.6502a640
test eax, eax
je 0x650293a4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.6501d920
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.6502a640
test eax, eax
je 0x650293d4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.6501d920
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.6502d4f0
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x65029445
cmp rax, 0xffffffffffffffff
je 0x65029445
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x65029460
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.6502d750
cmp eax, 1
je 0x65029492
mov ecx, 3
call fcn.6502d750
test eax, eax
jne 0x65029546
cmp dword [0x65044c50], 1
jne 0x65029546
mov qword [rsp + 0x48], rbx
lea rbx, reloc.OLEAUT32.dll_SysReAllocString
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x650294be
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x650294a8
jmp 0x65029532
cmp edi, 0x17
jae 0x65029532
mov ecx, 3
call fcn.6502d750
cmp eax, 1
je 0x650294e9
mov ecx, 3
call fcn.6502d750
test eax, eax
jne 0x65029532
cmp dword [0x65044c50], 1
jne 0x65029532
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x65029532
cmp rax, 0xffffffffffffffff
je 0x65029532
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.65029220
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x6502ce60
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x65043120]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x6502cea7
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.6501e650
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.6502d7b0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.6501e650
add rsp, 0x38
ret