joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4104f0
Capabilities:
Acquire debug privileges

Disassembly:
cmp byte [ecx], 0
je 0x41050a
and byte [0x4a7a4c], 0xfb
push 4
push str.SeDebugPrivilege
call fcn.0040f029
pop ecx
pop ecx
ret

Function at 0x41050b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, 0x4a7658
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call fcn.00403077
mov edi, dword [sym.imp.SHLWAPI.dll_StrChrW]
pop ecx
push 0x5c
push dword [ebp + 8]
mov byte [ebp - 4], al
jmp 0x410563
push dword [ebp + 8]
and word [esi], 0
call fcn.0047ab2d
test eax, eax
pop ecx
jne 0x410558
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [esi], 0x5c
push 0x5c
add esi, 2
push esi
call edi
mov esi, eax
test esi, esi
jne 0x41053d
cmp byte [ebp - 4], al
je 0x410579
push dword [ebp - 8]
call fcn.00403088
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

Function at 0x4106bf
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
jne 0x4106e6
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.0040c123
test eax, eax
je 0x4106e6
call fcn.0040c1aa
test eax, eax
mov dword [esp + 0xc], eax
jne 0x4106ed
xor eax, eax
jmp 0x4107af
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 0x34]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebp
push edi
push 0x40
mov ebp, 0x3000
push ebp
push eax
push ecx
call ebx
mov edi, eax
test edi, edi
jne 0x410725
push 0x40
push ebp
push dword [esp + 0x20]
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x410725
xor eax, eax
jmp 0x4107ac
push dword [esp + 0x14]
mov ecx, esi
push edi
call fcn.0040c21b
mov eax, dword [esi + 0x10]
xor ebx, ebx
cmp dword [eax + 0xa0], ebx
jbe 0x410752
cmp dword [eax + 0xa4], ebx
jbe 0x410752
push edi
mov ecx, esi
call fcn.0040bfe5
test eax, eax
je 0x41071e
push edi
mov ecx, esi
call fcn.0040c044
test eax, eax
jne 0x41076d
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x41071e
mov eax, dword [esi + 0x10]
mov dword [eax + 0x34], edi
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x28]
push ebx
xor ebp, ebp
inc ebp
push ebp
add eax, edi
push edi
mov dword [esi + 4], eax
call eax
test eax, eax
jne 0x4107a5
push ebx
push ebx
push edi
call dword [esi + 4]
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [esi + 4], ebx
jmp 0x41071e
mov dword [esi], ebp
mov dword [esi + 8], edi
mov eax, ebp
pop edi
pop ebp
pop ebx
pop esi
ret 8

Function at 0x41082c
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push 0x40
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.0047b210
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp dword [ebp + 8], 0
je 0x410861
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
leave
ret
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
leave
ret
Function at 0x4108f8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0x18]
test esi, esi
push edi
mov dword [ebp - 0xc], 0x20
je 0x410914
mov dword [ebp - 8], esi
jmp 0x41091c
lea eax, [ebp - 0xc]
mov dword [ebp - 8], eax
mov esi, eax
push dword [ebp + 0x10]
mov ax, word [esi + 2]
push dword [ebp + 0xc]
mov word [ebp - 4], ax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x410947
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
jmp 0x410949
xor edi, edi
test ebx, ebx
je 0x410959
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
jmp 0x41095b
xor eax, eax
xor cl, cl
test byte [esi], 1
mov byte [ebp + 0x1b], cl
je 0x410977
test eax, eax
je 0x410a58
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov cl, byte [ebp + 0x1b]
mov ebx, eax
test ebx, ebx
je 0x410a58
test edi, edi
jle 0x410a58
test byte [esi], 0x40
jne 0x4109e7
push 0
push edi
push ebx
call fcn.004313f4
add esp, 0xc
test al, al
mov byte [ebp + 0x1b], al
je 0x4109e7
test byte [esi], 0x20
je 0x4109b1
test al, 2
je 0x4109b1
xor eax, eax
jmp 0x410a61
push 0
lea ecx, [ebp - 0x18]
call fcn.0043ddaa
movzx eax, word [ebp - 4]
mov esi, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x18]
push esi
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call fcn.0043739d
and dword [ebp - 0x18], 0
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.0042eb98
jmp 0x410a24
mov esi, dword [ebp + 0x14]
lea eax, [edi + 0x410]
push eax
mov ecx, esi
call fcn.00433b3f
push edi
push ebx
push dword [esi]
mov dword [esi + 8], edi
mov dword [esi + 4], edi
call fcn.0047b530
add esp, 0xc
cmp word [ebp - 4], 0
je 0x410a24
movzx eax, word [ebp - 4]
inc edi
shr edi, 1
push edi
push eax
push dword [esi]
call fcn.0040e3c3
add esp, 0xc
mov eax, dword [esi + 4]
mov edi, dword [esi]
lea ecx, [eax + 0x10]
push 0x10
add eax, edi
push 0
push eax
mov dword [esi + 8], ecx
call fcn.0047b210
movzx eax, word [ebp - 4]
push 0xc
push eax
mov eax, dword [esi + 4]
add eax, edi
push eax
call fcn.0047b210
mov esi, dword [ebp - 8]
mov cl, byte [ebp + 0x1b]
add esp, 0x18
jmp 0x410a5a
xor edi, edi
and ecx, 2
or dword [esi], ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410a66
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 8]
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.004041e7
cmp dword [ebp - 8], ebx
jne 0x410a97
push 0xfffffffffffffffe
pop esi
jmp 0x410b5c
push edi
push dword [ebp - 8]
call fcn.00470a92
push ebx
push ebx
push ebx
push dword [ebp - 8]
mov esi, eax
mov dword [ebp - 0x10], esi
call fcn.0042fa51
add esp, 0x14
add esi, 0xc
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00433b3f
mov edi, dword [esi]
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0xc], ebx
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xc]
push 6
add eax, edi
push ebx
push eax
call fcn.0047b210
mov eax, dword [ebp - 0xc]
push dword [ebp + 0x10]
mov dword [esi + 8], eax
push eax
push edi
mov dword [esi + 4], eax
call fcn.004313f4
add esp, 0x18
cmp al, 1
mov byte [ebp - 1], al
pop edi
jne 0x410b45
push dword [0x4a6ef0]
lea ecx, [ebp - 0x1c]
push esi
call fcn.0040b3ca
mov eax, dword [ebp - 0xc]
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.0043739d
add esp, 0xc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 6
push eax
mov ecx, esi
call fcn.00433b3f
lea ecx, [ebp - 0x1c]
call fcn.0042eb98
push 1
push esi
call fcn.00472a56
cmp byte [ebp - 1], bl
pop ecx
pop ecx
jge 0x410b59
or esi, 0xffffffff
jmp 0x410b5c
mov esi, dword [esi + 4]
lea ecx, [ebp - 8]
call fcn.00402ac9
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4110fa
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push esi
xor esi, esi
cmp dword [0x4a6d88], esi
push edi
jne 0x4112ac
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.GdiPlus.dll
call ebx
mov edi, eax
cmp edi, esi
jne 0x4111fa
push 1
push esi
lea eax, [ebp - 4]
push eax
push str._SystemRoot_WinSxS
mov ecx, 0x4a6f08
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call fcn.0043c245
lea eax, [ebp - 0x274]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
call fcn.0047ac16
add esp, 0xc
test eax, eax
je 0x4111ea
push dword [ebp - 4]
call fcn.0040bac8
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
pop ecx
cmp word [ebp - 0x248], 0x2e
je 0x4111d7
test byte [ebp - 0x274], 0x10
je 0x4111d7
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x248]
push eax
call esi
push edi
mov dword [ebp - 0x14], eax
call esi
mov ecx, dword [ebp - 0x14]
lea eax, [eax + ecx + 0x1e]
push eax
lea ecx, [ebp - 8]
call fcn.00433c42
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 4]
push str._s_sGdiPlus.dll
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push dword [ebp - 8]
call ebx
lea ecx, [ebp - 8]
mov edi, eax
call fcn.0042eb98
test edi, edi
jne 0x4111ea
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040425d
test eax, eax
jne 0x411174
lea ecx, [ebp - 4]
call fcn.0042eb98
lea ecx, [ebp - 0xc]
call fcn.00402afe
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GdiplusStartup
push edi
call esi
push str.GdiplusShutdown
push edi
mov dword [0x4a6d88], eax
call esi
push str.GdipLoadImageFromFile
push edi
mov dword [0x4a6d8c], eax
call esi
push str.GdipDisposeImage
push edi
mov dword [0x4a6d9c], eax
call esi
push str.GdipCreateFromHDC
push edi
mov dword [0x4a6d90], eax
call esi
push str.GdipDrawImageRectI
push edi
mov dword [0x4a6d94], eax
call esi
push str.GdipCreateBitmapFromHBITMAP
push edi
mov dword [0x4a6d98], eax
call esi
push str.GdipSaveImageToFile
push edi
mov dword [0x4a6da8], eax
call esi
push str.GdipGetImageEncodersSize
push edi
mov dword [0x4a6dac], eax
call esi
push str.GdipGetImageEncoders
push edi
mov dword [0x4a6da0], eax
call esi
push str.GdipDrawImageI
push edi
mov dword [0x4a6da4], eax
call esi
push str.GdipGetImageWidth
push edi
mov dword [0x4a6db0], eax
call esi
push str.GdipGetImageHeight
push edi
mov dword [0x4a6db4], eax
call esi
mov dword [0x4a6db8], eax
xor esi, esi
pop ebx
cmp dword [0x4a6e40], esi
jne 0x4112db
cmp dword [0x4a6d9c], esi
je 0x4112db
xor eax, eax
mov dword [ebp - 0x24], 1
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
lea eax, [ebp - 0x24]
push eax
push 0x4a6e40
call dword [0x4a6d88]
cmp dword [ebp + 8], esi
mov dword [ebp - 0x10], esi
je 0x4112f5
mov eax, dword [0x4a6d9c]
cmp eax, esi
je 0x4112f5
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 8]
call eax
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret
Function at 0x4128ea
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
and dword [ebp + 0xc], 0xfffffffe
and edi, 1
cmp word [ebx], 0
mov dword [ebp - 0x14], edi
je 0x412ac1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x41291f
mov edi, dword [ebp - 0x14]
push ebx
mov dword [ebp - 0x10], ebx
call esi
add eax, edi
mov edi, dword [ebp - 0x10]
push edi
lea ebx, [ebx + eax*2]
call esi
and dword [ebp - 8], 0
lea eax, [edi + eax*2 - 2]
cmp word [eax], 0x5c
jne 0x41294b
and word [eax], 0
mov dword [ebp - 8], 2
jmp 0x41295d
push edi
call fcn.0047ab2d
test eax, eax
pop ecx
je 0x41295d
mov dword [ebp - 8], 1
push edi
lea ecx, [ebp + 8]
call fcn.0043ddc9
cmp dword [ebp - 8], 0
je 0x412979
push 0x491f70
lea ecx, [ebp + 8]
call fcn.00433c92
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x264]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0047ac16
push dword [ebp + 8]
call fcn.0040bac8
add esp, 0x10
push dword [ebp + 8]
call esi
inc eax
lea edi, [eax + eax]
mov eax, dword [ebp + 8]
mov word [edi + eax - 2], 0x5c
mov eax, dword [ebp + 8]
and word [edi + eax], 0
cmp dword [ebp - 0xc], 0
je 0x412a64
mov eax, dword [ebp + 8]
and word [edi + eax], 0
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp + 8]
call fcn.00433c92
test byte [ebp - 0x264], 0x10
jne 0x412a0f
cmp dword [ebp + 0xc], 0
push dword [ebp + 8]
je 0x412a03
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x412a4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4129fe
inc eax
mov dword [ebp - 4], eax
jmp 0x412a4b
call fcn.0040d838
test eax, eax
pop ecx
je 0x412a4b
jmp 0x4129fe
cmp word [ebp - 0x238], 0x2e
jne 0x412a37
cmp word [ebp - 0x236], 0
je 0x412a4b
cmp word [ebp - 0x236], 0x2e
jne 0x412a37
cmp word [ebp - 0x234], 0
je 0x412a4b
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004128ea
test eax, eax
pop ecx
pop ecx
jne 0x412a4b
and dword [ebp - 4], eax
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040425d
test eax, eax
jne 0x4129c0
jmp 0x412a72
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x412a6f
inc eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xc]
call fcn.00402afe
xor edi, edi
cmp dword [ebp - 8], edi
je 0x412aaf
cmp dword [ebp + 0xc], edi
push dword [ebp - 0x10]
je 0x412aa2
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x412aaf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x412aac
xor eax, eax
inc eax
jmp 0x412aac
call fcn.0040d838
cmp eax, edi
pop ecx
je 0x412aaf
mov dword [ebp - 4], eax
lea ecx, [ebp + 8]
call fcn.0042eb98
cmp word [ebx], di
jne 0x41291c
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x413bca
Capabilities:
Check mutex on windows

Disassembly:
test byte [0x4aa003], 1
je 0x413be2
push str.UCallBackhWnd
call fcn.0040dcde
test eax, eax
pop ecx
jne 0x413be5
xor eax, eax
ret
push edi
push str.GlobalPECMD:main_u
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
je 0x413c20
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
sub esi, 0xb7
neg esi
sbb esi, esi
push edi
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop esi
jne 0x413c20
xor eax, eax
inc eax
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x41443d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 0x84
lea eax, [esi + 0x325]
push eax
lea ecx, [ebp - 0xc]
call fcn.00433c42
cmp word [ebx], 0x5c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
lea edi, [eax + esi*2]
mov dword [ebp - 8], 2
jne 0x414516
and dword [ebp + 8], 0
push 0x2c
push ebx
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
test esi, esi
je 0x4144ac
and word [esi], 0
inc esi
inc esi
push esi
call dword [sym.imp.USER32.dll_CharUpperW]
movzx esi, word [esi]
test si, si
je 0x4144ac
mov dword [ebp + 8], esi
push edi
inc ebx
push 0x324
inc ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [edi], 0
mov esi, edi
je 0x41457d
mov ax, word [ebp + 8]
cmp word [esi], ax
jb 0x414503
mov edi, dword [ebp - 4]
push ebx
push esi
push str._s_sFonts
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
push edi
call fcn.0047ab2d
add esp, 0x14
test eax, eax
je 0x414503
push 0x491f70
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
call fcn.00414385
pop ecx
mov dword [ebp - 8], eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x4144c6
jmp 0x41457d
push ebx
call fcn.0040ec9c
and dword [ebp + 8], 0
mov esi, eax
push esi
call fcn.0047ab2d
test eax, eax
pop ecx
pop ecx
je 0x414547
push esi
lea ecx, [ebp + 8]
call fcn.0043de8d
push 0x491f70
lea ecx, [ebp + 8]
call fcn.00433c92
mov esi, dword [ebp + 8]
push esi
push 0x492168
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
call fcn.0040bac8
push esi
call fcn.0047ab2d
add esp, 0x14
test eax, eax
je 0x414575
push dword [ebp - 4]
call fcn.00414385
pop ecx
mov dword [ebp - 8], eax
lea ecx, [ebp + 8]
call fcn.0042eb98
lea ecx, [ebp - 0xc]
call fcn.0042eb98
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416bb0
Capabilities:
Check for time delay via gettickcount
Log keystrokes via application hook

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, 0x4a7658
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
test byte [esp + 0x32], 1
jne 0x416bd9
cmp dword [0x4a6eb4], ebx
jne 0x416bd9
mov dword [0x4a6eb0], ebx
movzx eax, byte [esp + 0x30]
add dword [0x4a6eb4], 1
cmp dword [0x4a6eac], ebx
mov dword [esp + 0x30], eax
jne 0x416c1e
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0x416ab1
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
cmp eax, ebx
mov dword [0x4a6eac], eax
jne 0x416c1e
sub dword [0x4a6eb4], 1
xor esi, esi
jmp 0x416d0e
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov esi, dword [esp + 0x30]
mov edi, eax
add edi, esi
cmp esi, 0x3e8
jb 0x416c45
push ebx
call fcn.00430437
pop ecx
cmp dword [esp + 0x34], 2
jne 0x416cdb
cmp esi, ebx
jne 0x416cdb
push 0xa
pop esi
jmp 0x416cdb
cmp dword [esp + 0x34], 2
je 0x416c6e
call ebp
mov esi, edi
sub esi, eax
cmp esi, ebx
jle 0x416ce7
cmp byte [0x4a5290], bl
jle 0x416ce7
push 0xa
pop eax
cmp esi, eax
ja 0x416c7f
mov eax, esi
push 0x4bf
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x416cd3
cmp dword [0x4a6eb0], ebx
jne 0x416ce7
cmp dword [esp + 0x34], 2
je 0x416ca9
call ebp
mov esi, edi
sub esi, eax
cmp esi, ebx
jle 0x416cdb
push 1
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x416cdb
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [0x4a5290], bl
jg 0x416c90
cmp dword [0x4a6eb0], ebx
je 0x416c5d
push 0x4a7658
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4a6eb0]
sub dword [0x4a6eb4], 1
pop ebp
jne 0x416d07
mov dword [0x4a6eb0], ebx
mov esi, eax
mov edi, 0x4a7658
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x417878
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xd0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x4a7028], eax
call fcn.0040b870
call fcn.0047080c
xor ebx, ebx
mov esi, 0x4a6f08
push ebx
mov ecx, esi
call fcn.0040c370
call fcn.004044da
mov edi, 0x4a7658
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4a6c30]
or eax, dword [0x4a6c34]
jne 0x4178d3
push 0x4a6c30
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x4a6c38
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0x4a6e90
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
call fcn.0041036a
push ebx
push 0x2d56
call fcn.0040ef6b
push 0xd6fbd
push 0x311f1
lea eax, [ebp - 0x60]
push str._06lu_06lu
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x60]
push eax
push 0x4924b2
mov ecx, esi
call fcn.004335ed
lea eax, [ebp - 0x60]
push eax
push str.PECMDVER
mov ecx, esi
call fcn.004335ed
push str.X86_U
lea ecx, [ebp + 0x68]
call fcn.0043ddc9
push dword [0x4a50d0]
lea ecx, [ebp + 0x68]
call fcn.00433c92
push dword [ebp + 0x68]
mov ecx, esi
push 0x492488
call fcn.004335ed
push 0x492484
push 0x492474
mov ecx, esi
call fcn.0043363d
push ebx
push 0x2d63
call fcn.0040ef6b
call fcn.0040edf3
push ebx
push 0x2d65
call fcn.0040ef6b
mov eax, dword [ebp + 0x78]
mov dword [0x4a6e00], eax
mov eax, dword [ebp + 0x7c]
mov dword [0x4a526c], eax
call fcn.0042f19b
push str.WM_TaskbarRestart
push dword [0x4a7044]
mov esi, 0x4a6f08
push esi
call fcn.00435eb7
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add esp, 0x1c
push str.__PID
call edi
push eax
push esi
call fcn.00435eb7
add esp, 0xc
push str.__PPID
call edi
push eax
call fcn.00403e1f
pop ecx
push eax
push esi
call fcn.00435eb7
push str.__HINST
push dword [0x4a6e00]
push esi
call fcn.00435eb7
add esp, 0x18
push 0x492408
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push esi
call fcn.00435eb7
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x2d6e
push ebx
push eax
call fcn.0040ef6b
movzx eax, word [0x4aa010]
push str.SYSCODEPAGE
push eax
push esi
call fcn.00435eb7
add esp, 0x14
push 0x20a
lea ecx, [ebp + 0x6c]
call fcn.00433c42
push dword [ebp + 0x6c]
mov edi, 0x208
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push dword [ebp + 0x6c]
mov ecx, esi
push 0x4921bc
call fcn.0043363d
push dword [ebp + 0x6c]
mov ecx, esi
push str._CD
call fcn.0043363d
mov eax, dword [ebp + 0x6c]
mov word [eax + 4], bx
push dword [ebp + 0x6c]
mov ecx, esi
push str.CurDrv
call fcn.0043363d
mov eax, dword [ebp + 0x6c]
push edi
push eax
push ebx
mov word [eax], bx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [ebp + 0x6c]
mov ecx, esi
push str.CurFile
call fcn.0043363d
call fcn.0040ef7b
lea ecx, [ebp + 0x6c]
call fcn.0042eb98
lea ecx, [ebp + 0x68]
call fcn.0042eb98
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret
Function at 0x420376
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xa8
push ebx
push esi
mov esi, dword [ebp + 0x7c]
push edi
push 0x4910f4
lea ecx, [ebp + 0x64]
sar esi, 0x10
call fcn.0043ddc9
mov ebx, dword [ebp + 0x74]
push esi
push dword [ebx]
call fcn.0040e34f
pop ecx
pop ecx
push 0x20a
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x74], eax
call fcn.00433c42
push dword [ebp + 0x68]
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, dword [ebp + 0x78]
push edi
lea ecx, [ebp - 0x3c]
call fcn.0040bcd0
push edi
lea ecx, [ebp - 0x3c]
call fcn.0040c370
push dword [ebp + 0x68]
mov eax, dword [edi + 0x18]
push 0x4921bc
mov dword [ebp - 0x24], eax
call fcn.004335ed
movzx eax, si
push eax
lea ecx, [ebp - 0x3c]
mov word [ebp - 0x34], si
call fcn.00432b58
mov ecx, dword [ebp + 0x7c]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 0x64]
push eax
push dword [ebp + 0x74]
push 0
push ebx
call fcn.0041da3e
movzx esi, ax
or esi, dword [ebp + 0x7c]
add esp, 0x14
mov edi, 0x4a7658
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp + 0xc], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
lea ecx, [ebp - 0x3c]
call fcn.0041f8fd
lea ecx, [ebp + 8]
call fcn.0042eb98
lea ecx, [ebp + 0x68]
call fcn.0042eb98
lea ecx, [ebp + 0x64]
call fcn.0042eb98
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x6c
leave
ret