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

Disassembly:
cld
pop r11
jmp 0xa2faad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xa2fabd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xa2faa5
lea eax, [rcx + 1]
jmp 0xa2facb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xa2fade
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xa2fac4
sub eax, 3
jb 0xa2fafe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xa2fb4d
sar eax, 1
movsxd rbp, eax
jb 0xa2fb34
jmp 0xa2fb0c
add ebx, ebx
jne 0xa2fb0a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xa2fb34
inc ecx
add ebx, ebx
jne 0xa2fb1a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xa2fb34
call r11
adc ecx, ecx
add ebx, ebx
jne 0xa2fb2d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xa2fb1c
add ecx, 2
jmp 0xa2fb39
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00a2fa62
jmp 0xa2faad
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2c1e00
mov dl, 0x1d
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xa2fb99
cmp rsi, rcx
jae 0xa2fba1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xa2fb80
cmp al, 0x8f
ja 0xa2fb80
cmp byte [rsi - 2], 0xf
je 0xa2fb86
sub al, 0xe8
cmp al, 1
ja 0xa2fb6a
cmp rsi, rcx
jae 0xa2fba1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xa2fb70
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xa2fba1
lodsb al, byte [rsi]
jmp 0xa2fb80
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x627000]
mov eax, dword [rdi]
or eax, eax
je 0xa2fbfe
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x62f000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0xa2fbae
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0xa2fbf8
mov qword [rbx], rax
add rbx, 8
jmp 0xa2fbce
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xa2fc42
cmp al, 0xef
ja 0xa2fc2a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xa2fc0a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xa2fc19
mov eax, dword [rdi]
add rdi, 4
jmp 0xa2fc19
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xa2fc96
sub rsp, 0xffffffffffffff80
jmp 0x4670c0
Function at 0x140002180
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0xa1790]
mov eax, 0xa1890
call fcn.140011240
sub rsp, rax
mov rax, qword [0x140026040]
xor rax, rsp
mov qword [rbp + 0xa1780], rax
xor ebx, ebx
mov dword [rsp + 0x68], 0x10001
mov dword [rsp + 0x28], ebx
lea r8, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov edx, 0xffffffff
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x6c], 0x5622
mov dword [rsp + 0x70], 0x5622
mov dword [rsp + 0x74], 0x80001
mov word [rsp + 0x78], bx
call qword [sym.imp.WINMM.dll_waveOutOpen]
xor edx, edx
lea rcx, [rbp - 0x7f]
mov r8d, 0xa17fb
call fcn.1400116b0
mov eax, ebx
lea r9, [rbp - 0x80]
mov r8d, eax
lea r9, [r9 + 1]
shr r8d, 8
movzx ecx, al
shl cl, 4
mov edx, eax
and r8b, cl
shr edx, 4
movzx ecx, al
shl cl, 2
xor r8b, cl
movzx ecx, al
add cl, cl
xor r8b, dl
and cl, dl
inc eax
or r8b, cl
mov byte [r9 - 1], r8b
cmp eax, 0xa17fc
jb 0x140002210
mov rcx, qword [rsp + 0x30]
lea rax, [rbp - 0x80]
mov r8d, 0x30
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x40], 0xa17fc
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
call qword [sym.imp.WINMM.dll_waveOutPrepareHeader]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
call qword [sym.imp.WINMM.dll_waveOutWrite]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
call qword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WINMM.dll_waveOutClose]
mov rcx, qword [rbp + 0xa1780]
xor rcx, rsp
call fcn.140002da0
mov rbx, qword [rsp + 0xa18a0]
add rsp, 0xa1890
pop rbp
ret
Function at 0x1400022e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x50b90]
mov eax, 0x50c90
call fcn.140011240
sub rsp, rax
mov rax, qword [0x140026040]
xor rax, rsp
mov qword [rbp + 0x50b80], rax
xor ebx, ebx
mov dword [rsp + 0x68], 0x10001
mov dword [rsp + 0x28], ebx
lea r8, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov edx, 0xffffffff
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x6c], 0x2b11
mov dword [rsp + 0x70], 0x2b11
mov dword [rsp + 0x74], 0x80001
mov word [rsp + 0x78], bx
call qword [sym.imp.WINMM.dll_waveOutOpen]
xor edx, edx
lea rcx, [rbp - 0x7f]
mov r8d, 0x50bfd
call fcn.1400116b0
mov eax, ebx
lea r8, [rbp - 0x80]
movzx ecx, al
lea r8, [r8 + 1]
add cl, cl
movzx edx, al
shl dl, 4
and dl, al
xor dl, cl
mov ecx, eax
shr ecx, 4
and dl, cl
movzx ecx, al
shl cl, 2
inc eax
xor dl, cl
xor dl, 7
mov byte [r8 - 1], dl
cmp eax, 0x50bfe
jb 0x140002370
mov rcx, qword [rsp + 0x30]
lea rax, [rbp - 0x80]
mov r8d, 0x30
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x40], 0x50bfe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
call qword [sym.imp.WINMM.dll_waveOutPrepareHeader]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
call qword [sym.imp.WINMM.dll_waveOutWrite]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
call qword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WINMM.dll_waveOutClose]
mov rcx, qword [rbp + 0x50b80]
xor rcx, rsp
call fcn.140002da0
mov rbx, qword [rsp + 0x50ca0]
add rsp, 0x50c90
pop rbp
ret
Function at 0x140002700
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x50b90]
mov eax, 0x50c90
call fcn.140011240
sub rsp, rax
mov rax, qword [0x140026040]
xor rax, rsp
mov qword [rbp + 0x50b80], rax
xor ebx, ebx
mov dword [rsp + 0x68], 0x10001
mov dword [rsp + 0x28], ebx
lea r8, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov edx, 0xffffffff
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x6c], 0x2b11
mov dword [rsp + 0x70], 0x2b11
mov dword [rsp + 0x74], 0x80001
mov word [rsp + 0x78], bx
call qword [sym.imp.WINMM.dll_waveOutOpen]
xor edx, edx
lea rcx, [rbp - 0x7f]
mov r8d, 0x50bfd
call fcn.1400116b0
mov eax, ebx
lea r8, [rbp - 0x80]
mov edx, eax
lea r8, [r8 + 1]
shr edx, 8
mov ecx, eax
shr ecx, 1
and dl, cl
mov ecx, eax
shr ecx, 3
and cl, 0x17
xor dl, cl
movsx ecx, al
movsx edx, dl
inc eax
imul edx, ecx
mov byte [r8 - 1], dl
cmp eax, 0x50bfe
jb 0x140002790
mov rcx, qword [rsp + 0x30]
lea rax, [rbp - 0x80]
mov r8d, 0x30
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x40], 0x50bfe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
call qword [sym.imp.WINMM.dll_waveOutPrepareHeader]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
call qword [sym.imp.WINMM.dll_waveOutWrite]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
call qword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WINMM.dll_waveOutClose]
mov rcx, qword [rbp + 0x50b80]
xor rcx, rsp
call fcn.140002da0
mov rbx, qword [rsp + 0x50ca0]
add rsp, 0x50c90
pop rbp
ret
Function at 0x1400038e4
Capabilities:
Parse pe header

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

Function at 0x1400082c8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400080c4
Function at 0x14000951c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov ebp, 0x7ff
movzx ecx, word [rcx + 6]
mov esi, edx
shr cx, 4
and cx, bp
cmp cx, bp
jne 0x14000957d
test byte [rbx + 6], 0xf
jne 0x140009570
xor edi, edi
cmp word [rbx + 4], di
jne 0x140009570
cmp word [rbx + 2], di
jne 0x140009570
cmp word [rbx], di
jne 0x140009570
lea esi, [rdi + 1]
jmp 0x140009575
mov esi, 2
movzx eax, si
jmp 0x140009775
xor edi, edi
test cx, cx
jne 0x140009598
mov rcx, rbx
call fcn.14000d960
movzx ecx, ax
cmp di, ax
jl 0x140009772
movsx edx, cx
test esi, esi
jle 0x1400095c8
sub ebp, edx
cmp ebp, esi
jg 0x1400095c8
movsd xmm0, qword [0x140015c78]
cmp word [rbx + 6], di
jge 0x1400095ba
xorps xmm0, xmmword [0x140014560]
movsd qword [rbx], xmm0
mov eax, 1
jmp 0x140009775
movzx r11d, word [rbx + 6]
mov eax, edx
neg eax
cmp eax, esi
jge 0x1400095f5
add si, cx
mov eax, 0x800f
shl si, 4
and r11w, ax
or si, r11w
mov word [rbx + 6], si
or eax, 0xffffffff
jmp 0x140009775
movzx r15d, r11w
lea ebp, [rsi - 1]
and r11w, 0xf
mov r13d, 0x8000
mov r12d, 0x10
and r15w, r13w
or r11w, r12w
add ebp, edx
cmp ebp, 0xffffffcb
jl 0x140009767
test ebp, ebp
jns 0x140009767
lea esi, [r12 - 0xf]
movzx r14d, di
cmp bp, 0xfff0
jg 0x14000968a
movzx edx, word [rbx + 4]
mov eax, 0xfff0
movzx r8d, word [rbx + 2]
sub ax, bp
shr ax, 4
add ax, si
movzx ecx, ax
movzx eax, cx
shl ax, 4
add bp, ax
test r14w, r14w
mov eax, edi
setne al
movzx r14d, ax
or r14w, word [rbx]
mov word [rbx], r8w
movzx r8d, dx
movzx edx, r11w
mov r11d, edi
sub rcx, rsi
jne 0x14000965c
mov word [rbx + 4], dx
mov word [rbx + 2], r8w
neg bp
je 0x140009709
movzx r8d, word [rbx]
mov eax, edi
movzx r9d, word [rbx + 2]
movzx edx, r8w
movsx r10d, bp
sub r12d, r10d
mov ecx, r12d
shl dx, cl
test r14w, r14w
movzx r14d, dx
movzx edx, word [rbx + 4]
setne al
or r14w, ax
movzx eax, r9w
shl ax, cl
movzx ecx, bp
shr r8w, cl
mov ecx, r12d
or ax, r8w
mov word [rbx], ax
movzx eax, dx
shl ax, cl
movzx ecx, bp
shr r9w, cl
mov ecx, r12d
or ax, r9w
mov word [rbx + 2], ax
movzx eax, r11w
shl ax, cl
movzx ecx, bp
shr dx, cl
mov ecx, r10d
or ax, dx
mov word [rbx + 4], ax
shr r11w, cl
or r11w, r15w
mov word [rbx + 6], r11w
cmp r13w, r14w
jb 0x14000971f
jne 0x14000973e
test byte [rbx], sil
je 0x14000973e
add word [rbx], si
jne 0x14000973e
add word [rbx + 2], si
jne 0x14000973e
add word [rbx + 4], si
jne 0x14000973e
add r11w, si
mov word [rbx + 6], r11w
jmp 0x1400095ed
cmp r11w, r15w
jne 0x1400095ed
cmp word [rbx + 4], di
jne 0x1400095ed
cmp word [rbx + 2], di
jne 0x1400095ed
movzx eax, word [rbx]
neg ax
sbb ax, ax
jmp 0x140009775
mov word [rbx + 6], r15w
mov dword [rbx + 2], edi
mov word [rbx], di
movzx eax, di
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000b830
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 0x14000b860
xor eax, eax
jmp 0x14000b923
mov rbp, rbx
cmp word [rax], si
je 0x14000b885
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000b86c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000b868
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.14000b750
movsxd r14, eax
test eax, eax
jne 0x14000b8c3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000b859
mov rcx, r14
call fcn.14000c2c4
mov rdi, rax
test rax, rax
jne 0x14000b8dc
xor ecx, ecx
call fcn.140009d88
jmp 0x14000b8b8
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.14000b750
test eax, eax
jne 0x14000b90d
mov rcx, rdi
call fcn.140009d88
jmp 0x14000b917
xor ecx, ecx
call fcn.140009d88
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 0x140011180
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400111a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400111a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400022e0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions
Get system information on windows

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14003edf0]
test rax, rax
jne 0x1400023ff
mov qword [rsp + 0x38], rsi
lea r9, [rsp + 0x50]
xor esi, esi
lea r8d, [rax + 8]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], rsi
mov ecx, 0xc5
mov dword [rsp + 0x50], esi
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp dword [rsp + 0x50], 8
jne 0x14000234d
test eax, eax
js 0x14000234d
mov rax, qword [rsp + 0x60]
xor edx, edx
mov rcx, qword [rax + 8]
movabs rax, 0x98968000000000
shr rcx, 0x20
div rcx
mov qword [0x14003edf0], rax
jmp 0x140002354
mov rax, qword [0x14003edf0]
test rax, rax
jne 0x1400023fa
mov qword [rsp + 0x40], rbx
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
rdtsc
shl rdx, 0x20
mov ecx, 2
or rax, rdx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rsp + 0x58]
lea rcx, [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
rdtsc
shl rdx, 0x20
lea rcx, [rsp + 0x68]
or rax, rdx
mov qword [rsp + 0x68], rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rcx, qword [rsp + 0x20]
sub rbx, rdi
imul rbx, qword [rsp + 0x68]
sub rcx, qword [rsp + 0x58]
xor edx, edx
mov rdi, qword [rsp + 0x30]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
div rcx
mov ecx, 0x3b9aca00
test rax, rax
cmove rax, rcx
mov qword [0x14003edf0], rax
mov rsi, qword [rsp + 0x38]
add rsp, 0x48
ret

Function at 0x140002430
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x28], 0
lea r8, [0x140002410]
xor r9d, r9d
mov dword [rsp + 0x20], 4
xor edx, edx
xor ecx, ecx
call fcn.14000baa8
mov edx, 1
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.14000ddd0
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x14000baa8
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 0x14000badf
call fcn.140010628
mov dword [rax], 0x16
call fcn.14000e16c
xor eax, eax
jmp 0x14000bb6d
mov rdx, r9
mov rcx, r8
call fcn.14000ba44
mov rbx, rax
test rax, rax
je 0x14000bb6a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14000b970]
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 0x14000bb57
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001059c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14000bb3e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14000bb4d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140016e94
jmp 0x14000bb6a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000bb67
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 0x140014578
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140014374
Function at 0x14001b0f8
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.140005cc0
sub rsp, rax
mov rax, qword [0x14003c028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140019710
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001b147
mov rax, rbp
jmp 0x14001b24f
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 + 0x3e860]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001c218
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3e860]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001b24b
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 0x14001b24b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001c218
test rax, rax
js 0x14001b24b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001b24b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001b23d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001b23d
cmp byte [rcx], 0xd
jne 0x14001b223
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001b232
cmp byte [rcx + 1], 0xa
jne 0x14001b232
inc rcx
jmp 0x14001b232
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3c430]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001b205
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001b24f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400059c0
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 0x14001b470
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001b486
mov al, 1
jmp 0x14001b4e6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001b497
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001b4e4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140020008
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001b4e4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001b4e4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001b4e4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001b4e6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001b5b8
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, [0x14003e860]
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 0x14001b60f
cmp word [rdx], r13w
jne 0x14001b60f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001b614
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001b739
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001b75a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001b64d
mov rdx, r9
mov word [rbx], cx
jmp 0x14001b674
cmp r9, r8
jae 0x14001b684
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 0x14001b62e
jmp 0x14001b739
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 0x14001b72e
cmp dword [rsp + 0x80], esi
je 0x14001b72e
lea r8, [0x14003e860]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001b706
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001b6d6
mov word [rbx], r13w
jmp 0x14001b736
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 0x14001b6e3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001b736
cmp word [rsp + 0x70], r13w
jne 0x14001b713
cmp rbx, r14
je 0x14001b6d0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001c220
cmp word [rsp + 0x70], r13w
je 0x14001b739
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, [0x14003e860]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001b733
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001b739
Function at 0x14001f7d0
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 0x14001f800
xor eax, eax
jmp 0x14001f8c3
mov rbp, rbx
cmp word [rax], si
je 0x14001f825
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001f80c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001f808
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.14001ddd0
movsxd r14, eax
test eax, eax
jne 0x14001f863
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001f7f9
mov rcx, r14
call fcn.1400184b4
mov rdi, rax
test rax, rax
jne 0x14001f87c
xor ecx, ecx
call fcn.140016e94
jmp 0x14001f858
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.14001ddd0
test eax, eax
jne 0x14001f8ad
mov rcx, rdi
call fcn.140016e94
jmp 0x14001f8b7
xor ecx, ecx
call fcn.140016e94
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 0x14002255c
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.1400180e4
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 0x1400225fd
cmp ebx, dword [rsp + 0x30]
je 0x1400225f6
test esi, esi
je 0x1400225f6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400225d1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400225de
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400225bb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400225e2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400225ff
mov eax, 1
jmp 0x1400225ff
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret