joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cc4f4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
push edx
push ecx
call fcn.004cc87e
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4cc68c
push 0x64
call fcn.004c795b
add esp, 4
mov dword [ebp - 4], eax
push 4
call fcn.004c795b
add esp, 4
mov dword [ebp - 0xc], eax
push 4
call fcn.004c795b
add esp, 4
mov esi, eax
push 0
push 0
push esi
call fcn.004c7b1e
add esp, 0xc
push 0x64
push 0
push dword [ebp - 0xc]
call fcn.004c7b1e
add esp, 0xc
push ebx
call fcn.004b2063
add esp, 4
mov ebx, eax
push dword [ebp - 0xc]
call fcn.004c79bd
add esp, 4
push eax
push dword [ebp - 4]
call fcn.004c79bd
add esp, 4
push eax
push esi
call fcn.004c79bd
add esp, 4
push eax
push 0
push ebx
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov edi, eax
push ebx
call fcn.004b32d4
add esp, 4
mov eax, edi
cmp eax, 0
jne 0x4cc67c
mov dword [ebp - 8], 0x506e50
push 0
push esi
call fcn.004c7b05
add esp, 8
mov edi, eax
mov eax, edi
cmp eax, 1
je 0x4cc5da
cmp eax, 3
je 0x4cc5da
cmp eax, 4
je 0x4cc633
jmp 0x4cc64e
mov esi, 0
push 0
push dword [ebp - 0xc]
call fcn.004c7b05
add esp, 8
sub eax, 1
mov ebx, eax
jmp 0x4cc62d
push esi
push dword [ebp - 4]
call fcn.004c7a8f
add esp, 8
cmp eax, 0
jne 0x4cc606
jmp 0x4cc631
push esi
push dword [ebp - 4]
call fcn.004c7a8f
add esp, 8
push eax
call fcn.004b13de
add esp, 4
push eax
push dword [ebp - 8]
call fcn.004b18ab
add esp, 8
mov dword [ebp - 8], eax
add esi, 1
cmp esi, ebx
jle 0x4cc5f3
jmp 0x4cc64e
push 0
push dword [ebp - 4]
call fcn.004c7b05
add esp, 8
push eax
call fcn.004b142a
add esp, 4
mov dword [ebp - 8], eax
jmp 0x4cc64e
cmp dword [ebp + 0x18], 0
je 0x4cc67a
push dword [ebp - 8]
push 0x506e6c
push edi
call fcn.004b142a
add esp, 4
push eax
call fcn.004b18ab
add esp, 8
push eax
call fcn.004b18ab
add esp, 8
mov dword [ebp - 8], eax
jmp 0x4cc681
mov dword [0x506e4c], eax
push dword [ebp - 0x10]
call fcn.004cc8f9
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x4cc691
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cc698
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push eax
push edx
call fcn.004cc87e
add esp, 8
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0xffffffff
je 0x4cc7a9
mov edi, 0x4fd3e0
mov eax, dword [ebp + 0x18]
cmp eax, 1
je 0x4cc6de
cmp eax, 3
je 0x4cc6de
cmp eax, 4
je 0x4cc72b
jmp 0x4cc750
mov eax, dword [ebp + 0x14]
push dword [eax + 8]
call fcn.004c795b
add esp, 4
mov edi, eax
mov esi, 1
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax + 8]
jmp 0x4cc725
push 1
push esi
push dword [ebp + 0x14]
call fcn.004cbdc4
add esp, 0xc
push eax
call fcn.004b1b32
add esp, 4
push eax
mov eax, esi
sub eax, 1
push eax
push edi
call fcn.004c7aa8
add esp, 0xc
add esi, 1
cmp esi, ebx
jle 0x4cc6fb
jmp 0x4cc750
push 4
call fcn.004c795b
add esp, 4
mov edi, eax
push dword [ebp + 0x14]
call fcn.004b1b98
add esp, 4
push eax
push 0
push edi
call fcn.004c7b1e
add esp, 0xc
jmp 0x4cc750
push dword [ebp + 0x10]
call fcn.004b2063
add esp, 4
mov ebx, eax
push edi
call fcn.004c7a01
add esp, 4
push eax
push edi
call fcn.004c79bd
add esp, 4
push eax
push dword [ebp + 0x18]
push 0
push ebx
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegSetValueExA
mov esi, eax
push ebx
call fcn.004b32d4
add esp, 4
cmp esi, 0
jne 0x4cc798
mov dword [ebp - 8], 1
jmp 0x4cc79e
mov dword [0x506e4c], esi
push dword [ebp - 4]
call fcn.004cc8f9
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x4cc7ae
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4de69c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp eax, 0
je 0x4de6ba
push 5
push dword [ebx + 0x80]
call sub.USER32.dll_ShowWindow
jmp 0x4de6f9
mov eax, dword [ebx + 0xc]
cmp eax, 0x4fd3e0
setne al
movzx eax, al
cmp eax, 0
je 0x4de6dc
call fcn.004d8050
push eax
push ebx
mov eax, dword [ebx]
call dword [eax + 0x34]
add esp, 8
cmp eax, 0
je 0x4de6ec
push dword [ebx + 0xc]
call fcn.004d8031
add esp, 4
push 0
push dword [ebx + 0x80]
call sub.USER32.dll_ShowWindow
mov eax, 0
jmp 0x4de700
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ea370
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, 0
push 0x10
call sub.USER32.dll_GetKeyState
and eax, 0x8000
cmp eax, 0
je 0x4ea38d
or ebx, 1
push 0x11
call sub.USER32.dll_GetKeyState
and eax, 0x8000
cmp eax, 0
je 0x4ea3a1
or ebx, 2
push 0x12
call sub.USER32.dll_GetKeyState
and eax, 0x8000
cmp eax, 0
je 0x4ea3b5
or ebx, 4
push 0x5b
call sub.USER32.dll_GetKeyState
and eax, 0x8000
cmp eax, 0
jne 0x4ea3d2
push 0x5c
call sub.USER32.dll_GetKeyState
and eax, 0x8000
cmp eax, 0
je 0x4ea3da
or ebx, 8
mov eax, ebx
jmp 0x4ea3de
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4eeea3
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
mov esi, 0x64
mov dword [ebp - 4], 0
add esi, 0x64
push esi
call fcn.004b32b0
add esp, 4
mov ebx, eax
lea eax, [ebp - 4]
push eax
push esi
push ebx
call sub.PSAPI.DLL_EnumProcesses
cmp eax, 0
jne 0x4eeee5
push ebx
call fcn.004b32d4
add esp, 4
mov eax, 0x4fb2f0
jmp 0x4eef23
cmp esi, dword [ebp - 4]
jle 0x4eeeb7
mov eax, dword [ebp - 4]
cdq
and edx, 3
add eax, edx
sar eax, 2
push eax
push 0x51ba62
call fcn.004b00a1
add esp, 8
mov esi, eax
push dword [ebp - 4]
push ebx
lea eax, [esi + 0x18]
push eax
call fcn.004b32fe
add esp, 0xc
push ebx
call fcn.004b32d4
add esp, 4
mov eax, esi
jmp 0x4eef23
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407c00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sal cl, cl
inc eax
add byte [esp + ebx*2 + 0xc], ah
or al, 0xaa
or al, 0xc
or al, 0xc
or al, 0xc
or al, 0xc
or al, 0xc
or al, 0xc
or al, 0xc
or al, 0xc
or al, 0xc
or al, 0xc
or al, 0xc
or al, 0xc
or al, 0xc
or al, 0x27
or al, 0xc
or al, 0xc
add dword [esp + ecx], ecx
or al, 0xc
or al, 0x2c
or al, 0xc
or al, 0xc
or al, 0xc
or al, 0xc
sbb dword [esi + 0x160c0c6e], ecx
or al, 0xc
or al, 0xc
mov al, byte [0xc0c4a0c]
add cl, byte [edi + 3]
or al, 0xc
cli
or al, 0xc
or al, 0xc
or al, 0xc
or al, 0xc
or al, 0x69
or al, 0xc
cmp byte [esp + ecx], al
or al, 0xc
or al, 0xc
lds ecx, [esp + ecx]
cmp eax, 0x206760c
add ah, byte [edx + 0xc]
jnp 0x407c7b
or al, 0xc
or al, 7
or byte [ecx], cl
imul ecx, dword [edx + ecx], 0xc
call 0x8d44888a
dec ecx
in al, 0xa2
jnp 0x407cc3
or al, 4
lea ecx, [ecx - 0x1c]
mov byte [0x8900407b], al
jns 0x407cc7
add byte [ecx + 0x26004079], cl
add byte [esi], ah
jp 0x407cfe
add byte [ebp + edx*8 - 0x1f], al
push esi
jg 0x407d02
or byte [eax], cl
or byte [eax], cl
lea ecx, [eax]
or byte [eax], cl
or byte [eax], cl
mov byte [0xfaa30808], al

Function at 0x40a3d0
Capabilities:
Terminate process

Disassembly:
push eax
mov eax, dword [eax]
push eax
call 0x3f56c0
pop ebp
push ebp
mov ebp, esp
stosd dword es:[edi], eax
inc ebp
or byte [ebx - 0x3faba7c0], cl
jg 0x40a410
mov ebp, dword [ebx]
or al, 0x51
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x40a40a
push esi
clc
add cl, byte [eax + eax*8]
inc eax
add bh, bh
salc
out 0xc0, al
fiadd dword [0x8c27a5e]
add bh, bh
salc
add eax, 0x18fc80
pop esi
dec edi
ret 8
xor eax, eax
pop ebp
jl 0x40a3ab
dec esi
add bh, dl
pop ebp
ret 8

Function at 0x40a430
Capabilities:
Encode data using xor

Disassembly:
invalid
push ebp
mov ebp, esp
cmp dword [0x4108f7], 0x14
jl 0x40a41c
jg 0x40a466
pop es
nop
nop
nop
nop
nop
not byte [eax + 0x68b49090]
sub byte [edi], al
inc ecx
add byte [edx + eax*4], bh
lodsb al, byte [esi]
rol byte [eax], 0x33
rol bl, 0x3c
nop
Function at 0x403360
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x403393
call fcn.00403340
test eax, eax
je 0x403393
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00403320
mov eax, dword [ebp - 8]
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x403400
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x403434
call fcn.00403340
cmp eax, 7
jb 0x403434
mov edx, 7
lea ecx, [ebp - 0x10]
call fcn.00403320
mov eax, dword [ebp - 0xc]
shr eax, 0x1d
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x403440
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x403473
call fcn.00403340
test eax, eax
je 0x403473
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00403320
mov eax, dword [ebp - 8]
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x403570
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x611064]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x4035b9
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4035b9
push 0xc00
call eax
test eax, eax
jne 0x40364e
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x40364e
cmp ecx, 0x104
ja 0x40364e
cmp word [ebp + ecx*2 - 0x2d6], 0x5c
je 0x4035f2
mov eax, 0x5c
mov word [ebp + ecx*2 - 0x2d4], ax
inc ecx
mov al, byte [str.userenv]
push esi
mov esi, str.userenv
test al, al
je 0x40364d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + ecx*2]
mov ecx, edi
inc esi
movzx eax, al
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
mov al, byte [esi]
inc esi
test al, al
jne 0x403615
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
mov al, byte [esi]
test al, al
jne 0x403612
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043c50c
mov esp, ebp
pop ebp
ret
Function at 0x408b30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x98
push 0
lea eax, [edi + 0x110]
push eax
call fcn.0043dc60
mov eax, dword [edi + 0x30]
add esp, 0xc
add eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x40], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x14], 0
lea esi, [eax + ecx]
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov ecx, 0xc
shr edx, 3
imul eax, edx, 0x54
mov edx, esi
sub edx, eax
mov eax, dword [edi + 0x18]
cmp eax, ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x44], edx
cmovb ecx, eax
mov dword [edi + 8], edx
not ecx
lea eax, [edx + 0x600]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x20], ecx
lea ecx, [esi - 0xc]
mov dword [edi + 0x38], eax
xor eax, eax
mov dword [edi + 0x3c], ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [ecx + 4], edx
add edx, 2
mov dword [ecx], 0x1010100
mov dword [ecx + 8], 0
mov byte [edx - 2], al
lea edx, [edx + 6]
xor ecx, ecx
mov byte [edx - 7], 1
inc eax
mov dword [edx - 6], ecx
cmp eax, 0x100
jb 0x408bc7
lea eax, [edi + 0x9fc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
nop word [eax + eax]
mov esi, eax
xor edi, edi
movzx eax, word [edi + 0x44d570]
lea ecx, [ebx + 2]
xor edx, edx
div ecx
mov ecx, 0x4000
sub ecx, eax
xor eax, eax
movzx ecx, cx
nop
mov word [esi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x408c10
add edi, 2
add esi, 2
cmp edi, 0x10
jb 0x408bf4
mov eax, dword [ebp - 4]
inc ebx
sub eax, 0xffffff80
mov dword [ebp - 4], eax
cmp ebx, 0x80
jb 0x408bf0
mov edi, dword [ebp + 8]
mov edx, 0x50
pop ebx
lea esi, [edi + 0x3bc]
nop dword [eax + eax]
mov eax, esi
mov ecx, 0x10
nop word [eax + eax]
mov word [eax], dx
lea eax, [eax + 4]
mov word [eax - 2], 0x403
sub ecx, 1
jne 0x408c60
add edx, 0x28
add esi, 0x40
cmp edx, 0x438
jb 0x408c50
mov dword [edi + 0x3b8], 0x40070000
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x409c30
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edx, dword [esi + 8]
and edx, 0x3f
mov byte [edx + esi + 0x40], 0x80
inc edx
cmp edx, 0x38
jbe 0x409c7b
cmp edx, 0x40
je 0x409c67
mov eax, 0x40
lea ecx, [esi + 0x40]
sub eax, edx
add ecx, edx
push eax
push 0
push ecx
call fcn.0043dc60
add esp, 0xc
mov eax, dword [esi]
lea edi, [esi + 0x40]
lea ebx, [esi + 0x20]
mov edx, edi
push 1
mov ecx, ebx
call eax
xor edx, edx
jmp 0x409c81
lea edi, [esi + 0x40]
lea ebx, [esi + 0x20]
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call fcn.0043dc60
mov ecx, dword [esi + 8]
add esp, 0xc
mov eax, dword [esi + 0xc]
mov edx, edi
shld eax, ecx, 3
shl ecx, 3
bswap eax
bswap ecx
mov dword [esi + 0x78], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], ecx
mov ecx, ebx
push 1
call eax
mov edi, dword [ebp + 0xc]
mov edx, ebx
mov ebx, 4
mov ecx, dword [edx + 4]
lea edi, [edi + 8]
mov eax, dword [edx]
lea edx, [edx + 8]
bswap eax
mov dword [edi - 8], eax
bswap ecx
mov dword [edi - 4], ecx
sub ebx, 1
jne 0x409cc4
pop edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebx
pop ebp
ret 8

Function at 0x409d30
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [0x611034]
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
pop ebp
ret 4

Function at 0x40a4e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.004405b7
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x40a50d
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40da80
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push dword [ebp + 0x10]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push 0x2002
call fcn.00411390
test al, al
jne 0x40dab3
lea ecx, [ebp - 4]
xor bl, bl
call fcn.004113c0
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
mov edi, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40db03
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.0043d6e0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x40db03
pop edi
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
mov bl, 1
call fcn.004113c0
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
lea ecx, [ebp - 4]
xor bl, bl
call fcn.004113c0
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40db20
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4496ad
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x611064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne al
mov byte [ebp + 0xb], al
test al, al
je 0x40dc05
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x40dc02
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
lea eax, [eax*2 + 2]
push eax
push dword [esi]
push 0xd
call fcn.0040da80
push 0
mov bl, al
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.0040cb80
mov ecx, dword [ebp - 0x14]
inc ecx
mov byte [ebp - 4], 1
push ecx
push dword [ebp - 0x18]
push 1
call fcn.0040da80
mov edi, 1
movzx ebx, bl
push edi
test al, al
lea eax, [ebp - 0x24]
push esi
push eax
cmovne ebx, edi
call fcn.0040cb80
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040b060
push dword [ebp - 0x24]
call fcn.0043c74c
mov eax, dword [ebp - 0x14]
add esp, 4
inc eax
push eax
push dword [ebp - 0x18]
push 7
call fcn.0040da80
push dword [ebp - 0x18]
test al, al
movzx ebx, bl
cmovne ebx, edi
call fcn.0043c74c
add esp, 4
jmp 0x40dc0b
mov al, byte [ebp + 0xb]
xor bl, bl
test al, al
je 0x40dc11
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40ecb0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x614c98], 0
jne 0x40ece8
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040c750
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043c74c
add esp, 4
test esi, esi
pop esi
jmp 0x40ecf5
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40ecff
mov al, 1
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4

Function at 0x40ed10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040feb0
cmp eax, 0xffffffff
je 0x40ed3d
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x40ed3d
and eax, 0xfffffffe
push eax
push esi
call fcn.0040f1d0
test al, al
je 0x40ed7c
cmp byte [0x614c98], 0
push esi
jne 0x40ed69
lea eax, [ebp - 0xc]
push eax
call fcn.0040c750
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043c74c
add esp, 4
test esi, esi
jmp 0x40ed71
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40ed7c
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40ed90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44984b
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x611064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [edi]
mov dword [edi + 4], 0
mov word [eax], cx
cmp byte [0x614c98], cl
jne 0x40ee3c
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], cl
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40ef18
cmp eax, 0x114
jae 0x40ef18
lea eax, [ebp - 0x128]
mov byte [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x36c]
push eax
call fcn.0040c720
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.0040b130
push dword [ebp - 0x36c]
call fcn.0043c74c
add esp, 4
mov al, 1
jmp 0x40ef1a
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test esi, esi
je 0x40ef18
cmp esi, 0x114
jae 0x40ee87
xor eax, eax
mov ecx, edi
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x354]
push eax
call fcn.0040b2b0
mov al, 1
jmp 0x40ef1a
lea ecx, [ebp - 0x360]
call fcn.0040b030
mov dword [ebp - 4], 1
cmp esi, dword [ebp - 0x358]
jbe 0x40eead
push esi
lea ecx, [ebp - 0x360]
call fcn.0040beb0
push dword [ebp - 0x360]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, eax
test edx, edx
je 0x40ef0a
mov ecx, dword [ebp - 0x360]
xor eax, eax
mov word [ecx + esi*2], ax
cmp word [ecx], ax
je 0x40eed9
inc eax
cmp word [ecx + eax*2], 0
jne 0x40eed1
mov dword [ebp - 0x35c], eax
cmp eax, edx
jne 0x40ef0a
lea eax, [esi - 1]
cmp eax, edx
jne 0x40ef0a
lea eax, [ebp - 0x360]
mov ecx, edi
push eax
call fcn.0040b130
push dword [ebp - 0x360]
call fcn.0043c74c
add esp, 4
mov al, 1
jmp 0x40ef1a
push dword [ebp - 0x360]
call fcn.0043c74c
add esp, 4
xor al, al
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.0043c50c
mov esp, ebp
pop ebp
ret 4

Function at 0x40f050
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4496dd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x611064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x614c98], 0
push dword [ebp + 0xc]
jne 0x40f0c3
lea eax, [ebp - 0x24]
push eax
call fcn.0040c750
mov esi, eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
call fcn.0040c750
push dword [esi]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0043c74c
push dword [ebp - 0x24]
call fcn.0043c74c
add esp, 8
test esi, esi
jmp 0x40f0ce
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40f0e4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40f100
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x614c98], 0
jne 0x40f136
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040c750
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043c74c
add esp, 4
test esi, esi
pop esi
jmp 0x40f141
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40f14b
mov al, 1
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4

Function at 0x40f1d0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x614c98], 0
jne 0x40f209
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040c750
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043c74c
add esp, 4
test esi, esi
pop esi
jmp 0x40f217
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40f221
mov al, 1
mov esp, ebp
pop ebp
ret 8
xor al, al
mov esp, ebp
pop ebp
ret 8

Function at 0x40f230
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0xc
mov eax, ecx
push esi
mov esi, ecx
and esi, 0x3fff
and eax, 0xf0000000
cmove esi, ecx
cmp byte [0x614c98], 0
jne 0x40f284
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040c750
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043c74c
add esp, 4
test esi, esi
je 0x40f29b
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40f29b
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x614c98], 0
jne 0x40feea
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040c750
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043c74c
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 4