joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140097530
Capabilities:
Enumerate processes

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x2c8
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x1400eab80]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0xffffffffffffffff
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
jne 0x1400975ad
xor edx, edx
mov rcx, qword [rsp + 0x2d0]
call fcn.1400154e0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x2d0]
jmp 0x14009770b
mov dword [rsp + 0x70], 0x238
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x140097657
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4b1
lea rcx, [rsp + 0x50]
call fcn.1400909a0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.140003850
mov r9d, 0x40
mov r8, rax
lea rdx, str.Process32First
xor ecx, ecx
call fcn.14008f710
nop
lea rcx, [rsp + 0x50]
call fcn.140003680
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov rcx, qword [rsp + 0x2d0]
call fcn.1400154e0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x2d0]
jmp 0x14009770b
mov eax, dword [rsp + 0x2d8]
cmp dword [rsp + 0x78], eax
jne 0x1400976c6
mov r8d, dword [rsp + 0x78]
mov edx, 1
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x1400976c6
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x9c]
mov rcx, qword [rsp + 0x2d0]
call fcn.1400154e0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x2d0]
jmp 0x14009770b
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140097657
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov rcx, qword [rsp + 0x2d0]
call fcn.1400154e0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x2d0]
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140054f80
add rsp, 0x2c8
ret
Function at 0x140097730
Capabilities:
Create directory
Get common file path

Disassembly:
push rdi
sub rsp, 0x290
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1400eab80]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov qword [rsp + 0x30], 0
lea rax, str.CLogFile::CreateLogDir
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 8
lea r9, [0x1400c90f0]
mov r8d, 0x4e
mov edx, dword [0x1400ec2f8]
lea rcx, [rsp + 0x58]
call fcn.14008f230
nop
mov eax, dword [0x1400f4ec0]
and eax, 1
test eax, eax
jne 0x1400977c3
mov eax, dword [0x1400f4ec0]
or eax, 1
mov dword [0x1400f4ec0], eax
lea rcx, [0x1400f4ec8]
call fcn.140003650
lea rcx, [0x1400a2000]
call fcn.140055784
lea rcx, [0x1400f4ec8]
call fcn.140003880
test eax, eax
jne 0x1400978c6
xor eax, eax
mov word [rsp + 0x70], ax
lea rax, [rsp + 0x72]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8023
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x14009783c
mov eax, 2
imul rax, rax, 0
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0x208
jae 0x14009782b
jmp 0x140097830
call fcn.140056620
xor eax, eax
mov rcx, qword [rsp + 0x40]
mov word [rsp + rcx + 0x70], ax
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x70]
test eax, eax
je 0x1400978c6
lea rdx, [rsp + 0x70]
lea rcx, [0x1400f4ec8]
call fcn.1400155a0
lea rdx, [0x1400c90a8]
lea rcx, [0x1400f4ec8]
call fcn.140003790
lea rcx, [0x1400f4ec8]
call fcn.140003850
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rdx, [0x1400c90c0]
lea rcx, [0x1400f4ec8]
call fcn.140003790
lea rcx, [0x1400f4ec8]
call fcn.140003850
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rdx, [0x1400b9b6c]
lea rcx, [0x1400f4ec8]
call fcn.140003790
lea rcx, [0x1400f4ec8]
call fcn.140003850
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x58]
call fcn.14008f210
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140054f80
add rsp, 0x290
pop rdi
ret
Function at 0x14000f040
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, rcx
mov rsi, rdx
xor ecx, ecx
mov rax, rdx
mov qword [rdx + 0x10], rcx
cmp qword [rdx + 0x18], 8
jb 0x14000f069
mov rax, qword [rdx]
mov word [rax], cx
xor r8d, r8d
mov rcx, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
jne 0x14000f0c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x14000f0b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14000f0a0
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
mov rdx, rbp
call fcn.140006950
xor al, al
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rbx
mov eax, 2
mul r14
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x38], rdi
cmovo rax, rbx
mov rcx, rax
call fcn.1400134cc
mov r8d, r14d
mov rdx, rax
mov rcx, rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x14000f130
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14000f112
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
mov rdx, rbp
call fcn.140006950
xor al, al
jmp 0x14000f152
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x14000f130
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.140005120
mov rcx, rdi
call fcn.140013200
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004450]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004460]
mov dword [rax], 1
mov rax, qword [0x140004470]
mov dword [rax], 1
mov rax, qword [0x1400043e0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004440]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140004520]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140004500]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400043c0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001472
Capabilities:
Query environment variable
Read file on windows
Write file on windows

Disassembly:
push rbp
push rbx
mov eax, 0x1068
call fcn.140002a60
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1000], rcx
mov rax, rsp
mov rbx, rax
lea rax, str.APPDATA
mov qword [rbp + 0xfd0], rax
mov eax, 0x64
cdqe
sub rax, 1
mov qword [rbp + 0xfc8], rax
mov eax, 0x64
cdqe
add rax, 0xf
shr rax, 4
shl rax, 4
call fcn.140002a60
sub rsp, rax
lea rax, [rsp + 0x20]
add rax, 0
mov qword [rbp + 0xfc0], rax
mov rax, qword [rbp + 0xfd0]
mov rcx, rax
call sym.getenv
mov rdx, rax
mov rax, qword [rbp + 0xfc0]
mov rcx, rax
call sym.strcpy
mov dword [rbp + 0xfdc], 0
jmp 0x14000153f
mov rdx, qword [rbp + 0xfc0]
mov eax, dword [rbp + 0xfdc]
cdqe
movzx eax, byte [rdx + rax]
cmp al, 0x5c
jne 0x140001538
mov rdx, qword [rbp + 0xfc0]
mov eax, dword [rbp + 0xfdc]
cdqe
mov byte [rdx + rax], 0x2f
add dword [rbp + 0xfdc], 1
mov rdx, qword [rbp + 0xfc0]
mov eax, dword [rbp + 0xfdc]
cdqe
movzx eax, byte [rdx + rax]
test al, al
jne 0x14000150e
mov rax, qword [rbp + 0xfc0]
mov rcx, rax
call sym.strlen
mov rdx, rax
mov rax, qword [rbp + 0xfc0]
add rax, rdx
movabs rdx, 0x6f736f7263694d2f
movabs rcx, 0x6f646e69572f7466
mov qword [rax], rdx
mov qword [rax + 8], rcx
movabs rdx, 0x74726174532f7377
movabs rcx, 0x72502f756e654d20
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rcx
movabs rdx, 0x532f736d6172676f
movabs rcx, 0x2f707574726174
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rcx
mov rax, qword [rbp + 0xfc0]
mov rcx, rax
call sym.strlen
mov rdx, rax
mov rax, qword [rbp + 0xfc0]
add rax, rdx
movabs rcx, 0x6578652e4e414542
mov qword [rax], rcx
mov byte [rax + 8], 0
mov rax, qword [rbp + 0x1000]
lea rdx, [0x14000400c]
mov rcx, rax
call sym.fopen
mov qword [rbp + 0xfb8], rax
mov rax, qword [rbp + 0xfc0]
lea rdx, [0x14000400f]
mov rcx, rax
call sym.fopen
mov qword [rbp + 0xfb0], rax
cmp qword [rbp + 0xfb8], 0
jne 0x14000164f
lea rax, str.Old_file_is_NULL
mov rcx, rax
call sym.puts
mov eax, 1
jmp 0x14000172e
cmp qword [rbp + 0xfb0], 0
jne 0x140001681
lea rax, str.New_file_is_NULL
mov rcx, rax
call sym.puts
mov rax, qword [rbp + 0xfb8]
mov rcx, rax
call sym.fclose
mov eax, 1
jmp 0x14000172e
mov rdx, qword [rbp + 0xfb8]
lea rax, [rbp - 0x60]
mov r9, rdx
mov r8d, 0x1000
mov edx, 1
mov rcx, rax
call sym.fread
mov dword [rbp + 0xfac], eax
cmp dword [rbp + 0xfac], 0
jg 0x1400016cb
cmp dword [rbp + 0xfac], 0
jne 0x140001707
lea rax, str.success
mov rcx, rax
call dbg.printf
jmp 0x140001707
mov eax, dword [rbp + 0xfac]
movsxd rdx, eax
mov rcx, qword [rbp + 0xfb0]
lea rax, [rbp - 0x60]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rdx, rax
mov eax, dword [rbp + 0xfac]
cdqe
cmp rdx, rax
jne 0x14000170a
jmp 0x140001681
nop
jmp 0x14000170b
nop
mov rax, qword [rbp + 0xfb8]
mov rcx, rax
call sym.fclose
mov rax, qword [rbp + 0xfb0]
mov rcx, rax
call sym.fclose
mov rsp, rbx
jmp 0x140001731
mov rsp, rbx
lea rsp, [rbp + 0xfe8]
pop rbx
pop rbp
ret
Function at 0x14000173b
Capabilities:
Execute command
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
call dbg.__main
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov qword [rbp - 8], rax
lea rax, str.Hiding_the_window
mov rcx, rax
call sym.puts
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
mov ecx, 0
call sym.time
mov ecx, eax
call sym.srand
mov rax, qword [rbp + 0x18]
mov rax, qword [rax]
mov rcx, rax
call sym.cptostart
mov dword [rbp - 0xc], 0
mov eax, 0x64
cdqe
sub rax, 1
mov qword [rbp - 0x18], rax
mov eax, 0x64
cdqe
add rax, 0xf
shr rax, 4
shl rax, 4
call fcn.140002a60
sub rsp, rax
lea rax, [rsp + 0x20]
add rax, 0
mov qword [rbp - 0x20], rax
mov eax, 0x64
cdqe
sub rax, 1
mov qword [rbp - 0x28], rax
mov eax, 0x64
cdqe
add rax, 0xf
shr rax, 4
shl rax, 4
call fcn.140002a60
sub rsp, rax
lea rax, [rsp + 0x20]
add rax, 0
mov qword [rbp - 0x30], rax
mov eax, 0x64
cdqe
sub rax, 1
mov qword [rbp - 0x38], rax
mov eax, 0x64
cdqe
add rax, 0xf
shr rax, 4
shl rax, 4
call fcn.140002a60
sub rsp, rax
lea rax, [rsp + 0x20]
add rax, 0
mov qword [rbp - 0x40], rax
cmp dword [rbp + 0x10], 1
jle 0x14000186b
mov rax, qword [rbp + 0x18]
add rax, 8
mov rdx, qword [rax]
mov rax, qword [rbp - 0x30]
mov rcx, rax
call sym.strcpy
jmp 0x14000187c
mov rax, qword [rbp - 0x30]
mov dword [rax], 0x6f726863
mov dword [rax + 3], 0x656d6f
cmp dword [rbp + 0x10], 2
jle 0x14000189e
mov rax, qword [rbp + 0x18]
add rax, 0x10
mov rdx, qword [rax]
mov rax, qword [rbp - 0x30]
mov rcx, rax
call sym.strcpy
jmp 0x140001933
mov rax, qword [rbp - 0x20]
movabs rdx, 0x2f2f3a7370747468
movabs rcx, 0x696365722e777777
mov qword [rax], rdx
mov qword [rax + 8], rcx
movabs rdx, 0x7461656e69746570
movabs rcx, 0x61742f6d6f632e73
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rcx
movabs rdx, 0x30322f6e6f796863
movabs rcx, 0x6f482f35302f3431
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rcx
movabs rdx, 0x482d6564616d656d
movabs rcx, 0x6b61422d7a6e6965
mov qword [rax + 0x30], rdx
mov qword [rax + 0x38], rcx
movabs rdx, 0x736e6165422d6465
movabs rcx, 0x706a2e51532d305f
mov qword [rax + 0x40], rdx
mov qword [rax + 0x48], rcx
mov word [rax + 0x50], 0x67
mov rax, qword [rbp - 0x40]
movabs rcx, 0x422f207472617473
mov qword [rax], rcx
mov word [rax + 8], 0x20
mov rdx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x40]
mov rcx, rax
call sym.strcat
mov rax, qword [rbp - 0x40]
mov rcx, rax
call sym.strlen
mov rdx, rax
mov rax, qword [rbp - 0x40]
add rax, rdx
mov word [rax], 0x20
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x40]
mov rcx, rax
call sym.strcat
mov rax, qword [rbp - 0x40]
mov rcx, rax
call sym.system
call sym.rand
movsxd rdx, eax
imul rdx, rdx, 0x1b4e81b5
shr rdx, 0x20
sar edx, 6
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
mov dword [rbp - 0xc], edx
mov edx, dword [rbp - 0xc]
imul edx, edx, 0x258
sub eax, edx
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
imul eax, eax, 0x64
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x140001933
Function at 0x140001ca0
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 sym.__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 sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call dbg.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140001d10
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007094]
mov rbx, rcx
test esi, esi
jle 0x140001e40
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001d5b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001de5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001d40
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001e62
mov rax, qword [0x140007098]
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 [0x140007098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001e47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001dde
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001df0
add dword [0x140007094], 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 [0x140007098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001dde
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 0x140001d68
mov rax, qword [0x140007098]
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 0x1400023f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x14000244c
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 rsi, rsi
je 0x140002443
test eax, eax
jne 0x140002443
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002428
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 0x140002660
Capabilities:
Parse pe header

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

Function at 0x140002690
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 0x1400026dd
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 0x1400026d4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400026df
add rax, 0x28
cmp rax, r9
jne 0x1400026c0
xor eax, eax
ret

Function at 0x1400026e0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002770
mov rdx, qword [0x1400043e0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000275e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000275e
cmp word [rax + 0x18], 0x20b
jne 0x14000275e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002770
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002749
add rbx, 0x28
cmp rbx, rdi
je 0x140002770
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002740
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 0x140002780
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400027a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400027a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400027a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400027fd
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 0x1400027f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400027a0
add rax, 0x28
cmp rax, r9
jne 0x1400027e0
xor eax, eax
ret

Function at 0x140002800
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x1400043e0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002860
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002868
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002860
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400028b0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400028a7
test rcx, rcx
je 0x140002860
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002898
xor eax, eax
ret

Function at 0x1400028c0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x1400043e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002920
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002928
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002920
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002920
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 0x140002974
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002980
add rdx, 0x28
cmp rdx, r9
jne 0x140002960
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400043e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400029b2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400029c0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400029b2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400029b2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400029b2
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 0x140002a15
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002a28
add rdx, 0x28
cmp r10, rdx
jne 0x140002a00
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002a37
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002a47
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002a1e
test ecx, ecx
jg 0x140002a30
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret