joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40eb99
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 [0x4a6028], eax
call fcn.0040b8c6
call fcn.00475a4c
xor ebx, ebx
mov esi, 0x4a5f08
push ebx
mov ecx, esi
call fcn.0040c3c6
call fcn.004044bd
mov edi, 0x4a6658
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4a5c30]
or eax, dword [0x4a5c34]
jne 0x40ebf4
push 0x4a5c30
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x4a5c38
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0x4a5e90
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
call fcn.0040b4bd
push ebx
push 0x2cd3
call fcn.0040eb1b
push 0xd6fbb
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 0x4903ce
mov ecx, esi
call fcn.00432698
lea eax, [ebp - 0x60]
push eax
push str.PECMDVER
mov ecx, esi
call fcn.00432698
push str.X86_U
lea ecx, [ebp + 0x68]
call fcn.0043ccfc
push dword [0x4a40d0]
lea ecx, [ebp + 0x68]
call fcn.00432d25
push dword [ebp + 0x68]
mov ecx, esi
push 0x4903a4
call fcn.00432698
push 0x4903a0
push 0x490390
mov ecx, esi
call fcn.004326e8
push ebx
push 0x2ce0
call fcn.0040eb1b
call fcn.0040e9a3
push ebx
push 0x2ce2
call fcn.0040eb1b
mov eax, dword [ebp + 0x78]
mov dword [0x4a5e00], eax
mov eax, dword [ebp + 0x7c]
mov dword [0x4a426c], eax
call fcn.0042e364
push str.WM_TaskbarRestart
push dword [0x4a6044]
mov esi, 0x4a5f08
push esi
call fcn.00434e74
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add esp, 0x1c
push str.__PID
call edi
push eax
push esi
call fcn.00434e74
add esp, 0xc
push str.__PPID
call edi
push eax
call fcn.00403e12
pop ecx
push eax
push esi
call fcn.00434e74
push str.__HINST
push dword [0x4a5e00]
push esi
call fcn.00434e74
add esp, 0x18
push 0x490324
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push esi
call fcn.00434e74
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x2ceb
push ebx
push eax
call fcn.0040eb1b
movzx eax, word [0x4a9010]
push str.SYSCODEPAGE
push eax
push esi
call fcn.00434e74
add esp, 0x14
push 0x20a
lea ecx, [ebp + 0x6c]
call fcn.00432cd5
push dword [ebp + 0x6c]
mov edi, 0x208
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push dword [ebp + 0x6c]
mov ecx, esi
push 0x4902f4
call fcn.004326e8
push dword [ebp + 0x6c]
mov ecx, esi
push 0x4902e8
call fcn.004326e8
mov eax, dword [ebp + 0x6c]
mov word [eax + 4], bx
push dword [ebp + 0x6c]
mov ecx, esi
push str.CurDrv
call fcn.004326e8
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.004326e8
call fcn.0040eb2b
lea ecx, [ebp + 0x6c]
call fcn.0042dd2d
lea ecx, [ebp + 0x68]
call fcn.0042dd2d
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret
Function at 0x410339
Capabilities:
Acquire debug privileges

Disassembly:
cmp byte [ecx], 0
je 0x410353
and byte [0x4a6a4c], 0xfb
push 4
push str.SeDebugPrivilege
call fcn.0040ee29
pop ecx
pop ecx
ret

Function at 0x410354
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, 0x4a6658
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call fcn.0040306a
mov edi, dword [sym.imp.SHLWAPI.dll_StrChrW]
pop ecx
push 0x5c
push dword [ebp + 8]
mov byte [ebp - 4], al
jmp 0x4103ac
push dword [ebp + 8]
and word [esi], 0
call fcn.00479608
test eax, eax
pop ecx
jne 0x4103a1
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 0x410386
cmp byte [ebp - 4], al
je 0x4103c2
push dword [ebp - 8]
call fcn.0040307b
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 0x410508
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
jne 0x41052f
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.0040c179
test eax, eax
je 0x41052f
call fcn.0040c200
test eax, eax
mov dword [esp + 0xc], eax
jne 0x410536
xor eax, eax
jmp 0x4105f8
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 0x41056e
push 0x40
push ebp
push dword [esp + 0x20]
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x41056e
xor eax, eax
jmp 0x4105f5
push dword [esp + 0x14]
mov ecx, esi
push edi
call fcn.0040c271
mov eax, dword [esi + 0x10]
xor ebx, ebx
cmp dword [eax + 0xa0], ebx
jbe 0x41059b
cmp dword [eax + 0xa4], ebx
jbe 0x41059b
push edi
mov ecx, esi
call fcn.0040c03b
test eax, eax
je 0x410567
push edi
mov ecx, esi
call fcn.0040c09a
test eax, eax
jne 0x4105b6
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x410567
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 0x4105ee
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 0x410567
mov dword [esi], ebp
mov dword [esi + 8], edi
mov eax, ebp
pop edi
pop ebp
pop ebx
pop esi
ret 8

Function at 0x410675
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.00479cf0
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 0x4106aa
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 0x410741
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 0x41075d
mov dword [ebp - 8], esi
jmp 0x410765
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 0x410790
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
jmp 0x410792
xor edi, edi
test ebx, ebx
je 0x4107a2
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
jmp 0x4107a4
xor eax, eax
xor cl, cl
test byte [esi], 1
mov byte [ebp + 0x1b], cl
je 0x4107c0
test eax, eax
je 0x4108a1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov cl, byte [ebp + 0x1b]
mov ebx, eax
test ebx, ebx
je 0x4108a1
test edi, edi
jle 0x4108a1
test byte [esi], 0x40
jne 0x410830
push 0
push edi
push ebx
call fcn.004304e9
add esp, 0xc
test al, al
mov byte [ebp + 0x1b], al
je 0x410830
test byte [esi], 0x20
je 0x4107fa
test al, 2
je 0x4107fa
xor eax, eax
jmp 0x4108aa
push 0
lea ecx, [ebp - 0x18]
call fcn.0043ccaf
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.004362c0
and dword [ebp - 0x18], 0
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.0042dd2d
jmp 0x41086d
mov esi, dword [ebp + 0x14]
lea eax, [edi + 0x410]
push eax
mov ecx, esi
call fcn.00432b85
push edi
push ebx
push dword [esi]
mov dword [esi + 8], edi
mov dword [esi + 4], edi
call fcn.0047a010
add esp, 0xc
cmp word [ebp - 4], 0
je 0x41086d
movzx eax, word [ebp - 4]
inc edi
shr edi, 1
push edi
push eax
push dword [esi]
call fcn.0040df73
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.00479cf0
movzx eax, word [ebp - 4]
push 0xc
push eax
mov eax, dword [esi + 4]
add eax, edi
push eax
call fcn.00479cf0
mov esi, dword [ebp - 8]
mov cl, byte [ebp + 0x1b]
add esp, 0x18
jmp 0x4108a3
xor edi, edi
and ecx, 2
or dword [esi], ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4108af
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.004041da
cmp dword [ebp - 8], ebx
jne 0x4108e0
push 0xfffffffffffffffe
pop esi
jmp 0x4109a5
push edi
push dword [ebp - 8]
call fcn.0046f582
push ebx
push ebx
push ebx
push dword [ebp - 8]
mov esi, eax
mov dword [ebp - 0x10], esi
call fcn.0042ec1a
add esp, 0x14
add esi, 0xc
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00432b85
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.00479cf0
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.004304e9
add esp, 0x18
cmp al, 1
mov byte [ebp - 1], al
pop edi
jne 0x41098e
push dword [0x4a5ef0]
lea ecx, [ebp - 0x1c]
push esi
call fcn.0040b3d3
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.004362c0
add esp, 0xc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 6
push eax
mov ecx, esi
call fcn.00432b85
lea ecx, [ebp - 0x1c]
call fcn.0042dd2d
push 1
push esi
call fcn.00471542
cmp byte [ebp - 1], bl
pop ecx
pop ecx
jge 0x4109a2
or esi, 0xffffffff
jmp 0x4109a5
mov esi, dword [esi + 4]
lea ecx, [ebp - 8]
call fcn.00402ad9
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x410f41
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push esi
xor esi, esi
cmp dword [0x4a5d88], esi
push edi
jne 0x4110f3
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.GdiPlus.dll
call ebx
mov edi, eax
cmp edi, esi
jne 0x411041
push 1
push esi
lea eax, [ebp - 4]
push eax
push str._SystemRoot_WinSxS
mov ecx, 0x4a5f08
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call fcn.0043b168
lea eax, [ebp - 0x274]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
call fcn.004796f1
add esp, 0xc
test eax, eax
je 0x411031
push dword [ebp - 4]
call fcn.0040bb1e
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
pop ecx
cmp word [ebp - 0x248], 0x2e
je 0x41101e
test byte [ebp - 0x274], 0x10
je 0x41101e
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.00432cd5
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.0042dd2d
test edi, edi
jne 0x411031
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0xc]
call fcn.00404250
test eax, eax
jne 0x410fbb
lea ecx, [ebp - 4]
call fcn.0042dd2d
lea ecx, [ebp - 0xc]
call fcn.00402b0e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GdiplusStartup
push edi
call esi
push str.GdiplusShutdown
push edi
mov dword [0x4a5d88], eax
call esi
push str.GdipLoadImageFromFile
push edi
mov dword [0x4a5d8c], eax
call esi
push str.GdipDisposeImage
push edi
mov dword [0x4a5d9c], eax
call esi
push str.GdipCreateFromHDC
push edi
mov dword [0x4a5d90], eax
call esi
push str.GdipDrawImageRectI
push edi
mov dword [0x4a5d94], eax
call esi
push str.GdipCreateBitmapFromHBITMAP
push edi
mov dword [0x4a5d98], eax
call esi
push str.GdipSaveImageToFile
push edi
mov dword [0x4a5da8], eax
call esi
push str.GdipGetImageEncodersSize
push edi
mov dword [0x4a5dac], eax
call esi
push str.GdipGetImageEncoders
push edi
mov dword [0x4a5da0], eax
call esi
push str.GdipDrawImageI
push edi
mov dword [0x4a5da4], eax
call esi
push str.GdipGetImageWidth
push edi
mov dword [0x4a5db0], eax
call esi
push str.GdipGetImageHeight
push edi
mov dword [0x4a5db4], eax
call esi
mov dword [0x4a5db8], eax
xor esi, esi
pop ebx
cmp dword [0x4a5e40], esi
jne 0x411122
cmp dword [0x4a5d9c], esi
je 0x411122
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 0x4a5e40
call dword [0x4a5d88]
cmp dword [ebp + 8], esi
mov dword [ebp - 0x10], esi
je 0x41113c
mov eax, dword [0x4a5d9c]
cmp eax, esi
je 0x41113c
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 0x4126f3
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 0x4128ca
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x412728
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 0x412754
and word [eax], 0
mov dword [ebp - 8], 2
jmp 0x412766
push edi
call fcn.00479608
test eax, eax
pop ecx
je 0x412766
mov dword [ebp - 8], 1
push edi
lea ecx, [ebp + 8]
call fcn.0043ccfc
cmp dword [ebp - 8], 0
je 0x412782
push 0x491070
lea ecx, [ebp + 8]
call fcn.00432d25
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x264]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004796f1
push dword [ebp + 8]
call fcn.0040bb1e
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 0x41286d
mov eax, dword [ebp + 8]
and word [edi + eax], 0
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp + 8]
call fcn.00432d25
test byte [ebp - 0x264], 0x10
jne 0x412818
cmp dword [ebp + 0xc], 0
push dword [ebp + 8]
je 0x41280c
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x412854
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x412807
inc eax
mov dword [ebp - 4], eax
jmp 0x412854
call fcn.0040d3e8
test eax, eax
pop ecx
je 0x412854
jmp 0x412807
cmp word [ebp - 0x238], 0x2e
jne 0x412840
cmp word [ebp - 0x236], 0
je 0x412854
cmp word [ebp - 0x236], 0x2e
jne 0x412840
cmp word [ebp - 0x234], 0
je 0x412854
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004126f3
test eax, eax
pop ecx
pop ecx
jne 0x412854
and dword [ebp - 4], eax
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0xc]
call fcn.00404250
test eax, eax
jne 0x4127c9
jmp 0x41287b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x412878
inc eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xc]
call fcn.00402b0e
xor edi, edi
cmp dword [ebp - 8], edi
je 0x4128b8
cmp dword [ebp + 0xc], edi
push dword [ebp - 0x10]
je 0x4128ab
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4128b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x4128b5
xor eax, eax
inc eax
jmp 0x4128b5
call fcn.0040d3e8
cmp eax, edi
pop ecx
je 0x4128b8
mov dword [ebp - 4], eax
lea ecx, [ebp + 8]
call fcn.0042dd2d
cmp word [ebx], di
jne 0x412725
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x4139d6
Capabilities:
Check mutex on windows

Disassembly:
test byte [0x4a9003], 1
je 0x4139ee
push str.UCallBackhWnd
call fcn.0040d88e
test eax, eax
pop ecx
jne 0x4139f1
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 0x413a2c
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 0x413a2c
xor eax, eax
inc eax
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x414249
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.00432cd5
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 0x414322
and dword [ebp + 8], 0
push 0x2c
push ebx
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
test esi, esi
je 0x4142b8
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 0x4142b8
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 0x414389
mov ax, word [ebp + 8]
cmp word [esi], ax
jb 0x41430f
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.00479608
add esp, 0x14
test eax, eax
je 0x41430f
push 0x491070
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
call fcn.00414191
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 0x4142d2
jmp 0x414389
push ebx
call fcn.0040e84c
and dword [ebp + 8], 0
mov esi, eax
push esi
call fcn.00479608
test eax, eax
pop ecx
pop ecx
je 0x414353
push esi
lea ecx, [ebp + 8]
call fcn.0043cdc0
push 0x491070
lea ecx, [ebp + 8]
call fcn.00432d25
mov esi, dword [ebp + 8]
push esi
push 0x491270
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
call fcn.0040bb1e
push esi
call fcn.00479608
add esp, 0x14
test eax, eax
je 0x414381
push dword [ebp - 4]
call fcn.00414191
pop ecx
mov dword [ebp - 8], eax
lea ecx, [ebp + 8]
call fcn.0042dd2d
lea ecx, [ebp - 0xc]
call fcn.0042dd2d
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4169bc
Capabilities:
Check for time delay via gettickcount
Log keystrokes via application hook

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, 0x4a6658
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
test byte [esp + 0x32], 1
jne 0x4169e5
cmp dword [0x4a5eb4], ebx
jne 0x4169e5
mov dword [0x4a5eb0], ebx
movzx eax, byte [esp + 0x30]
add dword [0x4a5eb4], 1
cmp dword [0x4a5eac], ebx
mov dword [esp + 0x30], eax
jne 0x416a2a
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0x4168bd
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
cmp eax, ebx
mov dword [0x4a5eac], eax
jne 0x416a2a
sub dword [0x4a5eb4], 1
xor esi, esi
jmp 0x416b1a
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 0x416a51
push ebx
call fcn.0042f5b0
pop ecx
cmp dword [esp + 0x34], 2
jne 0x416ae7
cmp esi, ebx
jne 0x416ae7
push 0xa
pop esi
jmp 0x416ae7
cmp dword [esp + 0x34], 2
je 0x416a7a
call ebp
mov esi, edi
sub esi, eax
cmp esi, ebx
jle 0x416af3
cmp byte [0x4a4290], bl
jle 0x416af3
push 0xa
pop eax
cmp esi, eax
ja 0x416a8b
mov eax, esi
push 0x4bf
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x416adf
cmp dword [0x4a5eb0], ebx
jne 0x416af3
cmp dword [esp + 0x34], 2
je 0x416ab5
call ebp
mov esi, edi
sub esi, eax
cmp esi, ebx
jle 0x416ae7
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 0x416ae7
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 [0x4a4290], bl
jg 0x416a9c
cmp dword [0x4a5eb0], ebx
je 0x416a69
push 0x4a6658
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4a5eb0]
sub dword [0x4a5eb4], 1
pop ebp
jne 0x416b13
mov dword [0x4a5eb0], ebx
mov esi, eax
mov edi, 0x4a6658
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x41f17e
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
xor bl, bl
push edi
mov byte [ebp - 1], bl
jmp 0x41f199
inc byte [ebp - 1]
inc eax
inc eax
mov dword [ebp + 8], eax
cmp word [eax], 0x2a
je 0x41f191
lea eax, [ebp + 8]
push eax
call fcn.0040417e
mov al, byte [ebp - 1]
mov edi, dword [ebp + 8]
mov byte [0x4a5e45], al
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 3]
push eax
lea eax, [ebp - 5]
push eax
lea eax, [ebp - 6]
push eax
lea eax, [ebp - 4]
mov byte [ebp - 4], bl
mov byte [ebp - 2], bl
push eax
lea ebx, [ebp + 8]
mov byte [ebp - 3], 0x2a
call fcn.00416b2a
mov eax, dword [ebp + 8]
xor ebx, ebx
add esp, 0x18
cmp word [eax], bx
je 0x41f295
mov esi, 0x4a6658
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [ebp - 1], bl
je 0x41f20f
cmp dword [0x4a5df8], ebx
je 0x41f20f
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x41f2ef
mov eax, dword [ebp + 8]
movsx ecx, byte [ebp - 3]
mov byte [0x4a4281], 0xff
movzx edx, word [eax]
cmp ecx, edx
mov byte [0x4a5e39], 1
jne 0x41f239
movzx eax, word [eax + 2]
cmp ecx, eax
jne 0x41f239
mov byte [0x4a4281], bl
push 0x4a5b6c
push 0x10000
push edi
push 0x41f16d
push 0x100000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [ebp - 0x10], eax
cmp word [edi], bx
jne 0x41f27b
cmp byte [0x4a5e39], bl
je 0x41f2ef
call esi
sub eax, dword [ebp - 0x10]
cmp eax, 0x7d0
jae 0x41f2ef
push 0x14
mov ecx, 0x4a5f08
call fcn.0040ce62
jmp 0x41f26e
movsx eax, byte [ebp - 2]
push eax
movsx eax, byte [ebp - 4]
push eax
lea esi, [ebp - 0xc]
mov eax, esi
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], 0xbb8
call fcn.0040e7c4
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0xc
call edi
cmp byte [ebp - 2], bl
mov dword [ebp - 0x14], eax
je 0x41f2eb
mov esi, 0x4a5df8
mov dword [ebp - 0x10], 0xfa0
jmp 0x41f2eb
call edi
sub eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jae 0x41f2ef
push 0xa
mov ecx, 0x4a5f08
call fcn.0040ce62
cmp dword [esi], ebx
jne 0x41f2d5
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret