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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1c0]
add rdx, 0x628
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x14004dca8
cmp qword [rdx + 0xb8], 0
je 0x14004dca8
xor r9d, r9d
mov qword [rsp + 0x30], rdi
lea r8, str.REST__d
call fcn.14006af90
mov edi, eax
test eax, eax
jne 0x14004dc9d
mov dl, reloc.WLDAP32.dll_Ordinal_26
mov rcx, rbx
call fcn.14004bf90
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.14004d7f0

Function at 0x14004e170
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 0x14004e1b2
lea rdx, str.Couldnt_set_desired_mode
call fcn.140026790
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 0x14004e1c9
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.140026880
cmp sil, 0x13
jne 0x14004e1e6
mov rdx, rbp
mov rcx, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
jmp fcn.14004de80
cmp sil, 0x14
jne 0x14004e32a
cmp byte [rbx + 0x6f8], 2
mov qword [rsp + 0x58], r14
mov r14, qword [rbx + 0x20]
jne 0x14004e26d
mov rax, qword [rbx + 0x1c0]
mov rcx, qword [rax]
test rcx, rcx
je 0x14004e26d
xor r9d, r9d
mov qword [rsp + 0x50], rdi
lea r8, [rsp + 0x50]
mov dword [rsp + 0x20], 3
xor edx, edx
call fcn.14002ec10
mov esi, eax
test eax, eax
jne 0x14004e316
mov rcx, qword [rsp + 0x50]
mov edx, Ordinal_50
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x14004e262
mov rdi, qword [rsp + 0x50]
mov ecx, 1
sub rax, rdi
cmovne rcx, rax
mov byte [rcx + rdi], sil
jmp 0x14004e26d
mov rcx, qword [rsp + 0x50]
call qword [case.0x140019a65.0]
mov rdx, qword [rbx + 0x800]
test rdx, rdx
jne 0x14004e292
cmp byte [rbx + 0x1299], 0
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x14008253c]
test rdi, rdi
mov r9, r8
lea rax, [0x140074d24]
cmovne r9, rdi
lea rcx, [0x14007571c]
cmovne r8, rax
call fcn.14002cd10
mov rcx, rdi
mov rbp, rax
call qword [case.0x140019a65.0]
test rbp, rbp
jne 0x14004e2e4
mov r14, qword [rsp + 0x58]
mov esi, reloc.WLDAP32.dll_Ordinal_27
mov eax, esi
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
lea rdx, [r14 + 0x628]
mov r9, rbp
lea r8, [0x140073064]
mov rcx, rbx
call fcn.14006af90
mov rcx, rbp
mov esi, eax
call qword [case.0x140019a65.0]
test esi, esi
jne 0x14004e316
mov dl, Ordinal_32
mov rcx, rbx
call fcn.14004bf90
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 0x14004e335
mov r8b, reloc.WS2_32.dll_listen
jmp 0x14004e33e
cmp sil, 0x16
jne 0x14004e34a
mov r8b, ntohs
mov dl, 1
mov rcx, rbx
call fcn.14004d9b0
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov eax, edi
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x140059db0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x14008ec40]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x140059e18
mov r9d, 2
mov dword [rsp + 0x20], 3
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.140061c80
test al, al
je 0x140059e0c
mov dword [0x14008ec40], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x14008ec40], 1
jmp 0x140059e1d
cmp eax, 2
je 0x140059e6f
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140059e4e
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x140059e6f
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret

Function at 0x14005aa00
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x150
mov rax, qword [0x14008e7c0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rax, qword [rcx]
mov rsi, r9
mov rdi, rcx
mov rbp, r8
mov r14, qword [rax + 0x10]
mov dword [r9], 0
xor r9d, r9d
mov rcx, qword [r14 + 0x98]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
jne 0x14005aaa3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x14005aa67
mov dword [rsi], 0x51
jmp 0x14005aa9c
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, ebx
call fcn.14000e5a0
mov rcx, qword [rdi + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call fcn.140026790
mov rax, qword [rdi + 8]
mov dword [rax + 0xc8c], ebx
mov dword [rsi], Ordinal_60
mov rbx, 0xffffffffffffffff
mov edx, dword [rsi]
lea r8, str.nw_in_read_len_zu__fd_qd______d__err_d
mov rcx, qword [rdi + 8]
mov r9, rbp
mov dword [rsp + 0x30], edx
mov rdx, qword [r14 + 0x98]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdx
mov rdx, qword [rdi]
call fcn.1400268d0
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14006ef50
add rsp, 0x150
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14005aaf0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x14008e7c0]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rbx, qword [rcx + 0x10]
mov rsi, rdx
mov r9, qword [rbx + 0x98]
cmp r9, 0xffffffffffffffff
je 0x14005ac40
mov rax, qword [rdx + 0x20]
mov rcx, qword [rax + 0x360]
test dword [rcx + 0x8c], 0x800
jne 0x14005ac40
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
mov rcx, r9
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14005abce
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.14000e5a0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.140026790
mov eax, 2
jmp 0x14005ac42
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x140]
lea r8, [rbx + 0x10e]
lea rcx, [rsp + 0x30]
call fcn.140028f60
test al, al
jne 0x14005ac40
mov qword [rsp + 0x1e0], rdi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.14000e5a0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140026790
mov rdi, qword [rsp + 0x1e0]
mov eax, 2
jmp 0x14005ac42
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14006ef50
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rsi
ret
Function at 0x14006c620
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 0x14006c65b
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x14006c659
mov byte [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14006db90
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 [section..data]
mov rbx, rax
test rax, rax
jne 0x14006dbd3
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 0x14006dc20
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 0x14006dc82
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 0x14006dc40
lea rdi, [rbp + 8]
mov eax, dword [rbp + 0x1c]
cmp r14, rax
jae 0x14006dcc1
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1400821b9]
mov r8d, 1
call qword [rdi]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400821ba]
mov r8d, 1
call qword [rdi]
mov eax, dword [rbp + 0x1c]
inc r14
cmp r14, rax
jb 0x14006dc90
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 0x14006deb0
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 [0x14008e7c0]
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, Ordinal_27
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14006defc
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14006dfcf
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 0x14006df40
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov qword [rsp + 0x38], 0
jmp 0x14006dfcf
mov rcx, rbp
call fcn.14002a5a0
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 0x14006dfab
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 0x14006dfbb
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14006dfcd
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14006ef50
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x14006ed90
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x14006edf5
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 0x14006eda0
ret
Function at 0x14006ee00
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 [0x14008e7c0]
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_CryptAcquireContextA]
test eax, eax
je 0x14006ee83
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 0x14006eea5
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.14006ef50
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
call fcn.14002a5a0
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 0x14006ef04
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 0x14006ef14
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14006ef26
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x14006ee88

Function at 0x14006fd5c
Capabilities:
Parse pe header

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

Function at 0x14006ffa0
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 0x14006ffda
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14006ffdf
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 0x140070028
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 0x140070028
dec r8
sub rdx, 1
jne 0x14007000e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14012e8b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov eax, 0xde8
mov word [rsp + 0x24], ax
mov byte [rsp + 0x20], 0x25
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x28], al
cmp byte [rsp + 0x28], 0x25
je 0x14012e8fd
cmp byte [rsp + 0x28], 0x5d
je 0x14012e8e4
jmp 0x14012e94a
call fcn.14012ca40
movabs rax, 0x574f676e7c43614e
mov qword [rsp + 0xb0], rax
jmp 0x14012e94a
movsx eax, byte [rsp + 0x20]
cmp eax, 0x76
jne 0x14012e94a
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x2c], al
cmp byte [rsp + 0x2c], 0x31
je 0x14012e920
cmp byte [rsp + 0x2c], 0x6b
je 0x14012e93e
jmp 0x14012e94a
lea rcx, [rsp + 0x50]
call qword [sym.imp.COMDLG32.dll_FindTextW]
mov qword [rsp + 0x38], rax
movsx eax, byte [rsp + 0x20]
add eax, 3
mov byte [rsp + 0x20], al
jmp 0x14012e94a
movsx eax, byte [rsp + 0x20]
sub eax, 0x22
mov byte [rsp + 0x20], al
movzx eax, word [rsp + 0x24]
and eax, 0x93
mov word [rsp + 0x24], ax
movzx eax, word [rsp + 0x24]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x8d8
je 0x14012e970
jmp 0x14012e97c
movsx eax, byte [rsp + 0x20]
xor eax, 0x25
mov byte [rsp + 0x20], al
movzx eax, word [rsp + 0x24]
cmp eax, 0xf35
je 0x14012e9a3
call fcn.14012ca40
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
mov dword [rsp + 0x34], eax
jmp 0x14012e9c0
movzx eax, word [rsp + 0x24]
shl eax, 9
mov word [rsp + 0x24], ax
mov edx, 0x6b
mov ecx, 0xca
call fcn.14012d3c0
nop
mov eax, 0x56
add rsp, 0xa8
ret

Function at 0x14012f1c0
Capabilities:
Parse pe header

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

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

Function at 0x140132824
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140132620
Function at 0x140135280
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 0x140135307
mov rsi, rbx
cmp word [rax], bp
je 0x1401352c6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401352b0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401352ac
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140135ca0
mov rdi, rax
test rax, rax
je 0x1401352f4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14013abf0
mov rbp, rdi
xor ecx, ecx
call fcn.140133f48
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 0x14013a450
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14013a478
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14013a478
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800026a8
Capabilities:
Encode data using xor

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, 0x30
lea edi, [r8 - 0x2e29]
mov ebp, r8d
xor ebp, 0xd89
lea r14d, [r9 - 0x7ca]
mov rbx, rdx
mov esi, edi
lea eax, [rbp - 0x33e]
cmp edi, eax
je 0x18000275d
mov edx, edi
lea eax, [rdi + 0x283c]
xor edx, 0x24a8
mov dword [rsp + 0x20], eax
lea r9d, [rdi + 0x2677]
lea r8d, [rdi + 0x1746]
lea rcx, [0x180052010]
call fcn.180001a40
add ebp, 0x769
cmp dword [rbx + 0x110], 0xa909
jbe 0x180002742
mov eax, dword [rbx + 0x13c]
mov ecx, dword [rbx + 0xb8]
add ecx, 0xb4f4
imul eax, ecx
mov dword [rbx + 0x13c], eax
jmp 0x18000277d
mov ecx, dword [0x180052094]
mov rax, qword [section..data]
xor ecx, 0xee97d
mov dword [rax + 0x13c], ecx
jmp 0x18000277d
mov eax, dword [0x18005207c]
or eax, esi
cmp dword [0x1800520c8], eax
jb 0x18000277d
mov rax, qword [section..data]
mov ecx, dword [rax + 0x28]
imul ecx, r14d
or esi, ecx
lea eax, [rdi + 0x24a8]
cmp ebp, eax
jle 0x18000288b
lea eax, [rdi + 0x1a7d]
cmp r14d, eax
je 0x1800027fc
mov eax, dword [0x180052044]
cmp dword [rbx + 0xf4], eax
je 0x1800027b7
mov eax, dword [rbx + 0x90]
sub eax, 0x4ad5
xor dword [0x18005210c], eax
jmp 0x1800027c8
mov eax, dword [rbx + 0x30]
sub eax, dword [0x1800520e0]
add eax, 0x27dd6
add dword [rbx + 0x34], eax
mov eax, edi
mov r9d, edi
xor r14d, 0x3c1a
mov ecx, edi
xor eax, 0x1746
xor r9d, 0x1ea5
xor ecx, 0x24a8
mov dword [rsp + 0x20], eax
mov r8, rbx
mov edx, r14d
call fcn.180003b08
jmp 0x18000288b
mov rax, qword [section..data]
mov r14d, dword [rax + 0x94]
mov eax, dword [0x1800520ec]
or eax, ebp
imul eax, dword [rbx + 0x3c]
cmp r14d, eax
jne 0x18000288b
xor esi, 0x2062
sub esi, edi
mov eax, dword [rbx + 0x90]
lea r8, [0x180052010]
sub eax, dword [rbx + 0x13c]
mov r9d, dword [rbx + 0xcc]
or r9d, dword [0x1800520fc]
mov ecx, dword [rbx + 0xe0]
xor ecx, dword [rbx + 0x138]
imul edx, eax, 0x2677
or ecx, 0x1ea5
mov rax, qword [section..data]
imul r9d, dword [rax + 0xf0]
mov dword [rsp + 0x20], edx
mov edx, esi
call fcn.180003b08
mov eax, dword [0x1800520ec]
add r14d, 4
or eax, ebp
imul eax, dword [rbx + 0x3c]
cmp r14d, eax
je 0x180002823
mov rbx, qword [rsp + 0x40]
lea eax, [rdi + 0x2189]
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret