joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140114530
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b8]
add rdx, 0x680
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x140114588
cmp qword [rdx + 0xb8], 0
je 0x140114588
xor r9d, r9d
mov qword [rsp + 0x30], rdi
lea r8, str.REST__d
call fcn.14012c860
mov edi, eax
test eax, eax
jne 0x14011457d
mov dl, 0x1a
mov rcx, rbx
call fcn.140112890
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1401140d0

Function at 0x140114a40
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rbp, qword [rcx + 0x20]
lea eax, [rdx - 0xc8]
xor edi, edi
movzx esi, r8b
mov rbx, rcx
cmp eax, 0x64
jb 0x140114a82
lea rdx, str.Couldnt_set_desired_mode
call fcn.1400e83f0
mov eax, reloc.WS2_32.dll_recvfrom
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
cmp edx, 0xc8
je 0x140114a99
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.1400e84e0
cmp sil, 0x13
jne 0x140114ab6
mov rdx, rbp
mov rcx, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
jmp fcn.140114750
cmp sil, 0x14
jne 0x140114bfa
cmp byte [rbx + 0x6f0], 2
mov qword [rsp + 0x58], r14
mov r14, qword [rbx + 0x20]
jne 0x140114b3d
mov rax, qword [rbx + 0x1b8]
mov rcx, qword [rax]
test rcx, rcx
je 0x140114b3d
xor r9d, r9d
mov qword [rsp + 0x50], rdi
lea r8, [rsp + 0x50]
mov dword [rsp + 0x20], 3
xor edx, edx
call fcn.1400f3e90
mov esi, eax
test eax, eax
jne 0x140114be6
mov rcx, qword [rsp + 0x50]
mov edx, 0x2f
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x140114b32
mov rdi, qword [rsp + 0x50]
mov ecx, 1
sub rax, rdi
cmovne rcx, rax
mov byte [rcx + rdi], sil
jmp 0x140114b3d
mov rcx, qword [rsp + 0x50]
call qword [fcn.140139ca5]
mov rdx, qword [rbx + 0x7f8]
test rdx, rdx
jne 0x140114b62
cmp byte [rbx + 0x12a9], 0
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x14015ac07]
test rdi, rdi
mov r9, r8
lea rax, [0x140161690]
cmovne r9, rdi
lea rcx, [0x140143034]
cmovne r8, rax
call fcn.1400eed50
mov rcx, rdi
mov rbp, rax
call qword [fcn.140139ca5]
test rbp, rbp
jne 0x140114bb4
mov r14, qword [rsp + 0x58]
mov esi, 0x1b
mov eax, esi
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
lea rdx, [r14 + 0x680]
mov r9, rbp
lea r8, [0x14015f18c]
mov rcx, rbx
call fcn.14012c860
mov rcx, rbp
mov esi, eax
call qword [fcn.140139ca5]
test esi, esi
jne 0x140114be6
mov dl, 0x1f
mov rcx, rbx
call fcn.140112890
mov r14, qword [rsp + 0x58]
mov eax, esi
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
cmp sil, 0x15
jne 0x140114c05
mov r8b, reloc.WS2_32.dll_listen
jmp 0x140114c0e
cmp sil, 0x16
jne 0x140114c1a
mov r8b, ntohs
mov dl, 1
mov rcx, rbx
call fcn.140114290
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov eax, edi
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x14011c760
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x14017e7c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, r8
mov rsi, rdx
mov r13, rcx
cmp r8, 4
jb 0x14011c8fe
inc rsi
lea rdx, str.0123456789abcdefABCDEF:.
mov rcx, rsi
sub rdi, 2
call sub.api_ms_win_crt_string_l1_1_0.dll_strspn
cmp rdi, rax
je 0x14011c86d
cmp byte [rsi + rax], 0x25
lea r14, [rsi + rax]
mov rdi, rax
jne 0x14011c8fe
mov r8d, 2
lea rdx, [0x14014c354]
lea rcx, [r14 + 1]
xor ebp, ebp
lea rbx, [r14 + 1]
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
jne 0x14011c7f4
movzx eax, byte [r14 + 3]
lea rcx, [r14 + 3]
test al, al
je 0x14011c7f4
cmp al, 0x5d
cmovne rbx, rcx
movzx edx, byte [rbx]
test dl, dl
je 0x14011c8fe
mov rax, rbp
movzx ecx, dl
cmp dl, 0x5d
je 0x14011c826
cmp rax, 0xf
jge 0x14011c826
inc rbx
mov byte [rsp + rax + 0x20], cl
inc ebp
inc rax
movzx ecx, byte [rbx]
movzx edx, cl
test cl, cl
jne 0x14011c805
test ebp, ebp
je 0x14011c8fe
cmp byte [rbx], 0x5d
jne 0x14011c8fe
movsxd rax, ebp
cmp rax, 0x10
jae 0x14011c91f
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x20], 0
call qword [case.0x1400e3462.1]
mov qword [r13 + 0x28], rax
test rax, rax
jne 0x14011c867
mov eax, 7
jmp 0x14011c903
mov word [r14], 0x5d
lea r8, [rsp + 0x20]
mov byte [rdi + rsi], 0
mov rdx, rsi
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x14011c8fe
mov r9d, 0x2e
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov ecx, reloc.WS2_32.dll_socket
call sub.WS2_32.dll_inet_ntop
test rax, rax
je 0x14011c8f6
lea rax, [rsp + 0x30]
mov rdx, 0xffffffffffffffff
inc rdx
cmp byte [rax + rdx], 0
jne 0x14011c8b4
cmp rdx, rdi
jae 0x14011c8f6
lea rax, [rsp + 0x30]
mov r8, rsi
sub r8, rax
lea rcx, [rsp + 0x30]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [r8 + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14011c8e0
mov rdi, rdx
mov byte [rdx + rsi + 1], al
mov byte [rdi + rsi], 0x5d
xor eax, eax
jmp 0x14011c903
mov eax, socket
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401386b0
add rsp, 0x70
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.140138b60
int3
Function at 0x140128790
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
push r15
sub rsp, 0x180
mov rax, qword [0x14017e7c0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor ebp, ebp
xor ebx, ebx
call fcn.1400ffea0
mov r13, rax
test rax, rax
jne 0x140128810
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1400cf250
mov r9, rax
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1400e83f0
xor ecx, ecx
mov ebx, 0x4d
call qword [fcn.140139ca5]
jmp 0x1401289c8
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov r8d, 1
mov dword [rsp + 0x20], 3
mov rcx, r13
mov qword [rsp + 0x170], r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140128886
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1400cf250
mov r9, rax
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1400e83f0
xor ecx, ecx
mov ebx, 0x4d
jmp 0x1401289b2
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1401288cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1400cf250
mov r9, rax
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1400e83f0
mov ebx, 0x4d
jmp 0x1401289a6
mov qword [rsp + 0x178], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x140128904
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.1400e83f0
mov ebx, 0x4d
jmp 0x14012899e
lea rcx, [rdi + 1]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
jne 0x140128920
mov ebx, 0x1b
jmp 0x14012899e
mov qword [rsp + 0x1c8], rsi
test rdi, rdi
je 0x140128978
nop dword [rax]
mov r8d, edi
mov dword [rsp + 0x40], 0
sub r8d, ebx
mov esi, ebx
lea rdx, [rbx + rbp]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401289ea
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x14012896f
mov edi, esi
jmp 0x140128971
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x140128930
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rdi
mov byte [rdi + rbp], 0
mov rdx, rbp
mov qword [rsp + 0x20], r15
call fcn.140128500
mov ebx, eax
mov rsi, qword [rsp + 0x1c8]
mov rdi, qword [rsp + 0x178]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [fcn.140139ca5]
mov rcx, r13
call fcn.140139ca5
mov r14, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1401386b0
add rsp, 0x180
pop r15
pop r13
pop r12
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1400cf250
mov r9, rax
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1400e83f0
mov ebx, 0x4d
jmp 0x140128996
Function at 0x14012ddc0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rbx, edx
mov rdi, rcx
mov edx, ebx
mov byte [rcx], 0
call qword [sym.imp.WS2_32.dll_gethostname]
mov byte [rbx + rdi - 1], 0
test eax, eax
jne 0x14012ddfb
mov edx, 0x2e
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x14012ddf9
mov byte [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14012f2a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov rsi, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x14012f2e3
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rdi
mov qword [rbx + 0x10], rax
lea rdi, [rbp + 8]
mov qword [rsp + 0x50], r14
cmp r15d, dword [rbp + 0x1c]
jbe 0x14012f330
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, rsi
call qword [rdi]
mov esi, dword [rbp + 0x18]
add rsi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rsi
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor r14d, r14d
test r15, r15
je 0x14012f392
mov r14, r15
nop dword [rax]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rdi]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea rsi, [rsi + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rdi]
sub r15, 1
jne 0x14012f350
lea rdi, [rbp + 8]
mov eax, dword [rbp + 0x1c]
cmp r14, rax
jae 0x14012f3d1
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x14014fc31]
mov r8d, 1
call qword [rdi]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x14014fc32]
mov r8d, 1
call qword [rdi]
mov eax, dword [rbp + 0x1c]
inc r14
cmp r14, rax
jb 0x14012f3a0
mov r14, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
Function at 0x14012f5c0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14017e7c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, r8
mov dword [rsp + 0x20], 0xf0000040
mov rsi, rdx
mov rdi, rcx
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14012f60c
mov eax, 0x1b
jmp 0x14012f6df
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14012f650
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov qword [rsp + 0x38], 0
jmp 0x14012f6df
mov rcx, rbp
call fcn.1400ec540
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov edx, 2
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x20
jne 0x14012f6bb
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rdi
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14012f6cb
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14012f6dd
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401386b0
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x1401304a0
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x140130505
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
test r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x1401304b0
ret
Function at 0x140130510
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14017e7c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, r8
mov dword [rsp + 0x20], 0xf0000040
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
lea rcx, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x38], rbp
xor edx, edx
mov qword [rsp + 0x40], rbp
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140130593
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1401305b5
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401386b0
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
call fcn.1400ec540
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], ebp
mov edx, 2
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x10
jne 0x140130614
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rbx
mov dword [rsp + 0x20], ebp
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140130624
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140130636
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x140130598
Function at 0x140137e84
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140137ebe
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140137ec3
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140137f0c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140137f0c
dec r8
sub rdx, 1
jne 0x140137ef2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140138574
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140137f24
mov ebx, eax
test eax, eax
jne 0x1401385a4
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140138607
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401385fe
test al, 0x10
je 0x1401385fe
bt eax, 0xa
jae 0x1401385f7
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140138618
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1401385f3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1401385f3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x1401385fe
and dword [rsp + 0x3c], 0
jmp 0x140138603
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1401394ec
Capabilities:
Parse pe header

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

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18002a3ec
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 0x18002a45b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18002a45b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18002a45b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18002a45b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18002a45b
cmp dword [rcx + 0x84], 0xe
jbe 0x18002a45b
cmp dword [rcx + 0xf8], 0
je 0x18002a45b
mov ecx, ebx
call fcn.18002a324
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.18002a580
nop
cmp dword [rbp + 0x20], 0
je 0x18002a4a9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18002a3b8
int3

Function at 0x18002bdd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18002bdf8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18002bdf8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180031ef0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180031f20
xor eax, eax
jmp 0x180031fe3
mov rbp, rbx
cmp word [rax], si
je 0x180031f45
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180031f2c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180031f28
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180031e10
movsxd r14, eax
test eax, eax
jne 0x180031f83
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180031f19
mov rcx, r14
call fcn.18002fd70
mov rdi, rax
test rax, rax
jne 0x180031f9c
xor ecx, ecx
call fcn.18002f310
jmp 0x180031f78
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180031e10
test eax, eax
jne 0x180031fcd
mov rcx, rdi
call fcn.18002f310
jmp 0x180031fd7
xor ecx, ecx
call fcn.18002f310
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1800bc302
Capabilities:
Manually build aes constants

Disassembly:
lea rcx, [rsp + rcx + 8]
movsx r8d, dl
mov qword [rsp + rdi - 0x97a9], rax
mov dword [rcx + rdx*8 - 0x7f8], r11d
shr dword [rsp + rdx*2 - 0x1fd], 0x41
jl 0x1800c1220
adc eax, 0x719f402b
mov edi, dword [r10 + rax - 0x719f4030]
ror rax, 0xb5
sar dword [rsp + rdx*2 - 0x1fa], 0x61
imul rdx, rax
xor edi, r9d
mov ecx, 0x43052715
sar bp, 0x81
push rax
add edi, r8d
ror edi, 2
sub word [rsp + rcx - 0x43052714], cx
xor qword [rsp + rcx - 0x4305270d], rdx
xor edi, 0xc7332a8b
ror eax, cl
sal dword [rsp + rax*2 - 0x15800f96], 0xad
neg rbp
ror edi, 3
neg al
sbb qword [rsp + rax*2 - 0x15800e5f], 0xffffffffde3c3282
cwde
mov qword [rsp + rax - 0x728], r9
mul qword [rsp + rax*2 - 0xe60]
not r8w
xor dword [rsp + rcx - 0x4305270d], edi
movzx r9d, cl
dec edx
cdqe
mov r9, qword [rsp + rax - 0x55b3fff8]
idiv eax
movsxd rdi, edi
movsx r11d, ax
add rsi, rdi
ror eax, cl
movzx eax, byte [rcx + r10 - 0x4305271b]
bswap rbp
lea r8, [r8*4 + 0x73207d29]
xor al, r9b
shl word [rsp + rcx - 0x4305270f], 0xa7
sbb al, bpl
xor al, r11b
not edx
push rdx
add al, 0x9f
sar word [rsp + rdx - 0x5497fffc], 0xce
shl rbp, 4
or bpl, 0x8c
neg al
btc rcx, 0x24
xor r9b, al
xchg bpl, cl
xadd ecx, edx
mov word [rdx + rbx - 0x430527fa], ax
jae 0x1801096e7
xor word [rsp + rax - 0x1da043b], 0xcfb2
xchg dword [rsp + rax*2 - 0x3b40881], eax
mov eax, dword [rax + r10 - 0x2fc4bf7]
dec dl
sar bp, 0x29
bswap r11
xor eax, r9d
xadd r8w, r11w
sbb edx, r11d
not cl
not eax
push rbp
ror eax, 2
rol r8d, 0x81
add dil, dil
sal cl, 0x63
xor eax, 0x9b200b2c
sub eax, 0x94036231
push rdi
neg eax
shr cl, 0x21
bt rdi, 0x3f
xor ecx, dword [rsp + rdi - 0x7bbbbbe9]
mov qword [rsp + r8*8 - 0xbbfffe8], r9
dec byte [rsp + r8*2 - 0x2efffe9]
add word [rsp + rdi - 0x7bbbbbfa], dx
xor dword [rsp + r8 - 0x177ffe8], eax
xor qword [rsp + rdi - 0x7bbbbbf1], r8
xor r8d, 0x9c153307
xchg qword [rsp + rbp*2 + 9], rbp
mov r9, qword [rsp + rdi - 0x7bbbbbe8]
movsxd rax, eax
shl r11w, cl
mov word [rsp + rdi - 0x7bbbbbf3], 0xfc2a
adc rsi, rax
rol dx, 0x86
movsx eax, byte [rsp + rdi - 0x7bbbbbed]
pop rcx
pop rbp
pop rdi
pop rbp
jae fcn.18011a82f
inc dl
mov eax, edx
movzx edi, byte [r10 + rax - 0x43052804]
adc dl, byte [rsp + rdx - 0x430527f1]
cbw
lea r10, [r10 + rdx - 0x430527b2]
mov qword [rsp + rdx - 0x4305279b], rdx
sbb dx, 0x5907
xor dil, r9b
add dil, 0x1d
xor dil, 0xb7
xor dil, r11b
ror dil, 1
ror bp, 0xea
xor r9b, dil
lea rdi, [rsp + rdi + 0x18]
pop rax
cdq
add dl, byte [rdx + rdi]
cwde
and cl, 0xae
mov word [rbx + riz], dx
cmova rcx, rbp
push rbp
mul bpl
pop rax
pop rdx
pop rdi
jmp rsi
Function at 0x1801d5fb4
Capabilities:
Execute anti-debugging instructions

Disassembly:
shr eax, 8
push 0x6730929e
sub byte [rsp + 0x2b], 9
xor eax, r10d
inc rdi
xor eax, 0x6d32f3a9
shr word [rsp + 2], 0x2d
dec r11
push 0x252a3d07
lea rsp, [rsp + 0x40]
jne 0x1801f72ac
mov ebp, 0x26989fb6
lea r8, [rbp + 0x5b8a6908]
call fcn.18023c925
mov r10d, 0xc0b0708a
or r10b, r10b
movzx r10d, byte [rdi + riz]
push 0x26aa0b00
jbe 0x180237255
push 0xffffffffc532b9b9
xor r10d, eax
add dword [rsp + 0xc], 0x76adafa2
call fcn.1801ffb21
mov r11d, 0x3297bb27
jmp 0x180227d56
rdtsc
movsx ecx, r11w
inc r11d
lea rbx, [rbx + r11 - 0x3297bb30]
movsx ebp, cl
lea r11, [r11*8 + 0x720e9aa4]
mov dword [rbx + rbp*8 - 0x134], eax
mov edi, 0x552bb3b6
xor rcx, r11
mov dword [rbx + rbp - 0x27], edx
or di, di
btc ecx, r11d
lea r10, [r10 + rdi - 0x552bb3ba]
inc edi
mov eax, 0xf993772c
mov eax, dword [r10 + rbp*2 - 0x4e]
cmovle rdi, rbp
btr cx, di
xor eax, r9d
ror eax, 1
mov edx, ecx
xor eax, 0x68565b6
call fcn.180224329
adc al, byte [rbx + rdi - 0x43]
lea rbx, [rbx + rdi*2 - 0x8c]
pop r11
mov qword [rsp + rdx*8 + 8], r8
pop rdx
mov byte [rcx + rdi - 0x4b], al
call fcn.18021d8f7