joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401ab160
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rdi
push r14
sub rsp, 0x68
movzx eax, byte [rdx]
mov r14, rdx
mov rdi, rcx
cmp al, 0xaf
jne 0x1401ab179
movzx eax, byte [rdx + 2]
cmp al, 0xb0
jne 0x1401ab183
mov rax, qword [rdx + 0x20]
jmp 0x1401ab193
cmp al, 0x89
jne 0x1401ab317
mov rax, qword [rdx + 0x20]
mov rax, qword [rax + 0x20]
movsxd rcx, dword [rax]
cmp ecx, 1
je 0x1401ab317
mov dword [r8], 0
cmp byte [rdx], 0x89
jne 0x1401ab1ba
mov rcx, rdi
add rsp, 0x68
pop r14
pop rdi
jmp fcn.1401d4b90
mov eax, dword [rdi + 0x38]
mov qword [rsp + 0x60], r12
mov r12, rcx
mov qword [rsp + 0x58], r13
lea r13d, [rax + 1]
add eax, ecx
mov dword [rsp + 0x88], r13d
mov dword [rdi + 0x38], eax
test ecx, ecx
jle 0x1401ab302
mov qword [rsp + 0x80], rbx
lea rcx, [0x1401fe7e0]
mov qword [rsp + 0x90], rbp
mov ebp, r13d
mov qword [rsp + 0x50], r15
lea r13, [fcn.1401ac3a0]
xor r15d, r15d
mov qword [rsp + 0x98], rsi
lea edx, [r15 + 2]
nop dword [rax + rax]
cmp byte [rdi + 0x23], 0
mov rax, qword [r14 + 0x20]
mov rbx, qword [rax + r15 + 8]
je 0x1401ab270
mov word [rsp + 0x44], dx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x48], 0
test rbx, rbx
je 0x1401ab260
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14022c960
cmp word [rsp + 0x44], 0
je 0x1401ab270
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call fcn.1401dde80
jmp 0x1401ab2b0
mov rsi, qword [rdi]
test rbx, rbx
je 0x1401ab28c
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.1401ab5f0
mov rbx, rax
cmp byte [rsi + 0x63], 0
jne 0x1401ab2a0
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call fcn.1401dc430
test rbx, rbx
je 0x1401ab2b0
mov rdx, rbx
mov rcx, rsi
call fcn.1401dfa00
inc ebp
lea rcx, [0x1401fe7e0]
add r15, 0x20
mov edx, 2
sub r12, 1
jne 0x1401ab220
mov eax, dword [rsp + 0x88]
mov r15, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x80]
mov r12, qword [rsp + 0x60]
mov r13, qword [rsp + 0x58]
add rsp, 0x68
pop r14
pop rdi
ret
mov r12, qword [rsp + 0x60]
mov eax, r13d
mov r13, qword [rsp + 0x58]
add rsp, 0x68
pop r14
pop rdi
ret
mov rcx, rdi
add rsp, 0x68
pop r14
pop rdi
jmp fcn.1401df390
Function at 0x1401c3ca0
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
mov r14, qword [rsp + 0x70]
mov ebx, r8d
mov qword [rax - 0x18], r14
mov rbp, r9
mov qword [rax - 0x20], r9
mov rdi, rdx
mov r9, rdx
mov byte [rcx + 0x1c], 1
mov r8, rdx
mov dword [rax - 0x28], ebx
lea rdx, str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___Q_NULL
mov rsi, rcx
call fcn.1401ee360
test ebx, ebx
jne 0x1401c3d09
mov r9, rbp
mov qword [rsp + 0x20], r14
mov r8, rdi
lea rdx, str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___Q_NULL
mov rcx, rsi
call fcn.1401ee360
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1401e2090
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x28
xor r11d, r11d
mov rdi, r8
mov ebx, r11d
mov r14, rdx
mov rsi, rcx
cmp dword [rcx + 0x28], ebx
jle 0x1401e2199
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r12
lea r12, str.main
mov qword [rsp + 0x20], r15
lea r15, [0x14027bd90]
nop
mov rax, qword [rsi + 0x20]
mov r10d, ebx
xor r10d, 1
cmp ebx, 2
cmovge r10d, ebx
movsxd rcx, r10d
shl rcx, 5
mov rbp, qword [rcx + rax + 0x18]
test rdi, rdi
je 0x1401e2111
mov r8, qword [rcx + rax]
mov r9, rdi
sub r9, r8
nop dword [rax]
movzx ecx, byte [r8]
movzx eax, byte [r9 + r8]
cmp ecx, eax
jne 0x1401e214c
test ecx, ecx
jne 0x1401e215a
lea rcx, [rbp + 0x20]
xor r8d, r8d
mov rdx, r14
call fcn.1401ad470
mov r11, qword [rax + 0x10]
test r11, r11
jne 0x1401e2130
inc ebx
cmp ebx, dword [rsi + 0x28]
jl 0x1401e20d0
mov r12, qword [rsp + 0x60]
mov rax, r11
mov rbp, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
movzx edx, byte [rax + r15]
movzx ecx, byte [rcx + r15]
cmp ecx, edx
jne 0x1401e215f
inc r8
jmp 0x1401e2100
test r10d, r10d
jne 0x1401e2129
mov r9, rdi
mov rax, r12
sub r9, r12
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [r9 + rax]
cmp edx, ecx
jne 0x1401e2185
test edx, edx
je 0x1401e2111
inc rax
jmp 0x1401e2170
movzx r8d, byte [rcx + r15]
movzx edx, byte [rdx + r15]
cmp edx, r8d
jne 0x1401e2129
inc rax
jmp 0x1401e2170
mov rax, r11
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140228490
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov qword [rcx], 0
mov ecx, 0x28
mov rsi, r8
mov rbp, rdx
call fcn.1401edac0
mov rbx, rax
test rax, rax
jne 0x1402284ce
lea eax, [rbx + 7]
jmp 0x140228550
cmp byte [0x1402d7de4], 0
je 0x140228522
mov rax, qword [0x1402d7f68]
test rax, rax
je 0x1402284ee
mov ecx, reloc.OLEAUT32.dll_SetErrorInfo
call rax
test eax, eax
jne 0x140228522
lea rax, [rbx + 8]
mov qword [rbx + 0x10], rbp
mov qword [rsp + 0x28], rax
lea r8, [0x140200a30]
mov r9, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
mov qword [rbx + 0x18], rsi
xor ecx, ecx
call fcn.140109730
mov qword [rbx], rax
test rax, rax
jne 0x140228532
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
mov qword [rbx + 0x20], rax
cmp qword [rbx + 0x10], 0
jne 0x14022854b
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, rsi
mov dword [rbx + 8], eax
call rbp
mov qword [rbx + 0x20], rax
mov qword [rdi], rbx
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14024b284
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14012f8b4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14012f8b4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14024b3d4
cmp rax, 0xffffffffffffffff
je 0x14024b3d4
xor edi, edi
test rbp, rbp
jle 0x14024b37f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140127144
mov rbx, rax
test rax, rax
jne 0x14024b30c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14024b375
mov edx, 0x8000
mov ecx, r14d
call fcn.14023e798
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14012e63c
cmp eax, 0xffffffff
je 0x14024b355
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14024b31c
mov edx, r15d
mov ecx, r14d
call fcn.14023e798
jmp 0x14024b375
cmp byte [rsi + 0x38], dil
je 0x14024b36c
cmp dword [rsi + 0x34], 5
jne 0x14024b36c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14024b375
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140126034
jmp 0x14024b3e8
jns 0x14024b3e8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14012f8b4
cmp rax, 0xffffffffffffffff
jne 0x14024b3a0
cmp byte [rsi + 0x30], dil
je 0x14024b3e8
mov edi, dword [rsi + 0x2c]
jmp 0x14024b3e8
mov ecx, r14d
call fcn.14013b2b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14024b3e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14024b3e8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14024b3e1
mov eax, dword [rsi + 0x2c]
jmp 0x14024b3e6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14012f8b4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14000138e
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004ca14
xor r8d, r8d
xor edx, edx
jmp 0x14004c6f8

Function at 0x140002135
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140075070
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140095030]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x140097ac8]
xor r11d, r11d
lea rdi, [0x1400808d4]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x1400750e0
mov rax, 0xfffffffffffffffe
jmp 0x14007522d
cmp word [r10 + 6], r11w
jne 0x14007514f
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x14007510a
test r14, r14
je 0x1400750fb
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x14007522d
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x140075118
mov r8b, 2
jmp 0x140075136
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x140075126
mov r8b, 3
jmp 0x140075136
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x140075222
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x140075178
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x140075222
cmp bl, bpl
jb 0x140075222
cmp bl, r8b
jae 0x140075222
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x1400751a5
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x140075222
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x140075187
cmp r9, rbp
jae 0x1400751d1
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x1400750d4
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x140075222
cmp edx, 0x110000
jae 0x140075222
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x140075222
test r14, r14
je 0x140075210
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.140003936
jmp 0x14007522d
mov rdx, rsi
mov rcx, r10
call fcn.140003f67
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140002590
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000217b
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x14000a57c
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14000a609
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x14000a609
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a609
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x14000a5f0
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14000a5ea
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14000a5f2
add rdx, 0x28
jmp 0x14000a5cf
xor edx, edx
test rdx, rdx
jne 0x14000a5fb
xor al, al
jmp 0x14000a60f
cmp dword [rdx + 0x24], 0
jge 0x14000a605
xor al, al
jmp 0x14000a60f
mov al, 1
jmp 0x14000a60f
xor al, al
jmp 0x14000a60f
add rsp, 0x18
ret

Function at 0x1400026c1
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140017fd8
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x140081898]
mov ecx, 2
lea r8, [0x140081890]
lea rdx, str.FlsGetValue
call fcn.140017aa8
mov ecx, ebx
test rax, rax
je 0x140018012
add rsp, 0x20
pop rbx
jmp qword [0x1400a0020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x140002801
Capabilities:
Query environment variable

Disassembly:
jmp 0x14006037c
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400603ac
xor eax, eax
jmp 0x14006046f
mov rbp, rbx
cmp word [rax], si
je 0x1400603d1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400603b8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400603b4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000314d
movsxd r14, eax
test eax, eax
jne 0x14006040f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400603a5
mov rcx, r14
call fcn.140001037
mov rdi, rax
test rax, rax
jne 0x140060428
xor ecx, ecx
call fcn.14000116d
jmp 0x140060404
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000314d
test eax, eax
jne 0x140060459
mov rcx, rdi
call fcn.14000116d
jmp 0x140060463
xor ecx, ecx
call fcn.14000116d
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140002810
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140017f28
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x140081858]
xor ecx, ecx
lea r8, [0x140081850]
lea rdx, str.FlsAlloc
call fcn.140017aa8
test rax, rax
je 0x140017f61
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1400a0020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x140002883
Capabilities:
Get geographical location

Disassembly:
jmp 0x140055388
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x140082e18]
mov rbp, rcx
lea r8, [0x140082e10]
lea rdx, str.GetLocaleInfoEx
mov ecx, 7
call fcn.1400548a4
test rax, rax
je 0x1400553e8
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x1400a0030]
jmp 0x140055402
xor edx, edx
mov rcx, rbp
call fcn.1400021cb
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140002892
Capabilities:
Terminate process

Disassembly:
jmp 0x140078d1c
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 0x1400029cd
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004c9ac
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14004c6f8

Function at 0x140002b5d
Capabilities:
Parse pe header

Disassembly:
jmp 0x140078b10
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140078b38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140078b38
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140002e5a
Capabilities:
Parse pe header

Disassembly:
jmp 0x14000ab30
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ab7a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000ab7a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000ab7a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000ab7a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000ab7a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000ab7c
xor al, al
add rsp, 0x28
ret
Function at 0x140002fd1
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x1400787d0
jmp 0x1400787f0
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r12, rax
test rax, rax
je 0x140078968
mov ecx, dword [rsp + 0x60]
inc ecx
movsxd rbx, ecx
shl rbx, 3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
je 0x140078968
xor edi, edi
mov r14d, edi
cmp dword [rsp + 0x60], edi
jle 0x1400788ff
sub rax, r12
mov rsi, r12
mov qword [rsp + 0x68], rax
nop
mov rcx, qword [rsi]
call sub.SDL2.dll_SDL_wcslen
mov r8, qword [rsi]
lea rdx, str.UTF_16LE
lea rcx, str.UTF_8
lea r9, [rax*2 + 2]
call sub.SDL2.dll_SDL_iconv_string
mov rbp, rax
test rax, rax
je 0x140078968
mov rcx, rax
call sub.SDL2.dll_SDL_strlen
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [r13 + 1]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x68]
mov qword [rcx + rsi], rax
test rax, rax
je 0x140078968
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 0x140078870
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.140002e91
mov esi, eax
cmp dword [rsp + 0x60], edi
jle 0x140078950
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 0x140078930
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
jmp 0x140078984
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
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400030d0
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x140078a50
movsxd r8, dword [rcx + 0x3c]
xor r9d, r9d
add r8, rcx
mov r10, rdx
movzx eax, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rax, 0x18
add rax, r8
test r11d, r11d
je 0x140078a91
mov edx, dword [rax + 0xc]
cmp r10, rdx
jb 0x140078a85
mov ecx, dword [rax + 8]
add ecx, edx
cmp r10, rcx
jb 0x140078a93
inc r9d
add rax, 0x28
cmp r9d, r11d
jb 0x140078a73
xor eax, eax
ret
Function at 0x1400032b0
Capabilities:
Terminate process

Disassembly:
jmp 0x140053bc0
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x140053bda
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.140003940
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140003a26
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140018030
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1400818b8]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1400818b0]
call fcn.140017aa8
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x140018070
call qword [0x1400a0020]
jmp 0x140018076
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003ba7
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004c99c
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14004c767
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004c767
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004c767
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004c767
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004c767
cmp dword [rcx + 0x84], 0xe
jbe 0x14004c767
cmp dword [rcx + 0xf8], 0
je 0x14004c767
mov ecx, ebx
call fcn.14004c8e0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14004c450
nop
cmp dword [rbp + 0x20], 0
je 0x14004c7b5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14004c7f0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14004c6f8

Function at 0x14000ab30
Capabilities:
Parse pe header

Disassembly:
jmp 0x14000ab30
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ab7a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000ab7a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000ab7a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000ab7a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000ab7a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000ab7c
xor al, al
add rsp, 0x28
ret
Function at 0x140001120
Capabilities:
Check for debugger via api

Disassembly:
sub rsp, 0x38
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
ret

Function at 0x140001ba8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001bf2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001bf2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001bf2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001bf2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001bf2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001bf4
xor al, al
add rsp, 0x28
ret

Function at 0x1400080a0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007e9c
Function at 0x14000d3e8
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000d418
xor eax, eax
jmp 0x14000d4db
mov rbp, rbx
cmp word [rax], si
je 0x14000d43d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000d424
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000d420
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000d308
movsxd r14, eax
test eax, eax
jne 0x14000d47b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000d411
mov rcx, r14
call fcn.140009b9c
mov rdi, rax
test rax, rax
jne 0x14000d494
xor ecx, ecx
call fcn.140008f24
jmp 0x14000d470
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000d308
test eax, eax
jne 0x14000d4c5
mov rcx, rdi
call fcn.140008f24
jmp 0x14000d4cf
xor ecx, ecx
call fcn.140008f24
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret