joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410510
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
add dword [ebp + 8], 2
push esi
push edi
lea ecx, [ebp - 8]
call fcn.0043d3a5
lea ecx, [ebp - 4]
call fcn.0043d3a5
push 0x2c
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov edi, eax
cmp edi, esi
je 0x4105f2
push ebx
push 1
push esi
lea eax, [ebp - 8]
mov word [edi], si
push eax
push dword [ebp + 8]
mov esi, 0x4bdfa0
mov ecx, esi
call fcn.0044c04c
mov ebx, dword [ebp - 8]
push 1
push 0
lea eax, [ebp - 4]
push eax
add edi, 2
push edi
mov ecx, esi
mov dword [ebp + 8], ebx
call fcn.0044c04c
cmp byte [ebp + 0xc], 0
mov esi, dword [ebp - 4]
mov dword [ebp - 0xc], esi
je 0x4105a9
lea ecx, [ebp + 8]
call fcn.0040ddcf
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
add eax, eax
push eax
push dword [ebp + 8]
push 1
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
jmp 0x4105e5
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
push ebx
call esi
add eax, eax
push eax
push ebx
push 1
push str.RegisteredOwner
mov edi, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push edi
mov ebx, 0x80000002
push ebx
call fcn.00438973
add esp, 0x18
push dword [ebp - 0xc]
call esi
shl eax, 1
push eax
push dword [ebp - 0xc]
push 1
push str.RegisteredOrganization
push edi
push ebx
call fcn.00438973
add esp, 0x18
xor esi, esi
pop ebx
jmp 0x4105f5
xor esi, esi
inc esi
lea ecx, [ebp - 4]
call fcn.00437884
lea ecx, [ebp - 8]
call fcn.00437884
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x410b2f
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jge 0x410b40
call fcn.00410ad4
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
mov esi, dword [esp + 0xc]
jg 0x410b54
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
inc eax
dec eax
js 0x410b60
inc eax
xor word [esi], di
inc esi
inc esi
dec eax
jne 0x410b58
mov eax, edi
pop edi
shl eax, 0x10
pop esi
ret

Function at 0x410ced
Capabilities:
Log keystrokes via application hook

Disassembly:
cmp dword [0x4bde74], 0
jne 0x410d10
push 0
push dword [0x4bde84]
push 0x410bf0
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x4bde74], eax
ret

Function at 0x410e81
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
jne 0x410e9c
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov esi, eax
push esi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x22c], 0x22c
mov dword [ebp - 0x228], ebx
mov ecx, 0x89
lea edi, [ebp - 0x224]
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.DLL_Process32FirstW
jmp 0x410eeb
cmp dword [ebp - 0x224], esi
je 0x410ef1
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x410ed6
jmp 0x410ef7
mov ebx, dword [ebp - 0x214]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
dec dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0
mov esi, ebx
jg 0x410e9c
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x411111
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
push edi
je 0x411135
cmp dword [ebp + 0xc], 2
jne 0x411164
mov edi, dword [ebp + 0x14]
push 0x104
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
jmp 0x411138
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x18], 0
je 0x411148
push dword [ebp + 0x18]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esi + 2]
push eax
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
push edi
push esi
mov ecx, 0x4bdfa0
call fcn.0043cc80
pop esi
pop edi
pop ebp
ret

Function at 0x411167
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0xc11
lea ecx, [ebp - 4]
call fcn.0043d3c3
push 0x822
push 0
push dword [ebp - 4]
call fcn.0048f710
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 8]
lea esi, [eax + 0x410]
and word [esi], 0
add esp, 0xc
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x10], eax
lea edi, [ebx + 2]
je 0x4111ae
mov edi, dword [ebp + 0xc]
and dword [ebp - 8], 0
push 0x104
push esi
push edi
mov dword [ebp - 0xc], 0x410
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
cmp word [esi], 0
je 0x4111da
push esi
push ebx
mov ecx, 0x4bdfa0
call fcn.0043cc80
jmp 0x41120d
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push edi
push 0x4a4cd8
push 0x80000001
call fcn.0043890f
add esp, 0x18
test eax, eax
jne 0x41120d
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
push dword [ebp - 8]
push ebx
call fcn.00411111
add esp, 0x14
lea ecx, [ebp - 4]
call fcn.00437884
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41121a
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x411
lea ecx, [ebp - 4]
mov byte [0x4bdfab], 1
call fcn.0043d3c3
push 0x822
push 0
push dword [ebp - 4]
call fcn.0048f710
mov edi, dword [ebp - 4]
add esp, 0xc
push 0x104
add edi, 0x410
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push str.PE_IDBASE
push 0x1000
mov esi, 0x4bdfa0
push esi
call fcn.0043f71c
push str.WM_PE_BASE
push 0x5000
push esi
call fcn.0043f71c
push str.PE_MENU_IDBASE
push pe_nt_image_headers32
push esi
call fcn.0043f71c
mov esi, dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
add esp, 0x24
push edi
push 0x4a5fea
call esi
push edi
mov ebx, 0x4bdfa0
push str.MyName
mov ecx, ebx
call fcn.0043cc80
push 0x5c
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
xor edi, edi
cmp eax, edi
je 0x4112e1
lea edi, [eax + 2]
push edi
push 0x4a5fd6
call esi
push edi
push str.MyName0
mov ecx, ebx
call fcn.0043cc80
xor edi, edi
push edi
push edi
push str.Desktop
call fcn.00411167
push edi
push edi
push str.Favorites
call fcn.00411167
push edi
push edi
push str.Programs
call fcn.00411167
push edi
push edi
push str.SendTo
call fcn.00411167
push edi
push edi
push str.Personal
call fcn.00411167
push edi
push str.Start_Menu
push 0x4a55c0
call fcn.00411167
add esp, 0x48
push edi
push str.Cache
push str.IECache
call fcn.00411167
push edi
push edi
push str.Startup
call fcn.00411167
push str.MicrosoftInternet_ExplorerQuick_Launch
push str.AppData
push str.QuickLaunch
call fcn.00411167
add esp, 0x24
lea ecx, [ebp - 4]
call fcn.00437884
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4113cc
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14b8
call fcn.0048faf0
push esi
mov esi, 0x4bc2c4
and word [ebp - 0x14b8], 0
mov edx, dword [esi]
mov word [ebp - 0x64], 0x26
lea ecx, [ebp - 0x62]
movsx ax, byte [edx]
mov word [ecx], ax
inc ecx
inc ecx
inc edx
test ax, ax
jne 0x4113f2
push 0xa28
lea eax, [ebp - 0x14b8]
push eax
lea eax, [ebp - 0x62]
push eax
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
lea eax, [ebp - 0x14b8]
push eax
lea eax, [ebp - 0x64]
push eax
mov ecx, 0x4bdfa0
call fcn.0043cc80
add esi, 4
cmp esi, 0x4bc2d8
jl 0x4113df
pop esi
leave
ret
Function at 0x412823
Capabilities:
Acquire debug privileges

Disassembly:
cmp byte [ecx], 0
je 0x412840
and byte [0x4beb98], 0xfb
push 0
push 4
push str.SeDebugPrivilege
call fcn.0041147a
add esp, 0xc
ret

Function at 0x412a30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, 0x4beb4c
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call fcn.00403d1f
mov edi, dword [sym.imp.SHLWAPI.dll_StrChrW]
pop ecx
push 0x5c
push dword [ebp + 8]
mov byte [ebp - 4], al
jmp 0x412a88
push dword [ebp + 8]
and word [esi], 0
call fcn.0048eec0
test eax, eax
pop ecx
jne 0x412a7d
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 0x412a62
cmp byte [ebp - 4], al
je 0x412a9e
push dword [ebp - 8]
call fcn.00403d30
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 0x412f2a
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.0048f710
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 0x412f5f
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 0x412ff6
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 0x413012
mov dword [ebp - 8], esi
jmp 0x41301a
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 0x413045
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov edi, eax
jmp 0x413047
xor edi, edi
test ebx, ebx
je 0x413057
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
jmp 0x413059
xor eax, eax
xor cl, cl
test byte [esi], 1
mov byte [ebp + 0x1b], cl
je 0x413075
test eax, eax
je 0x413156
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov cl, byte [ebp + 0x1b]
mov ebx, eax
test ebx, ebx
je 0x413156
test edi, edi
jle 0x413156
test byte [esi], 0x40
jne 0x4130e5
push 0
push edi
push ebx
call fcn.0043a7f0
add esp, 0xc
test al, al
mov byte [ebp + 0x1b], al
je 0x4130e5
test byte [esi], 0x20
je 0x4130af
test al, 2
je 0x4130af
xor eax, eax
jmp 0x41315f
push 0
lea ecx, [ebp - 0x18]
call fcn.00445727
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.00440f1e
and dword [ebp - 0x18], 0
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.00437884
jmp 0x413122
mov esi, dword [ebp + 0x14]
lea eax, [edi + 0x410]
push eax
mov ecx, esi
call fcn.0040dd26
push edi
push ebx
push dword [esi]
mov dword [esi + 8], edi
mov dword [esi + 4], edi
call fcn.0041255f
add esp, 0xc
cmp word [ebp - 4], 0
je 0x413122
movzx eax, word [ebp - 4]
inc edi
shr edi, 1
push edi
push eax
push dword [esi]
call fcn.00410b2f
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.0048f710
movzx eax, word [ebp - 4]
push 0xc
push eax
mov eax, dword [esi + 4]
add eax, edi
push eax
call fcn.0048f710
mov esi, dword [ebp - 8]
mov cl, byte [ebp + 0x1b]
add esp, 0x18
jmp 0x413158
xor edi, edi
and ecx, 2
or dword [esi], ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413164
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.004050ca
cmp dword [ebp - 8], ebx
jne 0x413195
push 0xfffffffffffffffe
pop esi
jmp 0x41325a
push edi
push dword [ebp - 8]
call fcn.00483f5d
push ebx
push ebx
push ebx
push dword [ebp - 8]
mov esi, eax
mov dword [ebp - 0x10], esi
call fcn.004389fe
add esp, 0x14
add esi, 0xc
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0043d2c0
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.0048f710
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.0043a7f0
add esp, 0x18
cmp al, 1
mov byte [ebp - 1], al
pop edi
jne 0x413243
push dword [0x4bdf68]
lea ecx, [ebp - 0x1c]
push esi
call fcn.0040dd72
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.00440f1e
add esp, 0xc
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
add eax, 6
push eax
mov ecx, esi
call fcn.0043d2c0
lea ecx, [ebp - 0x1c]
call fcn.00437884
push 1
push esi
call fcn.00486473
cmp byte [ebp - 1], bl
pop ecx
pop ecx
jge 0x413257
or esi, 0xffffffff
jmp 0x41325a
mov esi, dword [esi + 4]
lea ecx, [ebp - 8]
call fcn.00402b8a
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x414a44
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 0x414c1b
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
jmp 0x414a79
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 0x414aa5
and word [eax], 0
mov dword [ebp - 8], 2
jmp 0x414ab7
push edi
call fcn.0048eec0
test eax, eax
pop ecx
je 0x414ab7
mov dword [ebp - 8], 1
push edi
lea ecx, [ebp + 8]
call fcn.00445746
cmp dword [ebp - 8], 0
je 0x414ad3
push 0x4a6c24
lea ecx, [ebp + 8]
call fcn.0043d411
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x264]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0048efb8
push dword [ebp + 8]
call fcn.0040e596
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 0x414bbe
mov eax, dword [ebp + 8]
and word [edi + eax], 0
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp + 8]
call fcn.0043d411
test byte [ebp - 0x264], 0x10
jne 0x414b69
cmp dword [ebp + 0xc], 0
push dword [ebp + 8]
je 0x414b5d
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x414ba5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x414b58
inc eax
mov dword [ebp - 4], eax
jmp 0x414ba5
call fcn.0040fd61
test eax, eax
pop ecx
je 0x414ba5
jmp 0x414b58
cmp word [ebp - 0x238], 0x2e
jne 0x414b91
cmp word [ebp - 0x236], 0
je 0x414ba5
cmp word [ebp - 0x236], 0x2e
jne 0x414b91
cmp word [ebp - 0x234], 0
je 0x414ba5
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00414a44
test eax, eax
pop ecx
pop ecx
jne 0x414ba5
and dword [ebp - 4], eax
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0xc]
call fcn.00405140
test eax, eax
jne 0x414b1a
jmp 0x414bcc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x414bc9
inc eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xc]
call fcn.00402bbf
xor edi, edi
cmp dword [ebp - 8], edi
je 0x414c09
cmp dword [ebp + 0xc], edi
push dword [ebp - 0x10]
je 0x414bfc
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x414c09
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, edi
jne 0x414c06
xor eax, eax
inc eax
jmp 0x414c06
call fcn.0040fd61
cmp eax, edi
pop ecx
je 0x414c09
mov dword [ebp - 4], eax
lea ecx, [ebp + 8]
call fcn.00437884
cmp word [ebx], di
jne 0x414a76
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x41717b
Capabilities:
Check mutex on windows

Disassembly:
test byte [0x4c1003], 1
je 0x417193
push str.UCallBackhWnd
call fcn.00410418
test eax, eax
pop ecx
jne 0x417196
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 0x4171d1
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 0x4171d1
xor eax, eax
inc eax
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x418059
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
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.0043d3c3
cmp word [edi], 0x5c
mov ebx, dword [ebp - 0xc]
push 2
pop eax
mov dword [ebp - 4], ebx
lea ebx, [ebx + esi*2]
mov dword [ebp - 8], eax
jne 0x41813c
and dword [ebp + 8], 0
push 0x2c
add edi, eax
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov esi, eax
test esi, esi
je 0x4180cb
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 0x4180cb
mov dword [ebp + 8], esi
push edi
call fcn.004110a0
pop ecx
push ebx
push 0x324
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
cmp word [ebx], 0
mov esi, ebx
je 0x4181a3
mov ax, word [ebp + 8]
cmp word [esi], ax
jb 0x418129
mov ebx, dword [ebp - 4]
push edi
push esi
push str._s_sFonts
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
push ebx
call fcn.0048eec0
add esp, 0x14
test eax, eax
je 0x418129
push 0x4a6c24
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push ebx
call fcn.00417fa1
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 0x4180ec
jmp 0x4181a3
push edi
call fcn.004110a0
and dword [ebp + 8], 0
mov esi, eax
push esi
call fcn.0048eec0
test eax, eax
pop ecx
pop ecx
je 0x41816d
push esi
lea ecx, [ebp + 8]
call fcn.0044580a
push 0x4a6c24
lea ecx, [ebp + 8]
call fcn.0043d411
mov esi, dword [ebp + 8]
push esi
push 0x4a71c0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
call fcn.0040e596
push esi
call fcn.0048eec0
add esp, 0x14
test eax, eax
je 0x41819b
push dword [ebp - 4]
call fcn.00417fa1
pop ecx
mov dword [ebp - 8], eax
lea ecx, [ebp + 8]
call fcn.00437884
lea ecx, [ebp - 0xc]
call fcn.00437884
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a87d
Capabilities:
Check for time delay via gettickcount
Log keystrokes via application hook

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, 0x4beb4c
push edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
xor ebx, ebx
test byte [esp + 0x32], 1
jne 0x41a8a6
cmp dword [0x4bdf28], ebx
jne 0x41a8a6
mov dword [0x4bdf24], ebx
movzx eax, byte [esp + 0x30]
add dword [0x4bdf28], 1
cmp dword [0x4bdf20], ebx
mov dword [esp + 0x30], eax
jne 0x41a8eb
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
push 0x41a77e
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
cmp eax, ebx
mov dword [0x4bdf20], eax
jne 0x41a8eb
sub dword [0x4bdf28], 1
xor esi, esi
jmp 0x41a9dc
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, 0x4e20
jb 0x41a913
push 1
call fcn.00439385
pop ecx
cmp dword [esp + 0x34], 2
jne 0x41a9a9
cmp esi, ebx
jne 0x41a9a9
push 0xa
pop esi
jmp 0x41a9a9
cmp dword [esp + 0x34], 2
je 0x41a93c
call ebp
mov esi, edi
sub esi, eax
cmp esi, ebx
jle 0x41a9b5
cmp byte [0x4bc2c0], bl
jle 0x41a9b5
push 0xa
pop eax
cmp esi, eax
ja 0x41a94d
mov eax, esi
push 0x4ff
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x41a9a1
cmp dword [0x4bdf24], ebx
jne 0x41a9b5
cmp dword [esp + 0x34], 2
je 0x41a977
call ebp
mov esi, edi
sub esi, eax
cmp esi, ebx
jle 0x41a9a9
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 0x41a9a9
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 [0x4bc2c0], bl
jg 0x41a95e
cmp dword [0x4bdf24], ebx
je 0x41a92b
push 0x4beb4c
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [0x4bdf24]
sub dword [0x4bdf28], 1
pop ebp
jne 0x41a9d5
mov dword [0x4bdf24], ebx
mov esi, eax
mov edi, 0x4beb4c
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x41bb40
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 [0x4be0d8], eax
call fcn.0040e320
call fcn.0048fdcb
call fcn.004124b1
xor ebx, ebx
mov esi, 0x4bdfa0
push ebx
mov ecx, esi
call fcn.0040ed87
call fcn.0040563d
mov edi, 0x4beb4c
push edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [0x4bdca8]
or eax, dword [0x4bdcac]
jne 0x41bba0
push 0x4bdca8
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push 0x4bdcb0
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
push 0x4bdf00
call dword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
push ebx
push 0x34ca
call fcn.004113bc
push 0xd6fc6
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 0x4a7686
mov ecx, esi
call fcn.0043cc80
lea eax, [ebp - 0x60]
push eax
push str.PECMDVER
mov ecx, esi
call fcn.0043cc80
push str.X86_U
lea ecx, [ebp + 0x68]
call fcn.00445746
push dword [0x4bc0f0]
lea ecx, [ebp + 0x68]
call fcn.0043d411
push dword [ebp + 0x68]
mov ecx, esi
push 0x4a765c
call fcn.0043cc80
push 0x4a7658
push 0x4a7648
mov ecx, esi
call fcn.0043ccd0
push ebx
push 0x34d7
call fcn.004113bc
call fcn.0041121a
push ebx
push 0x34d9
call fcn.004113bc
mov eax, dword [ebp + 0x78]
mov dword [0x4bde84], eax
mov eax, dword [ebp + 0x7c]
mov dword [0x4bc290], eax
call fcn.004380c2
push str.WM_TaskbarRestart
push dword [0x4be100]
mov esi, 0x4bdfa0
push esi
call fcn.0043f6f0
mov edi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
add esp, 0x1c
push str.__PID
call edi
push eax
push esi
call fcn.0043f6f0
add esp, 0xc
push str.__PPID
call edi
push eax
call fcn.004049e9
pop ecx
push eax
push esi
call fcn.0043f6f0
push str.__HINST
push dword [0x4bde84]
push esi
call fcn.0043f6f0
add esp, 0x18
push 0x4a75dc
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push eax
push esi
call fcn.0043f6f0
add esp, 0xc
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
add eax, 0x34e2
push ebx
push eax
call fcn.004113bc
movzx eax, word [0x4c1010]
push str.SYSCODEPAGE
push eax
push esi
call fcn.0043f6f0
add esp, 0x14
push 0x20a
lea ecx, [ebp + 0x6c]
call fcn.0043d3c3
push dword [ebp + 0x6c]
mov edi, 0x208
push edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
push dword [ebp + 0x6c]
mov ecx, esi
push 0x4a7214
call fcn.0043ccd0
push dword [ebp + 0x6c]
mov ecx, esi
push str._CD
call fcn.0043ccd0
mov eax, dword [ebp + 0x6c]
mov word [eax + 4], bx
push dword [ebp + 0x6c]
mov ecx, esi
push str.CurDrv
call fcn.0043ccd0
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.0043ccd0
call fcn.004113cc
lea ecx, [ebp + 0x6c]
call fcn.00437884
lea ecx, [ebp + 0x68]
call fcn.00437884
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret