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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
mov dword [esp], ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
test eax, eax
jg 0x4125df
jl 0x4125d2
test esi, esi
jne 0x4125df
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ecx + 0x38], 0
mov edi, esi
je 0x4126a6
mov dword [esp + 0x10], eax
nop
call fcn.00413a20
mov ecx, edx
mov esi, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
jl 0x412648
jg 0x412607
test esi, esi
je 0x412648
mov eax, dword [esp + 0x10]
cmp eax, ecx
jg 0x41261b
jl 0x412615
cmp edi, esi
jae 0x41261b
mov esi, edi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
push esi
mov eax, dword [eax + 0x1c]
push dword [eax]
push ebx
call fcn.005b9060
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [esp + 0x10]
sub edi, esi
sbb edx, dword [esp + 0x14]
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
jmp 0x412679
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x5feac0]
mov ecx, dword [esp + 0xc]
call esi
mov edx, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x412691
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov byte [ebx], al
mov esi, 1
adc edx, 0xffffffff
add ebx, esi
mov dword [esp + 0x10], edx
test edx, edx
jg 0x4125f0
jl 0x412691
test edi, edi
jne 0x4125f0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
sub eax, edi
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4126f3
mov eax, dword [ecx + 0x2c]
lea edx, [ecx + 0x2c]
mov dword [esp + 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4126fa
mov edi, dword [ebp + 0xc]
cmp eax, edi
cmovb esi, eax
push esi
push dword [esp + 0x18]
push ebx
call fcn.005b9060
mov eax, dword [esp + 0x1c]
add ebx, esi
mov ecx, dword [esp + 0x18]
sub edi, esi
add esp, 0xc
mov eax, dword [eax]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0xc]
jmp 0x4126fa
lea eax, [ecx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ecx + 0x4c], 0
je 0x41277f
mov edx, dword [ecx + 0xc]
lea eax, [ecx + 0x3c]
mov dword [esp + 0x14], edx
cmp dword [edx], eax
jne 0x412731
mov edx, dword [ecx + 0x54]
mov eax, dword [esp + 0x14]
mov ecx, dword [ecx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [eax], edx
cmp edi, 0xfff
jbe 0x412766
nop dword [eax]
push dword [ecx + 0x4c]
push 0xfff
push 1
push ebx
call fcn.005c31b7
add esp, 0x10
add ebx, eax
sub edi, eax
cmp eax, 0xfff
jne 0x41277f
mov ecx, dword [esp + 0xc]
cmp edi, eax
ja 0x412740
test edi, edi
je 0x41277f
mov eax, dword [esp + 0xc]
push dword [eax + 0x4c]
push edi
push 1
push ebx
call fcn.005c31b7
add esp, 0x10
sub edi, eax
mov edx, dword [ebp + 0x10]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x424350
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e995e
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x6780cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 1
cmp edx, 0x103b
ja 0x424410
je 0x424433
cmp edx, 0x46c
ja 0x4243f7
je 0x4243eb
mov eax, edx
sub eax, 0x465
je 0x4243df
sub eax, 6
je 0x424407
jmp 0x42444c
push 2
push 0x64f2d8
jmp 0x42448e
push 3
push 0x64f2e4
jmp 0x42448e
cmp edx, 0x86b
je 0x424407
cmp edx, 0xc6b
jne 0x42444c
push 3
push 0x64f2f0
jmp 0x42448e
cmp edx, 0x1c3b
ja 0x42443c
je 0x42442a
cmp edx, 0x143b
je 0x424433
cmp edx, 0x183b
jne 0x42444c
push 3
push 0x64f2e0
jmp 0x42448e
push 3
push 0x64f2d4
jmp 0x42448e
cmp edx, 0x203b
je 0x424487
cmp edx, 0x243b
je 0x42447e
push 0xa
lea eax, [ebp - 0x1c]
push eax
push 0x59
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x424475
lea ecx, [ebp - 0x1c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x424465
sub ecx, edx
lea eax, [ebp - 0x1c]
push ecx
push eax
jmp 0x42448e
push 3
push 0x64f2ec
jmp 0x42448e
push 3
push 0x64f2e8
jmp 0x42448e
push 3
push 0x64f2dc
mov ecx, esi
call fcn.004032d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a5aba
mov esp, ebp
pop ebp
ret

Function at 0x4244c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e995e
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x6780cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 1
cmp edx, 0x81a
je 0x424582
cmp edx, 0xc1a
je 0x424582
cmp edx, 0x2409
je 0x424579
push 0xa
lea eax, [ebp - 0x1c]
push eax
push 0x5a
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x424570
lea ecx, [ebp - 0x1c]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x424560
sub ecx, edx
lea eax, [ebp - 0x1c]
push ecx
push eax
jmp 0x424589
push 2
push 0x64f2fc
jmp 0x424589
push 3
push 0x64f2f4
jmp 0x424589
push 2
push 0x64f2f8
mov ecx, esi
call fcn.004032d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a5aba
mov esp, ebp
pop ebp
ret
Function at 0x4255f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e9b4d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x6780cc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push 0x64f320
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4256fa
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0x64f368
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4256f1
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4256f1
push eax
call fcn.00467693
mov edi, eax
add esp, 4
test edi, edi
je 0x4256f1
lea eax, [ebp - 0x34]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push 0
push 0x64f368
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4256e8
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4256d5
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x30]
call fcn.004032d0
push edi
call fcn.0046768e
add esp, 4
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [ebp - 0x30]
mov dword [esi], 0
mov eax, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [esi + 0x10], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005a5aba
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x42af30
Capabilities:
Check if file exists
Create directory

Disassembly:
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x42af3d
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esi + 0x14]
test eax, eax
je 0x42af60
cmp ecx, 8
jb 0x42af52
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
pop esi
setne al
ret
cmp ecx, 8
jb 0x42af67
mov esi, dword [esi]
push edi
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edi, eax
test edi, edi
je 0x42afe4
mov esi, dword [0x6830d8]
test esi, esi
je 0x42afb4
push edi
push str.SHCreateDirectoryEx_failed._Error:__d
push 0x6424c4
push 0x6424c4
push 0x64f5f8
push str.OOBEUtils
push 0x32
mov ecx, esi
call dword [0x5feac0]
call esi
add esp, 0x1c
test edi, edi
sete al
pop edi
pop esi
ret
mov eax, dword [0x6830dc]
test eax, eax
je 0x42afe2
mov esi, dword [eax]
push edi
push str.SHCreateDirectoryEx_failed._Error:__d
push 0x64f5f8
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x6424c4
push 0x32
push eax
call dword [0x5feac0]
call esi
add esp, 0x18
test edi, edi
pop edi
sete al
pop esi
ret
Function at 0x42aff0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push edi
mov edi, ecx
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x42affd
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42b1ab
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x42b016
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x42b027
mov eax, dword [edi]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
je 0x42b10d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x42b10d
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x42b055
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
test dl, 1
je 0x42b10d
mov esi, dword [0x6830d8]
test esi, esi
je 0x42b0a7
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x42b07b
mov ecx, dword [edi]
push edx
push ecx
push str.File__s_is_with_read_only._Its_attribute_is:__d._UnSetting_its_read_only_attr_and_retry_deleting
push 0x6424c4
push 0x6424c4
push 0x64f5f8
push str.OOBEUtils
push 0x14
mov ecx, esi
call dword [0x5feac0]
call esi
add esp, 0x20
jmp 0x42b0e0
mov eax, dword [0x6830dc]
test eax, eax
je 0x42b0e0
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x42b0ba
mov ecx, dword [edi]
mov esi, dword [eax]
push edx
push ecx
push str.File__s_is_with_read_only._Its_attribute_is:__d._UnSetting_its_read_only_attr_and_retry_deleting
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x64f5f8
push 0x6424c4
push 0x14
push eax
call dword [0x5feac0]
call esi
add esp, 0x1c
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x42b0ea
mov eax, dword [edi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x42b100
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
test bl, bl
jne 0x42b1a5
cmp dword [0x6830d8], 0
je 0x42b162
cmp dword [edi + 0x14], 8
jb 0x42b126
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x6830d8]
mov ecx, esi
push eax
push edi
push str.Failed_to_delete_file:__s_LastError:_d
push 0x6424c4
push 0x6424c4
push 0x64f5f8
push str.OOBEUtils
push 0x32
call dword [0x5feac0]
call esi
add esp, 0x20
mov al, bl
pop esi
pop ebx
pop edi
ret
mov esi, dword [0x6830dc]
test esi, esi
je 0x42b1a5
cmp dword [edi + 0x14], 8
jb 0x42b174
mov edi, dword [edi]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi + 0x34]
mov ecx, esi
push eax
push edi
push str.Failed_to_delete_file:__s_LastError:_d
push 0x64f5f8
push 0x6424c4
push 0x32
push dword [0x6830dc]
call dword [0x5feac0]
call esi
add esp, 0x1c
pop esi
mov al, bl
pop ebx
pop edi
ret
mov al, 1
pop edi
ret
Function at 0x42b1b0
Capabilities:
Check if file exists
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e7aad
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x6780cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x42b1e9
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42b261
mov esi, dword [0x6830d8]
test esi, esi
je 0x42b22d
push str.Source_file_does_not_exist_in_CopyFileFromSourceToDestination
push 0x6424c4
push 0x6424c4
push 0x64f5f8
push str.OOBEUtils
push 0x32
mov ecx, esi
call dword [0x5feac0]
call esi
add esp, 0x18
xor al, al
jmp 0x42b388
mov eax, dword [0x6830dc]
test eax, eax
je 0x42b25a
mov esi, dword [eax]
push str.Source_file_does_not_exist_in_CopyFileFromSourceToDestination
push 0x64f5f8
push 0x6424c4
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x32
push eax
call dword [0x5feac0]
call esi
add esp, 0x14
xor al, al
jmp 0x42b388
push edi
lea ecx, [ebp - 0x28]
call fcn.00408fe0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0042ae60
push ecx
lea ecx, [ebp - 0x28]
call fcn.0042af30
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x42b28d
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x42b297
mov eax, dword [edi]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x42b33a
cmp dword [0x6830d8], eax
je 0x42b2f3
cmp dword [edi + 0x14], 8
jb 0x42b2b9
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x6830d8]
mov ecx, esi
push eax
push edi
push str.Failed_to_copy_file_at_the_destination:_s._LastError:__d
push 0x6424c4
push 0x6424c4
push 0x64f5f8
push str.OOBEUtils
push 0x32
call dword [0x5feac0]
call esi
add esp, 0x20
xor bl, bl
jmp 0x42b350
mov esi, dword [0x6830dc]
test esi, esi
je 0x42b336
cmp dword [edi + 0x14], 8
jb 0x42b305
mov edi, dword [edi]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi + 0x34]
mov ecx, esi
push eax
push edi
push str.Failed_to_copy_file_at_the_destination:_s._LastError:__d
push 0x64f5f8
push 0x6424c4
push 0x32
push dword [0x6830dc]
call dword [0x5feac0]
call esi
add esp, 0x1c
xor bl, bl
jmp 0x42b350
cmp dword [edi + 0x14], 8
jb 0x42b342
mov edi, dword [edi]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov bl, 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x42b386
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42b37c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b3a4
push ecx
push edx
call fcn.005a5f31
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a5aba
mov esp, ebp
pop ebp
ret
call fcn.005bd02a
int3
Function at 0x42b3b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ea08d
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x6780cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x21c]
xor bl, bl
mov dword [ebp - 0x21c], 0
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push ecx
cmovae eax, dword [ebp + 8]
push eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
push 0x208
mov edi, eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005b9e00
add esp, 0xc
test edi, edi
je 0x42b50d
push edi
call fcn.00467693
add esp, 4
mov esi, eax
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push esi
push edi
push dword [ebp - 0x21c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x42b504
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
push 0x647538
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x42b504
cmp dword [ebp - 0x220], 0
je 0x42b504
mov edx, dword [ebp - 0x224]
cmp dword [edx], 0xfeef04bd
jne 0x42b504
mov ecx, dword [edx + 0xc]
mov edx, dword [edx + 8]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
lea eax, [ebp - 0x218]
push edx
push str._d._d._d._d
push 0x104
push eax
call fcn.00426080
lea edx, [ebp - 0x218]
add esp, 0x1c
lea edi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42b4e0
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x218]
sub edx, edi
sar edx, 1
push edx
push eax
call fcn.00404650
mov bl, 1
push esi
call fcn.0046768e
add esp, 4
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x42b543
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42b539
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b561
push ecx
push edx
call fcn.005a5f31
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a5aba
mov esp, ebp
pop ebp
ret
call fcn.005bd02a
int3
Function at 0x42e4d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x6780cc]
xor eax, esp
mov dword [esp + 8], eax
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [ebx + 0x8c], 1
jne 0x42e572
xor eax, eax
cmp dword [ebx + 0x60], 8
mov word [esp + 0xc], ax
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x4c]
jb 0x42e50b
mov eax, dword [eax]
push str.rb__ccsUTF_8
push eax
lea eax, [esp + 0x18]
push eax
call fcn.005c23f4
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x42e572
push eax
push 2
lea eax, [esp + 0x14]
push 1
push eax
call fcn.005c31b7
push dword [esp + 0x20]
call fcn.005c2560
mov ax, word [esp + 0x20]
add esp, 0x14
cmp al, 0xff
jne 0x42e54f
cmp ah, 0xfe
je 0x42e572
cmp ah, 0xff
jne 0x42e558
cmp al, 0xfe
je 0x42e572
mov eax, dword [edi]
test eax, eax
je 0x42e56b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
mov ecx, ebx
call fcn.00431470
lea esi, [ebx + 0x4c]
push 1
mov ecx, esi
call fcn.0043b600
add esp, 4
test eax, eax
je 0x42e59f
cmp eax, 1
jne 0x42e5f1
push ecx
mov ecx, esi
call fcn.0042aff0
add esp, 4
test al, al
je 0x42e5f1
mov dword [edi], 0xffffffff
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x42e5a9
mov eax, dword [esi]
push 0
push 0x200080
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x42e648
cmp dword [esi + 0x14], 8
jb 0x42e5d1
mov esi, dword [esi]
push 0
push 0x200080
push 1
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x42e607
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.005a5aba
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 0x8c], 1
push 0
jne 0x42e629
mov ecx, 0xfeff
mov word [esp + 0x10], cx
lea ecx, [esp + 0x14]
push ecx
push 2
lea ecx, [esp + 0x18]
jmp 0x42e640
lea ecx, [esp + 0x14]
mov word [esp + 0x10], 0xbbef
push ecx
mov byte [esp + 0x16], 0xbf
lea ecx, [esp + 0x14]
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005a5aba
mov esp, ebp
pop ebp
ret 4
Function at 0x42ebd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x6780cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42ebf0
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
sar esi, 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
add esi, esi
push esi
push edi
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 4
push 0x64fdf4
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005a5aba
mov esp, ebp
pop ebp
ret 4

Function at 0x42ec60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x6780cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x42ec80
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push esi
push edi
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 2
push 0x64fe24
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005a5aba
mov esp, ebp
pop ebp
ret 4
Function at 0x4584a0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x4584f3
push esi
push dword [ebp + 8]
call fcn.0045868e
mov edi, eax
test edi, edi
je 0x4584ee
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4584ee
mov eax, dword [ebp - 8]
jmp 0x458505
mov eax, dword [ebp + 0x10]
jmp 0x458505
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc

Function at 0x458510
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ec210
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.005a6630
mov eax, dword [0x6780cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x201c], edi
mov dword [ebp - 0x2024], eax
cmp dword [ecx + 0x58], ebx
je 0x458641
push ebx
push edx
call fcn.0045868e
mov ebx, eax
test ebx, ebx
jne 0x458578
push esi
jmp 0x458669
lea ecx, [ebp - 0x2014]
call fcn.00404600
xor ecx, ecx
lea eax, [ebp - 0x2018]
push eax
push ecx
lea eax, [ebp - 0x2020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x2024]
mov dword [ebp - 0x2020], ecx
push ebx
mov dword [ebp - 0x2018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x201c], eax
test eax, eax
jne 0x458600
mov eax, dword [ebp - 0x2018]
lea ecx, [ebp - 0x2014]
shr eax, 1
push eax
call fcn.00404840
lea ecx, [ebp - 0x2018]
push ecx
push eax
lea eax, [ebp - 0x2020]
push eax
push 0
push dword [ebp - 0x2024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2014]
mov dword [ebp - 0x201c], eax
call fcn.004587d8
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x201c], 0
jne 0x45862e
mov esi, dword [ebp - 0x2014]
add esi, 0xfffffff0
push esi
call fcn.00455f55
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.00403850
jmp 0x458670
push esi
mov ecx, edi
call fcn.004555f0
mov ecx, dword [ebp - 0x2014]
lea ecx, [ecx - 0x10]
jmp 0x458627
test esi, esi
jne 0x45864a
mov esi, 0x6424c4
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x2010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2010]
push eax
mov ecx, edi
call fcn.004555f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a5aba
leave
ret 0x10