joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017160
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
movzx eax, r9b
mov rdi, r8
movzx r11d, al
mov rbx, rdx
and r11b, 0x1f
shr eax, 5
mov r10, rcx
and eax, 0x80000003
jge 0x14001719a
dec eax
or eax, 0xfffffffc
inc eax
movzx ecx, al
movzx ebp, r11b
mov r9d, dword [r8 + rcx*4]
mov ecx, 0x20
sub cl, r11b
movzx edx, cl
xor ecx, ecx
test r11b, r11b
bswap r9d
cmove edx, ecx
sub rbx, r10
movzx esi, dl
lea r11d, [rcx + 4]
nop word [rax + rax]
inc al
lea r10, [r10 + 4]
and al, 3
movzx ecx, al
mov r8d, dword [rdi + rcx*4]
mov ecx, esi
bswap r8d
mov edx, r8d
shr edx, cl
mov ecx, ebp
shl r9d, cl
or edx, r9d
mov r9d, r8d
bswap edx
xor edx, dword [rbx + r10 - 4]
mov dword [r10 - 4], edx
sub r11, 1
jne 0x1400171d0
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
Function at 0x14001a200
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push rdi
sub rsp, 0x70
mov rax, qword [0x140053010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov eax, dword [rcx + 8]
mov rdi, rcx
test eax, eax
jne 0x14001a28e
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x88], rbx
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rbx, qword [rsp + 0x30]
mov ecx, 0x100000
test eax, eax
cmove rbx, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor edx, edx
mov rax, rbx
div qword [rdi]
mov rbx, qword [rsp + 0x88]
mov r8, rax
mov eax, 3
test r8d, r8d
cmove r8d, eax
mov eax, 0xa
cmp r8d, dword [rsp + 0x40]
cmovae r8d, dword [rsp + 0x40]
cmp r8d, eax
cmovb eax, r8d
mov dword [rdi + 8], eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14001a2c0
add rsp, 0x70
pop rdi
ret

Function at 0x140022a4c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140022878
Function at 0x14002ad24
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x14002ad01
call fcn.1400252bc
mov dword [rax], 0x16
call fcn.140022378
or eax, 0xffffffff
jmp 0x14002ad1e
sub dword [rcx + 0x10], 1
jns 0x14002ad10
add rsp, 0x28
jmp 0x140033364
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x14002ace0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
jne 0x140033396
call fcn.1400252bc
mov dword [rax], 0x16
call fcn.140022378
jmp 0x1400334b3
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400334b3
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400334b3
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400333c5
lock or dword [rcx + 0x14], 0x10
jmp 0x1400334b3
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400333d9
call fcn.140035aec
mov rbx, qword [rdi + 8]
mov rcx, rdi
mov qword [rdi], rbx
call fcn.14002a8b0
mov r8d, dword [rdi + 0x20]
mov ecx, eax
mov rdx, rbx
call fcn.140034c80
mov dword [rdi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400334a1
mov eax, dword [rdi + 0x14]
or esi, 0xffffffff
test al, 6
jne 0x14003346c
mov rcx, rdi
call fcn.14002a8b0
cmp eax, esi
je 0x140033457
mov rcx, rdi
call fcn.14002a8b0
cmp eax, 0xfffffffe
je 0x140033457
mov rcx, rdi
call fcn.14002a8b0
movsxd rbx, eax
lea r14, [0x1400553f0]
mov rcx, rdi
sar rbx, 6
call fcn.14002a8b0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14003345e
lea rdx, [0x140053270]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14003346c
lock or dword [rdi + 0x14], 0x20
cmp dword [rdi + 0x20], 0x200
jne 0x140033490
mov eax, dword [rdi + 0x14]
shr eax, 6
test al, 1
je 0x140033490
mov eax, dword [rdi + 0x14]
shr eax, 8
test al, 1
jne 0x140033490
mov dword [rdi + 0x20], 0x1000
mov rax, qword [rdi]
add dword [rdi + 0x10], esi
movzx esi, byte [rax]
inc rax
mov qword [rdi], rax
jmp 0x1400334b6
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rdi + 0x14], eax
and dword [rdi + 0x10], 0
or esi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1400334d0
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x1400331f6
call fcn.1400252bc
mov dword [rax], 0x16
call fcn.140022378
jmp 0x140033341
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140033341
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140033341
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140033225
lock or dword [rcx + 0x14], 0x10
jmp 0x140033341
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140033239
call fcn.140035aec
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x140033249
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x14003324c
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.14002a8b0
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.140034c80
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14003332f
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1400332dd
mov rcx, rbx
call fcn.14002a8b0
cmp eax, 0xffffffff
je 0x1400332c8
mov rcx, rbx
call fcn.14002a8b0
cmp eax, 0xfffffffe
je 0x1400332c8
mov rcx, rbx
call fcn.14002a8b0
movsxd rdi, eax
lea r14, [0x1400553f0]
mov rcx, rbx
sar rdi, 6
call fcn.14002a8b0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1400332cf
lea rdx, [0x140053270]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400332dd
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140033301
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x140033301
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x140033301
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x14003331f
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x14003332a
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x140033346
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x1400331c0
Function at 0x140059660
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14005966d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14005967d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140059665
lea eax, [rcx + 1]
jmp 0x14005968b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14005969e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140059684
sub eax, 3
jb 0x1400596be
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14005970d
sar eax, 1
movsxd rbp, eax
jb 0x1400596f4
jmp 0x1400596cc
add ebx, ebx
jne 0x1400596ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400596f4
inc ecx
add ebx, ebx
jne 0x1400596da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400596f4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400596ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400596dc
add ecx, 2
jmp 0x1400596f9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140059622
jmp 0x14005966d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2a000
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140059759
cmp rsi, rcx
jae 0x140059761
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140059740
cmp al, 0x8f
ja 0x140059740
cmp byte [rsi - 2], 0xf
je 0x140059746
sub al, 0xe8
cmp al, 1
ja 0x14005972a
cmp rsi, rcx
jae 0x140059761
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140059730
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140059761
lodsb al, byte [rsi]
jmp 0x140059740
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x57000]
mov eax, dword [rdi]
or eax, eax
je 0x1400597ca
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x68440]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14005976e
jns 0x1400597a3
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1400597ad
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400597c4
mov qword [rbx], rax
add rbx, 8
jmp 0x14005978e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140059804
cmp al, 0xef
ja 0x1400597f6
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400597d6
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400597e5
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x227]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140059858
sub rsp, 0xffffffffffffff80
jmp 0x14000cdb0
Function at 0x140011465
Capabilities:
Terminate process

Disassembly:
jmp 0x14001afe0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x140011582
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001c330
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001c350
xor al, al
jmp 0x14001c3d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001c363
xor al, al
jmp 0x14001c3d1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001c38d
xor al, al
jmp 0x14001c3d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001c3a1
xor al, al
jmp 0x14001c3d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001c3b3
xor al, al
jmp 0x14001c3d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001c3cf
xor al, al
jmp 0x14001c3d1
mov al, 1
add rsp, 0x38
ret
Function at 0x14001a130
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400117f3
movzx eax, al
test eax, eax
jne 0x14001a150
mov ecx, 7
call fcn.1400116ae
nop
mov byte [rsp + 0x20], 0
call fcn.1400116ea
mov byte [rsp + 0x21], al
cmp dword [0x140028b78], 1
jne 0x14001a174
mov ecx, 7
call fcn.1400116ae
nop
jmp 0x14001a1cc
cmp dword [0x140028b78], 0
jne 0x14001a1c7
mov dword [0x140028b78], 1
lea rdx, [0x140022660]
lea rcx, [0x140022330]
call fcn.1400113c0
test eax, eax
je 0x14001a1a8
mov eax, 0xff
jmp 0x14001a2d1
lea rdx, [0x140022220]
lea rcx, [section..rdata]
call fcn.1400116d6
mov dword [0x140028b78], 2
jmp 0x14001a1cc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011695
call fcn.1400115af
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x14001a229
mov rcx, qword [rsp + 0x30]
call fcn.140011316
movzx eax, al
test eax, eax
je 0x14001a229
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14002f020]
nop
call fcn.140011609
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001a25d
mov rcx, qword [rsp + 0x38]
call fcn.140011316
movzx eax, al
test eax, eax
je 0x14001a25d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011794
nop
call fcn.14001a380
mov dword [rsp + 0x28], eax
call fcn.140011582
movzx eax, al
test eax, eax
jne 0x14001a27c
mov ecx, dword [rsp + 0x28]
call fcn.1400110af
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001a28b
call fcn.1400117ad
nop
xor edx, edx
mov cl, 1
call fcn.1400112da
mov eax, dword [rsp + 0x28]
jmp 0x14001a2d1
add rsp, 0x68
ret
Function at 0x140002340
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x140002350
push r12
sub rsp, 0x50
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r12, rax
test rax, rax
jne 0x140002394
lea r8, str.Out_of_memory___aborting
lea rdx, str.Fatal_Error
lea ecx, [rax + 0x10]
xor r9d, r9d
call sub.SDL2.dll_SDL_ShowSimpleMessageBox
xor eax, eax
add rsp, 0x50
pop r12
ret
mov eax, dword [rsp + 0x60]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x20], r15
inc eax
movsxd rbx, eax
shl rbx, 3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
jne 0x1400023f6
lea r8, str.Out_of_memory___aborting
lea rdx, str.Fatal_Error
lea ecx, [rax + 0x10]
xor r9d, r9d
call sub.SDL2.dll_SDL_ShowSimpleMessageBox
mov rbx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x20]
xor eax, eax
add rsp, 0x50
pop r12
ret
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rdi
xor edi, edi
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r14
mov r14d, edi
cmp dword [rsp + 0x60], edi
jle 0x1400024bf
sub rax, r12
mov rsi, r12
mov qword [rsp + 0x68], rax
nop dword [rax]
mov rcx, qword [rsi]
call sub.SDL2.dll_SDL_wcslen
mov r8, qword [rsi]
lea rdx, str.UTF_16LE
lea r9, [rax*2 + 2]
lea rcx, str.UTF_8
call sub.SDL2.dll_SDL_iconv_string
mov rbp, rax
test rax, rax
je 0x140002550
mov rcx, rax
call sub.SDL2.dll_SDL_strlen
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [r13 + 1]
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x68]
mov qword [rcx + rsi], rax
test rax, rax
je 0x140002550
mov r8d, r13d
mov rdx, rbp
mov rcx, rax
call sub.SDL2.dll_SDL_memcpy
mov rcx, rbp
call sub.SDL2.dll_SDL_free
inc r14d
add rsi, 8
cmp r14d, dword [rsp + 0x60]
jl 0x140002430
movsxd rax, r14d
mov rcx, r12
mov qword [r15 + rax*8], rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
call sub.SDL2.dll_SDL_SetMainReady
mov ecx, dword [rsp + 0x60]
mov rdx, r15
call fcn.1400016c0
mov esi, eax
cmp dword [rsp + 0x60], edi
jle 0x140002510
mov rbx, r15
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbx]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
inc edi
lea rbx, [rbx + 8]
cmp edi, dword [rsp + 0x60]
jl 0x1400024f0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x20]
add rsp, 0x50
pop r12
ret
xor r9d, r9d
lea r8, str.Out_of_memory___aborting
lea rdx, str.Fatal_Error
lea ecx, [r9 + 0x10]
call sub.SDL2.dll_SDL_ShowSimpleMessageBox
xor eax, eax
jmp 0x140002526
Function at 0x140002350
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x140002350
push r12
sub rsp, 0x50
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r12, rax
test rax, rax
jne 0x140002394
lea r8, str.Out_of_memory___aborting
lea rdx, str.Fatal_Error
lea ecx, [rax + 0x10]
xor r9d, r9d
call sub.SDL2.dll_SDL_ShowSimpleMessageBox
xor eax, eax
add rsp, 0x50
pop r12
ret
mov eax, dword [rsp + 0x60]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x20], r15
inc eax
movsxd rbx, eax
shl rbx, 3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
jne 0x1400023f6
lea r8, str.Out_of_memory___aborting
lea rdx, str.Fatal_Error
lea ecx, [rax + 0x10]
xor r9d, r9d
call sub.SDL2.dll_SDL_ShowSimpleMessageBox
mov rbx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x20]
xor eax, eax
add rsp, 0x50
pop r12
ret
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rdi
xor edi, edi
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r14
mov r14d, edi
cmp dword [rsp + 0x60], edi
jle 0x1400024bf
sub rax, r12
mov rsi, r12
mov qword [rsp + 0x68], rax
nop dword [rax]
mov rcx, qword [rsi]
call sub.SDL2.dll_SDL_wcslen
mov r8, qword [rsi]
lea rdx, str.UTF_16LE
lea r9, [rax*2 + 2]
lea rcx, str.UTF_8
call sub.SDL2.dll_SDL_iconv_string
mov rbp, rax
test rax, rax
je 0x140002550
mov rcx, rax
call sub.SDL2.dll_SDL_strlen
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [r13 + 1]
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x68]
mov qword [rcx + rsi], rax
test rax, rax
je 0x140002550
mov r8d, r13d
mov rdx, rbp
mov rcx, rax
call sub.SDL2.dll_SDL_memcpy
mov rcx, rbp
call sub.SDL2.dll_SDL_free
inc r14d
add rsi, 8
cmp r14d, dword [rsp + 0x60]
jl 0x140002430
movsxd rax, r14d
mov rcx, r12
mov qword [r15 + rax*8], rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
call sub.SDL2.dll_SDL_SetMainReady
mov ecx, dword [rsp + 0x60]
mov rdx, r15
call fcn.1400016c0
mov esi, eax
cmp dword [rsp + 0x60], edi
jle 0x140002510
mov rbx, r15
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbx]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
inc edi
lea rbx, [rbx + 8]
cmp edi, dword [rsp + 0x60]
jl 0x1400024f0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x20]
add rsp, 0x50
pop r12
ret
xor r9d, r9d
lea r8, str.Out_of_memory___aborting
lea rdx, str.Fatal_Error
lea ecx, [r9 + 0x10]
call sub.SDL2.dll_SDL_ShowSimpleMessageBox
xor eax, eax
jmp 0x140002526
Function at 0x140002840
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 0x14000289d
lea rbx, [0x14004cde0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140002884
cmp r10, 2
jb 0x140002884
cmp byte [r9], r8b
jne 0x140002884
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 0x140002860
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1400028df
lea rbx, [0x14004cde0]
cmp r8b, 0x23
jne 0x1400028c3
cmp byte [r9], r8b
jne 0x1400028c3
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 0x1400028b0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140002a20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x140002a3a
mov qword [r8], 0
lea rdx, [0x14004c844]
call fcn.1400028f0
mov rbx, rax
test rax, rax
jne 0x140002a5a
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 0x140002b33
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 0x140002b33
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140002b33
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 0x140002b33
cmp rdi, 0xffffffffffffffff
je 0x140002b33
mov rax, qword [0x140059b90]
test rax, rax
je 0x140002ad0
inc dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140002b33
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 0x140002b20
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140059b90]
test rax, rax
je 0x140002b15
dec dword [rax + 0x3b0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140002b3c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x140002b2e
mov qword [r14], rdi
mov rax, rsi
jmp 0x140002b3e
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 0x140010de0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140059b90]
lea r11, [0x14004cde0]
mov r8d, ecx
mov r10, qword [rax + 0x1d18]
movsxd rdx, dword [r10 + 0x108]
mov rax, qword [r10 + 0x110]
mov r9d, dword [rax + rdx*4 - 4]
not r9d
movzx eax, cl
movzx edx, r9b
xor rdx, rax
shr r9d, 8
mov eax, ecx
shr eax, 8
xor r9d, dword [r11 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
mov eax, r8d
xor rdx, rcx
shr eax, 0x10
xor r9d, dword [r11 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
mov eax, r8d
xor rdx, rcx
shr rax, 0x18
lea rcx, [r10 + 0x108]
xor r9d, dword [r11 + rdx*4]
movzx edx, r9b
xor rdx, rax
shr r9d, 8
xor r9d, dword [r11 + rdx*4]
lea rdx, [rsp + 0x30]
not r9d
mov dword [rsp + 0x30], r9d
call fcn.140023080
add rsp, 0x28
ret

Function at 0x140011cf0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140059040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140059b90]
mov edi, edx
cmp byte [rbx + 0x20d5], 0
jne 0x140011d50
cmp byte [rbx + 0x20d6], 0
jne 0x140011d50
mov r9d, dword [rbx + 0x3178]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.1400027c0
test dil, 1
je 0x140011e77
jmp 0x140011de1
movss xmm1, dword [rbx + 0x16ec]
lea r8, str.Tooltip__02d
mov r9d, dword [rbx + 0x3178]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x140051408]
mov edx, 0x10
mulss xmm1, dword [0x1400513f8]
addss xmm0, dword [rbx + 0x120]
addss xmm1, dword [rbx + 0x124]
mov qword [rbx + 0x1ddc], rax
mov dword [rbx + 0x1dc4], 1
movss dword [rbx + 0x1dd4], xmm0
mov byte [rbx + 0x1dfc], 1
movss dword [rbx + 0x1dd8], xmm1
movss xmm0, dword [rbx + 0x1748]
mulss xmm0, dword [0x140051364]
or dword [rbx + 0x1dc0], 0x41
movss dword [rbx + 0x1e20], xmm0
call fcn.1400027c0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140011e31
lea r11, [0x14004cde0]
cmp r9b, 0x23
jne 0x140011e14
cmp byte [r8], r9b
jne 0x140011e14
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140011e01
not ecx
call fcn.14000a820
test rax, rax
je 0x140011e77
cmp byte [rax + 0xcf], 0
je 0x140011e77
mov byte [rax + 0xd6], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xf0], 1
lea rcx, [rsp + 0x20]
inc dword [rbx + 0x3178]
mov edx, 0x10
mov r9d, dword [rbx + 0x3178]
call fcn.1400027c0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x22c0347
call fcn.14000d2a0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140049c50
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret