joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002167
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x14005c64c
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x14009b040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea rbx, [0x14009d6a0]
xor r12d, r12d
lea rdi, [0x140085984]
test r9, r9
mov rax, rdx
mov r15, rdx
cmovne rbx, r9
test rdx, rdx
lea ebp, [r12 + 1]
cmovne rbp, r8
cmovne rdi, rdx
neg rax
sbb r14, r14
and r14, rcx
test rbp, rbp
jne 0x14005c6ba
mov rax, 0xfffffffffffffffe
jmp 0x14005c7ed
cmp word [rbx + 6], r12w
jne 0x14005c710
mov rcx, rdi
call fcn.1400038d2
movsxd r8, eax
movzx eax, byte [rdi]
inc rdi
cmp r8d, 1
jbe 0x14005c700
lea ecx, [r8 - 2]
cmp ecx, 2
ja 0x14005c7e2
movzx edx, r8b
mov ecx, 7
sub ecx, edx
mov r9b, r8b
mov edx, 1
shl edx, cl
dec edx
and edx, eax
jmp 0x14005c739
test r14, r14
je 0x14005c708
mov dword [r14], eax
mov rax, r8
jmp 0x14005c7ed
mov r8b, byte [rbx + 4]
mov edx, dword [rbx]
mov r9b, byte [rbx + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x14005c7e2
cmp r9b, 1
jb 0x14005c7e2
cmp r9b, r8b
jae 0x14005c7e2
movzx r11d, r9b
cmp r11, rbp
mov r10d, r11d
cmovae r10, rbp
jmp 0x14005c767
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x14005c7e2
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r15
cmp rax, r10
jb 0x14005c749
cmp r10, r11
jae 0x14005c791
movzx eax, r8b
sub r9b, r10b
mov word [rbx + 4], ax
movzx eax, r9b
mov word [rbx + 6], ax
mov dword [rbx], edx
jmp 0x14005c6ae
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x14005c7e2
cmp edx, 0x110000
jae 0x14005c7e2
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x14005c7e2
test r14, r14
je 0x14005c7d0
mov dword [r14], edx
neg edx
mov rdx, rbx
sbb rcx, rcx
and rcx, r11
call fcn.1400039ae
jmp 0x14005c7ed
mov rdx, rsi
mov rcx, rbx
call fcn.140003fe4
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400025d1
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400021a8
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x14000a888
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14000a915
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x14000a915
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a915
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x14000a8fc
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14000a8f6
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14000a8fe
add rdx, 0x28
jmp 0x14000a8db
xor edx, edx
test rdx, rdx
jne 0x14000a907
xor al, al
jmp 0x14000a91b
cmp dword [rdx + 0x24], 0
jge 0x14000a911
xor al, al
jmp 0x14000a91b
mov al, 1
jmp 0x14000a91b
xor al, al
jmp 0x14000a91b
add rsp, 0x18
ret
Function at 0x140002469
Capabilities:
Query environment variable

Disassembly:
jmp 0x140063de0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140063e67
mov rsi, rbx
cmp word [rax], bp
je 0x140063e26
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140063e10
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140063e0c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140001037
mov rdi, rax
test rax, rax
je 0x140063e54
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400025d6
mov rbp, rdi
xor ecx, ecx
call fcn.140001163
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140002707
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400182f8
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x140086948]
mov ecx, 2
lea r8, [0x140086940]
lea rdx, str.FlsGetValue
call fcn.140017dc8
mov ecx, ebx
test rax, rax
je 0x140018332
add rsp, 0x20
pop rbx
jmp qword [0x1400a7020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x140002847
Capabilities:
Query environment variable

Disassembly:
jmp 0x140063c8c
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 0x140063cbc
xor eax, eax
jmp 0x140063d7f
mov rbp, rbx
cmp word [rax], si
je 0x140063ce1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140063cc8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140063cc4
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.1400031c0
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x140063d22
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140063cb5
call fcn.140001037
mov rdi, rax
test rax, rax
jne 0x140063d38
xor ecx, ecx
call fcn.140001163
jmp 0x140063d17
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.1400031c0
test eax, eax
jne 0x140063d69
mov rcx, rdi
call fcn.140001163
jmp 0x140063d73
xor ecx, ecx
call fcn.140001163
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 0x140002856
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140018248
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x140086908]
xor ecx, ecx
lea r8, [0x140086900]
lea rdx, str.FlsAlloc
call fcn.140017dc8
test rax, rax
je 0x140018281
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1400a7020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x1400028ce
Capabilities:
Get geographical location

Disassembly:
jmp 0x140057828
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1400a8050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x14005788d
test rax, rax
jne 0x14005787b
lea r9, [0x1400885e8]
lea r8, [0x1400885e0]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.140056cb8
test rax, rax
je 0x14005788d
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.140004133
jmp 0x1400578a7
xor edx, edx
mov rcx, rbp
call fcn.1400021f8
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400028dd
Capabilities:
Terminate process

Disassembly:
jmp 0x14007be0c
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x140002a18
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004e840
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14004e58c

Function at 0x140002bb2
Capabilities:
Parse pe header

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

Function at 0x140002ebe
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x14007baa0
movsxd r8, dword [rcx + 0x3c]
xor r9d, r9d
add r8, rcx
mov r10, rdx
movzx eax, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rax, 0x18
add rax, r8
test r11d, r11d
je 0x14007bae1
mov edx, dword [rax + 0xc]
cmp r10, rdx
jb 0x14007bad5
mov ecx, dword [rax + 8]
add ecx, edx
cmp r10, rcx
jb 0x14007bae3
inc r9d
add rax, 0x28
cmp r9d, r11d
jb 0x14007bac3
xor eax, eax
ret

Function at 0x140003323
Capabilities:
Terminate process

Disassembly:
jmp 0x140055b50
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x140055b6a
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.1400039b8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140003a9e
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140018350
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x140086968]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x140086960]
call fcn.140017dc8
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x140018390
call qword [0x1400a7020]
jmp 0x140018396
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140003b2f
Capabilities:
Set environment variable

Disassembly:
jmp 0x140072f90
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000213a
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14007301a
cmp byte [rbp - 0x21], r15b
je 0x140073015
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140073050
call fcn.140003ed6
test eax, eax
jne 0x14007303c
cmp byte [rbp - 0x21], r15b
je 0x140073034
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140073050
cmp byte [rbp - 0x21], r15b
je 0x14007304d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400040a2
test eax, eax
jne 0x1400730f0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000213a
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14007308f
cmp byte [rbp - 0x21], r15b
je 0x1400730c4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400730c4
call fcn.140003ed6
test eax, eax
jne 0x1400730b0
cmp byte [rbp - 0x21], r15b
je 0x1400730a9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400730c4
cmp byte [rbp - 0x21], r15b
je 0x1400730c1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400040a2
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400730f0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400730f3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140073101
mov rcx, rdi
call fcn.140001163
cmp byte [rbp + 0x3f], r15b
je 0x140073110
mov rcx, qword [rbp + 0x27]
call fcn.140001163
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140003c24
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004e830
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14004e5fb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004e5fb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004e5fb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004e5fb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004e5fb
cmp dword [rcx + 0x84], 0xe
jbe 0x14004e5fb
cmp dword [rcx + 0xf8], 0
je 0x14004e5fb
mov ecx, ebx
call fcn.14004e780
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14004e2f4
nop
cmp dword [rbp + 0x20], 0
jne 0x14004e65c
call fcn.140001677
cmp eax, 1
jne 0x14004e64c
xor dl, dl
jmp 0x14004e656
call fcn.140002392
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14004e667
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14004e6a8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14004e58c

Function at 0x1400072f0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0xf8
call fcn.140001ec9
mov r8, qword [0x14009c1d8]
mov rdx, qword [0x14009c1d0]
lea rcx, str.Suspend:__p_nResume_p_n
call fcn.14000255e
lea rcx, [rsp + 0x78]
xor edx, edx
mov r8d, 0x68
call fcn.140003170
mov dword [rsp + 0x78], 0x68
mov rax, qword [str.target.exe]
mov qword [rsp + 0x60], rax
mov rax, qword [0x140084f88]
mov qword [rsp + 0x68], rax
mov eax, dword [0x140084f90]
mov dword [rsp + 0x70], eax
mov ax, word [0x140084f94]
mov word [rsp + 0x74], ax
lea rdx, [rsp + 0x60]
xor eax, eax
mov r9d, eax
xor eax, eax
lea r10, [rsp + 0x78]
lea rax, [rsp + 0xe0]
mov rcx, r9
mov r8, r9
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], r10
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x5c], eax
mov r8, qword [rsp + 0xe0]
mov edx, dword [rsp + 0x5c]
lea rcx, str.CreateProcessW:__d__p_n
call fcn.14000255e
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.Suspending_n
call fcn.14000255e
mov rax, qword [0x14009c1d0]
mov rcx, qword [rsp + 0xe0]
call rax
mov dword [rsp + 0x58], eax
mov edx, dword [rsp + 0x58]
lea rcx, str.Suspend__lx_n
call fcn.14000255e
mov rcx, qword [rsp + 0xe0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x54], eax
mov edx, dword [rsp + 0x54]
lea rcx, str.wait__lx_n
call fcn.14000255e
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0xf8
ret
Function at 0x14000ae38
Capabilities:
Parse pe header

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

Function at 0x14004c1d4
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x14009b040]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r10, rax
lea rdx, [rax - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x14004c260
lea r8, [rsp + 0x40]
xor edx, edx
mov cl, byte [rbx]
lea rax, [rsp + 0x234]
mov byte [r8], cl
inc r8
cmp r8, rax
je 0x14004c232
movzx eax, word [rbx]
add rbx, 2
test ax, ax
jne 0x14004c211
lea rax, [rsp + 0x40]
mov byte [rsp + 0x233], dl
sub r8d, eax
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x30]
dec r8d
lea rdx, [rsp + 0x40]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400025d1
add rsp, 0x250
pop rbx
ret

Function at 0x14004e58c
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004e830
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14004e5fb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004e5fb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004e5fb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004e5fb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004e5fb
cmp dword [rcx + 0x84], 0xe
jbe 0x14004e5fb
cmp dword [rcx + 0xf8], 0
je 0x14004e5fb
mov ecx, ebx
call fcn.14004e780
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14004e2f4
nop
cmp dword [rbp + 0x20], 0
jne 0x14004e65c
call fcn.140001677
cmp eax, 1
jne 0x14004e64c
xor dl, dl
jmp 0x14004e656
call fcn.140002392
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14004e667
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14004e6a8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14004e58c
Function at 0x140057828
Capabilities:
Get geographical location

Disassembly:
jmp 0x140057828
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1400a8050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x14005788d
test rax, rax
jne 0x14005787b
lea r9, [0x1400885e8]
lea r8, [0x1400885e0]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.140056cb8
test rax, rax
je 0x14005788d
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.140004133
jmp 0x1400578a7
xor edx, edx
mov rcx, rbp
call fcn.1400021f8
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14005fa68
Capabilities:
Print debug messages

Disassembly:
jmp 0x14005fa68
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ebx, eax
test eax, eax
je 0x14005fab0
test rdi, rdi
je 0x14005fa9f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.1400017f8
cmp eax, 1
je 0x14005fab0
mov eax, 4
jmp 0x14005faf5
call fcn.140003977
cmp eax, 2
jne 0x14005faec
call fcn.140001852
test al, al
je 0x14005faec
call fcn.140002ae5
test al, al
jne 0x14005fae2
bts esi, 0x15
xor ecx, ecx
mov rdx, rdi
mov r8, rbp
mov r9d, esi
call fcn.1400039b3
jmp 0x14005faf5
call fcn.14000385a
mov rcx, rax
jmp 0x14005fad2
neg ebx
sbb eax, eax
neg eax
add eax, 3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140063c8c
Capabilities:
Query environment variable

Disassembly:
jmp 0x140063c8c
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 0x140063cbc
xor eax, eax
jmp 0x140063d7f
mov rbp, rbx
cmp word [rax], si
je 0x140063ce1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140063cc8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140063cc4
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.1400031c0
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x140063d22
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140063cb5
call fcn.140001037
mov rdi, rax
test rax, rax
jne 0x140063d38
xor ecx, ecx
call fcn.140001163
jmp 0x140063d17
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.1400031c0
test eax, eax
jne 0x140063d69
mov rcx, rdi
call fcn.140001163
jmp 0x140063d73
xor ecx, ecx
call fcn.140001163
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 0x140063de0
Capabilities:
Query environment variable

Disassembly:
jmp 0x140063de0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140063e67
mov rsi, rbx
cmp word [rax], bp
je 0x140063e26
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140063e10
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140063e0c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140001037
mov rdi, rax
test rax, rax
je 0x140063e54
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400025d6
mov rbp, rdi
xor ecx, ecx
call fcn.140001163
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140069884
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x1400698f7
cmp word [rcx], si
je 0x1400698f7
lea rdx, [0x14008b120]
call fcn.140002603
test eax, eax
je 0x1400698f7
lea rdx, [0x14008b140]
mov rcx, rbx
call fcn.140002603
test eax, eax
jne 0x1400698ed
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140069914
mov eax, dword [rsp + 0x30]
jmp 0x140069926
mov rcx, rbx
call fcn.140001082
jmp 0x140069926
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x140069918
xor eax, eax
jmp 0x140069926
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x140069926
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140069994
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.1400019fb
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140069a37
cmp edi, dword [rsp + 0x30]
je 0x140069a30
test ebp, ebp
je 0x140069a30
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x140069a0c
sub dx, 0x61
cmp dx, 0x19
ja 0x140069a18
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x1400699f9
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x140069a1c
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x140069a39
mov eax, 1
jmp 0x140069a39
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret