joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408a60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4c17d0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
mov dword [ebp - 0x210], 0
push eax
mov dword [ebp - 0x210], 1
call fcn.0047e260
add esp, 0xc
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x210]
push eax
push str.UninstallString
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallVPNMaster
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
test eax, eax
jne 0x408b0b
xor ecx, ecx
lea eax, [ebp - 0x20c]
mov word [esi + 4], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408af2
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
jmp 0x408b17
xor eax, eax
push eax
mov word [esi + 4], ax
push 0x4a3cf0
mov ecx, esi
call fcn.00409380
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.00477b1d
mov esp, ebp
pop ebp
ret

Function at 0x408b30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4c17d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea esi, [ebp - 0x2c]
call fcn.00408a60
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 4], 0
mov esi, 0x22
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], esi
call fcn.0040b640
push eax
push 0
lea ecx, [ebp - 0x2c]
call fcn.004094b0
push 0xffffffffffffffff
lea ecx, [ebp - 0x30]
push ecx
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x30], esi
call fcn.0040b6d0
inc eax
push eax
mov ecx, edi
call fcn.004094b0
mov eax, dword [ebp - 0x28]
mov esi, 8
cmp dword [ebp - 0x14], esi
jae 0x408bb2
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408bd2
cmp dword [ebp - 0x14], esi
jb 0x408bce
mov edx, dword [ebp - 0x28]
push edx
call fcn.00477b12
add esp, 4
mov al, 1
jmp 0x408be5
cmp dword [ebp - 0x14], esi
jb 0x408be3
mov eax, dword [ebp - 0x28]
push eax
call fcn.00477b12
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00477b1d
mov esp, ebp
pop ebp
ret
Function at 0x40df40
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4997b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x4c17d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x14], esi
or ebx, 0xffffffff
nop
push 0x4abdb0
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00414ae0
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x4e9130]
push ecx
push eax
lea edx, [ebp - 0x10]
push edx
call fcn.00414ae0
add esp, 0x18
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dfbc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, ebx
jne 0x40dfd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jmp 0x40dfda
shr eax, 4
test al, 1
je 0x40e02a
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40dffd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, 8
jb 0x40df70
mov esi, dword [ebp + 8]
push esi
mov ecx, 0x4a3cf0
call fcn.00416680
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00416a00
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x40e017
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40fcc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push esi
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40fd2e
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40fcfd
cmp eax, 2
jne 0x40fd18
mov eax, dword [ebp - 4]
test esi, esi
je 0x40fd28
test eax, eax
je 0x40fd23
test al, 1
jne 0x40fd18
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x40fd28
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x410b30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4abdc0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410bb8
lea ecx, [ebp - 8]
push ecx
push esi
lea edx, [ebp - 0xc]
push edx
push eax
mov eax, dword [ebp - 4]
push str.Path
push eax
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410b92
sub eax, edx
sar eax, 1
je 0x410bba
cmp word [esi + eax*2 - 2], 0x5c
je 0x410bba
mov edx, 0x5c
mov word [esi + eax*2], dx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x415fe0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49883b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4c17d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 1
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.00416a00
add eax, 0x10
mov dword [esi + 4], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.00416a00
add eax, 0x10
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 5
jne 0x41604a
xor edi, edi
jmp 0x41605a
neg edi
sbb edi, edi
and edi, 0xffffff00
add edi, 0x200
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [esi + 0xc], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416080
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
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 0x4160a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4160c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 4]
lea ecx, [ebp - 4]
push ecx
or edx, 1
push edx
push 0
push eax
mov eax, dword [esi]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x416120
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, dword [esi + 8]
push ecx
mov ecx, dword [ebp - 4]
push edx
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4164a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4164bd
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4164f4
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4164f0
lea ecx, [ecx]
cmp esi, eax
jae 0x4164f4
sub edi, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4164e0
cmp esi, eax
jb 0x4164fb
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x416c10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ada8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4c17d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], edi
call fcn.004074d0
mov dword [ebp - 4], edi
cmp dword [ebp - 0x18], edi
jne 0x416c60
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov word [esi + 4], ax
jmp 0x416cc7
push 7
push str.cache_
lea eax, [ebp - 0x2c]
call fcn.0040b400
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x416c7b
lea eax, [ebp - 0x28]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call edi
push 5
push str.cef_
lea eax, [ebp - 0x2c]
call fcn.0040b400
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x416ca0
lea eax, [ebp - 0x28]
push 0
push eax
call edi
xor edx, edx
push 0xffffffffffffffff
push edx
lea eax, [ebp - 0x2c]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.0040b530
cmp dword [ebp - 0x14], 8
jb 0x416cd9
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00477b12
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00477b1d
mov esp, ebp
pop ebp
ret
Function at 0x419be0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a429
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4c17d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], eax
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CCmdDispatcher.0
mov edx, dword [0x4ead14]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ead14
call eax
add eax, 0x10
mov dword [esi + 0x28], eax
mov byte [ebp - 4], 1
mov edx, dword [0x4ead14]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ead14
call eax
add eax, 0x10
mov dword [esi + 0x2c], eax
mov byte [ebp - 4], 2
mov edx, dword [0x4ead14]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ead14
call eax
add eax, 0x10
mov dword [esi + 0x30], eax
mov byte [ebp - 4], 3
lea ecx, [esi + 0x78]
push ecx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov byte [esi + 0x48], bl
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x54], 0x14
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
call fcn.0041a690
lea edx, [esi + 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42cc40
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push edi
xor edi, edi
cmp dword [0x4ed004], 0x40
jae 0x42cd58
mov ecx, dword [ebp + 8]
push esi
lea esi, [ecx + eax]
cmp esi, 0x80000000
jae 0x42cc6a
lea esi, [edi + 1]
jmp 0x42cc70
sub esi, 0x7fff0000
mov edx, dword [ebp + 0x10]
push ebx
lea ebx, [edx + eax]
cmp ebx, 0x80000000
jae 0x42cc8a
add ebx, 0x7ff80000
mov dword [ebp - 4], ebx
jmp 0x42cc94
mov dword [ebp - 4], 0xfff80000
mov ebx, dword [ebp - 4]
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, ebx
jae 0x42cd56
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea esp, [esp]
push 0x1c
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42cd24
cmp dword [ebp - 0x10], 0x10000
jne 0x42cd16
mov eax, dword [ebp - 0x14]
cmp eax, 0x6c
jb 0x42cd19
mov ecx, dword [ebp - 0x28]
cmp eax, ecx
jb 0x42cd19
lea eax, [ecx + esi - 1]
xor edx, edx
div ecx
push 0x20
push 0x3000
push 0x6c
imul eax, ecx
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x42cd28
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
lea esi, [edx + eax]
cmp esi, dword [ebp - 4]
jb 0x42ccd0
test edi, edi
je 0x42cd56
xor eax, eax
lea ebx, [ebx]
cmp dword [eax*4 + 0x4ecdb0], 0
je 0x42cd49
inc eax
cmp eax, 0x40
jb 0x42cd30
pop ebx
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
inc dword [0x4ed004]
mov dword [eax*4 + 0x4ecdb0], edi
pop ebx
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x42cd60
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
mov eax, dword [0x4c17d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
cmp esi, 0xffffffff
je 0x42ce16
test esi, esi
je 0x42ce16
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x42ce3f
push edi
lea ecx, [ebp - 0x2d0]
push ecx
push esi
mov dword [ebp - 0x2d0], 0x10001
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x42ce57
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
jb 0x42ce12
mov edx, dword [ebp + 0x10]
add ecx, edx
cmp eax, ecx
jae 0x42ce12
push esi
call ebx
cmp edi, 3
jge 0x42ce25
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2d0]
push eax
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x42cdd2
pop ebx
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477b1d
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477b1d
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477b1d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00477b1d
mov esp, ebp
pop ebp
ret

Function at 0x42ce70
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0xf
mov dword [ebp - 4], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor esi, esi
cmp dword [0x4ed00c], esi
jbe 0x42cec9
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x4ed008]
mov ecx, dword [eax + esi*4]
push ecx
call ebx
mov edx, dword [0x4ed008]
mov eax, dword [edx + esi*4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [0x4ed00c]
jb 0x42cea4
pop ebx
mov ecx, dword [0x4ed008]
push ecx
call fcn.004785af
mov edx, dword [ebp - 4]
add esp, 4
xor eax, eax
push edx
mov dword [0x4ed008], eax
mov dword [0x4ed00c], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42d3b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
xor ebx, ebx
mov dword [ebp - 8], ebx
cmp dword [0x4ed000], ebx
jne 0x42d3ec
push 0x4ecd98
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push pe_nt_image_headers32
push ebx
push 0x4ecdb0
call fcn.0047e260
add esp, 0xc
mov dword [0x4ed000], 1
push 0x4ecd98
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
lea esp, [esp]
mov ecx, dword [eax*4 + 0x4ecdb0]
cmp ecx, ebx
je 0x42d417
lea edx, [ecx + 0x2c]
mov ecx, 0x43fe80
cmp edx, dword [ecx]
je 0x42d430
inc eax
cmp eax, 0x40
jb 0x42d400
push 0x4ecd98
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [eax*4 + 0x4ecdb0]
cmp esi, ebx
je 0x42d4e9
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push edi
push eax
push ecx
call fcn.0042cf00
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [esi]
lea edx, [ebp - 4]
push edx
mov edi, eax
mov eax, dword [esi + 4]
push 0x40
push eax
push ecx
mov dword [ebp - 4], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push edi
call ebx
test eax, eax
je 0x42d4e3
mov ecx, dword [esi]
xor eax, eax
cmp dword [esi + 4], eax
jbe 0x42d48d
mov edi, edi
mov dl, byte [esi + eax + 0x4c]
mov byte [eax + ecx], dl
inc eax
cmp eax, dword [esi + 4]
jb 0x42d480
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 4]
lea edx, [ebp - 4]
push edx
mov edx, dword [esi]
push eax
push ecx
push edx
push edi
call ebx
mov ecx, dword [esi]
mov eax, 0x43fe80
mov dword [eax], ecx
mov ecx, 1
mov dword [ebp - 8], ecx
xor eax, eax
cmp dword [eax*4 + 0x4ecdb0], esi
je 0x42d4d2
add eax, ecx
cmp eax, 0x40
jb 0x42d4c0
jmp 0x42d4e3
sub dword [0x4ed004], ecx
mov dword [eax*4 + 0x4ecdb0], 0
call fcn.0042ce70
pop edi
pop esi
push 0x4ecd98
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d670
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.0048f7d0
mov eax, dword [0x4c17d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x2010], eax
cmp esi, ebx
je 0x42d73f
push 0x1fff
lea ecx, [ebp - 0x2003]
push ebx
push ecx
mov byte [ebp - 0x2004], bl
call fcn.0047e260
add esp, 0xc
lea edx, [ebp - 0x2014]
push edx
push esi
mov dword [ebp - 0x2014], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
je 0x42d73f
cmp eax, 0x1fff
ja 0x42d73f
lea ecx, [ebp - 0x2004]
push ecx
push eax
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42d72e
lea edx, [ebp - 0x200c]
push edx
lea eax, [ebp - 0x2008]
push eax
push 0x4abdb0
lea ecx, [ebp - 0x2004]
push ecx
mov dword [ebp - 0x2008], ebx
mov dword [ebp - 0x200c], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42d72e
mov eax, dword [ebp - 0x2008]
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x2010]
mov dword [edi], edx
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
mov bl, 1
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477b1d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop ebx
call fcn.00477b1d
mov esp, ebp
pop ebp
ret
Function at 0x42eeb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x568
mov eax, dword [0x4c17d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0x11c
lea eax, [ebp - 0x530]
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x534], esi
call fcn.0047e260
push 0x11c
push 0
push ebx
mov dword [ebp - 0x530], 0x11c
call fcn.0047e260
add esp, 0x18
push ebx
mov dword [ebx], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebx + 4], 5
jne 0x42ef25
call fcn.0042edb0
test eax, eax
je 0x42ef25
mov dword [esi + 4], 0
jmp 0x42f012
push str.RtlGetVersion
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42ef49
lea ecx, [ebp - 0x530]
push ecx
call eax
mov eax, dword [ebx + 4]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 8]
push edi
lea edi, [eax + edx*2]
mov eax, dword [ebp - 0x52c]
mov edx, dword [ebp - 0x528]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*2]
cmp eax, edi
jle 0x42ef7d
mov ecx, 0x47
lea esi, [ebp - 0x530]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, eax
xor eax, eax
push 0x40e
push eax
lea ecx, [ebp - 0x412]
push ecx
mov word [ebp - 0x414], ax
call fcn.0047e260
add esp, 0xc
lea esi, [ebp - 0x414]
call fcn.0042ee00
test eax, eax
jl 0x42f004
lea edx, [ebp - 0x568]
push edx
mov eax, esi
call fcn.0042f030
test eax, eax
je 0x42f004
mov ecx, dword [ebp - 0x558]
mov eax, ecx
shr eax, 0x10
movzx ecx, cx
lea edx, [eax + eax*4]
lea edx, [ecx + edx*2]
cmp edi, edx
jge 0x42eff5
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x554]
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0x534]
shr eax, 0x10
mov dword [ebx + 0xc], eax
mov dword [ecx + 4], 1
jmp 0x42f011
mov edx, dword [ebp - 0x534]
mov dword [edx + 4], 0
jmp 0x42f011
mov eax, dword [ebp - 0x534]
mov dword [eax + 4], 0
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00477b1d
mov esp, ebp
pop ebp
ret 4
Function at 0x42f030
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 2
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x42f0b4
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x42f0ad
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42f0ad
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x42f0a6
mov ecx, dword [ebp - 4]
push ecx
call fcn.004783f4
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x42f0a6
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
push edx
push eax
push ebx
call fcn.0047eea0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
cmp ebx, esi
je 0x42f0f2
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0x4abdb0
push ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42f0e9
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 8]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov esi, 1
push ebx
call fcn.004785af
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42f6c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp word [0x4ed590], 0
jne 0x42f700
lea eax, [ebp - 4]
push eax
push 0x4ed590
lea ecx, [ebp - 8]
push ecx
push str.Path
push 0x4abdc0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0x207
mov dword [ebp - 8], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [0x4ed798], 0
jne 0x42f726
push 0x4ed590
push 0x4aad00
push 0x104
push 0x4ed798
call fcn.004163a0
add esp, 0x10
cmp word [0x4ed9a0], 0
jne 0x42f777
mov edx, 0x104
mov eax, 0x4ed9a0
lea ebx, [ebx]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x42f76b
movzx ecx, word [eax - 0x410]
test cx, cx
je 0x42f76b
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x42f740
sub eax, 2
mov word [eax], dx
mov esp, ebp
pop ebp
ret
test edx, edx
jne 0x42f772
sub eax, 2
xor edx, edx
mov word [eax], dx
mov esp, ebp
pop ebp
ret