joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002bd8c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
lea r8, [0x140060168]
mov rcx, qword [0x1400790f0]
mov edx, 0x68
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x14002be3f
mov rcx, qword [0x1400790f0]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14002be3f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14002be3f
mov rcx, qword [0x1400790f0]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
mov dword [rsi], ecx
shr rcx, 1
call fcn.140034dd0
mov ecx, dword [rsi]
test ecx, ecx
je 0x14002be39
lea ecx, [rbx + 1]
mov r9d, ebx
mov r8b, byte [rcx + r14]
add ebx, 2
sub r8b, 0x41
mov cl, byte [r14 + r9]
dec cl
shr r9, 1
shl cl, 4
or r8b, cl
mov byte [r9 + rax], r8b
mov ecx, dword [rsi]
cmp ebx, ecx
jb 0x14002be0f
shr ecx, 1
mov dword [rsi], ecx
jmp 0x14002be41
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14002c14c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140077100]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rdx
mov r14, rcx
mov qword [rbp - 0x30], rdx
and qword [rbp - 0x20], 0
and dword [rbp - 0x28], 0
lea r8, [rbp - 0x28]
lea rdx, [rbp - 0x20]
mov rcx, qword [rdi]
call fcn.14000c3d0
test al, al
je 0x14002c236
mov r8d, dword [rbp - 0x28]
test r8d, r8d
je 0x14002c1ba
mov rax, qword [rbp - 0x20]
mov ecx, r8d
xor byte [rax], 0x55
inc rax
sub rcx, 1
jne 0x14002c1aa
mov r8d, dword [rbp - 0x28]
lea rax, [rbp - 0x18]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov r9b, byte [r14 + 0x10]
mov rdx, qword [rbp - 0x20]
mov ecx, dword [r14 + 0x30]
call fcn.14002a070
mov rsi, rax
mov eax, dword [rbp - 0x28]
test eax, eax
je 0x14002c1f6
mov rcx, qword [rbp - 0x20]
mov edx, eax
xor byte [rcx], 0x55
inc rcx
sub rdx, 1
jne 0x14002c1ea
mov rbx, qword [rbp - 0x20]
mov rcx, rbx
call fcn.140034bfc
test rbx, rbx
je 0x14002c20f
mov qword [rbp - 0x20], 0x8123
test rsi, rsi
je 0x14002c236
and qword [rsp + 0x20], 0
mov r9b, byte [r14 + 0x11]
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp - 0x18]
call fcn.14002a4cc
mov qword [r14 + 0x28], rax
test rax, rax
jne 0x14002c26d
mov rdi, qword [rdi + 8]
test rdi, rdi
je 0x14002c269
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x14002c269
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
add eax, ebx
jne 0x14002c269
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
xor al, al
jmp 0x14002c2a2
mov rdi, qword [rdi + 8]
test rdi, rdi
je 0x14002c2a0
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x14002c2a0
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx]
mov edx, ebx
lock xadd dword [rdi + 0xc], edx
add edx, ebx
jne 0x14002c2a0
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 8]
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140034ca0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x14002ca40
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140077100]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rcx
lea r8, [rsp + 0x20]
mov rcx, qword [rcx + 0x18]
lea rdx, [rsp + 0x28]
call fcn.14000c3d0
test al, al
je 0x14002caba
mov edx, dword [rsp + 0x20]
test edx, edx
je 0x14002ca8e
mov rax, qword [rsp + 0x28]
mov ecx, edx
xor byte [rax], 0x55
inc rax
sub rcx, 1
jne 0x14002ca7e
mov edx, dword [rsp + 0x20]
mov r8b, byte [rbx + 0x10]
xor r9d, r9d
mov rcx, qword [rsp + 0x28]
call fcn.14002a45c
mov edx, dword [rsp + 0x20]
test edx, edx
je 0x14002cab8
mov rcx, qword [rsp + 0x28]
xor byte [rcx], 0x55
inc rcx
sub rdx, 1
jne 0x14002caac
call rax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140034ca0
add rsp, 0x40
pop rbx
ret
Function at 0x1400343f0
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 0x14003441e
xor eax, eax
jmp 0x140034504
cmp qword [rcx + 0x68], 0
je 0x14003442f
call fcn.140022f8c
jmp 0x140034504
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140034446
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140034448
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14003447a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140059a50
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 0x1400344fe
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400344b1
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 0x1400344da
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140045ab8
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1400344fe
cmp rsi, rbx
ja 0x1400344b8
test rsi, rsi
je 0x1400344fe
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140045ab8
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 0x140035874
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400358be
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400358be
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400358be
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400358be
cmp dword [rcx + 0x84], 0xe
jbe 0x1400358be
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400358c0
xor al, al
add rsp, 0x28
ret
Function at 0x14003b73c
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 0x14003b777
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14004505c
call fcn.1400450e8
mov eax, dword [rax]
jmp 0x14003b7ee
cmp rdi, qword [rbx + 0x18]
ja 0x14003b783
mov qword [rbx + 0x20], rdi
jmp 0x14003b7ec
cmp byte [rbx + 0x28], 0
lea rsi, [rdi + 1]
je 0x14003b79a
mov rcx, qword [rbx + 0x10]
call fcn.14004991c
mov byte [rbx + 0x28], 0
lea rcx, [rdi*2 + 2]
call fcn.140049958
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 0x14003b7ee
mov ecx, dword [rbx + 0x18]
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x14003b761
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 0x1400423f0
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 0x140042427
call fcn.1400450e8
mov dword [rax], 0x16
call fcn.14003bde4
xor eax, eax
jmp 0x1400424b5
mov rdx, r9
mov rcx, r8
call fcn.14004238c
mov rbx, rax
test rax, rax
je 0x1400424b2
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400422b8]
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 0x14004249f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14004505c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140042486
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140042495
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14004991c
jmp 0x1400424b2
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400424af
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 0x140047170
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140046f6c
Function at 0x14004adf8
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140077100]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14004ae42
call fcn.1400450c8
mov dword [rax], 0xf
call fcn.1400450e8
mov dword [rax], 0xd
call fcn.14003bde4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140034ca0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14004ae4d
lea eax, [rbx + 1]
jmp 0x14004ae2f
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 0x14004ae2d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14004ae2f
Function at 0x14004dfb0
Capabilities:
Get file size

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

Function at 0x14004fe34
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.140034d80
sub rsp, rax
mov rax, qword [0x140077100]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14004c058
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14004fe83
mov rax, rbp
jmp 0x14004ff8b
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 + 0x7a690]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140050d14
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x7a690]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14004ff87
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 0x14004ff87
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140050d14
test rax, rax
js 0x14004ff87
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14004ff87
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14004ff79
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14004ff79
cmp byte [rcx], 0xd
jne 0x14004ff5f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14004ff6e
cmp byte [rcx + 1], 0xa
jne 0x14004ff6e
inc rcx
jmp 0x14004ff6e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x77540]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14004ff41
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14004ff8b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140034ca0
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 0x1400500b4
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, [0x14007a690]
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 0x14005010b
cmp word [rdx], r13w
jne 0x14005010b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140050110
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140050235
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140050256
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140050149
mov rdx, r9
mov word [rbx], cx
jmp 0x140050170
cmp r9, r8
jae 0x140050180
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 0x14005012a
jmp 0x140050235
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 0x14005022a
cmp dword [rsp + 0x80], esi
je 0x14005022a
lea r8, [0x14007a690]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140050202
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400501d2
mov word [rbx], r13w
jmp 0x140050232
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 0x1400501df
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140050232
cmp word [rsp + 0x70], r13w
jne 0x14005020f
cmp rbx, r14
je 0x1400501cc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140050d1c
cmp word [rsp + 0x70], r13w
je 0x140050235
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, [0x14007a690]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14005022f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140050235
Function at 0x14005237c
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 0x1400523ac
xor eax, eax
jmp 0x14005246f
mov rbp, rbx
cmp word [rax], si
je 0x1400523d1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400523b8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400523b4
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.1400499b8
movsxd r14, eax
test eax, eax
jne 0x14005240f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400523a5
mov rcx, r14
call fcn.140049958
mov rdi, rax
test rax, rax
jne 0x140052428
xor ecx, ecx
call fcn.14004991c
jmp 0x140052404
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.1400499b8
test eax, eax
jne 0x140052459
mov rcx, rdi
call fcn.14004991c
jmp 0x140052463
xor ecx, ecx
call fcn.14004991c
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 0x140054f9c
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.140049e10
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 0x14005503d
cmp ebx, dword [rsp + 0x30]
je 0x140055036
test esi, esi
je 0x140055036
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140055011
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14005501e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140054ffb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140055022
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14005503f
mov eax, 1
jmp 0x14005503f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400592c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400592e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400592e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001070
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x50
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rbx, [0x140004040]
mov rdx, rbx
lea rcx, str._i__shellcode_:_0x_p__n
call fcn.140001010
lea rcx, str.___Press__Enter__To_Decrypt_...
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x110
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x140001139
mov rcx, rax
mov edx, 2
nop dword [rax + rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rbx]
lea rbx, [rbx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rbx - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rbx - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rbx - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rbx - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rbx - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rbx - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rbx - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x1400010e0
movups xmm0, xmmword [rbx]
movups xmmword [rcx], xmm0
lea rax, [0x140004150]
mov dword [rsp + 0x20], 0x10
lea rcx, str.Advapi32
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x24], 0x10
mov dword [rsp + 0x30], 0x110
mov dword [rsp + 0x34], 0x110
mov qword [rsp + 0x38], rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.SystemFunction032
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call rax
test eax, eax
je 0x1400011af
mov edx, eax
lea rcx, str.____SystemFunction032_FAILED_With_Error:_0x_0.8X__n
call fcn.140001010
mov eax, 0xffffffff
jmp 0x140001264
mov qword [rsp + 0x60], rbp
lea rdx, str.Shellcode
lea rcx, str.unsigned_char__s____
mov qword [rsp + 0x68], rdi
call fcn.140001010
xor ebx, ebx
lea rbp, str.0x_0.2X
mov rdi, rsi
nop dword [rax + rax]
mov eax, ebx
and eax, 0x8000000f
jge 0x1400011f0
dec eax
or eax, 0xfffffff0
inc eax
test eax, eax
jne 0x140001200
lea rcx, [0x1400022f8]
call fcn.140001010
movzx edx, byte [rdi]
lea rcx, str.0x_0.2X_
cmp ebx, 0x10f
cmovae rcx, rbp
call fcn.140001010
inc ebx
inc rdi
cmp ebx, 0x110
jb 0x1400011e0
mov rdi, qword [rsp + 0x68]
lea rcx, str.__n_n_n
mov rbp, qword [rsp + 0x60]
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rcx, str.___Press__Enter__To_Quit_...
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140001290
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rsi
ret
Function at 0x18001a0c4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, reloc.WLDAP32.dll_Ordinal_50
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x18019aec0]
xor rax, rbp
mov qword [rbp + 0x170], rax
lea rcx, [0x1801ec388]
call fcn.1800e93bc
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x18001a12a
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x18001a131
mov al, 1
jmp 0x18001a2a0
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.18001b280
mov dword [rbp + 0x160], eax
mov edx, dword [rbp + 0x160]
mov rcx, qword [rbp + 0x1a0]
call qword [rbp + 0x158]
mov dword [rbp + 0x164], eax
call fcn.18001b280
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.18001b308
movzx eax, al
test eax, eax
je 0x18001a194
xor al, al
jmp 0x18001a2a0
mov qword [rbp + 8], reloc.WLDAP32.dll_Ordinal_32
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x158], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1a0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x160], eax
cmp dword [rbp + 0x160], 0
je 0x18001a207
cmp dword [rbp + 0x160], 1
je 0x18001a212
cmp dword [rbp + 0x160], 3
je 0x18001a28f
jmp 0x18001a29e
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x18001a262
mov rax, qword [rbp + 0x1a0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x18001a262
xor al, al
jmp 0x18001a2a0
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x18001a27d
mov dword [rbp + 0x154], 1
jmp 0x18001a287
mov dword [rbp + 0x154], 0
mov al, byte [rbp + 0x154]
jmp 0x18001a2a0
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x18001a2a0
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_bind
call fcn.1800e9348
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.1800e9490
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret