joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d16a0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x140
mov rax, qword [0x14023b3d8]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rdi, rdx
mov rbp, rcx
xor esi, esi
test rdx, rdx
je 0x1400d176b
movsx edx, byte [rdx]
test dl, dl
je 0x1400d176b
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [rdi + rax], sil
jne 0x1400d16f0
cmp rax, 1
jne 0x1400d1712
cmp dl, 0x43
je 0x1400d17d7
mov eax, 0xfffffffe
jmp 0x1400d1863
cmp rax, 2
jne 0x1400d1729
lea eax, [rdx - 0x61]
cmp eax, 0x1a
jae 0x1400d1761
movsx eax, byte [rdi + 1]
sub eax, 0x61
jmp 0x1400d175c
cmp rax, 5
jne 0x1400d1761
lea eax, [rdx - 0x61]
cmp eax, 0x1a
jae 0x1400d1761
movsx eax, byte [rdi + 1]
sub eax, 0x61
cmp eax, 0x1a
jae 0x1400d1761
cmp byte [rdi + 2], 0x5f
jne 0x1400d1761
movsx eax, byte [rdi + 3]
sub eax, 0x41
cmp eax, 0x1a
jae 0x1400d1761
movsx eax, byte [rdi + 4]
sub eax, 0x41
cmp eax, 0x1a
jb 0x1400d17d7
mov eax, 0xfffffffe
jmp 0x1400d1863
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov ecx, eax
mov r9d, 0x100
lea r8, [rsp + 0x30]
mov edx, 0x59
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
cmp eax, 3
jne 0x1400d17b8
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov ecx, eax
mov r9d, 0xfc
lea r8, [rsp + 0x33]
mov edx, 0x5a
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
cmp eax, 3
jne 0x1400d17b8
mov byte [rsp + 0x32], 0x5f
jmp 0x1400d17d2
mov edx, 0x100
lea rcx, [rsp + 0x30]
call qword [sym.imp.VBoxRT.dll_RTLocaleQueryNormalizedBaseLocaleName]
mov esi, eax
test eax, eax
js 0x1400d1863
lea rdi, [rsp + 0x30]
mov r8, rbp
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.1400d87b0
nop
lea r14, vtable.util::AutoWriteLock.0
mov qword [rsp + 0x20], r14
lea rcx, [rsp + 0x20]
call fcn.1400d8b90
nop
lea rcx, [rbp + 0x30]
mov rdx, rdi
call qword [reloc.VBoxRT.dll___4RTCString__QEAAAEAV0_PEBD_Z]
mov rax, qword [rbp + 0x18]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400d183b
nop word [rax + rax]
lea rdx, [rbx + 0x10]
mov r8, rdi
mov rcx, rbp
call fcn.1400d1890
mov rax, qword [rbx]
mov rbx, rax
cmp rax, qword [rbp + 0x18]
jne 0x1400d1820
mov qword [rsp + 0x20], r14
lea rcx, [rsp + 0x20]
call fcn.1400d8c70
lea rax, vtable.util::AutoWriteLockBase.0
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
call fcn.1400d89a0
nop
mov eax, esi
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400d4c20
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400d40a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
sub rsp, 0x18
mov r11, rdx
cmp rdx, 0xffffffffffffffff
je 0x1400d4281
mov rdi, qword [rcx + 0x28]
mov rsi, qword [rcx + 0x30]
cmp rdi, rsi
je 0x1400d4281
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], r12
movabs r12, 0xcccccccccccccccd
mov qword [rsp + 0x10], r13
movabs r13, 0x47ae147ae147ae15
mov qword [rsp + 8], r14
xor r14d, r14d
mov qword [rsp], r15
mov r8d, r14d
sub rsi, rdi
movabs r15, 0x624dd2f1a9fbe77
nop dword [rax]
xor bpl, bpl
nop dword [rax]
nop word [rax + rax]
mov bl, 1
mov eax, r8d
mov rcx, r11
inc r8d
movzx r9d, byte [rax + rdi]
test r9b, 0x10
je 0x1400d414c
mov rax, r12
mul r11
shr rdx, 3
lea rax, [rdx + rdx*4]
add rax, rax
sub rcx, rax
jmp 0x1400d419c
test r9b, 0x20
je 0x1400d4171
mov rax, r13
mul r11
mov rax, r11
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 6
imul rax, rax, 0x64
sub rcx, rax
jmp 0x1400d419c
test r9b, 0x40
je 0x1400d419c
cmp r11, 0x3e8
jb 0x1400d419c
mov rax, r15
mul rcx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 9
cmp rcx, 0x3e8
jae 0x1400d4180
movzx edx, byte [r8 + rdi]
mov eax, r9d
and eax, 7
inc r8d
cmp eax, 4
jne 0x1400d41c5
movzx r10d, byte [r8 + rdi]
lea eax, [r8 + 1]
mov r8d, eax
cmp rcx, rdx
jb 0x1400d41cf
cmp rcx, r10
jmp 0x1400d4203
cmp eax, 1
jne 0x1400d41ef
cmp rcx, rdx
je 0x1400d4205
xor al, al
movzx ecx, al
movzx eax, cl
xor al, 1
and r9b, 8
movzx edx, al
cmove edx, ecx
test bl, bl
je 0x1400d4209
test dl, dl
je 0x1400d4209
mov bl, 1
jmp 0x1400d420b
cmp eax, 2
jne 0x1400d41fb
cmp rcx, rdx
jb 0x1400d4205
jmp 0x1400d41cf
cmp eax, 3
jne 0x1400d41cf
cmp rcx, rdx
ja 0x1400d41cf
mov al, 1
jmp 0x1400d41d1
xor bl, bl
mov eax, r8d
cmp rax, rsi
je 0x1400d4223
cmp byte [rax + rdi], 0xfd
mov ecx, eax
jne 0x1400d4226
inc r8d
jmp 0x1400d4122
mov ecx, r8d
test bpl, bpl
jne 0x1400d422f
test bl, bl
je 0x1400d4232
mov bpl, 1
cmp rax, rsi
je 0x1400d4245
cmp byte [rdi + rcx], 0xfe
jne 0x1400d4245
inc r8d
jmp 0x1400d4120
test bpl, bpl
jne 0x1400d425a
inc r14
cmp rax, rsi
jae 0x1400d425a
inc r8d
jmp 0x1400d4110
mov r13, qword [rsp + 0x10]
mov rax, r14
mov r14, qword [rsp + 8]
mov r12, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r15, qword [rsp]
add rsp, 0x18
pop rdi
pop rsi
ret
xor eax, eax
add rsp, 0x18
pop rdi
pop rsi
ret
Function at 0x1400d8d40
Capabilities:
Query or enumerate registry value

Disassembly:
cmp rdx, 0x1000
jb 0x1400d8e81
push rbx
sub rsp, 0x40
movabs rax, 0xffff800000000000
mov rbx, rdx
test rax, rdx
jne 0x1400d8e7c
mov qword [rsp + 0x50], rdi
xor edi, edi
mov qword [rdx], rdi
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rdi
call qword [sym.imp.ole32.dll_StringFromIID]
test eax, eax
jne 0x1400d8e77
lea rax, [rsp + 0x38]
xor r8d, r8d
lea r9d, [rdi + 1]
mov qword [rsp + 0x20], rax
lea rdx, str.Interface
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400d8e6c
mov rdx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
lea r9d, [rdi + 1]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400d8e61
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400d8e56
cmp dword [rsp + 0x60], 1
jne 0x1400d8e56
mov edx, dword [rsp + 0x58]
xor ecx, ecx
inc edx
shr edx, 1
inc edx
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
lea rcx, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rbx], rax
mov qword [rsp + 0x28], rcx
xor edx, edx
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400d8e56
mov rcx, qword [rbx]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rdi, qword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
Function at 0x32abe4daa
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
lea rax, str.echoBinSafe
mov qword [rbp - 0x48], rax
lea rax, str._usr_lib_nim_lib_system_io.nim
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov word [rbp - 0x30], 0
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.nimFrame_4
mov qword [rbp - 0x40], 0x332
lea rax, str._usr_lib_nim_lib_system_io.nim
mov qword [rbp - 0x38], rax
lea rax, [0x32ac49120]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x40], 8
lea rax, [0x32ac38610]
mov qword [rbp - 0x38], rax
mov qword [rbp - 8], 0
mov qword [rbp - 0x40], 9
lea rax, [0x32ac38610]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x28]
jge 0x32abe4f1f
mov qword [rbp - 0x40], 0x333
lea rax, str._usr_lib_nim_lib_system_io.nim
mov qword [rbp - 0x38], rax
cmp qword [rbp - 8], 0
js 0x32abe4e81
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x28]
jl 0x32abe4e95
mov rax, qword [rbp + 0x28]
lea rdx, [rax - 1]
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.raiseIndexError2
mov rax, qword [rbp - 8]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x20]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov rbx, qword [rax]
mov ecx, 1
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r8d, 0
mov rdx, rbx
mov rcx, rax
call sym.writeWindows__systemZio_205
mov qword [rbp - 0x40], 0xb
lea rax, [0x32ac38610]
mov qword [rbp - 0x38], rax
mov edx, 0
mov rax, qword [rbp - 8]
add rax, 1
jno 0x32abe4ef9
mov edx, 1
mov rcx, rax
lea rax, [rbp - 0x58]
mov qword [rax], rcx
mov rax, rdx
and eax, 1
test al, al
je 0x32abe4f12
call sym.raiseOverflow
mov rax, qword [rbp - 0x58]
mov qword [rbp - 8], rax
jmp 0x32abe4e4f
nop
mov qword [rbp - 0x40], 0x339
lea rax, str._usr_lib_nim_lib_system_io.nim
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x18], 0
mov ecx, 1
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 1
mov edx, 1
lea rax, [0x32ac38636]
mov rcx, rax
call sym.fwrite
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x40], 0x33a
lea rax, str._usr_lib_nim_lib_system_io.nim
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x1c], 0
mov ecx, 1
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
call sym.fflush
mov dword [rbp - 0x1c], eax
mov qword [rbp - 0x40], 0x33e
lea rax, str._usr_lib_nim_lib_system_io.nim
mov qword [rbp - 0x38], rax
lea rax, [0x32ac49120]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
call sym.popFrame_4
nop
add rsp, 0x88
pop rbx
pop rbp
ret
Function at 0x32abe5bbe
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov qword [rbp - 0x10], 0
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x20]
je 0x32abe5c25
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.checkErr__systemZio_141
jmp 0x32abe5c26
nop
mov rax, qword [rbp - 8]
add rsp, 0x30
pop rbp
ret

Function at 0x32abe71e4
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov qword [rbp - 0x10], 0
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.checkErr__systemZio_141
mov rax, qword [rbp - 8]
add rsp, 0x30
pop rbp
ret

Function at 0x32abe75e7
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp + 0x10], ecx
mov qword [rbp - 8], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp - 0xc], eax
mov eax, dword [rbp + 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 8], rax
mov eax, dword [rbp - 0xc]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_SetLastError]
call rax
mov rax, qword [rbp - 8]
add rsp, 0x30
pop rbp
ret

Function at 0x32abe970b
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x32abe973b
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.nimCStrLen_1
mov rcx, rax
jmp 0x32abe9740
mov ecx, 0
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x32abef905
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x32abf5d92
Capabilities:
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp - 4], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov rax, qword [rax]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x10]
mov rax, qword [rax]
mov edx, dword [0x32ac49d48]
mov ecx, edx
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.threadProcWrapStackFrame__system_2944
mov rax, qword [rbp - 0x10]
mov qword [rax], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x10], 0
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.deallocShared
mov eax, dword [rbp - 4]
add rsp, 0x40
pop rbp
ret

Function at 0x32abf8191
Capabilities:
Encode data using base64

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x10], 0
je 0x32abf81b9
mov rax, qword [rbp + 0x10]
mov rdx, qword [rax]
jmp 0x32abf81be
mov edx, 0
cmp qword [rbp + 0x18], 0
je 0x32abf81ce
mov rax, qword [rbp + 0x18]
mov rax, qword [rax]
jmp 0x32abf81d3
mov eax, 0
add rax, rdx
add rax, 1
mov rcx, rax
call sym.rawNewString
mov qword [rbp - 8], rax
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.appendString_1
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.appendString_1
mov rax, qword [rbp - 8]
lea rdx, [0x32ac39180]
mov rcx, rax
call sym.appendString_1
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.sysFatal__system_3608
nop
Function at 0x32ac2d05f
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x5d4f29b3
call sym.SW2_GetSyscallNumber
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x32ac2f05d
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [sym.imp.KERNEL32.dll_TlsAlloc]
call rax
mov edx, eax
mov rax, qword [0x32ac3f7e0]
mov dword [rax], edx
mov rax, qword [0x32ac3f7e0]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [0x32ac3f7f0]
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
nop
add rsp, 0x20
pop rbp
ret

Function at 0x32ac2f380
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 0x32ac2f3f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x32ac64ec4]
mov rbx, rcx
test esi, esi
jle 0x32ac2f520
mov rax, qword [0x32ac64ec8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x32ac2f43b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x32ac2f4c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x32ac2f420
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x32ac2f542
mov rax, qword [0x32ac64ec8]
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 [0x32ac64ec8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x32ac2f527
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x32ac2f4be
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x32ac2f4d0
add dword [0x32ac64ec4], 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 [0x32ac64ec8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x32ac2f4be
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 0x32ac2f448
mov rax, qword [0x32ac64ec8]
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 0x32ac2f8c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x32ac64f00]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x32ac64ee0]
test rbx, rbx
je 0x32ac2f91c
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 0x32ac2f913
test rsi, rsi
je 0x32ac2f913
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x32ac2f8f8
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 0x32ac2fb30
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x32ac2fb48
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x32ac2fb50
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x32ac2fb60
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 0x32ac2fbad
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 0x32ac2fba4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x32ac2fbaf
add rax, 0x28
cmp rax, r9
jne 0x32ac2fb90
xor eax, eax
ret

Function at 0x32ac2fbb0
Capabilities:
Parse pe header

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

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

Function at 0x32ac2fcd0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x32ac3f740]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x32ac2fcef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x32ac2fcf8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x32ac2fcef
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x32ac2fd10
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x32ac3f740]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x32ac2fd30
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x32ac2fd38
ret
cmp word [rdx + 0x18], 0x20b
jne 0x32ac2fd30
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x32ac2fd80
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x32ac2fd77
test rcx, rcx
je 0x32ac2fd30
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x32ac2fd68
xor eax, eax
ret
Function at 0x32ac2fd90
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x32ac3f740]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x32ac2fe82
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x32ac2fe90
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x32ac2fe82
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x32ac2fe82
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x32ac2fe82
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 0x32ac2fee5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x32ac2fef8
add rdx, 0x28
cmp rdx, r10
jne 0x32ac2fed0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x32ac2ff07
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x32ac2ff17
mov edx, dword [rax + 0xc]
test edx, edx
je 0x32ac2feee
test ecx, ecx
jg 0x32ac2ff00
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret