joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140064e50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x270
mov edx, 0x2a
mov rbx, rcx
call fcn.1400a9968
test rax, rax
jne 0x140064e93
lea edx, [rax + 0x3f]
mov rcx, rbx
call fcn.1400a9968
test rax, rax
jne 0x140064e93
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add rsp, 0x270
pop rbx
ret
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x140064eb2
xor al, al
add rsp, 0x270
pop rbx
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
add rsp, 0x270
pop rbx
ret

Function at 0x140064ed0
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x58]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140064efd
xor al, al
add rsp, 0x40
pop rbx
ret
lea r8, [rsp + 0x34]
xor ecx, ecx
lea rdx, [0x1400ec610]
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x30]
xor eax, eax
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x3c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140064ef5
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
add rsp, 0x40
pop rbx
ret

Function at 0x140064f70
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x40
xor r9d, r9d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov dword [rsp + 0x28], 0x1f4
mov rbx, rcx
mov dword [rsp + 0x20], 2
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
jne 0x140064fe3
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x140064fe3
mov r8d, eax
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140064fe3
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x40
pop rbx
ret
Function at 0x14007f1c0
Capabilities:
Get keyboard layout

Disassembly:
push rbx
push r14
sub rsp, 0x38
mov r14, rdx
mov rbx, rcx
nop
movzx eax, word [rbx]
cmp ax, 0x20
je 0x14007f1df
cmp ax, 9
jne 0x14007f1e5
add rbx, 2
jmp 0x14007f1d0
movzx eax, word [rbx]
test ax, ax
jne 0x14007f1f5
add rsp, 0x38
pop r14
pop rbx
ret
cmp word [rbx + 2], 0
lea rcx, [rbx + 2]
jne 0x14007f211
mov word [rdx + 2], ax
mov al, 1
mov byte [rdx], 0
add rsp, 0x38
pop r14
pop rbx
ret
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
xor sil, sil
mov byte [rdx], 1
mov edx, 0x2b
mov byte [rsp + 0x50], sil
mov qword [rsp + 0x30], rdi
call fcn.1400a9968
mov rbp, rax
test rax, rax
je 0x14007f305
lea rdi, [rbp - 2]
cmp rdi, rbx
jbe 0x14007f268
nop word [rax + rax]
movzx eax, word [rdi]
cmp ax, 0x20
je 0x14007f25f
cmp ax, 9
jne 0x14007f268
sub rdi, 2
cmp rdi, rbx
ja 0x14007f250
sub rdi, rbx
lea rdx, [0x1400d1e88]
sar rdi, 1
mov rcx, rbx
inc rdi
mov r8, rdi
call fcn.1400ad9d8
test eax, eax
jne 0x14007f28d
or sil, 1
jmp 0x14007f2c3
mov r8, rdi
lea rdx, [0x1400d1e98]
mov rcx, rbx
call fcn.1400ad9d8
test eax, eax
jne 0x14007f2a9
or sil, 4
jmp 0x14007f2c3
mov r8, rdi
lea rdx, [0x1400d1ea0]
mov rcx, rbx
call fcn.1400ad9d8
test eax, eax
jne 0x14007f339
or sil, 0x10
mov byte [rsp + 0x50], sil
lea rbx, [rbp + 2]
nop dword [rax]
movzx eax, word [rbx]
cmp ax, 0x20
je 0x14007f2df
cmp ax, 9
jne 0x14007f2e5
add rbx, 2
jmp 0x14007f2d0
cmp word [rbx], 0
je 0x14007f339
mov edx, 0x2b
lea rcx, [rbx + 2]
call fcn.1400a9968
mov rbp, rax
test rax, rax
jne 0x14007f241
xor ecx, ecx
cmp word [rbx + 2], cx
jne 0x14007f33d
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, word [rbx]
mov rdi, rax
call qword [sym.imp.USER32.dll_CharLowerW]
mov r9b, 1
lea rdx, [rsp + 0x50]
mov rcx, rax
mov r8, rdi
call fcn.140016670
movzx esi, byte [rsp + 0x50]
jmp 0x14007f355
xor al, al
jmp 0x14007f384
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140016510
movzx eax, al
mov word [r14 + 2], ax
test sil, 1
je 0x14007f367
or byte [r14], 8
test sil, 4
je 0x14007f371
or byte [r14], 0x10
test sil, 0x10
je 0x14007f37b
or byte [r14], 4
cmp word [r14 + 2], 0
setne al
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop rbx
ret
Function at 0x140087840
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x30030
call fcn.1400c0680
sub rsp, rax
mov rbx, qword [rsp + 0x30060]
mov rsi, r9
mov rdi, r8
mov rax, rdx
test rbx, rbx
je 0x140087879
cmp word [rbx], 0
jne 0x140087880
lea rbx, [0x1400e89b8]
xor ecx, ecx
lea r9, [rsp + 0x30060]
mov word [rsp + 0x10030], cx
lea r8, [rsp + 0x30]
mov word [rsp + 0x30040], cx
mov edx, 0x8000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp word [rsi], 0
je 0x14008791e
cmp word [rdi], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30040]
cmovne rcx, rdi
mov dword [rsp + 0x20], 0xffff
lea r9, [rsp + 0x10030]
mov r8, rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rcx, qword [0x1401080a0]
lea rdx, [rsp + 0x10030]
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
call fcn.14008ec90
lea r11, [rsp + 0x30030]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
cmp word [rdi], 0
je 0x140087942
lea r9, [rsp + 0x30]
mov r8d, 0xffff
lea rdx, [rsp + 0x10030]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
jmp 0x14008795a
lea r8, [rsp + 0x30]
mov edx, 0xffff
lea rcx, [rsp + 0x10030]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
test eax, eax
je 0x1400878e9
lea rax, [rsp + 0x10030]
mov ecx, 0xa
nop dword [rax + rax]
cmp word [rax], 0
jne 0x140087984
cmp word [rax + 2], 0
je 0x1400878e9
mov word [rax], cx
add rax, 2
jmp 0x140087970

Function at 0x140087990
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rsi, rcx
xor edx, edx
mov ebx, 1
call fcn.14008c480
test al, al
jne 0x140087aaa
mov qword [rsp + 0x78], r15
xor r9d, r9d
xor r15d, r15d
xor r8d, r8d
mov qword [rsp + 0x30], r15
mov edx, 0x40000000
mov dword [rsp + 0x28], r15d
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140087a9b
mov qword [rsp + 0x60], rbp
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x68], r14
nop word [rax + rax]
inc rcx
cmp word [rdi + rcx*2], r15w
jne 0x140087a00
mov eax, ecx
lea ebp, [rcx*2 + 2]
lea r14, [rdi + rax*2]
mov qword [rsp + 0x20], r15
mov eax, 0x5d
lea r9, [rsp + 0x70]
lea rdx, [0x1400ee078]
mov word [r14], ax
mov rcx, rsi
lea r8d, [rax - 0x59]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140087a6c
cmp dword [rsp + 0x70], 4
jne 0x140087a6c
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], r15
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140087a6c
cmp dword [rsp + 0x70], ebp
je 0x140087a6f
mov ebx, r15d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x60]
test eax, eax
mov word [r14], r15w
mov r14, qword [rsp + 0x68]
cmove ebx, r15d
mov r15, qword [rsp + 0x78]
mov eax, ebx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov eax, ebx
mov r15, qword [rsp + 0x78]
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 0x1400885a0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, r9
mov rdi, r8
mov rbp, rdx
mov r14, rcx
test rdx, rdx
je 0x1400886dc
test r8, r8
je 0x1400885d3
cmp word [r8], 0
jne 0x1400885dc
test rsi, rsi
je 0x1400886dc
mov rax, qword [0x140101a58]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
mov r9d, dword [rax + 0x110]
lea rax, [rsp + 0x58]
or r9d, 0x2001f
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400886cd
mov rcx, qword [rsp + 0x58]
test rsi, rsi
jne 0x1400886b7
call fcn.140088470
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400886cd
mov eax, dword [0x14010ac40]
test al, 1
jne 0x140088678
or eax, 1
lea rcx, [0x1400ec470]
mov dword [0x14010ac40], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x1400ee0a8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
mov qword [0x14010ac48], rax
jmp 0x14008867f
mov r10, qword [0x14010ac48]
mov rax, qword [0x140101a58]
mov r8d, dword [rax + 0x110]
test r8d, r8d
je 0x1400886a7
test r10, r10
je 0x1400886a7
xor r9d, r9d
mov rdx, rdi
mov rcx, rbp
call r10
mov ebx, eax
jmp 0x1400886cd
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
jmp 0x1400886cd
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 0xffffffff
jne 0x1400886e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
jmp 0x1400886e3
mov ebx, 0x57
mov ecx, ebx
mov rax, qword [0x140101a58]
test ebx, ebx
setne dl
mov dword [rax + 0x40], ecx
mov rcx, r14
call fcn.140038ce0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14008ea70
Capabilities:
Write clipboard data

Disassembly:
push rbx
push rsi
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
lea rcx, [0x140108f00]
call fcn.1400056e0
test eax, eax
jne 0x14008eaad
lea r8, [0x1400cffcc]
lea rdx, [0x1400d02d0]
lea rcx, [0x1401082b0]
add rsp, 0x28
pop rsi
pop rbx
jmp fcn.140039240
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x20], r15
call qword [sym.imp.USER32.dll_EmptyClipboard]
lea r14, [rsi + rbx]
xor r12d, r12d
lea rbx, [rsi + 4]
cmp rbx, r14
ja 0x14008eb72
mov r15d, dword [rsi]
test r15d, r15d
je 0x14008eb72
mov rax, rbx
add rbx, 8
cmp rbx, r14
ja 0x14008eb72
mov edi, dword [rax]
mov rsi, rbx
add rbx, rdi
cmp rbx, r14
ja 0x14008eb72
mov rdx, r12
test rdi, rdi
mov ecx, 0x42
sete dl
add rdx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbp, rax
test rax, rax
je 0x14008ec30
test rdi, rdi
je 0x14008eb59
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14008ebd1
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call fcn.1400a9530
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rsi, rbx
mov rdx, rbp
mov ecx, r15d
call qword [sym.imp.USER32.dll_SetClipboardData]
lea rbx, [rsi + 4]
cmp rbx, r14
jbe 0x14008eae0
cmp dword [0x140108f2c], r12d
je 0x14008ebac
cmp qword [0x140108f10], r12
je 0x14008eb98
mov rcx, qword [0x140108f00]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140108f10], r12
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140108f2c], r12d
mov qword [0x140108f00], r12
mov eax, 1
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x140108f2c], r12d
je 0x14008ec14
cmp qword [0x140108f10], r12
je 0x14008ec00
mov rcx, qword [0x140108f00]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140108f10], r12
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140108f2c], r12d
mov qword [0x140108f00], r12
lea r8, [0x1400cffcc]
lea rdx, [0x1400d0298]
lea rcx, [0x1401082b0]
call fcn.140039240
jmp 0x14008ebb1
cmp dword [0x140108f2c], r12d
je 0x14008ec6a
cmp qword [0x140108f10], r12
je 0x14008ec56
mov rcx, qword [0x140108f00]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140108f10], r12
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140108f2c], r12d
mov qword [0x140108f00], r12
lea r8, [0x1400cffcc]
lea rdx, [0x1400e3900]
lea rcx, [0x1401082b0]
call fcn.140039240
jmp 0x14008ebb1
Function at 0x14008f0e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
movzx ecx, byte [rcx + 0x23]
test ecx, ecx
je 0x14008f320
mov qword [rsp + 0x50], rsi
sub ecx, 1
je 0x14008f17d
sub ecx, 1
je 0x14008f146
cmp ecx, 1
je 0x14008f12a
mov rdx, qword [rdi + 0x28]
mov rcx, rbx
call qword [rdi + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
test rbx, rbx
je 0x14008f134
xor esi, esi
mov word [rdx], si
xor eax, eax
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
lea rcx, [0x140108f00]
call fcn.140004fa0
xor esi, esi
mov ecx, 0xffffffff
cmp rax, rcx
cmove rax, rsi
test rbx, rbx
je 0x14008f2c0
mov word [rbx + rax*2], si
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, rdi
call fcn.140001320
cmp dword [0x140106b28], 0
jne 0x14008f27e
cmp qword [rdi + 0x10], 0
jne 0x14008f27e
cmp qword [0x14010a880], rdi
jne 0x14008f1ab
test rbx, rbx
jne 0x14008f22a
mov rcx, qword [rdi + 0x28]
lea rdx, [rsp + 0x40]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14008f225
xor esi, esi
mov qword [0x14010a880], rsi
test rbx, rbx
je 0x14008f213
mov edx, dword [0x140106b38]
test edx, edx
je 0x14008f1f5
mov r9, qword [rdi + 0x28]
lea r8, [0x1400ee600]
lea rcx, [0x1401082b0]
mov qword [rsp + 0x20], rsi
call fcn.140039c60
mov rcx, qword [rdi + 0x28]
mov rdx, rbx
call fcn.14008cd30
mov rsi, qword [rsp + 0x50]
mov eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
dec eax
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
test rbx, rbx
je 0x14008f265
cmp byte [rdi + 0x23], 0
jne 0x14008f236
mov rax, qword [rdi + 0x10]
jmp 0x14008f239
mov rax, rdi
test byte [rax + 0x21], 4
je 0x14008f247
mov rdx, rdi
call fcn.140039db0
xor esi, esi
mov word [rbx], si
xor eax, eax
mov qword [0x14010a880], rsi
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rsi, qword [rsp + 0x50]
xor eax, eax
mov qword [0x14010a880], rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov r8, qword [rdi + 0x10]
mov qword [rsp + 0x48], rbp
mov rbp, r8
shr rbp, 1
test rbx, rbx
je 0x14008f31b
test r8, r8
jne 0x14008f2d0
xor esi, esi
mov rax, rdi
cmp byte [rdi + 0x23], sil
cmove rax, rsi
test byte [rax + 0x21], 4
je 0x14008f2b6
mov rdx, rdi
call fcn.140039db0
mov word [rbx], si
xor eax, eax
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rdx, qword [rdi + 8]
cmp rbx, rdx
je 0x14008f31b
cmp r8, 0x186a0
jae 0x14008f30d
movzx eax, word [rdx]
test ax, ax
je 0x14008f303
nop word [rax + rax]
mov word [rbx], ax
lea rdx, [rdx + 2]
movzx eax, word [rdx]
add rbx, 2
test ax, ax
jne 0x14008f2f0
xor esi, esi
mov rax, rbp
mov word [rbx], si
jmp 0x14008f2bb
mov rcx, rbx
call fcn.1400a9530
xor esi, esi
mov word [rbx + rbp*2], si
mov rax, rbp
jmp 0x14008f2bb
mov rcx, qword [rdi + 0x10]
call fcn.14008f0e0
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18001bd14
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 0x18001bd44
xor eax, eax
jmp 0x18001be07
mov rbp, rbx
cmp word [rax], si
je 0x18001bd69
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001bd50
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001bd4c
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.18001bc34
movsxd r14, eax
test eax, eax
jne 0x18001bda7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001bd3d
mov rcx, r14
call fcn.18001a078
mov rdi, rax
test rax, rax
jne 0x18001bdc0
xor ecx, ecx
call fcn.180019f84
jmp 0x18001bd9c
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.18001bc34
test eax, eax
jne 0x18001bdf1
mov rcx, rdi
call fcn.180019f84
jmp 0x18001bdfb
xor ecx, ecx
call fcn.180019f84
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 0x1800213c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800213e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800213e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x2fc4c5270
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4c5c72
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4e8108]
test eax, eax
je 0x2fc4c5d0a
lea rax, [0x2fc4e80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4e8110]
mov qword [rbp - 8], rax
jmp 0x2fc4c5cee
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4c5ce2
cmp qword [rbp - 0x10], 0
je 0x2fc4c5ce2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4c5ca8
lea rax, [0x2fc4e80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c5d0b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c5e10
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4c5e38
mov eax, 0
jmp 0x2fc4c5e86
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4c5e61
mov eax, 0
jmp 0x2fc4c5e86
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4c5e81
mov eax, 0
jmp 0x2fc4c5e86
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c5e8c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4c5f0a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c5f01
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4c5f01
mov rax, qword [rbp - 8]
jmp 0x2fc4c5f1f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4c5ed4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c5f20
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4c6922
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4e9108]
test eax, eax
je 0x2fc4c69ba
lea rax, [0x2fc4e90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4e9110]
mov qword [rbp - 8], rax
jmp 0x2fc4c699e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4c6992
cmp qword [rbp - 0x10], 0
je 0x2fc4c6992
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4c6958
lea rax, [0x2fc4e90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c69bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c6ac0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4c6ae8
mov eax, 0
jmp 0x2fc4c6b36
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4c6b11
mov eax, 0
jmp 0x2fc4c6b36
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4c6b31
mov eax, 0
jmp 0x2fc4c6b36
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c6b3c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4c6bba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c6bb1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4c6bb1
mov rax, qword [rbp - 8]
jmp 0x2fc4c6bcf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4c6b84
mov eax, 0
add rsp, 0x20
pop rbp
ret