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

Disassembly:
push 0x44
mov eax, 0x4ad6ab
call fcn.00473d21
mov ebx, ecx
mov edi, dword [ebp + 8]
push 1
lea eax, [ebp - 0x41]
push eax
lea ecx, [ebx + 4]
mov dword [ebp - 0x50], ebx
mov dword [ebx], vtable.STREAM.0
call fcn.00403870
xor eax, eax
mov dword [ebp - 4], eax
or dword [ebx + 0x48], 0xffffffff
lea ecx, [ebx + 0x54]
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], eax
mov word [ebx + 0x3c], 0x101
mov byte [ebx + 0x3e], 1
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x4c], 0x2e
mov dword [ebx + 0x50], 0x138
call fcn.0044c1e9
mov byte [ebp - 4], 1
and dword [ebx + 0x5c], 0
mov eax, 0x4cb558
test edi, edi
cmovne eax, edi
push eax
lea ecx, [ebx + 4]
mov byte [ebx + 0x60], 0
call fcn.00403e90
lea esi, [ebx + 8]
cmp dword [esi + 0x14], 8
jb 0x44c300
mov eax, dword [esi]
jmp 0x44c302
mov eax, esi
push 1
push eax
call fcn.0044d368
pop ecx
mov dword [ebx + 0x40], eax
cmp dword [esi + 0x14], 8
pop ecx
jb 0x44c319
mov eax, dword [esi]
jmp 0x44c31b
mov eax, esi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x34], eax
cmp eax, 0xffffffff
jne 0x44c34a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x44], eax
jmp 0x44c484
push 0x2e
lea eax, [ebp - 0x40]
push edi
push eax
mov dword [ebx + 0x38], 1
call fcn.00474cd0
add esp, 0xc
mov ecx, ebx
push 0
push 0
push dword [ebx + 0x40]
push dword [ebx + 0x34]
call fcn.0044df28
test eax, eax
je 0x44c484
push 0
lea eax, [ebp - 0x48]
push eax
push 0x2e
pop edi
push edi
lea eax, [ebp - 0x40]
push eax
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x44c473
cmp dword [ebp - 0x48], 0
je 0x44c473
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
call fcn.0044cc93
test eax, eax
je 0x44c3bd
mov di, word [ebp - 0x32]
test di, di
jne 0x44c435
cmp dword [esi + 0x14], 8
jb 0x44c3c5
mov esi, dword [esi]
push 0
push esi
call fcn.0044d368
pop ecx
pop ecx
cmp eax, dword [ebx + 0x40]
jbe 0x44c3d7
mov dword [ebx + 0x40], eax
push 0
push 0
push dword [ebx + 0x40]
mov ecx, ebx
push dword [ebx + 0x34]
call fcn.0044df28
test eax, eax
je 0x44c484
push 0
lea eax, [ebp - 0x4c]
push eax
push 0x2e
pop esi
push esi
lea eax, [ebp - 0x40]
push eax
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x44c484
cmp dword [ebp - 0x48], 0
je 0x44c484
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
call fcn.0044cc93
mov di, word [ebp - 0x32]
test eax, eax
je 0x44c42c
test di, di
jne 0x44c438
mov dword [ebx + 0x5c], 3
jmp 0x44c438
push 0x2e
pop esi
mov eax, dword [ebx + 0x5c]
cmp eax, 1
je 0x44c451
add eax, 0xfffffffe
cmp eax, 1
ja 0x44c45b
mov dword [ebx + 0x50], 0x18
jmp 0x44c458
mov dword [ebx + 0x50], 0x138
mov dword [ebx + 0x4c], esi
mov ecx, ebx
call fcn.0044d746
test al, al
je 0x44c484
movzx eax, di
push eax
mov ecx, ebx
call fcn.0044d469
jmp 0x44c484
mov dword [ebx + 0x5c], 3
mov dword [ebx + 0x4c], edi
mov dword [ebx + 0x50], 0x18
or dword [ebp - 4], 0xffffffff
mov eax, ebx
call fcn.00473cd0
ret 4
Function at 0x44c890
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0x48
mov eax, 0x4ad977
call fcn.00473d21
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp + 0x10]
add eax, 4
mov dword [ebp - 0x54], ecx
cmp dword [eax + 0x14], 8
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x50], ecx
jb 0x44c8be
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44c8ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x44], eax
jmp 0x44c9ac
push 0x400
call fcn.004521fb
mov edi, eax
xor eax, eax
pop ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], eax
push eax
jmp 0x44c983
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x44c99c
cmp byte [ebx + 0x3d], 0
je 0x44c94e
cmp byte [ebx + 0x3c], 0
je 0x44c94e
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x40]
push eax
call fcn.004326b2
and dword [ebp - 4], 0
mov ecx, eax
call fcn.0044970c
push eax
push dword [ebp - 0x44]
push edi
call fcn.0040fa37
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401b80
mov eax, dword [ebp - 0x44]
push 0
lea ecx, [ebp - 0x44]
push ecx
push eax
push edi
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x50]
add dword [ebp - 0x48], eax
test ecx, ecx
je 0x44c97d
mov edx, dword [ebp - 0x4c]
mov eax, dword [ecx]
push dword [edx + 0x38]
mov edx, dword [ebp - 0x48]
push edx
call dword [eax]
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x44c99c
push 0
lea eax, [ebp - 0x44]
push eax
push 0x400
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44c904
push edi
call fcn.00472d16
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
call fcn.00473cd0
ret 0x10
Function at 0x44d74a
Capabilities:
Get system information on windows
Parse pe header
Read file via mapping

Disassembly:
push 0x3c
mov eax, 0x4adbe2
call fcn.00473cee
xor ebx, ebx
mov edi, ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 2
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x44d7a3
lea ecx, [ebp - 0x18]
call fcn.00404bf0
mov edi, esi
mov dword [ebp - 0x18], edi
cmp esi, 0xffffffff
je 0x44d8c5
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x44d8c5
lea ecx, [ebp - 0x14]
call fcn.00404bf0
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
push eax
push 0
push 0
push 4
push ebx
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x44d8c5
lea ecx, [ebp - 0x10]
call fcn.0044e410
mov eax, 0x5a4d
mov dword [ebp - 0x10], esi
cmp word [esi], ax
jne 0x44d88b
mov ebx, dword [esi + 0x3c]
push 0xf8
add ebx, esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x44d884
cmp dword [ebx], 0x4550
jne 0x44d884
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x20], eax
jae 0x44d88e
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x24]
push 0
push 0
push 4
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
cmp esi, ebx
je 0x44d85d
lea ecx, [ebp - 0x10]
call fcn.0044e410
mov esi, ebx
mov dword [ebp - 0x10], esi
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x44d884
mov ebx, dword [esi + 0x3c]
push 0xf8
add ebx, esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x44d884
cmp dword [ebx], 0x4550
je 0x44d88e
mov esi, 0xc1
jmp 0x44d8cd
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x44d89b
and dword [ebp - 0x10], 0
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x44d8a8
and dword [ebp - 0x18], 0
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x44d8b8
mov ecx, dword [ebp - 0x1c]
and dword [ebp - 0x14], 0
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x44d8c1
mov dword [eax], ebx
xor esi, esi
jmp 0x44d8cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0044e410
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00404bf0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404bf0
mov eax, esi
call fcn.00473cbc
ret
Function at 0x45040b
Capabilities:
Create process on windows

Disassembly:
push 0xb8
mov eax, 0x4ae2f3
call fcn.00473d21
mov eax, dword [ebp + 8]
xor ecx, ecx
inc ecx
push ecx
lea ecx, [ebp - 0x45]
push ecx
xor ebx, ebx
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], ebx
call fcn.00402ca0
mov dword [ebp - 4], ebx
push 0x10
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.00474cd0
push 0x44
pop esi
push esi
lea eax, [ebp - 0xc4]
push ebx
push eax
call fcn.00474cd0
xor edi, edi
xor eax, eax
inc edi
add esp, 0x18
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0x98], edi
mov word [ebp - 0x94], ax
cmp dword [ebp + 0xc], eax
je 0x45047a
mov word [ebp - 0x94], di
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x50]
push str.Attempting_to_launch:__s
push eax
mov dword [ebp - 0x50], str.utils.cpp
mov dword [ebp - 0x4c], 0x4a7
call fcn.004191b5
add esp, 0xc
lea eax, [ebp - 0x54]
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
push eax
call fcn.00402fe0
xor ecx, ecx
inc ecx
mov byte [ebp - 4], cl
mov byte [eax + 4], cl
mov ecx, dword [eax]
call fcn.00403d20
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0xc4]
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x54]
call fcn.00403980
test esi, esi
je 0x45057c
mov esi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
xor edi, edi
inc edi
jmp 0x450523
cmp eax, edi
jne 0x450536
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
cmp dword [ebp - 0x7c], 0x11
je 0x450536
cmp dword [ebp - 0x7c], 0x10
je 0x450536
cmp dword [ebp - 0x7c], 0x12
je 0x450536
push 0x4ff
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x64]
push eax
push edi
call esi
test eax, eax
jne 0x4504ff
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x44]
push dword [ebp - 0x64]
mov dword [0x4f273c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x44]
mov dword [ebp - 0x50], str.utils.cpp
push eax
lea eax, [ebp - 0x50]
push str.Launch_result__d__exit_code__d
push eax
mov dword [ebp - 0x4c], 0x4c8
call fcn.004191b5
mov esi, dword [ebp - 0x44]
add esp, 0x10
jmp 0x450581
mov esi, 0xcccccccc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401ac0
mov eax, esi
call fcn.00473cd0
ret 8
Function at 0x450c1e
Capabilities:
Delete directory

Disassembly:
push 8
mov eax, 0x4ae43f
call fcn.00473cee
push 8
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0x14], esp
xor ebx, ebx
inc ebx
push ebx
lea eax, [ebp - 0xd]
push eax
push dword [ebp + 8]
xor edi, edi
call fcn.00411496
and dword [ebp - 4], edi
or dword [ebp - 4], 0xffffffff
call fcn.004581ed
add esp, 0x34
test al, al
je 0x450c7a
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
push 0
cmovne edi, ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, edi
call fcn.00473cbc
ret 4

Function at 0x450c84
Capabilities:
Delete file
Set file attributes

Disassembly:
push 8
mov eax, 0x4ae462
call fcn.00473cee
push 4
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0x14], esp
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0xd]
push eax
push dword [ebp + 8]
call fcn.00411496
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call fcn.004581ed
add esp, 0x34
test al, al
jne 0x450cc2
mov eax, esi
jmp 0x450d02
push dword [ebp + 8]
xor edi, edi
call fcn.0044f667
test eax, eax
jne 0x450d00
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call esi
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
test eax, eax
pop eax
push 0
cmovne edi, eax
call esi
mov eax, edi
call fcn.00473cbc
ret 4

Function at 0x453e06
Capabilities:
Read file on windows

Disassembly:
push 0x10c
mov eax, 0x4ae5c2
call fcn.00473d21
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 8]
xor edi, edi
xor ebx, ebx
inc edi
cmp eax, 0xffffffff
cmove eax, edi
mov dword [ebp - 0x118], ebx
test ecx, ecx
je 0x453e8b
lea edi, [ebp - 0x118]
push edi
push eax
push edx
call fcn.00468c1f
test al, al
jne 0x453edd
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x4b9cf4
mov dword [ebp - 0x48], 0x4b9cfc
call fcn.004110fd
push 1
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], ebx
call fcn.00441fdd
push 0x4e106c
lea eax, [ebp - 0x114]
push eax
call fcn.00473c61
push ebx
lea ecx, [ebp - 0x118]
push ecx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x453edd
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4b9cf4
mov dword [ebp - 0x18], 0x4b9cfc
call fcn.004110fd
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], edi
call fcn.00441de3
push 0x4e0ff8
lea eax, [ebp - 0xc0]
jmp 0x453e85
mov eax, dword [ebp - 0x118]
call fcn.00473cd0
ret 8
Function at 0x453fd5
Capabilities:
Read file on windows

Disassembly:
push 0x10c
mov eax, 0x4ae632
call fcn.00473d21
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor ebx, ebx
mov ecx, 0x1ed
cmp eax, 0xffffffff
cmove eax, ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x118], ebx
test ecx, ecx
je 0x45405c
lea edi, [ebp - 0x118]
push edi
push eax
push edx
call fcn.00468c1f
test al, al
jne 0x4540b1
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x4b9cf4
mov dword [ebp - 0x48], 0x4b9cfc
call fcn.004110fd
push 1
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], ebx
call fcn.00441fdd
push 0x4e106c
lea eax, [ebp - 0x114]
push eax
call fcn.00473c61
push ebx
lea ecx, [ebp - 0x118]
push ecx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4540b1
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4b9cf4
mov dword [ebp - 0x18], 0x4b9cfc
call fcn.004110fd
xor eax, eax
inc eax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00441de3
push 0x4e0ff8
lea eax, [ebp - 0xc0]
jmp 0x454056
mov eax, dword [ebp - 0x118]
call fcn.00473cd0
ret 8
Function at 0x4558e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x455969
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp + 0x10]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x455962
mov ecx, dword [edi]
test ecx, ecx
je 0x45595d
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x455953
cmp edx, 2
jbe 0x455945
cmp edx, 7
jne 0x455953
test cl, 1
jne 0x455953
shr ecx, 1
cmp ecx, 1
jb 0x455953
cmp word [esi + ecx*2 - 2], bx
jne 0x455953
cmp ecx, 1
jbe 0x455962
cmp word [esi + ecx*2 - 4], bx
jmp 0x455951
test cl, 1
jne 0x455953
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x455962
xor eax, eax
push 0xd
mov word [esi], ax
pop eax
jmp 0x455962
xor ecx, ecx
mov word [esi], cx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push 0x80004005
call fcn.0041953b
int3

Function at 0x4559f6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push ebx
push edi
mov edi, ecx
je 0x455a4b
mov bl, byte [ebp + 0x10]
mov eax, dword [ebp + 0x14]
test bl, bl
je 0x455a17
cmp eax, 0xffffffff
jne 0x455a26
push 0x57
pop eax
jmp 0x455a45
cmp eax, 0xffffffff
jne 0x455a26
push dword [ebp + 8]
call fcn.00473c34
pop ecx
inc eax
add eax, eax
push eax
push dword [ebp + 8]
xor eax, eax
push 7
pop ecx
inc eax
test bl, bl
cmovne eax, ecx
push eax
push 0
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop ebp
ret 0x10
push 0x80004005
call fcn.0041953b
int3

Function at 0x45816a
Capabilities:
Get file attributes

Disassembly:
push 0
mov eax, 0x4aed0e
call fcn.00473cee
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [ebp + 0x38], bl
je 0x458196
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
jne 0x4581dd
push 0x80
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp + 8]
mov edi, 0x4cb780
mov esi, 0x4cb720
push eax
mov dword [ecx], edi
mov dword [ecx + 0x28], esi
call fcn.004110fd
call fcn.0045faa5
pop ecx
mov ecx, esp
push ebx
lea eax, [ebp + 8]
push eax
mov dword [ecx], edi
mov dword [ecx + 0x28], esi
call fcn.004110fd
call fcn.004580f6
add esp, 0x30
test eax, eax
setne bl
lea ecx, [ebp + 8]
call fcn.00401b80
mov al, bl
call fcn.00473cbc
ret
Function at 0x4581ed
Capabilities:
Check if file exists

Disassembly:
push 0xc8
mov eax, 0x4aed4f
call fcn.00473d21
xor ebx, ebx
test byte [ebp + 0x38], 0x10
mov dword [ebp - 4], ebx
je 0x45824b
lea ecx, [ebp + 8]
call fcn.004499ec
test al, al
je 0x45824b
push dword [ebp + 0x38]
lea eax, [ebp + 8]
sub esp, 0x30
mov ecx, esp
push ebx
push eax
mov dword [ecx], 0x4cb780
mov dword [ecx + 0x28], 0x4cb720
call fcn.004110fd
call fcn.004583d0
add esp, 0x34
mov bl, al
lea ecx, [ebp + 8]
call fcn.00401b80
mov al, bl
jmp 0x4583ca
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp + 8]
push eax
mov dword [ecx], 0x4cb780
mov dword [ecx + 0x28], 0x4cb720
call fcn.004110fd
call fcn.00459d62
add esp, 0x30
cmp eax, 0xffffffff
je 0x45828c
test byte [ebp + 0x38], 4
je 0x45827e
test al, 0x10
je 0x458288
test byte [ebp + 0x38], 8
je 0x45823c
test al, 0x10
je 0x45823c
mov bl, 1
jmp 0x45823c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x4583c0
cmp esi, 3
je 0x4583c0
cmp esi, 5
jne 0x458374
lea ecx, [ebp - 0xcc]
call fcn.00454bfb
or dword [ebp - 0xd0], 0xffffffff
lea eax, [ebp - 0xcc]
push eax
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 2
mov dword [ecx], 0x4cb780
mov dword [ecx + 0x28], 0x4cb720
call fcn.004110fd
call fcn.004596b9
mov esi, eax
add esp, 0x34
cmp esi, 0xffffffff
je 0x45834b
lea ecx, [ebp - 0xd0]
call fcn.0043870f
test byte [ebp + 0x38], 4
mov dword [ebp - 0xd0], esi
je 0x458317
test byte [ebp - 0xcc], 0x10
je 0x458326
test byte [ebp + 0x38], 8
je 0x458328
test byte [ebp - 0xcc], 0x10
je 0x458328
mov bl, 1
lea ecx, [ebp - 0xd0]
call fcn.0043870f
lea ecx, [ebp - 0x70]
call fcn.00401b80
lea ecx, [ebp - 0xa0]
call fcn.00401b80
jmp 0x45823c
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xd0]
mov esi, eax
call fcn.0043870f
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], bl
call fcn.00401b80
lea ecx, [ebp - 0xa0]
call fcn.00401b80
test byte [ebp + 0x38], 0x20
je 0x45823c
push ebx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4b9cf4
mov dword [ebp - 0x18], 0x4b9cfc
call fcn.004110fd
push 1
push esi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.00441e3e
push 0x4e0ff8
lea eax, [ebp - 0x90]
push eax
call fcn.00473c61
lea ecx, [ebp + 8]
call fcn.00401b80
xor al, al
call fcn.00473cd0
ret
Function at 0x45add9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4ed0f0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x4bfee8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x45ae0f
push str.GetSystemDefaultUILanguage
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45ae0f
call eax
jmp 0x45aec4
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x14]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push str..DefaultControl_PaneldesktopResourceLocale
push SysStringLen
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], 0xa
call esi
test eax, eax
jne 0x45ae59
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 0x4cb558
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x45aea5
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push ebx
push str..DEFAULTControl_PanelInternational
push SysStringLen
mov dword [ebp - 0x18], ebx
call esi
mov esi, eax
test esi, esi
jne 0x45ae92
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push str.Locale
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
lea ecx, [ebp - 0x18]
call fcn.004570cc
test esi, esi
je 0x45aea5
mov esi, 0x409
jmp 0x45aeb7
push 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00474afa
add esp, 0xc
movzx esi, ax
lea ecx, [ebp - 0x14]
call fcn.004570cc
mov ax, si
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00473c52
leave
ret
Function at 0x45b4ba
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4ed0f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ecx, ecx
push esi
mov esi, dword [ebp + 0xc]
mov dword [eax], ecx
lea eax, [ebp - 0x118]
push eax
mov dword [esi], ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x108], ebx
jne 0x45b549
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x45b53c
cmp eax, 0xa
je 0x45b51b
cmp eax, 0x5a
je 0x45b513
xor ebx, ebx
mov dword [esi], 0x80
jmp 0x45b542
call fcn.0045c048
test al, al
mov al, bl
je 0x45b531
mov dword [esi], 0x80
jmp 0x45b5cf
mov dword [esi], 0x40
jmp 0x45b5cf
mov dword [esi], 0x10
mov al, bl
jmp 0x45b5cf
cmp dword [ebp - 0x108], 2
jne 0x45b5cd
mov ecx, dword [ebp - 0x114]
sub ecx, 4
je 0x45b5c2
mov eax, dword [ebp - 0x110]
dec ecx
je 0x45b575
dec ecx
jne 0x45b5b8
test eax, eax
jne 0x45b59a
mov dword [esi], 0x1000000
jmp 0x45b542
test eax, eax
jne 0x45b581
mov dword [esi], 0x100000
jmp 0x45b542
cmp eax, ebx
jne 0x45b58d
mov dword [esi], 0x400000
jmp 0x45b542
cmp eax, 2
jne 0x45b569
mov dword [esi], 0x800000
jmp 0x45b542
cmp eax, ebx
jne 0x45b5a6
mov dword [esi], 0x2000000
jmp 0x45b542
cmp eax, 2
jne 0x45b5b3
mov dword [esi], 0x4000000
jmp 0x45b542
cmp eax, 3
je 0x45b5ba
xor ebx, ebx
mov dword [esi], 0x8000000
jmp 0x45b542
mov dword [esi], 0x10000
jmp 0x45b542
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00473c52
leave
ret