joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006a93c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14006a9c3
mov rsi, rbx
cmp word [rax], bp
je 0x14006a982
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14006a96c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14006a968
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400665d0
mov rdi, rax
test rax, rax
je 0x14006a9b0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14006fe40
mov rbp, rdi
xor ecx, ecx
call fcn.140063530
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14006e6bc
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140066198
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140066198
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14006e80c
cmp rax, 0xffffffffffffffff
je 0x14006e80c
xor edi, edi
test rbp, rbp
jle 0x14006e7b7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400634b8
mov rbx, rax
test rax, rax
jne 0x14006e744
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14006e7ad
mov edx, 0x8000
mov ecx, r14d
call fcn.1400626a8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400650c0
cmp eax, 0xffffffff
je 0x14006e78d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14006e754
mov edx, r15d
mov ecx, r14d
call fcn.1400626a8
jmp 0x14006e7ad
cmp byte [rsi + 0x38], dil
je 0x14006e7a4
cmp dword [rsi + 0x34], 5
jne 0x14006e7a4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14006e7ad
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140063530
jmp 0x14006e820
jns 0x14006e820
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140066198
cmp rax, 0xffffffffffffffff
jne 0x14006e7d8
cmp byte [rsi + 0x30], dil
je 0x14006e820
mov edi, dword [rsi + 0x2c]
jmp 0x14006e820
mov ecx, r14d
call fcn.14006b11c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14006e820
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14006e820
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14006e819
mov eax, dword [rsi + 0x2c]
jmp 0x14006e81e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140066198
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14006f750
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14006f778
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14006f778
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

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

Disassembly:
mov rax, qword [0x14000c008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x14000c008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x14000c008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000c008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x4024d0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [0x00401150]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x00401138]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00407070], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x00401160]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00407068], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x00401178]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00407060], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x00401198]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00407058], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x004011b0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00407050], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x004011d0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00407048], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x004011f4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00407040], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x004011fc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00407038], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x00401204]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00407030], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x0040120c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00407028], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x00401214]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00407020], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x0040121c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00407018], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x00401224]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00407010], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x0040122c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00407008], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x00401234]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [section..data], rax
add rsp, 0x20
pop rbx
ret
Function at 0x402948
Capabilities:
Resolve function by parsing pe exports

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 r12
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor r12d, r12d
mov rbx, rcx
mov edi, r12d
cmp dword [rax + rcx + 0x8c], r12d
je 0x4029d3
mov esi, dword [rax + rcx + 0x88]
mov ebp, r12d
add rsi, rcx
mov r14d, dword [rsi + 0x1c]
mov r15d, dword [rsi + 0x20]
add r14, rcx
add r15, rcx
cmp dword [rsi + 0x14], r12d
jbe 0x4029d3
mov eax, ebp
lea rdx, [0x004016d4]
mov ecx, dword [r15 + rax*4]
add rcx, rbx
call qword [0x00407028]
test eax, eax
je 0x4029c0
inc ebp
cmp ebp, dword [rsi + 0x14]
jb 0x40299d
jmp 0x4029d3
mov ecx, dword [rsi + 0x24]
mov edx, ebp
add rcx, rbx
movzx eax, word [rcx + rdx*2]
mov edi, dword [r14 + rax*4]
add rdi, rbx
call fcn.00403c14
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
sub eax, dword [0x00407080]
mov rsi, qword [rsp + 0x50]
cmp eax, 0x7fff
cmova rdi, r12
mov rax, rdi
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x403734
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rdi, rcx
lea rcx, [rbp - 0x80]
mov dword [rbp - 0x80], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rbp - 0x7c], 6
jb 0x403772
mov eax, 2
jmp 0x403849
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor ebx, ebx
xor ecx, ecx
lea rdx, [rsp + 0x20]
mov r8d, 0x30
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40380f
mov ecx, dword [rsp + 0x78]
mov rax, qword [rsp + 0x20]
xor edx, edx
div rcx
test rdx, rdx
jne 0x4037df
cmp qword [rsp + 0x38], 0x1000
jne 0x4037df
cmp dword [rsp + 0x40], 0x1000
jne 0x4037df
cmp dword [rsp + 0x48], 0x20000
jne 0x4037df
cmp dword [rsp + 0x44], 4
jne 0x4037df
movabs rax, 0x74636a6e696d7678
cmp qword [rbx], rax
je 0x4037f6
add rbx, qword [rsp + 0x38]
cmp rbx, 0x7fff0000
jae 0x403768
mov rcx, rbx
jmp 0x403781
mov r8d, 0x20
mov rdx, rbx
mov rcx, rdi
call qword [0x00407040]
mov eax, 1
jmp 0x403849
lea rdx, [0x004013c0]
call fcn.00402804
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0xa
mov edx, eax
call fcn.00402760
lea rdx, [0x004013d4]
call fcn.00402804
mov r8d, 0x10
mov edx, ebx
call fcn.00402760
xor eax, eax
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x403864
Capabilities:
Accept command line arguments
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [0x004012e8]
mov rcx, rax
call qword [0x00407010]
xor r13d, r13d
mov rdi, rax
test rax, rax
je 0x4038c9
lea r14d, [r13 + 0x20]
add rdi, 0x2a
mov edx, r14d
mov rcx, rdi
call qword [0x00407008]
test rax, rax
jne 0x4038e8
lea rdx, [0x00401318]
call fcn.00402804
xor al, al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
sub rax, rdi
sar rax, 1
cmp rax, 2
jae 0x40390b
lea rdx, [0x00401330]
call fcn.00402804
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
jmp 0x4038c4
lea rsi, [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rsi + 2]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
jne 0x403935
lea rdx, [0x00401348]
jmp 0x4038c4
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call qword [0x00407040]
xor edx, edx
mov r8, r15
lea ecx, [rdx + 4]
mov word [rsi + r15], r13w
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov r12, rax
test rax, rax
jne 0x403983
lea rdx, [0x00401360]
call fcn.00402804
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0xa
mov edx, eax
call fcn.00402760
jmp 0x4038c9
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
jne 0x4039ac
lea rdx, [0x00401378]
jmp 0x403966
mov r8, r14
mov rdx, rax
mov rcx, rbp
call qword [0x00407040]
call fcn.00403b2c
mov rsi, rax
test rax, rax
je 0x4038c9
mov eax, dword [rdi + 0x20]
lea rdx, [rbp + 0x18]
mov rcx, rsi
mov dword [rsp + 0x68], eax
call fcn.00403ac0
test al, al
je 0x4038c9
lea rdx, [rsp + 0x68]
mov rcx, rsi
call fcn.00403ac0
test al, al
je 0x4038c9
movsxd rcx, dword [rbp + 0x18]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 2]
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
test rax, rax
jne 0x403a29
lea rdx, [0x00401390]
jmp 0x403966
mov eax, dword [rdi + 0x24]
lea rbx, [rdi + 0x28]
lea rbp, [rbx + rax*4]
jmp 0x403a4f
mov edx, dword [rbx]
mov rcx, rsi
add rdx, r14
call fcn.00403ac0
test al, al
je 0x4038c9
add rbx, 4
cmp rbx, rbp
jne 0x403a36
movsxd rbx, dword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x403a72
lea rdx, [0x004013a8]
jmp 0x403966
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x4038cb
Function at 0x403bd0
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x448
xor eax, eax
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x434], eax
mov word [rsp + 0x20], ax
call fcn.004026e0
lea rdx, [rsp + 0x20]
lea rcx, [0x00401290]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x448
ret
Function at 0x1410eb058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1410eb1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1410eb089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410eb06f
add dl, dl
jne 0x1410eb096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410eb0f6
xor eax, eax
add dl, dl
jne 0x1410eb0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410eb1ad
add dl, dl
jne 0x1410eb0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410eb0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410eb0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410eb0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1410eb0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1410eb07e
mov eax, 1
add dl, dl
jne 0x1410eb106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410eb113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410eb0fb
sub eax, ebx
mov ebx, 1
jne 0x1410eb14c
mov ecx, 1
add dl, dl
jne 0x1410eb12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1410eb13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410eb123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410eb07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1410eb168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1410eb175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410eb15d
cmp eax, 0x7d00
jae 0x1410eb19b
cmp eax, 0x500
jb 0x1410eb196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410eb07e
cmp eax, 0x7f
ja 0x1410eb19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410eb07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1410eb1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1410eb07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x401f0f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
push rbx
sub rsp, 0x198
lea rbp, [rsp + 0x80]
mov word [rbp + 0x60], 0x5c
mov word [rbp + 0x62], 0x4b
mov word [rbp + 0x64], 0x6e
mov word [rbp + 0x66], 0x6f
mov word [rbp + 0x68], 0x77
mov word [rbp + 0x6a], 0x6e
mov word [rbp + 0x6c], 0x44
mov word [rbp + 0x6e], 0x6c
mov word [rbp + 0x70], 0x6c
mov word [rbp + 0x72], 0x73
mov word [rbp + 0x74], 0x5c
mov word [rbp + 0x76], 0x6e
mov word [rbp + 0x78], 0x74
mov word [rbp + 0x7a], 0x64
mov word [rbp + 0x7c], 0x6c
mov word [rbp + 0x7e], 0x6c
mov word [rbp + 0x80], 0x2e
mov word [rbp + 0x82], 0x64
mov word [rbp + 0x84], 0x6c
mov word [rbp + 0x86], 0x6c
mov word [rbp + 0x88], 0
lea rdx, [rbp + 0x60]
lea rax, [rbp + 0x90]
mov rcx, rax
call sub.ntdll.dll_RtlInitUnicodeString
mov dword [rbp + 0x30], 0x30
mov qword [rbp + 0x38], 0
mov dword [rbp + 0x48], 0x40
lea rax, [rbp + 0x90]
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], 0
mov r9, qword [0x008c3040]
lea rdx, [rbp + 0x30]
lea rax, [rbp + 0x28]
mov r8, rdx
mov edx, 0xc
mov rcx, rax
call r9
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
test eax, eax
jns 0x402088
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ebx, eax
lea rax, [rbp + 0xb0]
lea rdx, [rbp + 0xaf]
mov rcx, rax
call fcn.00401c6c
mov rax, qword [rbp + 0xb0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp + 0xb8]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp + 0xc0]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp + 0xc8]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0xd0]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x30]
mov edx, ebx
mov rcx, rax
call fcn.00424d50
mov eax, 0
jmp 0x402173
mov qword [rbp + 0x18], 0
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x108], 0
mov r10, qword [0x008c3038]
mov rcx, qword [rbp + 0x28]
lea rdx, [rbp + 0x18]
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
lea rax, [rbp + 0x10]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rdx
mov rdx, 0xffffffffffffffff
call r10
mov dword [rbp + 0xc], eax
mov eax, dword [rbp + 0xc]
test eax, eax
jns 0x40216f
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ebx, eax
lea rax, [rbp + 0xe0]
lea rdx, [rbp + 0xdf]
mov rcx, rax
call fcn.00401dbe
mov rax, qword [rbp + 0xe0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp + 0xe8]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp + 0xf0]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp + 0xf8]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0x100]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x30]
mov edx, ebx
mov rcx, rax
call fcn.00424d50
mov eax, 0
jmp 0x402173
mov rax, qword [rbp + 0x18]
add rsp, 0x198
pop rbx
pop rbp
ret
Function at 0x40222f
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
lea rcx, str.ntdll.dll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x3c]
cdqe
add rax, rdx
mov qword [rbp - 0x50], rax
mov rax, qword [rbp - 0x50]
test rax, rax
jne 0x4022b3
lea rax, [rbp - 0x40]
lea rdx, [rbp - 0x41]
mov rcx, rax
call fcn.0040217e
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x80], rax
mov rax, qword [rbp - 0x38]
mov qword [rbp - 0x78], rax
mov eax, dword [rbp - 0x30]
mov dword [rbp - 0x70], eax
lea rax, [rbp - 0x80]
mov rcx, rax
call fcn.004248d0
mov eax, 0
jmp 0x4023e6
mov rax, qword [rbp - 0x50]
movzx eax, word [rax + 0x14]
movzx eax, ax
mov rdx, qword [rbp - 0x50]
add rax, rdx
add rax, 0x18
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x54], 0
mov word [rbp - 0x1a], 0
mov rax, qword [rbp - 0x50]
movzx eax, word [rax + 6]
cmp word [rbp - 0x1a], ax
jae 0x4023e6
mov byte [rbp - 0x5a], 0x2e
mov byte [rbp - 0x59], 0x74
mov byte [rbp - 0x58], 0x65
mov byte [rbp - 0x57], 0x78
mov byte [rbp - 0x56], 0x74
mov byte [rbp - 0x55], 0
mov rcx, qword [rbp - 0x18]
lea rax, [rbp - 0x5a]
mov rdx, rax
call sub.ntdll.dll_strcmp
test eax, eax
jne 0x4023df
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 8]
mov edx, eax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp - 8]
add rax, rcx
mov rcx, rax
lea rax, [rbp - 0x54]
mov r9, rax
mov r8d, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov dword [rbp - 0x20], eax
cmp dword [rbp - 0x20], 0
jne 0x402361
mov eax, 0
jmp 0x4023e6
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 8]
mov ecx, eax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xc]
mov r8d, eax
mov rax, qword [rbp - 8]
add rax, r8
mov r8, rcx
mov rcx, rax
call sub.ntdll.dll_memcpy
mov edx, dword [rbp - 0x54]
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 8]
mov r10d, eax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp - 8]
add rax, rcx
mov rcx, rax
lea rax, [rbp - 0x54]
mov r9, rax
mov r8d, edx
mov rdx, r10
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov dword [rbp - 0x24], eax
cmp dword [rbp - 0x24], 0
jne 0x4023df
mov eax, 0
jmp 0x4023e6
mov eax, 1
jmp 0x4023e6
add rsp, 0xa0
pop rbp
ret