joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a8438
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 0x1400a8468
xor eax, eax
jmp 0x1400a852b
mov rbp, rbx
cmp word [rax], si
je 0x1400a848d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400a8474
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400a8470
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.1400a8358
movsxd r14, eax
test eax, eax
jne 0x1400a84cb
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x1400a8461
mov rcx, r14
call fcn.1400a5b7c
mov rdi, rax
test rax, rax
jne 0x1400a84e4
xor ecx, ecx
call fcn.1400a5bdc
jmp 0x1400a84c0
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.1400a8358
test eax, eax
jne 0x1400a8515
mov rcx, rdi
call fcn.1400a5bdc
jmp 0x1400a851f
xor ecx, ecx
call fcn.1400a5bdc
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 0x1400abc30
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.1400a7428
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400abcba
cmp byte [rbp - 0x21], r15b
je 0x1400abcb5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400abcf0
call fcn.1400a9ac4
test eax, eax
jne 0x1400abcdc
cmp byte [rbp - 0x21], r15b
je 0x1400abcd4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400abcf0
cmp byte [rbp - 0x21], r15b
je 0x1400abced
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.1400a6a08
test eax, eax
jne 0x1400abd90
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400a7428
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400abd2f
cmp byte [rbp - 0x21], r15b
je 0x1400abd64
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400abd64
call fcn.1400a9ac4
test eax, eax
jne 0x1400abd50
cmp byte [rbp - 0x21], r15b
je 0x1400abd49
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400abd64
cmp byte [rbp - 0x21], r15b
je 0x1400abd61
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.1400a6a08
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400abd90
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400abd93
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400abda1
mov rcx, rdi
call fcn.1400a5bdc
cmp byte [rbp + 0x3f], r15b
je 0x1400abdb0
mov rcx, qword [rbp + 0x27]
call fcn.1400a5bdc
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 0x1400ae930
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400ae958
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400ae958
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400b3e00
Capabilities:
Link many functions at runtime

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rcx, [0x1400bbee5]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x1400b3e55
mov rdi, rax
lea rdx, [0x1400bbf06]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400b3e55
mov rsi, rax
lea rdx, [0x1400bbf14]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400b3e55
mov r14, rax
xor edi, edi
jmp 0x1400b3edd
lea rcx, [0x1400bbea0]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x1400b3f49
mov rsi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400b3f49
mov rbx, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400b3f49
mov rdi, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400b3f49
mov rsi, rax
lea rcx, [rsp + 0x20]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbx
test eax, eax
jne 0x1400b3f49
mov r14, qword [rsp + 0x20]
movzx eax, byte [0x1400d65f0]
mov ecx, 0x18
mov edx, 8
call fcn.1400546b0
test rax, rax
je 0x1400b3f4b
mov rbx, rax
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r14
xor eax, eax
lock cmpxchg qword [0x1400d6638], rbx
je 0x1400b3f3c
mov rsi, rax
cmp qword [rbx], 0
je 0x1400b3f26
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov edx, 0x18
mov r8d, 8
mov rcx, rbx
call fcn.1400546c0
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
ud2
mov ecx, 8
mov edx, 0x18
call fcn.14005fd00
int3
Function at 0x140004c00
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x78
movabs rcx, 0x854a5cec0ac149bd
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x48], rcx
movabs rax, 0xd06af133eeeeb3d0
mov qword [rsp + 0x40], rax
movabs rax, 0xd06ad1478287c692
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rax
vmovups xmm0, xmmword [rsp + 0x20]
vpxor xmm0, xmm0, xmmword [rsp + 0x40]
vmovdqu xmmword [rsp + 0x40], xmm0
call fcn.140004e30
mov r8d, 0xb
lea rdx, str.Sep__5_2024
mov rcx, rax
call fcn.140004f70
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x20], xmm0
vpxor xmm1, xmm1, xmm1
vmovdqu xmmword [rsp + 0x30], xmm1
vmovups ymm0, ymmword [rax]
vmovups ymmword [rsp + 0x20], ymm0
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140004ce3
mov rcx, qword [rsp + 0x50]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004cdb
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004cdb
vzeroupper
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
vzeroupper
call fcn.1400ef390
mov rax, qword gs:[0x60]
cmp qword [rsp + 0x38], 0xf
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], rsi
lea rsi, [rsp + 0x20]
mov rax, qword [rax + 0x18]
cmova rsi, qword [rsp + 0x20]
mov qword [rsp + 0x70], rdi
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140004d97
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140004d97
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rcx, [r10 + r9*4]
mov ecx, dword [rcx + rdi]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140004d92
nop dword [rax]
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x140004d70
cmp r8d, 0x9a9264ad
je 0x140004d9c
test r9d, r9d
jne 0x140004d50
mov rax, qword [rax]
jmp 0x140004d20
mov edx, dword [rbx + 0x24]
mov rcx, rsi
add rdx, r10
movzx r8d, word [rdx + r9*2]
mov edx, dword [rbx + 0x1c]
add rdx, r10
mov eax, dword [rdx + r8*4]
add rax, r10
vzeroupper
call rax
mov rdx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
cmp rdx, 0xf
jbe 0x140004e11
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004e0c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004e0c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ef390
mov al, 1
add rsp, 0x78
ret
Function at 0x1400053c0
Capabilities:
Read .ini file

Disassembly:
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x28], r9
mov rdi, r8
lea r9, [rsp + 0x80]
mov dword [rsp + 0x20], 0x40
lea r8, [0x1401128a6]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x140005506
mov qword [rsp + 0xd8], rbp
lea r8, [rsp + 0x40]
mov qword [rsp + 0xe0], rsi
lea rdx, [rsp + 0x60]
movabs rsi, 0x854a5cec0ac149bd
mov qword [rsp + 0xe8], r14
mov qword [rsp + 0x48], rsi
lea rcx, [rsp + 0x80]
movabs r14, 0xd06af133eeeeb3fc
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], r14
movabs rbp, 0xd06af133eeeeb3d0
vmovups xmm0, xmmword [rsp + 0x40]
mov qword [rsp + 0x30], rbp
vpxor xmm0, xmm0, xmmword [rsp + 0x30]
vmovdqu xmmword [rsp + 0x60], xmm0
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok_s]
test rax, rax
je 0x1400054e0
mov qword [rsp + 0xd0], rbx
xor ebx, ebx
nop dword [rax]
cmp rbx, 4
jge 0x1400054d8
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
mov qword [rsp + 0x30], r14
lea r8, [rsp + 0x40]
vcvtsd2ss xmm1, xmm0, xmm0
vmovss dword [rdi + rbx*4], xmm1
mov qword [rsp + 0x38], rsi
lea rdx, [rsp + 0x70]
vmovdqu xmm0, xmmword [rsp + 0x30]
mov qword [rsp + 0x50], rbp
xor ecx, ecx
mov qword [rsp + 0x58], rsi
vpxor xmm1, xmm0, xmmword [rsp + 0x50]
vmovdqu xmmword [rsp + 0x70], xmm1
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok_s]
inc rbx
test rax, rax
jne 0x140005480
mov rbx, qword [rsp + 0xd0]
mov r14, qword [rsp + 0xe8]
mov eax, 1
mov rsi, qword [rsp + 0xe0]
mov rbp, qword [rsp + 0xd8]
add rsp, 0xc0
pop rdi
ret
xor eax, eax
add rsp, 0xc0
pop rdi
ret
Function at 0x1400101f0
Capabilities:
Access peb ldr_data
Encode data using xor
Get kernel32 base address
Get process filename
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [r11 + 8], rcx
push r14
sub rsp, 0x80
movabs rcx, 0x854a5cec0ac149bd
movabs rdx, 0xd06af133eeeeb3d0
mov qword [rsp + 0x58], rcx
movabs rax, 0x854a5cec73a025cf
mov qword [rsp + 0x38], rax
movabs r8, 0xb51cbe5f8f8ad69d
mov qword [rsp + 0x30], r8
movabs rax, 0x3e910db1121dc1c2
vmovups xmm0, xmmword [rsp + 0x30]
mov qword [rsp + 0x40], rax
movabs rax, 0xf62b30af73a025cf
mov qword [r11 - 0x20], rax
movabs rax, 0x3e910db1121dc1b1
mov qword [rsp + 0x38], rcx
movabs rcx, 0x31fe936a4f36173f
mov qword [r11 - 0x18], rax
mov rax, qword [0x1401c07c8]
mov qword [r11 - 0x10], rcx
mov qword [rsp + 0x50], rdx
vpxor xmm0, xmm0, xmmword [rsp + 0x50]
mov qword [r11 - 0x28], r8
vmovups ymm1, ymmword [rsp + 0x60]
vmovups ymmword [rsp + 0x60], ymm1
vmovdqu xmm2, xmmword [rsp + 0x70]
mov qword [rsp + 0x30], rdx
lea rdx, [r11 - 0x38]
vpxor xmm1, xmm1, xmmword [rsp + 0x30]
mov qword [rsp + 0x48], rcx
lea rcx, [r11 - 0x28]
vmovdqu xmmword [rsp + 0x50], xmm0
vpxor xmm0, xmm2, xmmword [rsp + 0x40]
vmovdqu xmmword [rsp + 0x70], xmm0
vmovdqu xmmword [rsp + 0x60], xmm1
vzeroupper
call rax
xor ecx, ecx
mov qword [rsp + 0x90], 0
mov rsi, rax
call qword [sym.imp.ole32.dll_CoInitialize]
lea rax, [rsp + 0x90]
xor edx, edx
lea r9, [0x1400f6840]
mov qword [rsp + 0x20], rax
mov r8d, 1
lea rcx, [0x1400f6850]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rcx, qword gs:[0x60]
mov r14d, eax
mov rcx, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x10]
nop dword [rax + rax]
mov r10, qword [rcx + 0x30]
movsxd rdx, dword [r10 + 0x3c]
mov edi, dword [rdx + r10 + 0x88]
add rdi, r10
cmp rdi, r10
je 0x1400103b7
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x1400103b7
mov ebx, dword [rdi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rax, [rbx + r9*4]
mov eax, dword [rax + r10]
add rax, r10
movzx edx, byte [rax]
inc rax
test dl, dl
je 0x1400103b2
nop
movsx edx, dl
lea rax, [rax + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rax - 1]
test dl, dl
jne 0x140010390
cmp r8d, 0xf50944d9
je 0x1400103bc
test r9d, r9d
jne 0x140010370
mov rcx, qword [rcx]
jmp 0x140010340
mov ecx, dword [rdi + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rdi + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
lea rdx, [0x1401c06c0]
add rax, r10
mov rcx, rsi
call rax
mov ecx, dword [0x1401c06c0]
mov r8b, 1
mov rdx, rsi
call fcn.14000fb40
test r14d, r14d
jne 0x140010414
mov rcx, qword [rsp + 0x90]
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x90]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x14003f3d0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14003f42d
lea rbx, [0x140114280]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14003f414
cmp r10, 2
jb 0x14003f414
cmp byte [r9], r8b
jne 0x14003f414
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x14003f3f0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14003f46f
lea rbx, [0x140114280]
cmp r8b, 0x23
jne 0x14003f453
cmp byte [r9], r8b
jne 0x14003f453
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x14003f440
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x14003f5c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14003f5da
mov qword [r8], 0
lea rdx, [0x140113e38]
call fcn.14003f480
mov rbx, rax
test rax, rax
jne 0x14003f5fa
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x14003f6a5
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14003f6a5
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14003f6a5
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14003f6a5
cmp rdi, 0xffffffffffffffff
je 0x14003f6a5
mov rcx, rdi
call fcn.1400438c0
mov rsi, rax
test rax, rax
je 0x14003f6a5
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x14003f692
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rsi
call fcn.140043960
jmp 0x14003f6ae
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14003f6a0
mov qword [r14], rdi
mov rax, rsi
jmp 0x14003f6b0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14003f880
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
movsxd rax, edx
mov rdi, rcx
dec rax
mov qword [r11 + 0x20], rsi
xor edx, edx
mov rsi, r9
lea rax, [rcx + rax*2]
mov qword [rsp], rax
cmp rcx, rax
jae 0x14003fa93
mov qword [r11 - 0x18], r13
lea r13, [0x140000000]
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
nop
test rsi, rsi
je 0x14003f8de
cmp r8, rsi
jae 0x14003fa70
movzx edx, byte [r8]
test dl, dl
je 0x14003fa6e
xor ebx, ebx
mov eax, edx
shr rax, 3
mov rcx, rsi
movsx r9, byte [rax + r13 + 0x113f80]
test r9d, r9d
sete bl
add ebx, r9d
test rsi, rsi
jne 0x14003f912
movsxd rcx, ebx
add rcx, r8
xor ebp, ebp
lea rax, [r8 + 1]
cmp r8, rcx
cmovb ebp, edx
cmp rax, rcx
jae 0x14003f929
movzx r12d, byte [rax]
jmp 0x14003f92c
xor r12b, r12b
lea rax, [r8 + 2]
cmp rax, rcx
jae 0x14003f93b
movzx r15d, byte [rax]
jmp 0x14003f93e
xor r15b, r15b
lea rax, [r8 + 3]
cmp rax, rcx
jae 0x14003f94d
movzx r14d, byte [rax]
jmp 0x14003f950
xor r14b, r14b
lea r11, [r9*4]
movzx eax, bpl
mov ecx, dword [r11 + r13 + 0x119e88]
and ecx, eax
movzx r9d, r12b
shl ecx, 6
mov eax, r9d
and eax, 0x3f
movzx edx, r15b
or ecx, eax
movzx r10d, r14b
shl ecx, 6
and r9d, 0xc0
mov eax, edx
and edx, 0xc0
and eax, 0x3f
or ecx, eax
mov eax, r10d
and eax, 0x3f
shr r10d, 2
or r10d, edx
shl ecx, 6
or ecx, eax
shr r10d, 2
mov eax, dword [r11 + r13 + 0x113f68]
or r10d, r9d
shrx r13d, ecx, eax
shr r10d, 2
lea r9, [0x140000000]
cmp r13d, dword [r11 + r9 + 0x113f50]
sbb eax, eax
xor edx, edx
and eax, 0x40
mov ecx, edx
or r10d, eax
mov eax, r13d
and eax, 0xfffff800
cmp eax, 0xd800
mov eax, 0x80
cmove ecx, eax
mov eax, edx
or r10d, ecx
mov ecx, 0x100
cmp r13d, 0xffff
cmova eax, ecx
or r10d, eax
mov eax, dword [r11 + r9 + 0x119e70]
xor r10d, 0x2a
sarx ecx, r10d, eax
test ecx, ecx
je 0x14003fa4d
test r14b, r14b
mov eax, edx
mov ecx, edx
mov r13d, 0xfffd
setne cl
test r15b, r15b
setne al
add ecx, eax
mov eax, edx
test r12b, r12b
setne al
add ecx, eax
mov eax, edx
test bpl, bpl
setne al
add ecx, eax
cmp ebx, ecx
cmovl ecx, ebx
mov ebx, ecx
mov word [rdi], r13w
add rdi, 2
movsxd rax, ebx
lea r13, [0x140000000]
add r8, rax
cmp rdi, qword [rsp]
jb 0x14003f8d0
jmp 0x14003fa70
xor edx, edx
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
mov r13, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov word [rdi], dx
test rax, rax
je 0x14003faa8
mov qword [rax], r8
sub rdi, rcx
sar rdi, 1
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x14003fac0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push r13
sub rsp, 0x18
mov qword [rsp + 0x30], rbx
lea r9, [0x140000000]
mov qword [rsp + 0x38], rbp
mov rsi, rdx
mov qword [rsp + 0x40], rdi
xor r13d, r13d
mov qword [rsp + 0x10], r12
mov qword [rsp + 8], r14
mov qword [rsp], r15
test rsi, rsi
je 0x14003fb00
cmp rcx, rsi
jae 0x14003fc82
movzx r8d, byte [rcx]
test r8b, r8b
je 0x14003fc82
xor edi, edi
mov eax, r8d
shr rax, 3
mov rdx, rsi
movsx r9, byte [rax + r9 + 0x113f80]
test r9d, r9d
sete dil
add edi, r9d
test rsi, rsi
jne 0x14003fb37
movsxd rdx, edi
add rdx, rcx
xor ebp, ebp
lea rax, [rcx + 1]
cmp rcx, rdx
cmovb ebp, r8d
cmp rax, rdx
jae 0x14003fb4f
movzx r12d, byte [rax]
jmp 0x14003fb52
xor r12b, r12b
lea rax, [rcx + 2]
cmp rax, rdx
jae 0x14003fb61
movzx r15d, byte [rax]
jmp 0x14003fb64
xor r15b, r15b
lea rax, [rcx + 3]
cmp rax, rdx
jae 0x14003fb73
movzx r14d, byte [rax]
jmp 0x14003fb76
xor r14b, r14b
lea rbx, [r9*4]
movzx eax, bpl
lea r8, [0x140000000]
movzx r9d, r15b
mov edx, dword [rbx + r8 + 0x119e88]
and edx, eax
movzx r10d, r12b
shl edx, 6
mov eax, r10d
and eax, 0x3f
movzx r11d, r14b
or edx, eax
and r10d, 0xc0
shl edx, 6
mov eax, r9d
and eax, 0x3f
and r9d, 0xc0
or edx, eax
mov eax, r11d
and eax, 0x3f
shr r11d, 2
or r11d, r9d
shl edx, 6
or edx, eax
shr r11d, 2
mov eax, dword [rbx + r8 + 0x113f68]
lea r9, [0x140000000]
shrx r8d, edx, eax
or r11d, r10d
shr r11d, 2
cmp r8d, dword [rbx + r9 + 0x113f50]
sbb eax, eax
xor edx, edx
and eax, 0x40
or r11d, eax
mov eax, r8d
and eax, 0xfffff800
cmp eax, 0xd800
mov eax, 0x80
cmove edx, eax
xor eax, eax
or r11d, edx
mov edx, 0x100
cmp r8d, 0xffff
cmova eax, edx
or r11d, eax
mov eax, dword [rbx + r9 + 0x119e70]
xor r11d, 0x2a
sarx edx, r11d, eax
test edx, edx
je 0x14003fc74
xor edx, edx
test r14b, r14b
setne dl
xor eax, eax
test r15b, r15b
setne al
add edx, eax
xor eax, eax
test r12b, r12b
setne al
add edx, eax
xor eax, eax
test bpl, bpl
setne al
add edx, eax
cmp edi, edx
cmovl edx, edi
mov edi, edx
movsxd rax, edi
add rcx, rax
inc r13d
jmp 0x14003faf2
mov r15, qword [rsp]
mov eax, r13d
mov r14, qword [rsp + 8]
mov r12, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x18
pop r13
pop rsi
ret
Function at 0x140055fa0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5fc0], 0
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x140056023
xor edx, edx
add rcx, 0x5fc8
call fcn.140057190
mov r8, rsi
lea rcx, [rbx + 0x5fc8]
mov rdx, rbp
call fcn.1400401d0
mov eax, dword [rbx + 0x5fc8]
xor edx, edx
mov r9, qword [rbx + 0x5fc0]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x5fd0]
cmove ecx, edx
test rax, rax
movsxd r8, ecx
mov edx, 1
lea rcx, [0x1401c06c4]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x14005602f
add rcx, 0x5fc8
call fcn.1400401d0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400562c0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1401c06d0]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140056323
mov qword [rsp], rbx
lea rbx, [0x140114280]
nop dword [rax]
cmp r9b, 0x23
jne 0x140056303
cmp byte [r8], r9b
jne 0x140056303
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x1400562f0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f30]
not eax
mov r8, qword [r10 + 0x5f38]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14005634f
cmp dword [r8 + 8], eax
je 0x140056356
add r8, 0x48
cmp r8, rcx
jne 0x140056340
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret

Function at 0x1400565a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x1401c06d0]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x5f1c], ecx
test rbx, rbx
je 0x14005660f
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.140056620
lea rdx, [0x140113e3c]
mov rcx, rbx
mov rdi, rax
call fcn.14003f480
mov rbx, rax
test rax, rax
je 0x14005660a
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret