joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015d90
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Software_atherosVistaAddon
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140015dc6
xor al, al
add rsp, 0x38
ret
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0xffffffff
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.HidePBAP
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x50], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x58]
test eax, eax
je 0x140015e22
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add rsp, 0x38
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x40], 1
setne al
add rsp, 0x38
ret
Function at 0x140017d70
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x140053008]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edi, edi
mov rsi, rcx
cmp qword [rcx + 0x18], 8
mov qword [rcx + 0x10], rdi
jb 0x140017da9
mov rax, qword [rcx]
jmp 0x140017dac
mov rax, rsi
lea rcx, [rsp + 0x40]
mov word [rax], di
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0x40]
cmp ax, 9
je 0x140017dd3
cmp ax, 6
je 0x140017dd3
mov ebx, dword [0x140053bc8]
jmp 0x140017dde
mov ebx, 0xf013f
mov dword [0x140053bc8], ebx
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x208
call fcn.14001d250
mov rcx, qword [0x140053bd0]
lea rax, [rsp + 0x38]
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x30], 0x104
lea rdx, str.SOFTWAREAtherosVistaAddOn
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140017ea1
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.InstallDir
lea rax, [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140017ea1
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x140017ea1
cmp word [rsp + 0x70], di
je 0x140017e8a
lea rax, [rsp + 0x70]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140017e80
mov r8, rdi
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.14000cb70
mov eax, 1
jmp 0x140017ea3
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140019ce0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140019150
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x50
mov rax, qword [0x140053008]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
lea rcx, [0x140053de8]
xor r8d, r8d
xor edx, edx
lea r9d, [rbp + 0x10]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rsi, rax
test rax, rax
je 0x14001928b
xor eax, eax
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x28]
xor edx, edx
mov dword [rsp + 0x28], 0x20
mov rcx, rsi
mov qword [rsp + 0x30], rax
mov edi, ebp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x14001927b
mov qword [rsp + 0x60], rbx
nop
mov r8d, dword [rsp + 0x3c]
lea rdx, [rsp + 0x20]
xor r9d, r9d
mov dword [rsp + 0x24], 0xff
lea rcx, [rsp + 0x24]
mov dword [rsp + 0x20], 0xff
call qword [sym.imp.CFGMGR32.dll_CM_Get_DevNode_Status]
mov edx, eax
lea rcx, str.The_status_of_uResult_is__d__n
mov ebx, eax
call fcn.14000e220
mov edx, dword [rsp + 0x20]
lea rcx, str.The_status_of_uProblem_is__d__n
call fcn.14000e220
test ebx, ebx
je 0x140019264
xor eax, eax
lea rcx, str.The_MemberIndex_of_SetupDiEnumDeviceInfo_is__d__n
mov qword [rsp + 0x28], rax
inc edi
mov edx, edi
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
call fcn.14000e220
lea r8, [rsp + 0x28]
mov edx, edi
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x1400191d0
jmp 0x140019276
lea rcx, str.This_device_is_3002_UART_dongle._n
mov ebp, 1
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rbx, qword [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov rdi, qword [rsp + 0x68]
mov eax, ebp
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140019ce0
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop rsi
ret

Function at 0x1400192b0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x140053008]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.14001d250
xor ecx, ecx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x14001935f
mov r8d, 0x208
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x20]
lea rcx, str.The_cServPath_is__s__n
call fcn.14000e220
lea rdx, str.system32
lea rcx, [rsp + 0x20]
call fcn.14001aea8
test rax, rax
jne 0x140019344
lea rdx, str.System32
lea rcx, [rsp + 0x20]
call fcn.14001aea8
test rax, rax
je 0x140019356
lea rcx, str.This_adminservice_is_for_MSFT_WU_or_3002_Intel._n
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140019ce0
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret
Function at 0x1400197e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
mov eax, 0x10118
call fcn.140037dc0
sub rsp, rax
mov rax, qword [0x140053008]
xor rax, rsp
mov qword [rsp + 0x100d0], rax
mov eax, dword [0x140053e00]
test eax, eax
je 0x140019a2f
cmp ecx, eax
jg 0x140019a2f
test ecx, eax
je 0x140019a2f
mov qword [rsp + 0x10110], rbx
mov qword [rsp + 0x10108], rbp
mov qword [rsp + 0x100e8], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x140053e04], eax
mov ebx, eax
je 0x140019885
nop dword [rax]
nop dword [rax + rax]
xor eax, eax
lock cmpxchg dword [0x140053e04], ebx
cmp dword [0x140053e04], ebx
je 0x140019885
mov ecx, 0x19
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x140053e04], ebx
jne 0x140019860
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
mov rbp, qword [0x140053df8]
or rbx, 0xffffffffffffffff
cmp rbp, rbx
jne 0x1400198b1
lea rcx, [0x140053df8]
call fcn.140019620
mov rbp, rax
jmp 0x1400198fd
movzx eax, word [0x140053e10]
cmp word [rsp + 0x50], ax
jne 0x1400198db
movzx eax, word [0x140053e12]
cmp word [rsp + 0x52], ax
jne 0x1400198db
movzx eax, word [0x140053e16]
cmp word [rsp + 0x56], ax
je 0x1400198fd
cmp rbp, 0xffffffffffffffff
je 0x1400198ea
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x140053df8]
mov qword [0x140053df8], rbx
call fcn.140019620
xor r15d, r15d
test rbp, rbp
je 0x140019a08
movzx ecx, word [rsp + 0x5e]
movzx edx, word [rsp + 0x5c]
mov eax, dword [0x140053e04]
movzx r9d, word [rsp + 0x5a]
movzx r8d, word [rsp + 0x58]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x20], edx
lea rdx, str._02d:_02d:_02d__03d__X:
mov qword [rsp + 0x10100], rsi
mov qword [rsp + 0x100f8], rdi
mov qword [rsp + 0x100f0], r14
call fcn.140009100
movsxd rsi, eax
lea r14, [rsp + 0x10130]
lea rdi, [rsp + 0x60]
mov qword [rsp + 0x48], r14
lea rdi, [rdi + rsi*2]
call fcn.140001030
mov r9, qword [rsp + 0x10128]
mov r8d, 0x8000
mov qword [rsp + 0x28], r14
mov rdx, rdi
mov qword [rsp + 0x20], r15
mov rcx, qword [rax]
or rcx, 1
call fcn.1400217b8
test eax, eax
lea rcx, [rsp + 0x60]
lea rdx, [0x14004c2ac]
cmovs eax, ebx
add eax, esi
cdqe
lea rcx, [rcx + rax*2]
call fcn.140009100
mov r14, qword [rsp + 0x100f0]
lea rax, [rsp + 0x60]
mov rdi, qword [rsp + 0x100f8]
mov rsi, qword [rsp + 0x10100]
nop word [rax + rax]
cmp word [rax + rbx*2 + 2], r15w
lea rbx, [rbx + 1]
jne 0x1400199e0
lea r8d, [rbx + rbx]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov rcx, rbp
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbp, qword [rsp + 0x10108]
mov rbx, qword [rsp + 0x10110]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lock cmpxchg dword [0x140053e04], r15d
mov r15, qword [rsp + 0x100e8]
mov rcx, qword [rsp + 0x100d0]
xor rcx, rsp
call fcn.140019ce0
invalid
invalid
invalid
sbb byte [rcx], al
invalid
Function at 0x14002aa9c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14002a927
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002a927
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002a927
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002a927
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002a927
cmp dword [rcx + 0x84], 0xe
jbe 0x14002a927
cmp dword [rcx + 0xf8], 0
je 0x14002a927
mov ecx, ebx
call fcn.14002a9c8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14002a7a4
cmp dword [rbp + 0x20], 0
je 0x14002a974
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002a97c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14002a8c0
Function at 0x7ff6acd0bfb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, qword [0x7ff6acd1a170]
push r12
xor r8d, r8d
push rbp
push rdi
push rsi
push rbx
mov rbx, qword [rax]
mov rax, qword [rbx + 0x84a]
test rax, rax
je 0x7ff6acd0c065
mov r8d, dword [rbx + 0x800]
test r8d, r8d
jne 0x7ff6acd0c065
movsxd rdx, dword [rax + 0x3c]
xor ecx, ecx
mov edx, dword [rax + rdx + 0x88]
add rdx, rax
mov edi, dword [rdx + 0x20]
mov r10d, dword [rdx + 0x1c]
mov esi, dword [rdx + 0x24]
mov ebp, dword [rdx + 0x18]
xor edx, edx
add r10, rax
add rdi, rax
add rsi, rax
cmp ebp, ecx
jbe 0x7ff6acd0c05e
mov r9d, dword [rdi + rcx*4]
cmp word [rax + r9], 0x775a
jne 0x7ff6acd0c059
test rdx, rdx
movzx r9d, word [rsi + rcx*2]
jne 0x7ff6acd0c02f
mov edx, dword [r10 + r9*4]
add rdx, rax
jmp 0x7ff6acd0c059
mov r9d, dword [r10 + r9*4]
mov r11, rdx
add r9, rax
mov r12, r9
sub r11, r9
sub r12, rdx
cmp rdx, r9
mov r9d, r12d
cmova r9d, r11d
test r8d, r8d
je 0x7ff6acd0c056
cmp r8d, r9d
jbe 0x7ff6acd0c059
mov r8d, r9d
inc rcx
jmp 0x7ff6acd0c00b
mov dword [rbx + 0x800], r8d
pop rbx
mov eax, r8d
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x7ff6acd0c3e0
Capabilities:
Hash data using djb2

Disassembly:
xor eax, eax
test rcx, rcx
je 0x7ff6acd0c42d
mov r10, rcx
mov eax, 0x1505
mov r9b, byte [r10]
test edx, edx
jne 0x7ff6acd0c3fc
test r9b, r9b
jne 0x7ff6acd0c40f
ret
mov r11, r10
sub r11, rcx
cmp edx, r11d
jbe 0x7ff6acd0c42d
cmp r9b, 1
adc r10, 0
cmp r9b, 0x60
jbe 0x7ff6acd0c41e
test r8d, r8d
je 0x7ff6acd0c41e
sub r9d, 0x20
imul eax, eax, 0x21
movzx r9d, r9b
inc r10
add eax, r9d
jmp 0x7ff6acd0c3ef
ret
Function at 0x7ff6acd0e4a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
test rcx, rcx
je 0x7ff6acd0e4d6
mov esi, edx
test edx, edx
jne 0x7ff6acd0e4dd
xor eax, eax
jmp 0x7ff6acd0e5ca
movsxd rax, dword [rcx + 0x3c]
mov r12, rcx
xor ebx, ebx
add rax, rcx
mov r9d, dword [rax + 0x88]
mov eax, dword [rax + 0x8c]
lea r15, [rcx + r9]
mov dword [rsp + 0x28], eax
mov eax, dword [r15 + 0x18]
mov r14d, dword [r15 + 0x20]
mov ebp, dword [r15 + 0x1c]
mov r13d, dword [r15 + 0x24]
mov dword [rsp + 0x2c], eax
add r14, rcx
cmp dword [rsp + 0x2c], ebx
jbe 0x7ff6acd0e4d6
mov edi, dword [r14 + rbx*4]
mov r8d, 1
xor edx, edx
add rdi, r12
mov rcx, rdi
call fcn.7ff6acd0c3e0
mov r8d, eax
lea rax, [rbx + 1]
cmp r8d, esi
jne 0x7ff6acd0e5c2
add rbx, rbx
add rbx, r12
movzx eax, word [rbx + r13]
lea rax, [r12 + rax*4]
mov eax, dword [rax + rbp]
add rax, r12
mov qword [rsp + 0x38], rax
cmp rax, r15
jae 0x7ff6acd0e568
mov rax, qword [rsp + 0x38]
jmp 0x7ff6acd0e5ca
mov esi, dword [rsp + 0x28]
add rsi, r12
add rsi, r15
cmp rax, rsi
jae 0x7ff6acd0e561
call fcn.7ff6acd13a40
mov qword [rsp + 0x48], rdi
mov word [rsp + 0x40], ax
inc eax
mov word [rsp + 0x42], ax
mov rax, qword [0x7ff6acd1a170]
mov rax, qword [rax]
mov rax, qword [rax + 0x138]
test rax, rax
je 0x7ff6acd0e4d6
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea r9, [rsp + 0x38]
mov rcx, r12
call rax
test eax, eax
jns 0x7ff6acd0e561
jmp 0x7ff6acd0e4d6
mov rbx, rax
jmp 0x7ff6acd0e515
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14005fe6c
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov dword [rax + 8], ecx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rdi, rdx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
xor esi, esi
mov qword [rbp - 0x10], rsi
mov dword [rbp + 0x30], esi
lea r8, [rbp + 0x30]
xor edx, edx
lea ecx, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x14005feb4
lea ebx, [rsi + 0xd]
jmp 0x14005ff1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xea
jne 0x14005ff1f
mov word [rbp + 0x20], si
mov edx, dword [rbp + 0x30]
lea rax, [rbp - 0x20]
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
lea r8, [rbp - 0x30]
lea rcx, [rbp - 0x20]
call fcn.14003cffc
lea r8, [rbp + 0x30]
mov rdx, qword [rbp - 0x20]
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x14005ff11
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14005ff1f
mov rdx, qword [rbp - 0x20]
mov rcx, rdi
call fcn.1400033fc
mov ebx, esi
lea rcx, [rbp - 0x20]
call fcn.1400174fc
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

Function at 0x140060a48
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400bd0c0], eax
call fcn.140060cf8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400bd0c0], 0
jne case.default.0x140060a9e
mov ecx, 1
call fcn.140060cf8
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]
mov ebp, 0xf857857b
clc
invalid
jp 0x140125e6a
jle 0x140125e6e
lodsb al, byte [rsi]
mov ch, 0x4e
push rdi
xlatb
invalid
Function at 0x277b9aa10
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 0x277b9aa80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x277ee3074]
mov rbx, rcx
test esi, esi
jle 0x277b9abb0
mov rax, qword [0x277ee3078]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x277b9aacb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x277b9ab55
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x277b9aab0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x277b9abd2
mov rax, qword [0x277ee3078]
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 [0x277ee3078]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x277b9abb7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x277b9ab4e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x277b9ab60
add dword [0x277ee3074], 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 [0x277ee3078]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x277b9ab4e
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 0x277b9aad8
mov rax, qword [0x277ee3078]
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 0x277b9af50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x277ee30a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x277ee3080]
test rbx, rbx
je 0x277b9afac
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 0x277b9afa3
test rsi, rsi
je 0x277b9afa3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x277b9af88
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 0x277b9b1c0
Capabilities:
Parse pe header

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

Function at 0x277b9b1f0
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 0x277b9b23d
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 0x277b9b234
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x277b9b23f
add rax, 0x28
cmp rax, r9
jne 0x277b9b220
xor eax, eax
ret

Function at 0x277b9b240
Capabilities:
Parse pe header

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

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

Function at 0x277b9b360
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x277ebc380]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x277b9b3c0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x277b9b3c8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x277b9b3c0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x277b9b410
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x277b9b407
test rcx, rcx
je 0x277b9b3c0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x277b9b3f8
xor eax, eax
ret

Function at 0x277b9b420
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x277ebc380]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x277b9b512
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x277b9b520
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x277b9b512
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x277b9b512
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x277b9b512
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 0x277b9b575
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x277b9b588
add rdx, 0x28
cmp rdx, r10
jne 0x277b9b560
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x277b9b597
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x277b9b5a7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x277b9b57e
test ecx, ecx
jg 0x277b9b590
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x277b9b680
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x277b9b6b0
mov rdx, rbx
mov ecx, eax
mov dword [rsi], eax
add rsp, 0x28
pop rbx
pop rsi
jmp dbg.__mingwthr_key_dtor
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]