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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
call fcn.14054a42c
xor ebp, ebp
xor r9d, r9d
mov r8d, ebx
mov dword [rax], ebp
mov rax, qword [rdi + 0x380]
mov rcx, qword [rdi + 0x3f8]
test rax, rax
je 0x1403a83e1
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], reloc.WS2_32.dll_recv
mov qword [rsp + 0x28], rdx
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
jmp 0x1403a83ea
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
test ebx, ebx
js 0x1403a8405
jne 0x1403a8401
mov eax, 0xffffffff
jmp 0x1403a8429
mov eax, ebx
jmp 0x1403a8429
cmp edx, 0x2733
je 0x1403a8424
mov eax, 0xffffffff
cmp edx, 0x2714
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, ecx
jmp 0x1403a8429
mov eax, 0xfffffffc
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x380], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x1403a84ab
call fcn.1403a6720
mov rdx, qword [rbx + 0x380]
xor r9d, r9d
mov rcx, qword [rbx + 0x3f8]
mov r8d, edi
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
test eax, eax
je 0x1403a849b
lea rax, [rdx + 0x10]
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
jmp 0x1403a84d5
mov qword [rsp + 0x20], rdx
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_sendto]
jmp 0x1403a84d5
mov rax, qword [rcx + 0x360]
test byte [rax + 0x2e], 1
je 0x1403a84c5
mov ecx, dword [rcx + 0x3f8]
call fcn.14055f2a0
jmp 0x1403a84d5
mov rcx, qword [rcx + 0x3f8]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1403a852e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1403a8515
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1403a8515
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x1403a8515
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1403a8529
or dword [rbx + 0x424], 0x40
mov eax, 0xfffffffc
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
movsx edx, byte [rcx + 0x435]
mov rcx, qword [rcx]
jmp fcn.1403b2a70
Function at 0x1403b0970
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x20
test byte [rdx + 0xc0], 4
mov rbx, rcx
jne 0x1403b09ab
mov edx, 0x5f
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x1403b09ab
mov r8d, 0x60
lea rdx, str.unknown
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1403ac950
add rsp, 0x20
pop rbx
ret
Function at 0x1403b2970
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsx rax, byte [rcx + 0x435]
mov esi, 2
imul rbx, rax, 0x138
xor r8d, r8d
mov edx, esi
add rbx, qword [rcx]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x2d8], rax
cmp rax, 0xffffffffffffffff
je 0x1403b2a40
xor r8d, r8d
mov edx, esi
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x2e0], rax
cmp rax, 0xffffffffffffffff
je 0x1403b2a40
mov ecx, 0x7f000001
mov word [rbx + 0x2a8], si
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbx + 0x2ac], eax
lea r8d, [rsi + 0xe]
xor eax, eax
lea rdx, [rbx + 0x2a8]
mov word [rbx + 0x2aa], ax
mov rcx, qword [rbx + 0x2d8]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x1403b2a40
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x30]
mov rcx, qword [rbx + 0x2d8]
lea rdx, [rbx + 0x2a8]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1403b2a40
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea r8, str.lws_plat_pipe_create
mov ecx, 1
lea rdx, str._s:_failed_n
call fcn.1403a8a00
mov rbx, qword [rsp + 0x38]
mov eax, 1
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
sub rsp, 0x38
movsxd rax, edx
xor r9d, r9d
imul rdx, rax, 0x138
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
lea r8d, [r9 + 1]
add rcx, rdx
mov byte [rsp + 0x48], 0
lea rdx, [rsp + 0x48]
lea rax, [rcx + 0x2a8]
mov rcx, qword [rcx + 0x2e0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
cmp eax, 1
setne cl
mov eax, ecx
add rsp, 0x38
ret

Function at 0x1403b2b40
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1c8
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1403b2b63
add rsp, 0x1c8
ret
mov r8d, eax
lea rdx, str.WSAStartup_failed_with_error:__d_n
mov ecx, 1
call fcn.1403a8a00
mov eax, 1
add rsp, 0x1c8
ret
Function at 0x1403bf730
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
mov r15d, dword [rsp + 0x38]
xor ebp, ebp
mov r11, rdx
mov r14, rcx
test r8d, r8d
je 0x1403bf830
lea esi, [rbp + 4]
xor r10d, r10d
test r8d, r8d
je 0x1403bf79c
movzx edi, byte [r11]
mov r10d, 1
inc r11
sub r8d, r10d
je 0x1403bf79f
movzx ecx, byte [r11]
inc r10d
inc r11
mov rdx, r11
sub r8d, 1
je 0x1403bf7a1
movzx edx, byte [rdx]
inc r11
inc r10d
dec r8d
jmp 0x1403bf7a3
xor dil, dil
xor cl, cl
xor dl, dl
cmp esi, r15d
jge 0x1403bf838
movzx ebx, cl
movzx ecx, dil
and ecx, 3
movzx eax, dil
shr rax, 2
shl ecx, 4
movzx eax, byte [rax + r14]
mov byte [r9], al
mov eax, ebx
shr rax, 4
or rcx, rax
movzx eax, byte [rcx + r14]
mov byte [r9 + 1], al
cmp r10d, 1
jbe 0x1403bf810
and ebx, 0xf
movzx eax, dl
shr rax, 6
shl ebx, 2
mov ecx, ebx
or rcx, rax
movzx eax, byte [rcx + r14]
mov byte [r9 + 2], al
add r9, 3
cmp r10d, 2
jbe 0x1403bf819
and edx, 0x3f
movzx eax, byte [rdx + r14]
jmp 0x1403bf81b
mov byte [r9 + 2], 0x3d
add r9, 3
mov al, 0x3d
mov byte [r9], al
add ebp, 4
inc r9
add esi, 4
test r8d, r8d
jne 0x1403bf761
lea eax, [rbp + 1]
cmp eax, r15d
jl 0x1403bf83f
mov eax, 0xffffffff
jmp 0x1403bf845
mov byte [r9], 0
mov eax, ebp
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret
Function at 0x1403c1d20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r15
sub rsp, 0x30
mov r9, qword [rcx + 0x10]
xor r10d, r10d
mov rax, qword [rdx]
mov rdi, r8
mov r15, rdx
mov rbx, rcx
mov ebp, r10d
mov r8, qword [r9 + 0x18]
test r8, r8
jne 0x1403c1d5b
mov rcx, qword [rcx]
mov r8d, dword [rcx + 0x7ec]
mov rsi, qword [rbx + 0xd0]
mov ecx, r8d
mov rdx, qword [rsi + 0x130]
cmp rcx, rdx
cmovbe edx, r8d
mov ecx, edx
cmp rcx, rdi
cmovbe edi, edx
test edi, edi
jne 0x1403c1d86
xor eax, eax
jmp 0x1403c1f49
test byte [rsi + 0x124], 4
mov qword [rsp + 0x58], r14
mov r14, rax
jne 0x1403c1e4d
movzx edx, byte [rsi + 0x141]
mov ecx, edx
and ecx, 3
movzx r8d, byte [rcx + rsi + 0x128]
lea rcx, [rdx + 1]
and ecx, 3
mov byte [rsp + 0x50], r8b
movzx r9d, byte [rcx + rsi + 0x128]
lea rcx, [rdx - 2]
and ecx, 3
mov byte [rsp + 0x51], r9b
movzx r11d, byte [rcx + rsi + 0x128]
lea rcx, [rdx - 1]
and ecx, 3
mov byte [rsp + 0x52], r11b
movzx edx, byte [rcx + rsi + 0x128]
mov ecx, edi
shr ecx, 2
mov byte [rsp + 0x53], dl
test ecx, ecx
je 0x1403c1e17
nop dword [rax + rax]
xor byte [rax], r8b
xor byte [rax + 1], r9b
xor byte [rax + 2], r11b
xor byte [rax + 3], dl
add rax, 4
sub ecx, 1
jne 0x1403c1e00
mov edx, edi
and edx, 3
je 0x1403c1e34
mov ebp, edx
movzx ecx, byte [rsp + r10 + 0x50]
inc r10
xor byte [rax], cl
lea rax, [rax + 1]
cmp r10, rdx
jl 0x1403c1e20
mov rcx, qword [rbx + 0xd0]
movzx eax, dil
add al, byte [rcx + 0x141]
and al, 3
mov byte [rcx + 0x141], al
mov esi, edi
add qword [r15], rsi
mov rax, qword [rbx + 0xd0]
sub qword [rax + 0x130], rsi
mov rcx, qword [rbx + 0xd0]
mov eax, dword [rcx + 0x124]
bt eax, 0xa
jae 0x1403c1ef8
bt eax, 0xb
jb 0x1403c1ef8
add rcx, 0x146
mov r8d, esi
mov rdx, r14
call fcn.1403ad380
test eax, eax
je 0x1403c1ea2
lea r8, str.bad_utf8
mov r9d, 8
jmp 0x1403c1ed4
mov rax, qword [rbx + 0xd0]
cmp qword [rax + 0x130], 0
jne 0x1403c1ef8
test byte [rax + 0x124], 1
je 0x1403c1ef8
cmp byte [rax + 0x146], 0
je 0x1403c1ef8
test ebp, ebp
jne 0x1403c1ef8
lea r8, str.partial_utf8
lea r9d, [rbp + 0xc]
mov edx, 0x3ef
mov rcx, rbx
call fcn.1403bcb30
movsxd r8, edi
mov rdx, r14
mov ecx, 8
call fcn.1403a8a80
mov eax, 0xffffffff
jmp 0x1403c1f44
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1403c1f31
cmp dword [rbx + 0x404], 0
jne 0x1403c1f31
mov r9, qword [rbx + 0x3d8]
mov r8d, 6
mov qword [rsp + 0x28], rsi
mov rdx, rbx
mov qword [rsp + 0x20], r14
call fcn.1403a6630
test eax, eax
jne 0x1403c1ef1
mov rax, qword [rbx + 0xd0]
and dword [rax + 0x124], 0xffffbfff
mov eax, edi
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret
Function at 0x1403c5a70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1403c5ae7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1403c5ae7
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1403c5ad4
cmp rbx, rcx
jae 0x1403c5ae7
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1403c5abf
cmp rbx, rcx
jae 0x1403c5ae7
movzx eax, word [rbx]
neg ax
sbb rax, rax
and rax, rbx
jmp 0x1403c5ae9
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1403c7000
Capabilities:
Hash data using sha1

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rbp
push r14
push r15
lea rbp, [r11 - 0x5f]
sub rsp, 0xa0
xorps xmm0, xmm0
mov dword [rbp - 0x29], 0x67452301
xor eax, eax
mov dword [rbp - 0x25], 0xefcdab89
xor ebx, ebx
mov dword [rbp + 0x3b], eax
mov dword [rbp - 0x21], 0x98badcfe
mov r15, r8
mov dword [rbp - 0x1d], 0x10325476
mov rsi, rdx
mov dword [rbp - 0x19], 0xc3d2e1f0
mov r14, rcx
movups xmmword [rbp - 0x15], xmm0
movups xmmword [rbp - 5], xmm0
movups xmmword [rbp + 0xb], xmm0
movups xmmword [rbp + 0x1b], xmm0
movups xmmword [rbp + 0x2b], xmm0
test rdx, rdx
je 0x1403c70d6
mov qword [r11 + 8], rdi
nop
movzx ecx, byte [rbp + 0x37]
lea rdx, [rbx + r14]
and ecx, 0x3f
mov edi, 0x40
sub rdi, rcx
mov rax, rsi
sub rax, rbx
cmp rdi, rax
cmovae rdi, rax
lea rax, [rbp - 9]
add rcx, rax
mov r8, rdi
call fcn.1405750e0
mov rax, qword [rbp - 0x11]
movzx edx, dil
add dl, byte [rbp + 0x37]
and dl, 0x3f
mov byte [rbp + 0x37], dl
lea rcx, [rax + rdi*8]
mov qword [rbp - 0x11], rcx
test dl, 0x3f
jne 0x1403c70c6
lea rcx, [rbp - 0x29]
call fcn.1403c71a0
add rbx, rdi
cmp rbx, rsi
jb 0x1403c7070
mov rdi, qword [rsp + 0xc0]
lea rcx, [rbp - 0x29]
call fcn.1403c8620
movzx eax, byte [rbp - 0x1d]
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov byte [rbp - 0x2a], al
movzx eax, byte [rbp - 0x1c]
mov byte [rbp - 0x2b], al
movzx eax, byte [rbp - 0x1b]
mov byte [rbp - 0x2c], al
movzx eax, byte [rbp - 0x1a]
mov byte [rbp - 0x2d], al
movzx eax, byte [rbp - 0x21]
mov byte [rbp - 0x2e], al
movzx eax, byte [rbp - 0x20]
mov byte [rbp - 0x2f], al
movzx eax, byte [rbp - 0x1f]
mov byte [rbp - 0x30], al
movzx eax, byte [rbp - 0x1e]
mov byte [rbp - 0x31], al
movzx eax, byte [rbp - 0x25]
mov byte [rbp - 0x32], al
movzx eax, byte [rbp - 0x24]
mov byte [rbp - 0x33], al
movzx eax, byte [rbp - 0x23]
mov byte [rbp - 0x34], al
movzx eax, byte [rbp - 0x22]
mov byte [rbp - 0x35], al
movzx eax, byte [rbp - 0x29]
mov byte [rbp - 0x36], al
movzx eax, byte [rbp - 0x28]
mov byte [rbp - 0x37], al
movzx eax, byte [rbp - 0x27]
mov byte [rbp - 0x38], al
movzx eax, byte [rbp - 0x26]
mov byte [rbp - 0x39], al
movzx eax, byte [rbp - 0x16]
movdqa xmm0, xmmword [rbp - 0x39]
mov byte [r15 + 0x10], al
movzx eax, byte [rbp - 0x17]
mov byte [r15 + 0x11], al
movzx eax, byte [rbp - 0x18]
mov byte [r15 + 0x12], al
movzx eax, byte [rbp - 0x19]
mov byte [r15 + 0x13], al
mov rax, r15
movdqu xmmword [r15], xmm0
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1403c9654
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1403c969e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1403c969e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1403c969e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1403c969e
cmp dword [rcx + 0x84], 0xe
jbe 0x1403c969e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1403c96a0
xor al, al
add rsp, 0x28
ret
Function at 0x1403cb998
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x1403cb9ff
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1403cba13
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1403cba13
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call qword [case.0x1403f0ab6.0]
jmp 0x1403cba18
cmp dword [rcx + 8], 0
je 0x1403cba13
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x1403cba18
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1403cec88
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1403cecae
mov r8, rdx
mov rdx, qword [rbx]
call fcn.1403cb998
jmp 0x1403ced1a
cmp byte [0x140610db0], 0
jne 0x1403cecf2
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1403cece2
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140610da8], rax
jmp 0x1403cece9
mov rax, qword [0x140610da8]
mov byte [0x140610db0], 1
jmp 0x1403cecf9
mov rax, qword [0x140610da8]
mov rdx, rdi
mov rcx, qword [rbx]
test rax, rax
je 0x1403ced13
xor r9d, r9d
mov r8d, dword [rbx + 8]
call qword [case.0x1403f0ab6.0]
jmp 0x1403ced1a
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1403cf6c8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, [rsp + 0x34]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x30], eax
cmp eax, 0xffffffff
jne 0x1403cf6f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1403cf6fe
mov rax, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 0x18]
call fcn.1403a61a0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.1403db630
int3

Function at 0x1403cf71c
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test r8d, r8d
jne 0x1403cf72e
xor eax, eax
jmp 0x1403cf74b
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1403cf751
mov eax, dword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
lea rcx, [rbx + 0x18]
call fcn.1403a61a0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.1403db630
int3
Function at 0x1403cf770
Capabilities:
Write file on windows

Disassembly:
test r8d, r8d
je 0x1403cf7ae
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov rdi, rcx
mov ebx, r8d
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1403cf7af
cmp dword [rsp + 0x50], ebx
jne 0x1403cf7cc
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rcx, [rdi + 0x18]
call fcn.1403a61a0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.1403db630
int3
lea rcx, [rdi + 0x18]
call fcn.1403a61a0
or edx, 0xffffffff
mov r8, rax
lea ecx, [rdx + 0xe]
call fcn.1403db2f8
int3
Function at 0x1403d011c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x230
mov rax, qword [0x140609000]
xor rax, rsp
mov qword [rsp + 0x220], rax
xor ebp, ebp
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x1403d01d7
test rdx, rdx
je 0x1403d01d7
mov rcx, rdx
call fcn.1405655bc
xor edx, edx
mov word [rsp + 0x20], bp
mov r8d, 0x1fe
lea rcx, [rsp + 0x22]
mov rsi, rax
call fcn.140575780
mov r8d, 0x100
cmp rsi, r8
ja 0x1403d01a8
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jne 0x1403d01a8
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1403d01b4
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1403a4260
mov rbx, qword [rsp + 0x260]
add rsp, 0x230
pop rdi
pop rsi
pop rbp
ret
call fcn.1403c578c
int3

Function at 0x1403d0d54
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x78
test rdx, rdx
je 0x1403d0dbc
mov r10, qword [rcx + 0x10]
test r10, r10
je 0x1403d0da6
cmp qword [rcx + 0x18], 0
jne 0x1403d0da1
mov eax, dword [rcx + 0xc]
cmp eax, dword [rcx + 0x30]
jae 0x1403d0dc2
mov qword [rsp + 0x58], rdx
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0x50
mov edx, eax
mov dword [rsp + 0x24], 0x40
mov r8d, 1
mov rcx, qword [r10 + 8]
call qword [sym.imp.USER32.dll_SetMenuItemInfoW]
add rsp, 0x78
ret
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x1403d0dbc
mov rcx, qword [rcx + 0x40]
add rsp, 0x78
jmp fcn.1403d011c
call fcn.1403c578c
int3
call fcn.1403c578c
int3

Function at 0x1403d1a64
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x1403d1ac2
call fcn.1403ca370
mov r8d, 0xf0
mov rdx, rdi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1403d1ac2
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1403d1acd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov rdx, rbx
mov rcx, rsi
call fcn.1403df370
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1403d20f8
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 rsi, rcx
xor ebp, ebp
mov rcx, qword [rcx + 0xd0]
mov rbx, rdx
test rcx, rcx
jne 0x1403d21a7
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rdi, eax
test eax, eax
js 0x1403d21cc
mov rcx, qword [rbx]
lea r8d, [rbp + 1]
mov edx, dword [rcx - 0xc]
sub r8d, dword [rcx - 8]
sub edx, edi
or r8d, edx
jge 0x1403d2158
mov edx, edi
mov rcx, rbx
call fcn.1403c5f80
mov rdx, qword [rbx]
cmp edi, dword [rdx - 0xc]
jg 0x1403d21cc
mov dword [rdx - 0x10], edi
lea r8d, [rdi + 1]
mov rax, qword [rbx]
mov word [rax + rdi*2], bp
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1403d2184
mov eax, ebp
jmp 0x1403d2191
movsxd rdx, dword [rcx - 0xc]
call fcn.1405656e8
test eax, eax
js 0x1403d21cc
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x1403d21cc
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
jmp 0x1403d21b7
mov rax, qword [rcx]
mov rax, qword [rax + 0x118]
call qword [case.0x1403f0ab6.0]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.1403bdbc4
int3

Function at 0x1403d22bc
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 rbp, rcx
mov rbx, r8
mov rcx, qword [rcx + 0x40]
call fcn.1403d0468
mov rdi, rax
test rax, rax
je 0x1403d2338
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov esi, eax
test rbx, rbx
je 0x1403d2333
cmp dword [rbx], 0x40
jb 0x1403d2333
mov rcx, qword [rbp + 0x40]
xor r9d, r9d
or dword [rbx + 4], 1
xor r8d, r8d
or qword [rbx + 0x30], 0xffffffffffffffff
mov edx, 0x87
mov qword [rbx + 8], rcx
mov rcx, rdi
mov qword [rbx + 0x10], rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x1403d2333
or dword [rbx + 4], 0x80000002
mov rax, rsi
jmp 0x1403d233c
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1403d2354
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 rdi, rcx
mov rbx, r8
lea rcx, [0x1405d5af8]
mov esi, edx
call fcn.1405655bc
mov r8d, eax
lea rdx, [0x1405d5af8]
mov rcx, rbx
call fcn.1403c5d50
xor ebp, ebp
mov edx, esi
cmp qword [rdi + 0xc8], rbp
jne 0x1403d2436
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rsi, rax
test rax, rax
je 0x1403d244e
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rdi, eax
test eax, eax
js 0x1403d2469
mov rcx, qword [rbx]
lea r8d, [rbp + 1]
mov edx, dword [rcx - 0xc]
sub r8d, dword [rcx - 8]
sub edx, edi
or r8d, edx
jge 0x1403d23e8
mov edx, edi
mov rcx, rbx
call fcn.1403c5f80
mov rdx, qword [rbx]
cmp edi, dword [rdx - 0xc]
jg 0x1403d2469
mov dword [rdx - 0x10], edi
lea r8d, [rdi + 1]
mov rax, qword [rbx]
mov rcx, rsi
mov word [rax + rdi*2], bp
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1403d2413
mov eax, ebp
jmp 0x1403d2420
movsxd rdx, dword [rcx - 0xc]
call fcn.1405656e8
test eax, eax
js 0x1403d2469
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x1403d2469
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
jmp 0x1403d244e
mov rcx, rdi
call fcn.1403d9cd0
test rax, rax
je 0x1403d244e
mov rdx, rbx
mov rcx, rax
call fcn.1403d20f8
mov rax, qword [rbx]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, dword [rax - 0x10]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.1403bdbc4
int3

Function at 0x1403d6960
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x1403d6a19
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x1403d6a19
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1403d6a19
test rdi, rdi
je 0x1403d6a19
xor r14d, r14d
xor esi, esi
call fcn.1403ca370
lea r8, str.AFX_DIALOG_LAYOUT
mov rdx, rdi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1403d69f9
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rdi
mov rcx, rbp
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1403d6a19
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
mov r8d, r14d
mov rdx, rsi
mov rcx, rbx
call fcn.1403df904
mov edi, eax
test eax, eax
je 0x1403d6a15
mov rcx, rbx
call fcn.1403d67d0
mov eax, edi
jmp 0x1403d6a1b
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret