joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800574c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0x138
mov rax, qword [0x1800f3690]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rax, qword [rcx]
mov rsi, rcx
mov rdi, r9
mov rcx, qword [rax + 0x10]
mov dword [r9], 0
xor r9d, r9d
mov rcx, qword [rcx + 0x98]
call qword [sym.imp.WS2_32.dll_recv]
cdqe
cmp rax, 0xffffffffffffffff
jne 0x18005756b
mov qword [rsp + 0x130], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x180057527
mov dword [rdi], 0x51
jmp 0x18005755c
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.180038900
mov rcx, qword [rsi + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call fcn.180026180
mov rax, qword [rsi + 8]
mov dword [rax + 0xd7c], ebx
mov dword [rdi], gethostname
mov rbx, qword [rsp + 0x130]
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.18006a300
add rsp, 0x138
pop rdi
pop rsi
ret

Function at 0x180057590
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x1800f3690]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rax, qword [rdx + 0x20]
mov rsi, rdx
mov rbx, qword [rcx + 0x10]
mov rcx, qword [rax + 0x2e8]
test dword [rcx + 0x84], 0x800
jne 0x1800576d1
mov rcx, qword [rbx + 0x98]
lea r8, [rsp + 0x20]
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x180057661
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.180038900
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.180026180
mov eax, 2
jmp 0x1800576d3
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x144]
lea r8, [rbx + 0x114]
lea rcx, [rsp + 0x30]
call fcn.180026f40
test al, al
jne 0x1800576d1
mov qword [rsp + 0x1e0], rdi
call fcn.18009dc30
mov ebx, dword [rax]
call fcn.18009dc30
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.180038900
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.180026180
mov rdi, qword [rsp + 0x1e0]
mov eax, 2
jmp 0x1800576d3
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.18006a300
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rsi
ret
Function at 0x1800606f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
push r15
sub rsp, 0x180
mov rax, qword [0x1800f3690]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor ebp, ebp
xor ebx, ebx
call case.0x180022391.1
mov r13, rax
test rax, rax
jne 0x18006076e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.180038a30
mov r9, rax
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.180026180
xor ecx, ecx
lea ebx, [rbp + 0x4d]
call qword [fcn.18009de5c]
jmp 0x180060928
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, r13
mov qword [rsp + 0x170], r14
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1800607e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.180038a30
mov r9, rax
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.180026180
xor ecx, ecx
lea ebx, [r14 + 0x4e]
jmp 0x180060912
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x18006082a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.180038a30
mov r9, rax
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.180026180
mov ebx, Ordinal_79
jmp 0x180060906
mov qword [rsp + 0x178], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x18006085f
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.180026180
mov ebx, Ordinal_79
jmp 0x1800608fe
lea rcx, [rdi + 1]
call qword [section..data]
mov rbp, rax
test rax, rax
jne 0x180060879
lea ebx, [rax + 0x1b]
jmp 0x1800608fe
mov qword [rsp + 0x1c8], rsi
test rdi, rdi
je 0x1800608d8
nop word [rax + rax]
mov r8d, edi
mov dword [rsp + 0x40], 0
sub r8d, ebx
mov esi, ebx
lea rdx, [rbx + rbp]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18006094a
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x1800608cf
mov edi, esi
jmp 0x1800608d1
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x180060890
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rdi
mov byte [rdi + rbp], 0
mov rdx, rbp
mov qword [rsp + 0x20], r15
call fcn.180060450
mov ebx, eax
mov rsi, qword [rsp + 0x1c8]
mov rdi, qword [rsp + 0x178]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [fcn.18009de5c]
mov rcx, r13
call fcn.18009de5c
mov r14, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.18006a300
add rsp, 0x180
pop r15
pop r13
pop r12
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.180038a30
mov r9, rax
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.180026180
mov ebx, Ordinal_79
jmp 0x1800608f6
Function at 0x180067580
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, r8
mov rdi, rdx
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, str.WWW_Authenticate:
mov rcx, r9
mov rbx, r9
call fcn.18002a620
test eax, eax
je 0x1800675c4
mov esi, dword [rdi + 0x150]
cmp esi, 0x191
je 0x1800675eb
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Proxy_authenticate:
mov rcx, rbx
call fcn.18002a620
test eax, eax
je 0x180067631
mov esi, dword [rdi + 0x150]
cmp esi, 0x197
jne 0x180067631
mov rcx, rbx
call fcn.180030540
mov rbx, rax
test rax, rax
jne 0x180067603
lea eax, [rbx + 0x1b]
jmp 0x1800677f2
cmp esi, 0x197
mov r8, rbx
mov rcx, rdi
sete dl
call fcn.1800321f0
mov rcx, rbx
mov edi, eax
call qword [fcn.18009de5c]
test edi, edi
je 0x1800677f0
mov eax, edi
jmp 0x1800677f2
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.Content_Length:
mov rcx, rbx
call fcn.18002a620
test eax, eax
je 0x18006768c
mov r8d, dword [rdi + 0x150]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x180067671
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response
mov rcx, rdi
call fcn.180026270
jmp 0x1800677f0
xor edx, edx
lea r9, [rbp + 0x2a8]
lea rcx, [rbx + 0xf]
lea r8d, [rdx + 0xa]
call fcn.180039670
jmp 0x1800677f0
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, listen
lea rdx, str.Connection:
mov rcx, rbx
call fcn.180030470
test al, al
jne 0x1800677e9
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Transfer_Encoding:
mov rcx, rbx
call fcn.18002a620
test eax, eax
je 0x180067749
mov r8d, dword [rdi + 0x150]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1800676f9
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
mov rcx, rdi
call fcn.180026270
jmp 0x1800677f0
lea r9, str.chunked
mov qword [rsp + 0x20], 7
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Transfer_Encoding:
mov rcx, rbx
call fcn.180030470
test al, al
je 0x1800677f0
lea rdx, str.CONNECT_responded_chunked
mov rcx, rdi
call fcn.180026270
mov rcx, rdi
mov byte [rbp + 0x2b4], 1
call fcn.18005b5d0
jmp 0x1800677f0
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, str.Proxy_Connection:
mov rcx, rbx
call fcn.180030470
test al, al
jne 0x1800677e9
mov r8d, 7
lea rdx, str.HTTP_1.
mov rcx, rbx
call fcn.18009eed0
test eax, eax
jne 0x1800677f0
movzx eax, byte [rbx + 7]
sub al, 0x30
cmp al, 1
ja 0x1800677f0
cmp byte [rbx + 8], 0x20
jne 0x1800677f0
movsx ecx, byte [rbx + 9]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1800677f0
movsx edx, byte [rbx + 0xa]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x1800677f0
movsx r8d, byte [rbx + 0xb]
lea eax, [r8 - 0x30]
cmp al, 9
ja 0x1800677f0
movzx eax, byte [rbx + 0xc]
sub al, 0x30
cmp al, 9
jbe 0x1800677f0
lea ecx, [rcx + rcx*4]
lea ecx, [rdx + rcx*2]
lea ecx, [rcx + rcx*4]
lea ecx, [rcx - 0xa68]
lea ecx, [r8 + rcx*2]
mov dword [rdi + 0x150], ecx
mov dword [rdi + 0x1384], ecx
jmp 0x1800677f0
mov byte [rbp + 0x2b5], 1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180068f20
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [section..data]
mov rdi, rax
test rax, rax
jne 0x180068f62
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x180068fa9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x180069002
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x180068fc0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x180069043
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1800d3fa1]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1800d3fa2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x180069010
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

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

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x180071baa
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x180071b8d
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x180071b78
Function at 0x180097eec
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 0x180097dc3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180097dc3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180097dc3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180097dc3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180097dc3
cmp dword [rcx + 0x84], 0xe
jbe 0x180097dc3
cmp dword [rcx + 0xf8], 0
je 0x180097dc3
mov ecx, ebx
call fcn.180097e64
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.180097c54
cmp dword [rbp + 0x20], 0
je 0x180097e10
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180097e18
int3
xor r8d, r8d
xor edx, edx
jmp 0x180097d5c
Function at 0x1800bade8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800bae08
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18009dbc0
or eax, 0xffffffff
jmp 0x1800bae0a
xor eax, eax
add rsp, 0x28
ret
Function at 0x403ed4
Capabilities:
Get disk information

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x460
mov rdi, rdx
mov edx, 0x104
lea rax, [rsp + 0x250]
mov dword [rsp + 0x38], edx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x4a0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r9
mov r9, r8
mov r8d, edx
xor esi, esi
lea rdx, [rsp + 0x40]
mov word [rsp + 0x40], si
mov word [rsp + 0x250], si
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
lea rdx, [rsp + 0x40]
mov rcx, rdi
mov ebx, eax
call fcn.00402460
mov rcx, qword [rsp + 0x4a8]
lea rdx, [rsp + 0x250]
call fcn.00402460
cmp ebx, esi
setne al
add rsp, 0x460
pop rdi
pop rsi
pop rbx
ret

Function at 0x403f68
Capabilities:
Get disk size

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov r12, rcx
lea rcx, [0x00487b68]
mov rdi, r9
mov rsi, r8
mov rbx, rdx
xor bpl, bpl
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetDiskFreeSpaceExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x403fce
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, r12
call rax
test eax, eax
mov rax, qword [rsp + 0x40]
mov qword [rsi], rax
mov rax, qword [rsp + 0x48]
setne bpl
mov qword [rdi], rax
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x3c]
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x30]
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x404020
mov ecx, dword [rsp + 0x30]
mov eax, dword [rsp + 0x34]
imul rcx, rax
test bpl, bpl
mov qword [rbx], rcx
jne 0x40401e
mov eax, dword [rsp + 0x38]
imul rax, rcx
mov qword [rsi], rax
mov eax, dword [rsp + 0x3c]
imul rax, qword [rbx]
mov qword [rdi], rax
mov al, 1
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x40419c
Capabilities:
Connect network resource

Disassembly:
sub rsp, 0x58
mov r11, rdx
lea rdx, [rsp + 0x20]
mov r10, r8
call fcn.00404104
lea rcx, [rsp + 0x20]
mov r8, r10
mov rdx, r11
call sub.MPR.dll_WNetAddConnection2W
add rsp, 0x58
ret
Function at 0x404490
Capabilities:
Get user security identifier

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov r11, rsp
sub rsp, 0x48
lea rax, [r11 + 0x40]
mov rsi, rcx
mov rdx, rcx
mov qword [r11 - 0x18], rax
lea rax, [r11 + 0x30]
lea r9, [r11 + 0x38]
mov qword [r11 - 0x20], rax
xor r8d, r8d
xor ecx, ecx
mov dword [r11 + 0x38], 0
mov dword [rsp + 0x78], 0
mov qword [r11 - 0x28], 0
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x404584
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x404584
mov ebx, dword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, 8
mov r8, rbx
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [rsp + 0x78]
inc ebx
mov rbp, rax
add rbx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r9, [rsp + 0x80]
mov r8, rbp
mov rdi, rax
lea rax, [rsp + 0x88]
mov rdx, rsi
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x78]
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
je 0x404584
mov rax, rbp
jmp 0x404586
xor eax, eax
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x404590
Capabilities:
Get session user name
Manipulate user privileges

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov rax, rsp
sub rsp, 0x378
xor esi, esi
lea r9, [rax + 0x30]
lea rdx, [rsp + 0x30]
mov r8d, 0xf0fff
xor ecx, ecx
mov dword [rsp + 0x30], 0x30
mov qword [rax + 0x30], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
call sub.ADVAPI32.dll_LsaOpenPolicy
cmp eax, esi
je 0x4045ec
mov rcx, qword [rsp + 0x3a8]
jmp 0x40468e
lea rcx, [rsp + 0x60]
lea rdx, [0x00487be8]
mov r8d, 0x2c
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x8c]
xor edx, edx
mov r8d, 0xd4
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_wcslen]
mov ebp, 1
lea rdx, [rsp + 0x3a0]
movzx ecx, ax
add ax, bp
mov dword [rsp + 0x3a0], 0x100
add ax, ax
add cx, cx
mov word [rsp + 0x22], ax
lea rax, [rsp + 0x60]
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x160]
mov qword [rsp + 0x28], rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp eax, esi
je 0x4045df
lea rcx, [rsp + 0x160]
call fcn.00404490
mov rcx, qword [rsp + 0x3a8]
cmp rax, rsi
mov rbx, rax
jne 0x40469c
cmp rcx, rsi
je 0x404698
call sub.ADVAPI32.dll_LsaClose
xor al, al
jmp 0x4046de
lea r8, [rsp + 0x20]
mov r9d, ebp
mov rdx, rax
call sub.ADVAPI32.dll_LsaAddAccountRights
movzx edi, sil
cmp eax, esi
cmove edi, ebp
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x3a8]
cmp rcx, rsi
je 0x4046db
call sub.ADVAPI32.dll_LsaClose
mov al, dil
add rsp, 0x378
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x404740
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
call qword [sym.imp.USER32.dll_OpenClipboard]
xor ebx, ebx
cmp eax, ebx
setne al
cmp al, bl
mov byte [rsp + 0x60], al
je 0x4047f7
call qword [sym.imp.USER32.dll_EmptyClipboard]
cmp eax, ebx
je 0x4047f7
mov esi, dword [rdi + 8]
mov rbp, qword [rdi]
lea rcx, [rsp + 0x68]
inc esi
mov edx, 0x2002
mov qword [rsp + 0x68], rbx
add rsi, rsi
mov r8, rsi
call fcn.004093d4
cmp al, bl
jne 0x4047a0
lea rcx, [rsp + 0x68]
jmp 0x4047e4
mov rdi, qword [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
cmp rax, rbx
je 0x404799
mov r8, rsi
mov rdx, rbp
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, qword [rsp + 0x68]
mov ecx, InitCommonControls
call qword [sym.imp.USER32.dll_SetClipboardData]
lea rcx, [rsp + 0x68]
cmp rax, rbx
jne 0x4047eb
call fcn.004093fc
jmp 0x4047f7
mov qword [rsp + 0x68], rbx
call fcn.004093fc
mov bl, 1
lea rcx, [rsp + 0x60]
call fcn.00404710
mov al, bl
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x404c98
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x230
mov rdi, rcx
lea rcx, [rsp + 0x20]
xor esi, esi
mov edx, 0x105
mov word [rsp + 0x20], si
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov ebx, eax
call fcn.00402460
lea r11d, [rbx - 1]
cmp r11d, 0x103
setbe al
add rsp, 0x230
pop rdi
pop rsi
pop rbx
ret

Function at 0x404eb8
Capabilities:
Set file attributes

Disassembly:
test edx, 0xf0000000
je 0x404ec6
and edx, 0x3fff
jmp fcn.00404e10

Function at 0x404ecc
Capabilities:
Delete directory

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdi, rcx
call fcn.00408994
mov ebx, eax
cmp eax, 1
je 0x404efc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x404efc
mov al, 1
jmp 0x404f4d
test ebx, ebx
je 0x404f4b
lea rcx, [rsp + 0x28]
call fcn.0040229c
nop
cmp ebx, 1
setne r8b
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.00409010
test al, al
je 0x404f41
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
mov al, bl
jmp 0x404f4d
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
xor al, al
add rsp, 0x48
pop rdi
pop rbx
ret
Function at 0x404f74
Capabilities:
Move file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbp, rdx
mov r12, rcx
call fcn.00408994
mov esi, eax
mov rcx, rbp
call fcn.00408994
mov edi, eax
mov ebx, 1
cmp esi, ebx
je 0x404fc3
cmp eax, ebx
je 0x404fc3
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x404fc3
mov al, bl
jmp 0x405051
test esi, esi
jne 0x404fcf
test edi, edi
je 0x40504f
lea rcx, [rsp + 0x48]
call fcn.0040229c
nop
lea rcx, [rsp + 0x38]
call fcn.0040229c
nop
cmp esi, ebx
je 0x404fed
cmp edi, ebx
jne 0x404fef
xor bl, bl
mov byte [rsp + 0x20], bl
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x48]
mov rdx, rbp
mov rcx, r12
call fcn.00409050
test al, al
je 0x40503a
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_free
mov al, bl
jmp 0x405051
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_free
xor al, al
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x4051f4
Capabilities:
Create directory

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdi, rcx
call fcn.00408994
mov ebx, eax
cmp eax, 1
je 0x405233
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405226
mov al, 1
jmp 0x405286
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405284
test ebx, ebx
je 0x405284
lea rcx, [rsp + 0x28]
call fcn.0040229c
nop
cmp ebx, 1
setne r8b
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.00409010
test al, al
je 0x40527a
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
mov al, bl
jmp 0x405286
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
xor al, al
add rsp, 0x48
pop rdi
pop rbx
ret

Function at 0x4052ac
Capabilities:
Delete file

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
call fcn.00406328
cmp eax, 0xffffffff
je 0x4052e2
test al, 0x10
jne 0x4052e2
test al, 1
je 0x4052e2
and eax, 0xfffffffe
mov edx, eax
mov rcx, rbx
call fcn.00404e10
test al, al
je 0x405353
mov rcx, rbx
call fcn.00408994
mov edi, eax
cmp eax, 1
je 0x405302
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405302
mov al, 1
jmp 0x405353
test edi, edi
je 0x405351
lea rcx, [rsp + 0x28]
call fcn.0040229c
nop
cmp edi, 1
setne r8b
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.00409010
test al, al
je 0x405347
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
mov al, bl
jmp 0x405353
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
xor al, al
add rsp, 0x48
pop rdi
pop rbx
ret