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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rbx, rcx
lea r10, [rsp + 0x20]
mov ecx, reloc.WS2_32.dll_recv
xor r9b, r9b
nop dword [rax]
nop word [rax + rax]
movzx edx, r9b
lea r10, [r10 + 4]
movzx eax, r9b
add r9b, 4
movzx r8d, byte [rax + rbx + 1]
movzx eax, byte [rdx + rbx]
shl eax, 8
or r8d, eax
movzx eax, byte [rdx + rbx + 2]
shl r8d, 8
or r8d, eax
movzx eax, byte [rdx + rbx + 3]
shl r8d, 8
or r8d, eax
mov dword [r10 - 4], r8d
sub rcx, 1
jne 0x1400015a0
mov esi, dword [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov r11b, reloc.WS2_32.dll_recv
nop
mov r9d, dword [rdi + 4]
lea r10, [rdi]
movzx eax, r11b
lea rdi, [rdi + 4]
mov r8d, r9d
inc r11b
ror r8d, 0x12
mov edx, dword [rsp + rax*4 + 0x18]
mov ecx, edx
ror ecx, 0x13
mov eax, r9d
ror eax, 7
xor r8d, eax
mov eax, r9d
shr eax, 3
xor r8d, eax
mov eax, edx
ror eax, 0x11
xor ecx, eax
shr edx, 0xa
xor ecx, edx
add r8d, ecx
add r8d, dword [r10 + 0x24]
add r8d, esi
mov esi, r9d
mov dword [r10 + 0x40], r8d
cmp r11b, 0x40
jb 0x1400015f0
movups xmm0, xmmword [rbx + 0x50]
lea rax, [rbx + 0x50]
xor esi, esi
movups xmm1, xmmword [rax + 0x10]
mov qword [rbp + 0x68], rax
movups xmmword [rsp], xmm0
mov r12d, dword [rsp + 8]
lea ebx, [rsi + 0x40]
mov r13d, dword [rsp + 4]
mov r11d, dword [rsp]
movups xmmword [rsp + 0x10], xmm1
mov r14d, dword [rsp + 0x18]
mov r15d, dword [rsp + 0x14]
mov edi, dword [rsp + 0x10]
mov eax, dword [rsp + 0x1c]
nop word [rax + rax]
mov ecx, edi
lea rsi, [rsi + 4]
ror ecx, 0xb
mov r10d, edi
ror r10d, 0x19
mov edx, edi
xor r10d, ecx
not edx
and edx, r14d
mov ecx, edi
ror ecx, 6
mov r8d, r12d
xor r10d, ecx
mov r9d, r13d
mov ecx, r15d
and r9d, r8d
and ecx, edi
xor edx, ecx
lea rcx, [0x1400310d0]
add r10d, edx
mov edx, r11d
add r10d, dword [rsi + rcx - 4]
mov ecx, r11d
add r10d, dword [rsp + rsi + 0x1c]
ror ecx, 0xd
add r10d, eax
ror edx, 0x16
mov eax, r14d
xor edx, ecx
mov r14d, r15d
mov ecx, r11d
mov r15d, edi
mov edi, dword [rsp + 0xc]
ror ecx, 2
add edi, r10d
xor edx, ecx
mov dword [rsp + 0xc], r12d
mov r12d, r13d
mov r13d, r11d
mov ecx, r12d
or ecx, r8d
and r11d, ecx
lea ecx, [r10 + rdx]
or r11d, r9d
add r11d, ecx
sub rbx, 1
jne 0x140001690
lea r8, [rsp]
mov dword [rsp + 0x1c], eax
sub r8, qword [rbp + 0x60]
lea edx, [rbx + 8]
mov rax, qword [rbp + 0x68]
mov dword [rsp], r11d
mov dword [rsp + 0x10], edi
mov dword [rsp + 0x18], r14d
mov dword [rsp + 0x14], r15d
mov dword [rsp + 8], r12d
mov dword [rsp + 4], r13d
nop word [rax + rax]
mov ecx, dword [rax + r8 - 0x50]
add dword [rax], ecx
lea rax, [rax + 4]
sub rdx, 1
jne 0x140001760
mov rbx, qword [rsp + 0x170]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004a40
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14003d180]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rax, qword [rcx]
lea rdi, [rsp + 0x58]
mov qword [rsp + 0x68], rax
lea rsi, [rsp + 0x60]
mov r9d, edx
mov dword [rsp + 0x60], 1
mov ecx, r8d
lea rbp, [rsp + 0x60]
movabs rax, 0x20c49ba5e353f7cf
imul r8
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, edx, 0x3e8
mov dword [rsp + 0x58], edx
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x5c], eax
xor eax, eax
test r8, r8
cmovs rdi, rax
cmp r9d, 1
mov qword [rsp + 0x20], rdi
cmovne rsi, rax
test r9d, r9d
mov r8, rsi
cmovne rbp, rax
xor r9d, r9d
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140004b1a
nop dword [rax]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x140004b20
xor r9d, r9d
mov qword [rsp + 0x20], rdi
mov r8, rsi
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
cmp eax, 0xffffffff
je 0x140004af0
test ebx, ebx
je 0x140004b4a
jmp 0x140004b27
cmp ebx, 0xffffffff
je 0x140004b6d
jmp 0x140004b1a
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140028c10
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.Request_timed_out
lea rcx, [rsp + 0x30]
call fcn.140004bb0
lea rdx, [0x14003aae0]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_select_socket
lea rcx, [rsp + 0x30]
call fcn.1400027d0
lea rdx, [0x14003a878]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14000a7b0
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x14003d180]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, rdx
mov r15, rcx
mov qword [rbp - 0x71], rcx
mov qword [rbp - 0x71], rdx
xor eax, eax
mov dword [rbp - 0x29], eax
mov qword [rbp - 0x21], rax
mov dword [rbp - 0x19], 0x6a09e667
mov dword [rbp - 0x15], 0xbb67ae85
mov dword [rbp - 0x11], 0x3c6ef372
mov dword [rbp - 0xd], 0xa54ff53a
mov dword [rbp - 9], 0x510e527f
mov dword [rbp - 5], 0x9b05688c
mov dword [rbp - 1], 0x1f83d9ab
mov dword [rbp + 3], 0x5be0cd19
mov rsi, qword [rdx + 0x10]
mov r14, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x14000a836
mov r14, qword [rdx]
xor ebx, ebx
test rsi, rsi
je 0x14000a876
nop dword [rax]
mov ecx, eax
movzx eax, byte [r14 + rbx]
mov byte [rbp + rcx - 0x69], al
mov eax, dword [rbp - 0x29]
inc eax
mov dword [rbp - 0x29], eax
cmp eax, 0x40
jne 0x14000a86e
lea rcx, [rbp - 0x69]
call fcn.140001560
add qword [rbp - 0x21], 0x200
xor eax, eax
mov dword [rbp - 0x29], eax
inc rbx
cmp rbx, rsi
jb 0x14000a840
mov byte [rbp + rax - 0x69], 0x80
lea rcx, [rax + 1]
mov edx, 0x38
mov r8d, 0x40
cmp eax, edx
cmovb r8d, edx
cmp rcx, r8
jae 0x14000a8a6
sub r8, rcx
lea rax, [rbp - 0x69]
add rcx, rax
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [rbp - 0x29]
cmp eax, 0x38
jb 0x14000a8cf
lea rcx, [rbp - 0x69]
call fcn.140001560
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rbp - 0x69], xmm2
movups xmmword [rbp - 0x59], xmm2
movups xmmword [rbp - 0x49], xmm2
mov qword [rbp - 0x39], rax
mov eax, dword [rbp - 0x29]
lea edx, [rax*8]
add rdx, qword [rbp - 0x21]
mov qword [rbp - 0x21], rdx
mov byte [rbp - 0x2a], dl
mov rax, rdx
shr rax, 8
mov byte [rbp - 0x2b], al
mov rax, rdx
shr rax, 0x10
mov byte [rbp - 0x2c], al
mov rax, rdx
shr rax, 0x18
mov byte [rbp - 0x2d], al
mov rax, rdx
shr rax, 0x20
mov byte [rbp - 0x2e], al
mov rax, rdx
shr rax, 0x28
mov byte [rbp - 0x2f], al
mov rax, rdx
shr rax, 0x30
mov byte [rbp - 0x30], al
shr rdx, 0x38
mov byte [rbp - 0x31], dl
lea rcx, [rbp - 0x69]
call fcn.140001560
xor bl, bl
nop
xor al, al
movzx r11d, bl
mov r10d, 3
sub r10d, r11d
shl r10d, 3
lea r9, [rbp - 0x19]
nop word [rax + rax]
mov r8d, dword [r9]
mov ecx, r10d
shr r8d, cl
movzx ecx, al
lea edx, [r11 + rcx*4]
mov byte [rbp + rdx + 7], r8b
inc al
lea r9, [r9 + 4]
cmp al, 8
jb 0x14000a950
inc bl
cmp bl, 4
jb 0x14000a930
lea rdx, [rbp + 7]
mov rcx, r15
call fcn.140001790
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x14000a9b9
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14000a9b4
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000a9f2
mov rcx, r8
call fcn.140028c6c
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], recv
mov byte [rdi], 0
mov rax, r15
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140028c10
mov rbx, qword [rsp + 0x110]
add rsp, 0xd0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14000c930
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x14000c951
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000c97e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000c980
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000c9d9
test ecx, ecx
jle 0x14000c9b9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14000c9d9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000c9d9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
fdivp st(4)
pop rdx
or ch, byte [rcx]
test eax, 0x2c0f7524
jns 0x140067b0a
cvttps2pi mm7, qword [rcx - 4]
rcl byte [rsi + rdi*8 + 0x74505a4]
mov ebp, 0x674cb4d2
mov al, 0x34
xchg dword [rcx + 0x58], ecx
cwde
push rcx
mov al, 0x43
jae 0x140067b04
adc r11b, byte [r10 + r15 + 0x4985e3f8]
mov al, 0xcf
std
lodsd eax, dword [rsi]
invalid
Function at 0x14000ca00
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14000ca22
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14000ca31
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000ca54
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000ca56
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000ca92
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000cb2e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000cacd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000cb0e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000cb2e
cmp rbx, rax
ja 0x14000cae0
test rbx, rbx
je 0x14000cb2e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
int1
invalid
sbb eax, 0x933e3f3a
pop rbp
in al, 0xe7
sbb eax, 0x64254acc
push rsi
mul dword [rcx - 0x3d47bcf8]
jp 0x140067a3e
xlatb
cmp al, 0x78
retf
xchg esp, eax
jb 0x140067ac7
jmp 0xc67c75c1
cli
jne 0x140067a50
call 0x19d7e66a6
movabs eax, dword [0xb86439e5f048ba88]
sub al, 0xcd
invalid
Function at 0x14000cf90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14003d180]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000cfbd
xor eax, eax
jmp 0x14000d129
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000cff7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000cff7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14000d129
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000d11c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000d03a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000d065
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000d121
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000d0d4
sub eax, 1
je 0x14000d0d4
cmp eax, 2
jne 0x14000d11c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000d121
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000d102
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000d11c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000d121
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140028c10
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000e300
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14003d180]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000e3d3
cmp byte [rcx + 0x71], 0
je 0x14000e3d3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000e3cf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000e394
sub eax, 1
je 0x14000e398
cmp eax, 2
jne 0x14000e3cf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140028c10
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000e3c6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000e3cf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000e37c
xor al, al
jmp 0x14000e37c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140028c10
add rsp, 0x60
pop rbx
ret
Function at 0x1400233c0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
test r9, r9
je 0x140023556
cmp r9, 4
jb 0x1400233fa
mov r10, r9
shr r10, 2
imul rax, r10, 0xfffffffffffffffc
add r9, rax
mov eax, dword [rdx]
add rdx, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub r10, 1
jne 0x1400233e1
xor r11d, r11d
test r9, r9
je 0x140023556
cmp r9, 8
jb 0x14002352d
lea r10, [rcx - 1]
lea rax, [r8 - 1]
add r10, r9
add rax, r9
cmp rcx, rax
ja 0x14002342c
cmp r10, r8
jae 0x14002352d
lea rax, [rdx - 1]
add rax, r9
cmp rcx, rax
ja 0x140023441
cmp r10, rdx
jae 0x14002352d
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x1400234e7
mov r10, r9
mov qword [rsp + 0x18], rsi
and r10d, 0x3f
mov rbx, r9
sub rbx, r10
mov rdi, rdx
lea rax, [r8 + 0x10]
sub rdi, r8
mov rsi, rcx
sub rsi, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rdi + rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rax - 0x10]
movdqu xmm2, xmmword [rdi + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rsi + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x30]
movdqu xmm1, xmmword [rax - 0x30]
movdqu xmmword [rsi + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x20]
movdqu xmm2, xmmword [rax - 0x20]
movdqu xmmword [rsi + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rsi + rax - 0x20], xmm2
cmp r11, rbx
jb 0x140023480
mov rsi, qword [rsp + 0x18]
cmp r10, 8
jb 0x14002351f
mov r10, r9
and r10, 0xfffffffffffffff8
mov rbx, rdx
lea rax, [r11 + r8]
sub rbx, r8
mov rdi, rcx
sub rdi, r8
nop
movq xmm1, qword [rax + rbx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rdi + rax - 8], xmm1
cmp r11, r10
jb 0x140023500
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x140023556
sub rdx, r8
lea r10, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [r10 + rdx]
xor al, byte [r10]
mov byte [rcx + r10], al
lea r10, [r10 + 1]
sub r9, 1
jne 0x140023540
add rsp, 8
ret

Function at 0x140028374
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 0x1400283ae
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400283b3
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 0x1400283fc
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140030f00]
cmp byte [rcx + rax], 0
je 0x1400283fc
dec r8
sub rdx, 1
jne 0x1400283e2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400289ec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140028414
mov ebx, eax
test eax, eax
jne 0x140028a1c
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140028a7f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140028a76
test al, 0x10
je 0x140028a76
bt eax, 0xa
jae 0x140028a6f
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140028a90
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140028a6b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140028a6b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x140028a76
and dword [rsp + 0x3c], 0
jmp 0x140028a7b
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400298c8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140029912
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140029912
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140029912
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140029912
cmp dword [rcx + 0x84], 0xe
jbe 0x140029912
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140029914
xor al, al
add rsp, 0x28
ret
Function at 0x1400055f0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140005612
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14000568c
mov rdi, r14
mov rcx, rbx
call fcn.140008100
test rax, rax
jle 0x140005664
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.14020e2a0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000567c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140005684
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140005626
sub r14, rdi
jmp 0x14000576f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400056a3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400056a5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400056d7
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14020e2a0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000576c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140005712
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14000574d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1401e6b94
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14000576c
cmp rbp, rax
ja 0x140005720
test rbp, rbp
je 0x14000576c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1401e6b94
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

Function at 0x14000bc60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000bcd8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14000bcd8
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14000bcc5
nop
cmp rbx, rcx
jae 0x14000bcd8
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14000bcb0
cmp rbx, rcx
jae 0x14000bcd8
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x14000bcda
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret