joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001cfc0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
mov rbp, r8
movsxd r8, edx
mov rsi, r9
xor r9d, r9d
xor edx, edx
xor ebx, ebx
xor r10d, r10d
mov r11, rcx
mov rdi, r8
test r8d, r8d
jle 0x18001d119
lea r12, [0x1800e4990]
nop
cmp r8d, 2
jl 0x18001d01f
movzx eax, byte [r10 + r11]
cmp eax, 0x2f72
jne 0x18001d01f
movzx eax, byte [r10 + r11 + 1]
cmp eax, 0x2f6e
je 0x18001d050
movzx eax, byte [r10 + r11]
cmp eax, 0x2f6e
je 0x18001d050
cmp al, 0x3d
jne 0x18001d036
inc edx
cmp edx, 2
jg 0x18001d081
cmp al, 0x7f
ja 0x18001d081
movzx ecx, byte [rax + r12]
cmp cl, 0x7f
je 0x18001d081
cmp cl, 0x40
jae 0x18001d04d
test edx, edx
jne 0x18001d081
inc r9d
inc r10
inc ebx
dec r8d
cmp r10, rdi
jl 0x18001d000
test r9d, r9d
je 0x18001d119
lea eax, [r9 + r9*2]
lea eax, [rax + rax + 7]
sar eax, 3
cmp dword [rsi], eax
jge 0x18001d08b
mov dword [rsi], eax
mov eax, 0xfffffff0
jmp 0x18001d11b
mov eax, 0xffffffee
jmp 0x18001d11b
xor r9d, r9d
xor r10d, r10d
mov r8d, 3
mov rdx, rbp
test ebx, ebx
jle 0x18001d115
nop
movzx eax, byte [r11]
cmp eax, 0x2f72
je 0x18001d10c
cmp eax, 0x2f6e
je 0x18001d10c
movzx ecx, byte [rax + r12]
xor eax, eax
cmp cl, 0x40
sete al
and ecx, 0x3f
inc r10d
sub r8d, eax
mov eax, r9d
mov r9d, ecx
shl eax, 6
or r9d, eax
cmp r10d, 4
jne 0x18001d10c
xor r10d, r10d
test r8d, r8d
jle 0x18001d0ee
mov eax, r9d
shr eax, 0x10
inc rdx
mov byte [rdx - 1], al
cmp r8d, 1
jle 0x18001d100
mov eax, r9d
shr eax, 8
inc rdx
mov byte [rdx - 1], al
cmp r8d, 2
jle 0x18001d10c
mov byte [rdx], r9b
inc rdx
dec ebx
inc r11
test ebx, ebx
jg 0x18001d0a0
sub edx, ebp
mov dword [rsi], edx
xor eax, eax
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r12
ret
Function at 0x1800202b0
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x180106f10]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rdi, qword [rdx]
mov rbx, rcx
lea rcx, [rsp + 0x252]
xor esi, esi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x250], si
call fcn.18005cae0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x250]
lea r9, [rsp + 0x30]
lea rdx, [0x1800e509c]
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], 0x104
mov dword [rsp + 0x30], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rcx, [rsp + 0x250]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180020423
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], si
call fcn.18005cae0
lea r8d, [rsi + 0x2a]
lea rdx, [rsp + 0x40]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
mov rax, qword [str.Internet_Exploreriexplore.exe]
lea rcx, [rsp + 0x40]
mov qword [rdi - 2], rax
mov rax, qword [0x1800e51e8]
mov qword [rdi + 6], rax
mov rax, qword [0x1800e51f0]
mov qword [rdi + 0xe], rax
mov rax, qword [0x1800e51f8]
mov qword [rdi + 0x16], rax
mov rax, qword [0x1800e5200]
mov qword [rdi + 0x1e], rax
mov rax, qword [0x1800e5208]
mov qword [rdi + 0x26], rax
mov rax, qword [0x1800e5210]
mov qword [rdi + 0x2e], rax
mov rax, qword [0x1800e5218]
mov qword [rdi + 0x36], rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18002045f
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x40]
sub rbx, rcx
nop word [rax + rax]
movzx ecx, word [rdx]
add rdx, 2
mov word [rbx + rdx - 2], cx
test cx, cx
jne 0x180020410
jmp 0x18002045a
lea rax, [rsp + 0x250]
lea rcx, [rsp + 0x250]
sub rbx, rax
nop word [rax + rax]
movzx eax, word [rcx]
add rcx, 2
mov word [rbx + rcx - 2], ax
test ax, ax
jne 0x180020440
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1800564b0
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180020490
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x280
mov rax, qword [0x180106f10]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor ebx, ebx
lea rcx, [rsp + 0x62]
xor edx, edx
mov r8d, 0x206
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x30], ebx
mov word [rsp + 0x60], bx
call fcn.18005cae0
lea r11, [rsp + 0x50]
lea rdx, str.http
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x180020509
xor eax, eax
jmp 0x18002060c
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x38]
lea rdx, str.shell
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180020502
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
lea rdx, str.opencommand
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180020502
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
lea rdx, [0x1800e509c]
xor r8d, r8d
mov dword [rsp + 0x30], 0x104
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x60]
call fcn.18005a018
lea rdx, [0x1800e525c]
mov rcx, rax
call fcn.18005a0a0
test rax, rax
je 0x180020502
mov qword [rsp + 0x290], rdi
lea rdi, [rax + 2]
lea rdx, [0x1800e525c]
mov rcx, rdi
call fcn.18005a0a0
test rax, rax
je 0x180020604
mov rcx, rdi
mov word [rax], bx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
mov eax, ebx
mov rdi, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1800564b0
add rsp, 0x280
pop rbx
ret
Function at 0x180020790
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x180106f10]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor ebx, ebx
mov rdi, rcx
lea rcx, [rsp + 0x62]
xor edx, edx
mov r8d, 0x206
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x30], ebx
mov word [rsp + 0x60], bx
call fcn.18005cae0
lea r11, [rsp + 0x50]
lea rdx, str.htmlfile
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x180020810
xor eax, eax
jmp 0x1800208d3
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x38]
lea rdx, str.shell
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180020809
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
lea rdx, str.opencommand
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180020809
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
lea rdx, [0x1800e509c]
xor r8d, r8d
mov dword [rsp + 0x30], 0x104
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x60]
call fcn.18005a018
mov rdx, rdi
mov rcx, rax
call fcn.18005a0a0
test rax, rax
setne bl
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1800564b0
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rdi
ret

Function at 0x180020ab0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xfe0
mov rax, qword [0x180106f10]
xor rax, rsp
mov qword [rsp + 0xfd0], rax
mov rbx, rcx
lea rcx, [rsp + 0x30]
mov edx, 0x7d0
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor ecx, ecx
lea rdx, str.Program_FilesInternet_Exploreriexplore.exe
nop dword [rax + rax]
movzx eax, word [rcx + rdx]
add rcx, 2
mov word [rsp + rcx + 0x3a], ax
test ax, ax
jne 0x180020af0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x30]
repne scasw ax, word [rdi]
xor ecx, ecx
nop word [rax + rax]
movzx eax, word [rbx + rcx]
add rcx, 2
mov word [rdi + rcx - 4], ax
test ax, ax
jne 0x180020b20
lea rdx, str.open
xor r9d, r9d
mov r8, rbx
xor ecx, ecx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x180020b67
lea rcx, [rsp + 0x30]
call fcn.180020c20
mov rcx, qword [rsp + 0xfd0]
xor rcx, rsp
call fcn.1800564b0
mov rbx, qword [rsp + 0xff8]
add rsp, 0xfe0
pop rdi
ret
Function at 0x180020c20
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x8c0
mov rax, qword [0x180106f10]
xor rax, rsp
mov qword [rsp + 0x8b0], rax
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.18005cae0
xor eax, eax
lea rdx, [0x1800e50bc]
lea rcx, [rsp + 0xe0]
mov r8, rbx
mov dword [rsp + 0x70], WSAGetLastError
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
call fcn.180059a10
lea r11, [rsp + 0x50]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0xe0]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x180020cda
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x8b0]
xor rcx, rsp
call fcn.1800564b0
add rsp, 0x8c0
pop rbx
ret

Function at 0x180020f50
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x690
mov rax, qword [0x180106f10]
xor rax, rsp
mov qword [rsp + 0x680], rax
lea rcx, [rsp + 0x472]
xor esi, esi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x470], si
call fcn.18005cae0
lea rcx, [rsp + 0x262]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x260], si
call fcn.18005cae0
mov r11, rsi
lea rcx, str.EXPLORER.EXE
nop word [rax + rax]
movzx eax, word [r11 + rcx]
add r11, 2
mov word [rsp + r11 + 0x46e], ax
test ax, ax
jne 0x180020fc0
lea rcx, [rsp + 0x470]
call fcn.18005a394
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x234
mov dword [rsp + 0x20], esi
mov rdi, rax
call fcn.18005cae0
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180021092
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x238
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x180021089
nop dword [rax]
mov rcx, rsi
movzx eax, word [rsp + rcx + 0x4c]
add rcx, 2
mov word [rsp + rcx + 0x25e], ax
test ax, ax
jne 0x180021033
lea rcx, [rsp + 0x260]
call fcn.18005a394
mov r8, rdi
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x180021074
add rax, 2
test ecx, ecx
jne 0x180021060
mov rcx, rbx
test edx, edx
je 0x1800210b9
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x180021030
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.1800564b0
lea r11, [rsp + 0x690]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x180021094
Function at 0x180027de0
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov rsi, rdx
mov rbx, rcx
mov ecx, 0x98
call fcn.1800564d0
mov qword [rsp + 0x50], rax
test rax, rax
je 0x180027e20
mov rcx, rax
call fcn.1800275e0
mov r11, rax
jmp 0x180027e23
xor r11d, r11d
mov qword [rbx + 0xc8], r11
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [r11 + 0x10]
mov rdx, rsi
call fcn.180003680
mov rdx, qword [rbx + 0xc8]
mov dword [rdx + 8], 1
mov rcx, qword [rbx + 0xc8]
add rcx, 0x68
mov r8d, 9
lea rdx, str.GET_test1
call fcn.180003680
lea rdx, [rbx + 0x38]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x180028150]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x40], rax
test rax, rax
je 0x180027ec5
cmp rax, 0xffffffffffffffff
je 0x180027ec5
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x40], 0
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x18005a448
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x18005a45e
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18005a460
xor eax, eax
test eax, eax
je 0x18005a470
mov ecx, eax
call fcn.180060544
or eax, 0xffffffff
jmp 0x18005a472
xor eax, eax
add rsp, 0x28
ret

Function at 0x180062d97
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180106f10]
jne 0x1800564ca
rol rcx, 0x10
test cx, 0xffff
jne 0x1800564c6
repz ret
ror rcx, 0x10
jmp 0x180062cf0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180109a30]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x180109b28]
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 0x180062d75
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, [0x180109a30]
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 0x180062d97
mov rax, qword [rsp + 0x88]
mov qword [0x180109b28], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180109ac8], rax
mov rax, qword [0x180109b28]
mov qword [0x1801099a0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180109ab0], rax
mov dword [0x180109990], 0xc0000409
mov dword [0x180109994], 1
mov rax, qword [0x180106f10]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180106f18]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180109a28], eax
mov ecx, 1
call fcn.180063524
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1800d8388]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180109a28], 0
jne 0x180062e1e
mov ecx, 1
call fcn.180063524
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 0x180063d6c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x180063bd4
Function at 0x18007d718
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.180063534
xor ebx, ebx
mov rdi, rax
cmp qword [0x18010a7f8], rbx
jne 0x18007d81e
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x18007d8f3
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18007d8f3
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x18010a7f8], 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 [0x18010a800], 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 [0x18010a808], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x18010a818], rax
test rax, rax
je 0x18007d815
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x18010a810], rax
jmp 0x18007d825
mov rax, qword [0x18010a810]
jmp 0x18007d82c
mov rax, qword [0x18010a810]
mov r11, qword [0x18010a818]
cmp rax, rdi
je 0x18007d894
cmp r11, rdi
je 0x18007d894
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x18010a818]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x18007d894
test rax, rax
je 0x18007d894
call rsi
test rax, rax
je 0x18007d88e
lea rcx, [rsp + 0x88]
mov r9d, recvfrom
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x18007d88e
test byte [rsp + 0x38], 1
jne 0x18007d894
bts ebp, 0x15
jmp 0x18007d8d2
mov rcx, qword [0x18010a800]
cmp rcx, rdi
je 0x18007d8d2
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18007d8d2
call rax
mov rbx, rax
test rax, rax
je 0x18007d8d2
mov rcx, qword [0x18010a808]
cmp rcx, rdi
je 0x18007d8d2
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18007d8d2
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18010a7f8]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18007d8f3
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x18007d8f5
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 0x1800897f0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x180106f10]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x18008984e
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x180089848
shr ax, 8
cmp al, 2
jne 0x180089848
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1800564b0
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1800564b0
add rsp, 0x1d8
ret

Function at 0x18008bc00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rdi, r8
cmp dword [rcx + 8], 2
mov rsi, rdx
jne 0x18008bc4a
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x18008bc3a
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rcx + 0x10]
mov edx, 1
mov rcx, rsi
call rax
jmp 0x18008bc92
cmp qword [rbx + 0x10], 0
jne 0x18008bc7e
mov rcx, qword [rcx + 0x10]
lea rdx, [0x1800dbb60]
call fcn.1800c2220
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x18008bc7e
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rbx + 0x10]
mov r8, rdi
mov edx, 1
mov rcx, rsi
call fcn.1800c20c8
mov rdi, rax
test rax, rax
jne 0x18008bcb5
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18008bcac
call fcn.1800583b0
mov qword [rbx + 0x10], rdi
mov rax, qword [rbx]
mov rcx, qword [rax]
mov qword [rbx], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x18008d470
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp dword [rcx + 4], 2
mov rax, rdx
je 0x18008d47c
xor eax, eax
ret
mov rdx, qword [rcx + 0x20]
mov r9, r8
mov r8, rax
add rdx, 4
mov ecx, 2
jmp fcn.18009d680

Function at 0x180096f10
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x180096f4b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov edx, 0x51
cmp eax, 0x2733
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1800970c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x268]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x180097103
mov rax, qword [rcx + 0x1b8]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
test edx, edx
js 0x18009714a
cmp edx, 2
jg 0x18009714a
mov r9, qword [rbx + 0x1b0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x1800dc918]
lea r8d, [rdx - 1]
add rcx, rax
call fcn.180057d08
mov r9, qword [rbx + 0x1b0]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call fcn.180057d08
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x180097520
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd rax, edx
mov r10, r9
mov r11, r8
mov rsi, rcx
mov rcx, qword [rcx + rax*8 + 0x1a8]
xor r9d, r9d
mov r8d, r10d
mov rdx, r11
call qword [sym.imp.WS2_32.dll_send]
mov rbp, qword [rsp + 0x50]
movsxd rdi, eax
mov dword [rbp], 0
cmp rdi, 0xffffffffffffffff
jne 0x1800975cb
mov qword [rsp + 0x30], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x180097599
mov dword [rbp], 0x51
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edx, eax
mov rcx, rsi
call fcn.18008ab20
mov rcx, qword [rsi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.180097330
mov r11, qword [rsi]
mov rax, rdi
mov dword [r11 + 0x889c], ebx
mov dword [rbp], gethostname
jmp 0x180097584
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x1800997c0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
xor esi, esi
mov rdi, rdx
mov rbx, rcx
mov eax, esi
lea r9, [rsp + 0x70]
lea r8d, [rsi + 8]
cmp dword [rcx + 0x6a4], eax
mov edx, 0xffff
mov rcx, rdi
setne al
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x70], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x18009982e
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov r8, rdi
mov rcx, rbx
call fcn.180097280
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
mov ecx, dword [rbx + 0x6a8]
mov dword [rsp + 0x50], 1
call fcn.1800b3650
mov ecx, dword [rbx + 0x6ac]
imul eax, eax, 0x3e8
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x54], eax
call fcn.1800b3650
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x50]
mov r9d, recvfrom
mov edx, 0x98000004
imul eax, eax, 0x3e8
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1800998c0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov r8d, edi
mov r9d, eax
mov rcx, rbx
call fcn.180097280
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret