joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ac307
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140126108]
jne 0x14009ccba
rol rcx, 0x10
test cx, 0xffff
jne 0x14009ccb6
repz ret
ror rcx, 0x10
jmp 0x1400ac260
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14013a8c0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14013a9b8]
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 0x1400ac2e5
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, [0x14013a8c0]
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 0x1400ac307
mov rax, qword [rsp + 0x88]
mov qword [0x14013a9b8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14013a958], rax
mov rax, qword [0x14013a9b8]
mov qword [0x14013a830], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14013a940], rax
mov dword [0x14013a820], 0xc0000409
mov dword [0x14013a824], 1
mov rax, qword [0x140126108]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140126110]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14013a8b8], eax
mov ecx, 1
call fcn.1400ac5e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400e4088]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14013a8b8], 0
jne 0x1400ac38e
mov ecx, 1
call fcn.1400ac5e0
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 0x1400b07a0
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x140126108]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov qword [r11 + 8], rbp
lea rdx, [rsp + 0x20]
xor ebx, ebx
mov ecx, 0x105
mov qword [r11 + 0x10], rsi
lea rdi, [rsp + 0x20]
mov ebp, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp eax, 0x104
mov esi, eax
jle 0x1400b0838
mov qword [rsp + 0x160], r12
lea r12d, [rax + 1]
lea edx, [rbx + 1]
movsxd rcx, r12d
call fcn.1400ac420
test rax, rax
mov rdi, rax
jne 0x1400b0819
call fcn.14009f140
mov esi, ebx
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
jmp 0x1400b0830
test esi, esi
mov ebp, 1
je 0x1400b0830
mov rdx, rax
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov r12, qword [rsp + 0x160]
test esi, esi
mov rsi, qword [rsp + 0x158]
je 0x1400b0857
cmp byte [rdi + 1], 0x3a
jne 0x1400b0862
movzx ecx, byte [rdi]
call fcn.1400a7950
lea ebx, [rax - 0x40]
jmp 0x1400b0862
call fcn.14009f140
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
test ebp, ebp
mov rbp, qword [rsp + 0x150]
je 0x1400b0876
mov rcx, rdi
call fcn.14009ed20
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14009cca0
mov rbx, qword [rsp + 0x168]
add rsp, 0x140
pop rdi
ret
Function at 0x1400b7b70
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400aa770
xor ebx, ebx
cmp qword [0x14013b138], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x1400b7c9c
lea rcx, [0x1400e47b0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov rsi, rax
je 0x1400b7daf
lea rdx, [0x1400e47a0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400b7daf
mov rcx, rax
call fcn.1400aa6a0
lea rdx, [0x1400e4790]
mov rcx, rsi
mov qword [0x14013b138], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400aa6a0
lea rdx, [0x1400e4778]
mov rcx, rsi
mov qword [0x14013b140], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400aa6a0
lea rcx, [rsp + 0x98]
mov qword [0x14013b148], rax
call fcn.14009f620
test eax, eax
je 0x1400b7c4f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.14009cf00
cmp dword [rsp + 0x98], 2
jne 0x1400b7c9c
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400aa6a0
test rax, rax
mov qword [0x14013b158], rax
je 0x1400b7c9c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400aa6a0
mov qword [0x14013b150], rax
mov rcx, qword [0x14013b150]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x1400b7d48
cmp qword [0x14013b158], rbp
je 0x1400b7d48
call fcn.1400aa860
mov rcx, qword [0x14013b158]
mov rsi, rax
call fcn.1400aa860
test rsi, rsi
mov r12, rax
je 0x1400b7d48
test rax, rax
je 0x1400b7d48
call rsi
test rax, rax
je 0x1400b7d13
lea rcx, [rsp + 0x34]
mov r9d, reloc.WS2_32.dll_inet_ntoa
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400b7d13
test byte [rsp + 0x40], 1
jne 0x1400b7d48
lea rcx, [rsp + 0x30]
call fcn.14009f6c0
test eax, eax
je 0x1400b7d35
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.14009cf00
cmp dword [rsp + 0x30], 4
jb 0x1400b7d42
bts edi, 0x15
jmp 0x1400b7d86
bts edi, 0x12
jmp 0x1400b7d86
mov rcx, qword [0x14013b140]
cmp rcx, rbp
je 0x1400b7d86
call fcn.1400aa860
test rax, rax
je 0x1400b7d86
call rax
test rax, rax
mov rbx, rax
je 0x1400b7d86
mov rcx, qword [0x14013b148]
cmp rcx, rbp
je 0x1400b7d86
call fcn.1400aa860
test rax, rax
je 0x1400b7d86
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14013b138]
call fcn.1400aa860
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x1400b7daf
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1400b7db1
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400ba190
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x30
test rcx, rcx
mov ebx, edx
jne 0x1400ba1ce
call fcn.14009f170
xor ebx, ebx
mov dword [rax], ebx
call fcn.14009f140
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], reloc.WS2_32.dll_shutdown
mov qword [rsp + 0x20], rbx
call fcn.14009cfa0
lea eax, [rbx + 0x16]
add rsp, 0x30
pop rbx
ret
test edx, 0xfffffff9
jne 0x1400ba19d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1400ba1fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14009f1a0
call fcn.14009f140
mov eax, dword [rax]
add rsp, 0x30
pop rbx
ret
test al, 0x10
jne 0x1400ba22b
test al, 1
je 0x1400ba22b
test bl, 2
je 0x1400ba22b
call fcn.14009f170
mov dword [rax], 5
call fcn.14009f140
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14009f140
mov eax, dword [rax]
add rsp, 0x30
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x1400bc140
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
sub rsp, 0x20
mov rbp, rdx
xor edi, edi
xor edx, edx
lea r8d, [rdi + 1]
mov esi, ecx
call fcn.1400bbf30
cmp rax, 0xffffffffffffffff
mov r13, rax
je 0x1400bc2e4
lea r8d, [rdi + 2]
xor edx, edx
mov ecx, esi
call fcn.1400bbf30
cmp rax, 0xffffffffffffffff
je 0x1400bc2e4
mov qword [rsp + 0x40], rbx
mov rbx, rbp
mov qword [rsp + 0x50], r14
sub rbx, rax
test rbx, rbx
jle 0x1400bc263
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r14d, 0x1000
lea edx, [rdi + 8]
mov rcx, rax
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
jne 0x1400bc1e9
call fcn.14009f140
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
call fcn.14009f140
mov eax, dword [rax]
mov rbx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
mov edx, 0x8000
mov ecx, esi
mov qword [rsp + 0x48], r12
call fcn.1400bcfc0
mov r12d, eax
nop
mov r8d, ebx
cmp rbx, r14
mov rdx, rbp
cmovge r8d, r14d
mov ecx, esi
call fcn.1400bb660
cmp eax, 0xffffffff
je 0x1400bc225
cdqe
sub rbx, rax
test rbx, rbx
jg 0x1400bc200
jmp 0x1400bc23e
call fcn.14009f170
cmp dword [rax], 5
jne 0x1400bc23a
call fcn.14009f140
mov dword [rax], reloc.WS2_32.dll_listen
or rdi, 0xffffffffffffffff
mov edx, r12d
mov ecx, esi
call fcn.1400bcfc0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x48]
jmp 0x1400bc2bc
test rbx, rbx
jns 0x1400bc2c6
xor r8d, r8d
mov rdx, rbp
mov ecx, esi
call fcn.1400bbf30
cmp rax, 0xffffffffffffffff
je 0x1400bc1ca
mov ecx, esi
call fcn.1400bab30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb rdi, rdi
neg rdi
sub rdi, 1
cmp rdi, 0xffffffffffffffff
jne 0x1400bc2c6
call fcn.14009f140
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14009f170
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
cmp rdi, 0xffffffffffffffff
je 0x1400bc1ca
xor r8d, r8d
mov rdx, r13
mov ecx, esi
call fcn.1400bbf30
cmp rax, 0xffffffffffffffff
je 0x1400bc1ca
xor eax, eax
jmp 0x1400bc1d1
call fcn.14009f140
mov rbp, qword [rsp + 0x58]
mov eax, dword [rax]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
Function at 0x1400c06c0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400aa770
xor ebx, ebx
cmp qword [0x14013b160], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x1400c07ec
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x1400c08ff
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400c08ff
mov rcx, rax
call fcn.1400aa6a0
lea rdx, [0x1400e4790]
mov rcx, rsi
mov qword [0x14013b160], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400aa6a0
lea rdx, [0x1400e4778]
mov rcx, rsi
mov qword [0x14013b168], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400aa6a0
lea rcx, [rsp + 0x98]
mov qword [0x14013b170], rax
call fcn.14009f620
test eax, eax
je 0x1400c079f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.14009cf00
cmp dword [rsp + 0x98], 2
jne 0x1400c07ec
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400aa6a0
test rax, rax
mov qword [0x14013b180], rax
je 0x1400c07ec
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400aa6a0
mov qword [0x14013b178], rax
mov rcx, qword [0x14013b178]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x1400c0898
cmp qword [0x14013b180], rbp
je 0x1400c0898
call fcn.1400aa860
mov rcx, qword [0x14013b180]
mov rsi, rax
call fcn.1400aa860
test rsi, rsi
mov r12, rax
je 0x1400c0898
test rax, rax
je 0x1400c0898
call rsi
test rax, rax
je 0x1400c0863
lea rcx, [rsp + 0x34]
mov r9d, reloc.WS2_32.dll_inet_ntoa
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400c0863
test byte [rsp + 0x40], 1
jne 0x1400c0898
lea rcx, [rsp + 0x30]
call fcn.14009f6c0
test eax, eax
je 0x1400c0885
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.14009cf00
cmp dword [rsp + 0x30], 4
jb 0x1400c0892
bts edi, 0x15
jmp 0x1400c08d6
bts edi, 0x12
jmp 0x1400c08d6
mov rcx, qword [0x14013b168]
cmp rcx, rbp
je 0x1400c08d6
call fcn.1400aa860
test rax, rax
je 0x1400c08d6
call rax
test rax, rax
mov rbx, rax
je 0x1400c08d6
mov rcx, qword [0x14013b170]
cmp rcx, rbp
je 0x1400c08d6
call fcn.1400aa860
test rax, rax
je 0x1400c08d6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14013b160]
call fcn.1400aa860
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x1400c08ff
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1400c0901
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400c2a80
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0xb0
mov rax, qword [0x140126108]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov esi, ecx
mov r9d, 0x78
and ecx, 0x3ff
mov rbp, r8
mov ebx, edx
lea edx, [r9 - 0x77]
lea r8, [rsp + 0x20]
bts ecx, 0xa
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1400c2b69
movzx ecx, byte [rsp + 0x20]
xor edx, edx
mov qword [rsp + 0xc8], rdi
test cl, cl
lea r8, [rsp + 0x20]
mov edi, edx
je 0x1400c2b1a
nop
lea eax, [rcx - 0x61]
add r8, 1
cmp al, 5
ja 0x1400c2b00
add cl, 0xd9
jmp 0x1400c2b0a
lea eax, [rcx - 0x41]
cmp al, 5
ja 0x1400c2b0a
add cl, 0xf9
movsx eax, cl
mov cl, byte [r8]
add edi, edi
test cl, cl
lea edi, [rax + rdi*8 - 0x30]
jne 0x1400c2af0
cmp esi, edi
je 0x1400c2b5c
test ebx, ebx
je 0x1400c2b5c
mov rdi, qword [rbp]
movzx eax, byte [rdi]
lea rcx, [rdi + 1]
nop
cmp al, 0x41
jl 0x1400c2b38
cmp al, 0x5a
jle 0x1400c2b3e
sub al, 0x61
cmp al, 0x19
ja 0x1400c2b49
mov al, byte [rcx]
add edx, 1
add rcx, 1
jmp 0x1400c2b30
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
cmp edx, ecx
je 0x1400c2b61
mov eax, 1
mov rdi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14009cca0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
Function at 0x1400c36a0
Capabilities:
Get geographical location

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x40
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], rdi
mov rax, qword [0x140126108]
xor rax, rbp
mov qword [rbp], rax
mov eax, dword [0x14013b1f8]
mov r15, r9
mov r13d, r8d
test eax, eax
mov r14d, edx
mov rbx, rcx
jne 0x1400c3721
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400c3704
mov dword [0x14013b1f8], 1
jmp 0x1400c3726
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1400c371b
mov dword [0x14013b1f8], 2
jmp 0x1400c374b
mov eax, dword [0x14013b1f8]
cmp eax, 1
jne 0x1400c373e
mov r9d, dword [rbp + 0x60]
mov r8, r15
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x1400c3852
cmp eax, 2
je 0x1400c374b
test eax, eax
jne 0x1400c3850
mov esi, dword [rbp + 0x68]
xor edi, edi
test esi, esi
jne 0x1400c375a
mov rax, qword [rbx]
mov esi, dword [rax + 4]
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
movsxd r12, eax
je 0x1400c3850
jle 0x1400c3850
xor edx, edx
mov rax, 0xffffffffffffffe0
mov rcx, r12
div r12
cmp rax, 1
jb 0x1400c3850
add rcx, 0x10
cmp rcx, 0x400
ja 0x1400c37d8
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x1400c37b6
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400d5380
sub rsp, rax
lea rbx, [rsp + 0x30]
test rbx, rbx
je 0x1400c3850
mov dword [rbx], 0xcccc
jmp 0x1400c37eb
call fcn.1400a2590
test rax, rax
mov rbx, rax
je 0x1400c37ef
mov dword [rax], 0xdddd
add rbx, 0x10
test rbx, rbx
je 0x1400c3850
mov r9d, r12d
mov r8, rbx
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1400c383a
mov eax, dword [rbp + 0x60]
or r9d, 0xffffffff
mov r8, rbx
test eax, eax
lea edx, [r9 + 2]
mov ecx, esi
jne 0x1400c3829
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
jmp 0x1400c3832
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
cmp dword [rbx - 0x10], 0xdddd
lea rcx, [rbx - 0x10]
jne 0x1400c384c
call fcn.14009ed20
mov eax, edi
jmp 0x1400c3852
xor eax, eax
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.14009cca0
mov rbx, qword [rbp + 0x40]
mov rsi, qword [rbp + 0x48]
mov rdi, qword [rbp + 0x50]
lea rsp, [rbp + 0x10]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400c39b0
Capabilities:
Get geographical location

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x50
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], rdi
mov rax, qword [0x140126108]
xor rax, rbp
mov qword [rbp], rax
mov eax, dword [0x14013b1fc]
mov r15, r9
mov r13d, r8d
test eax, eax
mov r14d, edx
mov rbx, rcx
jne 0x1400c3a68
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400c3a14
mov dword [0x14013b1fc], 1
jmp 0x1400c3a76
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1400c3a62
mov dword [0x14013b1fc], 2
mov r9d, dword [rbp + 0x60]
mov r8, r15
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.14009cca0
mov rbx, qword [rbp + 0x40]
mov rsi, qword [rbp + 0x48]
mov rdi, qword [rbp + 0x50]
lea rsp, [rbp + 0x10]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, dword [0x14013b1fc]
cmp eax, 2
je 0x1400c3a29
test eax, eax
je 0x1400c3a29
cmp eax, 1
jne 0x1400c3a9e
mov esi, dword [rbp + 0x68]
xor edi, edi
test esi, esi
jne 0x1400c3a85
mov rax, qword [rbx]
mov esi, dword [rax + 4]
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
movsxd r12, eax
jne 0x1400c3aa2
xor eax, eax
jmp 0x1400c3a3c
jle 0x1400c3a9e
xor edx, edx
mov rax, 0xffffffffffffffe0
div r12
cmp rax, 2
jb 0x1400c3a9e
lea rcx, [r12 + r12 + 0x10]
cmp rcx, 0x400
ja 0x1400c3af5
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x1400c3ad7
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400d5380
sub rsp, rax
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x1400c3a9e
mov dword [rbx], 0xcccc
jmp 0x1400c3b08
call fcn.1400a2590
test rax, rax
mov rbx, rax
je 0x1400c3b0c
mov dword [rax], 0xdddd
add rbx, 0x10
test rbx, rbx
je 0x1400c3a9e
mov r9d, r12d
mov r8, rbx
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400c3b5f
mov eax, dword [rbp + 0x60]
or r9d, 0xffffffff
xor edx, edx
test eax, eax
mov qword [rsp + 0x38], rdi
mov r8, rbx
mov ecx, esi
mov qword [rsp + 0x30], rdi
jne 0x1400c3b4e
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
jmp 0x1400c3b57
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
cmp dword [rbx - 0x10], 0xdddd
lea rcx, [rbx - 0x10]
jne 0x1400c3b71
call fcn.14009ed20
mov eax, edi
jmp 0x1400c3a3c

Function at 0x1400c40f0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140126108]
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 0x1400c4137
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14009cca0
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.1400a2b50
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14009cca0
add rsp, 0x38
ret
Function at 0x1400cb8c4
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x140126108]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.1400a0a70
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x140000000]
mov esi, __WSAFDIsSet
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.1400a0a70
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 0x1400cb957
cmp dword [rsp + 0x24], 5
jb 0x1400cb971
jmp 0x1400cb96d
cmp dword [rsp + 0x30], esi
jne 0x1400cb971
cmp dword [rsp + 0x24], 4
ja 0x1400cb96d
jne 0x1400cb971
cmp dword [rsp + 0x28], 0
jbe 0x1400cb971
mov byte [rbx + 0x18], sil
lea rax, [0x1400e6ed0]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.1400cb704
movzx ecx, byte [0x14013c318]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x14013c318], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14009cca0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1400d3a60
Capabilities:
Write 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, 0x450
mov rax, qword [0x140126108]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov edi, dword [r8]
xor r15d, r15d
mov r12, r8
test edi, edi
mov rbp, rdx
mov r13, rcx
mov esi, r15d
je 0x1400d3b09
mov r14d, 0x400
nop
nop
nop
mov ebx, edi
cmp edi, r14d
lea rcx, [rsp + 0x40]
cmova ebx, r14d
mov rdx, rbp
mov r8d, ebx
call fcn.1400a51c0
mov rcx, qword [r13]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, ebx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400d3afa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x5aa
je 0x1400d3b05
xor al, al
jmp 0x1400d3b0f
mov eax, dword [rsp + 0x30]
add esi, eax
sub edi, eax
add rbp, rax
test edi, edi
jne 0x1400d3ab0
mov dword [r12], esi
mov al, 1
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14009cca0
mov rbx, qword [rsp + 0x4a8]
add rsp, 0x450
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
call fcn.0044f147
cmovb rdx, rdx
jmp 0x40100d
mov r9b, 0x3d
mov rcx, 0x4e11f
lea r8, [0x00401027]
xor byte [r8 + rcx], r9b
add r9b, byte [r8 + rcx]
loop 0x40101e
jmp 0x40102d
call fcn.0044f11f
jmp 0x401037
cmovnp rdi, rdi
mov r13b, 0xf0
mov rcx, 0x4e0c9
lea r12, [0x00401055]
xor byte [r12 + rcx], r13b
add r13b, byte [r12 + rcx]
loop 0x40104c
call fcn.0044f0f7
jmp 0x401060
mov r10b, 0x33
mov rcx, 0x4e07c
lea rsi, [0x0040107a]
xor byte [rsi + rcx], r10b
add r10b, byte [rsi + rcx]
loop 0x401071
jmp 0x401080
call fcn.0044f0d8
cld
mov r9b, 0xa0
mov rcx, 0x4e037
lea r14, [0x004010a0]
xor byte [r14 + rcx], r9b
add r9b, byte [r14 + rcx]
loop 0x401097
call fcn.0044f0a6
jmp 0x4010ab
mov r13b, 0x19
mov rcx, 0x4dfe0
lea r8, [0x004010c5]
xor byte [r8 + rcx], r13b
add r13b, byte [r8 + rcx]
loop 0x4010bc
cmovp r9, r9
jmp 0x4010d1
call fcn.00448e96
sar byte [rbp + 4], 0
retf 0x7985