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

Disassembly:
cmp byte [ecx], 0
je 0x40f037
and byte [0x4971a8], 0xfb
push 4
push str.SeDebugPrivilege
call fcn.0040d55a
pop ecx
pop ecx
ret

Function at 0x40f038
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, 0x4975e4
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call fcn.00402f56
mov edi, dword [sym.imp.SHLWAPI.dll_StrChrW]
pop ecx
push 0x5c
push dword [ebp + 8]
mov byte [ebp - 4], al
jmp 0x40f090
push dword [ebp + 8]
and word [esi], 0
call fcn.0046c4f9
test eax, eax
pop ecx
jne 0x40f085
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 0x40f06a
cmp byte [ebp - 4], al
je 0x40f0a6
push dword [ebp - 8]
call fcn.00402f67
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 0x40f1ba
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
jne 0x40f1e1
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.0040ad62
test eax, eax
je 0x40f1e1
call fcn.0040ade9
test eax, eax
mov dword [esp + 0xc], eax
jne 0x40f1e8
xor eax, eax
jmp 0x40f2aa
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 0x40f220
push 0x40
push ebp
push dword [esp + 0x20]
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x40f220
xor eax, eax
jmp 0x40f2a7
push dword [esp + 0x14]
mov ecx, esi
push edi
call fcn.0040ae5a
mov eax, dword [esi + 0x10]
xor ebx, ebx
cmp dword [eax + 0xa0], ebx
jbe 0x40f24d
cmp dword [eax + 0xa4], ebx
jbe 0x40f24d
push edi
mov ecx, esi
call fcn.0040ac24
test eax, eax
je 0x40f219
push edi
mov ecx, esi
call fcn.0040ac83
test eax, eax
jne 0x40f268
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40f219
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 0x40f2a0
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 0x40f219
mov dword [esi], ebp
mov dword [esi + 8], edi
mov eax, ebp
pop edi
pop ebp
pop ebx
pop esi
ret 8

Function at 0x40f310
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.0046c9b0
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 0x40f345
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 0x40f3dc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0x18]
test ebx, ebx
push esi
push edi
mov dword [ebp - 0xc], 0x20
jne 0x40f3f6
lea ebx, [ebp - 0xc]
push dword [ebp + 0x10]
mov ax, word [ebx + 2]
push dword [ebp + 0xc]
mov word [ebp - 8], ax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40f421
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
jmp 0x40f423
xor edi, edi
test esi, esi
je 0x40f433
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
jmp 0x40f435
xor eax, eax
xor cl, cl
test byte [ebx], 1
mov byte [ebp + 0x1b], cl
je 0x40f451
test eax, eax
je 0x40f534
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov cl, byte [ebp + 0x1b]
mov esi, eax
test esi, esi
mov dword [ebp - 4], eax
je 0x40f534
test edi, edi
jle 0x40f534
test byte [ebx], 0x40
jne 0x40f4c4
push 0
push edi
push esi
call fcn.00429952
add esp, 0xc
test al, al
mov byte [ebp + 0x1b], al
je 0x40f4c4
test byte [ebx], 0x20
je 0x40f48e
test al, 2
je 0x40f48e
xor eax, eax
jmp 0x40f53d
push 0
lea ecx, [ebp - 0x18]
call fcn.0043656d
movzx eax, word [ebx + 2]
push eax
mov dword [ebp - 0x18], esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push esi
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call fcn.0042f97b
and dword [ebp - 0x18], 0
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.00427365
jmp 0x40f503
mov esi, dword [ebp + 0x14]
lea eax, [edi + 0x410]
push eax
mov ecx, esi
call fcn.0042c6d7
push edi
push dword [ebp - 4]
mov dword [esi + 8], edi
push dword [esi]
mov dword [esi + 4], edi
call fcn.0046cbf0
add esp, 0xc
cmp word [ebp - 8], 0
je 0x40f503
movzx eax, word [ebp - 8]
inc edi
shr edi, 1
push edi
push eax
push dword [esi]
call fcn.0040c84a
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.0046c9b0
movsx eax, word [ebx + 2]
push 0xc
push eax
mov eax, dword [esi + 4]
add eax, dword [esi]
push eax
call fcn.0046c9b0
mov cl, byte [ebp + 0x1b]
add esp, 0x18
jmp 0x40f536
xor edi, edi
and ecx, 2
or dword [ebx], ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f542
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.00403ce4
cmp dword [ebp - 8], ebx
jne 0x40f573
push 0xfffffffffffffffe
pop esi
jmp 0x40f638
push edi
push dword [ebp - 8]
call fcn.0042c1b2
push ebx
push ebx
push ebx
push dword [ebp - 8]
mov esi, eax
mov dword [ebp - 0x10], esi
call fcn.004281cd
add esp, 0x14
add esi, 0xc
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0042c6d7
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.0046c9b0
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.00429952
add esp, 0x18
cmp al, 1
mov byte [ebp - 1], al
pop edi
jne 0x40f621
push dword [0x496e9c]
lea ecx, [ebp - 0x1c]
push esi
call fcn.00409f66
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.0042f97b
add esp, 0xc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 6
push eax
mov ecx, esi
call fcn.0042c6d7
lea ecx, [ebp - 0x1c]
call fcn.00427365
push 1
push esi
call fcn.0043f1ef
cmp byte [ebp - 1], bl
pop ecx
pop ecx
jge 0x40f635
or esi, 0xffffffff
jmp 0x40f638
mov esi, dword [esi + 4]
lea ecx, [ebp - 8]
call fcn.00402a26
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x410977
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f4
push ebx
push esi
xor esi, esi
push edi
push esi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x18], eax
xor eax, eax
push 9
xor ebx, ebx
pop ecx
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
inc ebx
mov dword [ebp - 0x20], esi
cmp word [eax], 0x3f
mov dword [ebp - 0x10], esi
sete cl
mov dword [ebp - 0xc], ebx
cmp ecx, esi
mov dword [ebp - 0x14], ecx
je 0x4109f0
inc eax
inc eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp + 8]
push eax
call fcn.0040ef3f
mov eax, dword [ebp + 8]
cmp word [eax], si
pop ecx
je 0x4109f0
mov word [eax], si
inc eax
inc eax
mov dword [ebp + 8], eax
cmp dword [ebp - 0x18], esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x410aec
xor ecx, ecx
cmp word [eax], 0x21
sete cl
cmp ecx, esi
mov dword [ebp - 0x1c], ecx
je 0x410a14
inc eax
inc eax
mov dword [ebp + 8], eax
lea ecx, [ebp + 8]
call fcn.00409fda
push dword [ebp + 8]
call fcn.0040d003
pop ecx
mov ecx, dword [ebp - 0x14]
neg ecx
sbb ecx, ecx
and ecx, 0xffffffd4
add ecx, 0x30
push ecx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x410ae3
cmp dword [ebp - 0x14], esi
je 0x410aaf
lea ecx, [ebp - 0x20]
push ecx
push 0x24
lea ecx, [ebp - 0x48]
push ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov ebx, eax
mov dword [ebp - 8], 1
call edi
cmp ebx, esi
mov dword [ebp - 4], eax
jne 0x410a7a
cmp eax, esi
je 0x410ada
mov dword [ebp - 0xc], eax
jmp 0x410ada
push dword [ebp - 0x28]
lea eax, [ebp - 0x1f4]
push dword [ebp - 0x2c]
mov dword [ebp - 0xc], esi
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push str.0_0x_lX_0x_lX_0x_lX_0x_lX_0x_lX_0x_lX_0x_lX_0x_lX_0x_lX
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x2c
jmp 0x410ada
cmp dword [ebp - 0x1c], esi
je 0x410ac2
lea ecx, [ebp - 0x64]
push ecx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x410ad2
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x410ada
mov dword [ebp - 8], ebx
call edi
mov dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x10], esi
je 0x410b20
cmp dword [ebp - 0xc], esi
je 0x410b0e
push dword [ebp - 0xc]
lea eax, [ebp - 0x1f4]
push 0x482fd4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x1f4]
push eax
push dword [ebp - 0x10]
call fcn.0042b2cd
cmp dword [ebp - 8], esi
je 0x410b2a
mov eax, dword [ebp - 4]
jmp 0x410b2c
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x410ddd
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 0x410fb4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x410e12
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 0x410e3e
and word [eax], 0
mov dword [ebp - 8], 2
jmp 0x410e50
push edi
call fcn.0046c4f9
test eax, eax
pop ecx
je 0x410e50
mov dword [ebp - 8], 1
push edi
lea ecx, [ebp + 8]
call fcn.004365ba
cmp dword [ebp - 8], 0
je 0x410e6c
push 0x4830e0
lea ecx, [ebp + 8]
call fcn.0042c877
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x264]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0046c5e2
push dword [ebp + 8]
call fcn.0040a72b
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 0x410f57
mov eax, dword [ebp + 8]
and word [edi + eax], 0
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp + 8]
call fcn.0042c877
test byte [ebp - 0x264], 0x10
jne 0x410f02
cmp dword [ebp + 0xc], 0
push dword [ebp + 8]
je 0x410ef6
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x410f3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x410ef1
inc eax
mov dword [ebp - 4], eax
jmp 0x410f3e
call fcn.0040bdce
test eax, eax
pop ecx
je 0x410f3e
jmp 0x410ef1
cmp word [ebp - 0x238], 0x2e
jne 0x410f2a
cmp word [ebp - 0x236], 0
je 0x410f3e
cmp word [ebp - 0x236], 0x2e
jne 0x410f2a
cmp word [ebp - 0x234], 0
je 0x410f3e
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00410ddd
test eax, eax
pop ecx
pop ecx
jne 0x410f3e
and dword [ebp - 4], eax
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0xc]
call fcn.00403d5a
test eax, eax
jne 0x410eb3
jmp 0x410f65
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x410f62
inc eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xc]
call fcn.00402a40
xor edi, edi
cmp dword [ebp - 8], edi
je 0x410fa2
cmp dword [ebp + 0xc], edi
push dword [ebp - 0x10]
je 0x410f95
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x410fa2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x410f9f
xor eax, eax
inc eax
jmp 0x410f9f
call fcn.0040bdce
cmp eax, edi
pop ecx
je 0x410fa2
mov dword [ebp - 4], eax
lea ecx, [ebp + 8]
call fcn.00427365
cmp word [ebx], di
jne 0x410e0f
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x4123c7
Capabilities:
Check mutex on windows

Disassembly:
test byte [0x49a003], 1
je 0x4123df
push str.UCallBackhWnd
call fcn.0040c158
test eax, eax
pop ecx
jne 0x4123e2
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 0x41241d
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 0x41241d
xor eax, eax
inc eax
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x412c48
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.0042c827
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 0x412d21
and dword [ebp + 8], 0
push 0x2c
push ebx
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
test esi, esi
je 0x412cb7
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 0x412cb7
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 0x412d88
mov ax, word [ebp + 8]
cmp word [esi], ax
jb 0x412d0e
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.0046c4f9
add esp, 0x14
test eax, eax
je 0x412d0e
push 0x4830e0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
call fcn.00412b90
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 0x412cd1
jmp 0x412d88
push ebx
call fcn.0040d003
and dword [ebp + 8], 0
mov esi, eax
push esi
call fcn.0046c4f9
test eax, eax
pop ecx
pop ecx
je 0x412d52
push esi
lea ecx, [ebp + 8]
call fcn.0043667e
push 0x4830e0
lea ecx, [ebp + 8]
call fcn.0042c877
mov esi, dword [ebp + 8]
push esi
push 0x483308
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
call fcn.0040a72b
push esi
call fcn.0046c4f9
add esp, 0x14
test eax, eax
je 0x412d80
push dword [ebp - 4]
call fcn.00412b90
pop ecx
mov dword [ebp - 8], eax
lea ecx, [ebp + 8]
call fcn.00427365
lea ecx, [ebp - 0xc]
call fcn.00427365
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4133f5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov dword [ebp - 8], ecx
push 0x41c
lea ecx, [ebp - 4]
call fcn.0042c827
mov eax, dword [ebp - 4]
mov esi, eax
push esi
xor ebx, ebx
push 0x208
mov word [eax], bx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [ebp - 8]
push esi
push str.__OldDir
call fcn.0042b2cd
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x413445
cmp word [esi], 0x2a
jne 0x413467
inc esi
inc esi
mov dword [ebp + 8], esi
je 0x413467
push 0x104
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp esi, ebx
je 0x413461
push esi
lea ecx, [ebp - 4]
call fcn.0042c877
mov eax, dword [ebp - 4]
mov dword [ebp + 8], eax
lea ecx, [ebp + 8]
call fcn.00409fda
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
call fcn.0040d51a
mov esi, eax
mov ax, word [esi]
cmp ax, 0x61
pop ecx
pop ecx
jb 0x413498
cmp ax, 0x7a
ja 0x413498
and ax, 0xffdf
mov word [esi], ax
mov ecx, dword [ebp - 8]
push esi
push 0x483360
call fcn.0042b2cd
cmp dword [ebp + 0xc], ebx
jne 0x4134b8
push esi
push 0x483364
call fcn.0040a3cf
pop ecx
pop ecx
push edi
push 0x5c
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp dword [ebp + 0xc], ebx
mov edi, eax
mov word [edi + 2], bx
jne 0x4134d5
push esi
call fcn.0040a41e
pop ecx
mov ecx, dword [ebp - 8]
push esi
push 0x48334c
mov word [edi], bx
call fcn.0042b2cd
cmp dword [ebp + 0xc], ebx
pop edi
jne 0x4134fe
push esi
push 0x483350
call fcn.0040a3cf
pop ecx
pop ecx
call fcn.0040f134
mov ecx, dword [ebp - 8]
push esi
push 0x483338
mov word [esi + 4], bx
call fcn.0042b2cd
cmp dword [ebp + 0xc], ebx
jne 0x413522
push esi
push 0x48333c
call fcn.0040a3cf
pop ecx
pop ecx
lea ecx, [ebp - 0xc]
call fcn.00427365
lea ecx, [ebp - 4]
call fcn.00427365
pop esi
xor eax, eax
pop ebx
leave
ret 8
Function at 0x4152d7
Capabilities:
Check for time delay via gettickcount
Log keystrokes via application hook

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, 0x4975e4
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
test byte [esp + 0x32], 1
jne 0x415300
cmp dword [0x496e60], ebx
jne 0x415300
mov dword [0x496e5c], ebx
movzx eax, byte [esp + 0x30]
add dword [0x496e60], 1
cmp dword [0x496e58], ebx
mov dword [esp + 0x30], eax
jne 0x415345
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0x4151d8
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
cmp eax, ebx
mov dword [0x496e58], eax
jne 0x415345
sub dword [0x496e60], 1
xor esi, esi
jmp 0x415435
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 0x41536c
push ebx
call fcn.00428b63
pop ecx
cmp dword [esp + 0x34], 2
jne 0x415402
cmp esi, ebx
jne 0x415402
push 0xa
pop esi
jmp 0x415402
cmp dword [esp + 0x34], 2
je 0x415395
call ebp
mov esi, edi
sub esi, eax
cmp esi, ebx
jle 0x41540e
cmp byte [0x495280], bl
jle 0x41540e
push 0xa
pop eax
cmp esi, eax
ja 0x4153a6
mov eax, esi
push 0x4bf
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x4153fa
cmp dword [0x496e5c], ebx
jne 0x41540e
cmp dword [esp + 0x34], 2
je 0x4153d0
call ebp
mov esi, edi
sub esi, eax
cmp esi, ebx
jle 0x415402
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 0x415402
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 [0x495280], bl
jg 0x4153b7
cmp dword [0x496e5c], ebx
je 0x415384
push 0x4975e4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x496e5c]
sub dword [0x496e60], 1
pop ebp
jne 0x41542e
mov dword [0x496e5c], ebx
mov esi, eax
mov edi, 0x4975e4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x41929d
Capabilities:
Create directory

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
cmp word [eax], 0
jne 0x419350
push ebx
push ebp
push edi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [esp + 0x14]
mov ecx, esi
mov edi, eax
call fcn.0043667e
lea eax, [edi + 0x3c]
push eax
mov ecx, esi
call fcn.0042c850
push dword [esi]
call fcn.0046c4f9
test eax, eax
pop ecx
jne 0x4192e5
push dword [esi]
call fcn.00415f03
pop ecx
and dword [esp + 0x14], 0
lea ebx, [edi + edi]
mov edi, dword [esi]
add edi, ebx
call fcn.00428f27
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.PECMDDEVI_lu_lu.tmp.dir
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esi]
add esp, 0x10
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x419331
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 0x64
jl 0x4192ed
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esi]
add eax, eax
mov word [eax + ecx], 0x5c
mov ecx, dword [esi]
and word [eax + ecx + 2], 0
mov eax, dword [esi]
pop edi
pop ebp
pop ebx
pop esi
ret 4
Function at 0x41c7c4
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
cmp word [eax], 0x2a
push ebx
push esi
lea eax, [ebp + 8]
push edi
push eax
sete byte [ebp - 4]
call fcn.00403cc8
mov edi, dword [ebp + 8]
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 5]
push eax
lea eax, [ebp - 6]
push eax
lea eax, [ebp - 3]
push eax
lea ebx, [ebp + 8]
mov byte [ebp - 2], 0x2a
mov byte [ebp - 3], 0
mov byte [ebp - 1], 0
call fcn.00415445
mov eax, dword [ebp + 8]
add esp, 0x18
xor ebx, ebx
cmp word [eax], bx
mov esi, 0x4975e4
push esi
je 0x41c8ca
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [ebp - 4], bl
je 0x41c83a
cmp dword [0x496dd0], ebx
jne 0x41c937
mov eax, dword [ebp + 8]
movsx ecx, byte [ebp - 2]
mov byte [0x495271], 0xff
movzx edx, word [eax]
cmp ecx, edx
mov byte [0x496e0c], 1
jne 0x41c865
movzx eax, word [eax + 2]
cmp ecx, eax
jne 0x41c865
mov byte [0x495271], 0
push 0x496b6c
push 0x10000
push edi
push 0x41c7b3
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 - 0x18], eax
cmp word [edi], bx
jne 0x41c8ac
cmp byte [0x496e0c], 0
je 0x41c9c5
call esi
sub eax, dword [ebp - 0x18]
cmp eax, 0x7d0
jae 0x41c9c5
push 0x14
mov ecx, 0x496eb8
call fcn.0040b816
jmp 0x41c89a
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 0xbb8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x496dd0]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
push str.LogohWnd
mov ebx, str.SOFTWAREPELOGON
push ebx
mov edi, 0x80000002
push edi
mov dword [ebp - 0x1c], 4
call fcn.00428081
push str.LogohWnd
push ebx
push edi
call fcn.0042816f
xor ecx, ecx
add esp, 0x24
cmp dword [ebp - 0x10], ecx
jne 0x41c943
mov eax, dword [ebp - 0x14]
cmp eax, ecx
mov dword [ebp - 0x10], eax
jne 0x41c943
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x41c9c5
mov edx, dword [ebp - 0x10]
cmp edx, dword [0x496dd0]
mov al, byte [ebp - 3]
jne 0x41c960
test al, al
jne 0x41c95d
cmp byte [ebp - 1], al
jne 0x41c95d
xor ecx, ecx
inc ecx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0xc]
neg ecx
sbb ecx, ecx
lea edi, [ebp - 0xc]
and ecx, edi
neg al
push ecx
sbb eax, eax
add eax, 0x67
push eax
push 0x111
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
cmp byte [ebp - 1], 0
mov ebx, eax
je 0x41c9a6
mov edi, 0x496dd0
mov dword [ebp - 0x18], 0xfa0
jmp 0x41c9c0
mov edi, dword [ebp - 0x24]
jmp 0x41c9c0
call esi
sub eax, ebx
cmp eax, dword [ebp - 0x18]
jae 0x41c9c5
push 0xa
mov ecx, 0x496eb8
call fcn.0040b816
cmp dword [edi], 0
jne 0x41c9ab
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret