joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400066a8
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.140003198
xor ebx, ebx
mov rdi, rax
cmp qword [0x140010208], rbx
jne 0x1400067ae
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140006883
lea rdx, [0x14000ba80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140006883
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140010208], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140010210], 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 [0x140010218], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140010228], rax
test rax, rax
je 0x1400067a5
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140010220], rax
jmp 0x1400067b5
mov rax, qword [0x140010220]
jmp 0x1400067bc
mov rax, qword [0x140010220]
mov r11, qword [0x140010228]
cmp rax, rdi
je 0x140006824
cmp r11, rdi
je 0x140006824
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140010228]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x140006824
test rax, rax
je 0x140006824
call rsi
test rax, rax
je 0x14000681e
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14000681e
test byte [rsp + 0x38], 1
jne 0x140006824
bts ebp, 0x15
jmp 0x140006862
mov rcx, qword [0x140010210]
cmp rcx, rdi
je 0x140006862
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140006862
call rax
mov rbx, rax
test rax, rax
je 0x140006862
mov rcx, qword [0x140010218]
cmp rcx, rdi
je 0x140006862
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140006862
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140010208]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140006883
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140006885
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 0x180003340
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
lea rsi, [0x180022fe0]
mov r12, rcx
mov rbp, rcx
mov rdi, rsi
mov rbx, rsi
sub rdi, rcx
sub rdi, 0x2000
sub r12, rsi
mov rcx, rbp
call fcn.180001100
lea r11, [rbp + 0x2004]
mov ecx, 4
nop dword [rax]
mov eax, dword [r11 - 4]
add r11, 0x10
xor dword [rdi + r11 - 0x14], eax
mov eax, dword [r11 - 0x10]
xor dword [rdi + r11 - 0x10], eax
mov eax, dword [r11 - 0xc]
xor dword [rdi + r11 - 0xc], eax
mov eax, dword [r11 - 8]
xor dword [rdi + r11 - 8], eax
dec rcx
jne 0x180003390
add rdi, 0x40
add rbx, 0x40
add rsi, 0x40
lea rax, [r12 + rdi + 0x2040]
cmp rax, 0x300a7
jbe 0x180003378
mov rcx, rbp
call fcn.180001100
xor r11d, r11d
sub rbp, rbx
sub rsi, rbx
nop word [rax + rax]
movzx eax, byte [rbx + rbp + 0x2000]
inc r11d
inc rbx
xor al, byte [rbx - 1]
mov byte [rsi + rbx - 1], al
cmp r11d, 0x27
jb 0x1800033f0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x1800041a0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
movzx ecx, word [rcx]
call fcn.180009408
test eax, eax
je 0x1800041dd
cmp word [rdi + 2], 0x3a
jne 0x1800041dd
movzx ecx, word [rdi + 4]
cmp cx, 0x5c
je 0x1800041d9
test cx, cx
jne 0x1800041dd
add rdi, 4
mov rcx, rdi
call fcn.180009524
mov edx, 0x5c
mov rcx, rax
mov rbp, rax
call fcn.1800091dc
test rax, rax
je 0x1800041ff
xor ecx, ecx
mov word [rax], cx
lea rdx, [0x18001bf74]
mov rcx, rbp
call fcn.18000941c
mov edx, 0x400
mov ecx, 0x40
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
lea rdx, [0x18001bf78]
mov rsi, rax
sub rax, rdx
nop
movzx ecx, word [rdx]
add rdx, 2
mov word [rax + rdx - 2], cx
test cx, cx
jne 0x180004230
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
xor ecx, ecx
nop
movzx eax, word [rbx + rcx]
add rcx, 2
mov word [rdi + rcx - 4], ax
test ax, ax
jne 0x180004250
test rbx, rbx
je 0x1800042f1
nop dword [rax + rax]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18000428c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1800042e5
lea rdx, [0x18001bf74]
xor ecx, ecx
call fcn.18000941c
mov r11, rax
test rax, rax
je 0x1800042f1
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
mov ecx, dword [0x18001bf74]
mov dword [rdi - 2], ecx
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
xor ecx, ecx
nop word [rax + rax]
movzx eax, word [r11 + rcx]
add rcx, 2
mov word [rdi + rcx - 4], ax
test ax, ax
jne 0x1800042d0
jmp 0x180004270
mov rcx, rbp
call fcn.180008e80
xor al, al
jmp 0x180004304
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbp
call fcn.180008e80
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180006640
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r11d, r8d
mov r10, rdx
mov r9d, ecx
test rdx, rdx
jne 0x180006659
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rdi
not r9d
lea rdi, [0x18001d4b0]
cmp r11d, 8
jb 0x180006751
mov qword [rsp + 0x10], rbx
mov rbx, r11
shr rbx, 3
nop dword [rax]
movzx ecx, byte [r10]
mov eax, r9d
shr r9d, 8
xor rcx, rax
add r10, 8
add r11d, 0xfffffff8
movzx eax, cl
movzx ecx, byte [r10 - 7]
mov edx, dword [rdi + rax*4]
xor edx, r9d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 6]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 5]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 4]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 3]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 2]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 1]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov r9d, dword [rdi + rax*4]
xor r9d, edx
dec rbx
jne 0x180006680
mov rbx, qword [rsp + 0x10]
test r11d, r11d
je 0x18000677f
nop word [rax + rax]
movzx ecx, byte [r10]
mov eax, r9d
inc r10
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
dec r11d
jne 0x180006760
mov rdi, qword [rsp]
not r9d
mov eax, r9d
add rsp, 8
ret

Function at 0x180006f70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, r8
mov rdi, r9
mov rbp, rdx
mov r10, rcx
imul esi, edx
cmp byte [r9], 0
je 0x180006fc0
mov rdx, rcx
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x48]
mov r8d, esi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180006fba
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x48]
jmp 0x180006ff1
mov edx, dword [r9 + 0x24]
mov ecx, dword [r9 + 0x20]
mov qword [rsp + 0x40], rbx
lea eax, [rdx + rsi]
cmp eax, ecx
jbe 0x180006fd8
sub ecx, edx
mov esi, ecx
add rdx, qword [r9 + 0x18]
mov r8d, esi
mov rcx, r10
call fcn.1800108e0
add dword [rdi + 0x24], esi
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x58]
xor edx, edx
div rbp
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180007010
Capabilities:
Read file on windows

Disassembly:
push rbx
push r12
sub rsp, 0x38
cmp byte [rcx], 0
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x30], rdi
mov edi, 1
mov r12, rdx
mov rbx, rcx
je 0x180007060
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x60]
lea rdx, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18000705a
mov byte [rbx + 0x10], dil
mov esi, dword [rsp + 0x60]
jmp 0x18000709a
mov qword [rsp + 0x58], rbp
mov ebp, dword [rcx + 0x24]
mov ecx, dword [rcx + 0x20]
lea eax, [rbp + 1]
cmp eax, ecx
jbe 0x180007076
mov edi, ecx
sub edi, ebp
mov rdx, rbp
lea rcx, [rsp + 0x50]
mov r8d, edi
add rdx, qword [rbx + 0x18]
mov esi, edi
call fcn.1800108e0
lea r11d, [rbp + rdi]
mov rbp, qword [rsp + 0x58]
mov dword [rbx + 0x24], r11d
mov rdi, qword [rsp + 0x30]
cmp esi, 1
mov rsi, qword [rsp + 0x68]
jne 0x1800070bc
movzx eax, byte [rsp + 0x50]
mov dword [r12], eax
xor eax, eax
add rsp, 0x38
pop r12
pop rbx
ret
cmp byte [rbx], 0
je 0x1800070b2
cmp byte [rbx + 0x10], 0
je 0x1800070b2
or eax, 0xffffffff
add rsp, 0x38
pop r12
pop rbx
ret
Function at 0x1800071a0
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0x70
cmp byte [rcx], 0
mov rsi, rcx
je 0x1800071d3
cmp byte [rcx + 1], 0
je 0x1800071cb
mov rcx, qword [rcx + 8]
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x1800071d9
xor eax, eax
add rsp, 0x70
pop rsi
ret
mov eax, dword [rcx + 0x20]
mov dword [rcx + 0x24], eax
cmp byte [rsi], 0
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x58], rdi
je 0x180007213
cmp byte [rsi + 1], 0
je 0x18000720f
mov rcx, qword [rsi + 8]
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [rsi + 0x14]
jmp 0x180007216
xor ebp, ebp
jmp 0x180007216
mov ebp, dword [rsi + 0x24]
mov ebx, 0xffff
mov ecx, 0x404
mov dword [rsp + 0x88], ebp
cmp ebp, ebx
cmovb ebx, ebp
mov dword [rsp + 0x98], ebx
call fcn.180009a0c
mov rdi, rax
test rax, rax
je 0x1800073d9
mov qword [rsp + 0x48], r13
xor r13d, r13d
mov qword [rsp + 0x38], r15
mov r15d, 4
mov dword [rsp + 0x80], r13d
cmp ebx, r15d
jbe 0x1800073c4
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x40], r14
nop word [rax + rax]
lea eax, [r15 + 0x400]
mov r14d, ebp
mov r12d, ebp
cmp eax, ebx
mov r15d, eax
mov eax, 0x404
cmova r15d, ebx
sub r14d, r15d
sub r12d, r14d
cmp r12d, eax
cmova r12d, eax
cmp byte [rsi], 0
je 0x1800072d0
cmp byte [rsi + 1], 0
je 0x1800073ba
mov eax, dword [rsi + 0x14]
mov rcx, qword [rsi + 8]
xor r9d, r9d
lea edx, [r14 + rax]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x1800072d4
mov dword [rsi + 0x24], r14d
cmp byte [rsi], 0
mov ebp, r12d
mov r13d, r12d
je 0x180007311
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x90]
mov r8d, ebp
mov rdx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180007308
mov byte [rsi + 0x10], 1
mov eax, dword [rsp + 0x90]
jmp 0x180007345
mov ecx, dword [rsi + 0x24]
mov edx, dword [rsi + 0x20]
lea eax, [rcx + r12]
cmp eax, edx
jbe 0x180007325
mov r13d, edx
sub r13d, ecx
mov rdx, rcx
mov r8d, r13d
mov rcx, rdi
add rdx, qword [rsi + 0x18]
call fcn.1800108e0
add dword [rsi + 0x24], r13d
mov ebx, dword [rsp + 0x98]
mov eax, r13d
xor edx, edx
div rbp
cmp rax, 1
jne 0x1800073b2
lea ecx, [r12 - 3]
movsxd rax, ecx
test ecx, ecx
jle 0x180007385
nop dword [rax]
dec rax
dec ecx
cmp byte [rax + rdi], 0x50
jne 0x180007380
cmp byte [rax + rdi + 1], 0x4b
jne 0x180007380
cmp byte [rax + rdi + 2], 5
jne 0x180007380
cmp byte [rax + rdi + 3], 6
je 0x18000739f
test rax, rax
jg 0x180007360
mov r13d, dword [rsp + 0x80]
mov ebp, dword [rsp + 0x88]
cmp r15d, ebx
jb 0x180007280
jmp 0x1800073ba
lea r13d, [rcx + r14]
mov dword [rsp + 0x80], r13d
test r13d, r13d
jne 0x1800073ba
jmp 0x18000738d
mov r13d, dword [rsp + 0x80]
mov r12, qword [rsp + 0x50]
mov r14, qword [rsp + 0x40]
mov rcx, rdi
call fcn.180008e80
mov r15, qword [rsp + 0x38]
mov eax, r13d
mov r13, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x58]
add rsp, 0x70
pop rsi
ret
Function at 0x180008510
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
jne 0x180008597
cmp dword [rcx + 8], 0xffffffff
jne 0x180008597
mov qword [rsp + 0x38], rdi
lea rdi, [rcx + 0x13c]
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
mov eax, dword [0x18001bf74]
mov dword [rdi - 2], eax
xor edi, edi
lea ecx, [rdi + 0x28]
mov qword [rsp + 0x30], rdi
call fcn.18000960c
lea rcx, [0x180022fe0]
mov qword [rax + 0x18], rcx
mov rcx, rax
mov word [rax], 0x100
mov qword [rax + 0x20], 0x300a7
mov dword [rax + 0x14], edi
call fcn.1800073f0
mov rdi, qword [rsp + 0x38]
mov qword [rbx], rax
mov eax, dword [0x180054248]
add rsp, 0x20
pop rbx
ret
mov eax, 0x1000000
add rsp, 0x20
pop rbx
ret

Function at 0x180009f9b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180021050]
jne 0x180008dda
rol rcx, 0x10
test cx, 0xffff
jne 0x180008dd6
repz ret
ror rcx, 0x10
jmp 0x180009ef4
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800531b0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1800532a8]
mov qword [rsp + 0x58], rax
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 0x180009f79
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, [0x1800531b0]
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 0x180009f9b
mov rax, qword [rsp + 0x88]
mov qword [0x1800532a8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180053248], rax
mov rax, qword [0x1800532a8]
mov qword [0x180053120], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180053230], rax
mov dword [0x180053110], 0xc0000409
mov dword [0x180053114], 1
mov rax, qword [0x180021050]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180021058]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800531a8], eax
mov ecx, 1
call fcn.18000eb30
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180019370]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800531a8], 0
jne 0x18000a022
mov ecx, 1
call fcn.18000eb30
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 0x180011504
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x180021050]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.18000c258
xor ebx, ebx
cmp qword [0x1800541a8], rbx
mov rdi, rax
jne 0x180011617
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1800116ee
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800116ee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1800541a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1800541b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1800541b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1800541c8], rax
test rax, rax
je 0x18001160e
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1800541c0], rax
jmp 0x18001161e
mov rax, qword [0x1800541c0]
jmp 0x180011625
mov rax, qword [0x1800541c0]
mov r11, qword [0x1800541c8]
cmp rax, rdi
je 0x18001168c
cmp r11, rdi
je 0x18001168c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1800541c8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x18001168c
test rax, rax
je 0x18001168c
call rsi
test rax, rax
je 0x180011686
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180011686
test byte [rsp + 0x40], 1
jne 0x18001168c
bts ebp, 0x15
jmp 0x1800116cc
mov rcx, qword [0x1800541b0]
cmp rcx, rdi
je 0x1800116cc
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800116cc
call rax
mov rbx, rax
test rax, rax
je 0x1800116cc
mov rcx, qword [0x1800541b8]
cmp rcx, rdi
je 0x1800116cc
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800116cc
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800541a8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800116ee
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1800116f0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180008dc0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x401c40
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov eax, 1
xchg byte [0x00de4400], al
test al, al
je 0x401c5f
lea rcx, [0x00de4400]
call fcn.00438d60
movzx eax, byte [0x00de4401]
test al, al
je 0x401c80
mov byte [0x00de4400], 0
add rsp, 0x58
ret
lea rdx, [0x00e65448]
lea rcx, [0x00e65470]
mov rax, rdx
mov byte [rax], 0
add rax, 1
cmp rax, rcx
jne 0x401c91
lea rax, [0x00e65448]
xor ecx, ecx
pxor xmm0, xmm0
mov qword [0x00e65448], rax
mov qword [0x00e65450], rax
lea rax, [0x00de4440]
mov r8, rax
add rcx, 1
movaps xmmword [r8], xmm0
add r8, 0x10
cmp rcx, 0x4000
jne 0x401cc2
mov byte [0x00e24440], 0
xor ecx, ecx
pxor xmm0, xmm0
add rcx, 1
movaps xmmword [rax + 0x40040], xmm0
add rax, 0x10
cmp rcx, 0xd8
jne 0x401ce4
lea rax, [0x00e25200]
mov byte [rax], 0
add rax, 1
cmp rax, rdx
jne 0x401d03
mov rax, qword [0x005ac3f8]
test rax, rax
jne 0x401d31
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
mov qword [0x005ac3f8], rax
mov qword [0x00e25200], rax
lea rax, [0x00e25210]
mov qword [0x00e25208], rax
mov byte [0x00de4401], 1
mov byte [0x00de4400], 0
add rsp, 0x58
ret
Function at 0x40d6b0
Capabilities:
Get system information on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rax, qword [0x005526a0]
mov rsi, rcx
lea rcx, [rax - 1]
test rax, rcx
jne 0x40d784
lea rbx, [rdx + rcx]
neg rax
mov rdx, qword [rsi]
and rbx, rax
mov rax, qword [rsi + 8]
sub rdx, rax
cmp rdx, rbx
jge 0x40d74b
mov rax, qword [0x005ac3f8]
test rax, rax
je 0x40d790
lea rdi, [rax - 1]
test rdi, rax
jne 0x40d784
lea rdx, str.Allocate
neg rax
add rdi, rbx
and rdi, rax
mov rcx, rdi
call fcn.0040d590
mov r8, qword [0x00dd6bd0]
lea rdx, [rax + rdi]
mov qword [rsi + 8], rax
mov qword [rsi], rdx
test r8, r8
je 0x40d743
mov rdx, rdi
mov rcx, rax
call r8
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
sub rdx, rax
cmp rbx, rdx
jg 0x40d760
add rbx, rax
mov qword [rsi + 8], rbx
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
lea r8, str.__allocated_end____allocated_current_____sptr_size______0_
xor r9d, r9d
mov edx, 0x1b33
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
call fcn.00406990
call fcn.0040b4c0
nop dword [rax]
lea rcx, [rsp + 0x30]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x34]
mov qword [0x005ac3f8], rax
jmp 0x40d6f7
Function at 0x40e930
Capabilities:
Get system information on windows
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
mov rbx, qword [0x005ac3f8]
mov r12, qword [rsp + 0xf0]
test rbx, rbx
mov qword [rsp + 0xd0], rcx
mov rbp, rdx
mov rsi, r9
mov qword [rsp + 0xe0], r8
je 0x40eb30
mov r13, qword [sym.imp.kernel32.dll_ReadFile]
lea r14, [rsp + 0x50]
cmp r12, rbx
cmovbe rbx, r12
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rbp]
mov rdx, qword [rax]
call fcn.0040e7f0
xor ecx, ecx
mov r9d, 4
mov rdx, rbx
mov r8d, 0x3000
call qword [sym.imp.kernel32.dll_VirtualAlloc]
test rax, rax
je 0x40ebb7
mov qword [rbp], rax
mov rax, qword [rsp + 0xe0]
xor r9d, r9d
mov r8d, 7
mov edx, 0x80000000
mov rcx, qword [rsp + 0xd0]
mov qword [rax], rbx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.kernel32.dll_CreateFileA]
cmp rax, 1
mov rdi, rax
je 0x40eb50
cmp rax, 2
je 0x40eb74
cmp qword [rsp + 0xf8], 0
setne r15b
cmp rax, 0xffffffffffffffff
sete al
test al, r15b
jne 0x40eae1
cmp rdi, 0xffffffffffffffff
je 0x40eaf1
mov qword [rsi], 0
xor ecx, ecx
jmp 0x40ea6b
test eax, eax
mov r8d, dword [rsp + 0x50]
je 0x40eaac
mov rcx, r8
add rcx, qword [rsi]
cmp r12, rcx
mov qword [rsi], rcx
sete dl
test r8, r8
sete al
or al, dl
jne 0x40eba0
cmp rbx, rcx
jbe 0x40eb10
mov r8d, ebx
mov rdx, rcx
mov r9, r14
add rdx, qword [rbp]
mov qword [rsp + 0x20], 0
sub r8d, ecx
mov rcx, rdi
call r13
test eax, eax
jne 0x40ea45
test r15b, r15b
je 0x40ea45
call qword [sym.imp.kernel32.dll_GetLastError]
mov rsi, qword [rsp + 0xf8]
mov dword [rsi], eax
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rbp]
mov rdx, qword [rax]
call fcn.0040e7f0
mov rcx, rdi
call qword [sym.imp.kernel32.dll_CloseHandle]
xor edx, edx
mov eax, edx
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.kernel32.dll_GetLastError]
mov rdi, qword [rsp + 0xf8]
mov dword [rdi], eax
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rbp]
mov rdx, qword [rax]
call fcn.0040e7f0
xor edx, edx
jmp 0x40eacb
add rbx, rbx
mov rcx, rdi
call qword [sym.imp.kernel32.dll_CloseHandle]
cmp r12, rbx
cmovbe rbx, r12
jmp 0x40e984
lea rcx, [rsp + 0x50]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov ebx, dword [rsp + 0x54]
mov qword [0x005ac3f8], rbx
jmp 0x40e971
lea r8, str.__res_____fd_t_1_____fd_t_1_____fd_t__1_______0_
xor r9d, r9d
mov edx, 0x2564
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
call fcn.00406990
lea r8, str.__res_____fd_t_2_____fd_t_2_____fd_t__1_______0_
xor r9d, r9d
mov edx, 0x2565
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
call fcn.00406990
nop dword [rax + rax]
mov byte [rsp + 0x4f], al
mov rcx, rdi
call qword [sym.imp.kernel32.dll_CloseHandle]
movzx edx, byte [rsp + 0x4f]
jmp 0x40eacb
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rsp + 0x20], 0
lea r8, str.allocate
mov rcx, rbx
lea rdx, str.ReadFileToBuffer
mov r9d, eax
call fcn.0040d4f0
nop
nop