joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401d67b0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
jmp 0x140255020
push rdi
sub rsp, 0x10
mov dword [rsp], 0
jmp 0x140255037
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0x100
jge 0x140255259
movsxd rax, dword [rsp]
lea rcx, [0x1405f7040]
movzx eax, byte [rcx + rax]
mov byte [rsp + 4], al
movzx eax, byte [rsp + 4]
shl eax, 3
movzx ecx, byte [rsp + 4]
sar ecx, 5
and ecx, 1
imul ecx, ecx, 0x11b
xor eax, ecx
movzx ecx, byte [rsp + 4]
sar ecx, 5
and ecx, 2
imul ecx, ecx, 0x11b
xor eax, ecx
movzx ecx, byte [rsp + 4]
sar ecx, 5
and ecx, 4
imul ecx, ecx, 0x11b
xor eax, ecx
movzx ecx, byte [rsp + 4]
shl ecx, 2
movzx edx, byte [rsp + 4]
sar edx, 6
and edx, 1
imul edx, edx, 0x11b
xor ecx, edx
movzx edx, byte [rsp + 4]
sar edx, 6
and edx, 2
imul edx, edx, 0x11b
xor ecx, edx
xor eax, ecx
movzx ecx, byte [rsp + 4]
xor eax, ecx
shl eax, 8
movzx ecx, byte [rsp + 4]
shl ecx, 3
movzx edx, byte [rsp + 4]
sar edx, 5
and edx, 1
imul edx, edx, 0x11b
xor ecx, edx
movzx edx, byte [rsp + 4]
sar edx, 5
and edx, 2
imul edx, edx, 0x11b
xor ecx, edx
movzx edx, byte [rsp + 4]
sar edx, 5
and edx, 4
imul edx, edx, 0x11b
xor ecx, edx
movzx edx, byte [rsp + 4]
xor ecx, edx
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [rsp + 4]
shl ecx, 3
movzx edx, byte [rsp + 4]
sar edx, 5
and edx, 1
imul edx, edx, 0x11b
xor ecx, edx
movzx edx, byte [rsp + 4]
sar edx, 5
and edx, 2
imul edx, edx, 0x11b
xor ecx, edx
movzx edx, byte [rsp + 4]
sar edx, 5
and edx, 4
imul edx, edx, 0x11b
xor ecx, edx
movzx edx, byte [rsp + 4]
shl edx, 2
movzx r8d, byte [rsp + 4]
sar r8d, 6
and r8d, 1
imul r8d, r8d, 0x11b
xor edx, r8d
movzx r8d, byte [rsp + 4]
sar r8d, 6
and r8d, 2
imul r8d, r8d, 0x11b
xor edx, r8d
xor ecx, edx
movzx edx, byte [rsp + 4]
shl edx, 1
movzx r8d, byte [rsp + 4]
sar r8d, 7
and r8d, 1
imul r8d, r8d, 0x11b
xor edx, r8d
xor ecx, edx
shl ecx, 0x18
or eax, ecx
mov dword [rsp + 8], eax
movzx eax, byte [rsp + 4]
shl eax, 3
movzx ecx, byte [rsp + 4]
sar ecx, 5
and ecx, 1
imul ecx, ecx, 0x11b
xor eax, ecx
movzx ecx, byte [rsp + 4]
sar ecx, 5
and ecx, 2
imul ecx, ecx, 0x11b
xor eax, ecx
movzx ecx, byte [rsp + 4]
sar ecx, 5
and ecx, 4
imul ecx, ecx, 0x11b
xor eax, ecx
movzx ecx, byte [rsp + 4]
shl ecx, 1
movzx edx, byte [rsp + 4]
sar edx, 7
and edx, 1
imul edx, edx, 0x11b
xor ecx, edx
xor eax, ecx
movzx ecx, byte [rsp + 4]
xor eax, ecx
mov ecx, dword [rsp + 8]
or ecx, eax
mov eax, ecx
mov eax, eax
shl rax, 0x20
mov ecx, dword [rsp + 8]
or rax, rcx
movzx ecx, byte [rsp + 4]
or rax, rcx
movsxd rcx, dword [rsp]
lea rdx, [0x1406c8ff0]
mov qword [rdx + rcx*8], rax
jmp 0x14025502f
mov byte [0x1406c97f1], 1
add rsp, 0x10
pop rdi
ret
Function at 0x1401d74fd
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
jmp 0x1403754a0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov eax, dword [rsp + 0x88]
shl eax, 2
mov eax, eax
mov rcx, qword [rsp + 0x80]
lea rax, [rcx + rax*4]
mov rdx, rax
mov rcx, qword [rsp + 0x80]
call fcn.1401e3096
nop
mov dword [rsp + 0x20], 4
mov eax, dword [rsp + 0x88]
lea eax, [rax*4 - 4]
mov dword [rsp + 0x24], eax
jmp 0x140375509
mov eax, dword [rsp + 0x20]
add eax, 4
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
sub eax, 4
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
jae 0x14037558a
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
movdqu xmm0, xmmword [rcx + rax*4]
aesimc xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x30], xmm0
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x80]
movdqu xmm0, xmmword [rcx + rax*4]
aesimc xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
movdqa xmm0, xmmword [rsp + 0x50]
movdqu xmmword [rcx + rax*4], xmm0
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x80]
movdqa xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rcx + rax*4], xmm0
jmp 0x1403754f3
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
movdqu xmm0, xmmword [rcx + rax*4]
aesimc xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
movdqa xmm0, xmmword [rsp + 0x60]
movdqu xmmword [rcx + rax*4], xmm0
add rsp, 0x70
pop rdi
ret
Function at 0x1401da388
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
jmp 0x1403ea690
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xc0
mov rax, qword [0x1406b3640]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xd0]
mov qword [rax], 0
mov rax, qword [rsp + 0xd0]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1403ea797
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xd0]
mov dword [rsp + 0x20], 8
mov r9d, 1
xor r8d, r8d
lea rdx, [0x140610200]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1403ea797
mov rax, qword [rsp + 0xd0]
mov dword [rsp + 0x20], 0x28
mov r9d, 1
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1403ea797
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
lea rdx, str.CryptAcquireContext
lea rcx, [rsp + 0x38]
call fcn.1401da577
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.1401d720a
lea rdx, [0x1406b2200]
lea rcx, [rsp + 0x60]
call fcn.1401e328a
nop
lea rcx, [rsp + 0x38]
call fcn.1401d68af
nop
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1401dabf8
add rsp, 0xc0
pop rdi
ret

Function at 0x1401da3fb
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1404e5400
mov rax, rcx
neg rcx
test rax, 7
je 0x1404e541d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1404e5478
test al, 7
jne 0x1404e5410
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1404e5431
mov rdx, qword [rax - 8]
test dl, dl
je 0x1404e54a2
test dh, dh
je 0x1404e549c
shr rdx, 0x10
test dl, dl
je 0x1404e5496
test dh, dh
je 0x1404e5490
shr rdx, 0x10
test dl, dl
je 0x1404e548a
test dh, dh
je 0x1404e5484
shr edx, 0x10
test dl, dl
je 0x1404e547e
test dh, dh
jne 0x1404e5431
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret
Function at 0x1401da496
Capabilities:
Query environment variable

Disassembly:
jmp 0x140545e90
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140545a10
lea rcx, [rsp + 0x20]
call fcn.140545a60
movzx eax, al
test eax, eax
jne 0x140545ed5
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.140545a40
mov rax, qword [rsp + 0x40]
jmp 0x140545fcf
lea rcx, [rsp + 0x20]
call fcn.140545b60
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140545b00
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.1401daea5
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1401d9352
lea rcx, [rsp + 0x28]
call fcn.1401dbb1b
movzx eax, al
test eax, eax
jne 0x140545f6f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1401df1df
lea rcx, [rsp + 0x20]
call fcn.140545a40
mov rax, qword [rsp + 0x50]
jmp 0x140545fcf
lea rcx, [rsp + 0x20]
call fcn.140545b60
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1401e1b24
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1401dac89
lea rcx, [rsp + 0x28]
call fcn.1401e3505
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1401df1df
lea rcx, [rsp + 0x20]
call fcn.140545a40
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret

Function at 0x1401da649
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
jmp 0x140254f20
push rdi
sub rsp, 0x10
mov dword [rsp], 0
jmp 0x140254f37
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0x100
jge 0x140254fd6
movsxd rax, dword [rsp]
lea rcx, str.cw
movzx eax, byte [rcx + rax]
mov byte [rsp + 4], al
movzx eax, byte [rsp + 4]
shl eax, 8
movzx ecx, byte [rsp + 4]
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [rsp + 4]
shl ecx, 1
movzx edx, byte [rsp + 4]
sar edx, 7
and edx, 1
imul edx, edx, 0x11b
xor ecx, edx
shl ecx, 0x18
or eax, ecx
mov dword [rsp + 8], eax
movzx eax, byte [rsp + 4]
shl eax, 1
movzx ecx, byte [rsp + 4]
sar ecx, 7
and ecx, 1
imul ecx, ecx, 0x11b
xor eax, ecx
movzx ecx, byte [rsp + 4]
xor eax, ecx
mov ecx, dword [rsp + 8]
or ecx, eax
mov eax, ecx
mov eax, eax
shl rax, 0x20
mov ecx, dword [rsp + 8]
or rax, rcx
movsxd rcx, dword [rsp]
lea rdx, [0x1406c87e0]
mov qword [rdx + rcx*8], rax
jmp 0x140254f2f
mov eax, 8
imul rax, rax, 0x101
lea rcx, [0x1406c87e0]
mov qword [rcx + rax], 0
mov eax, 8
imul rax, rax, 0x100
lea rcx, [0x1406c87e0]
mov qword [rcx + rax], 0
mov byte [0x1406c97f0], 1
add rsp, 0x10
pop rdi
ret
Function at 0x1401db2b0
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14048a0b0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140489a30
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14048a0ef
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14070c020]
jmp 0x14048a0f9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1401db93b
Capabilities:
Query environment variable

Disassembly:
jmp 0x140545be0
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140545a10
lea rcx, [rsp + 0x40]
call fcn.140545b90
movzx eax, al
test eax, eax
jne 0x140545c28
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140545a40
mov rax, qword [rsp + 0x70]
jmp 0x140545df9
lea rcx, [rsp + 0x40]
call fcn.140545b60
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140545b00
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.140545b60
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1401de799
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140545cce
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140545a40
mov rax, qword [rsp + 0x80]
jmp 0x140545df9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1401daea5
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1401da86f
lea rcx, [rsp + 0x48]
call fcn.1401d988e
movzx eax, al
test eax, eax
jne 0x140545d35
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1401d61fc
lea rcx, [rsp + 0x40]
call fcn.140545a40
mov rax, qword [rsp + 0x88]
jmp 0x140545df9
lea rcx, [rsp + 0x48]
call fcn.1401dc5cf
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140545b60
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1401de799
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140545dcb
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1401d61fc
lea rcx, [rsp + 0x40]
call fcn.140545a40
mov rax, qword [rsp + 0xa0]
jmp 0x140545df9
lea rcx, [rsp + 0x48]
call fcn.1401da7e3
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1401d61fc
lea rcx, [rsp + 0x40]
call fcn.140545a40
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x1401db963
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140489fe0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1404899b0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14048a021
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14070c020]
jmp 0x14048a027
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x1401dbb25
Capabilities:
Get geographical location

Disassembly:
jmp 0x1405299f0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.140528920
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140529a57
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x14070c030]
jmp 0x140529a79
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1401d974e
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x1401dbb7a
Capabilities:
Terminate process

Disassembly:
jmp 0x1404658a0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x1401dc2af
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140313a80
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x10
mov qword [rsp], 0
jmp 0x140313aae
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x40]
cmp qword [rsp], rax
jae 0x140313b11
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov byte [rsp + 8], al
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
movzx ecx, byte [rsp + 8]
xor eax, ecx
mov rcx, qword [rsp]
mov rdx, qword [rsp + 0x28]
add rdx, rcx
mov rcx, rdx
mov byte [rcx], al
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
movzx ecx, byte [rsp + 8]
mov byte [rax], cl
jmp 0x140313aa3
add rsp, 0x10
pop rdi
ret
Function at 0x1401dc4cb
Capabilities:
Print debug messages

Disassembly:
jmp 0x140554220
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1406b3640]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140554246
jmp 0x1405542c3
mov rcx, qword [rbp + 0x30]
call fcn.1401da3fb
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14055425f
jmp 0x1405542c3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14055427c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1401d67f1
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1401d7912
test eax, eax
jne 0x1405542c3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1401dabf8
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1401dcd4f
Capabilities:
Get geographical location

Disassembly:
jmp 0x1404155a0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1404155dd
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.1401e1d36
add rsp, 0x58
ret

Function at 0x1401dd00b
Capabilities:
Set environment variable

Disassembly:
jmp 0x140547d40
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x1401dd880
Capabilities:
Parse pe header

Disassembly:
jmp 0x1404670e0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140467100
xor al, al
jmp 0x140467181
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140467113
xor al, al
jmp 0x140467181
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14046713d
xor al, al
jmp 0x140467181
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140467151
xor al, al
jmp 0x140467181
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140467163
xor al, al
jmp 0x140467181
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14046717f
xor al, al
jmp 0x140467181
mov al, 1
add rsp, 0x38
ret
Function at 0x1401deea6
Capabilities:
Terminate process

Disassembly:
jmp 0x14048b0a0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14048b0ce
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1401e0dbe
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1401df07c
Capabilities:
Hash data using sha1

Disassembly:
jmp 0x14039d980
mov qword [rsp + 8], rcx
push rdi
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x10]
mov dword [rcx + rax], 0x67452301
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x10]
mov dword [rcx + rax], 0xefcdab89
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x10]
mov dword [rcx + rax], 0x98badcfe
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0x10]
mov dword [rcx + rax], 0x10325476
mov eax, 4
imul rax, rax, 4
mov rcx, qword [rsp + 0x10]
mov dword [rcx + rax], 0xc3d2e1f0
pop rdi
ret
Function at 0x1401df6f8
Capabilities:
Hash data using sha256

Disassembly:
jmp 0x14039e130
mov qword [rsp + 8], rcx
push rsi
push rdi
lea rax, [0x140602f90]
mov rdi, qword [rsp + 0x18]
mov rsi, rax
mov ecx, 0x20
rep movsb byte [rdi], byte [rsi]
pop rdi
pop rsi
ret
Function at 0x1401e0ed1
Capabilities:
Print debug messages

Disassembly:
jmp 0x14051f910
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1401e1214
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14048a120
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140489a70
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14048a169
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14070c020]
jmp 0x14048a178
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1401e1516
Capabilities:
Set environment variable

Disassembly:
jmp 0x1405605d0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1401d926c
lea rcx, [rsp + 0x48]
call fcn.1401d926c
call fcn.1401db75b
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1401d8984
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14056063f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1401da07c
lea rcx, [rsp + 0x78]
call fcn.1401da07c
mov eax, dword [rsp + 0x24]
jmp 0x1405606d0
call fcn.1401db75b
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1401d8984
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140560686
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1401da07c
lea rcx, [rsp + 0x78]
call fcn.1401da07c
mov eax, dword [rsp + 0x2c]
jmp 0x1405606d0
lea rcx, [rsp + 0x48]
call fcn.1401d8f79
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1401d8f79
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1401da07c
lea rcx, [rsp + 0x78]
call fcn.1401da07c
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x14052d3d0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1401d67f1
sub rsp, rax
mov rax, qword [0x1406b3640]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1406cd590]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14052d5c2
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x14052d516
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14052d516
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14052d4fb
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x14052d498
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14052d582
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14052d5e1
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14052d5bd
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14052d5e1
jmp 0x14052d46e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1401dabf8
add rsp, 0x1498
pop rdi
pop rsi
ret