joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140039e60
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x136], 0
je 0x140039e88
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x6a]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x135
jb 0x140039e70
mov byte [rcx + 0x136], 0
mov rax, rcx
ret

Function at 0x140039e90
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x32], 0
je 0x140039eb3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x6a]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x31
jb 0x140039ea0
mov byte [rcx + 0x32], 0
mov rax, rcx
ret

Function at 0x140039ec0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x44], 0
je 0x140039ee3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x6a]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x43
jb 0x140039ed0
mov byte [rcx + 0x44], 0
mov rax, rcx
ret

Function at 0x140039ef0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x47], 0
je 0x140039f13
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x6a]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x46
jb 0x140039f00
mov byte [rcx + 0x47], 0
mov rax, rcx
ret
Function at 0x1400632a0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r8d, dword [rcx + 0x28]
mov rdi, rdx
mov rbx, rcx
cmp r8d, 0x40
jae 0x140063458
lea ecx, [r8*8]
mov qword [rsp + 0x30], rsi
add qword [rbx], rcx
mov byte [r8 + rbx + 0x2c], 0x80
mov eax, dword [rbx + 0x28]
inc eax
mov dword [rbx + 0x28], eax
cmp eax, 0x38
jbe 0x140063318
cmp eax, 0x40
jae 0x140063302
nop word [rax + rax]
mov byte [rax + rbx + 0x2c], 0
mov eax, dword [rbx + 0x28]
inc eax
mov dword [rbx + 0x28], eax
cmp eax, 0x40
jb 0x1400632f0
lea rsi, [rbx + 0x2c]
mov rcx, rbx
mov rdx, rsi
call fcn.140063580
xor eax, eax
mov dword [rbx + 0x28], eax
jmp 0x140063320
lea rsi, [rbx + 0x2c]
jae 0x140063332
nop
mov byte [rax + rbx + 0x2c], 0
mov eax, dword [rbx + 0x28]
inc eax
mov dword [rbx + 0x28], eax
cmp eax, 0x38
jb 0x140063320
movzx eax, byte [rbx + 7]
mov rdx, rsi
mov byte [rbx + 0x64], al
mov rcx, rbx
movzx eax, byte [rbx + 6]
mov byte [rbx + 0x65], al
movzx eax, byte [rbx + 5]
mov byte [rbx + 0x66], al
movzx eax, byte [rbx + 4]
mov byte [rbx + 0x67], al
movzx eax, byte [rbx + 3]
mov byte [rbx + 0x68], al
movzx eax, byte [rbx + 2]
mov byte [rbx + 0x69], al
movzx eax, byte [rbx + 1]
mov byte [rbx + 0x6a], al
movzx eax, byte [rbx]
mov byte [rbx + 0x6b], al
call fcn.140063580
movzx eax, byte [rbx + 0xb]
mov byte [rdi], al
movzx eax, byte [rbx + 0xa]
mov byte [rdi + 1], al
movzx eax, byte [rbx + 9]
mov byte [rdi + 2], al
movzx eax, byte [rbx + 8]
mov byte [rdi + 3], al
movzx eax, byte [rbx + 0xf]
mov byte [rdi + 4], al
movzx eax, byte [rbx + 0xe]
mov byte [rdi + 5], al
movzx eax, byte [rbx + 0xd]
mov byte [rdi + 6], al
movzx eax, byte [rbx + 0xc]
mov byte [rdi + 7], al
movzx eax, byte [rbx + 0x13]
mov byte [rdi + 8], al
movzx eax, byte [rbx + 0x12]
mov byte [rdi + 9], al
movzx eax, byte [rbx + 0x11]
mov byte [rdi + 0xa], al
movzx eax, byte [rbx + 0x10]
mov byte [rdi + 0xb], al
movzx eax, byte [rbx + 0x17]
mov byte [rdi + 0xc], al
movzx eax, byte [rbx + 0x16]
mov byte [rdi + 0xd], al
movzx eax, byte [rbx + 0x15]
mov byte [rdi + 0xe], al
movzx eax, byte [rbx + 0x14]
mov byte [rdi + 0xf], al
movzx eax, byte [rbx + 0x1b]
mov byte [rdi + 0x10], al
movzx eax, byte [rbx + 0x1a]
mov byte [rdi + 0x11], al
movzx eax, byte [rbx + 0x19]
mov byte [rdi + 0x12], al
movzx eax, byte [rbx + 0x18]
mov byte [rdi + 0x13], al
movzx eax, byte [rbx + 0x1f]
mov byte [rdi + 0x14], al
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 0x15], al
movzx eax, byte [rbx + 0x1d]
mov byte [rdi + 0x16], al
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 0x17], al
movzx eax, byte [rbx + 0x23]
mov byte [rdi + 0x18], al
movzx eax, byte [rbx + 0x22]
mov byte [rdi + 0x19], al
movzx eax, byte [rbx + 0x21]
mov byte [rdi + 0x1a], al
movzx eax, byte [rbx + 0x20]
mov byte [rdi + 0x1b], al
movzx eax, byte [rbx + 0x27]
mov byte [rdi + 0x1c], al
movzx eax, byte [rbx + 0x26]
mov byte [rdi + 0x1d], al
movzx eax, byte [rbx + 0x25]
mov byte [rdi + 0x1e], al
movzx eax, byte [rbx + 0x24]
mov rsi, qword [rsp + 0x30]
mov byte [rdi + 0x1f], al
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140063470
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov qword [rcx + 0x24], 0x5be0cd19
mov qword [rcx], rax
mov dword [rcx + 8], 0x6a09e667
mov dword [rcx + 0xc], 0xbb67ae85
mov dword [rcx + 0x10], 0x3c6ef372
mov dword [rcx + 0x14], 0xa54ff53a
mov dword [rcx + 0x18], 0x510e527f
mov dword [rcx + 0x1c], 0x9b05688c
mov dword [rcx + 0x20], 0x1f83d9ab
ret
Function at 0x14007d5b0
Capabilities:
Check http status code

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea eax, [rdx - 0xc8]
mov rdi, rcx
mov rcx, qword [rcx]
mov esi, r8d
cmp eax, 0x64
jb 0x14007d5e5
lea rdx, str.Couldnt_set_desired_mode
call fcn.14005f700
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x14007d5fc
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.14005f880
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x14007d618
mov rcx, rdi
call fcn.14007d4f0
jmp 0x14007d74f
cmp esi, 0x14
jne 0x14007d731
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + 0xba0], 2
jne 0x14007d699
mov rax, qword [rsi + 0x1e0]
mov rdx, qword [rax]
test rdx, rdx
je 0x14007d699
mov byte [rsp + 0x28], 1
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov qword [rsp + 0x50], rbx
call fcn.1400483a0
test eax, eax
jne 0x14007d74f
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call fcn.14009a00c
test rax, rax
je 0x14007d68e
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x14007d699
mov rcx, qword [rsp + 0x50]
call qword [fcn.14009a036]
mov rdx, qword [rsi + 0xc08]
test rdx, rdx
jne 0x14007d6bd
cmp byte [rsi + 0xf0d], bl
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x1400ad4eb]
test rbp, rbp
mov r9, r8
lea rax, [0x1400ad6a4]
cmovne r9, rbp
lea rcx, [0x1400a3268]
cmovne r8, rax
call fcn.14004d5e0
mov rcx, rbp
mov r14, rax
call qword [fcn.14009a036]
test r14, r14
jne 0x14007d6fc
lea ebx, [r14 + 0x1b]
jmp 0x14007d751
lea rcx, [rdi + 0xa00]
mov r8, r14
lea rdx, [0x1400a7a70]
call fcn.140093710
mov rcx, r14
mov esi, eax
call qword [fcn.14009a036]
test esi, esi
je 0x14007d725
mov ebx, esi
jmp 0x14007d751
mov dword [rdi + 0xab8], 0x1f
jmp 0x14007d751
cmp esi, 0x15
jne 0x14007d73c
lea r8d, [rsi - 8]
jmp 0x14007d745
cmp esi, 0x16
jne 0x14007d751
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.14007d020
mov ebx, eax
mov r14, qword [rsp + 0x60]
mov eax, ebx
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x140097f90
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
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [fcn.14009a03c]
mov rdi, rax
test rax, rax
jne 0x140097fd2
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 [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140098019
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + 8]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + 0x10]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140098072
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
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
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + 8]
sub rbp, 1
jne 0x140098030
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400980b3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400ad1ea]
mov r8d, 1
call qword [rbx + 8]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400ad1eb]
mov r8d, 1
call qword [rbx + 8]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140098080
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x140099ca8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x14009e1f0]
test rax, rax
je 0x140099cf2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140099cf2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140099cf2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140099cf2
cmp dword [rcx + 0x84], 0xe
jbe 0x140099cf2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140099cf4
xor al, al
add rsp, 0x28
ret
Function at 0x140011620
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
mov eax, 0x10090
call fcn.140025d40
sub rsp, rax
mov rax, qword [0x140062900]
xor rax, rsp
mov qword [rsp + 0x10088], rax
mov word [rsp + 0x80], 0
mov word [rsp + 0x30], 0
movzx eax, byte [rcx]
test al, al
je 0x1400116f6
mov rsi, rcx
mov r14d, 0x28
lea r15, [rsp + 0x30]
lea rdi, [rsp + 0x2a]
lea rbx, [rsp + 0x2e]
nop word [rax + rax]
mov byte [rsp + 0x2e], al
mov byte [rsp + 0x2f], 0
mov r8d, 2
mov rcx, rdi
mov rdx, rbx
call fcn.140034110
cmp rax, 1
jne 0x140011751
cmp word [r15], 0
mov rcx, r14
mov rax, r15
je 0x1400116d1
mov rdx, r15
mov rcx, r14
nop word [rax + rax]
lea rax, [rdx + 2]
dec rcx
cmp word [rdx + 2], 0
mov rdx, rax
jne 0x1400116c0
test rcx, rcx
je 0x140011751
movzx ecx, word [rsp + 0x2a]
mov word [rax], cx
mov word [rax + 2], 0
add r15, 2
dec r14
movzx eax, byte [rsi + 1]
inc rsi
test al, al
jne 0x140011680
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x80]
mov r8d, 0x10000
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
add eax, 0xfffeffff
cmp eax, 0xffff0000
jae 0x14001171f
xor esi, esi
jmp 0x14001172f
lea rcx, [rsp + 0x80]
call fcn.1400329d4
mov rsi, rax
mov rcx, qword [rsp + 0x10088]
xor rcx, rsp
call fcn.140025da0
mov rax, rsi
add rsp, 0x10090
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140033dc8
int3

Function at 0x140011760
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rsi, rdx
mov rax, qword [0x140062900]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov word [rsp + 0x30], 0
movzx eax, byte [rcx]
test al, al
je 0x140011826
mov rdi, rcx
mov r15d, 0x28
lea r12, [rsp + 0x30]
lea rbx, [rsp + 0x2a]
lea r14, [rsp + 0x2e]
nop
mov byte [rsp + 0x2e], al
mov byte [rsp + 0x2f], 0
mov r8d, 2
mov rcx, rbx
mov rdx, r14
call fcn.140034110
cmp rax, 1
jne 0x140011856
cmp word [r12], 0
mov rcx, r15
mov rax, r12
je 0x140011801
mov rdx, r12
mov rcx, r15
nop dword [rax + rax]
lea rax, [rdx + 2]
dec rcx
cmp word [rdx + 2], 0
mov rdx, rax
jne 0x1400117f0
test rcx, rcx
je 0x140011856
movzx ecx, word [rsp + 0x2a]
mov word [rax], cx
mov word [rax + 2], 0
add r12, 2
dec r15
movzx eax, byte [rdi + 1]
inc rdi
test al, al
jne 0x1400117b0
lea rcx, [rsp + 0x30]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140025da0
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.140033dc8
int3
Function at 0x140011860
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rax, qword [0x140062900]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov word [rsp + 0x30], 0
movzx eax, byte [rcx]
test al, al
je 0x140011926
mov rsi, rcx
mov r14d, 0x28
lea r15, [rsp + 0x30]
lea rdi, [rsp + 0x2a]
lea rbx, [rsp + 0x2e]
nop word [rax + rax]
mov byte [rsp + 0x2e], al
mov byte [rsp + 0x2f], 0
mov r8d, 2
mov rcx, rdi
mov rdx, rbx
call fcn.140034110
cmp rax, 1
jne 0x140011953
cmp word [r15], 0
mov rcx, r14
mov rax, r15
je 0x140011901
mov rdx, r15
mov rcx, r14
nop word [rax + rax]
lea rax, [rdx + 2]
dec rcx
cmp word [rdx + 2], 0
mov rdx, rax
jne 0x1400118f0
test rcx, rcx
je 0x140011953
movzx ecx, word [rsp + 0x2a]
mov word [rax], cx
mov word [rax + 2], 0
add r15, 2
dec r14
movzx eax, byte [rsi + 1]
inc rsi
test al, al
jne 0x1400118b0
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140025da0
nop
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140033dc8
int3
Function at 0x140015ef0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
cmp byte [0x140065130], 0
jne 0x140015f6e
mov edx, 3
mov r8d, 0xa
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x140065128], rax
mov ebp, dword [rax]
lea rcx, [rax + 4]
mov qword [0x140065128], rcx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x140065128], rdx
xor ecx, ecx
call fcn.140015690
cmp eax, ebp
jne 0x140016073
mov byte [0x140065130], 1
lea rdx, [0x140053616]
mov rcx, rbx
call fcn.140036440
test eax, eax
je 0x140015fe8
cmp byte [0x140065388], 0
jne 0x140015fe8
mov r14, qword [sym.imp.python312.dll_PyDict_New]
call r14
mov qword [0x140065390], rax
call r14
mov qword [0x140065398], rax
call r14
mov qword [0x1400653a0], rax
call r14
mov qword [0x1400653a8], rax
call r14
mov qword [0x1400653b0], rax
call r14
mov qword [0x1400653b8], rax
call r14
mov qword [0x1400653c0], rax
call r14
mov qword [0x1400653c8], rax
mov byte [0x140065388], 1
mov r14, qword [0x140065128]
mov rcx, rbx
mov rdx, r14
call fcn.140036440
mov ebp, eax
mov rcx, r14
call fcn.1400364c0
add rax, r14
inc rax
test ebp, ebp
je 0x14001603e
nop
mov ecx, dword [rax]
lea r15, [rax + rcx]
lea r14, [rax + rcx]
add r14, 4
mov rcx, rbx
mov rdx, r14
call fcn.140036440
mov ebp, eax
mov rcx, r14
call fcn.1400364c0
add rax, r15
add rax, 5
test ebp, ebp
jne 0x140016010
movzx ebx, word [rax + 4]
test ebx, ebx
je 0x140016066
add rax, 6
nop word [rax + rax]
mov rcx, rdi
mov rdx, rsi
mov r8, rax
call fcn.1400213d0
add rsi, 8
dec ebx
jne 0x140016050
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, str.Error__corrupted_constants_object
call fcn.140035a44
call fcn.140033dc8
int3

Function at 0x140026508
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003183c
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400318ab
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400318ab
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400318ab
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400318ab
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400318ab
cmp dword [rcx + 0x84], 0xe
jbe 0x1400318ab
cmp dword [rcx + 0xf8], 0
je 0x1400318ab
mov ecx, ebx
call fcn.140031774
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400319d0
nop
cmp dword [rbp + 0x20], 0
je 0x1400318f9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140031808
int3

Function at 0x14003183c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003183c
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400318ab
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400318ab
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400318ab
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400318ab
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400318ab
cmp dword [rcx + 0x84], 0xe
jbe 0x1400318ab
cmp dword [rcx + 0xf8], 0
je 0x1400318ab
mov ecx, ebx
call fcn.140031774
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400319d0
nop
cmp dword [rbp + 0x20], 0
je 0x1400318f9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140031808
int3

Function at 0x140036b30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140036b58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140036b58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14003c328
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 0x14003c3af
mov rsi, rbx
cmp word [rax], bp
je 0x14003c36e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003c358
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003c354
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140039544
mov rdi, rax
test rax, rax
je 0x14003c39c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140044fb0
mov rbp, rdi
xor ecx, ecx
call fcn.1400389b4
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 0x140040ec4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140040eda
mov al, 1
jmp 0x140040f3a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140040eeb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140040f38
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003c820
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140040f38
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140040f38
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140040f38
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140040f3a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180010600
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x18001065a
mov r11b, 0x23
lea rbx, [0x18006e020]
movzx edi, byte [r10]
dec rdx
inc r10
cmp dil, r11b
jne 0x180010644
cmp rdx, 2
jb 0x180010644
cmp byte [r10], r11b
jne 0x180010644
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rdi
shr r9d, 8
xor r9d, dword [rbx + rcx*4]
test rdx, rdx
jne 0x180010622
jmp 0x18001069b
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x18001069b
mov r11b, 0x23
lea rbx, [0x18006e020]
cmp dl, r11b
jne 0x18001067f
cmp byte [r10], r11b
jne 0x18001067f
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rbx + rcx*4]
test dl, dl
jne 0x18001066d
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret

Function at 0x180010808
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x180010829
and qword [r8], 0
lea rdx, [0x18006db20]
call fcn.1800106ac
mov rbx, rax
test rax, rax
je 0x1800108ec
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x1800108e3
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1800108e3
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1800108e3
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1800108e3
mov rsi, rdi
cmp rdi, 0xffffffffffffffff
je 0x1800108e3
mov rcx, rdi
call fcn.1800136d0
mov rdi, rax
test rax, rax
je 0x1800108e3
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rsi
je 0x1800108d0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rdi
call fcn.180013718
jmp 0x1800108ec
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x1800108de
mov qword [r14], rsi
mov rax, rdi
jmp 0x1800108ee
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret