joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008328
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xb0], rdx
test rdx, 0xffffffffffff0000
jne 0x140008367
cmp dword [rcx + 0xa8], 0
jne 0x140008367
movzx eax, dx
mov dword [rcx + 0xa8], eax
call fcn.1400153d0
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.1400082cc
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000c2d0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.1400156a4
mov rsi, rax
test rax, rax
je 0x14000c34c
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x14000c347
cmp dword [rbx], 0x40
jb 0x14000c347
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageA]
bt rax, 0xd
jb 0x14000c347
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x14000c350
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14001284c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x1400128b4
call fcn.1400153d0
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x1400128b4
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x1400128d6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.140012264
mov esi, eax
test rdi, rdi
je 0x1400128d4
test rbx, rbx
je 0x1400128d4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x140013f90
Capabilities:
Get graphical window text

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
movsxd rsi, r8d
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0xa0], 0
jne 0x140013fce
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x140014082
call fcn.14000a6b0
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x140013fed
mov ecx, 0x80004005
call fcn.140004650
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rcx, qword [rbx + 0xa0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + 0x118]
mov rdx, rsi
or rsi, 0xffffffffffffffff
mov r9, rsi
mov r8, qword [rsp + 0x40]
mov rcx, rdi
call fcn.14002e3ac
test eax, eax
je 0x140014055
cmp eax, 0xc
je 0x14001404f
cmp eax, 0x16
je 0x140014049
cmp eax, 0x22
je 0x140014049
cmp eax, 0x50
je 0x140014055
call fcn.14000b198
int3
call fcn.14000b198
int3
call fcn.14000b150
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x140014080
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.oledlg.dll_OleUIBusyA + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14002c898
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.140030b04
nop
cmp dword [0x1401028a8], 1
je 0x14002c844
mov dword [0x1401028a4], 1
mov byte [0x1401028a0], r12b
test ebx, ebx
jne 0x14002c830
mov rcx, qword [0x140104b58]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14002c81d
mov rcx, qword [0x140104b50]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x14002c7bc
call fcn.14002fe48
cmp qword [rdi], rax
jne 0x14002c7bc
jmp 0x14002c7a2
cmp rdi, rsi
jb 0x14002c81d
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.14002fe48
mov qword [rdi], rax
call rbx
mov rcx, qword [0x140104b58]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x140104b50]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x14002c7fb
cmp r13, rax
je 0x14002c81b
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x14002c7a2
lea rdx, [0x140042ca8]
lea rcx, [0x140042c90]
call fcn.14002c5ec
lea rdx, [0x140042cb8]
lea rcx, [0x140042cb0]
call fcn.14002c5ec
nop
test r12d, r12d
je 0x14002c853
mov ecx, 8
call fcn.140030a04
test r12d, r12d
jne 0x14002c87e
mov dword [0x1401028a8], 1
lea ecx, [r12 + 8]
call fcn.140030a04
mov ecx, r15d
call fcn.14002c580
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x14002c70c

Function at 0x14002c8a4
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x14002c70c

Function at 0x14002ca1c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
test rcx, rcx
jne 0x14002ca56
call fcn.14002d988
and dword [rax], 0
call fcn.14002d968
and qword [rsp + 0x20], 0
mov ebx, 0x16
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], ebx
call fcn.140030600
mov eax, ebx
jmp 0x14002caa6
test edx, 0xfffffff9
jne 0x14002ca29
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14002ca7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14002d9a8
call fcn.14002d968
mov eax, dword [rax]
jmp 0x14002caa6
test al, 0x10
jne 0x14002caa4
test al, 1
je 0x14002caa4
test bl, 2
je 0x14002caa4
call fcn.14002d988
mov dword [rax], 5
call fcn.14002d968
mov dword [rax], SafeArrayGetDim
jmp 0x14002ca76
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x14002fd9b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14005ac60]
jne 0x14002c11a
rol rcx, 0x10
test cx, 0xffff
jne 0x14002c116
repz ret
ror rcx, 0x10
jmp 0x14002fcf4
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140102970]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140102a68]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14002fd79
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140102970]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14002fd9b
mov rax, qword [rsp + 0x88]
mov qword [0x140102a68], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140102a08], rax
mov rax, qword [0x140102a68]
mov qword [0x1401028e0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1401029f0], rax
mov dword [0x1401028d0], 0xc0000409
mov dword [0x1401028d4], 1
mov rax, qword [0x14005ac60]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14005ac68]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140102968], eax
mov ecx, 1
call fcn.140037d6c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400492e0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140102968], 0
jne 0x14002fe22
mov ecx, 1
call fcn.140037d6c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140037e10
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.14002fe48
xor ebx, ebx
mov rdi, rax
cmp qword [0x1401036b0], rbx
jne 0x140037f16
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140037feb
lea rdx, [0x14004a4f0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140037feb
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x14004a4e0]
mov rcx, rsi
mov qword [0x1401036b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x14004a4c8]
mov rcx, rsi
mov qword [0x1401036b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x1401036c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x1401036d0], rax
test rax, rax
je 0x140037f0d
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x1401036c8], rax
jmp 0x140037f1d
mov rax, qword [0x1401036c8]
jmp 0x140037f24
mov rax, qword [0x1401036c8]
mov r11, qword [0x1401036d0]
cmp rax, rdi
je 0x140037f8c
cmp r11, rdi
je 0x140037f8c
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x1401036d0]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x140037f8c
test rax, rax
je 0x140037f8c
call rsi
test rax, rax
je 0x140037f86
lea rcx, [rsp + 0x88]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140037f86
test byte [rsp + 0x38], 1
jne 0x140037f8c
bts ebp, 0x15
jmp 0x140037fca
mov rcx, qword [0x1401036b8]
cmp rcx, rdi
je 0x140037fca
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140037fca
call rax
mov rbx, rax
test rax, rax
je 0x140037fca
mov rcx, qword [0x1401036c0]
cmp rcx, rdi
je 0x140037fca
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140037fca
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1401036b0]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140037feb
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140037fed
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140001487
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14002c8c0]
mov dword [rax], 1
mov rax, qword [0x14002c8d0]
mov dword [rax], 1
mov rax, qword [0x14002c8e0]
mov dword [rax], 1
mov rax, qword [0x14002c880]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140001504
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001f70
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x170
mov r8d, 0x105
lea rcx, str.GC_LOG_FILE
lea rbx, [rsp + 0x50]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
sub eax, 1
cmp eax, 0x103
ja 0x140002030
cmp dword [0x140031e94], 2
mov edx, 0x80000080
mov eax, pe_nt_image_headers64
mov rcx, rbx
cmovne eax, edx
mov r8d, 1
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 4
mov edx, 0x40000000
mov dword [rsp + 0x28], eax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140002000
mov rax, rbx
add rsp, 0x170
pop rbx
ret
mov r9d, 2
lea r8, [rsp + 0x4c]
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x4c], 0
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rax, rbx
add rsp, 0x170
pop rbx
ret
xor ecx, ecx
mov r8d, 0x105
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, 4
jle 0x140002054
lea edx, [rax - 4]
movsxd rcx, edx
cmp byte [rsp + rcx + 0x50], 0x2e
cmove eax, edx
cdqe
mov edx, 0x80000080
movabs rcx, 0x676f6c2e63672e
mov qword [rbx + rax], rcx
cmp dword [0x140031e94], 2
mov eax, pe_nt_image_headers64
mov rcx, rbx
cmovne eax, edx
mov r8d, 1
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
mov dword [rsp + 0x28], eax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov rax, rbx
add rsp, 0x170
pop rbx
ret
Function at 0x1400020c0
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0xc0
mov eax, dword [0x14005c3c8]
test eax, eax
je 0x1400020e0
add rsp, 0xc0
pop rbx
ret
lea rcx, str.GC_USE_GETWRITEWATCH
call sub.ucrtbase.dll_getenv
test rax, rax
je 0x1400020fa
cmp byte [rax], 0x30
je 0x1400021c0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1400021a9
lea rdx, str.GetWriteWatch
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140031e88], rax
test rax, rax
je 0x1400021a9
mov rdx, qword [0x14005c5b0]
mov r9d, 4
mov r8d, 0x202000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x1400021e0
lea rax, [rsp + 0x34]
mov r8, qword [0x14005c5b0]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], 0x10
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov rdx, rbx
mov ecx, 1
mov qword [rsp + 0x20], rax
call qword [0x140031e88]
test eax, eax
jne 0x1400021d0
mov dword [0x140031e90], 0x200000
mov r8d, 0x8000
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [0x14005c3c8], 1
add rsp, 0xc0
pop rbx
ret
cmp byte [rax + 1], 0
jne 0x1400020fa
jmp 0x1400021a9
mov qword [0x140031e88], 0
jmp 0x140002198
mov qword [0x140031e88], 0
jmp 0x1400021a9

Function at 0x1400021f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x48
mov rbx, rcx
mov rcx, qword [0x14005c298]
mov rsi, rdx
test rcx, rcx
je 0x140002240
cmp rcx, 0xffffffffffffffff
je 0x140002258
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov r8d, esi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140002258
mov eax, dword [rsp + 0x3c]
add rsp, 0x48
pop rbx
pop rsi
ret
call fcn.140001f70
mov qword [0x14005c298], rax
mov rcx, rax
jmp 0x140002208
mov eax, 0xffffffff
jmp 0x140002230

Function at 0x140002260
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov dword [0x14005c3d0], 1
mov rbx, rcx
test rcx, rcx
je 0x1400022bc
mov rdx, rcx
mov r9d, 0x10
lea r8, str.Fatal_error_in_GC
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, rbx
call sub.ucrtbase.dll_strlen
mov rdx, rax
test rax, rax
je 0x1400022ab
mov rcx, rbx
call fcn.1400021f0
test eax, eax
js 0x1400022bc
mov edx, 1
lea rcx, [0x140027127]
call fcn.1400021f0
lea rcx, str.GC_LOOP_ON_ABORT
call sub.ucrtbase.dll_getenv
test rax, rax
je 0x1400022d0
jmp 0x1400022cd
add rsp, 0x20
pop rbx
ret
Function at 0x1400025d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140025264], 1
sbb eax, eax
xor edx, edx
and eax, 0xffffffc4
cmp qword [0x140031e88], 0
sete dl
lea r9d, [rax + 0x40]
mov r8, rdx
not r8
add rdx, rcx
cmp rcx, r8
mov r8d, dword [0x140031e90]
mov rcx, 0xffffffffffffffff
cmovae rdx, rcx
xor ecx, ecx
or r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test eax, 0xfff
je 0x140002690
lea rcx, [0x14002715e]
call fcn.140002260
mov rsi, qword [sym.imp.KERNEL32.dll_DebugBreak]
call rsi
mov rax, qword [0x140031fb0]
cmp rax, 0x3ff
ja 0x140002678
lea rdx, [rax + 1]
mov qword [0x140031fb0], rdx
lea rdx, [0x140031ec0]
mov qword [rdx + rax*8 + 0x163d0], rbx
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret
lea rcx, [0x140027176]
call fcn.140002260
call rsi
mov rax, qword [0x140031fb0]
jmp 0x14000264e
cmp qword [0x140031fb0], 0x3ff
jbe 0x1400026af
lea rcx, [0x140027176]
call fcn.140002260
call qword [sym.imp.KERNEL32.dll_DebugBreak]
test rbx, rbx
je 0x140002668
mov rax, qword [0x140031fb0]
jmp 0x14000264e

Function at 0x1400026c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [0x140031f38]
mov rdx, qword [0x140031f48]
sub rdx, rax
cmp rcx, 0xffffffffffffffef
ja 0x140002828
lea rbx, [rcx + 0xf]
and rbx, 0xfffffffffffffff0
cmp rdx, rbx
jae 0x140002811
cmp rbx, 0xffff
ja 0x14000277a
cmp dword [0x140025264], 1
mov r8d, dword [0x140031e90]
mov edx, 0x10000
sbb eax, eax
and eax, 0xffffffc4
cmp qword [0x140031e88], 1
adc rdx, 0
lea r9d, [rax + 0x40]
or r8d, 0x3000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, 0xfff
jne 0x140002795
cmp qword [0x140031fb0], 0x3ff
jbe 0x140002762
lea rcx, [0x140027176]
mov qword [rsp + 0x28], rax
call fcn.140002260
call qword [sym.imp.KERNEL32.dll_DebugBreak]
mov rax, qword [rsp + 0x28]
test rax, rax
jne 0x14000283b
mov rdx, rbx
lea rcx, [0x140027190]
call fcn.140003590
mov rcx, rbx
call fcn.1400025d0
test rax, rax
je 0x14000278e
add qword [0x140031ef8], rbx
add rsp, 0x38
pop rbx
pop rsi
ret
lea rcx, [0x14002715e]
mov qword [rsp + 0x28], rax
call fcn.140002260
mov rsi, qword [sym.imp.KERNEL32.dll_DebugBreak]
call rsi
mov rdx, qword [0x140031fb0]
mov rax, qword [rsp + 0x28]
cmp rdx, 0x3ff
jbe 0x1400027de
lea rcx, [0x140027176]
call fcn.140002260
call rsi
mov rdx, qword [0x140031fb0]
mov rax, qword [rsp + 0x28]
add qword [0x140031ef8], 0x10000
lea rcx, [rdx + 1]
mov qword [0x140031fb0], rcx
lea rcx, [0x140031ec0]
mov qword [rcx + rdx*8 + 0x163d0], rax
lea rdx, [rax + 0x10000]
mov qword [0x140031f48], rdx
add rbx, rax
mov qword [0x140031f38], rbx
add rsp, 0x38
pop rbx
pop rsi
ret
mov rbx, 0xfffffffffffffff0
cmp rdx, 0xffffffffffffffef
jbe 0x14000277a
jmp 0x140002811
mov rdx, qword [0x140031fb0]
jmp 0x1400027de
Function at 0x140002c60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [0x140031ff8]
test rax, rax
je 0x140002d48
cmp qword [0x140031ff8], 0
je 0x140002d48
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rcx, [0x140031260]
mov edx, eax
shr edx, 8
xor edx, eax
movzx edx, dl
mov rbx, qword [rcx + rdx*8]
test rbx, rbx
jne 0x140002cbc
jmp 0x140024790
mov rbx, qword [rbx]
test rbx, rbx
je 0x140024790
cmp eax, dword [rbx + 8]
jne 0x140002cb0
movzx ecx, byte [rbx + 0x3a]
test cl, cl
jne 0x140002d58
add ecx, 1
xor ebp, ebp
xor edi, edi
mov byte [rbx + 0x3a], cl
jmp 0x140002d08
mov rax, qword [rsi + 8]
add edi, 1
mov qword [0x140031ff8], rax
mov qword [rsi + 8], 0
mov rdx, qword [rsi + 0x18]
mov rcx, qword [rsi]
call qword [rsi + 0x10]
mov qword [rsi + 0x18], 0
mov rax, qword [0x140031ff8]
test rax, rax
je 0x140002d2a
mov rsi, qword [0x140031ff8]
test edi, edi
cmove rbp, qword [0x140031f18]
test rsi, rsi
jne 0x140002ce0
test edi, edi
je 0x140002d44
mov rax, qword [0x140031f18]
cmp rax, rbp
je 0x140002d44
sub rax, rbp
add qword [0x140031f20], rax
mov byte [rbx + 0x3a], 0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
movzx eax, word [rbx + 0x38]
add eax, 1
movzx edx, ax
shr edx, cl
test edx, edx
je 0x140002d73
xor eax, eax
mov word [rbx + 0x38], ax
jmp 0x140002ccd
mov word [rbx + 0x38], ax
jmp 0x140002d48
movzx eax, byte [0x3a]
ud2

Function at 0x140004720
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
xor r14d, r14d
cmp dword [0x140031e94], 2
mov rbx, rcx
mov edi, edx
je 0x140004867
lea r12, [0x140025040]
mov rax, qword [r12 + 8]
lea rbp, [0x140031ec0]
lea rsi, [rax + 8]
lea r13, [rax + 0x408]
test rax, rax
je 0x140004816
mov r15, qword [rsi]
nop
test r15, r15
je 0x140004809
test rbx, rbx
je 0x140004788
call rbx
test eax, eax
jne 0x140004854
mov rdx, r15
mov rcx, qword [0x140031f78]
shr rdx, 0x16
mov rax, rdx
and eax, 0x7ff
mov rax, qword [rbp + rax*8 + 0x263d0]
cmp rdx, qword [rax + 0x2010]
jne 0x1400047c8
jmp 0x1400047cd
mov rax, qword [rax + 0x2018]
cmp rdx, qword [rax + 0x2010]
je 0x1400047cd
cmp rcx, rax
jne 0x1400047b8
mov rdx, r15
shr rdx, 0xc
and edx, 0x3ff
mov rax, qword [rax + rdx*8]
mov rcx, qword [rax]
mov qword [rsi], rcx
test edi, edi
je 0x140004840
mov rdx, qword [0x140031a88]
movzx r9d, word [rax + 0x1a]
sub rdx, 1
cmp r9, rdx
je 0x140004840
mov r15, rcx
test r15, r15
jne 0x140004779
add rsi, 8
cmp r13, rsi
jne 0x14000476c
add r12, 0x20
lea rax, [0x1400250a0]
cmp rax, r12
jne 0x14000474c
cmp dword [0x140031e94], 2
je 0x140004875
mov eax, 1
jmp 0x140004856
mov rdx, qword [rax + 0x20]
mov rcx, r15
call fcn.14001e550
mov r15, qword [rsi]
jmp 0x140004770
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14d, eax
jmp 0x140004745
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor r8d, r8d
lea rcx, str.Disposing_of_reclaim_lists_took__lu_ms__lu_ns_n
sub eax, r14d
mov edx, eax
call fcn.1400035a0
jmp 0x140004833
Function at 0x140007e20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r14
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r11, rcx
mov rcx, qword [0x14005c5b0]
shl rdx, 0xc
mov rbx, r11
lea r10, [r11 + rdx]
mov rax, rcx
lea r9, [rcx + r10 - 1]
neg rax
and rbx, rax
and r9, rax
lea rax, [rbx + 0x1000]
cmp r9, rax
je 0x140007f00
xor r8d, 1
mov rax, rbx
mov edi, 1
and r8d, 1
lea rsi, [0x140031ec0]
cmp rbx, r9
jae 0x140007ec6
nop dword [rax + rax]
cmp rax, r11
setb dl
cmp rax, r10
setae cl
or dl, cl
jne 0x140007e95
test r8b, r8b
je 0x140007ebb
mov rcx, rax
mov r14, rdi
shr rcx, 0xc
and ecx, 0x3ffff
mov rdx, rcx
shl r14, cl
shr rdx, 6
add rdx, 0x1c79
lock or qword [rsi + rdx*8], r14
add rax, 0x1000
cmp rax, r9
jb 0x140007e80
cmp dword [0x140025264], 1
mov rdx, r9
mov rcx, rbx
sbb eax, eax
lea r9, [0x14005c5b8]
sub rdx, rbx
and eax, 0xffffffc4
lea r8d, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140007f40
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r14
ret
mov rax, rbx
lea rdx, [0x140031ec0]
shr rax, 0x12
and eax, 0xfff
add rax, 0x1c78
mov rdx, qword [rdx + rax*8 + 8]
mov rax, rbx
shr rax, 0xc
bt rdx, rax
jae 0x140007e5f
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.un_VirtualProtect_failed:_errcode_0x_X_n
mov edx, eax
call fcn.1400035a0
lea rcx, str.un_VirtualProtect_failed
call fcn.140002260
nop
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r14
jmp qword [sym.imp.KERNEL32.dll_DebugBreak]