joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4307a8
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x4b659a
call fcn.004a27f3
and dword [ebp - 4], 0
push 0x4c33ec
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00423691
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042101a
push dword [ebp + 8]
push 0x4c8e28
call fcn.0045f7b0
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0042101a
call fcn.004a28cb
ret

Function at 0x430880
Capabilities:
Set file attributes

Disassembly:
push 8
mov eax, 0x4b6577
call fcn.004a27f3
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 2
mov ecx, dword [ebp + 8]
push 0x4c4fbc
call fcn.00423442
push 3
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x43092b
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov ebx, eax
cmp ebx, esi
je 0x430913
mov esi, dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push ebx
mov edi, 0x467590
push edi
push 3
push dword [ebp - 0x10]
call esi
push ebx
push edi
push 0xe
push dword [ebp - 0x10]
call esi
push ebx
push edi
push 0x10
push dword [ebp - 0x10]
call esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
test eax, eax
jne 0x430920
push str.Cannot_commit_to_target_file__write_permission_required_
jmp 0x430918
push str.Cannot_begin_to_update_target_file
mov ecx, dword [ebp + 8]
call fcn.00423efa
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x430938
mov ecx, dword [ebp + 8]
push str.Cannot_open_source_file
call fcn.00423efa
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0042101a
mov eax, dword [ebp + 8]
call fcn.004a28cb
ret
Function at 0x433344
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x1c
mov eax, 0x4b78ee
call fcn.004a27f3
mov ebx, ecx
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0x50
jge 0x433545
call fcn.0048f565
push eax
lea ecx, [ebp - 0x24]
call fcn.0042149e
mov eax, 0x400
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
call fcn.0049e212
mov dword [ebp - 0x18], eax
mov eax, esp
mov dword [ebp - 0x14], esp
push dword [ebp + 0xc]
push str.AppNameGuess:_OnUninstallerKey:__s
push eax
call fcn.00461d60
add esp, 8
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.General
call fcn.00423442
push 1
mov byte [ebp - 4], 1
call fcn.004668c0
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x20]
push eax
push esi
push str.DisplayName
push dword [ebp + 8]
call edi
test eax, eax
jne 0x433531
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
call fcn.00423442
push str.Microsoft_Visual_C
xor ecx, ecx
lea esi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00423555
cmp eax, 0xffffffff
je 0x43341c
push str.Redistributable
xor ecx, ecx
call fcn.00423555
cmp eax, 0xffffffff
jne 0x433526
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x433430
push 0x4c6a08
mov ecx, ebx
call fcn.00427b99
mov esi, dword [ebp - 0x18]
push esi
mov ecx, ebx
call fcn.00427ad1
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push 0
push str.Publisher
push dword [ebp + 8]
call edi
test eax, eax
jne 0x43345d
mov ecx, dword [ebp + 0x10]
push esi
call fcn.0042349b
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push 0
push str.DisplayVersion
push dword [ebp + 8]
call edi
test eax, eax
jne 0x43347f
mov ecx, dword [ebp + 0x14]
push esi
call fcn.0042349b
push ecx
mov ecx, dword [ebp + 0x14]
mov eax, esp
mov dword [ebp - 0x10], esp
push dword [ecx]
mov ecx, dword [ebp + 0x10]
push dword [ecx]
push dword [ebx]
push str.AppNameGuess:_RegAppName_s__RegPublisher_s__RegVersion_s
push eax
call fcn.00461d60
add esp, 0x10
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.General
mov byte [ebp - 4], 4
call fcn.00423442
push 1
mov byte [ebp - 4], 3
call fcn.004668c0
add esp, 0xc
push ebx
lea ecx, [ebp - 0x10]
call fcn.00423ad0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x10]
mov esi, dword [eax - 0xc]
push esi
lea ecx, [ebp - 0x10]
call fcn.004214d0
lea ecx, [esi + 1]
push ecx
push eax
call fcn.0049ed2a
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.004214fc
mov edi, str._REMOVE_ONLY_
push edi
xor ecx, ecx
lea esi, [ebp - 0x10]
call fcn.00423555
mov esi, eax
cmp esi, 0xffffffff
je 0x43351b
push edi
call fcn.0049db0a
pop ecx
push esi
push ebx
call fcn.004234d9
call fcn.00423a1f
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0042101a
push dword [ebp - 0x18]
call fcn.0049e0f5
pop ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0042101a
call fcn.004a28cb
ret
Function at 0x434587
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
cmp dword [0x4eab78], esi
jne 0x434608
mov dword [0x4eab78], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00460200
pop ecx
test eax, eax
jne 0x4345f7
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x4ea72c], eax
cmp dword [0x4eab7c], esi
jne 0x4345e4
push esi
push esi
push 0x4c4fbc
call fcn.0049eaed
pop ecx
push eax
push 0x434207
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4eab7c], eax
push 0x190
push dword [0x4ea72c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
ret
push str.This_is_a_System_process__so_skipping_window_display.
push str.GfxServerInit
call fcn.0045f7b0
pop ecx
pop ecx
pop esi
ret

Function at 0x434c0c
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [esi + 0x8c], edi
je 0x434c4e
mov ecx, esi
call fcn.00435653
test eax, eax
je 0x434c53
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x434f70
push edi
push edi
call fcn.004a0604
add esp, 0x18
mov dword [esi + 0xa8], eax
cmp eax, edi
je 0x434c4e
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop edi
leave
ret
mov eax, dword [esi + 0xb0]
cmp eax, edi
je 0x434c4e
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x1c]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb0]
push edi
mov ecx, dword [eax]
neg edx
push edx
push dword [ebp - 8]
push dword [ebp - 4]
push edi
push dword [esi + 0x68]
push dword [esi + 0x64]
push edi
push edi
push dword [esi + 0x90]
push eax
call dword [ecx + 0x20]
test eax, eax
jne 0x434c4e
push edi
push edi
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
xor eax, eax
inc eax
jmp 0x434c50
Function at 0x434cb3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
call fcn.004918c7
mov eax, dword [eax + 0xc]
push 0x4c9cd0
push 0x3ed
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x434d60
call fcn.004918c7
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x434d60
call fcn.004918c7
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x434d60
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x434d59
test ebx, ebx
je 0x434d59
push edi
push eax
push ebx
call fcn.0049dd90
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 8]
push edi
push esi
call fcn.0043475a
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
jmp 0x434d62
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x435c66
Capabilities:
Print debug messages

Disassembly:
push 8
mov eax, 0x4b6533
call fcn.004a27f3
and dword [ebp - 4], 0
push dword [ebp + 8]
push 0x4ca170
call fcn.0045f7b0
pop ecx
pop ecx
push 0x4c33ec
lea ecx, [ebp + 8]
call fcn.00427b99
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00424913
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call fcn.004a06b4
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push str.Loader:
push eax
call fcn.004236e6
add esp, 0x10
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00423af1
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0042101a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0042101a
call fcn.004a28cb
ret
Function at 0x43c9dd
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4e5c64]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x3b8
xor ebx, ebx
lea eax, [esi + 0x54]
push ebx
push eax
call fcn.0049e2e0
push 0x110
xor edi, edi
inc edi
lea eax, [ebp - 0x114]
push ebx
push eax
mov dword [esi + 0x40c], ebx
mov dword [esi + 0x410], edi
mov dword [esi + 0x414], edi
mov dword [esi + 0x454], ebx
mov dword [esi + 0x458], edi
mov dword [esi + 0x418], ebx
mov dword [esi + 0x438], ebx
mov dword [esi + 0x450], ebx
mov dword [esi + 0x420], ebx
mov dword [esi + 0x45c], ebx
mov dword [ebp - 0x118], 0x114
call fcn.0049e2e0
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x43ca80
cmp dword [ebp - 0x114], 5
jae 0x43ca82
xor edi, edi
mov ecx, dword [ebp - 4]
mov dword [esi + 0x41c], edi
pop edi
xor ecx, ebp
pop ebx
call fcn.0049d211
leave
ret

Function at 0x43d3f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
push ecx
mov byte [ebp - 1], 0
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [eax], edi
call fcn.0049eaed
add esp, 4
mov ebx, eax
lea edx, [eax + 2]
jmp 0x43d420
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x43d420
sub eax, edx
sar eax, 1
cmp eax, 5
jb 0x43d474
lea esi, [ebx + eax*2 - 0xa]
mov ecx, 0x4ccaa0
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43d466
cmp dx, di
je 0x43d462
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43d466
add eax, 4
add ecx, 4
cmp dx, di
jne 0x43d440
xor eax, eax
jmp 0x43d46b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x43d474
xor edx, edx
mov word [esi], dx
mov edx, dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 0xc]
push ecx
push edi
push ebx
push edx
call esi
cmp eax, 0xea
je 0x43d496
cmp eax, edi
jne 0x43d4d6
mov eax, dword [ebp - 8]
push eax
call fcn.0049e212
add esp, 4
lea ecx, [ebp - 8]
push ecx
mov edi, eax
mov eax, dword [ebp + 8]
push edi
lea edx, [ebp - 0xc]
push edx
push 0
push ebx
push eax
call esi
test eax, eax
jne 0x43d4cd
mov esi, dword [ebp - 8]
call fcn.0048d060
mov ecx, dword [ebp + 0xc]
not eax
mov dword [ecx], eax
mov byte [ebp - 1], 1
push edi
call fcn.0049e0f5
add esp, 4
push ebx
call fcn.0049e0f5
mov al, byte [ebp - 1]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45fbb0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x28
mov dword [ebp - 8], 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x45fbde
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x45fbd6
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
lea edx, [ebp - 0x20]
push edx
push 0x10
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 0
push ecx
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x24], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jne 0x45fbd6
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
or dword [ebp - 0x14], 2
push 0
push 0
push ecx
mov dword [ebp - 0x1c], edx
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
push 0
push eax
mov dword [ebp - 0x20], 1
call esi
call edi
test eax, eax
jne 0x45fbd6
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x460200
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4e5c64]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x460255
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d211
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
push esi
push edx
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, ebx
je 0x460303
lea eax, [ebp - 0x14]
push eax
push 0x20008
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4602fc
mov edx, dword [ebp - 0x14]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [ebp - 0x10]
push ecx
push ebx
push ebx
push 5
push edx
mov dword [ebp - 0x10], ebx
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4602f1
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jbe 0x4602f1
push eax
call fcn.0048ee7f
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4602ee
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push ecx
push esi
push 5
push edx
call edi
test eax, eax
je 0x4602e5
mov eax, dword [ebp - 0x20]
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov dword [ebp - 0x1c], eax
push esi
call fcn.0048ee8a
add esp, 4
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d211
mov esp, ebp
pop ebp
ret
Function at 0x460320
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.0049e2e0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], ecx
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x460420
cmp dword [ebp + 0x10], 0
je 0x460396
mov edx, dword [ebp - 4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test edi, edi
je 0x4603a5
mov eax, dword [ebp - 4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test ebx, ebx
je 0x4603b0
mov ecx, dword [ebp - 4]
mov dword [ebx], ecx
jmp 0x4603ba
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4603d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4603f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x460417
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46043f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46045e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46047d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4610e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b60a8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4e5c64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x10], esi
cmp word [0x4eab88], si
jne 0x461124
push 0x104
push 0x4eab88
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
call fcn.0048f565
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x46113e
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ebx, dword [ebp + 8]
add eax, 0x10
mov dword [ebx], eax
mov ecx, 0x4eab88
mov dword [ebp - 4], esi
test ecx, 0xffff0000
jne 0x46124e
mov edx, ecx
movzx esi, dx
push esi
call fcn.00497482
mov edi, eax
test edi, edi
je 0x461268
mov eax, esi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x461268
push esi
push eax
push edi
call fcn.00421708
mov esi, eax
add esp, 0xc
test esi, esi
je 0x461268
mov eax, dword [ebx]
movzx edi, word [esi]
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edi
or edx, eax
jge 0x4611c9
push edi
mov ecx, ebx
call fcn.00421527
movzx eax, word [esi]
mov ecx, dword [ebx]
add esi, 2
mov dword [ebp - 0x10], ecx
cmp eax, 0xffffffff
jne 0x4611e3
push esi
call fcn.0049db0a
add esp, 4
inc eax
lea edx, [eax + eax]
mov eax, dword [ebp - 0x10]
push edx
push esi
lea ebx, [edi + edi]
push ebx
push eax
call fcn.0049d600
add esp, 0x10
cmp eax, 0x50
ja case.0x461204.1
movzx ecx, byte [eax + 0x46128c]
jmp dword [ecx*4 + 0x46127c]
call fcn.0048facd
call fcn.0048fb05
test edi, edi
jl 0x461244
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
cmp edi, dword [eax - 8]
jg 0x461244
mov dword [eax - 0xc], edi
mov edx, dword [ecx]
xor eax, eax
mov word [ebx + edx], ax
mov ebx, ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00421000
push 0x4eab88
call fcn.0049db0a
add esp, 4
push eax
push 0x4eab88
mov ecx, ebx
call fcn.00423f19
mov eax, ebx
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 0x4612e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4e5c64]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.0049e2e0
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x461345
cmp dword [ebp - 0x114], 5
jne 0x461345
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d211
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0049d211
mov esp, ebp
pop ebp
ret
Function at 0x462890
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push esi
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push eax
mov dword [ebp - 8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [edi], 0
mov dword [ebx], 0
cmp esi, 0xffffffff
je 0x462957
push 0
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx], eax
test eax, eax
jne 0x46290b
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x462903
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
je 0x462914
add eax, 2
push eax
call fcn.0049e212
add esp, 4
push 0
lea ecx, [ebp - 4]
push ecx
mov dword [edi], eax
mov edx, dword [ebx]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x462950
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
je 0x462950
mov ecx, dword [edi]
mov byte [eax + ecx], 0
mov edx, dword [edi]
mov eax, dword [ebp - 4]
mov byte [edx + eax + 1], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x462976
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret