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

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x0048a098], 0
je 0x409e5e
cmp word [0x0048a3a8], 0xd7b2
jne 0x409df3
cmp dword [0x0048a3b0], 0
jbe 0x409df3
lea rcx, [0x0048a3a0]
call qword [0x0048a3c8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x0047b7e0]
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, [0x00409e94]
call fcn.0040b0f0
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x409e80
cmp byte [0x0047a052], 0
jne 0x409e80
xor rcx, rcx
lea rdx, [0x0047b7e0]
lea r8, [0x0047b6f0]
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40cfd0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x0048ec80]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x0048eca8], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x0048ec78], al
cmp byte [0x0048ec78], 0
je 0x40d06f
lea rcx, [0x0040d074]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040d08e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0048ec60], rax
lea rcx, [0x0040d074]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040d0ac]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0048ec68], rax
lea rcx, [0x0040d074]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040d0ca]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0048ec70], rax
add rsp, 0x28
ret
Function at 0x40d340
Capabilities:
Get geographical location

Disassembly:
push rbp
sub rsp, 0x1d0
mov rbp, rsp
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x40], rdx
mov word [rbp + 0x4e], r8w
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
call fcn.0040a270
movzx rax, word [rbp + 0x4e]
cmp word [0x0047bdd0], ax
ja 0x40d428
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x0047c1d0]
mov word [rbp + 0x4e], ax
ja 0x40d428
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x40d427
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x0047bdd0]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x40d3e1
mov ecx, eax
sub ecx, 1
jmp 0x40d422
lea rdx, [0x0047bdd0]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x40d403
mov r8d, eax
add r8d, 1
jmp 0x40d422
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x0047bdd8]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.0040d1e0
jmp 0x40d427
cmp ecx, r8d
jae 0x40d3b0
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x40d50a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d50a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x59
lea r8, [rbp + 0x126]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
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.0040b790
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040b790
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040b790
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x0040d564]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x0040d574]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040bb80
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040a350
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x40d780
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, [0x0048ec80]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x0048eca8], ax
jne 0x40d7eb
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0048ecaa]
mov r8d, 0x55
call fcn.0040b790
lea rcx, [0x0048ec80]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40d8f6
lea rcx, [0x0048ec80]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.0040a270
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d8b0
cmp byte [0x0048ec78], 0
je 0x40d844
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.0040d610
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040a850
jmp 0x40d8b0
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.0040d340
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040a850
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x40d8b0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x40d88f
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0040d944]
call fcn.0040b970
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.0040d340
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.0040b970
lea rcx, [0x0048ec80]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x0048eca8], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040b6c0
lea rcx, [0x0048ecaa]
mov edx, 0xaa
mov r8, rax
call fcn.0040d100
lea rcx, [0x0048ec80]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040a350
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40e460
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.0040a400
mov rcx, qword [rbp + 0x90]
call fcn.0040a400
nop
mov rcx, qword [rbp + 0x28]
call fcn.0040a270
cmp qword [rbp + 0x90], 0
je 0x40e626
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.0040a8d0
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x40e511
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x40e54b
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x40e544
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.0040bc70
jmp 0x40e54b
sub eax, 1
test eax, eax
jne 0x40e516
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.0040e030
cmp qword [rbp + 0x68], 0
je 0x40e589
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.0040e1e0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.0040a850
jmp 0x40e625
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.0040d780
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.0040e1e0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.0040a850
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40e5fe
cmp byte [0x0048ec78], 0
jne 0x40e5fe
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.0040d780
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.0040e1e0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040a850
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40e625
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.0040e320
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.0040a850
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.0040a350
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040a350
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x40efc0
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 0x40efe0
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 0x40f004
cmp eax, 1
jae 0x40f009
cmp ecx, 5
jbe 0x40f015
mov dword [0x0048a9a0], 0x7f
jmp 0x40f01f
mov dword [0x0048a9a0], 0x409
add rsp, 0x28
ret
Function at 0x40f2c0
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.0040f2b0
mov ebx, eax
test ebx, ebx
je 0x40f30b
cmp dword [0x0047c604], 0xffffffff
jne 0x40f2e4
mov ecx, 0xe2
call fcn.0040a060
mov ecx, ebx
call fcn.0040f290
test rax, rax
jne 0x40f2fd
mov ecx, 0xe2
call fcn.0040a060
jmp 0x40f30b
mov ecx, dword [0x0047c604]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x40f320
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x0048ed54], 0
je 0x40f35b
mov ecx, dword [0x0047c604]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40f36f
call fcn.0040f2c0
mov ecx, dword [0x0047c604]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40f36f
mov rax, qword [0x0048ed88]
jmp 0x40f36f
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x0047c604]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x41d4b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbp, rsp
mov rbx, rcx
mov esi, edx
xor rdi, rdi
mov rcx, rbx
call fcn.0040b6c0
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov r13d, eax
cmp r13d, 0xffffffff
je 0x41d5c0
mov eax, r13d
test eax, 0x400
jne 0x41d4fe
test r13d, 0x10
setne dil
jmp 0x41d5f3
test sil, sil
je 0x41d55e
mov rcx, rbx
call fcn.0040b6c0
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x2000000
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW_1
cmp rax, 0xffffffffffffffff
je 0x41d5f3
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
test r13d, 0x10
setne dil
jmp 0x41d5f3
test r13d, 0x10
je 0x41d56f
mov dil, 1
jmp 0x41d5f3
mov rcx, rbx
call fcn.0040b6c0
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x2000000
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW_1
cmp rax, 0xffffffffffffffff
je 0x41d5bb
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
xor rdi, rdi
jmp 0x41d5f3
mov dil, 1
jmp 0x41d5f3
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41d5eb
cmp eax, 3
je 0x41d5eb
cmp eax, 0xa1
je 0x41d5eb
cmp eax, 0x7b
je 0x41d5eb
cmp eax, 0x35
je 0x41d5eb
cmp eax, 0x15
je 0x41d5eb
cmp eax, 0x43
jne 0x41d5f0
xor rdi, rdi
jmp 0x41d5f3
mov dil, 1
mov eax, edi
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x4202c0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
mov rbp, rsp
movdqa xmmword [rbp + 0x20], xmm6
mov rbx, rdx
movapd xmm6, xmm2
mov rcx, rbx
mov edx, 0xa
xor r8, r8
call fcn.00406310
movsd xmm0, qword [0x00420380]
comisd xmm0, xmm6
jbe 0x4202f9
mov byte [rbx + 9], 0x80
movapd xmm0, xmm6
call fcn.00405cb0
call fcn.00405bc0
mov rcx, rax
xor r8, r8
jmp 0x420361
mov r9d, 0x64
mov rax, rcx
cqo
idiv r9
mov r9, rdx
movsxd r10, r8d
mov r11d, 0xa
mov eax, r9d
cdq
idiv r11d
mov r11, rdx
mov esi, 0xa
mov eax, r9d
cdq
idiv esi
shl eax, 4
add r11b, al
mov byte [rbx + r10], r11b
mov r9d, 0x64
mov rax, rcx
cqo
idiv r9
mov rcx, rax
add r8d, 1
test rcx, rcx
jle 0x42036c
cmp r8d, 9
jl 0x42030f
mov rax, rbx
movdqa xmm6, xmmword [rbp + 0x20]
lea rsp, [rbp + 0x30]
pop rbx
pop rsi
pop rbp
ret

Function at 0x424270
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov ebx, r8d
lea r8, [rbp + 0x2c]
mov r9d, 2
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x424297
movzx rax, word [rbp + 0x2c]
jmp 0x424299
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret

Function at 0x4258d0
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.00425670
mov ebx, eax
mov rax, qword [0x00489b10]
cmp byte [rax], 0
je 0x425a08
mov rcx, qword [0x00489678]
call fcn.00406260
call fcn.004055b0
mov ecx, 1
xor rdx, rdx
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_1
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00425890]
mov r8d, 1
movsxd r9, esi
call fcn.0040cc30
mov ecx, 1
xor rdx, rdx
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_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
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_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
lea rdx, [0x00425aa8]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x425a4e
mov rcx, qword [0x0048ed58]
call fcn.0040cda0
mov rcx, rax
mov rax, qword [0x004895f0]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW_1
xor rcx, rcx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00425890]
call fcn.0040cc70
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret
Function at 0x4279b0
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.0040aa40
mov r13d, eax
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.0040efa0
mov esi, eax
cmp esi, 0x104
jbe 0x427a0d
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00405270
mov rdi, rax
jmp 0x427a11
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.0040efa0
mov rax, rdi
mov rcx, rax
call sub.user32.dll_CharUpperW
xor rbx, rbx
xor rax, rax
mov ecx, esi
sub ecx, 1
cmp eax, ecx
jg 0x427a67
add ecx, 1
mov edx, ebx
shl edx, 5
shr ebx, 0x1b
or edx, ebx
mov ebx, edx
movsxd rdx, eax
movzx edx, word [rdi + rdx*2]
xor ebx, edx
add eax, 1
cmp eax, ecx
jne 0x427a4b
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x427a79
mov rcx, rdi
call fcn.004052a0
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x4321b0
Capabilities:
Query environment variable

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x28
call sub.kernel32.dll_GetEnvironmentStringsW
mov rbx, rax
xor rsi, rsi
test rbx, rbx
je 0x43220a
mov rcx, rbx
call fcn.004325b0
mov edi, eax
movsxd rcx, edi
call fcn.00405270
mov r13, rax
mov rcx, r13
movsxd rdx, edi
xor r8, r8
call fcn.00406310
mov rsi, r13
test r13, r13
je 0x432202
mov rcx, rbx
mov rdx, r13
movsxd r8, edi
call fcn.00405640
mov rcx, rbx
call sub.kernel32.dll_FreeEnvironmentStringsW
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x432270
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
xor rsi, rsi
mov rcx, rbx
lea rdx, [0x004a2b70]
mov r8d, 0x2001
call sub.kernel32.dll_GetEnvironmentVariableW
test eax, eax
je 0x4322a2
lea rsi, [0x004a2b70]
jmp 0x432445
mov rax, qword [0x004895e8]
cmp byte [rax], 0
je 0x432445
mov rcx, rbx
lea rdx, [0x00432450]
call fcn.0041dae0
test eax, eax
jne 0x4322e0
lea rcx, [0x004a2b70]
xor rdx, rdx
call fcn.00434760
lea rsi, [0x004a2b70]
jmp 0x432445
mov rcx, rbx
lea rdx, [0x00432456]
call fcn.0041dae0
test eax, eax
jne 0x43231b
mov rax, qword [0x00489a80]
mov ecx, dword [rax]
lea rdx, [0x004a2b70]
mov r8d, 0xa
call sub.msvcrt.dll__ltow
lea rsi, [0x004a2b70]
jmp 0x432445
mov rcx, rbx
lea rdx, [0x0043246c]
call fcn.0041dae0
test eax, eax
jne 0x432353
mov ecx, 2
lea rdx, [0x004a2b70]
mov r8d, 0xa
call sub.msvcrt.dll__ultow
lea rsi, [0x004a2b70]
jmp 0x432445
mov rcx, rbx
lea rdx, [0x00432488]
call fcn.0041dae0
test eax, eax
jne 0x432373
call sub.kernel32.dll_GetCommandLineW_1
mov rsi, rax
jmp 0x432445
mov rcx, rbx
lea rdx, [0x0043249e]
call fcn.0041dae0
test eax, eax
jne 0x4323be
xor rcx, rcx
mov edx, 1
lea r8, [0x004a2b70]
mov r9d, 0x2001
call fcn.0042d370
lea rcx, [0x004a2b70]
movsxd rax, eax
mov word [rcx + rax*2], 0
lea rsi, [0x004a2b70]
jmp 0x432445
mov rcx, rbx
lea rdx, [0x004324a8]
call fcn.0041dae0
test eax, eax
jne 0x432406
xor rcx, rcx
mov edx, 1
lea r8, [0x004a2b70]
mov r9d, 0x2001
call fcn.0042d9c0
lea rcx, [0x004a2b70]
movsxd rax, eax
mov word [rcx + rax*2], 0
lea rsi, [0x004a2b70]
jmp 0x432445
mov rcx, rbx
lea rdx, [0x004324b2]
call fcn.0041dae0
test eax, eax
jne 0x432445
call fcn.00405960
mov ecx, 0x7fff
call fcn.00405990
mov ecx, eax
lea rdx, [0x004a2b70]
mov r8d, 0xa
call sub.msvcrt.dll__ultow
lea rsi, [0x004a2b70]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x432580
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
call sub.kernel32.dll_SetEnvironmentStringsW
mov rcx, qword [0x004a2b50]
call fcn.004052a0
call fcn.004321b0
mov qword [0x004a2b50], rax
add rsp, 0x28
ret
Function at 0x4325e0
Capabilities:
Set environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rsi, rdx
mov rax, qword [0x00489880]
mov byte [rax], 0
test rsi, rsi
je 0x432608
mov rax, rsi
mov rcx, rax
call fcn.0040aa60
jmp 0x43260b
xor rax, rax
test eax, eax
jne 0x432612
xor rsi, rsi
mov rcx, rbx
mov rdx, rsi
call sub.kernel32.dll_SetEnvironmentVariableW
mov ebx, eax
mov rcx, qword [0x004a2b50]
call fcn.004052a0
call fcn.004321b0
mov qword [0x004a2b50], rax
test ebx, ebx
sete al
movzx rax, al
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x434020
Capabilities:
Enumerate files on windows

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov esi, r8d
mov rdi, r9
xor r13, r13
mov rcx, rdx
mov rdx, rdi
call sub.kernel32.dll_FindFirstFileW_1
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
jmp 0x434096
mov rcx, rdi
mov edx, esi
call rbx
test al, al
je 0x434067
mov rax, qword [0x00489ad8]
mov dword [rax], 0
mov r13b, 1
jmp 0x4340a1
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
mov rdx, rdi
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x434096
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call sub.kernel32.dll_FindClose_1
mov rax, qword [rsp + 0x70]
mov qword [rax], 0xffffffffffffffff
jmp 0x4340a1
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0xffffffffffffffff
jne 0x43404a
nop
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0xffffffffffffffff
je 0x434102
lea rcx, [0x004a7018]
mov rdx, qword [0x00433fc0]
mov r8d, 1
mov r9d, dword [0x0047f36c]
add r9d, 1
mov r9d, r9d
call fcn.0040cc30
cmp qword [0x004a7018], 0
je 0x4340ff
mov rax, qword [0x004a7018]
mov ecx, dword [0x0047f36c]
mov rdx, qword [rsp + 0x70]
mov rdx, qword [rdx]
mov qword [rax + rcx*8], rdx
add dword [0x0047f36c], 1
mov r13b, 1
test r13b, r13b
jne 0x434115
call sub.kernel32.dll_GetLastError_2
mov rcx, qword [0x00489ad8]
mov dword [rcx], eax
mov eax, r13d
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r13
ret
Function at 0x434320
Capabilities:
Write file on windows

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rbx, rdx
mov esi, r8d
mov qword [rsp + 0x40], r9
mov eax, esi
mov dword [rsp + 0x4c], eax
call sub.msvcrt.dll__get_osfhandle
mov rdi, rax
cmp esi, 0x4000
jbe 0x4343e1
mov rax, qword [0x00489998]
mov ecx, dword [rax]
xor rdx, rdx
mov r8, rbx
mov r9d, 0x2000
mov rax, qword [0x00489550]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0x2000
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov r13d, eax
add rbx, 0x4000
sub esi, 0x4000
mov rcx, rdi
mov rdx, qword [0x00489550]
mov r8d, r13d
mov r9, qword [rsp + 0x40]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x4343cd
mov rax, qword [rsp + 0x40]
cmp dword [rax], r13d
je 0x4343d5
xor rax, rax
jmp 0x434468
cmp esi, 0x4000
ja 0x43434e
nop
test esi, esi
je 0x43445b
mov rax, qword [0x00489998]
mov ecx, dword [rax]
xor rdx, rdx
mov r8, rbx
or r9d, 0xffffffff
mov rax, qword [0x00489550]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0x2000
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
sub esi, 1
mov rcx, rdi
mov rdx, qword [0x00489550]
mov r8d, esi
mov r9, qword [rsp + 0x40]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x434456
mov rax, qword [rsp + 0x40]
cmp dword [rax], esi
je 0x43445b
xor rax, rax
jmp 0x434468
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov al, 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x434760
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
mov rbp, rsp
mov rbx, rcx
mov esi, edx
test si, si
jne 0x43478a
mov ecx, 0x104
mov rdx, rbx
call sub.kernel32.dll_GetCurrentDirectoryW
xor rax, rax
jmp 0x43480a
mov word [rbp + 0x28], 0x3d
mov eax, esi
mov ecx, esi
sub cx, 0x61
cmp cx, 0x1a
jae 0x4347a4
mov eax, esi
and ax, 0xffdf
mov word [rbp + 0x2a], ax
mov word [rbp + 0x2c], 0x3a
mov word [rbp + 0x2e], 0
lea rcx, [rbp + 0x28]
call fcn.00432270
test rax, rax
jne 0x4347fc
mov eax, esi
mov ecx, esi
sub cx, 0x61
cmp cx, 0x1a
jae 0x4347d6
mov eax, esi
and ax, 0xffdf
mov word [rbx], ax
add rbx, 2
mov word [rbx], 0x3a
add rbx, 2
mov word [rbx], 0x5c
add rbx, 2
mov word [rbx], 0
mov eax, 1
jmp 0x43480a
mov rcx, rbx
mov rdx, rax
call fcn.00429d70
xor rax, rax
lea rsp, [rbp + 0x30]
pop rbx
pop rsi
pop rbp
ret
Function at 0x4350e0
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x6a8
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.0043da10
mov rdi, rax
mov rcx, rdi
mov edx, 0x208
lea r8, [rbp + 0x36]
lea r9, [rbp + 0x28]
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
test esi, esi
je 0x435240
lea rdi, [rbp + 0x36]
mov rcx, rdi
lea rdx, [0x00435254]
mov r8d, 4
call fcn.0041dba0
test eax, eax
jne 0x4351b8
add rdi, 8
mov qword [rbp + 0x28], rdi
mov rcx, rbx
mov rdx, rdi
call fcn.0041dcf0
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x435197
cmp qword [rbp + 0x28], rbx
jbe 0x435197
mov rax, qword [rbp + 0x28]
movzx rdi, word [rax]
mov rax, qword [rbp + 0x28]
mov word [rax], 0
mov rcx, rbx
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
mov rax, qword [rbp + 0x28]
mov word [rax], di
cmp esi, 0xffffffff
je 0x43518f
test esi, esi
setne al
jmp 0x435245
xor rax, rax
jmp 0x435245
mov rcx, rbx
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x4351b0
test esi, esi
setne al
jmp 0x435245
xor rax, rax
jmp 0x435245
cmp qword [rbp + 0x28], 0
je 0x4351c9
mov rax, qword [rbp + 0x28]
cmp word [rax], 0
jne 0x4351de
mov rcx, rdi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne sil
movzx rsi, sil
jmp 0x435240
mov rcx, rdi
mov edx, 0x37
lea r8, [rbp + 0x450]
lea r9, [rbp + 0x448]
call fcn.00434130
mov esi, eax
movzx rsi, sil
mov rcx, qword [rbp + 0x448]
call fcn.00434200
test esi, esi
jne 0x435240
cmp word [rdi + 2], 0x5c
je 0x43522d
cmp word [rdi + 2], 0x3a
jne 0x435240
cmp word [rdi + 4], 0x5c
jne 0x435240
cmp word [rdi + 6], 0
jne 0x435240
mov rcx, rdi
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
jbe 0x435240
mov esi, 1
test esi, esi
setne al
lea rsp, [rbp + 0x6a8]
pop rbx
pop rsi
pop rdi
pop rbp
ret