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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x30
mov rbx, rcx
xor ebp, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x14009b3d3
xor edx, edx
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], dx
jne 0x14009b1d0
test rax, rax
je 0x14009b204
xor ecx, ecx
movzx r8d, word [rbx + rcx*2]
cmp r8w, 0x5c
je 0x14009b3d3
cmp r8w, 0x2f
je 0x14009b3d3
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x14009b1e0
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
call fcn.14009b3f0
mov rsi, rax
test rax, rax
je 0x14009b2fe
mov qword [rsp + 0x50], r14
call fcn.14009c150
mov r14, rax
test rax, rax
je 0x14009b2eb
mov rcx, rsi
call fcn.1400966d0
test eax, eax
je 0x14009b2d4
lea rax, str.system32_
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x20]
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x28], rax
nop word [rax + rax]
mov rdx, qword [rdi]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rdx + rbx*2], bp
jne 0x14009b280
mov r8, rbx
mov rcx, rsi
call fcn.1401acddc
test eax, eax
je 0x14009b2a8
add rdi, 8
lea rax, [rsp + 0x30]
cmp rdi, rax
jb 0x14009b270
jmp 0x14009b2b7
lea rdx, [rsi + rbx*2]
mov rcx, r14
call fcn.140099ea0
mov rbp, rax
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x14009b2e2
mov rcx, rsi
call fcn.140096680
test eax, eax
je 0x14009b2e2
mov rbp, rsi
xor esi, esi
jmp 0x14009b2e2
mov rdx, rsi
mov rcx, r14
call fcn.140099ea0
mov rbp, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0x50]
jmp 0x14009b39f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x14009b3a8
mov rcx, rbx
call fcn.140096580
mov rdi, rax
test rax, rax
je 0x14009b3a8
mov ecx, 0x37e4
call fcn.140099100
test eax, eax
je 0x14009b33d
lea rcx, [0x1402082f0]
call fcn.14009be80
jmp 0x14009b342
call fcn.14009c150
mov rbx, rax
test rax, rax
je 0x14009b396
mov rdx, rdi
mov rcx, rax
call fcn.140099ea0
mov rbp, rax
test rax, rax
je 0x14009b38d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14009b36f
test al, 0x50
je 0x14009b38d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14009b382
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbp, rbp
je 0x14009b3a8
xor ecx, ecx
jmp 0x14009b3b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14009b3bb
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x48]
mov rax, rbp
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rbp
ret
Function at 0x14009c150
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov ecx, 0x40
add rdx, rdx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14009c1b2
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14009c1a7
cmp edi, eax
jb 0x14009c1a7
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14009c550
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rbx, rcx
mov ebp, r8d
xor ecx, ecx
mov r14d, edx
xor esi, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x14009c6ae
movzx eax, word [rbx]
cmp eax, 0x5c
je 0x14009c5b9
cmp eax, 0x2f
je 0x14009c5b9
mov ecx, eax
call fcn.1401ac750
test eax, eax
je 0x14009c6ae
cmp word [rbx + 2], 0x3a
jne 0x14009c6ae
movzx eax, word [rbx + 4]
cmp ax, 0x5c
je 0x14009c5b9
cmp ax, 0x2f
jne 0x14009c6ae
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14009c6a7
test al, 0x50
jne 0x14009c6a7
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14009c60a
lea ecx, [rax + 0x21]
jmp 0x14009c6b3
mov rcx, rbx
call fcn.140098e30
test eax, eax
jne 0x14009c67c
test ebp, ebp
mov dword [rsp + 0x60], esi
lea rdx, [rsp + 0x60]
mov rcx, rbx
cmove rdx, rsi
call fcn.14009d350
test eax, eax
je 0x14009c646
test ebp, ebp
je 0x14009c67c
cmp dword [rsp + 0x60], esi
jne 0x14009c67c
mov ecx, 0x80092009
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140099460
test eax, eax
jne 0x14009c67c
test rdi, rdi
je 0x14009c678
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14009c6bc
mov r8d, r14d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
test rdi, rdi
je 0x14009c6b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
jmp 0x14009c6b3
mov ecx, 0x7e
jmp 0x14009c6b3
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14009c960
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x40
mov rbx, rcx
mov r14d, r8d
xor ecx, ecx
mov ebp, edx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x14009cac6
movzx eax, word [rbx]
cmp eax, 0x5c
je 0x14009c9c3
cmp eax, 0x2f
je 0x14009c9c3
mov ecx, eax
call fcn.1401ac750
test eax, eax
je 0x14009cac6
cmp word [rbx + 2], 0x3a
jne 0x14009cac6
movzx eax, word [rbx + 4]
cmp ax, 0x5c
je 0x14009c9c3
cmp ax, 0x2f
jne 0x14009cac6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14009caaa
test al, 0x50
jne 0x14009caaa
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov edx, 0x80000000
mov rcx, rbx
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14009ca30
lea ecx, [rax + 0x21]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
test r14d, r14d
mov dword [rsp + 0x60], edi
lea rdx, [rsp + 0x60]
mov rcx, rbx
cmove rdx, rdi
call fcn.14009d350
test eax, eax
je 0x14009ca62
test r14d, r14d
je 0x14009ca76
cmp dword [rsp + 0x60], edi
jne 0x14009ca76
mov ecx, 0x80092009
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140099460
test eax, eax
je 0x14009ca8d
and ebp, 0xffffe8f7
xor edx, edx
mov r8d, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rsi, rsi
je 0x14009ca1a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
jmp 0x14009ca14
mov ecx, 0x7e
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x1400b4490
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r8, [0x140209c78]
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x1400b4578
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400b4578
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rsi
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
mov rdi, rax
test rax, rax
je 0x1400b4578
mov ecx, SafeArrayPutElement
call sub.gdiplus.dll_GdipAlloc
mov rbx, rax
test rax, rax
je 0x1400b455b
lea rax, [0x140209c68]
mov qword [rbx + 8], 0
lea rdx, [rbx + 8]
mov qword [rbx], rax
mov rcx, rdi
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [rbx + 0x10], eax
mov rcx, rdi
mov rdx, qword [rdi]
call qword [rdx + 0x10]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, qword [rdi]
xor ebx, ebx
mov rcx, rdi
call qword [rdx + 0x10]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ba7c0
Capabilities:
Check os version
Get common file path

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x14026fe68]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rax, qword [0x140274530]
xor esi, esi
mov dword [rsp + 0x30], esi
test rax, rax
jne 0x1400baa19
xor edx, edx
lea rcx, [rbp + 0x64]
mov r8d, 0x110
call fcn.14017f770
lea rcx, [rbp + 0x60]
mov dword [rbp + 0x60], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rbp + 0x64], 5
ja 0x1400ba834
jne 0x1400baa12
cmp dword [rbp + 0x68], 1
jb 0x1400baa12
mov edx, 0x104
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1400ba89b
call sub.libcef.dll_cef_get_min_log_level
cmp eax, 2
jg 0x1400ba884
mov r9d, 2
lea rdx, str.C:uworkspace03_21cefwinauto_srccbwcef_dark_aero_window.cpp
lea rcx, [rsp + 0x38]
lea r8d, [r9 + 0x49]
call fcn.1400bf370
lea rdx, str.Couldnt_find_system_path
lea rcx, [rax + 8]
call fcn.140002560
mov esi, 1
test sil, 1
je 0x1400ba894
lea rcx, [rsp + 0x38]
call fcn.1400bf6d0
xor eax, eax
jmp 0x1400baa19
movdqa xmm0, xmmword [0x140204350]
lea rax, [rbp + 0x180]
movdqu xmmword [rbp + 0x48], xmm0
mov word [rbp + 0x38], si
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], si
jne 0x1400ba8c0
lea rdx, [rbp + 0x180]
lea rcx, [rbp + 0x38]
call fcn.140025540
mov rdx, qword [rbp + 0x50]
mov rcx, qword [rbp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 0xb
jb 0x1400ba93f
mov qword [rsp + 0x4b0], rbx
cmp rdx, 8
lea rbx, [rbp + 0x38]
mov qword [rsp + 0x4b8], rdi
cmovae rbx, qword [rbp + 0x38]
lea rdi, [rcx + 0xb]
mov r8d, SafeArrayPutElement
mov qword [rbp + 0x48], rdi
lea rdx, [0x14020a118]
lea rcx, [rbx + rcx*2]
call fcn.14017f360
mov word [rbx + rdi*2], si
mov rdi, qword [rsp + 0x4b8]
mov rbx, qword [rsp + 0x4b0]
jmp 0x1400ba962
lfence
xor r8d, r8d
mov qword [rsp + 0x20], reloc.WS2_32.dll_inet_addr
lea r9, [0x14020a118]
lea rcx, [rbp + 0x38]
lea edx, [r8 + 0xb]
call fcn.1400365a0
cmp qword [rbp + 0x50], 8
lea rcx, [rbp + 0x38]
cmovae rcx, qword [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140274530], rax
test rax, rax
je 0x1400ba9d6
lea rdx, str.DwmExtendFrameIntoClientArea
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140274530]
lea rdx, str.DwmDefWindowProc
mov qword [0x140274538], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140274530]
lea rdx, str.DwmIsCompositionEnabled
mov qword [0x140274540], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140274548], rax
mov rax, qword [0x140274530]
mov rdx, qword [rbp + 0x50]
cmp rdx, 8
jb 0x1400baa19
mov rcx, qword [rbp + 0x38]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400baa0d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400baa39
call fcn.14014f3b8
mov rax, qword [0x140274530]
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.14014f460
mov rsi, qword [rsp + 0x4c0]
add rsp, 0x4a0
pop rbp
ret
call fcn.14018d87c
int3
Function at 0x140155850
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140155863
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.140156990
lea rdx, [0x140269f80]
lea rcx, [rsp + 0x20]
call fcn.14017feec
int3

Function at 0x140164158
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1402755d0]
xor edx, edx
jmp fcn.140155850

Function at 0x140165bc8
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1402755d0]
jmp fcn.140155850

Function at 0x140177468
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140177548]
mov r9, qword [r9 + 8]
jmp fcn.140160de0

Function at 0x140177520
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140177558]
mov r9, qword [r9 + 8]
jmp fcn.140160de0

Function at 0x1401aa780
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1401aa7a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401aea5c
or eax, 0xffffffff
jmp 0x1401aa7a2
xor eax, eax
add rsp, 0x28
ret
Function at 0x1401c961c
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 0x1401c92c2
call fcn.1401aeacc
mov dword [rax], SafeArrayPutElement
call fcn.14018d85c
jmp 0x1401c940d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401c940d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1401c940d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1401c92f1
lock or dword [rcx + 0x14], 0x10
jmp 0x1401c940d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1401c9305
call fcn.1401cad10
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x1401c9315
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x1401c9318
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.1401c40d4
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.1401ca33c
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1401c93fb
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1401c93a9
mov rcx, rbx
call fcn.1401c40d4
cmp eax, 0xffffffff
je 0x1401c9394
mov rcx, rbx
call fcn.1401c40d4
cmp eax, 0xfffffffe
je 0x1401c9394
mov rcx, rbx
call fcn.1401c40d4
movsxd rdi, eax
lea r14, [0x140276500]
mov rcx, rbx
sar rdi, 6
call fcn.1401c40d4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1401c939b
lea rdx, [0x140270380]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401c93a9
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1401c93cd
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1401c93cd
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1401c93cd
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x1401c93eb
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x1401c93f6
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x1401c9412
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 0x1401c928c
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14001af70]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14001af80]
mov dword [rax], 1
mov rax, qword [0x14001af90]
mov dword [rax], 1
mov rax, qword [0x14001af60]
mov dword [rax], 1
mov rax, qword [0x14001ae00]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x14001af50]
mov dword [0x14001e020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14001af10]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14001aef0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14001ad90]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x140001920
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140001990
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14001e0b4]
mov r12, rcx
test ebx, ebx
jle 0x140001ac0
mov rax, qword [0x14001e0b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1400019dc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001a63
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x1400019c0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140001ae2
mov rax, qword [0x14001e0b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14001e0b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001ac7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001a5c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001a70
add dword [0x14001e0b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14001e0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001a5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x1400019e7
mov rax, qword [0x14001e0b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001fa0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14001e120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001e100]
test rbx, rbx
je 0x140001ff4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140001feb
test r12, r12
je 0x140001feb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001fd0
lea rcx, [0x14001e120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002210
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002228
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002230
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002240
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14000228c
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x140002283
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x14000228e
add rax, 0x28
cmp rax, r9
jne 0x140002270
xor eax, eax
ret

Function at 0x140002290
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x140002320
mov rdx, qword [0x14001ae00]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14000230e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000230e
cmp word [rax + 0x18], 0x20b
jne 0x14000230e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x140002320
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x1400022f9
add r12, 0x28
cmp r12, rsi
je 0x140002320
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x1400022f0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x140002330
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14001ae00]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002350
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002358
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002350
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1400023a5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000239c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002350
add rax, 0x28
cmp rax, r9
jne 0x140002388
xor eax, eax
ret

Function at 0x1400023b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001ae00]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400023d0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400023d8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400023d0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1400023f0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14001ae00]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002410
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002418
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002410
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002458
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000244f
test rcx, rcx
je 0x140002410
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002440
xor eax, eax
ret