joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18003b6c0
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 0x18003b6e8
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 0x18003b70e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x18003b710
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x18003b769
test ecx, ecx
jle 0x18003b749
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 0x18003b769
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x18003b769
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

Function at 0x18003b790
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 0x18003b7b2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x18003b7c8
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 0x18003b7e4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18003b7e6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18003b822
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 0x18003b8be
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18003b85d
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 0x18003b89e
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 0x18003b8be
cmp rbx, rax
ja 0x18003b870
test rbx, rbx
je 0x18003b8be
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
Function at 0x18003bd20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x180706040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18003bd4d
xor eax, eax
jmp 0x18003beb9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x18003bd87
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x18003bd87
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 0x18003beb9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18003beac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18003bdca
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 0x18003bdf5
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 0x18003beb1
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 0x18003be64
sub eax, 1
je 0x18003be64
cmp eax, 2
jne 0x18003beac
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 0x18003beb1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x18003be92
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 0x18003beac
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x18003beb1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18003e830
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x18003c2f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180706040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18003c3c3
cmp byte [rcx + 0x71], 0
je 0x18003c3c3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18003c3bf
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 0x18003c384
sub eax, 1
je 0x18003c388
cmp eax, 2
jne 0x18003c3bf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18003e830
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x18003c3b6
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 0x18003c3bf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18003c36c
xor al, al
jmp 0x18003c36c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18003e830
add rsp, 0x60
pop rbx
ret
Function at 0x18003d724
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x18003d788
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x18003d776
mov r8, qword [rbx]
xor edx, edx
mov r8d, dword [r8 + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18003d76f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x18003d743
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x180706ef0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18003d798
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov dword [rax + 0x10], edx
push rdi
sub rsp, 0x20
mov eax, ecx
imul rdi, rax, 0x38
add rdi, qword [0x1807071a0]
mov rdx, qword [rdi]
mov cl, byte [rdi + 0x20]
mov rsi, rdx
lea rbx, [rdx - 5]
and cl, 1
je 0x18003d7d1
mov rsi, rbx
movzx eax, cl
lea r9, [rsp + 0x38]
test cl, cl
mov r8d, 0x40
cmove rbx, rdx
lea rbp, [rax*2 + 5]
mov rcx, rbx
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18003d804
mov eax, 0xa
jmp 0x18003d851
mov byte [rbx], 0xe9
mov eax, dword [rdi + 8]
sub eax, esi
sub eax, 5
mov dword [rbx + 1], eax
test byte [rdi + 0x20], 1
je 0x18003d820
mov rax, qword [rdi]
mov word [rax], 0xf9eb
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [rdi + 0x20], 6
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x18003db08
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x18003db1f
cmp r8b, 0x90
je 0x18003db1f
cmp r8b, 0xcc
jne 0x18003db41
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x18003db3d
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x18003db41
add edx, r10d
cmp edx, r9d
jb 0x18003db2d
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x18003dea8
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x18003def2
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x180707198]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
jmp 0x18003df2b
cmp rbx, r14
jb 0x18003df28
cmp rbx, r12
jae 0x18003df28
cmp qword [rbx + 8], rsi
jne 0x18003e08d
mov rbx, qword [rbx]
test rbx, rbx
jne 0x18003df14
mov r15, rdi
cmp rdi, r14
jb 0x18003e047
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
jmp 0x18003df77
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18003dfb1
cmp dword [rbp - 0x10], 0x10000
je 0x18003df81
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x18003dfb1
sub r15, r13
cmp r15, r14
jae 0x18003df4d
jmp 0x18003dfb1
test r15, r15
je 0x18003dfb1
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x18003e052
cmp r15, r14
jae 0x18003df3c
test rbx, rbx
jmp 0x18003e045
mov r15d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov r14d, r15d
div r15
mov eax, r15d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r12
ja 0x18003e08d
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18003e08d
cmp dword [rbp - 0x10], 0x10000
je 0x18003e020
xor edx, edx
lea edi, [r15 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div r14
sub rdi, rdx
cmp rdi, r12
jbe 0x18003dfdd
jmp 0x18003e08d
test rdi, rdi
je 0x18003e08d
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x18003e052
cmp rdi, r12
jbe 0x18003dfb9
jmp 0x18003e08d
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov edx, 0x40
mov qword [rcx], rsi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rsi, rax
cmp rdx, 0xfc0
jbe 0x18003e05e
mov rax, qword [0x180707198]
mov qword [rbx], rax
mov qword [0x180707198], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14000d0be
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x140010d4c
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x14000c000], ax
jne 0x140010dd9
movsxd rcx, dword [0x14000c03c]
lea rdx, [0x14000c000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140010dd9
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140010dd9
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140010dc0
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140010dba
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140010dc2
add rdx, 0x28
jmp 0x140010d9f
xor edx, edx
test rdx, rdx
jne 0x140010dcb
xor al, al
jmp 0x140010ddf
cmp dword [rdx + 0x24], 0
jge 0x140010dd5
xor al, al
jmp 0x140010ddf
mov al, 1
jmp 0x140010ddf
xor al, al
jmp 0x140010ddf
add rsp, 0x18
ret

Function at 0x14000d11d
Capabilities:
Terminate process

Disassembly:
jmp 0x140010540
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x14000d14f
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rcx, 0x501d1d68
jmp 0x1400027d9
dec rcx
jmp 0x1400028a9
jne 0x1400027d9
jmp 0x140002988
jmp 0x140002cbc
jmp 0x140002d32
jmp 0x140002db8
jmp 0x140002dff
jmp 0x140002e60
jmp 0x140002e75
jmp 0x140002eef
jmp 0x140002f3d
jmp 0x140002fa6
jmp 0x140002fdc
jmp 0x140003032
jmp 0x140003086
jmp 0x1400030d3
jmp 0x14000310e
jmp 0x140003141
jmp 0x14000319e
jmp 0x140003214
jmp 0x140003238
jmp 0x1400032bc
jmp 0x1400032d7
xor rcx, rcx
nop
nop
nop
mov rdx, 0x8e88
nop
nop
nop
nop
nop
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
nop
nop
nop
call 0x140003304
pop rsi
add rsi, 0xe74
nop
nop
nop
nop
nop
mov rdi, rax
mov rcx, 0x8e88
rep movsb byte [rdi], byte [rsi]
nop
nop
jmp rax
xor rcx, rcx
invalid
invalid
Function at 0x14000e1a0
Capabilities:
Link many functions at runtime
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, rcx
mov rbp, r8
lea rcx, str.WINICONV_LIBICONV_DLL
mov r15, rdx
xor esi, esi
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdi, rax
test rax, rax
je 0x14000e365
cmp byte [rax], sil
je 0x14000e365
nop word [rax + rax]
mov edx, 0x2c
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
mov rbx, rax
cmp rdi, rax
je 0x14000e265
test rax, rax
jne 0x14000e21d
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], 0
jne 0x14000e211
add rbx, rdi
mov rdx, rbx
mov rcx, rdi
sub rdx, rdi
call fcn.14000ffe0
mov rdi, rax
test rax, rax
je 0x14000e365
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rsi, rsi
je 0x14000e265
cmp rsi, qword [0x14001ae30]
jne 0x14000e28d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
movzx eax, byte [rbx]
mov rcx, rsi
cmp al, 0x2c
jne 0x14000e279
movzx eax, byte [rbx + 1]
lea rdi, [rbx + 1]
jmp 0x14000e27c
mov rdi, rbx
test al, al
jne 0x14000e1f0
test rcx, rcx
je 0x14000e365
lea rdx, str.libiconv_open
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x14000e2b8
lea rdx, str.iconv_open
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rdx, str.libiconv_close
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [r14 + 8], rax
test rax, rax
jne 0x14000e2e5
lea rdx, str.iconv_close
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [r14 + 8], rax
lea rdx, str.libiconv
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [r14 + 0x10], rax
test rax, rax
jne 0x14000e312
lea rdx, str.iconv
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [r14 + 0x10], rax
lea rdx, str._errno
mov rcx, rsi
call fcn.14000d5d0
mov qword [r14 + 0x18], rax
test rbx, rbx
je 0x14000e35c
cmp qword [r14 + 8], 0
je 0x14000e35c
cmp qword [r14 + 0x10], 0
je 0x14000e35c
test rax, rax
je 0x14000e35c
mov rdx, rbp
mov rcx, r15
call rbx
mov qword [r14], rax
cmp rax, 0xffffffffffffffff
je 0x14000e35c
mov qword [r14 + 0x90], rsi
mov eax, 1
jmp 0x14000e367
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14000e400
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
cmp qword [0x14001ae38], 0
je 0x14000e418
mov eax, 1
add rsp, 0x28
ret
lea rcx, str.mlang.dll
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
jne 0x14000e43c
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
lea rdx, str.ConvertINetString
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ConvertINetMultiByteToUnicode
mov rcx, rbx
mov qword [0x14001ae38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ConvertINetUnicodeToMultiByte
mov rcx, rbx
mov qword [0x14001ae40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.IsConvertINetStringAvailable
mov rcx, rbx
mov qword [0x14001ae48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.LcidToRfc1766A
mov rcx, rbx
mov qword [0x14001ae50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Rfc1766ToLcidA
mov rcx, rbx
mov qword [0x14001ae58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x20]
mov qword [0x14001ae60], rax
mov eax, 1
add rsp, 0x28
ret
Function at 0x14000d240
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000d309
cmp byte [rcx + 0x71], 0
je 0x14000d309
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14000d2fc
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
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 0x14000d2b8
sub eax, 1
je 0x14000d2bc
cmp eax, 2
jne 0x14000d2fc
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x14000d2ea
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000d2fc
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret
Function at 0x14000d6c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, qword [rcx]
mov r10d, 0x270
mov ecx, dword [r9]
cmp ecx, r10d
jne 0x14000d721
lea r8, [r9 + 8]
nop dword [rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14000d6e0
mov ecx, dword [r9]
jmp 0x14000d80b
cmp ecx, 0x4e0
jb 0x14000d80b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14000d740
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14000d790
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x140013ce0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x50
mov byte [rax - 0x38], 0x6c
xor r9d, r9d
mov byte [rax - 0x37], 0x51
movabs r11, 0x889d00639c60d638
mov byte [rax - 0x36], 0x59
mov r10, r11
mov byte [rax - 0x35], 0x4f
mov rbx, rcx
mov byte [rax - 0x34], 0x12
lea edi, [r9 + 0xf]
mov byte [rax - 0x33], 0x51
mov byte [rax - 0x32], 0x41
mov byte [rax - 0x31], 0x59
mov byte [rax - 0x30], 0x2d
mov byte [rax - 0x2f], 0x47
movzx eax, byte [rax - 0x38]
lea rax, [rsp + 0x20]
sub r10, rax
nop word [rax + rax]
mov rax, r9
lea rdx, [rsp + 0x20]
add rdx, r9
and eax, edi
cmp rax, rdi
cmovae rax, rdi
movzx r8d, byte [rdx]
shl rax, 2
shrx rcx, r11, rax
and cl, dil
lea eax, [rdx + r10]
xor cl, al
xor cl, r8b
mov byte [rsp + r9 + 0x20], cl
inc r9
cmp r9, 0xa
jb 0x140013d40
lea rcx, [rsp + 0x30]
call fcn.140013a90
lea rcx, [rsp + 0x20]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rcx + r8], 0
jne 0x140013d91
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.14000e6c0
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
vmovups ymm0, ymmword [rax]
vmovups ymmword [rbx], ymm0
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], rdi
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, rdi
jbe 0x140013e1c
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013e14
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013e14
vzeroupper
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
vzeroupper
call fcn.14007fd28
mov rax, rbx
vzeroupper
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret