joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ebb4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00406430
xor eax, eax
push ebp
push 0x47eca9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.00406eb0
mov ebx, pe_nt_image_headers32
mov eax, edi
mov ecx, ebx
xor edx, edx
call fcn.00406584
cmp dword [ebp + 0xc], 0
je 0x47ec33
mov eax, dword [ebp + 0xc]
call fcn.004064d4
push eax
push ebx
mov eax, edi
call fcn.00406eb8
push eax
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
mov eax, dword [ebp - 0xc]
call fcn.004064d4
push eax
mov eax, dword [ebp - 8]
call fcn.004064d4
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
mov esi, eax
jmp 0x47ec5e
push ebx
mov eax, edi
call fcn.00406eb8
push eax
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
mov eax, dword [ebp - 0xc]
call fcn.004064d4
push eax
mov eax, dword [ebp - 8]
call fcn.004064d4
push eax
call sub.kernel32.dll_GetProfileStringW
mov esi, eax
test esi, esi
je 0x47ec70
mov eax, dword [edi]
call fcn.004064d4
call fcn.0040dd4c
mov esi, eax
mov eax, ebx
sub eax, 8
cmp esi, eax
jl 0x47ec81
cmp ebx, 0x10000
jl 0x47ec8c
mov eax, edi
mov edx, esi
call fcn.004067bc
jmp 0x47ec93
add ebx, ebx
jmp 0x47ebec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ecb0
lea eax, [ebp - 4]
call fcn.00406438
ret

Function at 0x47ed7c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, eax
mov word [ebp - 0x10], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x47edc6
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004064d4
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.004064d4
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.004064d4
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
jmp 0x47edea
push 8
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.004064d4
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.004064d4
push eax
call sub.kernel32.dll_GetProfileStringW
push ebx
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_lstrcmpW
test eax, eax
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47ee5c
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov word [esp], 0
test ebx, ebx
je 0x47ee9a
mov eax, ebx
call fcn.004064d4
push eax
push pe_nt_image_headers32
lea eax, [esp + 8]
push eax
push 0x47eecc
push 0
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
jmp 0x47eeb8
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push 0x47eecc
push 0
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_GetProfileStringW
cmp word [esp], 0
sete al
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x47f29c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x47f333
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x47f2e7
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW_1
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.00406584
jmp 0x47f31d
call sub.kernel32.dll_GetCommandLineW_1
mov ebx, eax
cmp word [ebx], 0
jne 0x47f300
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040649c
jmp 0x47f313
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0047f0ec
mov ebx, eax
test esi, esi
je 0x47f313
dec esi
jmp 0x47f2ee
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00406448
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f33a
lea eax, [ebp - 4]
call fcn.00406438
ret

Function at 0x47f714
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0040e0f0
add esp, 0x208
pop ebx
ret

Function at 0x47f740
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0040e0f0
add esp, 0x208
pop ebx
ret

Function at 0x47f814
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47f893
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x47f86f
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 6
jb 0x47f86f
lea eax, [ebp - 8]
call fcn.0047f740
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.0047e290
lea eax, [ebp - 4]
mov edx, 0x47f8ac
call fcn.00406854
mov eax, dword [ebp - 4]
mov edx, esi
call fcn.0047e6bc
jmp 0x47f878
mov eax, esi
xor edx, edx
call fcn.00406448
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f89a
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406440
ret
Function at 0x47fafc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x47fc34
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x47fc1e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x47fb59
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x47fc1e
cmp dword [ebp - 0x14], 0
jne 0x47fb70
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00406448
mov bl, 1
jmp 0x47fc1e
cmp dword [ebp - 0x14], 0x70000000
jb 0x47fb7e
call fcn.00411924
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00406584
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.00406eb8
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
cmp eax, 0xea
je 0x47fb22
test eax, eax
jne 0x47fc1e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x47fbcc
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x47fc1e
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x47fbd4
dec esi
test esi, esi
je 0x47fbe3
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x47fbd3
cmp dword [ebp - 0x10], 7
jne 0x47fbee
test esi, esi
je 0x47fbee
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.004067bc
cmp dword [ebp - 0x10], 7
jne 0x47fc11
test esi, esi
je 0x47fc11
lea eax, [ebp - 4]
call fcn.00406eb8
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00406448
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47fc3b
lea eax, [ebp - 4]
call fcn.00406438
ret

Function at 0x47fc60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, edx
mov ebp, eax
push 0
push 0
push 0
push 0
push esi
push ebp
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
sete bl
test bl, bl
je 0x47fcdc
test esi, esi
je 0x47fc8d
cmp word [esi], 0
jne 0x47fcdc
mov eax, dword [0x505038]
cmp dword [eax], 2
je 0x47fcdc
xor ebx, ebx
xor esi, esi
mov dword [esp + 4], 2
push 0
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push esi
push ebp
call sub.advapi32.dll_RegEnumValueW
mov edi, eax
test edi, edi
je 0x47fcca
cmp edi, 0xea
jne 0x47fcdc
test edi, edi
jne 0x47fcd9
cmp word [esp], 0
jne 0x47fcd9
mov bl, 1
jmp 0x47fcdc
inc esi
jmp 0x47fc9b
mov eax, ebx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x47fd48
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp al, 2
je 0x47fd5c
push esi
push ebx
call sub.advapi32.dll_RegDeleteKeyW
pop esi
pop ebx
ret
cmp dword [0x50b1a4], 0
jne 0x47fd7f
push 0x47fda4
push 0x47fdc4
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409620
mov dword [0x50b1a4], eax
cmp dword [0x50b1a4], 0
je 0x47fd99
push 0
push pe_nt_image_headers32
push esi
push ebx
call dword [0x50b1a4]
jmp 0x47fd9e
mov eax, 0x7f
pop esi
pop ebx
ret

Function at 0x47fd49
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp al, 2
je 0x47fd5c
push esi
push ebx
call sub.advapi32.dll_RegDeleteKeyW
pop esi
pop ebx
ret
cmp dword [0x50b1a4], 0
jne 0x47fd7f
push 0x47fda4
push 0x47fdc4
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409620
mov dword [0x50b1a4], eax
cmp dword [0x50b1a4], 0
je 0x47fd99
push 0
push pe_nt_image_headers32
push esi
push ebx
call dword [0x50b1a4]
jmp 0x47fd9e
mov eax, 0x7f
pop esi
pop ebx
ret
Function at 0x47fde0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x47ff53
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0
je 0x47fe14
mov eax, dword [ebp - 0x10]
cmp word [eax], 0
jne 0x47fe1e
mov ebx, 0x57
jmp 0x47ff3d
mov eax, dword [0x505038]
cmp dword [eax], 2
jne 0x47ff2c
push 0
push 8
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
movzx eax, byte [ebp - 5]
call fcn.0047fd20
test eax, eax
jne 0x47ff2c
xor eax, eax
push ebp
push 0x47ff25
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov ecx, pe_nt_image_headers32
xor edx, edx
call fcn.00406584
xor eax, eax
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x47fe79
sub ebx, 4
mov ebx, dword [ebx]
mov dword [ebp - 0x1c], ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
call fcn.00406eb8
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov esi, eax
cmp esi, 0xea
jne 0x47fee4
mov edi, dword [ebp - 4]
test edi, edi
je 0x47feb4
sub edi, 4
mov edi, dword [edi]
cmp edi, 0x10000
jge 0x47ff0e
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x47fed3
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
add ecx, ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406584
jmp 0x47fe6d
test esi, esi
jne 0x47ff0e
mov eax, dword [ebp - 4]
call fcn.004064d4
mov ecx, eax
mov edx, dword [ebp - 0x14]
movzx eax, byte [ebp - 5]
call fcn.0047fde0
test eax, eax
je 0x47fe6d
inc dword [ebp - 0x18]
jmp 0x47fe6d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ff2c
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
movzx eax, byte [ebp - 5]
call fcn.0047fd48
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ff5a
lea eax, [ebp - 4]
call fcn.00406438
ret
Function at 0x47ffec
Capabilities:
Check os version
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov ebx, eax
mov eax, dword [0x505038]
cmp dword [eax], 2
je 0x480009
mov byte [ebp - 1], 1
jmp 0x4801d7
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0x20
push 2
push 0x503dd4
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
je 0x4801d7
xor eax, eax
push ebp
push 0x4801d0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 5
jb 0x48006b
push 0x4801e4
push 0x480210
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409620
mov ebx, eax
test ebx, ebx
je 0x480092
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call ebx
test eax, eax
je 0x4801b9
cmp dword [ebp - 0xc], 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
jmp 0x4801b9
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
test eax, eax
jne 0x4800e3
call sub.kernel32.dll_GetLastError
cmp eax, 0x3f0
je 0x4800c4
call fcn.00404b68
jmp 0x4801d7
lea eax, [ebp - 0x10]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x4800e3
call fcn.00404b68
jmp 0x4801d7
xor eax, eax
push ebp
push 0x4801b2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x480126
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
je 0x480126
call fcn.00404b68
call fcn.00404b68
jmp 0x4801d7
mov eax, dword [ebp - 0x14]
call fcn.00403018
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x480158
call fcn.00404b68
call fcn.00404b68
jmp 0x4801d7
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
dec esi
test esi, esi
jl 0x480193
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x48018f
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 8]
and eax, 0x14
cmp eax, 4
jne 0x48018f
mov byte [ebp - 1], 1
jmp 0x480193
inc ebx
dec esi
jne 0x480165
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4801b9
mov eax, dword [ebp - 0x18]
call fcn.00403034
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4801d7
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_FreeSid
ret
movzx eax, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x480c94
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x480d3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x505038]
cmp dword [eax], 2
jne 0x480cd7
push 1
mov eax, esi
call fcn.004064d4
push eax
mov eax, edi
call fcn.004064d4
push eax
call sub.kernel32.dll_MoveFileExW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x480d25
mov eax, esi
call fcn.004064d4
mov edx, eax
lea eax, [ebp - 4]
call fcn.00406604
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x480d0a
call sub.kernel32.dll_GetLastError
cmp eax, 2
jne 0x480d25
mov eax, esi
call fcn.004064d4
push eax
mov eax, edi
call fcn.004064d4
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480d42
lea eax, [ebp - 4]
call fcn.00406438
ret

Function at 0x481afc
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
xor edx, edx
mov dword [eax + 0x14], edx
xor edx, edx
mov dword [eax + 0x18], edx
ret
Function at 0x489114
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
lea edi, [ebp - 0xd]
mov bl, 1
mov eax, dword [ebp + 8]
mov esi, dword [eax - 0x18]
dec esi
test esi, esi
jl 0x4892c4
inc esi
mov eax, dword [ebp + 8]
push eax
mov eax, edi
mov edx, 5
call fcn.00487d28
pop ecx
test al, al
jne 0x48915b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.004893f8
xor ebx, ebx
jmp 0x4892c4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x20]
cmp eax, dword [edi]
ja 0x489179
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 2
call fcn.004893f8
xor ebx, ebx
jmp 0x4892c4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x34]
mov eax, dword [eax + 4]
mov edx, dword [edi]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x3c]
call fcn.004a008c
test eax, eax
jne 0x4891b0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 2
call fcn.004893f8
xor ebx, ebx
jmp 0x4892c4
test byte [edi + 4], 1
je 0x4892bd
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 4]
mov edx, 4
call fcn.00487d28
pop ecx
test al, al
jne 0x4891e4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.004893f8
xor ebx, ebx
jmp 0x4892c4
mov edx, dword [0x485360]
mov eax, 0xc
call fcn.0040766c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x48928f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00405d30
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 8]
call fcn.00405ac4
mov edx, dword [ebp - 4]
call fcn.00487d28
pop ecx
test al, al
jne 0x489252
mov edx, dword [0x485360]
mov eax, dword [ebp - 8]
call fcn.00407680
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.004893f8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4892c4
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00482a28
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 8]
call fcn.00482e40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4892bd
dec esi
jne 0x489132
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a4e40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor ebx, ebx
mov dword [ebp - 0x114], 0x114
lea eax, [ebp - 0x114]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x4a4e8c
cmp dword [ebp - 0x104], 2
jne 0x4a4e8c
cmp dword [ebp - 0x110], 5
ja 0x4a4e8a
cmp dword [ebp - 0x110], 5
jne 0x4a4e8c
cmp dword [ebp - 0x10c], 1
jb 0x4a4e8c
mov bl, 1
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a4e94
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
lea eax, [ebp - 0x208]
call fcn.0040e0f0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a6484
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
lea eax, [ebp - 0x208]
call fcn.0040e0f0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a9db8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
lea eax, [ebp - 0x208]
call fcn.0040e0f0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4aa434
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
lea eax, [ebp - 0x208]
call fcn.0040e0f0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4aa464
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x4aa580
push dword fs:[eax]
mov dword fs:[eax], esp
inc dword [0x50b434]
cmp dword [0x50b430], 0
jne 0x4aa55b
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 6
jb 0x4aa55b
lea eax, [ebp - 8]
call fcn.004aa434
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.0047e290
lea eax, [ebp - 4]
mov edx, 0x4aa59c
call fcn.00406854
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_LoadLibraryW
mov dword [0x50b430], eax
cmp dword [0x50b430], 0
je 0x4aa55b
push 0x4aa5b8
mov eax, dword [0x50b430]
push eax
call fcn.00409620
mov dword [0x50b414], eax
push 0x4aa5d8
mov eax, dword [0x50b430]
push eax
call fcn.00409620
mov dword [0x50b418], eax
push 0x4aa600
mov eax, dword [0x50b430]
push eax
call fcn.00409620
mov dword [0x50b41c], eax
push 0x4aa614
mov eax, dword [0x50b430]
push eax
call fcn.00409620
mov dword [0x50b420], eax
push 0x4aa62c
mov eax, dword [0x50b430]
push eax
call fcn.00409620
mov dword [0x50b424], eax
push 0x4aa640
mov eax, dword [0x50b430]
push eax
call fcn.00409620
mov dword [0x50b428], eax
cmp dword [0x50b430], 0
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa587
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406440
ret
Function at 0x4ab400
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x50b43c
mov eax, esi
mov edx, 8
test al, 1
je 0x4ab41c
shr eax, 1
xor eax, 0xedb88320
jmp 0x4ab41e
shr eax, 1
dec edx
jne 0x4ab40f
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4ab408
pop esi
ret

Function at 0x4ab44b
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x50b438], 0
jne 0x4ab457
call fcn.004ab400
push 1
push 0x50b438
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x4ab482
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x50b43c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4ab45d
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x4abfec
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
ret

Function at 0x4accd8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov byte [ebp - 5], 0
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.004064d4
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jle 0x4acd7a
mov eax, ebx
call fcn.00403018
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4acd73
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
push edi
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4acd5d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4acd9c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4acd5d
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4acd91
mov eax, dword [ebp - 0x10]
call fcn.00403034
ret
mov eax, dword [0x505038]
cmp dword [eax], 1
je 0x4acd91
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004acafc
mov byte [ebp - 5], al
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4acfa4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004acf58
test al, al
jne 0x4acfc5
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4ad013
xor eax, eax
push ebp
push 0x4ad003
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_CreateDirectoryW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ad00a
lea eax, [ebp - 0xc]
call fcn.004acf94
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret