joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d81f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d92d0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d8bf2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fb108]
test eax, eax
je 0x2fc4d8c8a
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fb110]
mov qword [rbp - 8], rax
jmp 0x2fc4d8c6e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d8c62
cmp qword [rbp - 0x10], 0
je 0x2fc4d8c62
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d8c28
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d8c8b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d8d90
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d8db8
mov eax, 0
jmp 0x2fc4d8e06
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d8de1
mov eax, 0
jmp 0x2fc4d8e06
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d8e01
mov eax, 0
jmp 0x2fc4d8e06
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d8e0c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d8e8a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d8e81
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d8e81
mov rax, qword [rbp - 8]
jmp 0x2fc4d8e9f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d8e54
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc504d70
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc505772
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc52a108]
test eax, eax
je 0x2fc50580a
lea rax, [0x2fc52a0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc52a110]
mov qword [rbp - 8], rax
jmp 0x2fc5057ee
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc5057e2
cmp qword [rbp - 0x10], 0
je 0x2fc5057e2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc5057a8
lea rax, [0x2fc52a0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc50580b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc505910
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc505938
mov eax, 0
jmp 0x2fc505986
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc505961
mov eax, 0
jmp 0x2fc505986
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc505981
mov eax, 0
jmp 0x2fc505986
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc50598c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc505a0a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc505a01
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc505a01
mov rax, qword [rbp - 8]
jmp 0x2fc505a1f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc5059d4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001046
Capabilities:
Get common file path

Disassembly:
jmp 0x14005d200
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x270
mov rdi, rsp
mov ecx, 0x9c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x280]
mov rax, qword [0x1402840e8]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x20c
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x288]
call fcn.140004fac
mov qword [rsp + 0x258], rax
mov rcx, qword [rsp + 0x280]
call fcn.140004fac
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rcx, qword [rsp + 0x258]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov dword [rsp + 0x244], eax
cmp dword [rsp + 0x244], 0
jbe 0x14005d2ee
mov eax, 2
imul rax, rax, 0x105
mov qword [rsp + 0x250], rax
cmp qword [rsp + 0x250], 0x20c
jae 0x14005d2c4
jmp 0x14005d2c9
call fcn.140005038
xor eax, eax
mov rcx, qword [rsp + 0x250]
mov word [rsp + rcx + 0x30], ax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x290]
call fcn.140005731
mov al, 1
jmp 0x14005d2f0
xor al, al
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401f6da0]
call fcn.14000849f
mov rax, rdi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400030d0
add rsp, 0x270
pop rdi
ret

Function at 0x14000119f
Capabilities:
Hash data with md5

Disassembly:
jmp 0x140156740
mov qword [rsp + 8], rcx
mov eax, 0x28
call fcn.1400010a0
sub rsp, rax
mov r8d, 0x5c
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.140005614
mov rax, qword [rsp + 0x30]
mov dword [rax], 0x67452301
mov rax, qword [rsp + 0x30]
mov dword [rax + 4], 0xefcdab89
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], 0x98badcfe
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xc], 0x10325476
mov eax, 1
add rsp, 0x28
ret

Function at 0x140001212
Capabilities:
Check if file exists

Disassembly:
jmp 0x140062a60
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
cmp qword [rsp + 0x48], 0
jne 0x140062a8f
xor eax, eax
jmp 0x140062afa
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x140062ab0
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
je 0x140062ab4
xor eax, eax
jmp 0x140062afa
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140002a81
movzx eax, al
test eax, eax
jne 0x140062add
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140005a60
xor eax, eax
jmp 0x140062afa
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rsp, 0x30
pop rdi
ret
Function at 0x1400012d5
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400fa180
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.1400f92e0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400fa1b9
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call qword [section..00cfg]
mov ecx, dword [rsp + 0x40]
call qword [rsp + 0x28]
jmp 0x1400fa1c3
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x38
ret
Function at 0x14000140b
Capabilities:
Check mutex on windows

Disassembly:
jmp 0x14011dea0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x14011dee9
mov r8d, 0x28
lea rdx, [0x1402201f0]
lea rcx, [0x140220270]
call fcn.1400070db
xor eax, eax
mov rcx, qword [rsp + 0x40]
call fcn.140006d75
mov rcx, qword [rsp + 0x48]
call fcn.14000179e
movzx eax, al
test eax, eax
jne 0x14011df15
mov rcx, qword [rsp + 0x48]
call fcn.140004fac
mov qword [rsp + 0x20], rax
jmp 0x14011df1e
mov qword [rsp + 0x20], 0
mov r8, qword [rsp + 0x20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
jne 0x14011df5b
mov r8d, 0x2b
lea rdx, [0x140220290]
lea rcx, [0x140220310]
call fcn.1400070db
xor eax, eax
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x14011df7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14011df7c
mov rax, qword [rsp + 0x40]
mov byte [rax + 9], 1
mov rcx, qword [rsp + 0x40]
call fcn.140007a59
add rsp, 0x30
pop rdi
ret
Function at 0x140001843
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1400e4c90
mov rax, rcx
neg rcx
test rax, 7
je 0x1400e4cad
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1400e4d08
test al, 7
jne 0x1400e4ca0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1400e4cc1
mov rdx, qword [rax - 8]
test dl, dl
je 0x1400e4d32
test dh, dh
je 0x1400e4d2c
shr rdx, 0x10
test dl, dl
je 0x1400e4d26
test dh, dh
je 0x1400e4d20
shr rdx, 0x10
test dl, dl
je 0x1400e4d1a
test dh, dh
je 0x1400e4d14
shr edx, 0x10
test dl, dl
je 0x1400e4d0e
test dh, dh
jne 0x1400e4cc1
lea rax, [rcx + rax - 1]
ret
lea rax, [rcx + rax - 2]
ret
lea rax, [rcx + rax - 3]
ret
lea rax, [rcx + rax - 4]
ret
lea rax, [rcx + rax - 5]
ret
lea rax, [rcx + rax - 6]
ret
lea rax, [rcx + rax - 7]
ret
lea rax, [rcx + rax - 8]
ret

Function at 0x1400019f1
Capabilities:
Delete file

Disassembly:
jmp 0x14012a8a0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
mov rdi, rsp
mov ecx, 0x3c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x100]
mov qword [rsp + 0xe0], 0xfffffffffffffffe
mov rax, qword [0x1402840e8]
xor rax, rsp
mov qword [rsp + 0xe8], rax
mov r8, qword [rsp + 0x108]
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x100]
call fcn.140006cf3
nop
mov edx, 0x10
lea rcx, [rsp + 0x68]
call fcn.14000451b
lea rcx, [rsp + 0x68]
call fcn.1400061bd
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x68]
call fcn.140002b26
mov edx, 0x10
lea rcx, [rsp + 0x98]
call fcn.140004b10
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x98]
call fcn.1400047b9
nop
mov byte [rsp + 0xc4], 0
lea r9, [rsp + 0xc4]
mov r8, qword [rsp + 0x110]
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x100]
call fcn.1400071c1
mov byte [rsp + 0xd4], al
movzx eax, byte [rsp + 0xd4]
test eax, eax
jne 0x14012a9b8
movzx eax, byte [rsp + 0xc4]
test eax, eax
je 0x14012a9b8
mov rcx, qword [rsp + 0x108]
call fcn.140004fac
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea rcx, [rsp + 0x98]
call fcn.140001028
nop
lea rcx, [rsp + 0x68]
call fcn.1400024a0
nop
lea rcx, [rsp + 0x28]
call fcn.1400073ce
mov rcx, rsp
lea rdx, [0x1402269c8]
call fcn.14000849f
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.1400030d0
add rsp, 0xf0
pop rdi
ret
Function at 0x140001a96
Capabilities:
Check if file exists
Query environment variable

Disassembly:
jmp 0x14001d9e0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2e0
mov rdi, rsp
mov ecx, 0xb8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2f0]
mov qword [rsp + 0x2d0], 0xfffffffffffffffe
mov rax, qword [0x1402840e8]
xor rax, rsp
mov qword [rsp + 0x2d8], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea rdx, [0x1401de070]
lea rcx, [rsp + 0x48]
call fcn.140001faa
nop
call fcn.140004642
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.140003166
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x48]
call fcn.1400073ce
cmp qword [rsp + 0x40], 0
je 0x14001da85
lea rdx, str.ShellExecuteW
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14001da96
mov eax, dword [rsp + 0x30]
jmp 0x14001dbb9
cmp dword [rsp + 0x30], 0
jne 0x14001dad4
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x2f0]
lea rdx, [0x1401de098]
xor ecx, ecx
call qword [rsp + 0x38]
cmp rax, 0x20
jbe 0x14001dad4
mov dword [rsp + 0x30], 0x10
cmp dword [rsp + 0x30], 0
jne 0x14001dbb5
lea rax, [0x1401de0b0]
mov qword [rsp + 0x78], rax
lea rax, [0x1401de120]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x98], 0
jmp 0x14001db1b
mov rax, qword [rsp + 0x98]
inc rax
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 2
jae 0x14001dbb5
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov r8d, 0x103
lea rdx, [rsp + 0xb0]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + rax*8 + 0x78]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001dbb0
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x2f0]
lea r8, [rsp + 0xb0]
lea rdx, [0x1401de180]
xor ecx, ecx
call qword [rsp + 0x38]
cmp rax, 0x20
jbe 0x14001dbb0
mov dword [rsp + 0x30], 0x10
jmp 0x14001dbb5
jmp 0x14001db08
mov eax, dword [rsp + 0x30]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401de878]
call fcn.14000849f
mov rax, rdi
mov rcx, qword [rsp + 0x2d8]
xor rcx, rsp
call fcn.1400030d0
add rsp, 0x2e0
pop rdi
ret
Function at 0x14000204f
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x140156d00
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov dword [rsp], 0
mov rax, qword [rsp + 0x10]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x10]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 8], rax
jmp 0x140156d5e
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 8]
add rax, 0x28
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x10]
movzx eax, word [rax + 6]
cmp dword [rsp], eax
jae 0x140156d9d
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0xc]
cmp qword [rsp + 0x38], rax
jb 0x140156d9b
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 8]
add eax, dword [rcx + 8]
mov eax, eax
cmp qword [rsp + 0x38], rax
jae 0x140156d9b
mov rax, qword [rsp + 8]
jmp 0x140156d9f
jmp 0x140156d48
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400024aa
Capabilities:
Get file size

Disassembly:
jmp 0x14005b1c0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov rdi, rsp
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
mov rax, qword [0x1402840e8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x14005b201
xor al, al
jmp 0x14005b25b
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
cmp qword [rax], 0xffffffffffffffff
jne 0x14005b213
xor al, al
jmp 0x14005b25b
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
lea rdx, [rsp + 0x34]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x14005b242
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14005b242
xor al, al
jmp 0x14005b25b
mov eax, dword [rsp + 0x34]
shl rax, 0x20
mov ecx, dword [rsp + 0x20]
add rax, rcx
mov rcx, qword [rsp + 0x78]
mov qword [rcx], rax
mov al, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401f60d0]
call fcn.14000849f
mov rax, rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400030d0
add rsp, 0x60
pop rdi
ret
Function at 0x1400025ef
Capabilities:
Copy file

Disassembly:
jmp 0x14005c5b0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
mov rdi, rsp
mov ecx, 0x38
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov qword [rsp + 0xb8], 0xfffffffffffffffe
mov rax, qword [0x1402840e8]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0xf8]
call fcn.140004fac
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0xf0]
call fcn.140004fac
mov r8d, 1
mov rcx, qword [rsp + 0xc0]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14005c63e
mov al, 1
jmp 0x14005c724
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x38]
call fcn.1400051eb
nop
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0xf0]
call fcn.1400038cd
movzx eax, al
test eax, eax
je 0x14005c66c
mov byte [rsp + 0x20], 1
lea rcx, [rsp + 0x78]
call fcn.1400051eb
nop
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xf8]
call fcn.1400038cd
movzx eax, al
test eax, eax
je 0x14005c695
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14005c6ff
lea rcx, [rsp + 0x78]
call fcn.140004fac
mov qword [rsp + 0xc8], rax
lea rcx, [rsp + 0x38]
call fcn.140004fac
mov r8d, 1
mov rcx, qword [rsp + 0xc8]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14005c6ff
mov byte [rsp + 0xb0], 1
lea rcx, [rsp + 0x78]
call fcn.1400073ce
nop
lea rcx, [rsp + 0x38]
call fcn.1400073ce
movzx eax, byte [rsp + 0xb0]
jmp 0x14005c724
mov byte [rsp + 0xb1], 0
lea rcx, [rsp + 0x78]
call fcn.1400073ce
nop
lea rcx, [rsp + 0x38]
call fcn.1400073ce
movzx eax, byte [rsp + 0xb1]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401f6870]
call fcn.14000849f
mov rax, rdi
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400030d0
add rsp, 0xe0
pop rdi
ret
Function at 0x140002676
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x140019ae0
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, 0x98
mov rdi, rsp
mov ecx, 0x26
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xb0]
mov rax, qword [0x1402840e8]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rcx, [0x1401dc950]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140019b47
xor al, al
jmp 0x140019c54
mov r8d, 0x10
mov edx, 1
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140019c52
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140019c52
lea rax, [rsp + 0x48]
lea rcx, [0x1401dc970]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x20
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x140019c52
mov rax, qword [rsp + 0x78]
add rax, 6
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140019c52
mov rax, qword [rsp + 0x78]
movzx eax, word [rax + 2]
test eax, eax
jle 0x140019c52
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x30]
shr eax, 0x10
and eax, 0xffff
mov rcx, qword [rsp + 0xb0]
mov dword [rcx], eax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x30]
and eax, 0xffff
mov rcx, qword [rsp + 0xb8]
mov dword [rcx], eax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x34]
shr eax, 0x10
and eax, 0xffff
mov rcx, qword [rsp + 0xc0]
mov dword [rcx], eax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x34]
and eax, 0xffff
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
mov al, 1
jmp 0x140019c54
xor al, al
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401dcfe0]
call fcn.14000849f
mov rax, rdi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400030d0
add rsp, 0x98
pop rdi
pop rsi
ret

Function at 0x14000280b
Capabilities:
Terminate process

Disassembly:
jmp 0x140068fc0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret