joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003d3b6
Capabilities:
Parse pe header

Disassembly:
jmp 0x14005f2e4
xor r8d, r8d
xor edx, edx
jmp 0x14005efd4

Function at 0x14003e1f3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400b2790
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x1400da1e0]
xor r11d, r11d
lea rdi, [0x1400c2344]
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 0x1400b2800
mov rax, 0xfffffffffffffffe
jmp 0x1400b294d
cmp word [r10 + 6], r11w
jne 0x1400b286f
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x1400b282a
test r14, r14
je 0x1400b281b
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x1400b294d
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x1400b2838
mov r8b, 2
jmp 0x1400b2856
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x1400b2846
mov r8b, 3
jmp 0x1400b2856
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x1400b2942
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 0x1400b2898
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x1400b2942
cmp bl, bpl
jb 0x1400b2942
cmp bl, r8b
jae 0x1400b2942
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x1400b28c5
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x1400b2942
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 0x1400b28a7
cmp r9, rbp
jae 0x1400b28f1
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x1400b27f4
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x1400b2942
cmp edx, 0x110000
jae 0x1400b2942
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 0x1400b2942
test r14, r14
je 0x1400b2930
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.14003fb20
jmp 0x1400b294d
mov rdx, rsi
mov rcx, r10
call fcn.140040192
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14003e68a
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003e243
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x1400474f0
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14004757d
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x14004757d
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004757d
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 0x140047564
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14004755e
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140047566
add rdx, 0x28
jmp 0x140047543
xor edx, edx
test rdx, rdx
jne 0x14004756f
xor al, al
jmp 0x140047583
cmp dword [rdx + 0x24], 0
jge 0x140047579
xor al, al
jmp 0x140047583
mov al, 1
jmp 0x140047583
xor al, al
jmp 0x140047583
add rsp, 0x18
ret

Function at 0x14003e7de
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140056654
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1400c3308]
mov ecx, 2
lea r8, [0x1400c3300]
lea rdx, str.FlsGetValue
call fcn.140056124
mov ecx, ebx
test rax, rax
je 0x14005668e
add rsp, 0x20
pop rbx
jmp qword [0x1400e5020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x14003e928
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400981f0
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 0x140098220
xor eax, eax
jmp 0x1400982e3
mov rbp, rbx
cmp word [rax], si
je 0x140098245
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14009822c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140098228
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.14003f2dd
movsxd r14, eax
test eax, eax
jne 0x140098283
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140098219
mov rcx, r14
call fcn.14003d037
mov rdi, rax
test rax, rax
jne 0x14009829c
xor ecx, ecx
call fcn.14003d172
jmp 0x140098278
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.14003f2dd
test eax, eax
jne 0x1400982cd
mov rcx, rdi
call fcn.14003d172
jmp 0x1400982d7
xor ecx, ecx
call fcn.14003d172
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 0x14003e932
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400565a4
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x1400c32c8]
xor ecx, ecx
lea r8, [0x1400c32c0]
lea rdx, str.FlsAlloc
call fcn.140056124
test rax, rax
je 0x1400565dd
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1400e5020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x14003e9af
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400a0ba4
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, [0x1400c6e28]
mov rbp, rcx
lea r8, [0x1400c6e20]
lea rdx, str.GetLocaleInfoEx
mov ecx, 8
call fcn.1400a00c4
test rax, rax
je 0x1400a0c04
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x1400e5030]
jmp 0x1400a0c1e
xor edx, edx
mov rcx, rbp
call fcn.14003e298
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 0x14003e9be
Capabilities:
Terminate process

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

Disassembly:
jmp 0x14005f278
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14005efd4

Function at 0x14003efcc
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140093464
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14009347e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.14003fb2a
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 0x14003fc15
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400566ac
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1400c3328]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1400c3320]
call fcn.140056124
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x1400566ec
call qword [0x1400e5020]
jmp 0x1400566f2
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14003fcab
Capabilities:
Set environment variable

Disassembly:
jmp 0x1400a7574
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14003e1c6
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400a75fe
cmp byte [rbp - 0x21], r15b
je 0x1400a75f9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400a7634
call fcn.14004007a
test eax, eax
jne 0x1400a7620
cmp byte [rbp - 0x21], r15b
je 0x1400a7618
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400a7634
cmp byte [rbp - 0x21], r15b
je 0x1400a7631
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140040255
test eax, eax
jne 0x1400a76d4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14003e1c6
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400a7673
cmp byte [rbp - 0x21], r15b
je 0x1400a76a8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400a76a8
call fcn.14004007a
test eax, eax
jne 0x1400a7694
cmp byte [rbp - 0x21], r15b
je 0x1400a768d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400a76a8
cmp byte [rbp - 0x21], r15b
je 0x1400a76a5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140040255
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400a76d4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400a76d7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400a76e5
mov rcx, rdi
call fcn.14003d172
cmp byte [rbp + 0x3f], r15b
je 0x1400a76f4
mov rcx, qword [rbp + 0x27]
call fcn.14003d172
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14003fda0
Capabilities:
Parse pe header

Disassembly:
jmp 0x14005f268
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 0x14005f043
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005f043
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005f043
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005f043
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005f043
cmp dword [rcx + 0x84], 0xe
jbe 0x14005f043
cmp dword [rcx + 0xf8], 0
je 0x14005f043
mov ecx, ebx
call fcn.14005f1ac
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.14005ed24
nop
cmp dword [rbp + 0x20], 0
je 0x14005f091
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14005f0cc
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14005efd4
Function at 0x140001940
Capabilities:
Parse pe header

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

Function at 0x140005920
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000574c
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00404460]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00404470]
mov dword [rax], 1
mov rax, qword [0x00404480]
mov dword [rax], 1
mov rax, qword [0x00404450]
mov dword [rax], 1
mov rax, qword [0x00404340]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x00404440]
mov dword [0x0040700c], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x00404400]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x004042f0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x401a80
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00407624]
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
test esi, esi
jle 0x401c34
mov rax, qword [0x00407628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401acc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401b59
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401ab0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401c69
mov rax, qword [0x00407628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00407628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401c4c
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401b52
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401bd4
add dword [0x00407624], 1
cmp edi, 8
jae 0x401b90
test dil, 4
jne 0x401c20
test edi, edi
je 0x401b7c
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x401c3b
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rbp]
mov qword [rbx], rax
mov eax, edi
mov rdx, qword [rbp + rax - 8]
mov qword [rbx + rax - 8], rdx
lea rax, [rbx + 8]
and rax, 0xfffffffffffffff8
sub rbx, rax
sub rbp, rbx
add ebx, edi
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x401b7c
and ebx, 0xfffffff8
xor edx, edx
mov ecx, edx
add edx, 8
mov r8, qword [rbp + rcx]
cmp edx, ebx
mov qword [rax + rcx], r8
jb 0x401bc0
jmp 0x401b7c
add rsi, qword [0x00407628]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401b52
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 + rax]
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401b7c
xor esi, esi
jmp 0x401ad7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401b7c
mov rax, qword [0x00407628]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rsi + 0x18]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop dword [rax]
Function at 0x4023c0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00407900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004078e0]
test rbx, rbx
je 0x402414
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40240b
test rsi, rsi
je 0x40240b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4023f0
lea rcx, [0x00407900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402650
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x402660
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x402670
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4026b1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x4026a8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4026b3
add rax, 0x28
cmp rax, r9
jne 0x402694
xor eax, eax
ret

Function at 0x402750
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00404340]
mov rdx, rcx
cmp word [r8], 0x5a4d
jne 0x4027bd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4027bd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4027bd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4027b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4027bf
add rax, 0x28
cmp rax, r9
jne 0x4027a0
xor eax, eax
add rsp, 0x28
ret

Function at 0x4028c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00404340]
xor eax, eax
mov rdx, rcx
cmp word [r8], 0x5a4d
je 0x4028e0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4028d8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40293d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402934
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402944
add rax, 0x28
cmp rax, r9
jne 0x402920
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x402960
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00404340]
mov r9d, ecx
cmp word [r11], 0x5a4d
jne 0x4029ce
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4029ce
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x4029ce
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x4029ce
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x4029c5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x4029d5
add rcx, 0x28
cmp rcx, rax
jne 0x4029b0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x4029e8
jmp 0x4029ce
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x4029f6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x4029ce
test r9d, r9d
jg 0x4029e0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret

Function at 0x402c60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
mov r8d, 0x1b
mov edx, 1
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x14000d370
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, rcx
movdqa xmm0, xmmword [rdx]
aeskeygenassist xmm0, xmm0, 2
movdqa xmmword [rcx], xmm0
ret

Function at 0x14002c940
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x14002c9e0
jmp 0x14002c9cf
jae 0x14002caa0
cmp r8, 0x201
jae 0x14002c9e0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14002ca38
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14002ca0f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140045ab0
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x14002ca61
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14002cb08
mov r8d, r14d
cmp r15, r8
jne 0x14002c9c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002cb35
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14002c9cf
jmp 0x14002c9e0
cmp rsi, r8
jb 0x14002cb4f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14002ec50
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x14002caf1
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140016fc0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x14002cad9
jmp 0x14002caf1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1400465e0
jmp 0x14002cb64
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140046a30
ud2