joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fa40
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x40], r12
lea r12, [0x004391c0]
mov rax, r12
xor ebx, ebx
nop
nop
cmp ecx, dword [rax]
je 0x40fa6f
inc ebx
add rax, 0x10
cmp ebx, 0x13
jb 0x40fa60
cmp ebx, 0x13
je 0x40fc59
mov eax, dword [0x00444cb8]
mov qword [rsp + 0x68], rdi
cmp eax, 1
je 0x40fc0e
test eax, eax
jne 0x40fa9d
cmp dword [0x00439010], 1
je 0x40fc0e
cmp ecx, 0xfc
je 0x40fc54
mov qword [rsp + 0x58], rbp
lea rbp, [0x00444d40]
mov qword [rsp + 0x60], rsi
lea rsi, [0x00400000]
lea rdx, [0x00444d5a]
mov r8d, 0x104
mov rax, qword [rsi + 0x2dcf8]
xor ecx, ecx
mov qword [rbp], rax
mov rax, qword [rsi + 0x2dd00]
mov qword [rbp + 8], rax
mov rax, qword [rsi + 0x2dd08]
mov qword [rbp + 0x10], rax
movzx eax, word [rsi + 0x2dd10]
mov word [rbp + 0x18], ax
mov byte [0x00444e5e], 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40fb50
mov rax, qword [rsi + 0x2dce0]
mov qword [rsi + 0x44d5a], rax
mov rax, qword [rsi + 0x2dce8]
mov qword [rsi + 0x44d62], rax
mov eax, dword [rsi + 0x2dcf0]
mov dword [rsi + 0x44d6a], eax
movzx eax, word [rsi + 0x2dcf4]
mov word [rsi + 0x44d6e], ax
movzx eax, byte [rsi + 0x2dcf6]
mov byte [rsi + 0x44d70], al
mov rsi, qword [rsp + 0x60]
xor eax, eax
lea rdi, [0x00444d5a]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x40fb85
lea rcx, [rcx + rbp - 0x22]
lea r8d, [rax + 3]
lea rdx, [0x0042dcdc]
call fcn.00415480
xor eax, eax
mov rdi, rbp
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
movzx eax, word [0x0042dcd8]
movsxd rdx, ebx
mov word [rdi - 1], ax
movzx eax, byte [0x0042dcda]
add rdx, rdx
mov r8, qword [r12 + rdx*8 + 8]
mov byte [rdi + 1], al
xor eax, eax
mov rdi, rbp
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
xor edx, edx
nop
nop
nop
nop
movzx eax, byte [r8 + rdx]
inc rdx
test al, al
mov byte [rdi + rdx - 2], al
jne 0x40fbd0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.004152d0
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
mov r12, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x48
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x40fc54
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x30]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [r12 + rcx*8 + 8]
mov rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdi, qword [rsp + 0x68]
mov r12, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x48
ret
Function at 0x415050
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x20]
mov qword [rbp + 0xa0], rbx
mov qword [rbp + 0xa8], rsi
mov qword [rbp + 0xb0], rdi
mov qword [rbp + 0xb8], r12
mov qword [rbp + 0x88], r13
mov qword [rbp + 0x80], r14
mov qword [rbp + 0x78], r15
mov rax, qword [0x004385b0]
mov qword [rbp + 0x68], rax
mov eax, dword [rsp]
sub rsp, 0x10
lea rdx, [rbp + 8]
mov eax, dword [rsp + 0x20]
lea r12, [rsp + 0x20]
mov r8d, 0x30
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4151ae
mov r14, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [0x00444cc4]
mov edi, dword [rbp + 0x3c]
xor ebx, ebx
cmp ecx, 2
jne 0x415124
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x41511e
lea rdx, str.SetThreadStackGuarantee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x41511e
lea rcx, [rbp]
mov dword [rbp], ebx
call rax
cmp eax, 1
jne 0x41511e
mov eax, dword [rbp]
test eax, eax
cmovne ebx, eax
mov ecx, dword [0x00444cc4]
mov r15d, 1
lea r8d, [rdi - 1]
lea edx, [rbx + rdi - 1]
cmp ecx, r15d
mov eax, r8d
mov esi, 0x104
not eax
cmove esi, r15d
and edx, eax
je 0x415149
add edx, edi
lea eax, [rdi + rdi*2]
mov ebx, r8d
cmp edx, eax
not rbx
cmovb edx, eax
and rbx, r12
mov eax, reloc.COMCTL32.dll_InitCommonControls
mov r13d, edx
sub rbx, r13
cmp ecx, r15d
cmove edi, eax
mov eax, edi
add rax, r14
cmp rbx, rax
jb 0x4151ae
mov r9d, 4
mov r8d, 0x1000
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x4151ae
lea r9, [rbp + 4]
mov r8d, esi
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4151ae
mov eax, r15d
jmp 0x4151b0
xor eax, eax
mov rcx, qword [rbp + 0x68]
call fcn.0041b040
mov rbx, qword [rbp + 0xa0]
mov rsi, qword [rbp + 0xa8]
mov rdi, qword [rbp + 0xb0]
mov r12, qword [rbp + 0xb8]
mov r13, qword [rbp + 0x88]
mov r14, qword [rbp + 0x80]
mov r15, qword [rbp + 0x78]
lea rsp, [rbp + 0x90]
pop rbp
ret
Function at 0x4152d0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
xor esi, esi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x50], r12
cmp qword [0x004455c0], rsi
mov ebx, r8d
mov rbp, rdx
mov r12, rcx
jne 0x4153b6
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rdi, rax
je 0x4153a6
lea rdx, [0x0042e640]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x004455c0], rax
je 0x4153a6
lea rdx, [0x0042e630]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x0042e618]
mov rcx, rdi
mov qword [0x004455c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x00444cc4], 2
mov qword [0x004455d0], rax
jne 0x4153ad
lea rdx, str.GetUserObjectInformationA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x004455e0], rax
je 0x4153ad
lea rdx, str.GetProcessWindowStation
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x004455d8], rax
jmp 0x4153bd
xor eax, eax
jmp 0x415447
mov rax, qword [0x004455d8]
jmp 0x4153bd
mov rax, qword [0x004455d8]
test rax, rax
je 0x41540b
call rax
test rax, rax
je 0x4153f6
lea rcx, [rsp + 0x30]
mov r9d, InitCommonControls
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call qword [0x004455e0]
test eax, eax
je 0x4153f6
test byte [rsp + 0x40], 1
jne 0x41540b
cmp dword [0x00444cd0], 4
jb 0x415405
bts ebx, 0x15
jmp 0x415435
bts ebx, 0x12
jmp 0x415435
mov rax, qword [0x004455c8]
test rax, rax
je 0x415435
call rax
test rax, rax
mov rsi, rax
je 0x415435
mov rdx, qword [0x004455d0]
test rdx, rdx
je 0x415435
mov rcx, rax
call rdx
mov rsi, rax
mov r9d, ebx
mov r8, rbp
mov rdx, r12
mov rcx, rsi
call qword [0x004455c0]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
add rsp, 0x58
ret
Function at 0x4175a0
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
sub rsp, 0x498
mov rax, qword [0x004385b0]
mov qword [rsp + 0x450], rax
mov qword [r11 - 8], rbp
mov qword [r11 - 0x10], rsi
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
xor esi, esi
xor r13d, r13d
test r8d, r8d
mov r12d, r8d
mov rbp, rdx
jne 0x4175e0
xor eax, eax
jmp 0x4177e2
movsxd rax, ecx
mov qword [rsp + 0x460], r15
lea r9, [0x00446960]
mov r15b, al
mov rdx, rax
sar rdx, 5
and r15d, 0x1f
mov rax, qword [r9 + rdx*8]
mov qword [rsp + 0x38], rdx
imul r15, r15, 0x38
test byte [r15 + rax + 8], 0x20
je 0x41762c
xor edx, edx
lea r8d, [rdx + 2]
call fcn.0041a0e0
mov rdx, qword [rsp + 0x38]
lea r9, [0x00446960]
mov rcx, qword [r9 + rdx*8]
mov qword [rsp + 0x480], rdi
mov qword [rsp + 0x468], r14
test byte [r15 + rcx + 8], 0x80
je 0x417743
xor r14d, r14d
test r12d, r12d
mov rdi, rbp
je 0x417791
mov qword [rsp + 0x4b8], rbx
nop
nop
nop
nop
lea rbx, [rsp + 0x40]
xor ecx, ecx
mov eax, edi
sub eax, ebp
cmp eax, r12d
jae 0x4176a6
movzx eax, byte [rdi]
inc rdi
cmp al, 0xa
jne 0x417695
mov byte [rbx], 0xd
inc rbx
inc esi
inc rcx
inc rcx
mov byte [rbx], al
inc rbx
cmp rcx, 0x400
jl 0x417677
mov rcx, qword [r9 + rdx*8]
lea rax, [rsp + 0x40]
mov r8d, ebx
mov rcx, qword [r15 + rcx]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
sub r8d, eax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x417738
movsxd rax, dword [rsp + 0x30]
lea rcx, [rsp + 0x40]
sub rbx, rcx
add r13d, eax
cmp rax, rbx
jl 0x417700
mov rdx, qword [rsp + 0x38]
mov eax, edi
lea r9, [0x00446960]
sub eax, ebp
cmp eax, r12d
jb 0x417670
mov rbx, qword [rsp + 0x4b8]
test r13d, r13d
jne 0x4177c4
test r14d, r14d
je 0x417785
cmp r14d, 5
jne 0x417776
call fcn.0040f860
mov dword [rax], 9
call fcn.0040f890
mov dword [rax], r14d
lea eax, [r14 - 6]
jmp 0x4177ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
jmp 0x417700
mov rcx, qword [r15 + rcx]
lea r9, [rsp + 0x30]
mov r8d, r12d
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41776b
mov r13d, dword [rsp + 0x30]
xor r14d, r14d
jmp 0x417708
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
jmp 0x417711
mov ecx, r14d
call fcn.0040f8c0
mov eax, 0xffffffff
jmp 0x4177ca
mov rdx, qword [rsp + 0x38]
lea r9, [0x00446960]
mov rax, qword [r9 + rdx*8]
test byte [r15 + rax + 8], 0x40
je 0x4177a7
cmp byte [rbp], 0x1a
jne 0x4177a7
xor eax, eax
jmp 0x4177ca
call fcn.0040f860
mov dword [rax], 0x1c
call fcn.0040f890
mov dword [rax], 0
mov eax, 0xffffffff
jmp 0x4177ca
sub r13d, esi
mov eax, r13d
mov rdi, qword [rsp + 0x480]
mov r14, qword [rsp + 0x468]
mov r15, qword [rsp + 0x460]
mov r13, qword [rsp + 0x470]
mov r12, qword [rsp + 0x478]
mov rsi, qword [rsp + 0x488]
mov rbp, qword [rsp + 0x490]
mov rcx, qword [rsp + 0x450]
call fcn.0041b040
add rsp, 0x498
ret
Function at 0x4181e0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x004385b0]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x418223
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
call fcn.0041b040
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.00418550
mov rcx, qword [rsp + 0x28]
call fcn.0041b040
add rsp, 0x38
ret

Function at 0x41c97c
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
cmp dword [rcx + 8], 0x100
jne 0x41c9d1
cmp qword [rcx + 0x10], 0x70
jne 0x41c9d1
mov eax, dword [rcx + 0x18]
shr rax, 0x10
bt ax, 0xe
jb 0x41c9d1
lea ecx, [rbx + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
cmp ax, bx
jl 0x41c9d1
lea ecx, [rbx + 0x11]
call qword [sym.imp.USER32.dll_GetKeyState]
cmp ax, bx
jl 0x41c9d1
lea ecx, [rbx + 0x12]
call qword [sym.imp.USER32.dll_GetKeyState]
cmp ax, bx
jl 0x41c9d1
mov ebx, 1
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x41e5b0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rdi
sub rsp, 0x28
mov edi, ecx
call fcn.004249cc
mov rbx, rax
mov rax, qword [rax + 0x188]
test rax, rax
je 0x41e5e7
mov rcx, qword [rax + 0x38]
test rcx, rcx
je 0x41e5e7
xor r9d, r9d
xor r8d, r8d
mov edx, 0x401
call qword [sym.imp.USER32.dll_SendMessageW]
test edi, edi
mov rbx, qword [rbx + 0x1e8]
je 0x41e618
test rbx, rbx
je 0x41e618
mov ecx, 1
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x41e618
mov rax, qword [rbx]
mov edx, 0xffffffff
mov rcx, rbx
call qword [rax + 0x1b8]
add rsp, 0x28
pop rdi
pop rbx
ret
Function at 0x420e9c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
test rdx, rdx
mov rsi, rdx
mov rbp, rcx
je 0x420ef6
call fcn.004249e0
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x420ef6
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rbx, rax
je 0x420f18
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.0041f418
test rdi, rdi
mov esi, eax
je 0x420f16
test rbx, rbx
je 0x420f16
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
add rsp, 0x20
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x4238bc
Capabilities:
Get graphical window text

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x230
mov rax, qword [0x004385b0]
mov qword [rsp + 0x220], rax
mov rdi, rcx
mov rcx, rdx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8d, 0x100
cmp eax, r8d
mov esi, eax
ja 0x423916
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jne 0x423916
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x423922
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, qword [rsp + 0x220]
call fcn.0041b040
add rsp, 0x230
pop rdi
pop rsi
pop rbx
ret

Function at 0x4241cc
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [0x004385b0]
mov qword [rsp + 0x50], rax
xor esi, esi
mov rbp, r8
mov rdi, rdx
cmp qword [rcx + 0xe8], rsi
mov rbx, rcx
je 0x424246
call fcn.00425198
cmp rax, rsi
mov rdi, rax
jne 0x42420a
xor eax, eax
jmp 0x424273
lea rax, [rsp + 0xa8]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], r9d
mov rdx, rbp
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
sete sil
mov eax, esi
jmp 0x424273
lea rdx, [0x0042b1b0]
lea rcx, [rsp + 0x30]
mov r8d, r9d
call qword [sym.imp.USER32.dll_wsprintfW]
mov r9, qword [rbx + 0x110]
lea r8, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov rcx, qword [rsp + 0x50]
call fcn.0041b040
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x4249cc
Capabilities:
Get thread local storage value

Disassembly:
lea rdx, [0x0040c70c]
lea rcx, [0x00441278]
jmp fcn.004258bc

Function at 0x424a18
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.004249e0
lea rdx, [0x0040c64c]
lea rcx, [rax + 0x20b8]
add rsp, 0x28
jmp fcn.004258bc
Function at 0x4254fc
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
mov rbx, rcx
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x20], 8
mov dword [rcx + 4], eax
mov dword [rcx + 8], 1
mov dword [rcx + 0xc], eax
mov qword [rcx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [rbx], eax
jne 0x425537
call fcn.0041b8d0
int3
lea rcx, [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x4255c4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov r13, r8
movsxd rsi, edx
mov rdi, rcx
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
jle 0x425702
cmp esi, dword [rdi + 0xc]
jge 0x425702
mov ecx, dword [rdi]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x425625
cmp esi, dword [rax + 0x10]
jl 0x4256e4
test r13, r13
je 0x4256e4
jmp 0x425669
mov ecx, 0x20
call fcn.00425284
mov rbx, rax
test rax, rax
je 0x425643
lea rax, [0x0042d708]
mov qword [rbx], rax
jmp 0x425645
xor ebx, ebx
mov qword [rsp + 0x28], rbx
mov dword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov rcx, qword [rdi + 0x20]
mov rax, qword [rdi + 0x18]
mov qword [rbx + rcx], rax
mov qword [rdi + 0x18], rbx
mov rcx, qword [rbx + 0x18]
test rcx, rcx
jne 0x425685
movsxd rdx, dword [rdi + 0xc]
shl rdx, 3
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r11, rax
jmp 0x42569c
movsxd rdx, dword [rdi + 0xc]
shl rdx, 3
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov r11, rax
test r11, r11
jne 0x4256b1
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0041b8d0
int3
mov qword [rbx + 0x18], r11
mov eax, dword [rdi + 0xc]
sub eax, dword [rbx + 0x10]
movsxd r8, eax
shl r8, 3
movsxd rax, dword [rbx + 0x10]
lea rcx, [r11 + rax*8]
xor edx, edx
call fcn.0040d7f0
mov r11d, dword [rdi + 0xc]
mov dword [rbx + 0x10], r11d
mov rdx, rbx
mov ecx, dword [rdi]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x4256f6
cmp esi, dword [rbx + 0x10]
jge 0x4256f6
mov qword [rcx + rsi*8], r13
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x42570c
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x425774
Capabilities:
Set thread local storage value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
mov esi, 1
mov r14, r8
mov rdi, rdx
cmp dword [rdx + 0x10], esi
mov r12, rcx
mov ebp, esi
jle 0x4257f5
lea ebx, [rsi + 7]
lea r13d, [rsi + 0xf]
test r14, r14
je 0x4257bf
mov rax, qword [r12 + 0x10]
cmp qword [rax + r13 + 8], r14
je 0x4257bf
mov rax, qword [rdi + 0x18]
cmp qword [rbx + rax], 0
je 0x4257e2
xor esi, esi
jmp 0x4257e2
mov rax, qword [rdi + 0x18]
mov rcx, qword [rbx + rax]
test rcx, rcx
je 0x4257d6
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, qword [rdi + 0x18]
mov qword [rbx + rax], 0
inc ebp
add r13, 0x10
add rbx, 8
cmp ebp, dword [rdi + 0x10]
jl 0x42579f
test esi, esi
je 0x42583c
lea rcx, [r12 + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [r12 + 0x18]
mov rdx, rdi
call fcn.004254b4
lea rcx, [r12 + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r11, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [r11]
mov ecx, dword [r12]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x42584c
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x28
mov rdi, rcx
add rcx, 0x28
mov ebx, r8d
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebx, ebx
jne 0x425889
mov ecx, dword [rdi]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x4258a9
mov r8, rbp
mov rdx, rax
mov rcx, rdi
call fcn.00425774
jmp 0x4258a9
mov rdx, qword [rdi + 0x18]
test rdx, rdx
je 0x4258a9
mov rbx, qword [rdx + 8]
mov r8, rbp
mov rcx, rdi
call fcn.00425774
test rbx, rbx
mov rdx, rbx
jne 0x425892
lea rcx, [rdi + 0x28]
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4258bc
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x20
cmp dword [rcx], 0
mov r12, rdx
mov rdi, rcx
jne 0x4258fb
mov rax, qword [0x00444890]
test rax, rax
jne 0x4258f1
lea rcx, [0x004448a0]
call fcn.004254fc
mov qword [0x00444890], rax
mov rcx, rax
call fcn.004252bc
mov dword [rdi], eax
mov rbp, qword [0x00444890]
movsxd rbx, dword [rdi]
lea rcx, [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebx, ebx
jle 0x42594b
cmp ebx, dword [rbp + 0xc]
jge 0x42594b
mov ecx, dword [rbp]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x42593f
cmp ebx, dword [rax + 0x10]
jge 0x42593f
mov rax, qword [rax + 0x18]
lea rcx, [rbp + 0x28]
mov rbx, qword [rax + rbx*8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x425957
lea rcx, [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x42595c
lea rcx, [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
test rbx, rbx
jne 0x425973
call r12
mov edx, dword [rdi]
mov rcx, qword [0x00444890]
mov r8, rax
mov rbx, rax
call fcn.004255c4
mov rax, rbx
add rsp, 0x20
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x6dacac50
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6daeb5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6dacadd8
mov rax, qword [0x6daeb5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6dacac9c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6dacad25
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6dacac80
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6dacae0d
mov rax, qword [0x6daeb5e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6daeb5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6dacadf0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6dacad1e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6dacad80
add dword [0x6daeb5e4], 1
cmp edi, 8
jae 0x6dacad53
test dil, 4
jne 0x6dacadc4
test edi, edi
je 0x6dacad48
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6dacaddf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6dacad48
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6dacad6c
jmp 0x6dacad48
add rsi, qword [0x6daeb5e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6dacad1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6dacad48
xor esi, esi
jmp 0x6dacaca7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6dacad48
mov rax, qword [0x6daeb5e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6dacb560
Capabilities:
Get thread local storage value

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