joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001bd40
Capabilities:
Check for time delay via gettickcount
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
and qword [rbp + 0x28], 0
mov r14, r8
and qword [rbp + 0x38], 0
mov rbx, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov r9, qword [rbx]
lea rdx, [rbp + 0x28]
mov rcx, rbx
call qword [r9 + 0x90]
test eax, eax
js 0x14001bd8c
cmp qword [rbp + 0x28], 0
jne 0x14001bdde
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x7d0
ja 0x14001bdde
and dword [rsp + 0x20], 0
lea rcx, [rbp - 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14001bd70
xor r9d, r9d
lea rcx, [rbp - 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x14001bd70
mov rax, qword [rbx]
lea rdx, [rbp + 0x28]
mov rcx, rbx
call qword [rax + 0x90]
mov ebx, eax
test eax, eax
js 0x14001be53
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x14001be4a
mov rax, qword [rcx]
lea r8, [rbp + 0x38]
lea rdx, [0x140037560]
call qword [rax]
mov ebx, eax
test eax, eax
js 0x14001be3c
mov rcx, qword [rbp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov ebx, eax
test eax, eax
js 0x14001be32
mov rcx, qword [rbp + 0x38]
mov rdx, r14
mov rax, qword [rcx]
call qword [rax + 0x28]
mov ebx, eax
mov rcx, qword [rbp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x28]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x28]
test ebx, ebx
js 0x14001be53
test rcx, rcx
jne 0x14001bec4
cmp qword [rdi + 0x10], 0
je 0x14001bec4
cmp qword [rdi + 0x30], 0
jne 0x14001bec4
mov rdx, qword [rdi + 0x28]
test rdx, rdx
je 0x14001bec4
mov rcx, rdi
call fcn.14001c504
mov rsi, rax
test rax, rax
je 0x14001bec4
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov dword [rsp + 0x30], 0x204
xor r8d, r8d
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea edx, [r9 + 1]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [rdi + 0x10]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rdi + 0x10]
mov rdx, rsi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, rsi
call fcn.140025fd0
not ebx
lea r11, [rsp + 0x70]
mov rsi, qword [r11 + 0x30]
shr ebx, 0x1f
mov al, bl
mov rbx, qword [r11 + 0x20]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x14001cef4
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
mov rax, rdx
mov rdx, rcx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x14001cf54
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rdx, rcx
lea r8, [0x140036f10]
mov rcx, qword [0x140047fb8]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14001cf82
xor eax, eax
jmp 0x14001d0b9
mov rcx, qword [0x140047fb8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x14001cf7b
mov rcx, qword [0x140047fb8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001cf7b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14001cf7b
and qword [rsp + 0x58], 0
mov edx, edi
mov ecx, 2
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x14001d0b4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14001d0ab
mov r8d, esi
mov rdx, rbx
mov rcx, rax
call fcn.140024680
and qword [rsp + 0x48], 0
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x14001d0a2
mov rsi, qword [rsp + 0x48]
lea ecx, [rax + 0x18]
call sub.gdiplus.dll_GdipAlloc
mov rbx, rax
test rax, rax
je 0x14001d05d
and qword [rsp + 0x50], 0
lea rax, [0x140036ee0]
lea rdx, [rsp + 0x50]
mov qword [rbx], rax
mov rcx, rsi
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [rbx + 0x10], eax
mov rax, qword [rsp + 0x50]
mov qword [rbx + 8], rax
jmp 0x14001d05f
xor ebx, ebx
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
test rbx, rbx
je 0x14001d0a2
mov eax, dword [rbx + 0x10]
and dword [rbx + 0x10], 0
test eax, eax
jne 0x14001d095
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x58]
mov r8d, 0xffffff
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x14001d095
mov dword [rbx + 0x10], eax
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rax, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x14001d4c8
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x14001d6f4
Capabilities:
Delete file

Disassembly:
push rbx
mov eax, 0x1060
call fcn.140022280
sub rsp, rax
mov edx, 0x800
lea rcx, [rsp + 0x60]
call fcn.14001cef4
xor ebx, ebx
cmp byte [0x14004f6bc], bl
jne 0x14001d78d
lea rcx, [rsp + 0x60]
call fcn.14000cbd4
mov rdx, qword [str.RarSFX]
lea r8d, [rbx + 6]
mov rcx, rax
call fcn.140012860
test eax, eax
jne 0x14001d78d
lea rcx, [0x140035cb4]
call fcn.14001d4c8
lea rcx, [rsp + 0x60]
call fcn.140025fb4
xor edx, edx
lea r8d, [rbx + 0x38]
lea rcx, [rsp + 0x20]
mov word [rsp + rax*2 + 0x62], bx
call fcn.140023020
lea eax, [rbx + 0x14]
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
add rsp, 0x1060
pop rbx
ret
Function at 0x14001d7f4
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x170
xor ebp, ebp
mov rdi, r8
cmp qword [0x140045188], rbp
mov rbx, rdx
mov rsi, rcx
jne 0x14001d85c
lea r9d, [rbp + 0x64]
mov ecx, 0x400
lea r8, [rax - 0xd8]
lea edx, [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movzx eax, word [rsp + 0xa0]
mov word [0x140062fb8], ax
lea rax, [0x140062fb8]
mov qword [0x140045188], rax
mov word [0x140062fba], bp
mov r8d, 0x32
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140010998
lea r9, [0x140045170]
mov dword [rsp + 0x28], edi
lea r8, [rsp + 0x30]
mov word [rbx], bp
xor edx, edx
mov qword [rsp + 0x20], rbx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetNumberFormatW]
lea r11, [rsp + 0x170]
mov word [rbx + rdi*2 - 2], bp
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14001da8c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1f40]
mov eax, 0x2040
call fcn.140022280
sub rsp, rax
xor esi, esi
mov rdi, rdx
cmp byte [0x14004d5b8], sil
mov rbx, rcx
je 0x14001db6d
lea rdx, [rbp + 0xf40]
call fcn.14001f260
lea rax, [rsp + 0x30]
xor r8d, r8d
lea r9d, [rsi + 1]
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareWinRAR_SFX
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001db6d
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x1f70]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x1f78]
lea rax, [rsp + 0x40]
mov dword [rbp + 0x1f70], 0x1000
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0xf40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001db62
mov edx, dword [rbp + 0x1f70]
mov ecx, 0x7ff
shr edx, 1
mov r8, rdi
cmp edx, ecx
mov eax, edx
mov dword [rbp + 0x1f70], edx
lea rdx, [rsp + 0x40]
cmovb ecx, eax
mov word [rsp + rcx*2 + 0x40], si
mov rcx, rbx
call fcn.140010ab4
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x2060]
add rsp, 0x2040
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001dc58
Capabilities:
Query environment variable

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
mov eax, 0x2020
call fcn.140022280
sub rsp, rax
xor r14d, r14d
mov rsi, r8
mov rbx, rcx
test r9, r9
je 0x14001dc8b
mov byte [r9], r14b
mov rcx, qword [rsp + 0x2050]
test rcx, rcx
je 0x14001dc9b
mov byte [rcx], r14b
test rbx, rbx
je 0x14001dd50
movzx eax, word [rbx]
test ax, ax
je 0x14001dd50
movsxd rbp, dword [rsp + 0x2058]
mov rdi, r14
mov r8d, r14d
add rbx, 2
cmp ax, 0x3d
jne 0x14001dce0
test rsi, rsi
je 0x14001dcec
test rdi, rdi
jne 0x14001dcec
test r9, r9
je 0x14001dcdb
mov byte [r9], 1
mov rdi, rdx
jmp 0x14001dcfb
cmp ax, 0xd
je 0x14001dd0d
cmp ax, 0xa
je 0x14001dd11
mov word [rdx], ax
add rdx, 2
lea eax, [rbp - 2]
cmp r8d, eax
jge 0x14001dd08
movzx eax, word [rbx]
inc r8d
test ax, ax
jne 0x14001dcbe
jmp 0x14001dd11
mov byte [rcx], 1
jmp 0x14001dd11
add rbx, 2
mov word [rdx], r14w
test rsi, rsi
je 0x14001dd4b
mov word [rsi], r14w
test rdi, rdi
je 0x14001dd4b
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r8, rbp
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140010ab4
mov word [rdi], r14w
mov rax, rbx
jmp 0x14001dd52
xor eax, eax
lea r11, [rsp + 0x2020]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x14001dd70
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov ebx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
xor ecx, ecx
test eax, eax
sete bl
test bl, bl
je 0x14001ddd5
mov rcx, qword [rsp + 0x50]
mov rdx, rdi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x58]
cmp eax, 1
mov rdx, qword [rsp + 0x50]
sete bl
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x14001ddd8
mov word [rdi], cx
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400207c8
Capabilities:
Hide graphical window

Disassembly:
push rbx
sub rsp, 0x20
and dword [0x14004d588], 0
mov edx, 1
mov rbx, rcx
mov byte [0x14004d578], 1
mov byte [0x14004d579], 1
call qword [sym.imp.USER32.dll_ShowWindow]
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 2]
call fcn.140001338
cmp qword [0x14004d598], 0
jne 0x140020813
cmp byte [0x14004d57e], 0
je 0x14002081c
cmp dword [0x14004d56c], 0
jne 0x140020831
xor r9d, r9d
mov edx, 0x111
mov rcx, rbx
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_SendMessageW]
add rsp, 0x20
pop rbx
ret

Function at 0x14002090c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1050
call fcn.140022280
sub rsp, rax
xor edi, edi
mov rbx, rcx
cmp byte [0x14004d5b8], dil
je 0x1400209d8
cmp word [0x140061fb0], di
je 0x1400209d8
lea rdx, [rsp + 0x50]
lea rcx, [0x140061fb0]
call fcn.14001f260
lea rax, [rsp + 0x1068]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, str.SoftwareWinRAR_SFX
lea rax, [rsp + 0x1070]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400209d8
mov rcx, rbx
call fcn.140025fb4
lea r9d, [rdi + 1]
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x1070]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x1070]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x1060]
add rsp, 0x1050
pop rdi
ret

Function at 0x1400209ec
Capabilities:
Set environment variable

Disassembly:
push rbx
mov eax, 0x2020
call fcn.140022280
sub rsp, rax
mov rbx, rcx
mov rdx, rcx
lea rcx, str.sfxcmd
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140010854
mov rbx, rax
test rax, rax
je 0x140020a4e
movzx ecx, word [rax]
jmp 0x140020a35
add rbx, 2
movzx ecx, word [rbx]
call fcn.140010970
test al, al
jne 0x140020a2e
mov rdx, rbx
lea rcx, str.sfxpar
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x2020
pop rbx
ret
Function at 0x1400290e0
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140028eb4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140028eb4
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140028eb4
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140028eb4
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140028eb4
cmp dword [rcx + 0x84], 0xe
jbe 0x140028eb4
cmp dword [rcx + 0xf8], esi
je 0x140028eb4
mov ecx, r14d
call fcn.140028ffc
mov ecx, 2
call fcn.14002c3e8
nop
cmp byte [0x140065278], 0
jne 0x140028f7e
mov r15d, 1
mov eax, r15d
xchg dword [0x140065268], eax
test ebx, ebx
jne 0x140028f27
mov rdi, qword [0x140045228]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140065270]
cmp rcx, rax
je 0x140028f1e
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400083f8]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400653a8]
jmp 0x140028f33
cmp ebx, r15d
jne 0x140028f39
lea rcx, [0x1400653c0]
call fcn.140029a70
nop
test ebx, ebx
jne 0x140028f50
lea rdx, [0x1400355a8]
lea rcx, [0x140035588]
call fcn.140029da8
lea rdx, [0x1400355b8]
lea rcx, [0x1400355b0]
call fcn.140029da8
movzx eax, byte [0x140065278]
test esi, esi
cmove eax, r15d
mov byte [0x140065278], al
jmp 0x140028f7e
mov ecx, 2
call fcn.14002c43c
test esi, esi
jne 0x140028f95
mov ecx, r14d
call fcn.140028fb0
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140028e44
Function at 0x140001c40
Capabilities:
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x30
call fcn.1400019d0
mov edx, 0x65
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140001c87
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____FindResourceW_Failed_With_Error_:__d__n
call fcn.140001410
mov rax, 0xffffffffffffffff
add rsp, 0x30
pop rbx
ret
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140001cb8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____LoadResource_Failed_With_Error_:__d__n
call fcn.140001410
mov rax, 0xffffffffffffffff
add rsp, 0x30
pop rbx
ret
mov rcx, rax
mov qword [rsp + 0x50], rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
jne 0x140001cf4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____LockResource_Failed_With_Error_:__d__n
call fcn.140001410
mov rsi, qword [rsp + 0x50]
mov rax, 0xffffffffffffffff
add rsp, 0x30
pop rbx
ret
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test eax, eax
jne 0x140001d2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____SizeofResource_Failed_With_Error_:__d__n
call fcn.140001410
mov rsi, qword [rsp + 0x50]
mov rax, 0xffffffffffffffff
add rsp, 0x30
pop rbx
ret
mov rcx, rbx
mov qword [rsp + 0x58], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140001d65
lea rcx, str.malloc_failed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov rdi, qword [rsp + 0x58]
mov rax, 0xffffffffffffffff
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, word [0x140003910]
lea rcx, [rsp + 0x20]
movsd xmm0, qword [str.hellodude]
mov word [rsp + 0x28], ax
mov rax, 0xffffffffffffffff
movsd qword [rsp + 0x20], xmm0
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140001da0
xor esi, esi
mov r10d, esi
mov r11d, esi
test rbx, rbx
je 0x140001df3
mov edx, esi
mov r9, rdi
nop dword [rax + rax]
movzx ecx, byte [rsp + rdx + 0x20]
inc r11d
xor byte [r9], cl
lea r9, [r9 + 1]
lea ecx, [r10 + 1]
mov r10d, esi
movsxd r8, ecx
cmp r8, rax
cmovne r10d, ecx
lea rcx, [rdx + 1]
mov rdx, rsi
cmovne rdx, rcx
movsxd rcx, r11d
cmp rcx, rbx
jb 0x140001dc0
lea r9, [rsp + 0x40]
mov qword [rsp + 0x48], rsi
lea r8, [rsp + 0x48]
mov qword [rsp + 0x40], rsi
mov rdx, rbx
mov rcx, rdi
call fcn.140001470
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, qword [rsp + 0x58]
xor eax, eax
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
Function at 0x140002750
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x18000126f
xor eax, eax
mov qword [0x1800222d0], rcx
mov qword [rsp + 0x28], rax
lea r8, [0x180001130]
xor r9d, r9d
mov dword [rsp + 0x20], eax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
add rsp, 0x38
ret
Function at 0x18000c5d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x180021d10]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x18000c627
cmp word [rdx], r13w
jne 0x18000c627
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18000c62c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18000c751
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18000c772
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18000c665
mov rdx, r9
mov word [rbx], cx
jmp 0x18000c68c
cmp r9, r8
jae 0x18000c69c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x18000c646
jmp 0x18000c751
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000c746
cmp dword [rsp + 0x80], esi
je 0x18000c746
lea r8, [0x180021d10]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18000c71e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18000c6ee
mov word [rbx], r13w
jmp 0x18000c74e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18000c6fb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18000c74e
cmp word [rsp + 0x70], r13w
jne 0x18000c72b
cmp rbx, r14
je 0x18000c6e8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18000cf54
cmp word [rsp + 0x70], r13w
je 0x18000c751
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x180021d10]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18000c74b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18000c751
Function at 0x18000f860
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18000f890
xor eax, eax
jmp 0x18000f953
mov rbp, rbx
cmp word [rax], si
je 0x18000f8b5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000f89c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000f898
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18000e104
movsxd r14, eax
test eax, eax
jne 0x18000f8f3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000f889
mov rcx, r14
call fcn.18000aa88
mov rdi, rax
test rax, rax
jne 0x18000f90c
xor ecx, ecx
call fcn.18000a244
jmp 0x18000f8e8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18000e104
test eax, eax
jne 0x18000f93d
mov rcx, rdi
call fcn.18000a244
jmp 0x18000f947
xor ecx, ecx
call fcn.18000a244
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x180012cb0
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.18000cf54
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18000cf54
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180012e00
cmp rax, 0xffffffffffffffff
je 0x180012e00
xor edi, edi
test rbp, rbp
jle 0x180012dab
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18000a1cc
mov rbx, rax
test rax, rax
jne 0x180012d38
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180012da1
mov edx, 0x8000
mov ecx, r14d
call fcn.180012b34
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.18000c008
cmp eax, 0xffffffff
je 0x180012d81
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180012d48
mov edx, r15d
mov ecx, r14d
call fcn.180012b34
jmp 0x180012da1
cmp byte [rsi + 0x38], dil
je 0x180012d98
cmp dword [rsi + 0x34], 5
jne 0x180012d98
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180012da1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18000a244
jmp 0x180012e14
jns 0x180012e14
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18000cf54
cmp rax, 0xffffffffffffffff
jne 0x180012dcc
cmp byte [rsi + 0x30], dil
je 0x180012e14
mov edi, dword [rsi + 0x2c]
jmp 0x180012e14
mov ecx, r14d
call fcn.1800100c8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180012e14
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 0x180012e14
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180012e0d
mov eax, dword [rsi + 0x2c]
jmp 0x180012e12
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18000cf54
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 0x180013280
Capabilities:
Parse pe header

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