joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b030
Capabilities:
Create process on windows
Get explorer pid

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x526060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x44
lea eax, [ebp - 0x48]
mov dword [ebp - 0x50], 0
push 0
push eax
mov edi, edx
mov dword [ebp - 0x4c], 0
mov esi, ecx
call fcn.004c4090
add esp, 0xc
mov dword [ebp - 0x1c], 1
xorps xmm0, xmm0
mov eax, 1
movups xmmword [edi], xmm0
mov word [ebp - 0x18], ax
push str.CreateProcessWithTokenW
push str.Advapi32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x40b0ca
cmp dword [esi + 0x14], 8
jb 0x40b0a0
mov esi, dword [esi]
push edi
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412b06
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.USER32.dll_GetShellWindow]
lea ecx, [ebp - 0x54]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x54]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
lea eax, [ebp - 0x4c]
push eax
push 2
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x50]
push eax
push 1
push 2
push 0
push 0xf01ff
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
cmp dword [esi + 0x14], 8
jb 0x40b11b
mov esi, dword [esi]
push edi
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x20
push esi
push 0
push 0
push dword [ebp - 0x50]
call dword [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x40b143
push eax
call esi
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x40b14d
push eax
call esi
test ebx, ebx
je 0x40b154
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00412b06
mov esp, ebp
pop ebp
ret

Function at 0x40b170
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x526060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x3c
lea eax, [ebp - 0x40]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.004c4090
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
cmp dword [edi + 0x14], 8
jb 0x40b1a5
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], str.runas
jb 0x40b1b7
mov esi, dword [esi]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x2c], esi
push eax
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x24], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
pop esi
test eax, eax
jne 0x40b1f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x40b1f5
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412b06
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.00412b06
mov esp, ebp
pop ebp
ret
Function at 0x40b270
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x526060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40b29e
mov eax, dword [esi]
jmp 0x40b2a0
mov eax, esi
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0xc]
push eax
push edx
lea eax, [ebp - 8]
mov dword [ebp - 0xc], edx
push eax
push edx
push ecx
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40b2d4
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412b06
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0xc]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
push edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00413112
mov ecx, dword [ebp - 0xc]
mov edi, eax
lea ecx, [ecx*2 + 2]
push ecx
push 0
push edi
call fcn.004c4090
add esp, 0x10
test edi, edi
je 0x40b353
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp - 0x10]
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x40b330
push edi
mov ecx, esi
call fcn.004075c0
push edi
call fcn.0041310d
add esp, 4
xor eax, eax
test ebx, ebx
sete al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412b06
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412b06
mov esp, ebp
pop ebp
ret 8

Function at 0x40b490
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ac
mov eax, dword [0x526060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x2ac], 0
push eax
mov esi, ecx
push 0
mov dword [ebp - 0x2a8], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x29c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x40b577
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40b577
push edi
push ebx
push 0
lea eax, [ebp - 0x29c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp - 0x2a8]
push eax
push 0x515274
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40b577
mov ecx, dword [ebp - 0x2a8]
movsx eax, word [ecx + 0xc]
push eax
movsx eax, word [ecx + 0xe]
push eax
movsx eax, word [ecx + 8]
push eax
movsx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0x94]
push 0x516088
push eax
call fcn.0040c3f0
add esp, 0x18
lea eax, [ebp - 0x94]
mov ecx, esi
push eax
call fcn.00401be0
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412b06
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esi + 0x14], 7
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x515070
mov word [esi], ax
call fcn.00401d30
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412b06
mov esp, ebp
pop ebp
ret
Function at 0x40b650
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e63d2
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x526060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x224], esi
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 0x22c], esi
push eax
push 0
mov dword [ebp - 0x228], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40b6d0
mov eax, dword [esi]
jmp 0x40b6d2
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], ecx
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x228], 1
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x40b749
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40b749
push edi
push ebx
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
push str.VarFileInfoTranslation
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
push esi
push dword [ebp - 0x224]
mov ecx, edi
call fcn.0040b5b0
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412b06
mov esp, ebp
pop ebp
ret
Function at 0x40b770
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6408
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x526060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x6c], esi
xor eax, eax
mov dword [ebp - 0x70], 0
push eax
push 0x515070
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], ax
call fcn.00401d30
mov dword [ebp - 4], 0
push 0x288
mov dword [ebp - 0x6c], 0x288
call fcn.004c9a57
mov edi, eax
add esp, 4
test edi, edi
jne 0x40b812
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call fcn.00404e50
mov ecx, dword [ebp - 0x54]
cmp ecx, 8
jb 0x40b94b
inc ecx
push ecx
push dword [ebp - 0x68]
lea ecx, [ebp - 0x68]
call fcn.00401e90
jmp 0x40b94b
lea eax, [ebp - 0x6c]
push eax
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x40b854
push edi
call fcn.004c9a52
add esp, 4
push dword [ebp - 0x6c]
call fcn.004c9a57
mov edi, eax
add esp, 4
test edi, edi
jne 0x40b854
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call fcn.00404e50
lea ecx, [ebp - 0x68]
call fcn.00401ba0
jmp 0x40b94b
lea eax, [ebp - 0x6c]
push eax
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x40b8fc
mov ecx, edi
test edi, edi
je 0x40b8fc
cmp dword [ecx + 0x1a0], 6
jne 0x40b883
cmp dword [ecx + 0x190], 6
je 0x40b88b
mov ecx, dword [ecx]
test ecx, ecx
jne 0x40b871
jmp 0x40b8fc
movzx eax, byte [ecx + 0x199]
push eax
movzx eax, byte [ecx + 0x198]
push eax
movzx eax, byte [ecx + 0x197]
push eax
movzx eax, byte [ecx + 0x196]
push eax
movzx eax, byte [ecx + 0x195]
push eax
movzx eax, byte [ecx + 0x194]
push eax
lea eax, [ebp - 0x50]
push str._02X__02X__02X__02X__02X__02X
push eax
call fcn.00409e20
add esp, 0x20
cmp word [ebp - 0x50], 0
jne 0x40b8d7
xor ecx, ecx
jmp 0x40b8ef
lea ecx, [ebp - 0x50]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b8e0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x68]
call fcn.00407700
push edi
call fcn.004c9a52
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
add esp, 4
mov word [esi], ax
mov ecx, dword [ebp - 0x54]
cmp ecx, 8
jae 0x40b93d
mov eax, dword [ebp - 0x58]
add eax, 1
je 0x40b942
add eax, eax
push eax
lea eax, [ebp - 0x68]
push eax
push esi
call fcn.004c2310
mov ecx, dword [ebp - 0x54]
add esp, 0xc
jmp 0x40b942
mov eax, dword [ebp - 0x68]
mov dword [esi], eax
mov eax, dword [ebp - 0x58]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412b06
mov esp, ebp
pop ebp
ret
Function at 0x40bbb0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x526060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
jne 0x40bbe5
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412b06
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40bc3b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [eax + eax]
lea eax, [ebp - 0x20c]
push str.ZhuanZhuan.exe
push eax
call fcn.004c6183
add esp, 8
test eax, eax
je 0x40bc38
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x40bc10
jmp 0x40bc3a
mov bl, 1
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
xor ecx, ebp
pop esi
call fcn.00412b06
mov esp, ebp
pop ebp
ret
Function at 0x40bc60
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6490
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x526060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test esi, esi
je 0x40bdbc
test edi, edi
je 0x40bdbc
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0x4ec880
push 1
push 0
push 0x4ec900
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40bdbc
mov eax, dword [ebp - 0x2c]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
js 0x40bdbc
mov eax, dword [ebp - 0x2c]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
js 0x40bdbc
mov eax, dword [ebp - 0x2c]
push 0
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
test eax, eax
js 0x40bdbc
push esi
lea ecx, [ebp - 0x28]
call fcn.00401be0
push 2
push 0xffffffffffffffff
push 0x516204
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0040c2b0
cmp eax, 0xffffffff
je 0x40bd62
push eax
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
call fcn.004074e0
mov edx, eax
mov byte [ebp - 4], 1
cmp dword [edx + 0x14], 8
jb 0x40bd46
mov edx, dword [edx]
mov eax, dword [ebp - 0x2c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.00401ba0
test esi, esi
js 0x40bdae
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x30], 0
push 0x4ec8b0
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
js 0x40bdae
mov eax, dword [ebp - 0x30]
push 0
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
js 0x40bdae
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [ebp - 0x28]
mov bl, 1
call fcn.00401ba0
mov al, bl
jmp 0x40bdbe
lea ecx, [ebp - 0x28]
xor bl, bl
call fcn.00401ba0
mov al, bl
jmp 0x40bdbe
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412b06
mov esp, ebp
pop ebp
ret
Function at 0x40bec0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x526060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x40bfcb
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40bee3
sub edx, ecx
sar edx, 1
je 0x40bfcb
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x40bf14
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412b06
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bf2a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x40bf03
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004c4090
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x20c]
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40bf96
test dx, dx
je 0x40bf92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40bf96
add eax, 4
add ecx, 4
test dx, dx
jne 0x40bf70
xor eax, eax
jmp 0x40bf9b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40bfcb
lea ecx, [ebp - 0x20c]
call fcn.0040bec0
test al, al
je 0x40bfcb
push esi
call fcn.004c9a28
add esp, 4
neg eax
sbb eax, eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412b06
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00412b06
mov esp, ebp
pop ebp
ret
Function at 0x40bfe0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e64d3
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x526060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
test ebx, ebx
jne 0x40c01b
mov al, 1
jmp 0x40c202
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebx], ax
jne 0x40c038
xor ecx, ecx
jmp 0x40c04f
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c040
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.00401d30
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40c1e9
lea ecx, [eax - 1]
cmp eax, ecx
ja 0x40c07c
push str.invalid_string_position
call fcn.0040c624
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2], 0x5c
je 0x40c09a
push 0x5c
push 1
lea ecx, [ebp - 0x28]
call fcn.0040c330
push 0x51620c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.00407c20
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40c0ba
mov eax, dword [eax]
lea ecx, [ebp - 0x278]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x294]
mov edi, eax
cmp ecx, 8
jb 0x40c0e8
inc ecx
push ecx
push dword [ebp - 0x2a8]
lea ecx, [ebp - 0x2a8]
call fcn.00401e90
xor eax, eax
mov dword [ebp - 0x294], 7
mov dword [ebp - 0x298], 0
mov word [ebp - 0x2a8], ax
cmp edi, 0xffffffff
jne 0x40c111
xor bl, bl
jmp 0x40c1eb
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop word [eax + eax]
test byte [ebp - 0x278], 0x10
lea eax, [ebp - 0x24c]
je 0x40c184
push 0x516214
push eax
call esi
test eax, eax
je 0x40c1c5
push 0x516218
lea eax, [ebp - 0x24c]
push eax
call esi
test eax, eax
je 0x40c1c5
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.00407c20
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x40c177
mov eax, dword [eax]
mov ecx, eax
call fcn.0040bfe0
mov byte [ebp - 4], 0
jmp 0x40c1a7
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.00407c20
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40c1a0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x27c]
cmp eax, 8
jb 0x40c1c5
inc eax
lea ecx, [ebp - 0x290]
push eax
push dword [ebp - 0x290]
call fcn.00401e90
lea eax, [ebp - 0x278]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c120
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov bl, 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x40c200
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00401e90
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412b06
mov esp, ebp
pop ebp
ret
Function at 0x40c220
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
mov edi, eax
push esi
mov dword [ebp - 8], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 1
push eax
push edi
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov dword [ebp - 4], eax
call edi
push 1
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
call esi
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push ebx
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push dword [ebp - 4]
test eax, eax
push dword [ebp - 8]
setne bl
call edi
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40fb83
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40fb91
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
shr eax, 4
and eax, 1
pop ebp
ret

Function at 0x40fbe1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40fbef
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret
Function at 0x40ff75
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x40ff89
xor eax, eax
pop ebp
ret
push edi
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
je 0x40ff9e
xor eax, eax
jmp 0x41007b
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push dword [edi + 0x50]
push dword [edi + 0x34]
call esi
mov ebx, eax
test ebx, ebx
jne 0x40ffd2
push 4
push 0x2000
push dword [edi + 0x50]
push eax
call esi
mov ebx, eax
test ebx, ebx
je 0x410077
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
push 4
push 0x1000
mov dword [esi + 4], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
push dword [edi + 0x50]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 0x54]
add eax, dword [ecx + 0x3c]
push eax
push ecx
push ebx
call fcn.004c3b10
mov ecx, dword [ebp + 8]
push esi
push edi
push ecx
mov eax, dword [ecx + 0x3c]
add eax, ebx
mov dword [esi], eax
mov dword [eax + 0x34], ebx
call fcn.0040fd14
mov eax, ebx
add esp, 0x18
sub eax, dword [edi + 0x34]
je 0x41003d
push eax
push esi
call fcn.0041007e
pop ecx
pop ecx
push esi
call fcn.0040fc00
pop ecx
test eax, eax
je 0x410070
push esi
call fcn.0040fdb6
mov eax, dword [esi]
pop ecx
mov eax, dword [eax + 0x28]
test eax, eax
je 0x41006c
add eax, ebx
je 0x410070
push 0
xor edi, edi
inc edi
push edi
push ebx
call eax
test eax, eax
je 0x410070
mov dword [esi + 0x10], edi
mov eax, esi
jmp 0x410079
push esi
call fcn.0040fe73
pop ecx
xor eax, eax
pop esi
pop ebx
pop edi
pop ebp
ret

Function at 0x4109aa
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4109d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4109d0
xor al, al
jmp 0x4109e4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x411c2f
Capabilities:
Create directory

Disassembly:
push 0x38
mov eax, 0x4e6c09
call fcn.00413396
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x411c4f
mov al, 1
jmp 0x411c97
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x411c60
xor al, al
jmp 0x411c97
lea ecx, [ebp - 0x44]
call fcn.00411da0
lea ecx, [ebp - 0x1c]
call fcn.004112e8
push ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.00411eab
test al, al
je 0x411c8c
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.0041310d
pop ecx
mov al, bl
call fcn.0041335f
ret

Function at 0x411cf1
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret
Function at 0x41241c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
pop ebp
ret