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

Disassembly:
xor r10, r10
xor r11, r11
xor r12, r12
cmp r9, 0xd
jne 0x4ef647
mov r10, qword [rcx]
mov r11, qword [rcx + 5]
shr r11, 0x18
mov r12, 1
mov rax, qword [rbp]
mov r15, rax
mul r10
mov r13, rax
mov r14, rdx
mov rax, qword [rbp]
mul r11
imul r15, r12
add r14, rax
adc r15, rdx
mov rax, qword [rbp + 8]
mov r8, rax
mul r10
add r14, rax
adc rdx, 0
mov r10, rdx
mov rax, qword [rbp + 8]
mul r11
add r15, rax
adc rdx, 0
imul r8, r12
add r15, r10
adc r8, rdx
mov r10, r13
mov r11, r14
mov r12, r15
and r12, 3
mov r13, r15
and r13, 0xfffffffffffffffc
mov r14, r8
shrd r15, r8, 2
shr r8, 2
add r10, r13
adc r11, r14
adc r12, 0
add r10, r15
adc r11, r8
adc r12, 0
ret
cmp r9, 0x10
jb 0x4ef6ea
add r10, qword [rcx]
adc r11, qword [rcx + 8]
adc r12, 1
lea rcx, [rcx + 0x10]
sub r9, 0x10
mov rax, qword [rbp]
mov r15, rax
mul r10
mov r13, rax
mov r14, rdx
mov rax, qword [rbp]
mul r11
imul r15, r12
add r14, rax
adc r15, rdx
mov rax, qword [rbp + 8]
mov r8, rax
mul r10
add r14, rax
adc rdx, 0
mov r10, rdx
mov rax, qword [rbp + 8]
mul r11
add r15, rax
adc rdx, 0
imul r8, r12
add r15, r10
adc r8, rdx
mov r10, r13
mov r11, r14
mov r12, r15
and r12, 3
mov r13, r15
and r13, 0xfffffffffffffffc
mov r14, r8
shrd r15, r8, 2
shr r8, 2
add r10, r13
adc r11, r14
adc r12, 0
add r10, r15
adc r11, r8
adc r12, 0
jmp 0x4ef647
cmp r9, 0
je 0x4ef7a3
xor r13, r13
xor r14, r14
xor r15, r15
add rcx, r9
shld r14, r13, 8
shl r13, 8
mov r15b, byte [rcx - 1]
xor r13, r15
dec rcx
dec r9
jne 0x4ef700
add r10, r13
adc r11, r14
adc r12, 1
mov rax, qword [rbp]
mov r15, rax
mul r10
mov r13, rax
mov r14, rdx
mov rax, qword [rbp]
mul r11
imul r15, r12
add r14, rax
adc r15, rdx
mov rax, qword [rbp + 8]
mov r8, rax
mul r10
add r14, rax
adc rdx, 0
mov r10, rdx
mov rax, qword [rbp + 8]
mul r11
add r15, rax
adc rdx, 0
imul r8, r12
add r15, r10
adc r8, rdx
mov r10, r13
mov r11, r14
mov r12, r15
and r12, 3
mov r13, r15
and r13, 0xfffffffffffffffc
mov r14, r8
shrd r15, r8, 2
shr r8, 2
add r10, r13
adc r11, r14
adc r12, 0
add r10, r15
adc r11, r8
adc r12, 0
ret
Function at 0x4fa3c0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov rdx, qword [rax]
xor esi, esi
jmp 0x4fa3e4
movzx edi, byte [rbx + rsi]
movabs r8, 0x100000001b3
imul rdx, r8
inc rsi
xor rdx, rdi
cmp rcx, rsi
jg 0x4fa3cc
mov qword [rax], rdx
mov rax, rcx
xor ebx, ebx
xor ecx, ecx
ret

Function at 0x4fa400
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov rdx, qword [rax]
xor esi, esi
jmp 0x4fa424
movzx edi, byte [rbx + rsi]
xor rdx, rdi
inc rsi
movabs rdi, 0x100000001b3
imul rdx, rdi
cmp rcx, rsi
jg 0x4fa40c
mov qword [rax], rdx
mov rax, rcx
xor ebx, ebx
xor ecx, ecx
ret
Function at 0x140005004
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x14000f948]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x30], 0x114
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1400016e0
mov eax, 0xff
jmp 0x140001883
mov r9d, dword [rsp + 0x3c]
and r9d, 0x7fff
mov edx, dword [rsp + 0x34]
mov ecx, edx
shl ecx, 8
mov eax, dword [rsp + 0x38]
add ecx, eax
mov r8d, dword [rsp + 0x40]
mov dword [0x140010048], r8d
mov dword [0x140010050], ecx
mov dword [0x140010054], edx
mov dword [0x140010058], eax
mov eax, r9d
bts eax, 0xf
cmp r8d, 2
cmove eax, r9d
mov dword [0x14001004c], eax
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140001776
movsxd rax, dword [0x14000003c]
lea rcx, [0x140000000]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140001776
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x140001776
xor ebx, ebx
cmp dword [rax + 0x84], 0xe
jbe 0x140001778
cmp dword [rax + 0xf8], ebx
setne bl
jmp 0x140001778
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov edi, 1
mov ecx, edi
call fcn.140003dc8
test eax, eax
jne 0x1400017ae
cmp dword [0x140010028], 2
je 0x14000179a
call fcn.140003bb0
mov ecx, 0x1c
call fcn.140003bfc
mov ecx, 0xff
call fcn.1400037e0
call fcn.1400036c0
test eax, eax
jne 0x1400017da
cmp dword [0x140010028], 2
je 0x1400017c5
call fcn.140003bb0
mov ecx, 0x10
call fcn.140003bfc
mov ecx, 0xff
call fcn.1400037e0
nop
call fcn.140003e3c
test eax, eax
jns 0x1400017ed
mov ecx, 0x1b
call fcn.1400037fc
call sub.KERNEL32.dll_GetCommandLineW
mov qword [0x140012138], rax
call fcn.14000463c
mov qword [0x140010020], rax
call fcn.1400040cc
test eax, eax
jns 0x140001818
mov ecx, 8
call fcn.1400037fc
call fcn.140004400
test eax, eax
jns 0x14000182b
mov ecx, 9
call fcn.1400037fc
mov ecx, edi
call fcn.140003860
test eax, eax
je 0x14000183d
mov ecx, eax
call fcn.1400037fc
mov r8, qword [0x140010038]
mov qword [0x140010068], r8
mov rdx, qword [0x140010030]
mov ecx, dword [0x14001002c]
call fcn.140001200
mov edi, eax
mov dword [rsp + 0x24], eax
test ebx, ebx
je 0x1400018a4
call fcn.14000384c
jmp 0x140001881
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140001af0
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
mov ecx, eax
call fcn.140003ba0
nop
mov ecx, eax
call fcn.140003770
nop
int3
sub rsp, 0x28
call fcn.1400a2000
add rsp, 0x28
jmp 0x1400016a0
Function at 0x140003bfc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
lea r14, section..rdata
mov edi, ecx
mov rax, r14
xor ebx, ebx
cmp edi, dword [rax]
je 0x140003c2e
inc ebx
add rax, 0x10
cmp ebx, 0x17
jb 0x140003c1f
cmp ebx, 0x17
jae 0x140003daa
mov ebp, 3
mov ecx, ebp
call fcn.140008318
cmp eax, 1
je 0x140003d68
mov ecx, ebp
call fcn.140008318
test eax, eax
jne 0x140003c64
cmp dword [0x14000f8f0], 1
je 0x140003d68
cmp edi, 0xfc
je 0x140003daa
mov ebp, 0x314
lea rdi, [0x140010070]
mov edx, ebp
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rdi
call fcn.14000820c
test eax, eax
je 0x140003ca6
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140004e00
mov r8d, 0x104
mov byte [0x14001018d], 0
lea rdx, [0x140010089]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140003cf7
lea r8, str._program_name_unknown_
mov edx, 0x2fb
lea rcx, [0x140010089]
call fcn.14000820c
test eax, eax
je 0x140003cf7
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140004e00
lea r8, [0x14000bc80]
mov rdx, rbp
mov rcx, rdi
call fcn.140008284
test eax, eax
je 0x140003d22
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140004e00
movsxd r8, ebx
mov rdx, rbp
add r8, r8
mov rcx, rdi
mov r8, qword [r14 + r8*8 + 8]
call fcn.140008284
test eax, eax
je 0x140003d51
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140004e00
mov r8d, 0x12010
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov rcx, rdi
call fcn.140008370
jmp 0x140003daa
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140003daa
movsxd rcx, ebx
add rcx, rcx
or r8, 0xffffffffffffffff
mov rdx, qword [r14 + rcx*8 + 8]
inc r8
cmp byte [rdx + r8], 0
jne 0x140003d8c
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140004e00
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x540
mov rax, qword [0x14000f948]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140004e7d
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x140004e9d
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.140001af0
add rsp, 0x540
pop rbx
ret
Function at 0x140008370
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14000f948]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r12, rdx
mov r15, rcx
call fcn.1400033cc
xor esi, esi
mov rbx, rax
cmp qword [0x140010dc0], rsi
jne 0x140008483
xor r8d, r8d
lea rcx, str.USER32.DLL
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14000856e
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000856e
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov qword [0x140010dc0], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov qword [0x140010dc8], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov qword [0x140010dd0], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140010de0], rax
mov rcx, rax
test rax, rax
je 0x14000847a
lea rdx, str.GetProcessWindowStation
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140010dd8], rax
jmp 0x14000848a
mov rax, qword [0x140010dd8]
jmp 0x140008491
mov rax, qword [0x140010dd8]
mov rcx, qword [0x140010de0]
cmp rax, rbx
je 0x140008503
cmp rcx, rbx
je 0x140008503
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140010de0]
mov rdi, rax
call sub.KERNEL32.dll_DecodePointer
mov r14, rax
test rdi, rdi
je 0x140008503
test rax, rax
je 0x140008503
mov rax, rdi
call qword [0x14000b4e0]
test rax, rax
je 0x1400084fd
mov r9d, 0xc
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x38]
mov rcx, rax
mov rax, r14
lea edx, [r9 - 0xb]
call qword [0x14000b4e0]
test eax, eax
je 0x1400084fd
test byte [rsp + 0x40], 1
jne 0x140008503
bts ebp, 0x15
jmp 0x140008549
mov rcx, qword [0x140010dc8]
cmp rcx, rbx
je 0x140008549
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140008549
call qword [0x14000b4e0]
mov rsi, rax
test rax, rax
je 0x140008549
mov rcx, qword [0x140010dd0]
cmp rcx, rbx
je 0x140008549
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140008549
mov rcx, rsi
call qword [0x14000b4e0]
mov rsi, rax
mov rcx, qword [0x140010dc0]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000856e
mov r9d, ebp
mov r8, r12
mov rdx, r15
mov rcx, rsi
call qword [0x14000b4e0]
jmp 0x140008570
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001af0
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140009ab8
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x90
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], rsi
mov qword [rbp + 0xa0], rdi
mov rax, qword [0x14000f948]
xor rax, rbp
mov qword [rbp + 0x68], rax
and dword [rbp], 0
mov eax, dword [rsp]
sub rsp, 0x10
lea r14, [rsp + 0x20]
mov eax, dword [r14]
mov r8d, 0x30
lea rdx, [rbp + 8]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140009bbd
mov r15, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [rbp + 0x3c]
lea rcx, [rbp]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadStackGuarantee]
cmp eax, 1
jne 0x140009b46
mov eax, dword [rbp]
test eax, eax
cmovne ebx, eax
lea ecx, [rdi - 1]
add ecx, ebx
lea edx, [rdi - 1]
cmp ecx, ebx
jb 0x140009bbd
mov eax, edx
not eax
and ecx, eax
je 0x140009b63
lea eax, [rcx + rdi]
cmp eax, ecx
jb 0x140009bbd
mov ecx, eax
lea eax, [rdi + rdi*2]
mov ebx, edx
cmp ecx, eax
not rbx
cmovae eax, ecx
and rbx, r14
mov esi, eax
lea rax, [r15 + rdi]
sub rbx, rsi
cmp rbx, rax
jb 0x140009bbd
mov r9d, 4
mov r8d, 0x1000
mov edx, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x140009bbd
lea r9, [rbp + 4]
mov r8d, 0x104
mov edx, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140009bbd
mov eax, 1
jmp 0x140009bbf
xor eax, eax
mov rcx, qword [rbp + 0x68]
xor rcx, rbp
call fcn.140001af0
mov rbx, qword [rbp + 0x90]
mov rsi, qword [rbp + 0x98]
mov rdi, qword [rbp + 0xa0]
lea rsp, [rbp + 0x70]
pop r15
pop r14
pop rbp
ret
Function at 0x40f257
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x00c00898]
lea rax, [rsp + 0x60]
movaps xmmword [rax], xmm0
mov ecx, 0xffffffff
cmp r9, rcx
cmovb rcx, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x40f2c6
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x40f2fc
test eax, eax
js 0x40f2d7
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x40f2ef
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x58]
mov byte [rcx + 4], 0
and dword [rcx], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rdx, [rsp + 0x78]
mov qword [rdx], rax
mov qword [rdx + 8], 1
lea rax, [rsp + 0x50]
mov qword [rdx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rdx + 0x18], xmm0
call fcn.0040f526
mov rcx, rax
call fcn.0040efb5
mov ecx, 7
int 0x29
ud2

Function at 0x411de7
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.00411e46
mov ecx, eax
add rsp, 0x28
jmp sub.kernel32.dll_TlsGetValue

Function at 0x411e1a
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
call fcn.00411e46
mov ecx, eax
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp sub.kernel32.dll_TlsSetValue

Function at 0x411e46
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov edi, dword [rcx + 0x18]
test edi, edi
je 0x411e60
dec edi
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rsi, rcx
cmp qword [rcx], 0
je 0x411ed0
lea r8, [rsp + 0x2c]
and dword [r8], 0
lea rbx, [rsi + 0x10]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
cmp eax, 1
jne 0x411f17
cmp dword [rsp + 0x2c], 0
je 0x411eff
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x411f07
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x00c060c8]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x00c060c8], rsi
jne 0x411eab
mov byte [0x00c060c0], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x411e56
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x411f17
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x411e56
mov esi, eax
mov ecx, edi
call sub.kernel32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x411e56
mov edi, dword [rsi + 0x18]
jmp 0x411e54
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
ud2
Function at 0x4128b1
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov ecx, 0x10
call fcn.00411dfb
mov rsi, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x00412949]
xor edi, edi
xor ecx, ecx
mov rdx, r14
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x41292d
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
call qword [rax]
mov rcx, qword [rsi]
mov rdx, qword [rsi + 8]
call fcn.00411a1e
mov rcx, rsi
call fcn.00411a31
mov edi, 1
call fcn.0040ed84
mov rdx, rax
mov rax, rdi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x412daf
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x478
mov rdi, rcx
lea rbx, [rsp + 0x78]
mov rcx, rbx
call fcn.004124ea
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
call fcn.00412fe7
mov rax, qword [rsi]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x412f01
mov qword [rsp + 0x30], rdi
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rax], 2
xorps xmm0, xmm0
movups xmmword [rax + 8], xmm0
mov r8d, 0x200
mov r12d, 2
xor r15d, r15d
mov r14d, 0xffffffff
xor r13d, r13d
cmp r8, 0x201
jae 0x412e45
lea rbp, [rsp + 0x78]
mov edi, 0x200
mov rbx, r8
jmp 0x412e7a
sub r8, r13
lea rcx, [rsp + 0x60]
mov rdx, r8
call fcn.0040ecda
mov r12, qword [rsp + 0x60]
mov r15, qword [rsp + 0x68]
cmp r15, r14
mov r13d, 0xffffffff
cmovb r13, r15
mov qword [rsp + 0x70], r13
mov rbp, r12
mov rdi, r13
mov rbx, r13
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, qword [rsp + 0x38]
mov rdx, rbp
mov r8d, ebx
call sub.kernel32.dll_GetEnvironmentVariableW
mov esi, eax
test eax, eax
jne 0x412ea0
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x412f07
mov r8d, esi
cmp rbx, r8
jne 0x412ec8
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x412f79
add rbx, rbx
cmp rbx, r14
cmovae rbx, r14
mov r8, rbx
jmp 0x412e2d
jb 0x412e2d
cmp rdi, r8
jb 0x412f79
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbp
call fcn.0040e551
mov bl, byte [rsi + 0x18]
mov rcx, r12
mov rdx, r15
call fcn.0040ed9a
cmp bl, 2
jne 0x412f3c
mov rbx, qword [rsp + 0x40]
jmp 0x412f24
mov byte [rdi + 0x18], 2
jmp 0x412f64
call fcn.0040ed84
mov rbx, rax
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x58], 2
mov rcx, r12
mov rdx, r15
call fcn.0040ed9a
mov rax, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
mov byte [rax + 0x18], 2
mov rcx, rbx
call fcn.0040dfef
jmp 0x412f57
movups xmm0, xmmword [rsp + 0x40]
movups xmm1, xmmword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov rsi, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
call fcn.0040ed9a
nop
add rsp, 0x478
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x4164b8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rcx
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.00416524
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov rdx, rdi
call fcn.00412fe7
mov rdi, qword [rbx]
test rdi, rdi
je 0x416515
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov rcx, rdi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41650a
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r14
jmp 0x416517
mov rcx, rdi
mov rdx, rbx
call fcn.0040ed9a
xor edi, edi
mov qword [rsi], rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x417009
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rdx]
lea rcx, [rdx + 8]
call fcn.004171ec
test rax, rax
jne 0x417157
xor bl, 1
test r14, r14
movzx ecx, bl
mov eax, 2
cmove eax, ecx
mov r12, qword [rdi + 8]
mov rdi, qword [rdi + 0x18]
test al, al
je 0x417087
movzx eax, al
cmp eax, 1
jne 0x417075
xor eax, eax
cmp rdi, rax
je 0x41707d
movzx ecx, byte [r12 + rax]
cmp ecx, 9
je 0x417087
inc rax
cmp ecx, 0x20
jne 0x41705c
jmp 0x417087
xor r14d, r14d
xor r15d, r15d
jmp 0x417099
test rdi, rdi
je 0x417087
mov r14b, 1
jmp 0x417078
mov rcx, rsi
mov dx, 0x22
call fcn.0041269b
mov r14b, 1
mov r15b, 1
add rdi, r12
lea rbx, [rsp + 0x28]
mov qword [rbx], r12
mov qword [rbx + 8], rdi
and word [rbx + 0x10], 0
xor edi, edi
mov rcx, rbx
call fcn.0040d9f8
test ax, ax
je 0x41711d
mov ebp, edx
test r14b, r14b
je 0x417111
cmp bp, 0x22
je 0x4170d6
movzx eax, bp
cmp eax, 0x5c
jne 0x41710f
inc rdi
jmp 0x417111
mov rdx, rdi
inc rdx
je 0x417169
mov rcx, rsi
call fcn.0040d917
mov rcx, qword [rsi]
mov rax, qword [rsi + 0x10]
sub rdi, 1
jb 0x417102
mov word [rcx + rax*2], 0x5c
inc rax
jmp 0x4170f1
mov word [rcx + rax*2], 0x5c
inc rax
mov qword [rsi + 0x10], rax
xor edi, edi
mov rcx, rsi
mov edx, ebp
call fcn.0041269b
jmp 0x4170af
test r15b, r15b
je 0x417155
mov rcx, rsi
mov rdx, rdi
call fcn.0040d917
mov rcx, qword [rsi]
mov rax, qword [rsi + 0x10]
sub rdi, 1
jb 0x417145
mov word [rcx + rax*2], 0x5c
inc rax
jmp 0x417134
mov qword [rsi + 0x10], rax
mov rcx, rsi
mov dx, 0x22
call fcn.0041269b
xor edx, edx
mov rax, rdx
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2