joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450268
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc4
push ebx
xor ebx, ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4504a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.00409c60
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize
mov ebx, eax
test ebx, ebx
jne 0x45033f
cmp dword [ebp - 0x14], 0
jne 0x45033f
xor edx, edx
mov eax, 6
call fcn.004584b8
test al, al
je 0x45033f
push 2
push 0x104
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFinalPathNameByHandleW
test eax, eax
jbe 0x45033f
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040ac78
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.00450048
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 8]
call fcn.0040a040
mov byte [ebp - 9], 1
jmp 0x450487
test ebx, ebx
jne 0x45034d
cmp dword [ebp - 0x14], 0
je 0x45043b
push 0
push 1
push 0
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3ee
je 0x45043b
xor eax, eax
push ebp
push 0x450434
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x45041d
xor eax, eax
push ebp
push 0x450416
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
call sub.kernel32.dll_GetCurrentProcess
lea ecx, [ebp - 0x224]
mov edx, dword [ebp - 0x18]
call fcn.004407a4
test eax, eax
jbe 0x4503ff
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040ac78
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.00450048
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.0040a040
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45041d
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45043b
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret
cmp byte [ebp - 9], 0
jne 0x450487
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 4]
call fcn.00450184
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 8]
call fcn.0040a040
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x450487
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00450048
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 8]
call fcn.0040a040
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4504ac
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.00409cc0
ret
Function at 0x4504b8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov byte [ebp - 1], 0
xor edx, edx
mov eax, 6
call fcn.004584b8
test al, al
je 0x450580
xor edx, edx
mov eax, ebx
call fcn.00451eb0
test al, al
je 0x450580
mov eax, ebx
call fcn.00451be0
test al, 0x20
je 0x450580
mov eax, ebx
call fcn.0040abbc
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x450580
test ah, 4
je 0x450580
test al, 0x10
je 0x45051f
mov edi, 0x2000000
jmp 0x450521
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040abbc
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x450580
xor eax, eax
push ebp
push 0x450579
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.00450268
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450580
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x450878
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4508d1
test eax, edx
je 0x4508d4
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x45088f
movzx eax, word [eax]
sub eax, ecx
jmp 0x4508b6
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4508b7
add ecx, 4
js 0x4508a7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4508b4
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4508b6
xor eax, eax
ret
test eax, eax
je 0x4508e0
test edx, edx
jne 0x450880
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x451be0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x451d44
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x451b80]
call fcn.0040c074
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x451bb0]
call fcn.0040c074
add esp, 4
movzx ebx, byte [0x451d54]
mov dl, 1
mov eax, esi
call fcn.00451f48
test al, al
jne 0x451c5a
mov dl, 1
mov eax, esi
call fcn.00451eb0
test al, al
je 0x451ce4
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00452718
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.004589e8
push 0x104
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x104
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040abbc
mov esi, eax
push esi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x451cdf
test byte [ebp - 0x14], 1
je 0x451caa
or bl, 1
test byte [ebp - 0x14], 2
je 0x451cb3
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x451cbc
or bl, 0x20
push esi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x451cd0
dec eax
je 0x451cd5
dec eax
je 0x451cda
dec eax
jne 0x451d05
or bl, 0x10
jmp 0x451d05
or bl, 4
jmp 0x451d05
or bl, 8
jmp 0x451d05
call fcn.0045917c
lea edx, [ebp - 0x20]
mov eax, dword [0x718560]
call fcn.0040dc14
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x44b128]
call fcn.004574fc
call fcn.00409320
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451d4b
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00409cc0
lea eax, [ebp - 0xc]
mov edx, dword [0x451bb0]
call fcn.0040c198
lea eax, [ebp - 8]
mov edx, dword [0x451b80]
call fcn.0040c198
lea eax, [ebp - 4]
call fcn.00409c60
ret

Function at 0x451db0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040abbc
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x451f1a
test ah, 4
je 0x451f13
test bl, bl
jne 0x451ed8
mov al, 1
jmp 0x451f41
test al, 0x10
je 0x451ee0
xor eax, eax
jmp 0x451f41
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x451f04
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x451f41
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x451f41
test al, 0x10
sete al
jmp 0x451f41
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x451f3b
cmp ebx, 3
je 0x451f3b
cmp ebx, 0x7b
je 0x451f3b
mov eax, esi
call fcn.00451e70
test al, al
jne 0x451f3f
xor eax, eax
jmp 0x451f41
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x451f48
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.0040abbc
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x451fef
test esi, 0x400
jne 0x451f84
test esi, 0x10
setne bl
jmp 0x452013
cmp byte [esp], 0
je 0x451fb8
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x452013
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x452013
test esi, 0x10
je 0x451fc4
mov bl, 1
jmp 0x452013
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x451feb
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x452013
mov bl, 1
jmp 0x452013
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x45200d
cmp eax, 3
je 0x45200d
cmp eax, 0x7b
je 0x45200d
cmp eax, 0x35
je 0x45200d
cmp eax, 0x15
jne 0x452011
xor ebx, ebx
jmp 0x452013
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x452120
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4521c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040abbc
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
test edi, 0x400
setne al
test al, bl
je 0x4521aa
or edi, 0xffffffff
lea edx, [ebp - 4]
mov eax, esi
call fcn.004504b8
test al, al
je 0x4521aa
mov eax, dword [ebp - 4]
call fcn.00452900
test al, al
je 0x45219a
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00452674
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.004589e8
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
call fcn.0040ae28
mov eax, dword [ebp - 4]
call fcn.0040abbc
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4521cc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00409cc0
ret
Function at 0x4521d8
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4522ab
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a088
cmp byte [ebp - 9], 0
je 0x452269
mov eax, ebx
call fcn.0040abbc
push eax
call sub.kernel32.dll_GetFileAttributesW
test ah, 4
je 0x452269
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004504b8
test al, al
je 0x452269
mov eax, dword [ebp - 8]
call fcn.00452900
test al, al
je 0x45225e
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00452674
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004589e8
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.0040ae28
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040a088
push edi
mov eax, dword [ebp - 4]
call fcn.0040abbc
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x452283
call sub.kernel32.dll_GetLastError
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4522b2
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409cc0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409cc0
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x452367
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, esi
call fcn.0040abbc
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
cmp edi, 0xffffffff
je 0x45234c
test edi, 0x400
je 0x452343
lea edx, [ebp - 4]
mov eax, esi
call fcn.004504b8
test al, al
je 0x452343
mov eax, dword [ebp - 4]
call fcn.00452900
test al, al
je 0x452333
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00452674
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.004589e8
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
call fcn.0040ae28
mov eax, dword [ebp - 4]
call fcn.0040abbc
push eax
call sub.kernel32.dll_GetFileAttributesW
inc edi
or bh, ah
invalid
mov edi, eax
test edi, 1
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45236e
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00409cc0
ret

Function at 0x452490
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.0040abbc
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4524e5
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4524df
test ah, 4
je 0x4524df
test al, 0x10
je 0x4524df
mov eax, esi
call fcn.0040abbc
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4524e5
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x456654
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x45668d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409de8
jmp 0x456696
mov eax, ebx
mov edx, esi
call fcn.0040a040
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4566a0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4566c2
movzx eax, word [esp]
jmp 0x4566c4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4573ac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4574d1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004571b4
mov esi, eax
mov eax, dword [0x718440]
cmp byte [eax], 0
je 0x457479
mov eax, dword [0x718030]
call fcn.0040738c
call fcn.00406620
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x45737c]
call fcn.0040c074
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4574ec
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x4574b5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x717f7c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x71bc50]
call fcn.0040c288
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4574d8
lea eax, [ebp - 4]
mov edx, dword [0x45737c]
call fcn.0040c198
ret
Function at 0x4584d8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4585ae
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a088
lea eax, [ebp - 4]
call fcn.0040a228
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040abbc
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x458598
mov eax, ebx
call fcn.0040647c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x458591
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040abbc
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x45857b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4585c0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x45857b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458598
mov eax, dword [ebp - 0x10]
call fcn.00406498
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4585b5
lea eax, [ebp - 4]
call fcn.00409c60
ret

Function at 0x458fc0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040a168
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040dca8
mov edi, eax
cmp edi, 0x104
jbe 0x458f67
mov eax, edi
add eax, eax
call fcn.0040647c
mov esi, eax
jmp 0x458f69
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040dca8
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x458fa4
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x458f8e
mov eax, esp
cmp esi, eax
je 0x458fb1
mov eax, esi
call fcn.00406498
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x458fec
cmp bl, 0
je 0x458fe8
cmp bl, 0x41
jl 0x458fe3
cmp bl, 0x5a
jg 0x458fe3
or bl, 0x20
xor al, bl
inc esi
jmp 0x458fc7
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x458f28

Function at 0x459868
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040ac78
add esp, 0x800
pop ebx
ret
Function at 0x459d40
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00409c60
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040abbc
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x459d85
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00409de8
jmp 0x459d9e
mov edx, ebx
dec edx
mov eax, esi
call fcn.0040ad50
push ebx
mov eax, dword [esi]
call fcn.0040abbc
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x46a300
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x214], edx
mov dword [ebp - 0x218], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46a56e
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x46a43c
lea eax, [ebp - 0x20a]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathW
test eax, eax
jbe 0x46a386
mov eax, ebx
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.0040ac78
jmp 0x46a38d
mov eax, ebx
call fcn.00409c60
cmp dword [ebx], 0
jne 0x46a3a0
mov ecx, ebx
xor edx, edx
mov eax, 0x1a
call fcn.0046c610
cmp dword [ebx], 0
je 0x46a52a
push 0
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_CreateDirectoryW
mov eax, dword [ebx]
call fcn.0040a150
mov edx, dword [ebx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x46a3d4
mov eax, ebx
mov edx, 0x46a588
call fcn.0040add0
push dword [ebx]
lea edx, [ebp - 0x218]
xor eax, eax
call fcn.0046a048
mov eax, dword [ebp - 0x218]
lea edx, [ebp - 0x214]
call fcn.00418168
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 0x210]
call fcn.0046a0fc
push dword [ebp - 0x210]
push 0x46a598
mov eax, ebx
mov edx, 3
call fcn.0040aeb0
push 0
mov eax, dword [ebx]
call fcn.0040abbc
push eax
call sub.kernel32.dll_CreateDirectoryW
mov eax, ebx
mov edx, 0x46a588
call fcn.0040add0
jmp 0x46a52a
lea eax, [ebp - 0x20a]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
test eax, eax
jbe 0x46a523
lea eax, [ebp - 0x21c]
lea esi, [ebp - 0x20a]
mov edx, esi
mov ecx, 0
call fcn.0040a3a8
mov edx, dword [ebp - 0x21c]
mov eax, ebx
call fcn.0040ac94
cmp dword [ebx], 0
je 0x46a52a
push 0
push esi
call sub.kernel32.dll_CreateDirectoryA
mov eax, dword [ebx]
call fcn.0040a150
mov edx, dword [ebx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x46a4a8
mov eax, ebx
mov edx, 0x46a588
call fcn.0040add0
push dword [ebx]
lea edx, [ebp - 0x228]
xor eax, eax
call fcn.0046a048
mov eax, dword [ebp - 0x228]
lea edx, [ebp - 0x224]
call fcn.00418168
mov eax, dword [ebp - 0x224]
lea edx, [ebp - 0x220]
call fcn.0046a0fc
push dword [ebp - 0x220]
push 0x46a598
mov eax, ebx
mov edx, 3
call fcn.0040aeb0
push 0
lea eax, [ebp - 0x22c]
mov edx, dword [ebx]
mov ecx, 0
call fcn.0040a85c
mov eax, dword [ebp - 0x22c]
call fcn.0040a6b0
push eax
call sub.kernel32.dll_CreateDirectoryA
mov eax, ebx
mov edx, 0x46a588
call fcn.0040add0
jmp 0x46a52a
mov eax, ebx
call fcn.00409c60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a575
lea eax, [ebp - 0x22c]
call fcn.00409c84
lea eax, [ebp - 0x228]
mov edx, 3
call fcn.00409cc0
lea eax, [ebp - 0x21c]
call fcn.00409c84
lea eax, [ebp - 0x218]
mov edx, 3
call fcn.00409cc0
ret