joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c3d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e021c
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x524a60]
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
mov esi, ecx
mov dword [ebp - 0x11c], esi
mov edi, dword [ebp + 8]
mov ecx, edi
push str.click
call fcn.00418f80
push eax
call fcn.004ba257
add esp, 8
test eax, eax
je 0x41c43f
push str.link
mov ecx, edi
call fcn.00418f80
push eax
call fcn.004ba257
add esp, 8
test eax, eax
jne 0x41c51d
mov ecx, dword [edi + 0x108]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
push str.close
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00446ed0
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.00433500
test bl, bl
je 0x41c543
mov ecx, dword [esi + 0x330]
test ecx, ecx
je 0x41c497
call fcn.00422380
test eax, eax
jne 0x41c517
mov ecx, dword [esi + 0x330]
test ecx, ecx
je 0x41c4b7
call fcn.00447720
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0x330], 0
push 0
push 0
lea ecx, [esi - 0x24]
call fcn.0044e1b0
push 0
push 0
push 0x10
lea ecx, [esi - 0x24]
call fcn.0044df10
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x120], esp
mov dword [eax + 0x24], 0
mov ecx, dword [0x52a958]
mov dword [ebp - 4], 1
call fcn.00418d40
push 1
push 0
push str.main_close
push dword [eax + 0x90]
call fcn.0040dbe0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00441c00
mov esi, dword [ebp - 0x11c]
push edi
mov ecx, esi
call fcn.00455ca0
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.004a1588
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 0x108]
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
push 0x4e9ee8
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.00446ed0
lea ecx, [ebp - 0x118]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.00433500
test bl, bl
je 0x41c51d
push 6
push dword [esi - 0x20]
call dword [sym.imp.USER32.dll_ShowWindow]
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x120], esp
mov dword [eax + 0x24], 0
mov ecx, dword [0x52a958]
mov dword [ebp - 4], 3
call fcn.00418d40
push 1
push 0
push str.main_min
push dword [eax + 0x90]
call fcn.0040dbe0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00441c00
jmp 0x41c51d
Function at 0x41cad0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e02bc
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x524a60]
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
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 0x3c]
sub eax, 2
je 0x41cbb3
sub eax, 2
jne 0x41cbec
mov eax, dword [edi]
mov ecx, edi
push 0x4ec460
call dword [eax + 0x44]
push eax
call fcn.00449d30
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41cb54
push esi
call fcn.00449d30
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x264], eax
push esi
test eax, eax
jne 0x41cb5b
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x41cce7
call fcn.00449d30
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x41cb54
push ebx
call fcn.004a1b70
add esp, 4
mov dword [0x52b9bc], eax
test eax, eax
je 0x41cb9b
push ebx
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [0x52b9bc]
call fcn.004b0530
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push ebx
push dword [0x52b9bc]
call fcn.0044ce70
add esp, 8
jmp 0x41cbec
mov eax, dword [edi]
lea ecx, [ebp - 0x94]
push ecx
mov ecx, edi
call dword [eax + 0x40]
push 1
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00418f80
push eax
call fcn.0044cee0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00433500
lea ecx, [ebp - 0x260]
call fcn.0045cf30
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 4], 1
call dword [eax + 0x3c]
cmp eax, 3
mov eax, dword [edi]
jne 0x41cc63
lea ecx, [ebp - 0x94]
push ecx
mov ecx, edi
call dword [eax + 0x34]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00418f80
push eax
call fcn.004b95c8
add esp, 4
movzx esi, ax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00433500
lea ebx, [edi + 0x30]
lea eax, [edi + 0x2c]
neg edi
push 0
push ebx
sbb edi, edi
lea ecx, [ebp - 0x260]
and edi, eax
push edi
push 0x4ee678
push esi
call fcn.0045e8a0
mov esi, eax
jmp 0x41ccad
lea ecx, [ebp - 0x118]
push ecx
mov ecx, edi
call dword [eax + 0x34]
lea ebx, [edi + 0x30]
mov byte [ebp - 4], 3
lea ecx, [edi + 0x2c]
neg edi
push 0
sbb edi, edi
push ebx
and edi, ecx
mov ecx, eax
push edi
push 0
call fcn.00418f80
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [ebp - 0x260]
call fcn.0045e8a0
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
mov esi, eax
call fcn.00433500
test esi, esi
jne 0x41ccc6
push 0x10
push str.Duilib
push 0x4ee690
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x41ccda
mov ecx, ebx
call fcn.0044c380
push esi
mov ecx, ebx
call fcn.004495d0
mov esi, 1
lea ecx, [ebp - 0x260]
call fcn.0045b990
mov eax, esi
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.004a1588
mov esp, ebp
pop ebp
ret
Function at 0x42bd70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
xor esi, esi
push esi
push 0x4f001c
push reloc.gdiplus.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42bdd9
lea eax, [ebp - 0xc]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
push esi
push esi
push str.CtxMenu
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42bdd0
cmp dword [ebp - 8], 1
mov eax, 0x80004005
cmove esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x42bf70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
imul esi, dword [ebp + 8], 0x2c
push edi
add esi, dword [0x52d5f0]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp + 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x42bfb8
pop edi
mov eax, 0xa
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x42bfdd
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x42bffe
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x42bffe
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x42bff8
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x42bffe
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, byte [esi + 0x14]
and bl, 1
mov cl, bl
and al, 0xfd
add cl, cl
shl bl, 2
or cl, al
and cl, 0xfb
or cl, bl
xor eax, eax
pop ebx
pop edi
mov byte [esi + 0x14], cl
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42c0e0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x524a60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x42c1d8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x42c1d1
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
jb 0x42c1b8
call ebx
cmp dword [ebp - 0x14], eax
jne 0x42c1b8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x42c1b8
mov edx, dword [esi]
test edx, edx
jne 0x42c181
push 0x200
push edx
mov dword [esi + 4], 0x80
push dword [0x52a984]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x42c1d1
jmp 0x42c1ac
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x42c1ac
shl eax, 3
push eax
push edx
push 0
push dword [0x52a984]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x42c1d1
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x42c140
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x42c21c
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0x42c21c
mov eax, dword [esi]
push dword [eax + ebx*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x42c216
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0042c490
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [esi + 8]
jb 0x42c1e4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a1588
mov esp, ebp
pop ebp
ret

Function at 0x42c610
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x42c662
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x42c652
push edi
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x42c649
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 8]
jb 0x42c626
mov eax, dword [ebx]
pop edi
push eax
push 0
push dword [0x52a984]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
pop ebp
ret
Function at 0x42c670
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x52d5e8]
test eax, eax
je 0x42c68c
nop dword [eax]
cmp dword [eax + 4], 0
jne 0x42c6e4
mov eax, dword [eax]
test eax, eax
jne 0x42c680
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x42c6f6
push esi
lea edx, [eax + 0x20]
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov esi, 0x20
nop dword [eax + eax]
mov ecx, dword [eax + 4]
add esi, 0x20
mov dword [edx], ecx
mov dword [eax + 4], edx
add edx, 0x20
cmp esi, 0xfe0
jbe 0x42c6c0
mov ecx, dword [0x52d5e8]
mov dword [eax], ecx
mov dword [0x52d5e8], eax
pop esi
test eax, eax
je 0x42c6f6
mov edx, dword [eax + 4]
mov ecx, dword [edx]
inc dword [eax + 8]
mov dword [eax + 4], ecx
mov eax, edx
ret
xor eax, eax
ret
Function at 0x42eab0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e157b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x524a60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x21c], edi
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x42ec0c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004b1030
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42eb40
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.00404e90
mov eax, dword [esi]
lea ecx, [ebp - 0x21c]
push dword [eax - 0xc]
push eax
call fcn.0040c0e0
cmp dword [ebp + 0x10], 0
mov esi, dword [ebp - 0x21c]
je 0x42ebc2
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42ebc2
push 0x4e8ad8
mov ecx, edi
call fcn.00403650
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42ebef
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x42ebef
add esi, 0xfffffff0
push esi
call fcn.00404230
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42ebef
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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.004a1588
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403f90
int3

Function at 0x42eff0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x524a60]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42f068
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push 0x4f02cc
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1588
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004a1588
mov esp, ebp
pop ebp
ret
Function at 0x42f170
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e167b
mov eax, dword fs:[0]
push eax
mov eax, 0x2018
call fcn.004a15c0
mov eax, dword [0x524a60]
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
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x2014], eax
mov eax, dword [ebp + 0x10]
push 0x2000
mov dword [ebp - 0x201c], eax
lea eax, [ebp - 0x2010]
push 0
push eax
call fcn.004b1030
add esp, 0xc
lea eax, [ebp - 0x2020]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x42f2ed
cmp eax, 0x1fff
ja 0x42f2ed
lea ecx, [ebp - 0x2010]
push ecx
push eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42f2ed
lea eax, [ebp - 0x2024]
push eax
lea eax, [ebp - 0x2018]
push eax
push 0x4eaa20
lea eax, [ebp - 0x2010]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42f2ed
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp - 0x2018]
je 0x42f243
mov ebx, dword [eax + 8]
mov edi, dword [eax + 0xc]
jmp 0x42f249
mov ebx, dword [eax + 0x10]
mov edi, dword [eax + 0x14]
mov eax, dword [ebp - 0x2014]
test eax, eax
je 0x42f255
mov dword [eax], ebx
mov eax, dword [ebp - 0x201c]
test eax, eax
je 0x42f261
mov dword [eax], edi
test esi, esi
je 0x42f2e6
lea ecx, [ebp - 0x2014]
call fcn.0040bbd0
movzx eax, di
push eax
shr edi, 0x10
push edi
movzx eax, bx
push eax
shr ebx, 0x10
lea eax, [ebp - 0x2014]
push ebx
push 0x4ed540
push eax
mov dword [ebp - 4], 0
call fcn.00407c50
mov edx, dword [ebp - 0x2014]
add esp, 0x18
mov ecx, 0x104
sub edx, esi
nop dword [eax]
lea eax, [ecx + 0x7ffffefa]
test eax, eax
je 0x42f2ce
movzx eax, word [edx + esi]
test ax, ax
je 0x42f2ce
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x42f2b0
test ecx, ecx
lea eax, [esi - 2]
cmovne eax, esi
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x2014]
call fcn.00403980
mov eax, 1
jmp 0x42f2ef
xor eax, eax
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.004a1588
mov esp, ebp
pop ebp
ret
Function at 0x42f310
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e16c6
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x524a60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
push 0x200
lea eax, [ebp - 0x210]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004b1030
add esp, 0xc
lea ecx, [ebp - 0x224]
push 0x20019
push str.SOFTWAREMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00415fd0
mov esi, dword [ebp - 0x224]
test eax, eax
jne 0x42f48b
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x200
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push str.svcVersion
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42f405
mov eax, dword [ebp - 0x218]
cmp eax, 1
je 0x42f3ea
cmp eax, 2
jne 0x42f405
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x42f465
test al, 1
jne 0x42f405
shr eax, 1
cmp word [ebp + eax*2 - 0x212], 0
je 0x42f46e
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004b1030
add esp, 0xc
mov dword [ebp - 0x214], 0x200
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push str.Version
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42f46e
mov eax, dword [ebp - 0x218]
cmp eax, 1
je 0x42f45c
cmp eax, 2
jne 0x42f46e
cmp dword [ebp - 0x214], 0
jne 0x42f46e
xor eax, eax
mov word [ebp - 0x210], ax
test esi, esi
je 0x42f481
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], 0
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x42f506
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.004040f0
test al, al
jne 0x42f4de
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f4c0
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00404e90
test esi, esi
je 0x42f4e9
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
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.004a1588
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403f90
int3
Function at 0x42f930
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1756
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x524a60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push eax
push 0
push 0x410
mov dword [ebp - 0x22c], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
lea ecx, [ebp - 0x220]
call fcn.00403740
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 0
call fcn.00418f80
test eax, eax
jne 0x42f9dc
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x42fa8e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x4e8ad8
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004040f0
test al, al
jne 0x42fa67
push 0
push 0x4e8ad8
mov ecx, esi
call fcn.00404e90
jmp 0x42fa67
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004b1030
add esp, 0xc
mov dword [ebp - 0x224], 0
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x220]
push eax
push 4
lea eax, [ebp - 0x224]
push eax
call fcn.00418f80
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
jne 0x42fa32
push 0x4e8ad8
jmp 0x42fa60
push 0x104
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x224]
lea ecx, [ebp - 0x220]
call fcn.00418f80
push eax
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x42fa2b
lea eax, [ebp - 0x21c]
push eax
mov ecx, esi
call fcn.00403650
lea ecx, [ebp - 0x220]
call fcn.0042ddf0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a1588
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403f90
int3
Function at 0x42fb10
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e17a1
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x524a60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
mov esi, dword [ebp + 0xc]
push 0x208
push 0
push eax
mov dword [ebp - 0x21c], edi
call fcn.004b1030
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x42fbbc
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x42fcb3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x4e8ad8
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.004040f0
test al, al
jne 0x42fc96
push 0
push 0x4e8ad8
mov ecx, edi
call fcn.00404e90
jmp 0x42fc96
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x42fcbd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x21c]
call fcn.004040f0
test al, al
jne 0x42fc22
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42fc00
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.00404e90
mov eax, dword [esi]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 2
push dword [eax - 0xc]
push eax
call fcn.0040c0e0
cmp dword [ebp + 0x10], 0
mov esi, dword [ebp - 0x21c]
je 0x42fc6d
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42fc6d
push 0x4e8ad8
mov ecx, edi
call fcn.00403650
add esi, 0xfffffff0
jmp 0x42fc7e
add esi, 0xfffffff0
push esi
call fcn.00404230
add esp, 4
add eax, 0x10
mov dword [edi], eax
or eax, 0xffffffff
mov dword [ebp - 4], eax
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42fc96
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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.004a1588
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403f90
push 0x80004005
call fcn.00403f90
int3

Function at 0x42fcd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push ebx
mov dword [ebp - 4], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42fd32
mov eax, dword [ebp + 0xc]
push edi
mov esi, dword [eax]
mov edi, dword [eax + 4]
cmp esi, edi
je 0x42fd15
push dword [esi]
push ebx
call fcn.00446340
add esp, 8
test eax, eax
jne 0x42fd0e
add esi, 4
cmp esi, edi
jne 0x42fcf6
jmp 0x42fd15
mov dword [ebp - 4], 1
push ebx
call fcn.004465d0
add esp, 4
mov ecx, 1
test eax, eax
mov eax, dword [ebp - 4]
cmovne eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret