joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400032b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r15
sub rsp, 0x40
mov rsi, rdx
mov ebp, ecx
xor r15d, r15d
mov edx, 0xfffe
mov rdi, r9
mov rbx, r8
lea ecx, [r15 + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rdi], rax
test rax, rax
je 0x140003470
mov edx, 0x20a
mov qword [rsp + 0x60], r14
lea ecx, [r15 + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x14000346b
mov edx, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov rcx, qword [rdi]
lea rax, str.services.exe
mov qword [rsp + 0x38], rbx
lea r8, str._ws_ws__d___ws___ws
mov qword [rsp + 0x30], rsi
mov ebx, 0x7fff
mov edx, ebx
mov dword [rsp + 0x28], ebp
mov r9, r14
mov qword [rsp + 0x20], rax
call fcn.140001070
cmp dword [0x14000b678], r15d
je 0x1400033c9
mov rdx, qword [rdi]
mov ecx, ebx
mov rax, rdx
nop dword [rax]
cmp word [rax], r15w
je 0x140003370
add rax, 2
sub rcx, 1
jne 0x140003360
mov rax, rbx
sub rax, rcx
test rcx, rcx
cmove rax, r15
je 0x140003445
lea rcx, [rdx + rax*2]
sub rbx, rax
je 0x140003436
lea r8, [0x140007a68]
mov eax, 0x7ffffffe
sub r8, rcx
nop
test rax, rax
je 0x140003436
movzx edx, word [r8 + rcx]
test dx, dx
je 0x140003436
mov word [rcx], dx
dec rax
add rcx, 2
sub rbx, 1
jne 0x1400033a0
jmp 0x140003436
cmp dword [0x14000b67c], r15d
je 0x140003445
mov rdx, qword [rdi]
mov rcx, rbx
mov rax, rdx
nop dword [rax + rax]
cmp word [rax], r15w
je 0x1400033f0
add rax, 2
sub rcx, 1
jne 0x1400033e0
mov rax, rbx
sub rax, rcx
test rcx, rcx
cmove rax, r15
je 0x140003445
lea rcx, [rdx + rax*2]
sub rbx, rax
je 0x140003436
lea r8, [0x140007a70]
mov eax, 0x7ffffffe
sub r8, rcx
test rax, rax
je 0x140003436
movzx edx, word [r8 + rcx]
test dx, dx
je 0x140003436
mov word [rcx], dx
dec rax
add rcx, 2
sub rbx, 1
jne 0x140003417
test rbx, rbx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r15w
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
mov r14, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop rdi
pop rsi
ret
mov eax, r15d
jmp 0x140003453
mov eax, r15d
jmp 0x140003458
Function at 0x140003a80
Capabilities:
Get session user name

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
sub rsp, 0x278
mov rax, qword [0x14000b008]
xor rax, rsp
mov qword [rsp + 0x250], rax
cmp dword [0x14000b67c], 0
je 0x140003bff
mov qword [r11 - 8], rbx
lea rcx, [rsp + 0x40]
mov qword [r11 - 0x10], rsi
xor edx, edx
mov r8d, 0x202
mov qword [r11 - 0x18], rdi
xor ebx, ebx
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x100
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp dword [0x14000b678], ebx
lea rsi, [rsp + 0x288]
je 0x140003b16
lea rdx, [rsp + 0x40]
lea rcx, str.__ws_
call fcn.1400036b0
mov ebx, eax
add ebx, ebx
call fcn.140001000
mov r9, qword [rsp + 0x280]
xor r8d, r8d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov qword [rsp + 0x20], 0
mov rcx, qword [rax]
or rcx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vswprintf]
test eax, eax
mov ecx, 0xffffffff
cmovs eax, ecx
mov ecx, 0x40
inc eax
lea eax, [rbx + rax*2]
mov edx, eax
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140003be7
cmp dword [0x14000b678], 0
je 0x140003b88
lea r9, [rsp + 0x40]
mov edx, edi
lea r8, str.__ws_
mov rcx, rax
call fcn.1400037d0
mov rcx, rdi
mov rax, rbx
shr rcx, 1
mov rdx, rcx
je 0x140003ba6
cmp word [rax], 0
je 0x140003bab
add rax, 2
sub rcx, 1
jne 0x140003b96
test rcx, rcx
je 0x140003bde
mov r8, qword [rsp + 0x280]
sub rdx, rcx
mov r9, rsi
lea rax, [rdx + rdx]
sub rdi, rax
shr rax, 1
mov rdx, rdi
lea rcx, [rbx + rax*2]
call fcn.140003710
mov rdx, rbx
lea rcx, [0x140007528]
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rsp + 0x268]
mov rbx, qword [rsp + 0x270]
mov rdi, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400043b0
add rsp, 0x278
ret
Function at 0x140003c20
Capabilities:
Get session user name

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
sub rsp, 0x278
mov rax, qword [0x14000b008]
xor rax, rsp
mov qword [rsp + 0x250], rax
cmp dword [0x14000b678], 0
je 0x140003d8c
mov qword [r11 - 8], rbx
lea rcx, [rsp + 0x40]
mov qword [r11 - 0x10], rsi
xor edx, edx
mov r8d, 0x202
mov qword [r11 - 0x18], rdi
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x100
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rdx, [rsp + 0x40]
lea rcx, str._DEBUG___ws_
lea rsi, [rsp + 0x288]
call fcn.1400036b0
mov ebx, eax
add ebx, ebx
call fcn.140001000
mov r9, qword [rsp + 0x280]
xor r8d, r8d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov qword [rsp + 0x20], 0
mov rcx, qword [rax]
or rcx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vswprintf]
test eax, eax
mov ecx, 0xffffffff
cmovs eax, ecx
add ebx, 2
mov ecx, 0x40
lea eax, [rbx + rax*2]
mov edx, eax
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140003d74
lea r9, [rsp + 0x40]
mov edx, edi
lea r8, str._DEBUG___ws_
mov rcx, rax
call fcn.1400037d0
mov r8d, edi
mov rcx, rbx
shr r8, 1
mov rax, r8
je 0x140003d34
cmp word [rcx], 0
je 0x140003d39
add rcx, 2
sub r8, 1
jne 0x140003d24
test r8, r8
je 0x140003d6b
sub rax, r8
mov r9, rsi
mov r8, qword [rsp + 0x280]
add rax, rax
sub rdi, rax
shr rax, 1
mov rdx, rdi
lea rcx, [rbx + rax*2]
call fcn.140003710
mov rdx, rbx
lea rcx, [0x140007528]
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rsp + 0x268]
mov rbx, qword [rsp + 0x270]
mov rdi, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400043b0
add rsp, 0x278
ret
Function at 0x140003db0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x14000b008]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r12, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x238
xor edi, edi
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea ecx, [rdi + 2]
mov r14d, edi
mov ebp, edi
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x140003e1a
lea rcx, [0x140008470]
call fcn.140003900
jmp 0x140003efe
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x140003e45
lea rcx, str.Process32First
call fcn.140003900
jmp 0x140003ef9
mov qword [rsp + 0x2b0], rbx
nop dword [rax]
mov rdx, rsi
lea rcx, [rsp + 0x4c]
mov ebx, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140003e9d
lea rax, [rsp + 0x4c]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], bx
jne 0x140003e70
inc rdx
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchRemoveExtension]
test eax, eax
jne 0x140003ea7
mov rdx, rsi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140003ea7
mov r14d, dword [rsp + 0x28]
mov ebx, 1
lea eax, [rbp + 1]
test ebx, ebx
lea rdx, [rsp + 0x20]
mov rcx, r15
cmove eax, ebp
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140003e50
mov rbx, qword [rsp + 0x2b0]
test ebp, ebp
jne 0x140003edd
lea rcx, str.____Failed_to_find_a_process_that_matches_the_provided_name._n
call fcn.140001010
jmp 0x140003ef9
cmp ebp, 1
jbe 0x140003ef0
lea rcx, str.____Found_more_than_one_process_that_matches_the_provided_name._Please_provide_a_PID_instead._n
call fcn.140001010
jmp 0x140003ef9
mov dword [r12], r14d
mov edi, 1
test r15, r15
je 0x140003f07
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400043b0
mov rbp, qword [rsp + 0x2b8]
add rsp, 0x270
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140004150
Capabilities:
Get token privileges

Disassembly:
push rsi
push r12
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x14000b008]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor eax, eax
xor esi, esi
mov qword [rsp + 0x38], rax
mov r12d, r8d
mov dword [rsp + 0x40], eax
mov r14, rdx
xorps xmm0, xmm0
mov dword [rsp + 0x34], esi
lea rax, [rsp + 0x34]
mov dword [rsp + 0x30], esi
lea edx, [rsi + 3]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov r15, rcx
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1400041ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1400041ca
lea rcx, [0x140008680]
call fcn.140003900
jmp 0x140004379
mov edx, dword [rsp + 0x34]
mov ecx, 0x40
mov qword [rsp + 0xa8], rbp
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
test rax, rax
je 0x140004371
mov r9d, dword [rsp + 0x34]
lea rax, [rsp + 0x34]
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140004222
lea rcx, [0x140008680]
call fcn.140003900
jmp 0x140004368
mov qword [rsp + 0x60], rdi
mov edi, esi
cmp dword [rbp], esi
jbe 0x140004363
mov qword [rsp + 0xa0], rbx
nop word [rax + rax]
mov eax, edi
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [rax + rax*2]
movsd xmm0, qword [rbp + rcx*4 + 4]
movsd qword [rsp + 0x38], xmm0
mov eax, dword [rbp + rcx*4 + 0xc]
xor ecx, ecx
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x30], esi
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
test eax, eax
jne 0x140004286
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140004348
mov eax, dword [rsp + 0x30]
mov ecx, 0x40
inc eax
mov edx, eax
add rdx, rdx
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14000433b
lea r9, [rsp + 0x30]
mov r8, rax
lea rdx, [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
test eax, eax
je 0x140004326
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140004332
test r12d, r12d
je 0x140004356
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x28], rsi
mov r9d, 0x10
xor edx, edx
mov qword [rsp + 0x4c], rax
mov rcx, r15
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x54], 2
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140004356
lea rcx, [0x140008738]
call fcn.140003900
jmp 0x14000435b
lea rcx, str.LookupPrivilegeName
call fcn.140003900
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
inc edi
cmp edi, dword [rbp]
jb 0x140004240
jmp 0x14000435b
lea rcx, str.LookupPrivilegeName
call fcn.140003900
jmp 0x14000435b
mov esi, 1
mov rbx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0xa8]
mov eax, esi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400043b0
add rsp, 0x68
pop r15
pop r14
pop r12
pop rsi
ret
Function at 0x140004cc0
Capabilities:
Parse pe header

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

Disassembly:
mov eax, 0x10088
call fcn.140122eb0
sub rsp, rax
mov rax, qword [0x14015e4e0]
xor rax, rsp
mov qword [rsp + 0x10070], rax
xor eax, eax
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.14011da90
mov r8d, 0x10000
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1400fea2d
lea rcx, [rsp + 0x70]
call fcn.14012dc7c
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.140122e80
add rsp, 0x10088
ret
xor eax, eax
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.140122e80
add rsp, 0x10088
ret

Function at 0x1400feb10
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14015e4e0]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rcx, [0x14013d3e0]
call fcn.1400fe9b0
xor edi, edi
mov qword [0x14016b058], rax
lea rdx, [0x14013d3e0]
mov word [rsp + 0x20], di
lea rcx, [rsp + 0x20]
lea r8d, [rdi + 0x28]
call fcn.14011da90
lea rdx, [0x14013d3e8]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rcx, str.PYTHONHOME
call fcn.1400fe9b0
mov cl, 1
mov qword [0x14016b060], rax
call fcn.14011ecf0
lea r8d, [rdi + 0x28]
mov word [rsp + 0x20], di
lea rdx, str.PYTHONHOME
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.14011da90
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov cl, 1
call fcn.14011ecf0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov rax, qword [sym.imp.python38.dll__Py_path_config]
mov dword [rax + 0x30], 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140122e80
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x1400fef30
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14015e4e0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbp, rdx
mov rsi, rcx
call fcn.14010e030
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python38.dll_PyObject_GetAttrString]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.python38.dll_PyUnicode_FromString]
mov rdx, rsi
lea rcx, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.14011da90
lea rcx, [rsp + 0x20]
test rbp, rbp
je 0x1400feff1
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, rbp
call sub.python38.dll_PyUnicode_FromWideChar
mov r8, rax
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.python38.dll_PyObject_SetItem]
test eax, eax
je 0x1400fefdf
mov ecx, 1
call qword [sym.imp.python38.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python38.dll_Py_Exit]
int3
sub qword [rsi], 1
jne 0x1400ff00e
mov rax, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x1400ff00e
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.python38.dll_PyObject_DelItem]
test eax, eax
je 0x1400ff00e
call fcn.1400fe680
sub qword [rdi], 1
jne 0x1400ff01e
mov rax, qword [rdi + 8]
mov rcx, rdi
call qword [rax + 0x30]
sub qword [rbx], 1
jne 0x1400ff02e
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140122e80
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret

Function at 0x14011db40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, rcx
mov eax, 0xffffffff
test edx, edx
je 0x14011dc04
mov r9d, edx
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r8]
lea r8, [r8 + 1]
xor eax, edx
mov edx, eax
and dl, 1
neg dl
sbb ecx, ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
sub r9, 1
jne 0x14011db60
not eax
ret
Function at 0x140123900
Capabilities:
Parse pe header

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

Function at 0x14012d52c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14012d31c
Function at 0x140132a84
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140132b0b
mov rsi, rbx
cmp word [rax], bp
je 0x140132aca
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140132ab4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140132ab0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14012e50c
mov rdi, rax
test rax, rax
je 0x140132af8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140123c20
mov rbp, rdi
xor ecx, ecx
call fcn.14012ed88
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400096e5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
mov rbp, rsp
sub rax, rax
sub rcx, 0xd55f
add rax, rcx
add rax, 0xd55f
add rcx, 0xd55f
sub rsp, 0x3f0
sub rsp, 0x20
and spl, 0xf0
mov byte [rbp - 0xd], 0x56
mov byte [rbp - 0xc], 0x69
mov byte [rbp - 0xb], 0x72
mov byte [rbp - 0xa], 0x74
mov byte [rbp - 9], 0x75
mov byte [rbp - 8], 0x61
mov byte [rbp - 7], 0x6c
mov byte [rbp - 6], 0x41
mov byte [rbp - 5], 0x6c
mov byte [rbp - 4], 0x6c
mov byte [rbp - 3], 0x6f
mov byte [rbp - 2], 0x63
mov byte [rbp - 1], 0
and rcx, 0
add rcx, rsi
lea rdx, [rbp - 0xd]
call rax
sub rsp, 8
mov qword [rsp], 0
add rsp, 8
mov rcx, qword [rsp - 8]
mov rdx, 0x5aa1
mov r8, 0x3000
mov r9, 0x40
call rax
mov rcx, 0x441e
lea r9, [0x1400054c4]
add byte [rax - 0x7d], cl
invalid
dec rcx
mov dl, byte [r9 + rcx]
mov byte [rax + rcx], dl
test rcx, rcx
jne 0x1400097a2
je 0x1400097b9
insb byte [rdi], dx
cld
add byte [rax], al
je 0x1400097c3
jne 0x14000978d
lea rax, [0x140008cb6]
add rax, 0xb32
call rax
je 0x14000975e
push rsp
ror byte [rax - 0x39], cl
shl dword [rsi], 0x3e
add byte [rax], al
mov rcx, 0x3e26
mov r9d, 0x8d68
mov r10d, 0x92819200
lea eax, [rax]
add byte [rcx - 0x46], al
add byte [rdx - 0xb76d7f], dl
leave
dec rcx
xor byte [rax + rcx], r9b
add r9d, r10d
rol r9d, 1
test rcx, rcx
jne 0x1400097cc
add rax, 0x1ebd
mov rsp, rbp
mov rbp, qword [rsp]
add rsp, 8
ret

Function at 0x1400097a0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rax, rax
sub rcx, 0xd55f
add rax, rcx
add rax, 0xd55f
add rcx, 0xd55f
sub rsp, 0x3f0
sub rsp, 0x20
and spl, 0xf0
mov byte [rbp - 0xd], 0x56
mov byte [rbp - 0xc], 0x69
mov byte [rbp - 0xb], 0x72
mov byte [rbp - 0xa], 0x74
mov byte [rbp - 9], 0x75
mov byte [rbp - 8], 0x61
mov byte [rbp - 7], 0x6c
mov byte [rbp - 6], 0x41
mov byte [rbp - 5], 0x6c
mov byte [rbp - 4], 0x6c
mov byte [rbp - 3], 0x6f
mov byte [rbp - 2], 0x63
mov byte [rbp - 1], 0
and rcx, 0
add rcx, rsi
lea rdx, [rbp - 0xd]
call rax
sub rsp, 8
mov qword [rsp], 0
add rsp, 8
mov rcx, qword [rsp - 8]
mov rdx, 0x5aa1
mov r8, 0x3000
mov r9, 0x40
call rax
mov rcx, 0x441e
lea r9, [0x1400054c4]
add byte [rax - 0x7d], cl
invalid
dec rcx
mov dl, byte [r9 + rcx]
mov byte [rax + rcx], dl
test rcx, rcx
jne 0x1400097a2
je 0x1400097b9
insb byte [rdi], dx
cld
add byte [rax], al
je 0x1400097c3
jne 0x14000978d
lea rax, [0x140008cb6]
add rax, 0xb32
call rax
je 0x14000975e
push rsp
ror byte [rax - 0x39], cl
shl dword [rsi], 0x3e
add byte [rax], al
mov rcx, 0x3e26
mov r9d, 0x8d68
mov r10d, 0x92819200
lea eax, [rax]
add byte [rcx - 0x46], al
add byte [rdx - 0xb76d7f], dl
leave
dec rcx
xor byte [rax + rcx], r9b
add r9d, r10d
rol r9d, 1
test rcx, rcx
jne 0x1400097cc
add rax, 0x1ebd
mov rsp, rbp
mov rbp, qword [rsp]
add rsp, 8
ret
Function at 0x140009efc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140009f48
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140009f40
cmp dword [rcx + 0x3c], edx
jl 0x140009f40
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140009f40
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140009f48
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400207a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400207d4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400207c0
ret
Function at 0x140026cd0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140026d9c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140026d9c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140026db5
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x140026d8c
cmp byte [rax], 0x5c
jne 0x140026d86
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140026d86
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140026d72
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140026d83
test r8b, 0x10
jne 0x140026d86
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140026d86
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140022930
test edi, edi
jne 0x140026cf0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140022920
int3
Function at 0x14002c350
Capabilities:
Load windows common language runtime

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
cmp qword [0x1400d4d10], 0
jne 0x14002c442
xor ebx, ebx
lea r8, [rsp + 0x48]
lea rdx, [0x1400bbad0]
mov qword [rsp + 0x48], rbx
lea rcx, [0x1400bbac0]
call qword [sym.imp.mscoree.dll_CLRCreateInstance]
lea rdi, [0x1400d4d10]
test eax, eax
js 0x14002c405
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x40], rbx
lea r8, [0x1400bbab0]
lea rdx, str.v4.0.30319
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov ebx, eax
test eax, eax
js 0x14002c3f6
mov rcx, qword [rsp + 0x40]
lea r8, [0x1400bbaa0]
mov r9, rdi
lea rdx, [0x1400bba90]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
js 0x14002c3eb
mov rcx, qword [0x1400d4d10]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
jns 0x14002c442
cmp qword [0x1400d4d10], 0
jne 0x14002c442
lea r9, [0x1400bbaa0]
mov qword [rsp + 0x20], rdi
lea r8, [0x1400bba90]
xor edx, edx
lea rcx, str.v2.0.50727
call qword [sym.imp.mscoree.dll_CorBindToRuntime]
test eax, eax
js 0x14002c44f
mov rcx, qword [0x1400d4d10]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov al, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
xor r9d, r9d
lea r8, [0x1400bb3e8]
lea rdx, [0x1400bb400]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rbx, qword [rsp + 0x50]
xor al, al
add rsp, 0x30
pop rdi
ret