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

Disassembly:
lea r12, [rsp - 0x30]
cmp r12, qword [r14 + 0x10]
jbe 0x495c5c
sub rsp, 0xb0
mov qword [rsp + 0xa8], rbp
lea rbp, [rsp + 0xa8]
movabs rdx, 0x7da463850a435eeb
mov qword [rsp + 0x18], rdx
movabs rdx, 0x4f2d8274669858dd
mov qword [rsp + 0x20], rdx
movabs rdx, 0x4756cd8e3ed4f2d
mov qword [rsp + 0x26], rdx
movabs rdx, 0x78d5fe6e69b6382e
mov qword [rsp + 0x2e], rdx
movabs rdx, 0x6920d6647f6ef3b1
mov qword [rsp + 0x36], rdx
movabs rdx, 0x6ecc64e6287fe873
mov qword [rsp + 0x3e], rdx
movabs rdx, 0x70616868dc6974c6
mov qword [rsp + 0x46], rdx
movabs rdx, 0x72e974acd1292771
mov qword [rsp + 0x4e], rdx
movabs rdx, 0x28273109022c060c
mov qword [rsp + 0x56], rdx
lea rdi, [rsp + 0x58]
lea rsi, [0x0056f672]
nop dword [rax]
mov qword [rsp - 0x10], rbp
lea rbp, [rsp - 0x10]
call fcn.00453a5a
mov rbp, qword [rbp]
xor eax, eax
jmp 0x495bf4
movzx r9d, byte [rsp + rsi + 0x18]
sub r9d, edx
lea edx, [r9 - 0x2e]
mov byte [rsp + rdi + 0x18], dl
lea edx, [r8 - 0x2e]
mov byte [rsp + rsi + 0x18], dl
add rax, 2
cmp rax, 0x52
jge 0x495c22
movzx edx, byte [rsp + rax + 0x56]
movzx esi, byte [rsp + rax + 0x57]
mov edi, edx
xor edx, esi
add edx, eax
cmp rdi, 0x3e
jae 0x495c4f
movzx r8d, byte [rsp + rdi + 0x18]
sub r8d, edx
cmp rsi, 0x3e
jb 0x495bd7
nop
jmp 0x495c43
xor eax, eax
lea rbx, [rsp + 0x18]
mov ecx, 0x3e
call fcn.004418e0
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
mov eax, esi
mov ecx, 0x3e
call fcn.00453440
mov eax, edi
mov ecx, 0x3e
call fcn.00453440
nop
nop dword [rax]
call fcn.00450de0
jmp fcn.00495b00

Function at 0x496620
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x496772
sub rsp, 0x78
mov qword [rsp + 0x70], rbp
lea rbp, [rsp + 0x70]
movabs rdx, 0xf17251eb4970d94d
mov qword [rsp + 0x1d], rdx
movabs rdx, 0xd3dbfadcf478650e
mov qword [rsp + 0x25], rdx
movabs rdx, 0x20d3dbfadcf47865
mov qword [rsp + 0x26], rdx
movabs rdx, 0x786520efcdcf8dcd
mov qword [rsp + 0x2e], rdx
movabs rdx, 0xcb64530de6e4fe4c
mov qword [rsp + 0x36], rdx
movabs rdx, 0x85a374617265b169
mov qword [rsp + 0x3e], rdx
movabs rdx, 0x81e101e1227140e
mov qword [rsp + 0x46], rdx
movabs rdx, 0x110f19271101120c
mov qword [rsp + 0x4e], rdx
movabs rdx, 0x727110f19271101
mov qword [rsp + 0x50], rdx
movabs rdx, 0x1b1c1311281d0f10
mov qword [rsp + 0x58], rdx
movabs rdx, 0x1e2213051e0c1a04
mov qword [rsp + 0x60], rdx
movabs rdx, 0xb1e13201d1d150d
mov qword [rsp + 0x68], rdx
xor eax, eax
jmp 0x49670d
movzx r9d, byte [rsp + rsi + 0x1d]
sub r9d, edx
lea edx, [r9 - 0x52]
mov byte [rsp + rdi + 0x1d], dl
lea edx, [r8 - 0x52]
mov byte [rsp + rsi + 0x1d], dl
add rax, 2
cmp rax, 0x2a
jge 0x49673a
movzx edx, byte [rsp + rax + 0x46]
movzx esi, byte [rsp + rax + 0x47]
mov edi, edx
xor edx, esi
add edx, eax
cmp rdi, 0x29
jae 0x496765
movzx r8d, byte [rsp + rdi + 0x1d]
sub r8d, edx
cmp rsi, 0x29
jb 0x4966f0
jmp 0x496755
xor eax, eax
lea rbx, [rsp + 0x1d]
mov ecx, 0x29
call fcn.004418e0
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
mov eax, esi
mov ecx, 0x29
nop dword [rax]
call fcn.00453440
mov eax, edi
mov ecx, 0x29
call fcn.00453440
nop
call fcn.00450de0
jmp fcn.00496620
Function at 0x180003270
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, r9
mov qword [rsp + 0x20], r9
mov r9, r8
mov rbx, r8
mov r8d, 1
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
jne 0x1800032a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800032d5
mov eax, dword [rdi]
xor ecx, ecx
test eax, eax
je 0x1800032d1
cmp byte [rbx], 0x3d
jne 0x1800032b6
mov byte [rbx], 0
dec eax
jmp 0x1800032c8
cmp byte [rbx], 0x2f
jne 0x1800032c0
mov byte [rbx], 0x5f
jmp 0x1800032c8
cmp byte [rbx], 0x2b
jne 0x1800032c8
mov byte [rbx], 0x2d
inc ecx
inc rbx
cmp ecx, dword [rdi]
jb 0x1800032aa
mov dword [rdi], eax
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1800032e0
Capabilities:
Decode data using base64 via winapi

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
test edx, edx
je 0x18000331c
mov rax, rcx
mov r10d, edx
cmp byte [rax], 0x5f
jne 0x1800032fc
mov byte [rax], 0x2f
jmp 0x180003304
cmp byte [rax], 0x2d
jne 0x180003304
mov byte [rax], 0x2b
inc rax
sub r10, 1
jne 0x1800032f2
jmp 0x18000331c
cmp edx, r8d
ja 0x180003355
mov eax, edx
inc edx
mov byte [rax + rcx], 0x3d
test dl, 3
jne 0x18000330f
mov rax, qword [rsp + 0x70]
mov r8d, 1
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x18000334d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
add rsp, 0x40
pop rbx
ret
mov eax, 6
jmp 0x18000334f
Function at 0x180004554
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov r10, qword [0x181772758]
test r10, r10
je 0x1800045ba
cmp dword [rcx + 0x24], 0
jne 0x1800045ba
mov rax, qword [rcx + 0x18]
xor r9d, r9d
mov r8, qword [rcx]
xor edx, edx
mov qword [r11 - 0x18], rax
mov rax, qword [rcx + 0x10]
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
and qword [r11 - 0x30], 0
mov eax, dword [rcx + 0x20]
mov rcx, r10
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 1
and qword [r11 - 0x48], 0
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x1800045fa
mov eax, 1
add rsp, 0x68
ret
mov rax, qword [rcx + 0x18]
xor r9d, r9d
mov rdx, qword [rcx]
xor r8d, r8d
mov qword [rsp + 0x48], rax
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov eax, dword [rcx + 0x20]
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
jmp 0x1800045ac
xor eax, eax
jmp 0x1800045b5
Function at 0x180004928
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x180010008]
xor rax, rsp
mov qword [rsp + 0x440], rax
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x34]
mov rbp, rdx
mov rdi, rcx
mov rcx, qword [rcx + 0x18]
xor esi, esi
and qword [rsp + 0x28], rsi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x180004a60
mov rax, qword [0x181772770]
cmp dword [rax + 0x10], 0x1c
jle 0x1800049a3
mov rax, qword [rax + 8]
add rax, 0x1c0
je 0x1800049a3
cmp word [rax], 2
jne 0x1800049a3
mov ecx, dword [rax + 8]
jmp 0x1800049a5
xor ecx, ecx
neg ecx
mov rcx, rbp
sbb ebx, ebx
and ebx, 0xfff81000
add ebx, 0x80000
mov edx, ebx
call fcn.180003068
xor edx, edx
mov dword [rbp + 0x18], 0x1e
mov r8d, 0x400
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll_memset
cmp dword [rsp + 0x34], esi
jbe 0x180004a45
cmp esi, ebx
jae 0x180004a45
mov rcx, qword [rdi + 0x18]
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, dword [rsp + 0x30]
lea rdx, [rsp + 0x40]
add esi, dword [rsp + 0x30]
mov rcx, rbp
call fcn.1800030bc
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x34]
mov rcx, qword [rdi + 0x18]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x180004a60
cmp dword [rsp + 0x34], 0
ja 0x1800049de
mov rcx, qword [rdi + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x180004a5c
mov byte [rdi + 0xd], 1
mov eax, esi
jmp 0x180004a63
or eax, 0xffffffff
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.18000ab00
mov rbx, qword [rsp + 0x480]
add rsp, 0x450
pop rdi
pop rsi
pop rbp
ret
Function at 0x180005500
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov eax, dword [rcx + 4]
lea rbx, [rcx + 8]
mov r9d, dword [rcx]
mov rdi, rcx
mov rcx, rbx
mov dword [rsp + 0x20], eax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x18000555d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x180005557
mov r9d, dword [rdi]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x18000555d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, qword [rbx]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x18000556c
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x20], r9d
push rdi
sub rsp, 0x40
and qword [rax - 0x10], 0
mov rbx, rcx
lea rcx, [rax - 0x18]
mov dword [rax - 0x18], 0x18
mov rdi, rdx
mov dword [rax - 0x14], 0xf0000000
call fcn.180005500
test rax, rax
je 0x1800055f1
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x1800055b7
lea rcx, [rsp + 0x30]
call fcn.180005500
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov edx, 0x800c
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1800055eb
mov rcx, qword [rbx]
xor r9d, r9d
mov rdx, rdi
lea r8d, [r9 + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x180005613
call qword [sym.imp.KERNEL32.dll_GetLastError]
or ebx, 0xffffffff
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180005606
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rsp + 0x70]
mov r8d, 0x20
xor edx, edx
mov dword [rsp + 0x68], r8d
call sub.msvcrt.dll_memset
mov r8, qword [rsp + 0x70]
lea r9, [rsp + 0x68]
mov rcx, qword [rbx]
mov edx, 2
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1800055eb
xor ebx, ebx
jmp 0x1800055f4

Function at 0x180005650
Capabilities:
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x30
and dword [rax - 0x14], 0
mov rdi, rcx
and qword [rax - 0x10], 0
lea rcx, [rax - 0x18]
mov ebx, edx
mov dword [rax - 0x18], 1
call fcn.180005500
test rax, rax
je 0x180005695
mov r8, rdi
mov edx, ebx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x180005695
xor ebx, ebx
jmp 0x180005698
or ebx, 0xffffffff
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1800056aa
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180006f30
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x180010008]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x180006f6c
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.18000ad8c
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x180007028
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x18000708e
test ebx, ebx
jne 0x18000708e
lea ecx, [rax + 2]
call fcn.18000ad8c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.18000ab00
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret
Function at 0x18000a9c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp dword [rcx], 0xe06d7363
mov rdi, r9
mov rbp, r8
mov r14, rdx
mov rsi, rcx
jne 0x18000aa7c
mov rax, qword [r9 + 0x38]
mov qword [rsp + 0x48], rbx
mov ebx, dword [rax]
add rbx, qword [r9 + 8]
mov eax, dword [rbx]
and eax, 0x1fffffff
sub eax, 0x19930521
cmp eax, 1
ja 0x18000aa77
mov eax, 1
xchg dword [0x1817721b0], eax
cmp eax, 1
jne 0x18000aa30
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
xchg dword [0x1817721b0], eax
cmp eax, 1
je 0x18000aa15
mov edx, 4
lea r9, [rsp + 0x40]
mov rcx, rbx
lea r8d, [rdx + 0x3c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18000aa6f
and dword [rbx], 0xf9930520
lea r9, [rsp + 0x40]
or dword [rbx], 0x19930520
mov edx, 4
mov r8d, dword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
xchg dword [0x1817721b0], eax
mov rbx, qword [rsp + 0x48]
mov r9, rdi
mov r8, rbp
mov rdx, r14
mov rcx, rsi
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
jmp qword [sym.imp.msvcrt.dll___CxxFrameHandler]
Function at 0x140002be0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x58]
xor r15d, r15d
mov r11, qword [rsp + 0x70]
mov r13, rdx
mov rax, qword [rsp + 0x60]
mov qword [r14], r8
mov qword [r11], rax
mov rdi, qword [r14]
cmp rdi, r9
je 0x140002d73
mov r12, qword [rsp + 0x68]
lea r8d, [r15 + 1]
mov rsi, qword [r11]
mov r9d, 0x3ff
mov r10d, 0x2400
mov ebx, 0x2800
cmp rsi, r12
je 0x140002d73
movzx edx, word [r13]
xor bpl, bpl
movzx ecx, word [rdi]
cmp r8w, dx
jae 0x140002c79
lea eax, [r10 + rcx]
cmp ax, r9w
ja 0x140002d97
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x140002c8f
mov eax, ecx
add cx, bx
cmp cx, r9w
ja 0x140002c8f
shl eax, 0xa
mov bpl, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x140002ca2
movzx r9d, al
mov r10d, r15d
mov ebx, r15d
jmp 0x140002ced
mov r9d, eax
cmp eax, 0x800
jae 0x140002cbc
shr r9d, 6
mov r10d, r8d
or r9b, 0xc0
mov ebx, r8d
jmp 0x140002ced
cmp eax, 0x10000
jae 0x140002cd6
shr r9d, 0xc
mov r10d, 2
or r9b, 0xe0
mov ebx, r10d
jmp 0x140002ced
shr r9d, 0x12
mov r10d, 3
movzx ebx, bpl
or r9b, 0xf0
xor ebx, 1
add ebx, ebx
lea r8d, [rbx + 1]
mov rdx, r12
sub rdx, rsi
mov ecx, r8d
cmp rdx, rcx
jl 0x140002d73
lea rcx, [rdi + 2]
mov qword [r14], rcx
test bpl, bpl
jne 0x140002d11
cmp r10d, 3
jae 0x140002d1d
mov rcx, qword [r11]
mov r8d, ebx
mov byte [rcx], r9b
inc qword [r11]
mov r9, qword [r11]
test r8d, r8d
jle 0x140002d4e
lea ecx, [r10 + r10*2]
add ecx, ecx
nop dword [rax + rax]
sub ecx, 6
mov edx, eax
shr edx, cl
dec r8d
and dl, 0x3f
or dl, 0x80
mov byte [r9], dl
inc qword [r11]
mov r9, qword [r11]
test r8d, r8d
jg 0x140002d30
shr eax, 0xa
mov r8d, 1
test bpl, bpl
mov ecx, r8d
cmovne ecx, eax
mov word [r13], cx
mov rdi, qword [r14]
cmp rdi, qword [rsp + 0x50]
jne 0x140002c2e
mov rax, qword [rsp + 0x48]
cmp rax, qword [r14]
sete r15b
mov eax, r15d
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov eax, 2
jmp 0x140002d82

Function at 0x1400047b0
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x0042e090], 0
je 0x408c3e
cmp word [0x0042e3a0], 0xd7b2
jne 0x408bd3
cmp dword [0x0042e3a8], 0
jbe 0x408bd3
lea rcx, [0x0042e398]
call qword [0x0042e3c0]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x0042a5fc]
mov r8d, 0x25
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rbx, rax
lea rcx, [0x00408c74]
call fcn.004098f0
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x408c60
cmp byte [0x0042903a], 0
jne 0x408c60
xor rcx, rcx
lea rdx, [0x0042a5fc]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40b180
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00432c78]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00432ca0], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00432c70], al
cmp byte [0x00432c70], 0
je 0x40b21f
lea rcx, [0x0040b224]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040b23e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00432c58], rax
lea rcx, [0x0040b224]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040b25c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00432c60], rax
lea rcx, [0x0040b224]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040b27a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00432c68], rax
add rsp, 0x28
ret
Function at 0x40b4b0
Capabilities:
Get geographical location

Disassembly:
push rbp
sub rsp, 0x1d0
mov rbp, rsp
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x40], rdx
mov word [rbp + 0x4e], r8w
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
call fcn.00408fd0
movzx rax, word [rbp + 0x4e]
cmp word [0x0042aaa0], ax
ja 0x40b598
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x0042aea0]
mov word [rbp + 0x4e], ax
ja 0x40b598
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x40b597
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x0042aaa0]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x40b551
mov ecx, eax
sub ecx, 1
jmp 0x40b592
lea rdx, [0x0042aaa0]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x40b573
mov r8d, eax
add r8d, 1
jmp 0x40b592
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x0042aaa8]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.0040b350
jmp 0x40b597
cmp ecx, r8d
jae 0x40b520
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x40b67a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40b67a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x59
lea r8, [rbp + 0x126]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x5a
lea r8, [rbp + 0x7c]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x68]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.00409c80
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.00409c80
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.00409c80
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x0040b6d4]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x0040b6e4]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040a040
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.004090b0
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x40b8f0
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov word [rbp + 0x36], dx
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
nop
lea rcx, [0x00432c78]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x00432ca0], ax
jne 0x40b95b
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00432ca2]
mov r8d, 0x55
call fcn.00409c80
lea rcx, [0x00432c78]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40ba67
lea rcx, [0x00432c78]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.00408fd0
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ba20
cmp byte [0x00432c70], 0
je 0x40b9b4
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.0040b780
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.00409470
jmp 0x40ba20
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.0040b4b0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.00409470
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x40ba20
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x40b9ff
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0040bab4]
call fcn.00409e30
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.0040b4b0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.00409e30
lea rcx, [0x00432c78]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x00432ca0], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.00409bd0
lea rcx, [0x00432ca2]
mov rdx, rax
mov r8d, 0xaa
call sub.kernel32.dll_lstrcpynW
lea rcx, [0x00432c78]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.004090b0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40c470
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x70], r8
mov rcx, qword [rbp + 0x70]
call fcn.00409160
nop
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx ecx, ax
mov edx, 3
lea r8, [rbp + 0x48]
mov r9d, 4
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x38]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.00409c80
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.00409f20
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040c290
test al, al
jne 0x40c53e
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.00409c80
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.00409f20
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040c290
test al, al
jne 0x40c53e
mov rcx, qword [rbp + 0x20]
call fcn.00408fd0
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.004090b0
lea rcx, [rbp + 0x70]
call fcn.00408fd0
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret