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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
lea esi, [ecx + 0x1c]
push edi
lea eax, [ebp - 0x114]
push esi
push eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], esi
call fcn.0040bd70
lea eax, [ebp - 0x114]
push 0x41a68c
push eax
call fcn.0040bd80
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
call fcn.0040bd80
lea eax, [ebp - 0x114]
push eax
call fcn.0040be60
add esp, 0x1c
xor edi, edi
mov ebx, 0x80
push edi
push ebx
push 3
push edi
push 1
push 0x80000000
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
call esi
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x404e92
cmp eax, 0xffffffff
je 0x404e92
push edi
push ebx
push 2
push edi
push edi
lea eax, [ebp - 0x114]
push 0x40000000
push eax
call esi
cmp eax, edi
mov dword [ebp - 4], eax
je 0x404e89
cmp eax, 0xffffffff
je 0x404e89
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], edi
mov eax, dword [eax + 0x224]
cmp eax, edi
mov dword [ebp + 8], eax
jle 0x404e74
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, 0xfa00
cmp dword [ebp + 8], esi
lea eax, [ebp - 8]
push edi
push eax
jle 0x404e47
push esi
push dword [0x41ec14]
push dword [ebp - 0xc]
call ebx
lea eax, [ebp - 8]
push edi
push eax
push esi
jmp 0x404e5d
push dword [ebp + 8]
push dword [0x41ec14]
push dword [ebp - 0xc]
call ebx
lea eax, [ebp - 8]
push edi
push eax
push dword [ebp + 8]
push dword [0x41ec14]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub dword [ebp + 8], esi
cmp dword [ebp + 8], edi
jg 0x404e29
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
push 1
pop eax
jmp 0x404eb9
lea eax, [ebp - 0x114]
push eax
jmp 0x404e95
push dword [ebp - 4]
mov esi, 0x41eb10
push str.BackupFile_failed_for_file:_n_s
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
push 0x41a09c
push esi
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x404ec0
Capabilities:
Get file attributes
Get file size
Read file on windows
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov esi, 0x80
push ebx
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push 3
push ebx
push 1
push 0x80000000
mov dword [esp + 0x38], ecx
push dword [esp + 0x40]
call ebp
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x404f66
cmp eax, 0xffffffff
je 0x404f66
push ebx
push esi
push 2
push ebx
push ebx
push 0x40000000
push dword [esp + 0x44]
call ebp
mov edi, eax
mov dword [esp + 0x18], ebx
cmp edi, ebx
je 0x404f17
cmp edi, 0xffffffff
jne 0x404f72
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
mov dword [esp + 0x1c], eax
je 0x404f72
push esi
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push esi
push 2
push ebx
push ebx
push 0x40000000
push dword [esp + 0x44]
mov dword [esp + 0x34], 1
call ebp
mov edi, eax
cmp edi, ebx
je 0x404f58
cmp edi, 0xffffffff
jne 0x404f72
push dword [esp + 0x1c]
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push ebx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x28], eax
jle 0x404fe7
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, 0xfa00
cmp dword [esp + 0x28], esi
lea eax, [esp + 0x10]
push ebx
push eax
jle 0x404fb6
push esi
push dword [0x41ec14]
push dword [esp + 0x24]
call ebp
lea eax, [esp + 0x10]
push ebx
push eax
push esi
jmp 0x404fd0
push dword [esp + 0x30]
push dword [0x41ec14]
push dword [esp + 0x24]
call ebp
lea eax, [esp + 0x10]
push ebx
push eax
push dword [esp + 0x30]
push dword [0x41ec14]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub dword [esp + 0x28], esi
cmp dword [esp + 0x28], ebx
jg 0x404f94
mov eax, dword [esp + 0x20]
lea ecx, [eax + 4]
push ecx
lea ecx, [eax + 0xc]
add eax, 0x14
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
cmp dword [esp + 0x18], ebx
je 0x405021
push dword [esp + 0x1c]
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
pop eax
jmp 0x404f68
Function at 0x407c50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x407c5b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x407d5e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x417490]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x417490]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x417490]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x417490]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x417490]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x417490]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x417490]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x417490]
xor eax, edx
inc ecx
dec edi
jne 0x407c76
pop edi
test esi, esi
je 0x407d80
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x417490]
xor eax, edx
inc ecx
dec esi
jne 0x407d62
pop esi
pop ebx
not eax
ret
Function at 0x411d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41e1d8
cmp edx, dword [eax]
je 0x411d72
add eax, 8
inc ecx
cmp eax, 0x41e268
jl 0x411d63
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41e1d8]
jne 0x411ea0
mov eax, dword [0x41ecf0]
cmp eax, 1
je 0x411e7a
test eax, eax
jne 0x411da3
cmp dword [0x41bb64], 1
je 0x411e7a
cmp edx, 0xfc
je 0x411ea0
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x411dda
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040bd70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040be60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x411e1d
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040be60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4189c4
push edi
call fcn.0040cf50
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040bd70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040bd80
lea eax, [ebp - 0xa0]
push 0x4189a4
push eax
call fcn.0040bd80
push dword [esi + 0x41e1dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040bd80
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00414daf
add esp, 0x2c
pop edi
jmp 0x411ea0
lea eax, [ebp + 8]
lea esi, [esi + 0x41e1dc]
push 0
push eax
push dword [esi]
call fcn.0040be60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x429920
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19000]
push edi
jmp 0x42993a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x429941
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x429930
mov eax, 1
add ebx, ebx
jne 0x429953
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x429948
jne 0x429964
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x429948
xor ecx, ecx
sub eax, 3
jb 0x429978
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4299ea
mov ebp, eax
add ebx, ebx
jne 0x429983
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x429990
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4299b4
inc ecx
add ebx, ebx
jne 0x4299a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x429995
jne 0x4299b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x429995
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4299d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4299c5
jmp 0x429936
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4299d4
add edi, ecx
jmp 0x429936
pop esi
mov edi, esi
mov ecx, 0xa57
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4299f2
cmp byte [edi], 0x12
jne 0x4299f2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4299f7
lea edi, [esi + 0x27000]
mov eax, dword [edi]
or eax, eax
je 0x429a6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2d44c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2d52c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x429a24
mov ecx, edi
jns 0x429a53
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2d534]
or eax, eax
je 0x429a69
mov dword [ebx], eax
add ebx, 4
jmp 0x429a41
call dword [esi + 0x2d530]
mov ebp, dword [esi + 0x2d538]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x429aa3
sub esp, 0xffffff80
jmp 0x41942f
Function at 0x4019a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.00401a90
mov eax, dword [esp + 0x101c]
push ebx
push 0
push 0x10000000
push 1
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [esp + 0x1014]
mov dword [esp + 4], eax
test ebx, ebx
jne 0x4019e4
xor eax, eax
pop ebx
add esp, 0x100c
ret
mov ecx, dword [esp + 0x1018]
push edi
push 0
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x1020]
test edi, edi
jbe 0x401a50
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
cmp edi, 0x1000
mov esi, 0x1000
ja 0x401a1a
mov esi, edi
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x24]
push esi
push eax
push ebx
call ebp
test eax, eax
je 0x401a4a
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub edi, esi
jne 0x401a0b
pop esi
pop ebp
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop ebx
add esp, 0x100c
ret
Function at 0x405c30
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503563
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x5513a4], 0
je 0x405c69
xor al, al
jmp 0x405d1e
push 0x40
call fcn.004051ca
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x405c8c
push 0
mov ecx, eax
call fcn.00405d40
jmp 0x405c8e
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x5513a4], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov word [ebp - 0x2c], cx
mov ecx, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x405cc0
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406300
mov dword [ebp - 4], 1
mov ecx, dword [0x5513a4]
lea edx, [ebp - 0x2c]
push edx
call fcn.00406570
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x405d08
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406ec9
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
Function at 0x40bc60
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
push edi
cmp dword [0x5502e8], esi
jne 0x40bc9f
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x40bc95
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x5502e4], eax
mov dword [0x5502e8], 1
mov eax, dword [0x5502e4]
mov edi, dword [ebp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40bcbb
push edi
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x40bcf5
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x40bcea
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
mov eax, dword [ebp + 8]
jns 0x40bcd9
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
jmp 0x40bcde
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
call edx
test eax, eax
je 0x40bcf5
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push edi
push eax
call ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4100f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], ebx
jb 0x41010c
mov eax, dword [eax]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push 0x20019
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41017a
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], 8
push esi
mov esi, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp + 0xc], esi
mov dword [ebp - 8], esi
jb 0x41013f
mov eax, dword [eax]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 4]
lea ecx, [ebp + 0xc]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41016f
cmp dword [ebp + 0xc], esi
jne 0x41016f
cmp dword [ebp - 8], esi
jne 0x41016f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov bl, 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x410290
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push ecx
xor eax, eax
push 0x104
mov word [ebp - 0x20c], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x410305
cmp eax, 0x104
jae 0x410305
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4102d6
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
mov ecx, esi
call fcn.00406300
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.00401316
mov esp, ebp
pop ebp
ret

Function at 0x412420
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0
push 0
push 0
push 0
push 0xffffc000
push 0xffffc000
push 0x10000000
push 0x50d97c
push str.EDIT
push 0x80
call fcn.00412540
cmp byte [ebp + 8], 0
mov dword [0x550364], eax
jne 0x412471
test eax, eax
je 0x412471
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret
Function at 0x438da0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004e15a0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x101
ja 0x438e0c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x438e0c
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.00401316
mov esp, ebp
pop ebp
ret

Function at 0x43bfc0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
cmp esi, 0x804
ja 0x43bffd
je case.0x43bff6.1027
lea eax, [esi - 0x403]
cmp eax, 0x2a
ja case.0x43bff6.1032
movzx eax, byte [eax + 0x43c050]
jmp dword [eax*4 + 0x43c048]
cmp esi, 0xc0a
je case.0x43bff6.1027
push 0x400
lea ecx, [ebp - 0x404]
push 0
push ecx
call fcn.004e15a0
add esp, 0xc
push 0x200
lea edx, [ebp - 0x404]
push edx
push 3
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43c036
mov bl, 1
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00401316
mov esp, ebp
pop ebp
ret

Function at 0x43c005
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
cmp esi, 0x804
ja 0x43bffd
je case.0x43bff6.1027
lea eax, [esi - 0x403]
cmp eax, 0x2a
ja case.0x43bff6.1032
movzx eax, byte [eax + 0x43c050]
jmp dword [eax*4 + 0x43c048]
cmp esi, 0xc0a
je case.0x43bff6.1027
push 0x400
lea ecx, [ebp - 0x404]
push 0
push ecx
call fcn.004e15a0
add esp, 0xc
push 0x200
lea edx, [ebp - 0x404]
push edx
push 3
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43c036
mov bl, 1
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00401316
mov esp, ebp
pop ebp
ret
Function at 0x457540
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5025ee
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x54e938]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004e032e
mov dword [ebp - 4], 0
push 4
call fcn.004051ca
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x4575cf
call fcn.004dff22
mov dword [edi], eax
call fcn.004dfce1
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004dfc16
mov byte [ebp - 4], 2
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4575c1
inc eax
mov dword [ebx + 4], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.004dfc3e
jmp 0x4575d1
xor edi, edi
mov byte [ebp - 4], 0
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45a3b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push esi
push 0x20019
push 0
push eax
push ecx
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45a407
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea edx, [ebp + 0xc]
push edx
push eax
push eax
push eax
mov dword [ebp + 0xc], eax
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ecx, dword [esi]
test eax, eax
je 0x45a41c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov word [esi + 8], ax
mov dword [esi], 0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
dec eax
mov dword [esi + 4], eax
test ecx, ecx
je 0x45a450
test eax, eax
js 0x45a450
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
lea edx, [ebp + 0xc]
push edx
lea edx, [esi + 8]
push edx
push eax
push ecx
mov dword [ebp + 0xc], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x45a456
xor eax, eax
mov word [esi + 8], ax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8