joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff6f9cdaae0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x20], r8
mov rcx, qword [0x7ff6f9d20580]
test rcx, rcx
jne 0x7ff6f9cdab2d
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x7ff6f9cdabeb
mov rcx, rax
mov qword [0x7ff6f9d20580], rax
mov r8d, 0x10
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x7ff6f9cdabeb
mov rsi, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x7ff6f9cdac80]
xor edi, edi
xor ecx, ecx
mov rdx, r14
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x7ff6f9cdabdd
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov qword [rbp - 0x18], rsi
call qword [rax]
mov rsi, qword [rbp - 0x18]
mov rax, qword [rsi + 8]
cmp qword [rax + 8], 0
je 0x7ff6f9cdabb7
mov r8, qword [rsi]
cmp qword [rax + 0x10], 0x11
jb 0x7ff6f9cdaba8
mov r8, qword [r8 - 8]
mov rcx, qword [0x7ff6f9d20580]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x7ff6f9d20580]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
call sub.kernel32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov byte [rbp - 9], 1
mov ecx, 0x10
mov edx, 8
call fcn.7ff6f9ceaec0
ud2

Function at 0x7ff6f9cdadc0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rsi
sub rsp, 0x80
mov dword [rsp + 0x28], ecx
mov rsi, qword [0x7ff6f9d20588]
mov qword [rsp + 0x30], rsi
test rsi, rsi
jne 0x7ff6f9cdae22
lea rdx, [0x7ff6f9d15800]
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x7ff6f9cdae58
mov rcx, qword [rsp + 0x30]
xor eax, eax
lock cmpxchg qword [0x7ff6f9d20588], rcx
jne 0x7ff6f9cdae12
mov rsi, qword [rsp + 0x30]
jmp 0x7ff6f9cdae22
mov rsi, rax
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x10
xor r9d, r9d
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x7ff6f9cdae58
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
mov dword [rsp + 0x2c], eax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x60], rax
lea rax, [0x7ff6f9ca1940]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x2c]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rax
lea rax, [0x7ff6f9d15850]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 2
lea rax, [0x7ff6f9d15870]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 2
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 2
lea rdx, [0x7ff6f9d158e0]
lea rcx, [rsp + 0x30]
call fcn.7ff6f9cedf60
ud2
Function at 0x7ff6f9cdf0b0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x7ff6f9cdf0e5
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x7ff6f9cdf0ec
mov ecx, eax
call fcn.7ff6f9cdadc0
mov r8d, dword [0x7ff6f9d20850]
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + r8*8]
mov qword [rcx + 0x58], 1
mov qword [rcx + 0x60], rax
mov qword [rcx + 0x68], rdx
add rsp, 0x38
ret
Function at 0x7ff6f9cefcf0
Capabilities:
Link many functions at runtime

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rcx, [0x7ff6f9d11210]
call sub.kernel32.dll_GetModuleHandleA
test rax, rax
je 0x7ff6f9cefd58
mov rsi, rax
lea rdx, [0x7ff6f9d15551]
mov rcx, rax
call sub.kernel32.dll_GetProcAddress
test rax, rax
je 0x7ff6f9cefd58
mov rbx, rax
lea rdx, [0x7ff6f9d1555f]
mov rcx, rsi
call sub.kernel32.dll_GetProcAddress
test rax, rax
je 0x7ff6f9cefd58
mov rsi, rax
mov r15d, 1
mov rcx, qword [0x7ff6f9d20580]
test rcx, rcx
jne 0x7ff6f9cefe04
jmp 0x7ff6f9cefdef
lea rcx, [0x7ff6f9d185ba]
call sub.kernel32.dll_GetModuleHandleA
test rax, rax
je 0x7ff6f9cefe6c
mov rbx, rax
lea rdx, [0x7ff6f9d15b28]
mov rcx, rax
call sub.kernel32.dll_GetProcAddress
test rax, rax
je 0x7ff6f9cefe6c
mov rdi, rax
lea rdx, [0x7ff6f9d15ba0]
mov rcx, rbx
call sub.kernel32.dll_GetProcAddress
test rax, rax
je 0x7ff6f9cefe6c
mov rsi, rax
lea rdx, [0x7ff6f9d15bd0]
mov rcx, rbx
call sub.kernel32.dll_GetProcAddress
test rax, rax
je 0x7ff6f9cefe6c
mov r14, rax
lea rcx, [rsp + 0x28]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rdi
test eax, eax
jne 0x7ff6f9cefe6c
mov rbx, qword [rsp + 0x28]
xor r15d, r15d
mov rcx, qword [0x7ff6f9d20580]
test rcx, rcx
jne 0x7ff6f9cefe04
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x7ff6f9cefe73
mov rcx, rax
mov qword [0x7ff6f9d20580], rax
mov r8d, 0x20
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x7ff6f9cefe73
mov rdi, rax
mov qword [rax], r15
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r14
xor eax, eax
lock cmpxchg qword [0x7ff6f9d20458], rdi
je 0x7ff6f9cefe5d
mov rsi, rax
cmp qword [rdi], 0
jne 0x7ff6f9cefe48
mov rcx, qword [rdi + 8]
call sub.kernel32.dll_CloseHandle
mov rcx, qword [0x7ff6f9d20580]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
mov rdi, rsi
mov rax, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.7ff6f9cefe90
ud2
mov ecx, 0x20
mov edx, 8
call fcn.7ff6f9ceaec0
ud2
Function at 0x140001340
Capabilities:
Access peb ldr_data
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov rax, qword gs:[0x30]
mov esi, ecx
mov rdx, qword [rax + 0x60]
mov rax, qword [rdx + 0x18]
mov rdx, qword [rax + 0x20]
mov rbx, qword [rdx]
mov r10, qword [rbx - 0x10]
lea rax, [rbx - 0x10]
mov rdi, rax
cmp r10, rbx
je 0x1400013d4
nop dword [rax]
mov r11, qword [rax + 8]
mov r8d, 0x1505
mov r9, qword [r11 + 0x60]
movzx eax, word [r9]
test eax, eax
je 0x1400013bf
nop word [rax + rax]
lea ecx, [rax - 0x41]
cmp ecx, 0x19
lea edx, [rax + 0x20]
lea r9, [r9 + 2]
cmova edx, eax
movzx eax, word [r9]
imul r8d, r8d, 0x21
add r8d, edx
test eax, eax
jne 0x1400013a0
cmp r8d, esi
je 0x1400013e6
cmp r10, rdi
je 0x1400013d4
mov rax, r10
mov r10, qword [r10]
cmp r10, rbx
jne 0x140001380
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov rax, qword [r11 + 0x30]
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret

Function at 0x140001400
Capabilities:
Hash data using djb2
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
movsxd rax, dword [rcx + 0x3c]
xor r10d, r10d
mov ebp, edx
mov r11, rcx
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov r14d, dword [r8 + 0x1c]
mov esi, dword [r8 + 0x20]
add r14, rcx
mov r15d, dword [r8 + 0x24]
add rsi, rcx
mov edi, dword [r8 + 0x18]
add r15, rcx
test edi, edi
je 0x1400014a0
nop dword [rax]
movzx ebx, r10w
mov r9d, 0x1505
mov r8d, dword [rsi + rbx*4]
add r8, r11
movsx eax, byte [r8]
test eax, eax
je 0x14000148f
nop dword [rax]
lea ecx, [rax - 0x41]
cmp ecx, 0x19
lea edx, [rax + 0x20]
lea r8, [r8 + 1]
cmova edx, eax
movsx eax, byte [r8]
imul r9d, r9d, 0x21
add r9d, edx
test eax, eax
jne 0x140001470
cmp r9d, ebp
je 0x1400014bb
inc r10w
movzx eax, r10w
cmp eax, edi
jb 0x140001450
xor eax, eax
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret
movzx eax, word [r15 + rbx*2]
mov eax, dword [r14 + rax*4]
add rax, r11
jmp 0x1400014a2
Function at 0x180019900
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov ebp, dword [rsp + 0x90]
mov r14, r9
mov ebx, dword [rsp + 0x90]
mov r12, r8
mov r13, rdx
mov rax, rcx
lea r15d, [rbp + 0x26a]
cmp ebp, r15d
jae 0x180019a32
mov rsi, qword [rsp + 0x38]
xor edx, edx
cmp ebp, 0xe9
ja 0x180019a0f
je 0x180019a00
mov eax, ebp
sub eax, 0x1b
je 0x180019a5b
sub eax, 0x5e
je 0x1800199dc
cmp eax, 9
jne 0x180019b4f
test rsi, rsi
jne 0x180019b4f
mov edi, 0xa1
nop dword [rax + rax]
cmp edi, 0xa1
je 0x1800199aa
cmp edi, 0x78c0
jne 0x1800199c9
mov eax, 0xffffffff
jmp 0x180019a34
xor r9d, r9d
mov dword [rsp + 0x90], edx
xor edx, edx
lea rcx, [rsp + 0x90]
lea r8d, [r9 + 0x42]
call fcn.18000a350
xor edx, edx
add edi, 0x781f
cmp edi, 0xf03e
jbe 0x180019990
jmp 0x180019b4f
test r14, r14
je 0x180019b4f
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rdx, r14
mov ecx, 4
call fcn.18001eae0
jmp 0x180019b4f
mov rax, qword [rax]
mov qword [rsi + 8], rax
mov qword [rsi], r13
jmp 0x180019b4f
mov eax, ebp
sub eax, 0x150
je 0x180019a81
cmp eax, 0x67
jne 0x180019b4f
mov ecx, 0x31
mov eax, ecx
sub eax, 0x31
je 0x180019a52
cmp eax, 1
jne 0x180019a54
mov eax, ebx
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ebx, edx
inc ecx
cmp ecx, 0x33
jb 0x180019a26
xor r9d, r9d
mov qword [rsp + 0x38], 0x10
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov ecx, 0x113
call fcn.18000c540
mov rsi, rax
jmp 0x180019b4f
mov rax, qword [r12]
test rax, rax
je 0x180019aba
lea rcx, [rsp + 0x90]
mov dword [rsp + 0x90], edx
mov qword [rsp + 0x28], rcx
lea r8, [0x180018890]
mov dword [rsp + 0x20], edx
mov r9, rsi
xor edx, edx
xor ecx, ecx
call rax
mov eax, eax
mov qword [r14 + 8], rax
jmp 0x180019b10
mov edi, 0x91
nop
cmp edi, 0x91
je 0x180019afa
cmp edi, 0x7148
jne 0x180019afe
lea rax, [rsp + 0x30]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1800188a0]
mov dword [rsp + 0x20], edx
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [r14 + 8], rax
xor edx, edx
jmp 0x180019afe
mov dword [rsp + 0x30], edx
add edi, 0x70b7
cmp edi, 0xe16e
jbe 0x180019ac0
mov rax, qword [r14 + 8]
test rax, rax
jne 0x180019b4f
mov edi, 0xb1
nop word [rax + rax]
mov eax, edi
sub eax, 0xb1
je 0x180019b34
cmp eax, 1
je 0x180019a32
jmp 0x180019b45
lea rcx, str.remote_access.host_require_two_factor
call fcn.18001e350
mov ebx, 0xffffffff
inc edi
cmp edi, 0xb3
jb 0x180019b20
add ebp, 0x67
cmp ebp, r15d
jae 0x180019a32
mov rax, qword [rsp + 0x70]
jmp 0x180019950
Function at 0x1800231e0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
lea r13d, [rdx - 0xa]
mov rdi, r8
mov r15d, edx
mov r14, rcx
cmp edx, r13d
jbe case.0x180023245.0
mov rbp, qword [rsp + 0x28]
lea r12d, [rdx - 0xcc]
mov rsi, qword [rsp + 0x28]
lea rdx, [0x180000000]
nop dword [rax]
cmp r12d, 0x18
ja case.0x180023245.5
mov ecx, dword [rdx + r12*4 + 0x23434]
add rcx, rdx
jmp rcx
cmp dword [r9], 0
jne 0x180023294
mov ebx, 0x42
cmp ebx, 0x42
je 0x18002326b
cmp ebx, 0x1a4c
jne 0x180023286
test rbp, rbp
je 0x180023286
xor eax, eax
jmp 0x180023333
mov r8d, 1
mov byte [rsp + 0x78], 0
lea rdx, [rsp + 0x78]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebp, eax
add ebx, 0x1a0a
cmp ebx, 0x3414
jbe 0x180023252
xor edx, edx
mov rcx, r14
cmp byte [rdi], dl
cmovne rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x1800233db
mov eax, 0xffffffff
jmp 0x180023333
mov byte [0x18007e6c8], 0
lea rsi, [0x18007e698]
jmp case.0x180023245.5
xor edx, edx
xor r8d, r8d
lea ecx, [rdx + 0x24]
call fcn.180024a40
movsd xmm1, qword [0x1800655c0]
xorps xmm0, xmm0
mov ecx, eax
mov byte [rsp + 0x20], 1
cvtsi2sd xmm0, rcx
divsd xmm1, xmm0
movsd qword [r14 + 0x110], xmm1
jmp 0x1800233db
xor edi, edi
nop
mov ebx, 0xe4
cmp ebx, 0xe4
je 0x18002335b
cmp ebx, 0xabe4
jne 0x18002337b
cmp qword [rsi + rdi*8], 0
jne 0x18002337b
mov eax, 0xff
cmp eax, 0xff
je 0x180023348
cmp eax, 0x20df
jne 0x18002334d
mov eax, dword [rsp + 0x20]
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov byte [rsp + 0x20], 0
add eax, 0x1fe0
cmp eax, 0x3fc0
jbe 0x180023321
jmp 0x18002337b
mov rax, qword [r14]
lea rcx, [rdi + 1]
mov r8d, pe_nt_image_headers64
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x28]
call fcn.18003e000
mov qword [rsi + rdi*8], rax
add ebx, 0xab00
cmp ebx, 0x15600
jbe 0x180023305
inc rdi
cmp rdi, 6
jb 0x180023300
mov rdi, qword [rsp + 0x80]
jmp 0x1800233db
mov byte [0x18007e6c8], 1
jmp case.0x180023245.5
mov byte [rsp + 0x20], 1
jmp case.0x180023245.5
xor r9d, r9d
lea rcx, [r14 + 0x48]
xor r8d, r8d
lea edx, [r9 + 0x65]
call fcn.1800150e0
xor r8d, r8d
lea rdx, [r14 + 8]
lea ecx, [r8 + 0x6f]
call fcn.18000e360
test al, al
je 0x180023400
mov r9, qword [rsp + 0x88]
lea rdx, [0x180000000]
dec r15d
dec r12d
cmp r15d, r13d
ja 0x180023230
jmp case.0x180023245.0
mov byte [rsp + 0x20], 0
jmp case.0x180023245.0
mov eax, dword [rsp + 0x20]
mov edx, 0x12
mov ecx, edx
sub ecx, 0x12
je 0x180023425
cmp ecx, 1
je 0x180023333
jmp 0x180023427
xor eax, eax
inc edx
cmp edx, 0x14
jb 0x180023413
jmp 0x180023333
Function at 0x180033110
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x180033144
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x180033130
ret
Function at 0x180038600
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
movdqa xmm0, xmmword [0x1800655d0]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
lea ebp, [r8 + 0x284]
cmp r8d, ebp
jae 0x1800387e4
lea r15, [0x18007de10]
lea r12, [0x18007d6e0]
mov edi, dword [rsp + 0xa0]
nop word [rax + rax]
cmp ebx, 0x112
ja 0x180038761
je 0x18003871a
mov eax, ebx
sub eax, 0x34
je 0x1800386c5
sub eax, 0x5c
je 0x18003869b
cmp eax, 0x4f
jne 0x1800387d9
mov eax, dword [r14 + 0x24]
cmp dword [rsi + 0x24], eax
setb byte [rsp + 0xa0]
jmp 0x1800387d9
mov ecx, 0x8a
mov eax, ecx
sub eax, 0x8a
je 0x1800386b4
cmp eax, 1
je 0x1800387e4
jmp 0x1800386bb
mov dword [rsp + 0xa0], edi
inc ecx
cmp ecx, 0x8c
jb 0x1800386a0
xor edi, edi
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov rcx, qword [0x18007de00]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1800387d9
mov rcx, qword [0x18007de30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8d, eax
xor r9d, r9d
mov rdx, qword [0x18007de30]
mov rcx, qword [0x18007de10]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edi, eax
jmp 0x1800387d9
mov r8d, 0x6e
mov rdx, rsi
xor ecx, ecx
call fcn.18003e000
test al, al
jne 0x1800387d9
mov ecx, 0x3e
nop word [rax + rax]
mov eax, ecx
sub eax, 0x3d
je 0x1800387e4
cmp eax, 1
jne 0x180038758
mov byte [rsp + 0xa0], 0
dec ecx
cmp ecx, 0x3c
ja 0x180038740
jmp 0x1800387d9
mov eax, ebx
sub eax, 0x13b
je 0x1800387e4
sub eax, 0x33
je 0x180038776
cmp eax, 0x5c
je 0x1800387e4
jmp 0x1800387d9
mov r8, rsi
lea rdx, [rsp + 0x30]
mov ecx, 0x74
call fcn.180007200
test al, al
jne 0x1800387b3
mov eax, 0x4b
cmp eax, 0x4b
je 0x18003879f
cmp eax, 0x3264
je 0x1800387e4
jmp 0x1800387a7
mov byte [rsp + 0xa0], 0
add eax, 0x3219
cmp eax, 0x6432
jbe 0x180038791
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8d, 0xdd
lea rdx, [rsp + 0x30]
lea rcx, [0x18007d6d0]
call fcn.180039040
mov byte [rsp + 0xa0], al
add ebx, 0x5c
cmp ebx, ebp
jb 0x180038660
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x18003881d
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180038818
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18003883d
call fcn.180040b40
mov eax, dword [rsp + 0xa0]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call fcn.180046e04
int3
Function at 0x18003c0d0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov ebx, dword [rsp + 0x70]
lea r13d, [rcx + 6]
mov rsi, r9
mov r14, r8
mov rdi, rdx
mov r15d, ecx
cmp ecx, r13d
jae case.0x18003c12c.66
mov r12d, dword [rsp + 0x70]
lea eax, [r15 - 0x40]
lea rdx, [0x180000000]
cmp eax, 8
ja case.0x18003c12c.67
mov ecx, dword [rdx + rax*4 + 0x3c2b4]
add rcx, rdx
jmp rcx
mov rcx, qword [rsi + 8]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov r12d, eax
jmp case.0x18003c12c.67
cmp qword [r14], 0
je 0x18003c2b0
movzx eax, byte [rdi]
movzx ebx, byte [rsi]
sub ebx, eax
jmp case.0x18003c12c.67
test r12d, r12d
je 0x18003c22a
mov ebp, 0x34
nop word [rax + rax]
mov eax, ebp
sub eax, 0x34
je 0x18003c1a0
cmp eax, 1
jne 0x18003c21f
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x18003c21f
movzx r8d, word [rdi]
lea rdx, [rdi + 4]
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov r12d, eax
test eax, eax
je 0x18003c21f
mov ebx, 0x50
mov eax, ebx
sub eax, 0x50
je 0x18003c210
sub eax, 1
je 0x18003c1dd
cmp eax, 1
jne 0x18003c218
movzx eax, word [rsp + 0x70]
add word [rdi], ax
jmp 0x18003c218
movzx ecx, word [rdi]
lea rax, [rsp + 0x70]
add rcx, 4
mov qword [rsp + 0x28], rax
add rcx, rdi
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
lea edx, [r9 + 2]
call qword [sym.imp.ADVAPI32.dll_CryptSignHashW]
mov r12d, eax
jmp 0x18003c218
mov dword [rsp + 0x70], 0x100
inc ebx
cmp ebx, 0x53
jb 0x18003c1c2
inc ebp
cmp ebp, 0x36
jb 0x18003c180
mov ebx, r12d
jmp case.0x18003c12c.67
cmp byte [rsi], 0
je 0x18003c27a
cmp byte [rdi], 0
je 0x18003c27a
cmp qword [r14], 0
je 0x18003c27a
mov ecx, 0xe0
mov eax, ecx
sub eax, 0xde
je 0x18003c268
sub eax, 1
je 0x18003c260
cmp eax, 1
jne 0x18003c26b
movzx eax, byte [rdi]
cmp byte [rsi], al
jne 0x18003c27a
jmp 0x18003c26b
inc rsi
inc rdi
jmp 0x18003c26b
dec qword [r14]
dec ecx
cmp ecx, 0xdd
ja 0x18003c244
cmp byte [rsi], 0
jne 0x18003c234
mov r15d, 0x46
inc r15d
cmp r15d, r13d
jb 0x18003c10e
mov eax, ebx
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor eax, eax
jmp 0x18003c28e
Function at 0x180047b10
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x180047930
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180047930
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180047930
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180047930
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180047930
cmp dword [rcx + 0x84], 0xe
jbe 0x180047930
cmp dword [rcx + 0xf8], esi
je 0x180047930
mov ecx, r14d
call fcn.180047a78
mov ecx, 2
call fcn.18004a480
nop
cmp byte [0x18007f9f0], 0
jne 0x1800479fa
mov r15d, 1
mov eax, r15d
xchg dword [0x18007f9e0], eax
test ebx, ebx
jne 0x1800479a3
mov rdi, qword [0x18007c8f8]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x18007f9e8]
cmp rcx, rax
je 0x18004799a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [0x180061420]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x18007fd58]
jmp 0x1800479af
cmp ebx, r15d
jne 0x1800479b5
lea rcx, [0x18007fd70]
call fcn.18004ec1c
nop
test ebx, ebx
jne 0x1800479cc
lea rdx, [0x1800614e0]
lea rcx, [0x1800614c0]
call fcn.18004ee74
lea rdx, [0x1800614f0]
lea rcx, [0x1800614e8]
call fcn.18004ee74
movzx eax, byte [0x18007f9f0]
test esi, esi
cmove eax, r15d
mov byte [0x18007f9f0], al
jmp 0x1800479fa
mov ecx, 2
call fcn.18004a4d4
test esi, esi
jne 0x180047a11
mov ecx, r14d
call fcn.180047a2c
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1800478c0
Function at 0x140012dc0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10088
call fcn.140031dc0
sub rsp, rax
mov rax, qword [0x140065ba8]
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.14002c980
mov r8d, 0x10000
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x140012e3d
lea rcx, [rsp + 0x70]
call fcn.14003cfbc
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.140031d90
add rsp, 0x10088
ret
xor eax, eax
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.140031d90
add rsp, 0x10088
ret

Function at 0x140012f20
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140065ba8]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rcx, [0x14004b360]
call fcn.140012dc0
xor edi, edi
mov qword [0x140067a78], rax
lea rdx, [0x14004b360]
mov word [rsp + 0x20], di
lea rcx, [rsp + 0x20]
lea r8d, [rdi + 0x28]
call fcn.14002c980
lea rdx, [0x14004b368]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rcx, str.PYTHONHOME
call fcn.140012dc0
mov cl, 1
mov qword [0x140067a80], rax
call fcn.14002dbe0
lea r8d, [rdi + 0x28]
mov word [rsp + 0x20], di
lea rdx, str.PYTHONHOME
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.14002c980
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov cl, 1
call fcn.14002dbe0
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.140031d90
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x140013340
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140065ba8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbp, rdx
mov rsi, rcx
call fcn.14001f8a0
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.14002c980
lea rcx, [rsp + 0x20]
test rbp, rbp
je 0x140013401
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 0x1400133ef
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 0x14001341e
mov rax, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x14001341e
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 0x14001341e
call fcn.140012a10
sub qword [rdi], 1
jne 0x14001342e
mov rax, qword [rdi + 8]
mov rcx, rdi
call qword [rax + 0x30]
sub qword [rbx], 1
jne 0x14001343e
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140031d90
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret