joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180007ac0
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x290
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x2c0], rbx
mov rax, qword [0x1800548e0]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rdx
mov rbp, rcx
xor edi, edi
mov dword [rsp + 0x40], edi
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x44]
call fcn.180028cc0
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x180007b27
xor eax, eax
jmp 0x180007c07
mov dword [rsp + 0x40], 0x238
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x30], rdi
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.180007420
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov rbx, qword [rsp + 0x28]
test eax, eax
je 0x180007bd0
lea rax, [rsp + 0x6c]
mov r8, rbx
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x180007b84
add rax, 2
test ecx, ecx
jne 0x180007b70
test edx, edx
je 0x180007b9f
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180007b62
lea edi, [rax + 1]
jmp 0x180007bd0
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r8, rbp
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x180007bda
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test rbx, rbx
je 0x180007be7
mov rcx, rbx
call fcn.18002228c
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x180007bf6
call fcn.18002228c
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180007c05
call fcn.18002228c
mov eax, edi
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1800221a0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret

Function at 0x180007c30
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
mov ecx, 0x400
call fcn.1800212a0
xor edx, edx
mov r8d, 0x400
mov rcx, rax
mov rbx, rax
call fcn.180028cc0
call fcn.1800078a0
test al, al
jne 0x180007c7c
xor r9d, r9d
mov rdx, rbx
xor ecx, ecx
lea r8d, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
jmp 0x180007cb6
lea rdx, str.explorer.exe
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 0
call fcn.180007ac0
test eax, eax
je 0x180007cb6
mov r8, qword [rsp + 0x30]
mov r9d, 1
xor ecx, ecx
lea edx, [r9 + 0x19]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
and ecx, ecx
movsxd rcx, ecx
call fcn.1800212a0
mov rdx, rbx
mov qword [rsi + 0x40], rax
nop word [rax + rax]
movzx ecx, byte [rdx]
inc rax
inc rdx
mov byte [rax - 1], cl
test cl, cl
jne 0x180007ce0
mov rcx, rbx
call fcn.180022284
mov rax, qword [rsi + 0x40]
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x180007d10
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1800548e0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rcx
xor r13d, r13d
mov qword [rbp - 0x41], r13
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x31], r13
mov qword [rbp - 0x79], r13
mov qword [rbp - 0x71], r13
mov qword [rbp - 0x69], r13
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x59], r13
mov qword [rbp - 0x49], r13
mov qword [rbp - 0x51], r13
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
call fcn.1800212a0
mov qword [rbp - 0x79], rax
sub rax, rbx
nop dword [rax]
movzx ecx, byte [rbx]
mov byte [rax + rbx], cl
inc rbx
test cl, cl
jne 0x180007d90
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x79]
call fcn.180003a00
nop
mov rax, qword [rbp - 9]
mov r12, qword [rbp - 0x11]
sub rax, r12
sar rax, 3
mov rbx, r13
movsxd rsi, eax
test eax, eax
jle 0x180007e5d
nop dword [rax + rax]
mov rdx, qword [r12 + rbx*8]
mov qword [rbp + 0x27], recv
mov qword [rbp + 0x1f], r13
mov byte [rbp + 0xf], 0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp + 0xf]
call fcn.180003360
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae rcx, qword [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x180007e32
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae rcx, qword [rbp + 0xf]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x180007e4c
cmp qword [rbp + 0x27], 0x10
jb 0x180007e42
mov rcx, qword [rbp + 0xf]
call fcn.18002228c
inc rbx
cmp rbx, rsi
jge 0x180007e5d
jmp 0x180007dd0
cmp qword [rbp + 0x27], 0x10
jb 0x180007e5d
mov rcx, qword [rbp + 0xf]
call fcn.18002228c
nop
test r12, r12
je 0x180007e6b
mov rcx, r12
call fcn.18002228c
nop
lea rcx, [rbp - 0x79]
call fcn.1800038e0
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x180007e82
call fcn.18002228c
mov al, 1
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1800221a0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret
Function at 0x1800082c0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, qword [rsi + 0x20]
xor ebp, ebp
repne scasb al, byte [rdi]
not rcx
movsxd rdi, ecx
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x1800082fd
call fcn.180022284
mov qword [rsi + 0x10], rbp
mov rcx, rdi
mov rbx, rdi
call fcn.1800212a0
mov r8, rdi
xor edx, edx
mov rcx, rax
mov qword [rsi + 0x10], rax
call fcn.180028cc0
mov r11d, ebp
mov edx, ebp
mov rcx, rbp
test edi, edi
jle 0x18000836f
mov rdi, qword [rsi + 0x20]
nop dword [rax]
movzx edi, byte [rdi + rcx]
cmp dil, 0x3a
je 0x18000836f
mov rax, qword [rsi + 0x10]
mov byte [rcx + rax], dil
mov rdi, qword [rsi + 0x20]
movzx eax, byte [rdi + rcx]
cmp al, 0x2e
jne 0x180008353
inc r11d
jmp 0x180008367
cmp edx, 1
je 0x180008367
test al, al
jns 0x180008365
mov edx, 1
cmp al, 0x39
jg 0x180008367
mov edx, ebp
inc rcx
cmp rcx, rbx
jl 0x180008330
mov r8, qword [rsi + 0x10]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, 1
ja 0x180008398
test r8, r8
je 0x180008416
mov rcx, r8
jmp 0x18000840d
cmp r11d, 3
jne 0x1800083a2
test edx, edx
je 0x180008400
mov rcx, r8
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x180008404
mov rdi, qword [rax + 0x18]
cmp qword [rdi], rbp
je 0x180008404
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x1800083cb
call fcn.180022284
mov qword [rsi + 0x10], rbp
mov rax, qword [rdi]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
or rcx, 0xffffffffffffffff
mov rbx, rax
xor eax, eax
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
call fcn.1800212a0
mov qword [rsi + 0x10], rax
movzx ecx, byte [rbx]
inc rax
inc rbx
mov byte [rax - 1], cl
test cl, cl
jne 0x1800083f0
mov al, 1
jmp 0x180008418
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x180008416
call fcn.180022284
mov qword [rsi + 0x10], rbp
xor al, al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800157f0
Capabilities:
Hide graphical window
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0xe0]
test rcx, rcx
je 0x180015828
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0xe0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov qword [rbx + 0xe0], 0xffffffffffffffff
mov rcx, qword [rbx + 0xe8]
cmp rcx, 0xffffffffffffffff
je 0x180015858
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0xe8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov qword [rbx + 0xe8], 0xffffffffffffffff
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x18001587b
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov qword [rbx + 0x40], 0
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1800158b0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov rbx, rcx
mov qword [rdx], rsi
cmp byte [rcx + 0x60], sil
jne 0x1800158d9
mov rcx, qword [rcx + 0xd8]
jmp 0x180015934
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x18001592d
cmp qword [rbx + 0x58], rsi
je 0x18001592d
cmp qword [rbx + 0xd8], rsi
jne 0x180015946
lea r8, [0x180048760]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx + 0xd8], rax
test rax, rax
je 0x180015946
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x180015946
mov rcx, qword [rbx + 0xd8]
mov byte [rbx + 0x60], sil
jmp 0x180015939
mov rcx, qword [rbx + 0xd8]
test rcx, rcx
je 0x180015946
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0xd8], rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x180015fe0
Capabilities:
Create thread
Terminate thread

Disassembly:
cmp rdx, 0x2b14
jne 0x180016074
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_KillTimer]
mov rcx, qword [rbx + 0xe8]
cmp rcx, 0xffffffffffffffff
je 0x180016031
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0xe8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov qword [rbx + 0xe8], 0xffffffffffffffff
xor eax, eax
lea r8, [0x180015ce0]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
mov edx, 0x2b14
mov r8d, 0xa4cb80
mov qword [rbx + 0xe8], rax
call qword [sym.imp.USER32.dll_SetTimer]
add rsp, 0x30
pop rbx
repz ret
Function at 0x1800186e0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
push rsi
sub rsp, 0x258
mov rax, qword [0x1800548e0]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rax, [rsp + 0x30]
mov r9d, 0xf003f
xor r8d, r8d
mov rbp, rdx
mov rsi, rcx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18001888c
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x1f4
mov word [rsp + 0x40], ax
call fcn.180028cc0
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov r9d, 0xfb
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x180018875
mov qword [rsp + 0x280], rbx
or r8, 0xffffffffffffffff
mov qword [rsp + 0x250], rdi
nop
xor eax, eax
mov rcx, r8
mov rdi, rbp
repne scasw ax, word [rdi]
lea rdi, [rsp + 0x40]
not rcx
lea rdx, [rcx - 1]
mov rcx, r8
repne scasw ax, word [rdi]
mov eax, 2
not rcx
lea rdx, [rdx + rcx + 1]
mul rdx
cmovo rax, r8
mov rcx, rax
call fcn.1800212a0
mov rdx, rbp
mov rbx, rax
sub rax, rbp
nop word [rax + rax]
movzx ecx, word [rdx]
add rdx, 2
mov word [rax + rdx - 2], cx
test cx, cx
jne 0x1800187c0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
mov eax, dword [0x18004875c]
or rcx, 0xffffffffffffffff
mov dword [rdi - 2], eax
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x40]
nop dword [rax]
movzx eax, word [rdx + rcx]
add rcx, 2
mov word [rdi + rcx - 4], ax
test ax, ax
jne 0x180018800
mov rdx, rbx
mov rcx, rsi
call fcn.1800186e0
mov rcx, rbx
call fcn.180022284
xor eax, eax
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x1f4
mov word [rsp + 0x40], ax
call fcn.180028cc0
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov r9d, 0xfb
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov r8, 0xffffffffffffffff
test eax, eax
je 0x180018770
mov rdi, qword [rsp + 0x250]
mov rbx, qword [rsp + 0x280]
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1800221a0
add rsp, 0x258
pop rsi
pop rbp
ret
Function at 0x180020fa0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x230
mov rax, qword [0x1800548e0]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rdi, rcx
lea rcx, [rsp + 0x24]
xor ebx, ebx
xor edx, edx
mov r8d, 0x1f4
mov dword [rsp + 0x20], ebx
call fcn.180028cc0
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov edx, 0x1f8
cmp al, 6
lea r8, [rsp + 0x20]
lea ecx, [rbx + 0x29]
sbb eax, eax
xor r9d, r9d
and eax, 4
sub edx, eax
mov dword [rsp + 0x20], edx
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x180021019
lea rcx, [rsp + 0x1b8]
call qword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov qword [rdi + 8], rax
cmp qword [rdi + 8], rbx
setne al
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1800221a0
mov rbx, qword [rsp + 0x248]
add rsp, 0x230
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
jne 0x180024906
call fcn.180022ce4
and dword [rax], 0
call fcn.180022cc4
mov ebx, socket
mov dword [rax], ebx
call fcn.180029efc
mov eax, ebx
jmp 0x180024956
test edx, 0xfffffff9
jne 0x1800248e9
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x18002492f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180022d04
call fcn.180022cc4
mov eax, dword [rax]
jmp 0x180024956
test al, 0x10
jne 0x180024954
test al, 1
je 0x180024954
test bl, 2
je 0x180024954
call fcn.180022ce4
mov dword [rax], 5
call fcn.180022cc4
mov dword [rax], recv
jmp 0x180024926
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x180028fc3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1800548e0]
jne 0x1800221ba
rol rcx, 0x10
test cx, 0xffff
jne 0x1800221b6
repz ret
ror rcx, 0x10
jmp 0x180028f1c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180058ba0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180058c98]
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 0x180028fa1
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, [0x180058ba0]
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 0x180028fc3
mov rax, qword [rsp + 0x88]
mov qword [0x180058c98], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180058c38], rax
mov rax, qword [0x180058c98]
mov qword [0x180058b10], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180058c20], rax
mov dword [0x180058b00], 0xc0000409
mov dword [0x180058b04], 1
mov rax, qword [0x1800548e0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1800548e8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180058b98], eax
mov ecx, 1
call fcn.18003698c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180042940]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180058b98], 0
jne 0x18002904a
mov ecx, 1
call fcn.18003698c
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 0x18003a1e0
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 [0x1800548e0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.18002d780
xor ebx, ebx
cmp qword [0x180059bc8], rbx
mov rdi, rax
jne 0x18003a2f3
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x18003a3ca
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18003a3ca
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x180059bc8], 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 [0x180059bd0], 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 [0x180059bd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x180059be8], rax
test rax, rax
je 0x18003a2ea
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 [0x180059be0], rax
jmp 0x18003a2fa
mov rax, qword [0x180059be0]
jmp 0x18003a301
mov rax, qword [0x180059be0]
mov r11, qword [0x180059be8]
cmp rax, rdi
je 0x18003a368
cmp r11, rdi
je 0x18003a368
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x180059be8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x18003a368
test rax, rax
je 0x18003a368
call rsi
test rax, rax
je 0x18003a362
lea rcx, [rsp + 0x30]
mov r9d, reloc.WS2_32.dll_inet_ntoa
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x18003a362
test byte [rsp + 0x40], 1
jne 0x18003a368
bts ebp, 0x15
jmp 0x18003a3a8
mov rcx, qword [0x180059bd0]
cmp rcx, rdi
je 0x18003a3a8
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18003a3a8
call rax
mov rbx, rax
test rax, rax
je 0x18003a3a8
mov rcx, qword [0x180059bd8]
cmp rcx, rdi
je 0x18003a3a8
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18003a3a8
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180059bc8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18003a3ca
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x18003a3cc
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800221a0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140003920
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003954
cmp word [rcx], 0x5a4d
jne 0x140003954
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003954
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003954
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003860
test eax, eax
jne 0x140003970
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.1400038d0
test rax, rax
je 0x140003965
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.14000411c
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004020
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140003fc0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004484
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14000ea98]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14000ea94]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400044d2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400044ca
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400045b9
inc ebx
add rax, 0x28
jmp 0x1400044aa
mov rcx, r12
call fcn.140004cb1
mov rbp, rax
test rax, rax
jne 0x1400044f1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004420
movsxd rbx, ebx
mov rax, qword [0x14000ea98]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004d5f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000ea98]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004553
mov rax, qword [0x14000ea98]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004420
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400045b3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400045b3
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 [0x14000ea98]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400045b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004420
inc dword [0x14000ea94]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400049e0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14000eb00]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000eae0]
test rbx, rbx
je 0x140004a2c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004a26
test eax, eax
jne 0x140004a26
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x1400049fe
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004be0
Capabilities:
Parse pe header

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

Function at 0x140004c04
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140004c3e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004c35
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004c40
inc r8d
add rax, 0x28
jmp 0x140004c1c
xor eax, eax
ret

Function at 0x140004cb1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14000ac70]
mov r8, rcx
mov rcx, r9
call fcn.140004be0
test eax, eax
je 0x140004cdd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004c04
xor eax, eax
add rsp, 0x28
ret
Function at 0x14000dd90
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 8], 0
je 0x14000ddb8
xor eax, eax
mov r8d, 0x4a44
nop
movzx edx, ax
sub dx, r8w
xor word [rcx + rax*2], dx
inc rax
cmp rax, 3
jb 0x14000dda0
mov byte [rcx + 8], 0
mov rax, rcx
ret