joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.100080c7
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100080c7
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.100080c7
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.100080c7
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.100080c7
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.100080c7
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.100080c7
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.100080c7
push 0xd008
push edi
call fcn.100080c7
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.100080c7
int3

Function at 0x100080c7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x100080d6
pop dword [ebp - 0x10]
mov eax, 0x600bdcd
sub eax, 0xf6003cf7
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x3af2a
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x4fc8
mov edi, eax
mov ebx, 0x147a71dd
add ebx, 0xfb871423
add ebx, dword [ebp - 0x10]
mov esi, 0x93626470
add esi, 0x33e50e3
sub dword [ebp - 8], 0x584568d0
mov edx, dword [ebx]
sub dword [ebp - 0xc], 0x1bcb57bf
add edx, esi
xor dword [ebp - 0xc], ebx
mov dword [edi], edx
sub dword [ebp - 8], 0x4748da49
add edi, 0xb945defc
sub edi, 0xb945def8
add ebx, 0x94bc3d49
sub ebx, 0x94bc3d45
loop 0x1000812a
add eax, 0x7a8b11e9
add eax, 0x8576200a
mov ebx, eax
add eax, 5
mov ecx, 0xba12bfca
sub ecx, 0xaa12bfca
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x40987c
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409930
jmp 0x409925
cmp dword [esi + 0x10], 0x1000
jne 0x409911
test byte [esi + 0x15], 1
jne 0x409911
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x4098d0
cmp eax, 2
je 0x4098d0
cmp eax, 0x10
je 0x4098d0
cmp eax, 0x20
jne 0x4098e5
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4098e5
mov bl, 1
xor ebp, ebp
jmp 0x4098f6
mov eax, dword [esi]
add eax, ebp
call fcn.00409874
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x4098e9
test bl, bl
je 0x409911
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409930
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4098a8
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x10002b76
Capabilities:
Encode data using xor

Disassembly:
add eax, 0x7439c7b6
dec eax
jnp 0x10002ba3
fisubr word [eax - 0x9912c8f]
xor bl, byte [ebx + 0x38]
invalid
imul esp, dword [esi - 0x4d], 0x46219c4a
add bh, byte [0x346efa97]
push cs
mov byte [0x6c1f4506], al
mov ebp, 0xb5486a35
bound edi, qword [ecx - 0x28]
push cs
lea edx, [edx + 0x7cc1c005]
invalid
clc
dec ebp
mov byte [ebp - 0x59d67494], ah
xor bl, ah
jb 0x10002b76
rcl dword [ecx + ecx*4], 0xa
cmp dword [ecx + 0x1dfa2930], edi
invalid
pop edi
invalid
Function at 0x4018a3
Capabilities:
Compare security identifiers

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x408128]
push ebx
push edi
push 2
xor ebx, ebx
mov word [ebp - 8], 0x500
pop edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
cmp eax, edi
jne 0x4019c9
lea ecx, [ebp - 0x10]
call fcn.004017ee
test eax, eax
jne 0x4019b8
lea eax, [ebp - 0x18]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4019c9
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4019aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4019aa
push esi
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
pop esi
test esi, esi
je 0x4019a9
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push esi
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4019a2
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push edi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4019a2
cmp dword [esi], ebx
jbe 0x401999
lea edi, [esi + 4]
push dword [ebp - 0x1c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40198e
inc ebx
add edi, 8
cmp ebx, dword [esi]
jb 0x401975
jmp 0x401999
xor eax, eax
inc eax
mov dword [0x408128], eax
mov dword [ebp - 0x10], eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
jmp 0x4019c9
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4019c9
mov dword [0x408128], 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00406ce0
mov esp, ebp
pop ebp
ret
Function at 0x401f90
Capabilities:
Shutdown system

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor edi, edi
test eax, eax
jne 0x401f23
mov edx, 0x4f5
push edi
push 0x10
push edi
push edi
xor ecx, ecx
call fcn.004044b9
xor eax, eax
jmp 0x401f81
push esi
lea eax, [ebp - 0x10]
push eax
push 0x4011c4
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push edi
push edi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push edi
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
push eax
pop esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop esi
push edi
jne 0x401f6b
mov edx, 0x4f6
jmp 0x401f14
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x401f7e
mov edx, 0x4f7
jmp 0x401f13
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00406ce0
mov esp, ebp
pop ebp
ret
push edi
pop edi
push ebx
push ecx
pop ebx
test bl, 2
jne 0x401fa4
call fcn.00401ea7
cmp eax, 2
jne 0x401fd9
test bl, 4
jne 0x401fc5
push 4
push 0x40
push 0
push 0x401140
mov edx, 0x522
xor ecx, ecx
call fcn.004044b9
cmp eax, 6
jne 0x401fd9
cmp word [0x409a40], 0
jne 0x401fdb
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop ebx
ret
pop ebx
jmp 0x401ee2

Function at 0x401fe1
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
push ecx
cmp byte [0x408530], 0
je 0x402026
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402026
push 0x408530
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x402267
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x408530], 0
je 0x402382
push esi
lea eax, [ebp - 0x344]
xor esi, esi
push eax
push 0x2001f
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402381
push ebx
lea eax, [ebp - 0x348]
mov ebx, 0x238
push eax
lea eax, [ebp - 0x340]
mov dword [ebp - 0x348], ebx
push eax
push esi
push esi
push 0x408530
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402374
push edi
mov edi, 0x104
lea eax, [ebp - 0x108]
push edi
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x402321
push 0x401140
push edi
pop edx
lea ecx, [ebp - 0x108]
call fcn.0040658a
push 0x4091e4
lea eax, [ebp - 0x108]
push eax
push str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
lea eax, [ebp - 0x340]
push ebx
push eax
call fcn.0040171e
add esp, 0x14
lea ecx, [ebp - 0x340]
lea edx, [ecx + 1]
pop edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40234c
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x340]
push eax
push 1
push esi
push 0x408530
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406ce0
mov esp, ebp
pop ebp
ret
Function at 0x402390
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x408004]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
push ecx
pop esi
push edi
test esi, esi
je 0x4024cb
cmp byte [esi], 0
je 0x4024cb
mov ebx, 0x104
lea ecx, [esp + 0x150]
push esi
push ebx
pop edx
call fcn.00401680
push 0x4011f4
push ebx
pop edx
lea ecx, [esp + 0x154]
call fcn.004016b3
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
pop edi
cmp edi, 0xffffffff
je 0x4024cb
push esi
push ebx
pop edx
lea ecx, [esp + 0x154]
call fcn.00401680
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x3c]
je 0x402479
push 0x4011f8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4024a9
push 0x4011fc
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4024a9
lea eax, [esp + 0x3c]
push ebx
pop edx
push eax
lea ecx, [esp + 0x154]
call fcn.004016b3
push 0x401140
push ebx
pop edx
lea ecx, [esp + 0x154]
call fcn.0040658a
lea ecx, [esp + 0x150]
call fcn.00402390
jmp 0x4024a9
push eax
push ebx
pop edx
lea ecx, [esp + 0x154]
call fcn.004016b3
push 0x80
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402407
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406ce0
mov esp, ebp
pop ebp
ret

Function at 0x4024e0
Capabilities:
Get common file path

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x104
lea eax, [ebp - 0x108]
push edi
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40255b
push 0x401200
push edi
pop edx
lea ecx, [ebp - 0x108]
call fcn.0040658a
lea eax, [ebp - 0x108]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x40
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
push eax
pop edi
cmp edi, 0xffffffff
je 0x40255b
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
push edi
push eax
pop esi
call dword [sym.imp.KERNEL32.dll__lclose]
mov ecx, dword [ebp - 4]
push esi
pop eax
pop edi
xor ecx, ebp
pop esi
call fcn.00406ce0
mov esp, ebp
pop ebp
ret
Function at 0x40256d
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
movzx eax, cx
xor esi, esi
test ax, ax
je 0x402622
xor edx, edx
inc edx
cmp ax, dx
je 0x4025e8
jbe 0x402629
cmp cx, 3
ja 0x402629
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push eax
push 0x20019
push esi
push 0x40800c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4025e3
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push str.PendingFileRenameOperations
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
neg eax
sbb eax, eax
not eax
and dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 4]
jmp 0x402629
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push eax
push 0x20019
push esi
push str.SystemCurrentControlSetControlSession_ManagerFileRenameOperations
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4025e3
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
jmp 0x4025d1
call fcn.004024e0
push eax
pop esi
push esi
pop eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402773
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push ecx
pop edi
mov dword [ebp - 0x110], esi
mov byte [edi], bl
cmp byte [esi], 0x23
jne 0x4028b2
inc esi
movsx eax, byte [esi]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
push esi
mov byte [ebp - 0x109], al
call dword [sym.imp.USER32.dll_CharNextA]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x110], eax
mov esi, 0x104
mov al, byte [ebp - 0x109]
cmp al, 0x53
je 0x4028b7
cmp al, 0x57
je 0x4028a8
push ecx
push 0x401210
push ecx
push esi
pop edx
mov dword [ebp - 0x11c], esi
lea ecx, [ebp - 0x108]
call fcn.00401781
push dword [ebp - 0x110]
push esi
pop edx
lea ecx, [ebp - 0x108]
call fcn.0040658a
lea eax, [ebp - 0x118]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x108]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4028c3
lea eax, [ebp - 0x11c]
push eax
push edi
lea eax, [ebp - 0x114]
push eax
push ebx
push 0x401140
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40289a
mov eax, dword [ebp - 0x114]
cmp eax, 2
jne 0x402892
push esi
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x40288c
lea eax, [ebp - 0x108]
push esi
pop edx
push eax
push edi
pop ecx
call fcn.00401680
jmp 0x402897
mov eax, dword [ebp - 0x114]
cmp eax, 1
jne 0x40289a
xor ebx, ebx
inc ebx
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4028bf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x4028c3
mov esi, 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test ebx, ebx
jne 0x4028d2
push dword [ebp - 0x110]
push esi
pop edx
push edi
pop ecx
call fcn.0040658a
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00406ce0
mov esp, ebp
pop ebp
ret 4
Function at 0x4028e8
Capabilities:
Get file version info

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov dword [ebp - 8], edx
push ecx
pop edx
push esi
xor esi, esi
mov dword [ebp - 0xc], edx
push esi
pop ebx
push edi
push esi
pop edi
mov dword [ebp - 0x10], ebx
cmp dword [edx + 0x7c], esi
jle 0x402a62
push esi
pop eax
mov dword [ebp - 4], esi
mov ecx, dword [edx + 0x80]
add eax, edx
add edx, 0x84
mov dword [ebp - 0x14], ecx
mov eax, dword [eax + ecx + 0xbc]
mov ecx, dword [ebp - 8]
add eax, edx
push eax
call fcn.00402773
test eax, eax
je 0x402a65
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x402a2c
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
pop edi
test edi, edi
je 0x402a65
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x402a65
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x402a20
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x401244
push dword [ebp - 0x20]
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x402a20
cmp dword [ebp - 0x24], 0
je 0x402a20
mov eax, dword [ebp - 0x28]
push esi
pop ebx
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
add ecx, 0x94
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
add eax, ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
push eax
pop esi
push dword [esi - 0xc]
push dword [esi - 0x10]
call fcn.00402a89
push dword [esi]
mov dword [ebp + ebx - 0x34], eax
push dword [esi - 4]
call fcn.00402a89
mov dword [ebp + ebx - 0x3c], eax
lea esi, [esi + 0x18]
add ebx, 4
cmp ebx, 8
jl 0x4029df
mov ebx, dword [ebp - 0x10]
xor esi, esi
cmp dword [ebp - 0x34], esi
jl 0x402a16
cmp dword [ebp - 0x3c], esi
jle 0x402a20
cmp dword [ebp - 0x30], esi
jl 0x402a80
cmp dword [ebp - 0x38], esi
jg 0x402a80
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0xc]
jmp 0x402a4c
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
add eax, edx
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
cmp dword [eax + ecx + 0x84], esi
jne 0x402a65
cmp dword [eax + ecx + 0x88], esi
jne 0x402a65
mov eax, dword [ebp - 4]
inc ebx
add eax, 0x3c
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], eax
cmp ebx, dword [edx + 0x7c]
jl 0x402912
xor esi, esi
inc esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], ebx
test edi, edi
je 0x402a75
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
push esi
pop eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x402a65
Function at 0x402caa
Capabilities:
Check mutex on windows
Extract resource via kernel32 functions

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x8fc
xor edi, edi
push ecx
pop esi
push edi
push 0x409140
push edx
pop ebx
mov dword [0x409a3c], esi
call sub.msvcrt.dll_memset
push 0x32c
push edi
push 0x408a20
call sub.msvcrt.dll_memset
push 0x104
push edi
push 0x4088c0
call sub.msvcrt.dll_memset
add esp, 0x24
xor eax, eax
inc eax
mov edx, 0x409154
mov ecx, 0x401278
mov dword [0x4093ec], eax
push 0x7f
call fcn.0040468f
test eax, eax
je 0x402ef3
cmp eax, 0x80
ja 0x402ef3
push edi
xor eax, eax
inc eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
mov dword [0x40858c], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 4
mov edx, 0x409a34
mov ecx, 0x401280
call fcn.0040468f
test eax, eax
jne 0x402d7d
xor eax, eax
mov edx, 0x4b1
push eax
push 0x10
push eax
push eax
xor ecx, ecx
call fcn.004044b9
mov dword [0x409124], 0x80070714
jmp 0x402f06
test byte [0x409a34], 0xc0
je 0x402e1f
push 0x104
lea edx, [ebp - 0x108]
mov ecx, 0x40128c
call fcn.0040468f
test eax, eax
je 0x402d5b
lea eax, [ebp - 0x108]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x408588], eax
test eax, eax
je 0x402e1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402e1f
xor ecx, ecx
test byte [0x409a34], 0x80
je 0x402dea
push ecx
push 0x10
push ecx
push 0x409154
mov edx, 0x54b
call fcn.004044b9
jmp 0x402e04
push 4
push 0x20
push 0
push 0x409154
mov edx, 0x524
call fcn.004044b9
cmp eax, 6
je 0x402e1f
push dword [0x408588]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x409124], 0x800700b7
jmp 0x402f06
and dword [0x409120], edi
push ebx
pop ecx
call fcn.00405c9e
test eax, eax
jne 0x402e3a
mov edx, 0x520
jmp 0x402ef8
cmp byte [0x408a3a], 0
je 0x402e52
mov ecx, 0x408a3a
call fcn.00402390
jmp 0x402f06
push 0xa
push 0x40129c
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x402e6e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
pop edi
cmp dword [0x408184], 0
je 0x402e7d
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
cmp dword [0x408a24], 0
je 0x402e8b
xor eax, eax
inc eax
jmp 0x402f08
push edi
pop ecx
call fcn.004036ee
test eax, eax
je 0x402f06
mov ax, word [0x409a40]
xor ebx, ebx
inc ebx
cmp ax, bx
je 0x402eb0
cmp ax, 2
je 0x402eb0
cmp ax, 3
jne 0x402eef
test dword [0x409a34], 0x100
je 0x402eef
test byte [0x408a38], 1
jne 0x402eef
call fcn.004018a3
test eax, eax
jne 0x402eef
push 0x83e
push 0x547
push 0x4019e0
push eax
mov edx, 0x7d6
call fcn.00406517
cmp eax, 0x83d
jne 0x402f06
push ebx
pop eax
jmp 0x402f08
mov edx, 0x4b1
xor eax, eax
xor ecx, ecx
push eax
push 0x10
push eax
push eax
call fcn.004044b9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ce0
mov esp, ebp
pop ebp
ret 4