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

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x00450098], 0
je 0x40946a
cmp word [0x004503a8], 0xd7b2
jne 0x409403
cmp dword [0x004503b0], 0
jbe 0x409403
lea rcx, [0x004503a0]
call qword [0x004503c8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x0044a940]
mov r8d, 0x25
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rbx, rax
lea rcx, [0x004094a0]
call fcn.0040a250
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40948b
cmp byte [0x0044905a], 0
jne 0x40948b
xor ecx, ecx
lea rdx, [0x0044a940]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40d8c0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00454ef0]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00454f18], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00454ee8], al
cmp byte [0x00454ee8], 0
je 0x40d95f
lea rcx, [0x0040d964]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040d97e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00454ed0], rax
lea rcx, [0x0040d964]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040d99c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00454ed8], rax
lea rcx, [0x0040d964]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040d9ba]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00454ee0], rax
add rsp, 0x28
ret
Function at 0x40dc00
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x1d8
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov word [rbp + 0x56], r8w
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x48]
call fcn.00409810
movzx rax, word [rbp + 0x56]
cmp word [0x0044b178], ax
ja 0x40dcd6
movzx rax, word [rbp + 0x56]
cmp ax, word [0x0044b578]
mov word [rbp + 0x56], ax
ja 0x40dcd6
mov eax, 0x40
xor ecx, ecx
cmp eax, ecx
jb 0x40dcd5
mov edx, eax
add edx, ecx
shr edx, 1
mov r8d, edx
lea r9, [0x0044b178]
mov r10, r8
add r10, r10
movzx r11, word [rbp + 0x56]
cmp word [r9 + r10*8], r11w
jbe 0x40dc94
mov eax, edx
sub eax, 1
jmp 0x40dcd1
lea rcx, [0x0044b178]
mov r9, r8
add r9, r9
movzx r10, word [rbp + 0x56]
cmp word [rcx + r9*8], r10w
jae 0x40dcb4
mov ecx, edx
add ecx, 1
jmp 0x40dcd1
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea rax, [0x0044b180]
add r8, r8
mov r8, qword [rax + r8*8]
call fcn.0040dab0
jmp 0x40dcd5
cmp eax, ecx
jae 0x40dc6a
nop
mov rax, qword [rbp + 0x48]
cmp qword [rax], 0
jne 0x40ddab
movzx rcx, word [rbp + 0x56]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ddab
movzx rbx, word [rbp + 0x56]
movzx ebx, bx
mov ecx, ebx
mov edx, 0x59
lea r8, [rbp + 0x126]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
mov ecx, ebx
mov edx, 0x5a
lea r8, [rbp + 0x7c]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x68]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040a680
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040a680
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040a680
mov rcx, qword [rbp + 0x48]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x0040ddf8]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x0040de08]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040aa80
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.004098f0
mov rax, qword [rbp + 0x48]
lea rsp, [rbp + 0x1d8]
pop rbx
pop rbp
ret
Function at 0x40e000
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov word [rbp + 0x36], dx
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
nop
lea rcx, [0x00454ef0]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x00454f18], ax
jne 0x40e06a
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00454f1a]
mov r8d, 0x55
call fcn.0040a680
lea rcx, [0x00454ef0]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40e173
lea rcx, [0x00454ef0]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.00409810
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e12e
cmp byte [0x00454ee8], 0
je 0x40e0c2
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.0040dea0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.00409e10
jmp 0x40e12e
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.0040dc00
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.00409e10
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x40e12e
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x40e10d
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0040e1b8]
call fcn.0040a880
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.0040dc00
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.0040a880
lea rcx, [0x00454ef0]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x00454f18], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040a5e0
lea rcx, [0x00454f1a]
mov edx, 0xaa
mov r8, rax
call fcn.0040d9f0
lea rcx, [0x00454ef0]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.004098f0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40eb20
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x70], r8
mov rcx, qword [rbp + 0x70]
call fcn.004099e0
nop
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx ecx, ax
mov edx, 3
lea r8, [rbp + 0x48]
mov r9d, 4
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x38]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040a680
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.0040a950
mov rcx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
call fcn.0040e970
test al, al
jne 0x40ebea
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040a680
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.0040a950
mov rcx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
call fcn.0040e970
test al, al
jne 0x40ebea
mov rcx, qword [rbp + 0x28]
call fcn.00409810
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.004098f0
lea rcx, [rbp + 0x70]
call fcn.00409810
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40ec40
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov rcx, qword [rbp + 0x88]
call fcn.004099e0
mov rcx, qword [rbp + 0x90]
call fcn.004099e0
nop
mov rcx, qword [rbp + 0x28]
call fcn.00409810
cmp qword [rbp + 0x90], 0
je 0x40edff
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.00409ea0
xor eax, eax
mov rcx, qword [rbp + 0x90]
test rcx, rcx
je 0x40eceb
mov eax, dword [rcx - 4]
cmp eax, 1
jl 0x40ed24
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x40ed1d
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.0040ab70
jmp 0x40ed24
sub eax, 1
test eax, eax
jne 0x40ecf0
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.0040e870
cmp qword [rbp + 0x68], 0
je 0x40ed62
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.0040ea00
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.00409e10
jmp 0x40edfe
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.0040e000
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.0040ea00
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.00409e10
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40edd7
cmp byte [0x00454ee8], 0
jne 0x40edd7
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.0040e000
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.0040ea00
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.00409e10
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40edfe
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.0040eb20
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.00409e10
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.004098f0
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.004098f0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x410d70
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x410d90
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call sub.kernel32.dll_GetVersion
mov ecx, eax
and ecx, 0xff
and eax, 0xff00
shr eax, 8
cmp ecx, 5
jne 0x410db4
cmp eax, 1
jae 0x410db9
cmp ecx, 5
jbe 0x410dc5
mov dword [0x00450a20], 0x7f
jmp 0x410dcf
mov dword [0x00450a20], 0x409
add rsp, 0x28
ret
Function at 0x411060
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.00411050
mov ebx, eax
test ebx, ebx
je 0x4110a9
cmp dword [0x0044bbcc], 0xffffffff
jne 0x411083
mov ecx, 0xe2
call fcn.00409660
mov ecx, ebx
call fcn.00411030
test rax, rax
jne 0x41109b
mov ecx, 0xe2
call fcn.00409660
jmp 0x4110a9
mov ecx, dword [0x0044bbcc]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x411110
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x004562a8], 0
je 0x41114b
mov ecx, dword [0x0044bbcc]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x41115e
call fcn.00411060
mov ecx, dword [0x0044bbcc]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x41115e
mov rax, qword [0x004562a0]
jmp 0x41115e
mov rax, qword gs:[0x58]
mov ecx, dword [0x0044bbcc]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret
Function at 0x426490
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.00426250
mov ebx, eax
mov rax, qword [0x0044f158]
cmp byte [rax], 0
je 0x4265bf
mov rcx, qword [0x0044ef10]
call fcn.00406760
call fcn.004060f0
mov ecx, 1
xor edx, edx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00426450]
mov r8d, 1
movsxd r9, esi
call fcn.0040d130
mov ecx, 1
xor edx, edx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x0042664c]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x426602
mov rcx, qword [0x00456270]
call fcn.0040d690
mov rcx, rax
mov rax, qword [0x0044eec0]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW
xor ecx, ecx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00426450]
call fcn.0040d300
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret

Function at 0x428350
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.0040a000
mov r13d, eax
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.00410d50
mov esi, eax
cmp esi, 0x104
jbe 0x4283ab
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00405db0
mov rdi, rax
jmp 0x4283af
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.00410d50
mov rcx, rdi
call sub.user32.dll_CharUpperW
xor ebx, ebx
xor ecx, ecx
mov edx, esi
sub edx, 1
mov eax, ecx
cmp eax, edx
jg 0x428405
sub edx, ecx
add edx, 1
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movsxd rcx, eax
movzx ecx, word [rdi + rcx*2]
xor ebx, ecx
add eax, 1
sub edx, 1
test edx, edx
jne 0x4283e6
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x428417
mov rcx, rdi
call fcn.00405de0
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x438fa0
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rbp, rsp
mov rbx, rcx
mov esi, r8d
mov edi, edx
test dl, dl
je 0x438fed
mov rcx, rbx
call fcn.0040a5e0
mov r13, rax
mov rcx, r13
call sub.kernel32.dll_DeleteFileW
test eax, eax
jne 0x438fed
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x438fed
mov ecx, 0x3e8
call sub.kernel32.dll_Sleep
mov rcx, r13
call sub.kernel32.dll_DeleteFileW
test sil, sil
je 0x43902e
mov rcx, rbx
call fcn.0040a5e0
mov rcx, rax
mov edx, 0x40000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
mov r13, rax
jmp 0x439068
mov rcx, rbx
call fcn.0040a5e0
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
mov r13, rax
cmp r13, 0xffffffffffffffff
jne 0x4390fd
mov ecx, 0x7d0
call sub.kernel32.dll_Sleep
test sil, sil
je 0x4390bd
mov rcx, rbx
call fcn.0040a5e0
mov rcx, rax
mov edx, 0x40000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
mov r13, rax
jmp 0x4390f7
mov rcx, rbx
call fcn.0040a5e0
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
mov r13, rax
cmp r13, 0xffffffffffffffff
je 0x439174
test dil, dil
je 0x43915c
mov rcx, r13
lea rdx, [0x0044e8dc]
mov r8d, 2
lea r9, [rbp + 0x4c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
test eax, eax
jne 0x439154
mov ecx, 0x7d0
call sub.kernel32.dll_Sleep
mov rcx, r13
lea rdx, [0x0044e8dc]
mov r8d, 2
lea r9, [rbp + 0x4c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov rcx, r13
call sub.kernel32.dll_SetEndOfFile
test sil, sil
je 0x439174
mov rcx, r13
xor edx, edx
xor r8, r8
mov r9d, 2
call sub.kernel32.dll_SetFilePointer
mov rax, r13
lea rsp, [rbp + 0x50]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x439190
Capabilities:
Write file on windows

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbp, rsp
mov rbx, rcx
cmp rbx, 0xffffffffffffffff
je 0x439297
test rbx, rbx
je 0x439297
xor esi, esi
mov rdi, rdx
test rdi, rdi
je 0x4391c0
mov esi, dword [rdi - 4]
mov rcx, rdx
call fcn.0040a5e0
mov r13, rax
mov eax, esi
imul eax, eax, 2
jno 0x4391d7
call fcn.00406f90
test eax, eax
jge 0x4391e0
call fcn.00406f70
mov rcx, rbx
mov rdx, r13
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
test eax, eax
jne 0x439245
mov ecx, 0x12c
call sub.kernel32.dll_Sleep
xor eax, eax
test rdi, rdi
je 0x439213
mov eax, dword [rdi - 4]
imul eax, eax, 2
jno 0x43921d
call fcn.00406f90
test eax, eax
jge 0x439226
call fcn.00406f70
mov rcx, rbx
mov rdx, r13
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
test eax, eax
je 0x439297
mov rcx, rbx
lea rdx, [0x0044e8de]
mov r8d, 4
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
test eax, eax
jne 0x439297
mov ecx, 0x12c
call sub.kernel32.dll_Sleep
mov rcx, rbx
lea rdx, [0x0044e8de]
mov r8d, 4
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x439d90
Capabilities:
Check if file exists

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x2a0
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
mov r13, r8
lea rdi, [rbp + 0x280]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
xor esi, esi
lea rcx, [rbp + 0x38]
mov edx, 0x248
xor r8, r8
call fcn.00406810
mov dword [rbp + 0x38], 0x248
mov rcx, rbx
lea rdx, [rbp + 0x280]
lea r8, [rbp + 0x38]
mov rax, qword [0x0044ee60]
call qword [rax]
test eax, eax
jne 0x439e19
call sub.kernel32.dll_GetLastError
mov rcx, qword [0x00438cd8]
lea rdx, [0x00439fb8]
lea r8, [0x00439fe8]
xor r9, r9
mov dword [rsp + 0x20], eax
call fcn.00439400
jmp 0x439f9a
lea rax, [rbp + 0x40]
or dword [rax], 0x4000800
mov rcx, rbx
lea rdx, [rbp + 0x280]
lea r8, [rbp + 0x38]
mov rax, qword [0x0044f100]
call qword [rax]
test eax, eax
je 0x439f74
mov rcx, rbx
lea rdx, [rbp + 0x280]
mov r8d, 1
mov rax, qword [0x0044ee88]
call qword [rax]
test eax, eax
jne 0x439ed6
call sub.kernel32.dll_GetLastError
cmp eax, 2
jne 0x439eab
call sub.kernel32.dll_GetLastError
mov rcx, qword [0x00438cd8]
lea rdx, [0x00439fb8]
lea r8, [0x0043a03c]
lea r9, [0x0043a088]
mov dword [rsp + 0x20], eax
call fcn.00439400
mov rcx, qword [0x0045caf0]
lea rdx, [0x0043a0c0]
call fcn.00439190
jmp 0x439f9a
call sub.kernel32.dll_GetLastError
mov rcx, qword [0x00438cd8]
lea rdx, [0x00439fb8]
lea r8, [0x0043a03c]
xor r9, r9
mov dword [rsp + 0x20], eax
call fcn.00439400
jmp 0x439f9a
mov rcx, rbx
lea rdx, [rbp + 0x280]
mov r8d, 1
xor r9, r9
mov qword [rsp + 0x20], r13
mov rax, qword [0x0044ef48]
call qword [rax]
test eax, eax
jne 0x439f6f
call sub.kernel32.dll_GetLastError
cmp eax, 0x103
jne 0x439f47
call sub.kernel32.dll_GetLastError
mov rcx, qword [0x00438cd8]
lea rdx, [0x00439fb8]
lea r8, [0x0043a0f0]
lea r9, [0x0043a134]
mov dword [rsp + 0x20], eax
call fcn.00439400
mov rcx, qword [0x0045caf0]
lea rdx, [0x0043a168]
call fcn.00439190
jmp 0x439f9a
call sub.kernel32.dll_GetLastError
mov rcx, qword [0x00438cd8]
lea rdx, [0x00439fb8]
lea r8, [0x0043a0f0]
xor r9, r9
mov dword [rsp + 0x20], eax
call fcn.00439400
jmp 0x439f9a
mov sil, 1
jmp 0x439f9a
call sub.kernel32.dll_GetLastError
mov rcx, qword [0x00438cd8]
lea rdx, [0x00439fb8]
lea r8, [0x0043a19c]
xor r9, r9
mov dword [rsp + 0x20], eax
call fcn.00439400
mov eax, esi
lea rsp, [rbp + 0x2a0]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x43d0d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov rbx, rcx
mov esi, edx
mov rcx, rbx
call fcn.0040a5e0
mov rdi, rax
mov rcx, rdi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x43d177
mov ecx, eax
test ecx, 0x400
je 0x43d16c
test sil, sil
jne 0x43d10f
mov al, 1
jmp 0x43d1a0
test eax, 0x10
je 0x43d11e
xor eax, eax
jmp 0x43d1a0
mov rcx, rdi
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x43d15f
mov rcx, rax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x43d1a0
call sub.kernel32.dll_GetLastError
cmp eax, 0x20
sete al
jmp 0x43d1a0
test eax, 0x10
sete al
jmp 0x43d1a0
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x43d19a
cmp eax, 3
je 0x43d19a
cmp eax, 0x7b
je 0x43d19a
mov rcx, rbp
mov rdx, rbx
call fcn.0043d080
test al, al
jne 0x43d19e
xor eax, eax
jmp 0x43d1a0
mov al, 1
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x43d1b0
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
nop
call sub.kernel32.dll_GetCommandLineW
mov rcx, qword [rbp + 0x28]
mov rdx, rax
call fcn.0043d060
lea rcx, [rbp + 0x60]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
call fcn.0043d000
lea rcx, [rbp + 0x58]
xor edx, edx
call fcn.00406420
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x58]
call fcn.0043d000
mov eax, 1
movsxd rax, eax
mov rcx, qword [rbp + 0x28]
mov rcx, qword [rcx]
test rcx, rcx
je 0x43d259
lea rdx, [rax - 1]
mov r8d, dword [rcx - 4]
cmp rdx, r8
jb 0x43d25e
call fcn.00406f70
cmp word [rcx + rax*2 - 2], 0x22
jne 0x43d32b
mov rbx, qword [rbp + 0x68]
mov rsi, qword [rbp + 0x60]
mov rcx, rbx
mov rdx, rsi
mov r8d, 1
call fcn.0040abd0
cmp eax, 2
jne 0x43d2ba
xor eax, eax
test rbx, rbx
je 0x43d292
mov eax, dword [rbx - 4]
mov rdx, qword [rbp + 0x28]
mov rcx, rdx
mov rdx, qword [rdx]
mov r8d, eax
add r8d, 3
jno 0x43d2aa
call fcn.00406f90
mov r9d, 0x3e8
call fcn.0040ab70
jmp 0x43d3e0
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x68]
call fcn.0043cfa0
mov rax, qword [rbp + 0x50]
mov rcx, rax
mov rdx, rsi
mov r8d, 1
call fcn.0040abd0
cmp eax, 2
jne 0x43d3fe
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x68]
call fcn.0043cfa0
mov rax, qword [rbp + 0x48]
xor ecx, ecx
test rax, rax
je 0x43d300
mov ecx, dword [rax - 4]
mov rdx, qword [rbp + 0x28]
mov rax, rdx
mov rdx, qword [rdx]
mov r8d, ecx
add r8d, 3
jno 0x43d318
call fcn.00406f90
mov r9d, 0x3e8
mov rcx, rax
call fcn.0040ab70
jmp 0x43d3e0
mov rbx, qword [rbp + 0x68]
mov rsi, qword [rbp + 0x60]
mov rcx, rbx
mov rdx, rsi
mov r8d, 1
call fcn.0040abd0
cmp eax, 1
jne 0x43d378
xor eax, eax
test rbx, rbx
je 0x43d353
mov eax, dword [rbx - 4]
mov rdx, qword [rbp + 0x28]
mov rcx, rdx
mov rdx, qword [rdx]
mov r8d, eax
add r8d, 1
jno 0x43d36b
call fcn.00406f90
mov r9d, 0x3e8
call fcn.0040ab70
jmp 0x43d3e0
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0x68]
call fcn.0043cfa0
mov rax, qword [rbp + 0x40]
mov rcx, rax
mov rdx, rsi
mov r8d, 1
call fcn.0040abd0
cmp eax, 1
jne 0x43d3fe
lea rcx, [rbp + 0x38]
mov rdx, qword [rbp + 0x68]
call fcn.0043cfa0
mov rax, qword [rbp + 0x38]
xor ecx, ecx
test rax, rax
je 0x43d3ba
mov ecx, dword [rax - 4]
mov rdx, qword [rbp + 0x28]
mov rax, rdx
mov rdx, qword [rdx]
mov r8d, ecx
add r8d, 1
jno 0x43d3d2
call fcn.00406f90
mov r9d, 0x3e8
mov rcx, rax
call fcn.0040ab70
lea rcx, [rbp + 0x30]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
call fcn.0043cdd0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.00409e10
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.004098f0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbx
pop rsi
pop rbp
ret