joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x572628ae
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x6842eb7
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x433003
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x40de38
nop
mov ecx, 0x5ab56014
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..rdata
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x46fa04e8
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x402330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402389
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402389
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x402378
cmp esi, edx
jae 0x402389
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x402366
cmp esi, edx
jae 0x402389
cmp word [esi], 0
je 0x402389
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x403c10
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b488
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x464024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp dword [esi - 4], 1
jle 0x403c5b
push dword [esi - 0xc]
lea ecx, [ebp + 8]
call fcn.004154d0
mov esi, dword [ebp + 8]
push 0x410
lea eax, [ebp - 0x830]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x403c80
push esi
lea ecx, [ebp - 0x834]
call fcn.00414580
jmp 0x403ce6
call fcn.004024e0
mov ecx, eax
test ecx, ecx
je 0x403d7c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x834], eax
lea eax, [ebp - 0x830]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x834]
call fcn.004153b0
test al, al
jne 0x403ce2
lea ecx, [ebp - 0x830]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403cc0
sub ecx, edx
lea eax, [ebp - 0x830]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x834]
call fcn.00416540
mov byte [ebp - 4], 0
push str..dll
push dword [ebp - 0x834]
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
push dword [ebp - 0x834]
test eax, eax
je 0x403d15
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
push eax
setne bl
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x403d20
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
mov edx, dword [ebp - 0x834]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403d40
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x403d5f
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041ae8f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402240
int3
Function at 0x404fb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 0x45cf8c
movzx eax, cx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edi
mov dword [0x46a5e0], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov esi, dword [0x46a5e0]
push eax
push esi
call fcn.0041c940
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x46bd24
push 1
push dword [0x46a5e0]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x40504e
mov edx, dword [0x46bd24]
lea ecx, [esi + 4]
push ecx
push edx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [ecx], 0
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [esi + 8], eax
mov eax, esi
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x405170
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x46a5cc], 0
mov ecx, 0xf013f
mov eax, 0xf003f
cmovne eax, ecx
lea ecx, [ebp - 4]
push ecx
push eax
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSystemRestore
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4051b7
push eax
push str.ERROR_0x_x_n
call fcn.004020b0
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
push str.SystemRestorePointCreationFrequency
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 4]
mov esi, eax
test ecx, ecx
je 0x4051d6
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405560
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, 0x20106
cmp dword [0x46a5cc], 0
mov eax, 0x20006
cmovne eax, ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 4]
push ecx
push 0
push eax
push 0
push 0
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4055ad
push eax
push str.ERROR_0x_x_n
call fcn.004020b0
add esp, 8
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
cmp eax, 1
jne 0x4055e7
mov edx, dword [ebp + 0xc]
mov ecx, edx
push esi
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4055c0
sub ecx, esi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
jmp 0x40561d
cmp eax, 4
jne 0x40561d
push dword [ebp + 0xc]
call fcn.0042787f
add esp, 4
fstp qword [ebp - 0xc]
movsd xmm0, qword [ebp - 0xc]
call fcn.0043b1a0
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x40562b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x405630
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x464024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x41c], ebx
test edi, edi
je 0x40578d
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x40578d
push edi
call fcn.00423ba2
add esp, 4
mov ecx, 0xf013f
cmp dword [0x46a5cc], 0
mov eax, 0xf003f
cmovne eax, ecx
lea ecx, [ebp - 0x418]
push ecx
push eax
push 0
push edi
push ebx
mov dword [ebp - 0x424], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405792
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
nop word [eax + eax]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], 0x208
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push dword [ebp - 0x418]
call ebx
mov esi, eax
cmp esi, 0x103
je 0x405722
test esi, esi
jne 0x40576e
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x414]
call fcn.00405630
mov esi, eax
test esi, esi
je 0x4056b0
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ae8f
mov esp, ebp
pop ebp
ret
cmp dword [0x46c570], 0
jle 0x405761
push 0
push dword [ebp - 0x424]
push edi
push dword [ebp - 0x41c]
call dword [0x46b4e0]
push dword [ebp - 0x418]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ae8f
mov esp, ebp
pop ebp
ret
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ae8f
mov esp, ebp
pop ebp
ret
mov eax, 0x3f2
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0041ae8f
mov esp, ebp
pop ebp
ret

Function at 0x405bd0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x464024]
xor eax, esp
mov dword [esp + 0x1c], eax
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [esp + 4]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push 0
push 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x14]
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [esp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0041ae8f
mov esp, ebp
pop ebp
ret
Function at 0x406400
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b7f8
mov eax, dword fs:[0]
push eax
sub esp, 0x3b4
mov eax, dword [0x464024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0
mov dword [ebp - 4], 0
mov ecx, 0x46c58c
push 0x449958
mov byte [ebp - 4], 1
call fcn.00416540
push 0
push 0x449958
mov ecx, 0x46c744
call fcn.00416540
push 0
push 0x449958
mov ecx, 0x46c74c
call fcn.00416540
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x406486
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.004154d0
mov eax, dword [ebp + 8]
push 0x64
lea ecx, [ebp - 0x1a4]
push ecx
lea ecx, [ebp - 0x3bc]
push ecx
lea ecx, [ebp - 0x3c0]
push ecx
lea ecx, [ebp - 0x3b0]
push ecx
push 0x64
lea ecx, [ebp - 0xdc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4065da
lea edx, [ebp - 0xdc]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4064c5
sub edx, esi
lea eax, [ebp - 0xdc]
sar edx, 1
mov ecx, 0x46c58c
push edx
push eax
call fcn.00416540
mov ecx, dword [ebp - 0x3b0]
movzx eax, cx
push eax
shr ecx, 0x10
lea eax, [ebp - 0x3ac]
push ecx
push str._04X__04X_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x3ac]
mov edx, 0x46c74c
push eax
lea ecx, [ebp - 0x3b8]
call fcn.00413da0
add esp, 0x14
mov byte [ebp - 4], 2
mov edx, dword [eax]
mov edi, dword [0x46c74c]
add edi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x406584
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x406576
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x406576
call fcn.004164d0
or esi, 0xffffffff
mov dword [ebp - 0x3b4], eax
mov ecx, esi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x40656c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x3b4]
add eax, 0x10
mov dword [0x46c74c], eax
jmp 0x406587
push dword [edx - 0xc]
mov ecx, 0x46c74c
push edx
call fcn.00416540
or esi, 0xffffffff
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x3b8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4065a8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebp - 0x1a4]
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4065b1
sub edx, edi
lea eax, [ebp - 0x1a4]
sar edx, 1
mov ecx, 0x46c744
push edx
push eax
call fcn.00416540
jmp 0x4065dd
or esi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4065fc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041ae8f
mov esp, ebp
pop ebp
ret
Function at 0x407f00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43baa6
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x464024]
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
push 0
push 0x24
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.004024e0
mov ecx, eax
test ecx, ecx
je 0x408103
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x21c]
call fcn.004153b0
test al, al
jne 0x407fa6
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407f84
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.00416540
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x21c]
cmp dword [edi - 0xc], 3
lea ebx, [edi - 0x10]
jg 0x407fce
mov ecx, ebx
call fcn.004164d0
lea esi, [eax + 0x10]
mov dword [ebp - 0x224], esi
jmp 0x408035
mov ecx, dword [ebx]
test ecx, ecx
je 0x407fdf
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x407ff5
call fcn.004024e0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x40810d
mov eax, dword [ecx]
push 2
push 3
call dword [eax]
test eax, eax
je 0x408117
cmp dword [eax + 8], 3
lea esi, [eax + 0x10]
mov dword [ebp - 0x224], esi
jl 0x4080f9
xor eax, eax
mov dword [esi - 0xc], 3
push 6
push edi
mov ecx, esi
mov word [esi + 6], ax
lea edx, [eax + 6]
call fcn.00401fd0
add esp, 8
lea edx, [esi - 0x10]
mov byte [ebp - 4], 2
mov dword [ebp - 0x220], edx
cmp edx, ebx
je 0x408098
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x40807d
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x40807d
mov ecx, edx
call fcn.004164d0
mov esi, eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x408072
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
lea edi, [esi + 0x10]
mov dword [ebp - 0x21c], edi
jmp 0x408092
push dword [esi - 0xc]
lea ecx, [ebp - 0x21c]
push esi
call fcn.00416540
mov edi, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x220]
or ebx, 0xffffffff
mov byte [ebp - 4], 1
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4080b3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00406620
test al, al
jne 0x4080c1
call fcn.00407a80
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4080dd
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
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.0041ae8f
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402240
push 0x80004005
call fcn.00402240
push 0x80004005
call fcn.00402240
call fcn.00416530
int3
Function at 0x408db0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x464024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x214]
push eax
push 0x46a610
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
push esi
call fcn.0041b628
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push 0x46a610
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x408e64
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x449928
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x408e64
mov eax, dword [ebp - 0x210]
push edi
push ebx
mov edi, dword [eax + 8]
mov esi, dword [eax + 0xc]
call fcn.0041ae9d
movzx eax, si
push eax
shr esi, 0x10
push esi
movzx eax, di
push eax
shr edi, 0x10
lea eax, [ebp - 0x20c]
push edi
push str._d._d_d_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x20c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ae8f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x449958
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ae8f
mov esp, ebp
pop ebp
ret
Function at 0x408e80
Capabilities:
Copy file
Create process on windows
Delete file
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x670
mov eax, dword [0x464024]
xor eax, esp
mov dword [esp + 0x66c], eax
push esi
push edi
call fcn.00427abe
push dword [eax]
push 0x45d8c8
push 0x46a838
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
call fcn.00427abe
cmp dword [eax], 2
jne 0x409012
call fcn.00427ac4
mov eax, dword [eax]
push dword [eax + 4]
call fcn.00423ba2
add esp, 4
push str.UNINSTALL
push eax
call fcn.0041c1a5
add esp, 8
test eax, eax
je 0x409012
push 0x104
lea eax, [esp + 0x26c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x60]
push eax
push 0x82
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x60]
push eax
push 0
push 0x45d8e4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push 0x4000000
push 3
push 0
push 1
push 0
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 1
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea eax, [esp + 0x268]
push eax
push esi
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x47c]
push str._s__d___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
mov dword [esp + 8], 0x44
lea eax, [esp + 0x50]
xorps xmm0, xmm0
movlpd qword [esp + 0xc], xmm0
movlpd qword [esp + 0x14], xmm0
push eax
lea eax, [esp + 0xc]
movlpd qword [esp + 0x20], xmm0
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [esp + 0x490]
movlpd qword [esp + 0x44], xmm0
push eax
push 0
movlpd qword [esp + 0x54], xmm0
movlpd qword [esp + 0x5c], xmm0
movlpd qword [esp + 0x64], xmm0
movlpd qword [esp + 0x6c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov ecx, dword [esp + 0x674]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0041ae8f
mov esp, ebp
pop ebp
ret
mov dword [0x46c584], 2
call fcn.00427ac4
mov eax, dword [eax]
push dword [eax + 8]
call fcn.00423a04
add esp, 4
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00427ac4
mov eax, dword [eax]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004111f0
push 1
call fcn.0041f47e
int3
Function at 0x40a310
Capabilities:
Hide graphical window

Disassembly:
push ecx
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push edi
push 0
push dword [0x46a5bc]
mov edi, ecx
mov dword [0x46bd20], 1
call esi
push 1
push dword [0x46c140]
call esi
mov ecx, 1
call fcn.00409f90
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 5
push edi
call esi
push 1
push 0
push edi
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0
push 0
push 5
push edi
call esi
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 0
push dword [0x46c140]
call esi
push 3
push 0
push 0
push 0
push 0
push 0
push dword [0x46b4dc]
call esi
push 3
push 0
push 0
push 0
push 0
push 0
push dword [0x46a81c]
call esi
push 3
push 0
push 0
push 0
push 0
push 0
push dword [0x46b2ac]
call esi
push dword [0x46c140]
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ecx
ret

Function at 0x40b460
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x10], ebx
test byte [ebx + 0x28], 0x40
push ebx
je 0x40b482
mov edx, 0x33ff33
mov ecx, edx
jmp 0x40b48a
mov ecx, dword [0x46853c]
mov edx, ecx
call fcn.0040b270
add esp, 4
mov esi, eax
push 0
push 0
push 6
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push dword [ebx + 0x10]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x1c], eax
call ebx
mov edi, eax
mov eax, dword [esp + 0x10]
push esi
push dword [eax + 0x10]
call ebx
push 0
mov esi, eax
mov eax, dword [esp + 0x14]
push 0
push dword [eax + 0x20]
push dword [eax + 0x1c]
push dword [eax + 0x18]
push dword [eax + 0x14]
push dword [eax + 0x10]
call dword [sym.imp.GDI32.dll_RoundRect]
push edi
mov edi, dword [esp + 0x14]
push dword [edi + 0x10]
call ebx
push esi
push dword [edi + 0x10]
call ebx
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [esp + 0x14], eax
test eax, eax
jle 0x40b5a9
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041b628
add esp, 4
mov ebx, eax
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
push esi
push ebx
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
push ebx
push dword [edi + 0x10]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [edi + 0x1c]
sub eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [ecx + 0x20]
sub eax, dword [esp + 0x1c]
cdq
sub eax, edx
sar edi, 1
push 1
push dword [ecx + 0x10]
mov esi, eax
sar esi, 1
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esp + 0x10]
push 0xffffff
push dword [eax + 0x10]
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [esp + 0x14]
mov eax, dword [esp + 0x14]
push ebx
push esi
push edi
push dword [eax + 0x10]
call dword [sym.imp.GDI32.dll_TextOutW]
push ebx
call fcn.0041ae9d
add esp, 4
pop edi
pop esi
mov eax, 4
pop ebx
mov esp, ebp
pop ebp
ret