joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411730
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.00411720
mov ebx, eax
test ebx, ebx
je 0x411779
cmp dword [0x00441d1c], 0xffffffff
jne 0x411753
mov ecx, 0xe2
call fcn.004091f0
mov ecx, ebx
call fcn.00411700
test rax, rax
jne 0x41176b
mov ecx, 0xe2
call fcn.004091f0
jmp 0x411779
mov ecx, dword [0x00441d1c]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x411780
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x0044b268], 0
je 0x4117bb
mov ecx, dword [0x00441d1c]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x4117ce
call fcn.00411730
mov ecx, dword [0x00441d1c]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x4117ce
mov rax, qword [0x0044b2a0]
jmp 0x4117ce
mov rax, qword gs:[0x58]
mov ecx, dword [0x00441d1c]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov rbx, rcx
mov esi, edx
mov rcx, rbx
call fcn.0040aac0
mov rdi, rax
mov rcx, rdi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41f257
mov ecx, eax
test ecx, 0x400
je 0x41f24c
test sil, sil
jne 0x41f1ef
mov al, 1
jmp 0x41f280
test eax, 0x10
je 0x41f1fe
xor eax, eax
jmp 0x41f280
mov rcx, rdi
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x41f23f
mov rcx, rax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x41f280
call sub.kernel32.dll_GetLastError
cmp eax, 0x20
sete al
jmp 0x41f280
test eax, 0x10
sete al
jmp 0x41f280
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x41f27a
cmp eax, 3
je 0x41f27a
cmp eax, 0x7b
je 0x41f27a
mov rcx, rbp
mov rdx, rbx
call fcn.0041f160
test al, al
jne 0x41f27e
xor eax, eax
jmp 0x41f280
mov al, 1
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret

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

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x38
mov ebx, edx
xor esi, esi
call fcn.0040aac0
mov r13, rax
mov rcx, r13
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
cmp edi, 0xffffffff
je 0x41f371
mov eax, edi
test eax, 0x400
jne 0x41f2d2
test edi, 0x10
setne sil
jmp 0x41f371
test bl, bl
je 0x41f31f
mov rcx, r13
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x2000000
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x41f371
mov rcx, rax
call sub.kernel32.dll_CloseHandle
test edi, 0x10
setne sil
jmp 0x41f371
test edi, 0x10
je 0x41f32c
mov sil, 1
jmp 0x41f371
mov rcx, r13
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x2000000
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x41f36e
mov rcx, rax
call sub.kernel32.dll_CloseHandle
xor esi, esi
jmp 0x41f371
mov sil, 1
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r13
ret
Function at 0x41f4e0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, rbx
call fcn.0040aac0
mov r13, rax
mov rcx, r13
call sub.kernel32.dll_DeleteFileW
test eax, eax
setne sil
test sil, sil
jne 0x41f54f
call sub.kernel32.dll_GetLastError
mov edi, eax
mov rcx, r13
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41f548
mov ecx, eax
test ecx, 0x400
je 0x41f548
test eax, 0x10
je 0x41f548
mov rcx, rbx
call fcn.0040aac0
mov rcx, rax
call sub.kernel32.dll_RemoveDirectoryW
test eax, eax
setne sil
jmp 0x41f54f
mov ecx, edi
call sub.kernel32.dll_SetLastError
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x4219e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov rbx, rcx
movsd qword [rbp + 0x58], xmm1
movzx eax, word [rbp + 0x5e]
shr eax, 4
mov dword [rbp + 0x2c], eax
mov rax, qword [rbx + 0x30]
mov ecx, dword [rbp + 0x2c]
and ecx, 0x800
cmp ecx, 0x800
sete cl
mov byte [rax + 2], cl
and dword [rbp + 0x2c], 0x7ff
cmp dword [rbp + 0x2c], 0
jne 0x421a60
movzx rax, word [rbp + 0x5e]
test ax, 0xf
jne 0x421a60
cmp word [rbp + 0x5c], 0
jne 0x421a60
cmp word [rbp + 0x5a], 0
jne 0x421a60
cmp word [rbp + 0x58], 0
jne 0x421a60
mov rax, qword [rbx + 0x30]
mov word [rax], 0
mov rax, qword [rbx + 0x30]
mov byte [rax + 3], 0
mov rax, qword [rbx + 0x30]
mov byte [rax + 2], 0
jmp 0x421ccb
cmp dword [rbp + 0x2c], 0x7ff
jne 0x421ab3
movzx rax, word [rbp + 0x5e]
test ax, 0xf
jne 0x421a95
cmp word [rbp + 0x5c], 0
jne 0x421a95
cmp word [rbp + 0x5a], 0
jne 0x421a95
cmp word [rbp + 0x58], 0
jne 0x421a95
mov rax, qword [rbx + 0x30]
mov word [rax], 0x7ff
jmp 0x421aa6
mov rax, qword [rbx + 0x30]
mov word [rax], 0x800
mov rax, qword [rbx + 0x30]
mov byte [rax + 2], 0
mov rax, qword [rbx + 0x30]
mov byte [rax + 3], 0
jmp 0x421ccb
mov rax, qword [rbx + 0x30]
cmp byte [rax + 2], 0
je 0x421acf
movsd xmm0, qword [rbp + 0x58]
xorpd xmm0, xmmword [0x00421ce0]
movsd qword [rbp + 0x58], xmm0
cmp dword [rbp + 0x2c], 0
jne 0x421af4
mov rax, qword [rbp + 0x58]
jmp 0x421ae2
sub dword [rbp + 0x2c], 1
add rax, rax
movabs rcx, 0x8000000000000
mov rdx, rax
test rcx, rdx
je 0x421adb
sub dword [rbp + 0x2c], 0x3ff
mov eax, dword [rbp + 0x2c]
imul eax, eax, 0x4d10
mov dword [rbp + 0x2c], eax
movsx rax, word [rbp + 0x2e]
mov dword [rbp + 0x2c], eax
add dword [rbp + 0x2c], 1
mov rax, qword [rbx + 0x30]
movzx rcx, word [rbp + 0x2c]
mov word [rax], cx
movsd xmm0, qword [rbp + 0x58]
pop rax
Function at 0x424180
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.00423f40
mov ebx, eax
mov rax, qword [0x00444c40]
cmp byte [rax], 0
je 0x4242af
mov rcx, qword [0x00444a50]
call fcn.004063e0
call fcn.00405cc0
mov ecx, 1
xor edx, edx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00424140]
mov r8d, 1
movsxd r9, esi
call fcn.0040d720
mov ecx, 1
xor edx, edx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x0042433c]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x4242f2
mov rcx, qword [0x0044b270]
call fcn.0040dc80
mov rcx, rax
mov rax, qword [0x00444a08]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW
xor ecx, ecx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00424140]
call fcn.0040d8f0
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret
Function at 0x425860
Capabilities:
Get file version info

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov qword [rbp + 0x98], r9
nop
mov byte [rbp + 0x67], 0
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x80]
call fcn.00409b80
lea rcx, [rbp + 0x58]
call fcn.00409df0
mov rcx, qword [rbp + 0x58]
call fcn.0040aac0
mov rcx, rax
lea rdx, [rbp + 0x50]
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [rbp + 0x54], eax
cmp dword [rbp + 0x54], 0
je 0x425970
mov ecx, dword [rbp + 0x54]
call fcn.00405980
mov qword [rbp + 0x68], rax
nop
mov rcx, qword [rbp + 0x58]
call fcn.0040aac0
mov rcx, rax
mov edx, dword [rbp + 0x50]
mov r8d, dword [rbp + 0x54]
mov r9, qword [rbp + 0x68]
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x425966
mov rcx, qword [rbp + 0x68]
lea rdx, [0x004259c8]
lea r8, [rbp + 0x48]
lea r9, [rbp + 0x44]
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x425966
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x10]
mov dword [rbp + 0x40], eax
mov rax, qword [rbp + 0x88]
mov ecx, dword [rbp + 0x40]
shr ecx, 0x10
movzx ecx, cx
mov dword [rax], ecx
mov rax, qword [rbp + 0x90]
mov rcx, qword [rbp + 0x48]
movzx ecx, word [rcx + 0x10]
mov dword [rax], ecx
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x14]
mov dword [rbp + 0x3c], eax
mov rax, qword [rbp + 0x98]
mov ecx, dword [rbp + 0x3c]
shr ecx, 0x10
movzx ecx, cx
mov dword [rax], ecx
mov byte [rbp + 0x67], 1
nop
mov rcx, qword [rbp + 0x68]
call fcn.004059b0
nop
lea rcx, [rbp + 0x58]
call fcn.004094b0
movzx rax, byte [rbp + 0x67]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x4269e0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.00409cd0
mov r13d, eax
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.00411420
mov esi, eax
cmp esi, 0x104
jbe 0x426a3b
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00405980
mov rdi, rax
jmp 0x426a3f
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.00411420
mov rcx, rdi
call sub.user32.dll_CharUpperW
xor ebx, ebx
xor ecx, ecx
mov edx, esi
sub edx, 1
mov eax, ecx
cmp eax, edx
jg 0x426a95
sub edx, ecx
add edx, 1
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movsxd rcx, eax
movzx ecx, word [rdi + rcx*2]
xor ebx, ecx
add eax, 1
sub edx, 1
test edx, edx
jne 0x426a76
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x426aa7
mov rcx, rdi
call fcn.004059b0
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x428d00
Capabilities:
Resolve dns

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rsi, rdx
mov rcx, rbx
call fcn.00409500
mov rcx, rsi
call fcn.0040a480
mov rcx, rax
call sub.wsock32.dll_gethostbyname
test rax, rax
je 0x428d56
mov rsi, qword [rax + 0x18]
xor edi, edi
jmp 0x428d4a
mov ecx, dword [rax]
call sub.wsock32.dll_inet_ntoa
mov rcx, rbx
mov rdx, rax
xor r8, r8
call fcn.00409ee0
add edi, 1
movsxd rax, edi
mov rax, qword [rsi + rax*8]
test rax, rax
jne 0x428d32
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x428d70
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x38], rcx
mov dword [rbp + 0x44], r8d
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x88], rdx
mov rcx, qword [rbp + 0x88]
call fcn.004096a0
nop
mov rcx, qword [rbp + 0x38]
xor edx, edx
call fcn.00428f30
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x88]
call fcn.00428d00
mov rcx, qword [rbp + 0x48]
call fcn.0040a480
mov rcx, qword [rbp + 0x38]
mov qword [rcx + 8], rax
test rax, rax
je 0x428ee2
cmp byte [rax], 0
je 0x428ee2
mov ecx, 2
mov edx, 1
mov r8d, 6
call sub.wsock32.dll_socket
mov rcx, qword [rbp + 0x38]
mov qword [rcx + 0x28], rax
mov word [rbp + 0x60], 2
mov ecx, dword [rbp + 0x44]
call sub.wsock32.dll_htons
mov word [rbp + 0x62], ax
mov rax, qword [rbp + 0x38]
mov rcx, qword [rax + 8]
call sub.wsock32.dll_inet_addr
mov dword [rbp + 0x64], eax
movsxd rax, eax
mov ecx, 0xffffffff
cmp rax, rcx
jne 0x428e48
mov rax, qword [rbp + 0x38]
mov rcx, qword [rax + 8]
call sub.wsock32.dll_gethostbyname
test rax, rax
je 0x428ee2
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov eax, dword [rax]
mov dword [rbp + 0x64], eax
mov rax, qword [rbp + 0x38]
mov rcx, qword [rax + 0x28]
lea rdx, [rbp + 0x60]
mov r8d, 0x10
call sub.wsock32.dll_connect
mov rax, qword [rbp + 0x38]
mov byte [rax + 0x1c], 1
mov dword [rbp + 0x5c], 1
mov dword [rbp + 0x58], 0x3a98
mov rax, qword [rbp + 0x38]
mov rcx, qword [rax + 0x28]
mov edx, 0xffff
mov r8d, 8
lea r9, [rbp + 0x5c]
mov dword [rsp + 0x20], 4
call sub.wsock32.dll_setsockopt
mov rax, qword [rbp + 0x38]
mov rcx, qword [rax + 0x28]
mov edx, 0xffff
mov r8d, 0x1006
lea r9, [rbp + 0x58]
mov dword [rsp + 0x20], 4
call sub.wsock32.dll_setsockopt
mov rax, qword [rbp + 0x38]
mov rcx, qword [rax + 0x28]
mov edx, 0xffff
mov r8d, 0x1005
lea r9, [rbp + 0x58]
mov dword [rsp + 0x20], 4
call sub.wsock32.dll_setsockopt
nop
lea rcx, [rbp + 0x48]
call fcn.00409500
lea rcx, [rbp + 0x88]
call fcn.00409500
lea rsp, [rbp + 0x70]
pop rbp
ret
Function at 0x4290d0
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov rbx, rcx
cmp r8d, 0xffffffff
jne 0x42910f
mov rcx, qword [rbx + 0x28]
mov edx, 0x4004667f
lea r8, [rbp + 0x2c]
call sub.wsock32.dll_ioctlsocket_1
cmp eax, 0xffffffff
jne 0x42914b
mov dword [rbp + 0x2c], 0xffffffff
mov rcx, rbx
mov edx, 1
call fcn.00428f30
jmp 0x42914b
mov rcx, qword [rbx + 0x28]
xor r9, r9
call sub.wsock32.dll_recv
mov dword [rbp + 0x2c], eax
cmp dword [rbp + 0x2c], 0xffffffff
jne 0x42914b
call sub.wsock32.dll_WSAGetLastError
mov dword [rbp + 0x2c], eax
cmp dword [rbp + 0x2c], 0x2733
jne 0x42913e
mov dword [rbp + 0x2c], 0
jmp 0x42914b
mov rcx, rbx
mov edx, 3
call fcn.00428f30
mov eax, dword [rbp + 0x2c]
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret

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

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rbx + 0x28]
xor r9, r9
call sub.wsock32.dll_send
mov esi, eax
cmp esi, 0xffffffff
jne 0x4291fb
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4291ee
or esi, 0xffffffff
jmp 0x4291fb
mov rcx, rbx
mov edx, 4
call fcn.00428f30
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x42a3e0
Capabilities:
Terminate process

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x2a0
mov rbp, rsp
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x2c0], rcx
mov rcx, qword [rbp + 0x2c0]
call fcn.00409680
nop
xor eax, eax
mov dword [rbp + 0x24], eax
mov ecx, 2
xor edx, edx
call fcn.00429740
mov rbx, rax
mov dword [rbp + 0x68], 0x238
mov rcx, rbx
lea rdx, [rbp + 0x68]
call fcn.00429770
jmp 0x42a52d
lea rcx, [rbp + 0x48]
lea rdx, [rbp + 0x94]
mov r8d, 0x104
call fcn.0040ab60
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x48]
call fcn.0041f5d0
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x50]
call fcn.0041e510
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0x2c0]
call fcn.0041e510
mov rcx, qword [rbp + 0x58]
mov rdx, qword [rbp + 0x40]
call fcn.0040b040
mov esi, eax
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x94]
mov r8d, 0x104
call fcn.0040ab60
lea rcx, [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
call fcn.0041e510
lea rcx, [rbp + 0x28]
mov rdx, qword [rbp + 0x2c0]
call fcn.0041e510
mov rcx, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x28]
call fcn.0040b040
test esi, esi
sete cl
test eax, eax
sete al
or cl, al
test cl, cl
je 0x42a521
mov ecx, 1
xor edx, edx
mov r8d, dword [rbp + 0x70]
call sub.kernel32.dll_OpenProcess
mov rcx, rax
xor edx, edx
call sub.kernel32.dll_TerminateProcess
mov dword [rbp + 0x24], eax
mov rcx, rbx
lea rdx, [rbp + 0x68]
call fcn.004297a0
test eax, eax
jne 0x42a465
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
nop
lea rcx, [rbp + 0x28]
mov edx, 7
call fcn.00409590
lea rcx, [rbp + 0x2c0]
call fcn.004094b0
mov eax, dword [rbp + 0x24]
lea rsp, [rbp + 0x2a0]
pop rbx
pop rsi
pop rbp
ret
Function at 0x42a5e0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, rbx
mov edx, 0x104
call fcn.0040ac80
mov rcx, rbx
call fcn.00409dd0
mov rcx, rax
mov edx, 0x104
call sub.kernel32.dll_GetWindowsDirectoryW
mov rcx, rbx
mov edx, eax
call fcn.0040ac80
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x42a620
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x58], rdx
mov qword [rbp + 0x60], r8
mov rcx, qword [rbp + 0x58]
call fcn.00409680
mov rcx, qword [rbp + 0x60]
call fcn.00409680
nop
mov rcx, qword [rbp + 0x28]
call fcn.00409500
mov rcx, qword [rbp + 0x58]
call fcn.0040aac0
mov rbx, rax
mov rcx, qword [rbp + 0x60]
call fcn.0040aac0
mov rcx, qword [0x0044b270]
mov rdx, rbx
mov r8, rax
call sub.kernel32.dll_FindResourceW
mov rbx, rax
test rbx, rbx
je 0x42a6df
mov rcx, qword [0x0044b270]
mov rdx, rbx
call sub.kernel32.dll_SizeofResource
mov esi, eax
test esi, esi
je 0x42a6df
mov rcx, qword [0x0044b270]
mov rdx, rbx
call sub.kernel32.dll_LoadResource
mov rbx, rax
test rbx, rbx
je 0x42a6df
mov rcx, rbx
call sub.kernel32.dll_LockResource
test rax, rax
je 0x42a6df
mov rcx, qword [rbp + 0x28]
mov rdx, rax
xor r8, r8
call fcn.00409ee0
mov rcx, qword [rbp + 0x28]
mov edx, esi
xor r8, r8
call fcn.0040a520
mov rcx, rbx
call sub.kernel32.dll_FreeResource
nop
lea rcx, [rbp + 0x58]
mov edx, 2
call fcn.00409590
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x30]
pop rbx
pop rsi
pop rbp
ret
Function at 0x42a9d0
Capabilities:
Get graphical window text

Disassembly:
push rbp
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
nop
mov rcx, qword [rbp + 0x20]
mov rdx, qword [0x00429c70]
call fcn.0040d8f0
xor ebx, ebx
call sub.user32.dll_GetForegroundWindow
mov r13, rax
mov rcx, r13
xor edx, edx
call sub.user32.dll_GetWindow
mov rdi, rax
jmp 0x42abcf
mov rcx, rdi
call sub.user32.dll_GetWindowTextLengthW
mov esi, eax
add esi, 1
lea rcx, [rbp + 0x58]
mov edx, esi
call fcn.0040ac80
mov rcx, qword [rbp + 0x58]
call fcn.0040aac0
mov rcx, rdi
mov rdx, rax
mov r8d, esi
call sub.user32.dll_GetWindowTextW
mov esi, eax
test esi, esi
jle 0x42abbf
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x58]
call fcn.0041e810
mov rcx, rdi
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42abbf
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
test rax, rax
je 0x42aaa6
mov rax, qword [rax - 8]
mov rcx, qword [rbp + 0x20]
mov rdx, qword [0x00429c70]
mov r8d, 1
lea r9, [rax + 1]
call fcn.0040d720
movsxd rsi, ebx
lea rcx, [rbp + 0x38]
mov rdx, qword [rbp + 0x50]
call fcn.0042a840
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
mov rcx, rsi
imul rcx, rcx, 0x15
lea rcx, [rax + rcx]
mov rdx, qword [rbp + 0x38]
call fcn.00409b00
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
mov rcx, rsi
imul rcx, rcx, 0x15
mov dword [rax + rcx + 0x10], edi
lea rcx, [rbp + 0x48]
mov edx, 0x80
xor r8, r8
call fcn.0040a520
xor r14, r14
mov rax, qword [rbp + 0x48]
test rax, rax
je 0x42ab1e
mov r14d, dword [rax - 4]
mov rcx, qword [rbp + 0x48]
call fcn.0040a480
mov rcx, rdi
mov rdx, rax
mov r8d, r14d
call sub.user32.dll_GetClassNameA
test eax, eax
jle 0x42ab74
lea rcx, [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040aba0
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x28]
call fcn.0042a840
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
mov rcx, rsi
imul rcx, rcx, 0x15
lea rcx, [rax + rcx + 8]
mov rdx, qword [rbp + 0x30]
xor r8, r8
call fcn.0040a5e0
jmp 0x42ab8c
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
mov rcx, rsi
imul rcx, rcx, 0x15
lea rcx, [rax + rcx + 8]
call fcn.00409500
lea rcx, [rbp + 0x48]
call fcn.00409500
cmp rdi, r13
jne 0x42abac
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
imul rsi, rsi, 0x15
mov byte [rax + rsi + 0x14], 1
jmp 0x42abbc
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
imul rsi, rsi, 0x15
mov byte [rax + rsi + 0x14], 0
add ebx, 1
mov rcx, rdi
mov edx, 2
call sub.user32.dll_GetWindow
mov rdi, rax
test rdi, rdi
ja 0x42aa40
nop
lea rcx, [rbp + 0x28]
mov edx, 3
call fcn.00409590
lea rcx, [rbp + 0x48]
call fcn.00409500
lea rcx, [rbp + 0x50]
mov edx, 2
call fcn.00409590
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x68]
pop rbx
pop rsi
pop rdi
pop r13
pop r14
pop rbp
ret
Function at 0x42ac50
Capabilities:
Delete file

Disassembly:
push rbp
sub rsp, 0x270
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x280], rcx
mov rcx, qword [rbp + 0x280]
call fcn.00409680
nop
nop
lea rcx, [rbp + 0x230]
mov edx, 0x38
xor r8, r8
call fcn.00406470
lea rcx, [rbp + 0x30]
mov edx, 0x200
xor r8, r8
call fcn.00406470
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x280]
call fcn.0041f750
mov qword [rbp + 0x230], 0
lea rax, [rbp + 0x30]
mov qword [rbp + 0x240], rax
mov dword [rbp + 0x238], 3
lea rax, [rbp + 0x250]
or word [rax], 0x10
lea rax, [rbp + 0x250]
or word [rax], 4
lea rcx, [rbp + 0x230]
call sub.shell32.dll_SHFileOperationW
test eax, eax
sete al
mov byte [rbp + 0x26f], al
jmp 0x42ad07
nop
lea rcx, [rbp + 0x280]
call fcn.004094b0
movzx rax, byte [rbp + 0x26f]
lea rsp, [rbp + 0x270]
pop rbp
ret

Function at 0x42b200
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x68
mov rbp, rsp
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], rdx
mov rcx, qword [rbp + 0x80]
call fcn.00409680
mov rcx, qword [rbp + 0x88]
call fcn.0040d9c0
nop
mov rcx, qword [rbp + 0x80]
call fcn.0040aac0
mov rcx, rax
mov edx, 0x40000000
mov r8d, 2
xor r9, r9
mov dword [rsp + 0x20], 2
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
mov rbx, rax
cmp rbx, 0xffffffffffffffff
je 0x42b2ab
mov rax, qword [rbp + 0x88]
test rax, rax
je 0x42b284
mov rax, qword [rax - 8]
mov rcx, rbx
mov rdx, qword [rbp + 0x88]
mov r8d, eax
lea r9, [rbp + 0x5c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
nop
lea rcx, [rbp + 0x80]
call fcn.004094b0
lea rcx, [rbp + 0x88]
mov rdx, qword [0x004030d0]
call fcn.0040d8f0
movzx rax, byte [rbp + 0x4f]
lea rsp, [rbp + 0x68]
pop rbx
pop rbp
ret

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

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x40], rdx
mov qword [rbp + 0x80], rcx
mov rcx, qword [rbp + 0x80]
call fcn.00409680
nop
xor eax, eax
mov byte [rbp + 0x4f], al
mov rcx, qword [rbp + 0x40]
mov rdx, qword [0x004030d0]
call fcn.0040d8f0
mov rcx, qword [rbp + 0x80]
call fcn.0040aac0
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x8000000
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
mov rbx, rax
test rbx, rbx
je 0x42b403
mov rcx, rbx
xor edx, edx
call sub.kernel32.dll_GetFileSize
mov esi, eax
test esi, esi
je 0x42b403
mov rcx, rbx
xor edx, edx
xor r8, r8
xor r9, r9
call sub.kernel32.dll_SetFilePointer
mov rcx, qword [rbp + 0x40]
mov rdx, qword [0x004030d0]
mov r8d, 1
mov r9d, esi
call fcn.0040d720
mov rcx, rbx
mov rax, qword [rbp + 0x40]
mov rdx, qword [rax]
mov r8d, esi
lea r9, [rbp + 0x5c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x42b3fb
mov al, 1
mov byte [rbp + 0x4f], al
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
nop
lea rcx, [rbp + 0x80]
call fcn.004094b0
movzx rax, byte [rbp + 0x4f]
lea rsp, [rbp + 0x60]
pop rbx
pop rsi
pop rbp
ret