joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140024620
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
lea rcx, str.msvcrt.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.rand_s
mov rcx, rax
call rbx
test rax, rax
je 0x140024668
mov rcx, r12
mov qword [dbg.init_rand_s], rax
add rsp, 0x28
pop rbx
pop r12
jmp rax
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.SystemFunction036
mov rcx, rax
call rbx
mov qword [0x140109000], rax
lea rax, [dbg.mingw_rand_s]
jmp 0x14002464f

Function at 0x140025460
Capabilities:
Create directory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov r12, rcx
mov rbx, rdx
mov rcx, qword [rcx]
call qword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
jne 0x1400254a0
call sym.unk_3179
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
call qword [sym.imp.msvcrt.dll__errno]
mov esi, dword [rax]
cmp esi, 0x11
je 0x1400254c8
call sym.unk_3180
mov dword [rbx], esi
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
mov rdx, rbx
mov rcx, r12
call sym.unk_3745
cmp al, 2
jne 0x1400254ad
xor eax, eax
jmp 0x14002548f

Function at 0x140026960
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x14002698c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x140027600
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x30
cmp byte [0x1400d6ed0], 0
jne 0x14002770a
mov byte [0x1400d6ed0], 1
call sym.unk_3952
test rax, rax
je 0x1400276e0
mov r12, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [r12], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add r12, rax
mov rcx, r12
call sym.unk_3942
mov ecx, 2
mov rbx, qword [dbg.__acrt_iob_func]
mov r13, rax
call rbx
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x1400276d1
call rbx
mov rcx, r12
mov rdx, rax
call sym.fputs
mov ecx, 2
call rbx
mov r8d, 2
mov edx, 1
lea rcx, [0x1400d7521]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x1400276cc
mov rcx, r13
call sym.free
call sym.__cxa_rethrow
call rbx
mov rcx, r13
mov rdx, rax
call sym.fputs
jmp 0x14002769b
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x14002779f
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov r12, rax
call rbx
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rbx
mov rdx, rax
mov rcx, r12
call sym.fputs
mov ecx, 2
call rbx
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x140027705
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x140027705

Function at 0x1400834d0
Capabilities:
Create directory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov r12, rcx
mov rbx, rdx
mov rcx, qword [rcx]
call qword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
jne 0x140083510
call sym.unk_3179
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
call qword [sym.imp.msvcrt.dll__errno]
mov esi, dword [rax]
cmp esi, 0x11
je 0x140083538
call sym.unk_3180
mov dword [rbx], esi
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
mov rdx, rbx
mov rcx, r12
call sym.unk_3745
cmp al, 2
jne 0x14008351d
xor eax, eax
jmp 0x1400834ff
Function at 0x140086ad0
Capabilities:
Delete directory
Delete file

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call sym.unk_3755
test al, al
je 0x140086b37
cmp al, 0xff
je 0x140086b28
mov rdx, rbx
mov rcx, rsi
call sym.unk_3745
cmp al, 2
je 0x140086b40
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140086b4d
mov eax, dword [rbx]
test eax, eax
jne 0x140086b37
call sym.unk_3179
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rbx + 8], rsi
mov dword [rbx], eax
xor eax, eax
jmp 0x140086b39
call sym.unk_3179
mov dword [rbx], 0
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x140086af8
call sym.unk_3179
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x140086c40
Capabilities:
Move file

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rbp, rcx
mov rdx, r8
mov rbx, r8
mov rcx, rsi
call sym.unk_3745
mov rdi, rax
cmp al, 0xff
je 0x140086ce0
mov ecx, dword [rbx]
test ecx, ecx
jne 0x140086cb8
test al, al
jne 0x140086cf8
mov rdx, qword [rsi]
mov rcx, qword [rbp]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140086cc8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [sym.imp.msvcrt.dll__errno]
cmp eax, 5
je 0x140086d30
call rdi
mov dword [rax], 5
call sym.unk_3180
mov rsi, rax
call rdi
mov eax, dword [rax]
mov qword [rbx + 8], rsi
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym.unk_3179
mov dword [rbx], 0
mov qword [rbx + 8], rax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym.unk_3179
mov dword [rbx], 0
mov qword [rbx + 8], rax
jmp 0x140086c71
mov rdx, rbx
mov rcx, rbp
call sym.unk_3745
mov edx, dword [rbx]
test edx, edx
jne 0x140086cb8
cmp dil, 2
je 0x140086d40
cmp al, 2
jne 0x140086c71
call sym.unk_3180
mov dword [rbx], 0x14
mov qword [rbx + 8], rax
jmp 0x140086cb8
call rdi
mov dword [rax], 0xd
jmp 0x140086ca6
cmp al, 2
je 0x140086c71
call sym.unk_3180
mov dword [rbx], 0x15
mov qword [rbx + 8], rax
jmp 0x140086cb8
Function at 0x14008e5b0
Capabilities:
Get disk size

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r13, qword [rsp + 0xa0]
mov qword [rsp + 0x28], 0
mov r12, rdx
mov rbp, r8
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x30]
mov rdi, r9
lea r9, [rsp + 0x38]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov esi, eax
call sym.unk_3179
mov rbx, rax
test esi, esi
je 0x14008e658
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x14008e619
mov qword [r12], rax
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14008e627
mov qword [rbp], rax
mov rax, qword [rsp + 0x28]
test rax, rax
jne 0x14008e650
mov dword [r13], 0
mov qword [r13 + 8], rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov qword [rdi], rax
jmp 0x14008e631
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [r13 + 8], rbx
mov dword [r13], eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x140093cc0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x140093ce7
call rbp
cmp dword [rax], 4
jne 0x140093d04
mov rcx, rdi
call sym.unk_3983
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sym.read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x140093ce0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400a7820
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x1400a7848
xor ecx, ecx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x1400a7890
cdqe
add rsi, rax
sub rbx, rax
jne 0x1400a7860
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x1400a789c
call rbp
cmp dword [rax], 4
je 0x1400a7860
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400b4740
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x14], 0x80000000
mov dword [rbp - 0x18], 0x7fffffff
mov qword [rbp - 8], 0
cmp qword [rbp - 8], 0xe2
ja 0x1400b47dc
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 8]
mov eax, dword [rax + rdx*4]
and eax, 0x80000000
mov ecx, eax
mov rax, qword [rbp - 8]
lea rdx, [rax + 1]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
and eax, 0x7fffffff
or eax, ecx
mov dword [rbp - 0x1c], eax
mov rax, qword [rbp - 8]
lea rdx, [rax + 0x18d]
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + rdx*4]
mov eax, dword [rbp - 0x1c]
shr eax, 1
xor edx, eax
mov eax, dword [rbp - 0x1c]
and eax, 1
test eax, eax
je 0x1400b47c1
mov eax, 0x9908b0df
jmp 0x1400b47c6
mov eax, 0
xor eax, edx
mov ecx, eax
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 8]
mov dword [rax + rdx*4], ecx
add qword [rbp - 8], 1
jmp 0x1400b4762
mov qword [rbp - 0x10], 0xe3
cmp qword [rbp - 0x10], 0x26e
ja 0x1400b485e
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x10]
mov eax, dword [rax + rdx*4]
and eax, 0x80000000
mov ecx, eax
mov rax, qword [rbp - 0x10]
lea rdx, [rax + 1]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
and eax, 0x7fffffff
or eax, ecx
mov dword [rbp - 0x20], eax
mov rax, qword [rbp - 0x10]
lea rdx, [rax - 0xe3]
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + rdx*4]
mov eax, dword [rbp - 0x20]
shr eax, 1
xor edx, eax
mov eax, dword [rbp - 0x20]
and eax, 1
test eax, eax
je 0x1400b4843
mov eax, 0x9908b0df
jmp 0x1400b4848
mov eax, 0
xor eax, edx
mov ecx, eax
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x10]
mov dword [rax + rdx*4], ecx
add qword [rbp - 0x10], 1
jmp 0x1400b47e4
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x9bc]
and eax, 0x80000000
mov edx, eax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax]
and eax, 0x7fffffff
or eax, edx
mov dword [rbp - 0x24], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x630]
mov eax, dword [rbp - 0x24]
shr eax, 1
xor edx, eax
mov eax, dword [rbp - 0x24]
and eax, 1
test eax, eax
je 0x1400b48a1
mov eax, 0x9908b0df
jmp 0x1400b48a6
mov eax, 0
xor edx, eax
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x9bc], edx
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x9c0], 0
nop
add rsp, 0x30
pop rbp
ret
Function at 0x1400b48d0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov eax, dword [rbp + 0x18]
mov ecx, eax
call method.unsigned_int_std::__detail.__mod_unsigned_int__0u__1u__0u__unsigned_int_
mov rdx, qword [rbp + 0x10]
mov dword [rdx], eax
mov qword [rbp - 8], 1
cmp qword [rbp - 8], 0x26f
ja 0x1400b4952
mov rax, qword [rbp - 8]
lea rdx, [rax - 1]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
shr eax, 0x1e
xor dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
imul eax, eax, 0x6c078965
mov dword [rbp - 0xc], eax
mov rax, qword [rbp - 8]
mov ecx, eax
call method.unsigned_int_std::__detail.__mod_unsigned_int__624u__1u__0u__unsigned_int_
add dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
mov ecx, eax
call method.unsigned_int_std::__detail.__mod_unsigned_int__0u__1u__0u__unsigned_int_
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp - 8]
mov dword [rdx + rcx*4], eax
add qword [rbp - 8], 1
jmp 0x1400b48f7
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x9c0], 0x270
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400b49a0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x9c0]
cmp rax, 0x26f
jbe 0x1400b49c8
mov rcx, qword [rbp + 0x10]
call sym._ZNSt23mersenne_twister_engineIjLy32ELy624ELy397ELy31ELj2567483615ELy11ELj4294967295ELy7ELj2636928640ELy15ELj4022730752ELy18EL
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x9c0]
lea rcx, [rax + 1]
mov rdx, qword [rbp + 0x10]
mov qword [rdx + 0x9c0], rcx
mov rdx, qword [rbp + 0x10]
mov eax, dword [rdx + rax*4]
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shr eax, 0xb
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shl eax, 7
and eax, 0x9d2c5680
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shl eax, 0xf
and eax, 0xefc60000
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shr eax, 0x12
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
add rsp, 0x30
pop rbp
ret

Function at 0x1400c9cf0
Capabilities:
Encode data using xor

Disassembly:
movabs r9, 0xc6a4a7935bd1e995
mov rax, rdx
mov r11, rdx
imul rax, r9
and r11, 0xfffffffffffffff8
add r11, rcx
xor rax, r8
cmp rcx, r11
je 0x1400c9d40
nop dword [rax + rax]
mov r10, qword [rcx]
add rcx, 8
imul r10, r9
mov r8, r10
shr r8, 0x2f
xor r8, r10
imul r8, r9
xor r8, rax
mov rax, r8
imul rax, r9
cmp r11, rcx
jne 0x1400c9d18
and edx, 7
je 0x1400c9d75
sub edx, 1
xor r8d, r8d
movsxd rdx, edx
nop
movzx ecx, byte [r11 + rdx]
shl r8, 8
sub rdx, 1
add r8, rcx
test edx, edx
jns 0x1400c9d50
xor r8, rax
movabs rax, 0xc6a4a7935bd1e995
imul rax, r8
mov r8, rax
shr r8, 0x2f
xor rax, r8
movabs r8, 0xc6a4a7935bd1e995
imul rax, r8
mov r8, rax
shr r8, 0x2f
xor rax, r8
ret

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

Disassembly:
mov rax, r8
test rdx, rdx
je 0x1400cab5c
movabs r9, 0x100000001b3
add rdx, rcx
nop dword [rax]
movsx r8, byte [rcx]
add rcx, 1
xor rax, r8
imul rax, r9
cmp rcx, rdx
jne 0x1400cab48
ret
Function at 0x1400d39e0
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
call dbg.__main
mov rax, qword [0x1400dd420]
xor edx, edx
mov r9d, dword [rax]
mov rax, qword [0x1400dd410]
mov r8, qword [rax]
mov rax, qword [0x1400dd400]
mov rcx, qword [rax]
add rsp, 0x28
jmp sym.WinMain
Function at 0x140002a70
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
test rcx, rcx
jne 0x140002a98
xor eax, eax
jmp 0x140002bcc
xor edi, edi
mov rsi, rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140002bc9
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
je 0x140002bb3
lea ecx, [rbx + 2]
call fcn.140097a1c
mov rsi, rax
test rax, rax
je 0x140002bb3
mov dword [rsp + 0x70], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x70]
mov r8d, ebx
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002bb3
cmp ebx, dword [rsp + 0x70]
jne 0x140002bb3
mov byte [rbx + rsi], dil
lea eax, [rbx + 1]
mov byte [rax + rsi], dil
lea ecx, [rdi + 0x58]
call fcn.1400aee14
mov qword [rsp + 0x78], rax
test rax, rax
je 0x140002b54
mov rcx, rax
call fcn.140002bf0
mov r12, rax
jmp 0x140002b57
mov r12, rdi
test r12, r12
je 0x140002bb3
mov rcx, qword [r12 + 8]
mov r9d, 1
mov r8d, ebx
mov rdx, rsi
mov rcx, qword [rcx]
call fcn.140006500
mov rdi, qword [r12 + 0x10]
mov qword [rsp + 0x78], r12
mov rcx, qword [r12 + 8]
mov rcx, qword [rcx]
call fcn.140005f60
mov rcx, qword [r12 + 8]
call fcn.1400ad0b8
nop
lea rcx, [r12 + 0x18]
call fcn.140003e40
mov rcx, qword [r12 + 0x18]
call fcn.1400ad0b8
mov rcx, r12
call fcn.1400ad0b8
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x140002bc9
mov rcx, rsi
call fcn.1400afc58
mov rax, rdi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
jmp 0x140002a70
Function at 0x1400031b0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
test rcx, rcx
jne 0x140002a98
xor eax, eax
jmp 0x140002bcc
xor edi, edi
mov rsi, rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140002bc9
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
je 0x140002bb3
lea ecx, [rbx + 2]
call fcn.140097a1c
mov rsi, rax
test rax, rax
je 0x140002bb3
mov dword [rsp + 0x70], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x70]
mov r8d, ebx
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002bb3
cmp ebx, dword [rsp + 0x70]
jne 0x140002bb3
mov byte [rbx + rsi], dil
lea eax, [rbx + 1]
mov byte [rax + rsi], dil
lea ecx, [rdi + 0x58]
call fcn.1400aee14
mov qword [rsp + 0x78], rax
test rax, rax
je 0x140002b54
mov rcx, rax
call fcn.140002bf0
mov r12, rax
jmp 0x140002b57
mov r12, rdi
test r12, r12
je 0x140002bb3
mov rcx, qword [r12 + 8]
mov r9d, 1
mov r8d, ebx
mov rdx, rsi
mov rcx, qword [rcx]
call fcn.140006500
mov rdi, qword [r12 + 0x10]
mov qword [rsp + 0x78], r12
mov rcx, qword [r12 + 8]
mov rcx, qword [rcx]
call fcn.140005f60
mov rcx, qword [r12 + 8]
call fcn.1400ad0b8
nop
lea rcx, [r12 + 0x18]
call fcn.140003e40
mov rcx, qword [r12 + 0x18]
call fcn.1400ad0b8
mov rcx, r12
call fcn.1400ad0b8
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x140002bc9
mov rcx, rsi
call fcn.1400afc58
mov rax, rdi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
jmp 0x140002a70
Function at 0x140003750
Capabilities:
Clear file content
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x1400038c8
cmp word [rcx], bx
je 0x1400038c8
mov qword [rsp + 0x38], rbx
mov r8, rcx
mov qword [rsp + 0x30], rbx
mov ecx, 0xfde9
or r9d, 0xffffffff
xor edx, edx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x70], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea r12d, [rax + 1]
movsxd rcx, r12d
call fcn.1400ad42c
mov rbp, rax
test rax, rax
je 0x1400038b4
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
or r9d, 0xffffffff
mov r8, rdi
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x1400037ec
cdqe
mov byte [rax + rbp], bl
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov edx, 0x40000000
lea r8d, [r9 + 1]
mov rcx, rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000389d
lea r9, [rsp + 0x60]
lea rdx, [0x1400f95ac]
mov r8d, 3
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000389d
lea r9, [rsp + 0x60]
lea rdx, str.__xml_version_1.0__encoding_UTF_8____
mov r8d, 0x27
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000389d
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
repne scasb al, byte [rdi]
lea r9, [rsp + 0x60]
mov rdx, rbp
not rcx
mov qword [rsp + 0x20], rbx
lea r8, [rcx - 1]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebx, 1
mov rcx, rbp
call fcn.1400b0538
cmp rsi, 0xffffffffffffffff
je 0x1400038b4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
mov eax, ebx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov eax, ebx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400204d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
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
jne 0x140020503
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140020547
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140020542
cmp rbx, r11
jae 0x140020547
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140020530
cmp rbx, r11
jb 0x14002054b
xor eax, eax
jmp 0x140020557
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140020960
Capabilities:
Hash data with md5

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x110
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x14012a4f8]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rbp, rcx
add rcx, 0x38
lea rdx, [rsp + 0x38]
call fcn.140031810
nop
cmp qword [rsp + 0x50], 0
je 0x140020b78
mov r8d, 7
lea rdx, [0x1400fc320]
lea rcx, [rsp + 0x38]
call fcn.1400219b0
lea rdx, vtable.CMD5Checksum.0
mov qword [rsp + 0x90], rdx
xor eax, eax
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe0], rax
xor esi, esi
mov dword [rsp + 0xec], esi
mov dword [rsp + 0xe8], esi
mov dword [rsp + 0xf0], 0x67452301
mov dword [rsp + 0xf4], 0xefcdab89
mov dword [rsp + 0xf8], 0x98badcfe
mov dword [rsp + 0xfc], 0x10325476
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae r8, qword [rsp + 0x40]
mov r9d, dword [rsp + 0x50]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x90]
call fcn.1400321a0
nop
mov rdi, qword [rax]
lea rcx, [0x14012bdf0]
mov rax, qword [0x14012bdf0]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
test rdi, rdi
je 0x140020ad0
test rdi, 0xffffffffffff0000
jne 0x140020ad0
movzx edi, di
xor edx, edx
mov ecx, edi
call fcn.140020620
test rax, rax
je 0x140020ae2
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140022430
mov rbx, qword [rsp + 0x20]
jmp 0x140020ae2
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140021730
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x80], 0xf
mov qword [rsp + 0x78], rsi
mov byte [rsp + 0x68], 0
xor eax, eax
or rsi, 0xffffffffffffffff
mov rcx, rsi
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140004cb0
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140020b36
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x140020b53
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rcx, [rbp + 8]
lea rdx, [rsp + 0x60]
call fcn.140021120
nop
cmp qword [rsp + 0x80], 0x10
jb 0x140020b78
mov rcx, qword [rsp + 0x68]
call fcn.1400ad0b8
nop
cmp qword [rsp + 0x58], 0x10
jb 0x140020b8a
mov rcx, qword [rsp + 0x40]
call fcn.1400ad0b8
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1400ad2c0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret