joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140039d84
Capabilities:
Reference http user-agent string

Disassembly:
lea r8, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
xor edx, edx
jmp 0x140039d94
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r15, r8
mov r14d, edx
mov rbp, rcx
test rcx, rcx
je 0x140039e5e
mov rcx, qword [0x14015d920]
lea edx, [rbx + 8]
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea esi, [rbx + 1]
mov rcx, rbp
or dword [rax + 4], 0xffffffff
mov dword [rax], esi
mov rdi, rax
call sub.msvcrt.dll__wcsdup
mov rcx, r15
mov qword [rdi + 8], rax
call sub.msvcrt.dll__wcsdup
mov dword [rdi + 0x40], r14d
mov dword [rdi + 0x88], esi
mov qword [rdi + 0x58], rax
test sil, r14b
je 0x140039e4b
lea rax, [rsp + 0x50]
lea r8, [0x14003a00c]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov edx, 0x10000
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140039e3e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140039e42
mov esi, dword [rsp + 0x50]
test esi, esi
je 0x140039e56
mov rbx, rdi
jmp 0x140039e5e
mov rcx, rdi
call fcn.140039e7c
mov rbx, rax
mov rcx, rdi
call fcn.140038e04
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x140039d94
Capabilities:
Create thread

Disassembly:
lea r8, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
xor edx, edx
jmp 0x140039d94
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r15, r8
mov r14d, edx
mov rbp, rcx
test rcx, rcx
je 0x140039e5e
mov rcx, qword [0x14015d920]
lea edx, [rbx + 8]
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea esi, [rbx + 1]
mov rcx, rbp
or dword [rax + 4], 0xffffffff
mov dword [rax], esi
mov rdi, rax
call sub.msvcrt.dll__wcsdup
mov rcx, r15
mov qword [rdi + 8], rax
call sub.msvcrt.dll__wcsdup
mov dword [rdi + 0x40], r14d
mov dword [rdi + 0x88], esi
mov qword [rdi + 0x58], rax
test sil, r14b
je 0x140039e4b
lea rax, [rsp + 0x50]
lea r8, [0x14003a00c]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov edx, 0x10000
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140039e3e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140039e42
mov esi, dword [rsp + 0x50]
test esi, esi
je 0x140039e56
mov rbx, rdi
jmp 0x140039e5e
mov rcx, rdi
call fcn.140039e7c
mov rbx, rax
mov rcx, rdi
call fcn.140038e04
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x14003a4e4
Capabilities:
Create thread
Reference http user-agent string

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov rsi, r9
mov r14, r8
mov r15, rdx
mov r12d, ecx
test rdx, rdx
je 0x14003a5ff
mov rcx, qword [0x14015d920]
lea edx, [rbx + 8]
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea ebp, [rbx + 1]
mov rcx, r15
or dword [rax + 4], 0xffffffff
mov dword [rax], ebp
mov rdi, rax
call sub.msvcrt.dll__wcsdup
lea rcx, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
mov qword [rdi + 8], rax
call sub.msvcrt.dll__wcsdup
mov ecx, dword [rsp + 0x80]
mov qword [rdi + 0x58], rax
mov rax, qword [rsp + 0x88]
mov dword [rdi + 0x40], ecx
mov dword [rdi + 0x78], r12d
mov qword [rdi + 0x80], rsi
mov qword [rdi + 0x70], rax
test bpl, cl
je 0x14003a5f0
test rsi, rsi
je 0x14003a5a9
mov rcx, qword [0x14015d920]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi + 0x68], rax
test rax, rax
je 0x14003a5a3
mov r8, rsi
mov rdx, r14
mov rcx, rax
call sub.msvcrt.dll_memcpy
cmp qword [rdi + 0x68], rbx
je 0x14003a5e6
lea rax, [rsp + 0x68]
lea r8, [0x14003a61c]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov edx, 0x10000
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14003a5de
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14003a5e2
mov ebp, dword [rsp + 0x68]
test ebp, ebp
jne 0x14003a5fc
mov rcx, rdi
call fcn.140038e04
jmp 0x14003a5ff
mov rcx, rdi
mov qword [rdi + 0x68], r14
call fcn.14003a0a8
mov rbx, rdi
mov rbp, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x14003a830
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
xor ebx, ebx
cmp word [0x14015df68], bx
jne 0x14003a923
lea rdx, [rsp + 0x20]
mov ecx, 0x101
call qword [sym.imp.WSOCK32.DLL_WSAStartup]
lea edi, [rbx + 1]
mov word [0x14015df68], di
test eax, eax
je 0x14003a871
mov word [0x14015df68], bx
lea rcx, str.ws2_32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14015df98], rax
test rax, rax
je 0x14003a923
lea rdx, [0x14011d158]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14015df98]
lea rdx, [0x14011d168]
mov qword [0x14015df78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14015df98]
lea rdx, str.getnameinfo
mov qword [0x14015df80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14015df98]
lea rdx, str.WSAStringToAddressA
mov qword [0x14015df88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x14015df78], rbx
mov qword [0x14015df90], rax
je 0x14003a923
cmp qword [0x14015df80], rbx
je 0x14003a923
cmp qword [0x14015df88], rbx
je 0x14003a923
mov ecx, dword [0x14015df6c]
test rax, rax
cmovne ecx, edi
mov dword [0x14015df6c], ecx
movsx rax, word [0x14015df68]
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret
Function at 0x14003b660
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x14015f940]
call fcn.140051f1c
xor ebp, ebp
mov rsi, rax
test rax, rax
je 0x14003b6e0
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x14003b6a5
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x14003b6e0
mov rcx, qword [rsi]
call qword [sym.imp.USER32.DLL_GetWindowTextLengthW]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.1400529e0
lea r8d, [rdi + 1]
mov word [rax], bp
mov rcx, qword [rsi]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.USER32.DLL_GetWindowTextW]
mov rcx, rbx
call sub.msvcrt.dll_wcslen
sub edi, eax
mov ecx, edi
call fcn.140052b20
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140044ff4
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x28
cmp qword [0x14015f190], 0
jne 0x14004505a
lea rcx, [0x14015f190]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140045046
movabs rax, 0x20c49ba5e353f7cf
lea rcx, [0x14015f198]
imul qword [0x14015f190]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [0x14015f190], rdx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp qword [0x14015f190], 0
jne 0x14004505a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
jmp 0x140045080
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
sub rax, qword [0x14015f198]
cqo
idiv qword [0x14015f190]
add rsp, 0x28
ret

Function at 0x140045dec
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
call qword [sym.imp.USER32.DLL_GetFocus]
mov rbx, rax
test rax, rax
je 0x140045e95
mov ecx, 9
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x140045e95
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140045e95
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140045e95
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140045e95
lea rdx, [rsp + 0x20]
mov r8d, 5
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetClassNameW]
lea rdx, str.Rich
lea rcx, [rsp + 0x20]
mov r8d, 4
call sub.msvcrt.dll_wcsncmp
test eax, eax
jne 0x140045e95
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rbx
call qword [sym.imp.USER32.DLL_SendMessageW]
bt rax, 0xb
jae 0x140045f3f
test rdi, rdi
je 0x140045ed4
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140045ec7
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140045ec7
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x140045ed4
mov edx, 1
mov rcx, rdi
call fcn.140045f4c
test rbx, rbx
je 0x140045eee
lea rdx, str.PB_Hotkey
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetPropW]
test rax, rax
jne 0x140045f3f
lea rdx, str.PB_WindowID
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetPropW]
mov rbx, rax
test rax, rax
je 0x140045f3f
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x140045f3f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x48], eax
jne 0x140045f3f
mov rcx, qword [0x14015f980]
lea rdx, [rbx - 1]
call fcn.140051f1c
test rax, rax
je 0x140045f3f
mov rax, qword [rax + 0x10]
jmp 0x140045f41
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140046d40
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov esi, 0x104
mov ecx, esi
call fcn.1400529e0
mov ecx, esi
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ebp, ebp
movsxd rbx, eax
test eax, eax
je 0x140046d89
lea ecx, [rbp + 0x5c]
cmp word [rdi + rbx*2 - 2], cx
je 0x140046d89
mov word [rdi + rbx*2], cx
inc ebx
sub esi, ebx
mov ecx, esi
call fcn.140052b20
mov rsi, qword [rsp + 0x40]
movsxd rax, ebx
mov rbx, qword [rsp + 0x30]
mov word [rdi + rax*2], bp
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140046db0
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x380]
sub rsp, 0x480
or rbx, 0xffffffffffffffff
xor edi, edi
test rcx, rcx
je 0x140046f12
cmp word [rcx], di
je 0x140046f12
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_wcsncpy
lea rcx, [rsp + 0x20]
mov word [rbp + 0x128], di
call sub.msvcrt.dll_wcslen
mov rdx, rax
cdqe
lea rcx, [rsp + rax*2 + 0x1e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x140046e4f
cmp word [rsp + 0x22], 0x3a
jne 0x140046e4f
cmp edx, 2
jne 0x140046e36
lea rdx, [0x14011d7f8]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscat
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140046f12
jmp 0x140046eea
cmp word [rcx], 0x5c
je 0x140046e5b
cmp word [rcx], 0x2f
jne 0x140046e64
mov word [rcx], di
sub rcx, 2
jmp 0x140046e4f
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x140046eab
test byte [rbp + 0x130], 0x10
je 0x140046e90
mov rbx, 0xfffffffffffffffe
jmp 0x140046ea3
mov ebx, dword [rbp + 0x14c]
mov eax, dword [rbp + 0x150]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140046f12
movzx ecx, word [rsp + 0x20]
movzx eax, word [rsp + 0x22]
cmp cx, 0x5c
jne 0x140046ec0
cmp ax, cx
je 0x140046ed6
cmp cx, 0x2f
jne 0x140046ecb
cmp ax, cx
je 0x140046ed6
cmp cx, 0x2e
jne 0x140046f12
cmp ax, cx
jne 0x140046f12
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140046ef3
test al, 0x10
je 0x140046f12
mov rbx, 0xfffffffffffffffe
jmp 0x140046f12
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov rcx, rbx
mov rbx, 0xfffffffffffffffe
cmp eax, 1
cmova rcx, rbx
mov rbx, rcx
lea r11, [rsp + 0x480]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x140046f2c
Capabilities:
Copy file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140046f47
test rdx, rdx
je 0x140046f47
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cdqe
jmp 0x140046f49
xor eax, eax
add rsp, 0x28
ret

Function at 0x140046f50
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140046f68
test rdx, rdx
je 0x140046f68
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cdqe
jmp 0x140046f6a
xor eax, eax
add rsp, 0x28
ret
Function at 0x140046f70
Capabilities:
Delete file

Disassembly:
xor edx, edx
jmp 0x140046f78
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140046fa3
test dl, 2
je 0x140046f96
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
jmp 0x140046fa5
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140046f78
Capabilities:
Delete file
Set file attributes

Disassembly:
xor edx, edx
jmp 0x140046f78
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140046fa3
test dl, 2
je 0x140046f96
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
jmp 0x140046fa5
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1400470d0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [0x14015f1d8]
xor r13d, r13d
mov rsi, r8
mov r15, rdx
mov rdi, rcx
mov r14d, r13d
test rax, rax
jne 0x140047122
lea r8, [0x140047244]
lea edx, [rax + 0x10]
mov ecx, 0x260
call fcn.140052044
mov qword [0x14015f1d8], rax
mov rdx, rdi
mov rcx, rax
call fcn.140051f7c
mov rbx, rax
test rax, rax
je 0x140047223
test r15, r15
lea rbp, [0x140108d20]
cmovne rbp, r15
test rsi, rsi
je 0x140047152
cmp word [rsi], r13w
jne 0x140047159
lea rsi, [0x14011d800]
mov rcx, rbp
call sub.msvcrt.dll_wcslen
mov rcx, rsi
mov r12, rax
call sub.msvcrt.dll_wcslen
mov rcx, qword [0x14015d920]
add eax, 2
xor edx, edx
add eax, r12d
movsxd r8, eax
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
je 0x14004720c
mov rdx, rbp
mov rcx, rax
call sub.msvcrt.dll_wcscpy
test r12d, r12d
je 0x1400471b9
movsxd rax, r12d
cmp word [rbp + rax*2 - 2], 0x5c
je 0x1400471b9
lea rdx, [0x14011d7f8]
mov rcx, r15
call sub.msvcrt.dll_wcscat
mov rdx, rsi
mov rcx, r15
call sub.msvcrt.dll_wcscat
lea rdx, [rbx + 0xc]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x1400471e0
mov dword [rbx + 8], r13d
jmp 0x1400471f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400471f5
mov dword [rbx + 8], 1
mov r14, rbx
mov rcx, qword [0x14015d920]
mov r8, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14, r14
jne 0x140047223
mov rcx, qword [0x14015f1d8]
cmp rdi, 0xffffffffffffffff
cmove rdi, rbx
mov rdx, rdi
call fcn.140051eb0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rax, r14
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400473e4
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x230
xor ebx, ebx
test rcx, rcx
je 0x14004746e
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_wcsncpy
lea rcx, [rsp + 0x20]
mov word [rsp + 0x228], bx
call sub.msvcrt.dll_wcslen
lea rcx, [rsp + 0x20]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x14004745a
lea rdx, [rcx - 2]
movzx eax, word [rdx]
sub ax, 0x20
cmp ax, 0x3c
ja 0x14004745a
movabs r8, 0x1000000000008001
bt r8, rax
jae 0x14004745a
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x14004742c
mov word [rcx], bx
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cdqe
jmp 0x140047470
xor eax, eax
add rsp, 0x230
pop rbx
ret

Function at 0x140047510
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x140047554
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
movsxd rax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret

Function at 0x140047b20
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov dword [rsp + 0x48], 0
test rdx, rdx
je 0x140047c23
cmp word [rdx], 0
je 0x140047c23
cmp r8d, 0x19
jne 0x140047bb3
or rax, 0xffffffffffffffff
cmp qword [rcx + 8], 0
je 0x140047b81
nop word [rax + rax]
cmp word [rdx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140047b60
lea r8d, [rax + rax]
call fcn.140047d90
mov dword [rsp + 0x48], eax
cdqe
add rsp, 0x30
pop rbx
ret
cmp word [rdx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140047b81
mov rcx, qword [rcx]
lea r8d, [rax + rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
xor ecx, ecx
cmp r8d, 2
mov eax, 0xfde9
lea r8, [rsp + 0x58]
cmove ecx, eax
mov qword [rsp + 0x40], rdi
call fcn.140047ee0
mov rdi, rax
test rax, rax
je 0x140047c1e
cmp qword [rbx + 8], 0
mov r8d, dword [rsp + 0x58]
mov rdx, rax
je 0x140047bf5
mov rcx, rbx
call fcn.140047d90
mov dword [rsp + 0x48], eax
jmp 0x140047c0c
mov rcx, qword [rbx]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x14015d920]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rsp + 0x40]
movsxd rax, dword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret

Function at 0x140047c30
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
mov rdx, rcx
mov rcx, qword [0x14015f9e0]
call fcn.140051f1c
test rax, rax
je 0x140047c61
mov r8d, dword [rax + 0x20]
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.140047b20
add rsp, 0x20
pop rbx
ret
Function at 0x140047cc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rdx, rcx
mov rcx, qword [0x14015f9e0]
call fcn.140051f1c
mov rbx, rax
test rax, rax
je 0x140047d10
mov r8d, dword [rax + 0x20]
mov rdx, rdi
mov rcx, rax
call fcn.140047b20
mov r8d, dword [rbx + 0x20]
lea rdx, [0x14011d808]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140047b20
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140047d90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
movsxd rdi, r8d
mov rsi, rdx
mov rbx, rcx
mov dword [rsp + 0x50], ebp
cmp dword [rcx + 0x24], ebp
jne 0x140047ece
cmp dword [rcx + 0x1c], 1
jne 0x140047de3
mov eax, dword [rcx + 0x14]
mov rcx, qword [rcx]
lea r9d, [rbp + 1]
neg eax
lea r8, [rsp + 0x6c]
cdqe
mov edx, eax
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x1c], ebp
mov dword [rbx + 0x14], eax
mov ecx, dword [rbx + 0x14]
cmp ecx, edi
jle 0x140047e6f
mov eax, dword [rbx + 0x10]
mov edx, edi
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rbx + 8]
dec edx
je 0x140047e57
dec edx
je 0x140047e3e
cmp edx, 2
je 0x140047e27
mov r8, rdi
mov rdx, rsi
call sub.msvcrt.dll_memcpy
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [rsi]
mov dword [rcx], eax
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
movzx eax, word [rsi]
mov word [rcx], ax
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
movzx eax, byte [rsi]
mov byte [rcx], al
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rcx, rbx
call fcn.140047510
mov eax, dword [rbx + 0x10]
mov rdx, rsi
cmp edi, eax
jl 0x140047ea9
mov rcx, qword [rbx]
lea r9, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
sub eax, dword [rbx + 0x14]
mov r8, rdi
movsxd rcx, eax
add rcx, qword [rbx + 8]
call sub.msvcrt.dll_memcpy
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
movsxd rax, ebp
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400491e4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ecx, ecx
xor ebx, ebx
call qword [sym.imp.USER32.DLL_OpenClipboard]
test eax, eax
je 0x14004927d
lea rsi, [0x140108d20]
test rdi, rdi
cmovne rsi, rdi
mov rcx, rsi
call sub.msvcrt.dll_wcslen
mov ecx, 0x2002
inc eax
movsxd rbp, eax
add rbp, rbp
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x140049277
call qword [sym.imp.USER32.DLL_EmptyClipboard]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140049277
mov r8, rbp
mov rdx, rsi
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [rbx + 0xd]
mov rdx, rdi
call qword [sym.imp.USER32.DLL_SetClipboardData]
mov rbx, rax
call qword [sym.imp.USER32.DLL_CloseClipboard]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140049794
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14015fa50], eax
add rsp, 0x28
ret

Function at 0x140049d74
Capabilities:
Get file size
Read file on windows

Disassembly:
xor r8d, r8d
jmp 0x140049d7c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, rdx
xor ebx, ebx
mov r14, rcx
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rax
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140049e3f
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [0x14015d920]
xor edx, edx
mov r8d, eax
mov edi, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x140049e36
lea r9, [rsp + 0x78]
mov r8d, edi
mov rdx, rax
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140049e24
cmp dword [rsp + 0x78], edi
jne 0x140049e24
mov r8d, edi
mov rdx, rsi
mov rcx, r14
call fcn.1400498e4
mov rbx, rax
mov rcx, qword [0x14015d920]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret