joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800137a0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rcx, [0x180041c50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, str.psapi.dll
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, str.kernel32.dll
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rbx, rbx
je 0x180013899
test rax, rax
je 0x180013899
test rdi, rdi
je 0x180013899
lea rdx, str.QueryFullProcessImageNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180059a40], rax
test rax, rax
jne 0x18001383c
lea rcx, str.Psapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x180013899
lea rdx, str.GetProcessImageFileNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180059a48], rax
test rax, rax
je 0x180013899
lea rdx, str.GetProcessImageFileNameW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180059a48], rax
test rax, rax
je 0x180013899
lea rdx, str.GetRawInputData
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x180059a58], rax
test rax, rax
je 0x180013893
lea rdx, str.RegisterRawInputDevices
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180059a50], rax
test rax, rax
jne 0x1800138a6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180013a60
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
xor eax, eax
movzx ebx, cx
mov edi, edx
mov qword [rsp + 0x30], rax
xor edx, edx
mov ecx, ebx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x30], eax
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
mov r8d, 0x28
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x38], 0
lea ecx, [r8 - 0x27]
mov word [rsp + 0x2a], ax
mov word [rsp + 0x28], bx
mov dword [rsp + 0x2c], edi
call qword [sym.imp.USER32.dll_SendInput]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x180013de0
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Get file attributes
Query environment variable
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x420
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x400
xor ebx, ebx
call fcn.180029f20
lea rdx, [rsp + 0x20]
lea rcx, [0x180041cc8]
mov r8d, 0x3ff
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov rcx, qword [0x180058458]
lea r8, [0x180041cd8]
lea edx, [rbx + 0x65]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
jne 0x180013e4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x440]
add rsp, 0x420
pop rdi
ret
mov rcx, qword [0x180058458]
mov rdx, rax
mov qword [rsp + 0x430], rbp
mov qword [rsp + 0x438], rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rcx, qword [0x180058458]
mov rdx, rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
lea rcx, [rsp + 0x20]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x180013ee6
lea rdx, [0x180041cdc]
lea rcx, [rsp + 0x20]
call fcn.18002c664
mov rdi, rax
test rax, rax
je 0x180013ede
mov r8d, ebp
mov r9, rax
mov edx, 1
mov rcx, rsi
call fcn.18002b2f8
mov rcx, rdi
call fcn.18002a964
jmp 0x180013ee6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, qword [rsp + 0x438]
mov rbp, qword [rsp + 0x430]
mov qword [0x1800586c8], rax
test rax, rax
jne 0x180013f15
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x440]
add rsp, 0x420
pop rdi
ret
Function at 0x18001a1e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rcx
mov qword [rcx + 8], rsi
call fcn.18001a4e0
mov edx, 0x98
mov rcx, rdi
mov dword [rsp + 0x38], eax
call fcn.18001a4c0
mov rbx, rax
test rax, rax
jne 0x18001a236
mov rcx, rdi
call fcn.18001cef0
mov rcx, qword [rdi]
mov dword [rcx + 0x28], 0x38
mov rcx, qword [rdi]
mov dword [rcx + 0x2c], esi
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx]
mov dword [rbx + 0x5c], 0x3b9aca00
lea rax, [fcn.1800199f0]
lea rcx, str.JPEGMEM
mov qword [rbx], rax
lea rax, [fcn.180019840]
mov qword [rbx + 8], rax
lea rax, [fcn.180019910]
mov qword [rbx + 0x10], rax
lea rax, [fcn.180019750]
mov qword [rbx + 0x18], rax
lea rax, [0x18001a0e0]
mov qword [rbx + 0x20], rax
lea rax, [0x18001a030]
mov qword [rbx + 0x28], rax
lea rax, [0x180019e50]
mov qword [rbx + 0x30], rax
lea rax, [0x1800195f0]
mov qword [rbx + 0x38], rax
lea rax, [0x180019480]
mov qword [rbx + 0x40], rax
lea rax, [fcn.180019ce0]
mov qword [rbx + 0x48], rax
lea rax, [0x18001a190]
mov qword [rbx + 0x50], rax
mov eax, dword [rsp + 0x38]
mov dword [rbx + 0x58], eax
mov qword [rbx + 0x68], rsi
mov qword [rbx + 0x78], rsi
mov qword [rbx + 0x60], rsi
mov qword [rbx + 0x70], rsi
mov qword [rbx + 0x80], rsi
mov qword [rbx + 0x88], rsi
mov dword [rbx + 0x90], 0x98
mov qword [rdi + 8], rbx
call fcn.18002de80
test rax, rax
je 0x18001a33d
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, str._ld_c
mov rcx, rax
mov byte [rsp + 0x30], 0x78
call fcn.18002deec
test eax, eax
jle 0x18001a33d
movzx eax, byte [rsp + 0x30]
sub al, 0x4d
test al, 0xdf
jne 0x18001a330
imul eax, dword [rsp + 0x38], 0x3e8
jmp 0x18001a334
mov eax, dword [rsp + 0x38]
imul eax, eax, 0x3e8
mov dword [rbx + 0x58], eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x18002d688
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.18002d4f0
Function at 0x1406e50b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406e5237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406e50e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406e50c7
add dl, dl
jne 0x1406e50ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406e514e
xor eax, eax
add dl, dl
jne 0x1406e50fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406e5205
add dl, dl
jne 0x1406e510e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406e511b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406e5128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406e5135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406e5142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406e50d6
mov eax, 1
add dl, dl
jne 0x1406e515e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406e516b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406e5153
sub eax, ebx
mov ebx, 1
jne 0x1406e51a4
mov ecx, 1
add dl, dl
jne 0x1406e5186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406e5193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406e517b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406e50d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406e51c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406e51cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406e51b5
cmp eax, 0x7d00
jae 0x1406e51f3
cmp eax, 0x500
jb 0x1406e51ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406e50d6
cmp eax, 0x7f
ja 0x1406e51f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406e50d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406e522a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406e50d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x2fc4d2e10
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d3812
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f6108]
test eax, eax
je 0x2fc4d38aa
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f6110]
mov qword [rbp - 8], rax
jmp 0x2fc4d388e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d3882
cmp qword [rbp - 0x10], 0
je 0x2fc4d3882
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d3848
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d38ab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d39b0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d39d8
mov eax, 0
jmp 0x2fc4d3a26
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d3a01
mov eax, 0
jmp 0x2fc4d3a26
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d3a21
mov eax, 0
jmp 0x2fc4d3a26
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d3a2c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d3aaa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d3aa1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d3aa1
mov rax, qword [rbp - 8]
jmp 0x2fc4d3abf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d3a74
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400030a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400030d4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400030c0
ret
Function at 0x140009ad0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140009b9c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140009b9c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140009bb5
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x140009b8c
cmp byte [rax], 0x5c
jne 0x140009b86
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140009b86
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140009b72
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140009b83
test r8b, 0x10
jne 0x140009b86
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140009b86
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.14000c590
test edi, edi
jne 0x140009af0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
mov rcx, rbx
call fcn.14000af10
int3
Function at 0x14000f570
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 0x14000f5aa
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000f5af
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 0x14000f5f8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140011f40]
cmp byte [rcx + rax], 0
je 0x14000f5f8
dec r8
sub rdx, 1
jne 0x14000f5de
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140010310
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001035a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001035a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001035a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001035a
cmp dword [rcx + 0x84], 0xe
jbe 0x14001035a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001035c
xor al, al
add rsp, 0x28
ret
Function at 0x1407113c8
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14071154f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1407113f9
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407113df
add dl, dl
jne 0x140711406
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140711466
xor eax, eax
add dl, dl
jne 0x140711415
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14071151d
add dl, dl
jne 0x140711426
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140711433
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140711440
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14071144d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14071145a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407113ee
mov eax, 1
add dl, dl
jne 0x140711476
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140711483
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14071146b
sub eax, ebx
mov ebx, 1
jne 0x1407114bc
mov ecx, 1
add dl, dl
jne 0x14071149e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407114ab
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140711493
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407113ee
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407114d8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407114e5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407114cd
cmp eax, 0x7d00
jae 0x14071150b
cmp eax, 0x500
jb 0x140711506
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407113ee
cmp eax, 0x7f
ja 0x14071150e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407113ee
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140711542
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1407113ee
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140028f50
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x140120408], 0
jne 0x140028f8d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140028f80
mov dword [rdi], eax
mov dword [0x140120410], eax
mov qword [0x140120408], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x14002b770
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r8
mov rsi, rdx
mov bl, byte [rbp + 0x68]
test byte [r9 + 8], 1
jne 0x14002b7ca
mov dl, byte [rbp + 0x60]
movzx ebx, bl
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
mov dword [rsp + 0x28], ebx
mov byte [rsp + 0x20], dl
mov rdx, rsi
mov r8, rdi
call qword [0x140130008]
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
lea r14, [rbp - 0x20]
mov rcx, r9
mov rdx, r14
call fcn.140065cc0
lea rdx, [0x140120df0]
mov rcx, r14
call fcn.1400664d0
mov r14, rax
mov rcx, qword [rbp - 0x20]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
test eax, eax
jne 0x14002b80a
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140130008]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r15, [rbp - 0x20]
mov qword [r15 + 0x10], rax
movaps xmm0, xmmword [0x1400faa70]
movaps xmmword [r15], xmm0
mov rax, qword [r14]
xor bl, 1
movzx ecx, bl
mov rax, qword [rax + rcx*8 + 0x28]
mov rcx, r14
mov rdx, r15
call qword [0x140130008]
movzx r9d, byte [r15 + 0x17]
test r9b, r9b
mov rcx, qword [r15]
mov r8, qword [r15 + 8]
mov rax, r9
cmovs rax, r8
test rax, rax
je 0x14002b8d1
test r9b, r9b
mov rbx, r15
cmovs rbx, rcx
test rdi, rdi
je 0x14002b8b6
mov al, byte [rbx]
movzx eax, al
mov rcx, qword [rdi + 0x30]
cmp rcx, qword [rdi + 0x38]
je 0x14002b8ba
lea rdx, [rcx + 1]
mov qword [rdi + 0x30], rdx
mov byte [rcx], al
cmp eax, 0xffffffff
jne 0x14002b88b
xor edi, edi
mov r9b, byte [rbp - 9]
mov rcx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x18]
inc rbx
test r9b, r9b
mov rax, r15
cmovs rax, rcx
movzx edx, r9b
cmovs rdx, r8
add rdx, rax
cmp rbx, rdx
jne 0x14002b866
jmp 0x14002b8d1
xor edi, edi
jmp 0x14002b897
mov rcx, qword [rdi]
mov r8, qword [rcx + 0x60]
mov rcx, rdi
mov edx, eax
mov rax, r8
call qword [0x140130008]
jmp 0x14002b884
shr r9b, 7
mov qword [rsi], rdi
test r9b, r9b
je 0x14002b7ba
call fcn.140086158
jmp 0x14002b7ba

Function at 0x140033da0
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 0x10
call fcn.14008611c
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x140033e10]
xor ecx, ecx
xor edx, edx
mov r9, rax
call fcn.1400997a4
mov qword [rbx], rax
test rax, rax
je 0x140033df7
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x1400348a0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x140114038]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x140121b48]
test rdi, rdi
jne 0x140034943
mov ecx, 0x48
call fcn.14008611c
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov ecx, 0x18
call fcn.14008611c
mov qword [rsi + 0x10], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x20], rcx
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x18], rcx
lea rax, [rsi + 0x30]
movups xmmword [rsi + 0x30], xmm6
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x40], 1
mov qword [0x140121b48], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140034965
mov rcx, rax
call fcn.1400a5a90
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.140034970
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140087640
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
int3
Function at 0x140034970
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov rsi, rdx
mov rbx, rcx
mov rax, qword [0x140114038]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 3
call fcn.1400447e0
movups xmm0, xmmword [rdi]
movups xmmword [rsi], xmm0
cmp qword [rsi + 8], 0
je 0x140034b6e
movups xmm0, xmmword [rsi]
movups xmmword [rbx], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, str.api_ms_win_downlevel_shell32_l1_1_0.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
mov qword [rsp + 0x20], rax
je 0x140034bc6
lea rdx, [0x1400fdbae]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140034bd9
mov rcx, qword [rsi]
lea rdx, [rsp + 0x4c]
call qword [0x140130008]
mov r12, rax
movsxd rbp, dword [rsp + 0x4c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x40], 0
test rbp, rbp
mov qword [rsp + 0x28], rbx
je 0x140034be1
shl rbp, 3
movabs rax, 0x5555555555555551
cmp rbp, rax
jae 0x140034be8
lea rsi, [rbp*2]
add rsi, rbp
mov rcx, rsi
call fcn.14008611c
mov rbx, rax
mov qword [rsp + 0x30], rax
add rax, rsi
mov qword [rsp + 0x40], rax
xor r15d, r15d
mov rsi, qword [r12 + r15]
mov rcx, rsi
call fcn.1400a5a90
mov rdi, rax
movabs rax, 0x7fffffffffffffef
cmp rdi, rax
ja 0x140034bbe
cmp rdi, 0xb
jae 0x140034ad0
mov byte [rbx + 0x17], dil
test rdi, rdi
je 0x140034acb
cmp rdi, 3
jne 0x140034b2c
movzx eax, word [rsi + 4]
mov word [rbx + 4], ax
mov eax, dword [rsi]
mov dword [rbx], eax
mov r13, rbx
jmp 0x140034b11
lea r14, [rdi + 8]
and r14, 0xfffffffffffffff8
lea rcx, [r14 + r14]
call fcn.14008611c
mov r13, rax
mov qword [rbx], rax
movabs rax, 0x7fffffffffffffef
add rax, 0x11
or rax, r14
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rdi
mov r8, rdi
add r8, rdi
mov rcx, r13
mov rdx, rsi
call fcn.1400890c0
mov word [r13 + rdi*2], 0
add rbx, 0x18
add r15, 8
cmp rbp, r15
jne 0x140034a88
jmp 0x140034b31
mov r13, rbx
jmp 0x140034b00
mov qword [rsp + 0x38], rbx
lea rdx, [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
mov rcx, rsi
call fcn.1400346f0
movups xmmword [rsi], xmm6
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140034b64
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x30]
test rsi, rsi
jne 0x140034b94
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140087640
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp rbx, rsi
je 0x140034bb4
lea rdi, [rbx - 0x18]
cmp byte [rbx - 1], 0
jns 0x140034bac
mov rcx, qword [rbx - 0x18]
call fcn.140086158
mov rbx, rdi
cmp rdi, rsi
jne 0x140034b99
mov rcx, rsi
call fcn.140086158
jmp 0x140034b6e
mov rcx, rbx
call fcn.1400d2c60
mov rcx, qword [rsi]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x140034a24
xor r12d, r12d
jmp 0x140034a27
xor ebx, ebx
jmp 0x140034b36
lea rcx, [rsp + 0x30]
call fcn.1400b9710
int3