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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x1400ad0e8]
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
jne 0x14004aaf8
nop word [rax + rax]
cmp qword [rax + 0x20], rbx
jae 0x14004aaec
mov rax, qword [rax + 0x10]
jmp 0x14004aaf2
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x14004aae0
cmp byte [rcx + 0x19], 0
jne 0x14004ab23
cmp rbx, qword [rcx + 0x20]
jb 0x14004ab23
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
lea rcx, [0x1400ad0e8]
call fcn.14004a880
mov rax, qword [rax]
add rsp, 0x20
pop rbx
ret
movzx eax, word [rbx + 8]
mov qword [rsp + 0x38], rbp
xor ebp, ebp
mov edx, ebp
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
cmp word [rbx], ax
je 0x14004ab73
lea r8, [rbx + 8]
nop dword [rax]
nop word [rax + rax]
inc edx
lea r8, [r8 + 2]
mov eax, edx
and eax, 0x80000003
jge 0x14004ab66
dec eax
or eax, 0xfffffffc
inc eax
movsxd rcx, eax
movzx eax, word [r8]
cmp word [rbx + rcx*2], ax
jne 0x14004ab50
movsxd rcx, edx
mov eax, 2
inc rcx
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140069230
movzx ecx, word [rbx]
mov rdi, rax
movzx r9d, word [rbx + 8]
mov r10d, ebp
cmp cx, r9w
je 0x14004abe6
mov r8, rbp
mov rdx, rbp
nop
inc r10d
lea r8, [r8 + 1]
xor cx, r9w
mov eax, r10d
mov word [rdx + rdi], cx
and eax, 0x80000003
jge 0x14004abd0
dec eax
or eax, 0xfffffffc
inc eax
cdqe
lea rdx, [r8 + r8]
movzx r9d, word [rdx + rbx + 8]
movzx ecx, word [rbx + rax*2]
cmp cx, r9w
jne 0x14004abb0
movsxd rax, r10d
lea rdx, [rsp + 0x30]
lea rcx, [0x1400ad0e8]
mov qword [rsp + 0x30], rbx
mov word [rdi + rax*2], bp
call fcn.14004a880
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov qword [rax], rdi
mov rax, rdi
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbx
ret
Function at 0x140050600
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400ab100]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx]
lea r9, [rsp + 0x30]
xor ebx, ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x30]
test eax, eax
cmove ecx, ebx
mov eax, ecx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140069100
add rsp, 0x40
pop rbx
ret

Function at 0x140050670
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400ab100]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rcx
mov qword [rsp + 0x20], 0
mov rcx, qword [rcx]
lea r9, [rsp + 0x30]
mov ebx, r8d
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400506bd
cmp dword [rsp + 0x30], ebx
jne 0x1400506bd
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov al, 1
jmp 0x1400506bf
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140069100
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1400530f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r8, [0x140094628]
mov rcx, qword [0x1400ad100]
mov edx, 0x68
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x1400531b5
mov rcx, qword [0x1400ad100]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400531b5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1400531b5
mov rcx, qword [0x1400ad100]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
mov dword [rdi], ecx
shr rcx, 1
call fcn.140069230
mov ecx, dword [rdi]
xor r10d, r10d
test ecx, ecx
je 0x1400531a1
lea ecx, [r10 + 1]
mov r9d, r10d
movzx r8d, byte [rcx + rbx]
movzx ecx, byte [rbx + r10]
sub r8b, 0x41
dec cl
shr r9, 1
shl cl, 4
add r10d, 2
or r8b, cl
mov byte [r9 + rax], r8b
mov ecx, dword [rdi]
cmp r10d, ecx
jb 0x140053172
shr ecx, 1
mov dword [rdi], ecx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140053760
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
movsx eax, r8b
xor r9d, r9d
movd xmm2, eax
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
test edx, edx
je 0x14005381d
cmp edx, 0x40
jb 0x1400537fb
mov r11d, edx
mov qword [rsp], rbx
and r11d, 0xffffffc0
lea ebx, [r9 + 0x20]
nop dword [rax + rax]
movdqu xmm0, xmmword [rcx + r9]
lea eax, [rbx - 0x10]
movdqa xmm1, xmm2
xorps xmm1, xmm0
movdqu xmmword [rcx + r9], xmm1
add r9d, 0x40
movdqu xmm0, xmmword [rax + rcx]
movdqa xmm1, xmm2
xorps xmm0, xmm2
movdqu xmmword [rax + rcx], xmm0
mov eax, ebx
movdqu xmm0, xmmword [rax + rcx]
xorps xmm1, xmm0
movdqu xmmword [rax + rcx], xmm1
lea eax, [rbx + 0x10]
add ebx, 0x40
movdqu xmm0, xmmword [rax + rcx]
xorps xmm0, xmm2
movdqu xmmword [rax + rcx], xmm0
cmp r9d, r11d
jb 0x1400537a0
mov rbx, qword [rsp]
cmp r9d, edx
jae 0x14005381d
mov eax, r9d
add rax, rcx
sub edx, r9d
mov ecx, edx
nop word [rax + rax]
xor byte [rax], r8b
lea rax, [rax + 1]
sub rcx, 1
jne 0x140053810
add rsp, 8
ret
Function at 0x1400689c0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1400689ee
xor eax, eax
jmp 0x140068ad4
cmp qword [rcx + 0x68], 0
je 0x1400689ff
call fcn.1400491c0
jmp 0x140068ad4
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140068a16
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140068a18
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140068a4a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14008dec0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140068ace
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140068a81
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140068aaa
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140079f18
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140068ace
cmp rsi, rbx
ja 0x140068a88
test rsi, rsi
je 0x140068ace
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140079f18
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140069cd4
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x14006fbd7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400794bc
call fcn.140079548
mov eax, dword [rax]
jmp 0x14006fc4e
cmp rdi, qword [rbx + 0x18]
ja 0x14006fbe3
mov qword [rbx + 0x20], rdi
jmp 0x14006fc4c
cmp byte [rbx + 0x28], 0
lea rsi, [rdi + 1]
je 0x14006fbfa
mov rcx, qword [rbx + 0x10]
call fcn.14007dd7c
mov byte [rbx + 0x28], 0
lea rcx, [rdi*2 + 2]
call fcn.14007ddb8
mov qword [rbx + 0x10], rax
mov r8, rax
neg rax
mov edx, 0
sbb eax, eax
not eax
and eax, 0xc
cmove rdx, rsi
test eax, eax
sete cl
mov byte [rbx + 0x28], cl
mov qword [rbx + 0x18], rdx
test eax, eax
jne 0x14006fc4e
mov ecx, dword [rbx + 0x18]
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x14006fbc1
mov qword [rbx + 0x20], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140076850
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140076887
call fcn.140079548
mov dword [rax], 0x16
call fcn.140070244
xor eax, eax
jmp 0x140076915
mov rdx, r9
mov rcx, r8
call fcn.1400767ec
mov rbx, rax
test rax, rax
je 0x140076912
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140076718]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400768ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400794bc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400768e6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400768f5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14007dd7c
jmp 0x140076912
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14007690f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14007b5d0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14007b3cc
Function at 0x14007f258
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400ab100]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14007f2a2
call fcn.140079528
mov dword [rax], 0xf
call fcn.140079548
mov dword [rax], 0xd
call fcn.140070244
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140069100
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14007f2ad
lea eax, [rbx + 1]
jmp 0x14007f28f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14007f28d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14007f28f
Function at 0x14008193c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140081952
mov al, 1
jmp 0x1400819b2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140081963
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400819b0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140086ea8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400819b0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400819b0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400819b0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400819b2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140084294
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400691e0
sub rsp, rax
mov rax, qword [0x1400ab100]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400804b8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400842e3
mov rax, rbp
jmp 0x1400843eb
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xae6a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140085174
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xae6a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400843e7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400843e7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140085174
test rax, rax
js 0x1400843e7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400843e7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400843d9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400843d9
cmp byte [rcx], 0xd
jne 0x1400843bf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400843ce
cmp byte [rcx + 1], 0xa
jne 0x1400843ce
inc rcx
jmp 0x1400843ce
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xab540]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400843a1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400843eb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140069100
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140084514
Capabilities:
Read 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, 0x30
movsxd r15, ecx
lea r9, [0x1400ae6a0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14008456b
cmp word [rdx], r13w
jne 0x14008456b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140084570
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140084695
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400846b6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400845a9
mov rdx, r9
mov word [rbx], cx
jmp 0x1400845d0
cmp r9, r8
jae 0x1400845e0
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14008458a
jmp 0x140084695
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008468a
cmp dword [rsp + 0x80], esi
je 0x14008468a
lea r8, [0x1400ae6a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140084662
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140084632
mov word [rbx], r13w
jmp 0x140084692
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14008463f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140084692
cmp word [rsp + 0x70], r13w
jne 0x14008466f
cmp rbx, r14
je 0x14008462c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14008517c
cmp word [rsp + 0x70], r13w
je 0x140084695
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400ae6a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14008468f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140084695
Function at 0x1400867dc
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14008680c
xor eax, eax
jmp 0x1400868cf
mov rbp, rbx
cmp word [rax], si
je 0x140086831
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140086818
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140086814
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.14007de18
movsxd r14, eax
test eax, eax
jne 0x14008686f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140086805
mov rcx, r14
call fcn.14007ddb8
mov rdi, rax
test rax, rax
jne 0x140086888
xor ecx, ecx
call fcn.14007dd7c
jmp 0x140086864
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.14007de18
test eax, eax
jne 0x1400868b9
mov rcx, rdi
call fcn.14007dd7c
jmp 0x1400868c3
xor ecx, ecx
call fcn.14007dd7c
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 0x1400893fc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14007e270
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14008949d
cmp ebx, dword [rsp + 0x30]
je 0x140089496
test esi, esi
je 0x140089496
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140089471
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14008947e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14008945b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140089482
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14008949f
mov eax, 1
jmp 0x14008949f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14008d730
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14008d758
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14008d758
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x10001e024
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
push r12
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x1000301f8], rdi
je 0x10001e07d
cmp rax, rdi
jne 0x10001e070
mov esi, 1
jmp 0x10001e07d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10001e057
mov eax, dword [0x1000301f0]
cmp eax, 1
jne 0x10001e092
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x10001e0f7
mov eax, dword [0x1000301f0]
test eax, eax
jne 0x10001e0ed
mov dword [0x1000301f0], 1
lea r12, [0x100001690]
lea rdi, [0x100001678]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
cmp rdi, r12
jae 0x10001e0df
test eax, eax
jne 0x10001e0df
mov rcx, qword [rdi]
test rcx, rcx
je 0x10001e0d4
call rcx
mov dword [rsp + 0x30], eax
add rdi, 8
mov qword [rsp + 0x38], rdi
jmp 0x10001e0bd
test eax, eax
je 0x10001e0f7
mov eax, 0xff
jmp 0x10001e241
mov dword [0x10002f924], 1
mov eax, dword [0x1000301f0]
cmp eax, 1
jne 0x10001e11f
lea rdx, [0x100001670]
lea rcx, [0x1000015f8]
call sub.msvcrt.dll__initterm
mov dword [0x1000301f0], 2
test esi, esi
jne 0x10001e12c
xor eax, eax
xchg qword [0x1000301f8], rax
cmp qword [0x100030210], 0
je 0x10001e155
lea rcx, [0x100030210]
call fcn.10001e5dc
test eax, eax
je 0x10001e155
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100030210]
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rdi, qword [rax]
mov qword [rsp + 0x28], rdi
mov esi, dword [rsp + 0x20]
cmp byte [rdi], 0x20
ja 0x10001e1e0
cmp byte [rdi], 0
je 0x10001e176
test esi, esi
jne 0x10001e1e0
cmp byte [rdi], 0
je 0x10001e18a
cmp byte [rdi], 0x20
ja 0x10001e18a
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x10001e176
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rdi
xor edx, edx
lea rcx, [0x100000000]
call fcn.100008db4
mov dword [0x10002f920], eax
cmp dword [0x10002f904], 0
jne 0x10001e1c9
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x10002f924], 0
jne 0x10001e1de
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x10002f920]
jmp 0x10001e241
cmp byte [rdi], 0x22
jne 0x10001e1f2
xor eax, eax
test esi, esi
sete al
mov esi, eax
mov dword [rsp + 0x20], eax
movzx ecx, byte [rdi]
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x10001e207
inc rdi
mov qword [rsp + 0x28], rdi
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x10001e168
lea r11, [rsp + 0xb0]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r12
ret
sub rsp, 0x28
call fcn.100155000
add rsp, 0x28
jmp 0x10001e024
Function at 0x140ab3058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140ab31df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140ab3089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ab306f
add dl, dl
jne 0x140ab3096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ab30f6
xor eax, eax
add dl, dl
jne 0x140ab30a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ab31ad
add dl, dl
jne 0x140ab30b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ab30c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ab30d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ab30dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140ab30ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140ab307e
mov eax, 1
add dl, dl
jne 0x140ab3106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ab3113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ab30fb
sub eax, ebx
mov ebx, 1
jne 0x140ab314c
mov ecx, 1
add dl, dl
jne 0x140ab312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ab313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ab3123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ab307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140ab3168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ab3175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ab315d
cmp eax, 0x7d00
jae 0x140ab319b
cmp eax, 0x500
jb 0x140ab3196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ab307e
cmp eax, 0x7f
ja 0x140ab319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ab307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140ab31d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140ab307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20