joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dd17
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 6
pop ecx
mov esi, str.format.com
lea edi, [ebp - 0x8c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call esi
push dword [ebp + 8]
mov edi, eax
call esi
add eax, edi
lea eax, [eax + eax + 0x1a]
add eax, 0x1e
push eax
lea ecx, [ebp - 8]
call fcn.0042c29e
mov edx, dword [ebp - 8]
push 0x10
pop ecx
xor eax, eax
mov dword [ebp - 0x74], 0x44
lea edi, [ebp - 0x70]
rep stosd dword es:[edi], eax
and word [ebp - 0x44], ax
or dword [ebp - 0x48], 1
lea eax, [ebp - 0x8c]
push eax
push edx
mov dword [ebp + 0xc], edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [ebp + 0xc]
call edi
push 0x4810a0
push dword [ebp + 0xc]
call edi
cmp word [ebx], 0x22
jne 0x40ddba
inc ebx
inc ebx
push ebx
call esi
test eax, eax
jle 0x40ddba
lea eax, [ebx + eax*2 - 2]
cmp word [eax], 0x22
jne 0x40ddba
and word [eax], 0
push ebx
push dword [ebp + 0xc]
call edi
push 0x482aa4
push ebx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x40ddda
push 0x482a98
push dword [ebp + 0xc]
call edi
mov eax, dword [ebp + 8]
mov ax, word [eax]
mov esi, str..D:
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], 8
mov word [ebp - 0x28], ax
mov dword [ebp + 8], 0x12b
mov ebx, 0x496eb8
xor edi, edi
push edi
push edi
push 3
push edi
push edi
push 0x80000000
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x40de35
push 0x64
mov ecx, ebx
call fcn.0040b65c
dec dword [ebp + 8]
jns 0x40de03
jmp 0x40de38
push eax
call esi
mov dword [ebp - 0x10], 2
mov dword [ebp + 8], 0x1d
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x74]
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40de78
push str.Cannot_format_drive:
call fcn.0040d65b
dec dword [ebp - 0x10]
pop ecx
jns 0x40dea8
push 8
pop esi
jmp 0x40deb9
push dword [ebp - 0x1c]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x20]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 4]
push dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
call esi
cmp dword [ebp - 4], edi
je 0x40deb6
push 0x64
mov ecx, ebx
call fcn.0040b65c
dec dword [ebp + 8]
jns 0x40de46
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 8]
call fcn.0042704a
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40eea4
Capabilities:
Acquire debug privileges

Disassembly:
cmp byte [esp + 4], 0
push esi
mov esi, ecx
mov byte [esi], 0
je 0x40eed2
test byte [0x4971a8], 4
jne 0x40eed2
push 2
mov byte [esi], 1
or byte [0x4971a8], 4
push str.SeDebugPrivilege
call fcn.0040d3a0
pop ecx
pop ecx
mov eax, esi
pop esi
ret 4

Function at 0x40eed8
Capabilities:
Acquire debug privileges

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

Function at 0x40eef3
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.00402f00
mov edi, dword [sym.imp.SHLWAPI.dll_StrChrW]
pop ecx
push 0x5c
push dword [ebp + 8]
mov byte [ebp - 4], al
jmp 0x40ef4b
push dword [ebp + 8]
and word [esi], 0
call fcn.0046c02a
test eax, eax
pop ecx
jne 0x40ef40
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 0x40ef25
cmp byte [ebp - 4], al
je 0x40ef61
push dword [ebp - 8]
call fcn.00402f11
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 0x40efef
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
jne 0x40f016
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.0040abb2
test eax, eax
je 0x40f016
call fcn.0040ac39
test eax, eax
mov dword [esp + 0xc], eax
jne 0x40f01d
xor eax, eax
jmp 0x40f0df
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 0x40f055
push 0x40
push ebp
push dword [esp + 0x20]
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x40f055
xor eax, eax
jmp 0x40f0dc
push dword [esp + 0x14]
mov ecx, esi
push edi
call fcn.0040acaa
mov eax, dword [esi + 0x10]
xor ebx, ebx
cmp dword [eax + 0xa0], ebx
jbe 0x40f082
cmp dword [eax + 0xa4], ebx
jbe 0x40f082
push edi
mov ecx, esi
call fcn.0040aa74
test eax, eax
je 0x40f04e
push edi
mov ecx, esi
call fcn.0040aad3
test eax, eax
jne 0x40f09d
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40f04e
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 0x40f0d5
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 0x40f04e
mov dword [esi], ebp
mov dword [esi + 8], edi
mov eax, ebp
pop edi
pop ebp
pop ebx
pop esi
ret 8
Function at 0x40f145
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.0046c4e0
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 0x40f17a
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 0x40f211
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 0x40f22b
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 0x40f256
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
jmp 0x40f258
xor edi, edi
test esi, esi
je 0x40f268
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
jmp 0x40f26a
xor eax, eax
xor cl, cl
test byte [ebx], 1
mov byte [ebp + 0x1b], cl
je 0x40f286
test eax, eax
je 0x40f369
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 0x40f369
test edi, edi
jle 0x40f369
test byte [ebx], 0x40
jne 0x40f2f9
push 0
push edi
push esi
call fcn.00429600
add esp, 0xc
test al, al
mov byte [ebp + 0x1b], al
je 0x40f2f9
test byte [ebx], 0x20
je 0x40f2c3
test al, 2
je 0x40f2c3
xor eax, eax
jmp 0x40f372
push 0
lea ecx, [ebp - 0x18]
call fcn.00436191
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.0042f607
and dword [ebp - 0x18], 0
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.0042704a
jmp 0x40f338
mov esi, dword [ebp + 0x14]
lea eax, [edi + 0x410]
push eax
mov ecx, esi
call fcn.0042c2c5
push edi
push dword [ebp - 4]
mov dword [esi + 8], edi
push dword [esi]
mov dword [esi + 4], edi
call fcn.0046c720
add esp, 0xc
cmp word [ebp - 8], 0
je 0x40f338
movzx eax, word [ebp - 8]
inc edi
shr edi, 1
push edi
push eax
push dword [esi]
call fcn.0040c690
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.0046c4e0
movsx eax, word [ebx + 2]
push 0xc
push eax
mov eax, dword [esi + 4]
add eax, dword [esi]
push eax
call fcn.0046c4e0
mov cl, byte [ebp + 0x1b]
add esp, 0x18
jmp 0x40f36b
xor edi, edi
and ecx, 2
or dword [ebx], ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f377
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.00403c6d
cmp dword [ebp - 8], ebx
jne 0x40f3a8
push 0xfffffffffffffffe
pop esi
jmp 0x40f46d
push edi
push dword [ebp - 8]
call fcn.0042bdd8
push ebx
push ebx
push ebx
push dword [ebp - 8]
mov esi, eax
mov dword [ebp - 0x10], esi
call fcn.00427e7e
add esp, 0x14
add esi, 0xc
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0042c2c5
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.0046c4e0
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.00429600
add esp, 0x18
cmp al, 1
mov byte [ebp - 1], al
pop edi
jne 0x40f456
push dword [0x496e9c]
lea ecx, [ebp - 0x1c]
push esi
call fcn.00409e07
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.0042f607
add esp, 0xc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 6
push eax
mov ecx, esi
call fcn.0042c2c5
lea ecx, [ebp - 0x1c]
call fcn.0042704a
push 1
push esi
call fcn.0043edf7
cmp byte [ebp - 1], bl
pop ecx
pop ecx
jge 0x40f46a
or esi, 0xffffffff
jmp 0x40f46d
mov esi, dword [esi + 4]
lea ecx, [ebp - 8]
call fcn.0040296e
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4107ac
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 0x410825
inc eax
inc eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp + 8]
push eax
call fcn.0040eda5
mov eax, dword [ebp + 8]
cmp word [eax], si
pop ecx
je 0x410825
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 0x410921
xor ecx, ecx
cmp word [eax], 0x21
sete cl
cmp ecx, esi
mov dword [ebp - 0x1c], ecx
je 0x410849
inc eax
inc eax
mov dword [ebp + 8], eax
lea ecx, [ebp + 8]
call fcn.00409e64
push dword [ebp + 8]
call fcn.0040ce49
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 0x410918
cmp dword [ebp - 0x14], esi
je 0x4108e4
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 0x4108af
cmp eax, esi
je 0x41090f
mov dword [ebp - 0xc], eax
jmp 0x41090f
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 0x41090f
cmp dword [ebp - 0x1c], esi
je 0x4108f7
lea ecx, [ebp - 0x64]
push ecx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x410907
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x41090f
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 0x410955
cmp dword [ebp - 0xc], esi
je 0x410943
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.0042af0d
cmp dword [ebp - 8], esi
je 0x41095f
mov eax, dword [ebp - 4]
jmp 0x410961
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x410c13
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 0x410dea
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x410c48
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 0x410c74
and word [eax], 0
mov dword [ebp - 8], 2
jmp 0x410c86
push edi
call fcn.0046c02a
test eax, eax
pop ecx
je 0x410c86
mov dword [ebp - 8], 1
push edi
lea ecx, [ebp + 8]
call fcn.004361de
cmp dword [ebp - 8], 0
je 0x410ca2
push 0x4830e0
lea ecx, [ebp + 8]
call fcn.0042c465
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x264]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0046c113
push dword [ebp + 8]
call fcn.0040a51d
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 0x410d8d
mov eax, dword [ebp + 8]
and word [edi + eax], 0
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp + 8]
call fcn.0042c465
test byte [ebp - 0x264], 0x10
jne 0x410d38
cmp dword [ebp + 0xc], 0
push dword [ebp + 8]
je 0x410d2c
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x410d74
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x410d27
inc eax
mov dword [ebp - 4], eax
jmp 0x410d74
call fcn.0040bc14
test eax, eax
pop ecx
je 0x410d74
jmp 0x410d27
cmp word [ebp - 0x238], 0x2e
jne 0x410d60
cmp word [ebp - 0x236], 0
je 0x410d74
cmp word [ebp - 0x236], 0x2e
jne 0x410d60
cmp word [ebp - 0x234], 0
je 0x410d74
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00410c13
test eax, eax
pop ecx
pop ecx
jne 0x410d74
and dword [ebp - 4], eax
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0xc]
call fcn.00403ce3
test eax, eax
jne 0x410ce9
jmp 0x410d9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x410d98
inc eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xc]
call fcn.00402988
xor edi, edi
cmp dword [ebp - 8], edi
je 0x410dd8
cmp dword [ebp + 0xc], edi
push dword [ebp - 0x10]
je 0x410dcb
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x410dd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x410dd5
xor eax, eax
inc eax
jmp 0x410dd5
call fcn.0040bc14
cmp eax, edi
pop ecx
je 0x410dd8
mov dword [ebp - 4], eax
lea ecx, [ebp + 8]
call fcn.0042704a
cmp word [ebx], di
jne 0x410c45
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x4121fd
Capabilities:
Check mutex on windows

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

Function at 0x4129da
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.0042c415
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 0x412ab3
and dword [ebp + 8], 0
push 0x2c
push ebx
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
test esi, esi
je 0x412a49
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 0x412a49
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 0x412b1a
mov ax, word [ebp + 8]
cmp word [esi], ax
jb 0x412aa0
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.0046c02a
add esp, 0x14
test eax, eax
je 0x412aa0
push 0x4830e0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
call fcn.00412922
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 0x412a63
jmp 0x412b1a
push ebx
call fcn.0040ce49
and dword [ebp + 8], 0
mov esi, eax
push esi
call fcn.0046c02a
test eax, eax
pop ecx
pop ecx
je 0x412ae4
push esi
lea ecx, [ebp + 8]
call fcn.004362a2
push 0x4830e0
lea ecx, [ebp + 8]
call fcn.0042c465
mov esi, dword [ebp + 8]
push esi
push 0x483300
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
call fcn.0040a51d
push esi
call fcn.0046c02a
add esp, 0x14
test eax, eax
je 0x412b12
push dword [ebp - 4]
call fcn.00412922
pop ecx
mov dword [ebp - 8], eax
lea ecx, [ebp + 8]
call fcn.0042704a
lea ecx, [ebp - 0xc]
call fcn.0042704a
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413187
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
push 0x41c
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], edi
call fcn.0042c415
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]
push esi
push str.__OldDir
mov ecx, edi
call fcn.0042af0d
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x4131d9
cmp word [esi], 0x2a
jne 0x4131fb
inc esi
inc esi
mov dword [ebp + 8], esi
je 0x4131fb
push 0x104
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp esi, ebx
je 0x4131f5
push esi
lea ecx, [ebp - 4]
call fcn.0042c465
mov eax, dword [ebp - 4]
mov dword [ebp + 8], eax
lea ecx, [ebp + 8]
call fcn.00409e64
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call fcn.0040d360
pop ecx
pop ecx
mov esi, eax
push esi
push 0x483358
mov ecx, edi
call fcn.0042af0d
cmp dword [ebp + 0xc], ebx
jne 0x413235
push esi
push 0x48335c
mov ecx, edi
call fcn.0042af0d
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 0x413251
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov word [edi], bx
mov edi, dword [ebp - 0xc]
push esi
push 0x483344
mov ecx, edi
call fcn.0042af0d
cmp dword [ebp + 0xc], ebx
jne 0x41327b
push esi
push 0x483348
mov ecx, edi
call fcn.0042af0d
call fcn.0040a910
push esi
push 0x483330
mov ecx, edi
mov word [esi + 4], bx
call fcn.0042af0d
cmp dword [ebp + 0xc], ebx
jne 0x41329e
push esi
push 0x483334
mov ecx, edi
call fcn.0042af0d
lea ecx, [ebp - 8]
call fcn.0042704a
lea ecx, [ebp - 4]
call fcn.0042704a
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8
Function at 0x41502f
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 0x415058
cmp dword [0x496e60], ebx
jne 0x415058
mov dword [0x496e5c], ebx
movzx eax, byte [esp + 0x30]
add dword [0x496e60], 1
cmp dword [0x496e58], ebx
mov dword [esp + 0x30], eax
jne 0x41509d
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0x414f30
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
cmp eax, ebx
mov dword [0x496e58], eax
jne 0x41509d
sub dword [0x496e60], 1
xor esi, esi
jmp 0x41518d
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 0x4150c4
push ebx
call fcn.00428814
pop ecx
cmp dword [esp + 0x34], 2
jne 0x41515a
cmp esi, ebx
jne 0x41515a
push 0xa
pop esi
jmp 0x41515a
cmp dword [esp + 0x34], 2
je 0x4150ed
call ebp
mov esi, edi
sub esi, eax
cmp esi, ebx
jle 0x415166
cmp byte [0x495280], bl
jle 0x415166
push 0xa
pop eax
cmp esi, eax
ja 0x4150fe
mov eax, esi
push 0x4bf
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x415152
cmp dword [0x496e5c], ebx
jne 0x415166
cmp dword [esp + 0x34], 2
je 0x415128
call ebp
mov esi, edi
sub esi, eax
cmp esi, ebx
jle 0x41515a
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 0x41515a
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 0x41510f
cmp dword [0x496e5c], ebx
je 0x4150dc
push 0x4975e4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x496e5c]
sub dword [0x496e60], 1
pop ebp
jne 0x415186
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 0x418f6c
Capabilities:
Create directory

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
cmp word [eax], 0
jne 0x41901f
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.004362a2
lea eax, [edi + 0x3c]
push eax
mov ecx, esi
call fcn.0042c43e
push dword [esi]
call fcn.0046c02a
test eax, eax
pop ecx
jne 0x418fb4
push dword [esi]
call fcn.00415c5b
pop ecx
and dword [esp + 0x14], 0
lea ebx, [edi + edi]
mov edi, dword [esi]
add edi, ebx
call fcn.00428bd8
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 0x419000
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 0x64
jl 0x418fbc
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