joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b69cc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00499478
and dword [ebp - 4], 0
cmp dword [0x51211c], 0
mov ebx, eax
jne 0x4b6a7d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4b6b2e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4b6b2e
push eax
call fcn.00499406
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x51211c], eax
call esi
push eax
call fcn.00499406
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x512120], eax
call esi
push eax
call fcn.00499406
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x512124], eax
call esi
push eax
call fcn.00499406
pop ecx
mov dword [0x51212c], eax
test eax, eax
je 0x4b6a7d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00499406
pop ecx
mov dword [0x512128], eax
mov eax, dword [0x512128]
cmp eax, ebx
je 0x4b6ad5
cmp dword [0x51212c], ebx
je 0x4b6ad5
push eax
call fcn.00499481
push dword [0x51212c]
mov esi, eax
call fcn.00499481
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4b6ad5
test edi, edi
je 0x4b6ad5
call esi
test eax, eax
je 0x4b6acc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4b6acc
test byte [ebp - 0xc], 1
jne 0x4b6ad5
or dword [ebp + 0x10], 0x200000
jmp 0x4b6b0e
mov eax, dword [0x512120]
cmp eax, ebx
je 0x4b6b0e
push eax
call fcn.00499481
pop ecx
test eax, eax
je 0x4b6b0e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4b6b0e
mov eax, dword [0x512124]
cmp eax, ebx
je 0x4b6b0e
push eax
call fcn.00499481
pop ecx
test eax, eax
je 0x4b6b0e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x51211c]
call fcn.00499481
pop ecx
test eax, eax
je 0x4b6b2e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4b6b30
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408898
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42b7a4], 0
push ebp
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
je 0x4088b5
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
jmp 0x4088e3
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
and eax, 1
neg eax
shr esi, 1
and eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x4088be
mov dword [ecx*4 + 0x42b7a0], eax
inc ecx
cmp ecx, 0x100
jne 0x4088b7
jmp 0x4088a9
cmp edx, ebx
je 0x4088fc
inc edx
mov cl, al
shr eax, 8
xor cl, byte [edx - 1]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42b7a0]
jmp 0x4088e3
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0x43f15a
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [pe_dos_header]
mov eax, dword ds:[eax + 0x34]
mov ebp, dword ds:[eax + 0xb8]
jmp 0x43f168
push eax
push ecx
push esi
push ebp
mov eax, dword fs:[0x30]
test eax, eax
js 0x43f14a
mov eax, dword ds:[eax + 0xc]
mov esi, dword ds:[eax + 0x1c]
lodsd eax, dword [esi]
mov ebp, dword ds:[eax + 8]
mov dword [ebx + 0x60], ebp
mov eax, ebp
cmp word [eax], 0x5a4d
jne 0x43f145
add eax, 0x3c
mov ecx, dword [eax]
add ecx, dword [ebx + 0x60]
cmp word [ecx], 0x4550
jne 0x43f145
add ecx, 0x78
mov esi, dword [ecx]
add esi, dword [ebx + 0x60]
add esi, 0x18
lodsd eax, dword [esi]
mov dword [ebx + 0x64], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x68], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x6c], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x70], eax
pop ebp
pop esi
pop ecx
pop eax
ret
Function at 0x4056a7
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
shr edi, 2
xor ebx, ebx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
mov ecx, ebx
add eax, 3
mov dword [esi], eax
add esi, 0x10
test edi, edi
je 0x4056de
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x4056d1
mov edx, dword [esi + edi*4 - 4]
imul eax, edi, 0xc
add eax, 0x70
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jne 0x40574c
movzx eax, dl
mov ebx, dword [ebp - 4]
push 0x1b
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
xor edx, ebx
add ebx, ebx
or edx, ecx
test ebx, 0x100
pop eax
cmovne ebx, eax
mov dword [ebp - 4], ebx
mov ebx, edi
jmp 0x405799
cmp ebx, 4
jne 0x40579c
cmp edi, 6
jbe 0x40579c
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
or edx, ecx
mov eax, dword [ebp + 8]
xor edx, dword [esi]
dec ebx
mov dword [esi + edi*4], edx
add esi, 4
cmp esi, eax
jne 0x4056ed
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x406756
Capabilities:
Check os version

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

Function at 0x40684e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x40686f
lea ecx, [ebp - 0x10]
call fcn.00406831
test eax, eax
je 0x40686f
mov eax, dword [ebp - 8]
leave
ret
xor eax, eax
leave
ret
Function at 0x406a4d
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x5302c4]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x406a96
push str.SetDefaultDllDirectories
push 0x4adc90
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406a96
push 0xc00
call eax
test eax, eax
jne 0x406b32
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x406b32
cmp eax, 0x104
ja 0x406b32
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x406acd
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
mov cl, byte [str.userenv]
push esi
mov esi, str.userenv
test cl, cl
je 0x406b31
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov edx, edi
inc esi
movzx eax, cl
mov cl, byte [esi]
inc esi
mov word [edx], ax
lea edx, [edx + 2]
test cl, cl
jne 0x406aee
push 0x2e
pop eax
push 0x64
mov word [edx], ax
pop eax
mov word [edx + 2], ax
xor eax, eax
push 8
push eax
mov word [edx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov word [edx + 4], bx
mov word [edx + 6], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov cl, byte [esi]
test cl, cl
jne 0x406aeb
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457b1d
leave
ret
Function at 0x40a301
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
xor edx, edx
xor eax, eax
push ebx
push esi
mov esi, ecx
inc eax
push edi
push 0x20
pop ecx
or dword [esi + 0x90], 0xffffffff
or dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [ebp - 4], esi
cmova eax, ecx
mov dword [esi + 0x78], edx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], edx
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [esi + 0x70], edx
mov dword [esi + 0x88], edx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x80], edx
mov dword [esi + 0x84], edx
mov dword [esi + 0x58], edx
cmp eax, dword [esi + 0x20]
je 0x40a3b5
lea edi, [esi + 0xc8]
mov ebx, ecx
cmp dword [edi + 8], edx
je 0x40a390
mov ecx, edi
call fcn.0040a2dd
xor edx, edx
add edi, 0x28
sub ebx, 1
jne 0x40a382
mov edx, dword [esi + 0x5c]
test edx, edx
je 0x40a3ae
mov eax, dword [esi + 0x14]
mov ecx, eax
call dword [eax + 4]
xor edx, edx
mov dword [esi + 0x5c], edx
jmp 0x40a3b0
xor edx, edx
mov eax, dword [esi]
mov dword [esi + 0x20], eax
mov ecx, dword [esi + 0x58]
mov eax, dword [esi + 0x10]
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], edx
lea eax, [ecx + 5]
mov dword [esi + 0xa0], edx
imul ebx, eax, 0x28
lea eax, [ecx + 1]
mov dword [esi + 0xa4], edx
mov dword [esi + 0xa8], edx
mov dword [esi + 0xac], edx
mov dword [esi + 0x24], edx
add ebx, esi
mov dword [esi + 0x28], edx
mov ecx, ebx
mov dword [esi + 0x58], eax
call fcn.0040a2c0
mov edi, eax
test edi, edi
jne 0x40a447
lea ecx, [ebx + 0x20]
call fcn.0040d19c
mov edi, eax
test edi, edi
jne 0x40a447
lea ecx, [ebx + 0x1c]
call fcn.0040d19c
mov edi, eax
test edi, edi
jne 0x40a447
push ebx
call fcn.0040b350
mov edi, eax
test edi, edi
je 0x40a447
and dword [esi + 0x44], 0
lea ebx, [esi + 0xc8]
push 0x20
pop esi
mov ecx, ebx
call fcn.0040a289
add ebx, 0x28
sub esi, 1
jne 0x40a435
mov esi, dword [ebp - 4]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x40a45b
mov dword [esi + 0x40], eax
xor edx, edx
cmp dword [esi + 0x38], edx
jne 0x40a46f
cmp dword [esi + 0x40], edx
jne 0x40a46f
cmp dword [esi + 0x3c], edx
jne 0x40a46f
mov dword [esi + 0x44], edx
xor ecx, ecx
cmp dword [esi + 0x44], edx
pop edi
pop esi
cmovne eax, ecx
pop ebx
leave
ret
Function at 0x40cc02
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
push 0x38
pop eax
mov ecx, dword [esi + 8]
and ecx, 0x3f
mov byte [ecx + esi + 0x40], 0x80
inc ecx
cmp ecx, eax
jbe 0x40cc49
push 0x40
pop edx
cmp ecx, edx
je 0x40cc36
sub edx, ecx
lea eax, [esi + 0x40]
push edx
add eax, ecx
push 0
push eax
call fcn.0045a040
add esp, 0xc
lea edi, [esi + 0x20]
lea edx, [esi + 0x40]
mov ecx, edi
push 1
call dword [esi]
push 0x38
xor ecx, ecx
pop eax
jmp 0x40cc4c
lea edi, [esi + 0x20]
sub eax, ecx
push eax
lea eax, [esi + 0x40]
add eax, ecx
push 0
push eax
call fcn.0045a040
mov ecx, dword [esi + 8]
lea edx, [esi + 0x40]
mov eax, dword [esi + 0xc]
add esp, 0xc
shld eax, ecx, 3
shl ecx, 3
bswap ecx
bswap eax
mov dword [esi + 0x7c], ecx
mov ecx, edi
push 1
mov dword [esi + 0x78], eax
call dword [esi]
push 4
pop edx
mov ecx, dword [edi + 4]
mov eax, dword [edi]
lea edi, [edi + 8]
bswap eax
mov dword [ebx], eax
lea ebx, [ebx + 8]
bswap ecx
mov dword [ebx - 4], ecx
sub edx, 1
jne 0x40cc82
pop edi
mov ecx, esi
pop esi
pop ebx
jmp 0x40ccb1

Function at 0x40cca5
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [section..data]
mov dword [ecx], eax
jmp 0x40ccb1
and dword [ecx + 8], 0
and 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
ret

Function at 0x40d2a1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push dword [ebp + 8]
mov esi, ecx
push edx
push edi
push edi
call fcn.004675bf
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x40d2cb
call fcn.0040d1b0
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x412f5d
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push dword [ebp + 8]
mov dword [ebp - 8], ecx
xor ebx, ebx
push 0x2002
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
mov edi, edx
call fcn.00416145
test al, al
je 0x412fbb
push esi
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x412fba
push dword [ebp + 8]
push edi
push eax
call fcn.00459ac0
add esp, 0xc
push esi
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 0x412fba
mov dword [ebp - 4], ebx
mov bl, 1
pop esi
lea ecx, [ebp - 4]
call fcn.00416168
pop edi
mov al, bl
pop ebx
leave
ret 4
Function at 0x413f02
Capabilities:
Create directory

Disassembly:
push 0x38
mov eax, 0x4a2f9b
call fcn.00457e12
mov esi, ecx
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x413f22
mov al, 1
jmp 0x413f68
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x413f33
xor al, al
jmp 0x413f68
lea ecx, [ebp - 0x44]
call fcn.004147d8
lea ecx, [ebp - 0x1c]
call fcn.0040e1b3
push ebx
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.00414a2f
test al, al
je 0x413f5d
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.00457dcd
pop ecx
mov al, bl
call fcn.00457de0
ret

Function at 0x414192
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, ecx
call fcn.00414ff4
cmp eax, 0xffffffff
je 0x4141ba
test al, 0x10
jne 0x4141ba
test al, 1
je 0x4141ba
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4141ba
xor al, al
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
pop esi
setne al
ret
Function at 0x414532
Capabilities:
Set file attributes

Disassembly:
push 0x94
mov eax, 0x4a30b2
call fcn.00457e12
mov esi, ecx
mov dword [ebp - 0x30], esi
lea ecx, [ebp - 0xa0]
call fcn.004147d8
lea ecx, [ebp - 0x78]
call fcn.0040e1b3
and dword [ebp - 4], 0
lea ecx, [ebp - 0xa0]
push 0
push dword [esi]
call fcn.00414a2f
test al, al
je 0x414587
mov ebx, dword [ebp - 0x80]
mov eax, ebx
shr eax, 4
test al, 1
jne 0x414598
push 0x10b
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x78]
call fcn.00457dcd
pop ecx
xor al, al
call fcn.00457de0
ret
push dword [ebp - 0x78]
or dword [ebp - 4], 0xffffffff
shr ebx, 0xa
call fcn.00457dcd
pop ecx
and bl, 1
jne 0x4146d4
push esi
lea ecx, [ebp - 0x18]
call fcn.0040e09e
push 0x5c
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call fcn.0040d412
mov eax, dword [ebp - 0x14]
or dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0040e1b3
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x28]
call fcn.004152bc
lea ecx, [ebp - 0x68]
call fcn.004147d8
lea ecx, [ebp - 0x40]
call fcn.0040e1b3
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x28]
xor edi, edi
call fcn.004151b1
test al, al
je 0x4146b1
mov esi, dword [ebp - 0x2c]
cmp esi, dword [ebp - 0x14]
jae 0x41462f
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebp - 0x14], esi
mov word [eax + esi*2], cx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040e76f
mov eax, dword [ebp - 0x48]
shr eax, 4
test al, 1
je 0x41465b
lea ecx, [ebp - 0x18]
call fcn.00414532
test al, al
jne 0x414671
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov bl, 1
jmp 0x41466f
mov ecx, dword [ebp - 0x18]
call fcn.00414192
test al, al
jne 0x414671
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
mov edi, eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x28]
call fcn.004151b1
test al, al
jne 0x41461e
mov esi, dword [ebp - 0x30]
test bl, bl
je 0x4146b1
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x40]
call fcn.00457dcd
push dword [ebp - 0x24]
call fcn.00457dcd
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
call fcn.0041481d
push dword [ebp - 0x18]
jmp 0x41458a
push dword [ebp - 0x40]
call fcn.00457dcd
push dword [ebp - 0x24]
call fcn.00457dcd
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
call fcn.0041481d
push dword [ebp - 0x18]
call fcn.00457dcd
pop ecx
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x414590
mov ecx, dword [esi]
call fcn.00414525
jmp 0x414592

Function at 0x41474a
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x414758
Capabilities:
Set file attributes

Disassembly:
push esi
mov esi, edx
and esi, 0x3fff
test edx, 0xf0000000
cmove esi, edx
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
pop esi
setne al
ret

Function at 0x414ff4
Capabilities:
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
ret
Function at 0x4150df
Capabilities:
Get disk information

Disassembly:
push 0x24
mov eax, 0x4a3213
call fcn.00457e12
mov eax, ecx
mov dword [ebp - 0x14], eax
call fcn.0040d512
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x41510f
xor al, al
jmp 0x4151ab
push edi
lea ecx, [ebp - 0x20]
call fcn.00413056
mov esi, dword [ebp - 0x20]
push esi
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x4151a2
cmp edi, dword [ebp - 0x1c]
ja 0x4151a2
lea ecx, [ebp - 0x30]
call fcn.0040e1b3
mov byte [ebp - 4], 1
mov edx, ebx
mov dword [ebp - 0x1c], edx
mov eax, ebx
test edi, edi
je 0x415194
push 2
pop ecx
mov dword [ebp - 0x10], ecx
inc eax
mov dword [ebp - 0x18], eax
cmp word [esi + ecx - 2], bx
jne 0x415187
lea eax, [edx + esi]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040e483
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
call fcn.0040d842
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x30]
push eax
call fcn.0040d4ce
mov ecx, dword [ebp - 0x10]
mov edx, ecx
mov eax, dword [ebp - 0x18]
add ecx, 2
mov dword [ebp - 0x10], ecx
cmp eax, edi
jb 0x41514e
mov edx, dword [ebp - 0x1c]
push dword [ebp - 0x30]
cmp edx, edi
sete bl
call fcn.00457dcd
pop ecx
push esi
call fcn.00457dcd
pop ecx
mov al, bl
call fcn.00457de0
ret

Function at 0x41537f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4153a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4153a9
xor al, al
jmp 0x4153bd
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
leave
ret 4
Function at 0x42146f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
test esi, esi
je 0x421482
mov dword [esi], edi
test eax, eax
je 0x4214c5
push edi
lea ecx, [ebp + 0x10]
push ecx
mov ecx, 0x8000
cmp eax, ecx
cmovae eax, ecx
push eax
push dword [ebp + 0xc]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
add dword [ecx + 8], edx
adc dword [ecx + 0xc], edi
test esi, esi
je 0x4214ba
add dword [esi], edx
test eax, eax
jne 0x4214c5
call fcn.00420edd
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x42a186
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4d95
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x5302c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0xa8]
call fcn.0042a238
lea ecx, [esi + 0x78]
call fcn.0042a238
push dword [esi + 0x30]
call fcn.00457dcd
push dword [esi + 0x24]
call fcn.00457dcd
push dword [esi + 0x18]
call fcn.00457dcd
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x42a1ea
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 8]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x42a1fe
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 4]
mov dword [ebp - 4], 2
test ecx, ecx
je 0x42a212
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x42a225
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret

Function at 0x42a295
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4dcf
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x5302c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0042e0fa
lea ecx, [esi + 0x30]
call fcn.0042a238
push dword [esi + 0x24]
call fcn.00457dcd
pop ecx
lea ecx, [esi + 0xc]
call fcn.0040d395
mov ecx, esi
call fcn.0042a143
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret
Function at 0x42f730
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x11
mov esi, ecx
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, dword [ebp + 8]
shr eax, 0xf
and al, 1
movzx ecx, word [edx + 0xc]
mov edx, ecx
cmp edx, 8
je 0x42f775
cmp edx, 0x52
je 0x42f764
cmp ecx, 0x76
jne 0x42f771
mov ecx, esi
call fcn.0042f1c8
jmp 0x42f77c
test al, al
je 0x42f771
mov ecx, esi
call fcn.00430001
jmp 0x42f77c
xor al, al
jmp 0x42f77e
mov ecx, esi
call fcn.0042fa12
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x431440
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, ecx
push edi
lea eax, [ebx + 0x10]
push eax
push 0x64
push 0x66
call fcn.00431540
lea eax, [ebx + 0x38]
mov ecx, ebx
push eax
push 0x65
push 0x67
call fcn.00431540
mov ecx, ebx
call fcn.004135ab
cmp byte [ebx + 9], 0
lea edi, [ebx + 4]
jne 0x4314ad
push 0x1b8
push dword [edi]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call esi
push 0x1b9
push dword [edi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call esi
push 0xdb1
push dword [edi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call esi
cmp byte [ebx + 0xa], 0
je 0x4314d9
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 7
push 0x401
push dword [edi]
call esi
push 7
push dword [edi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push eax
push 0x28
push dword [edi]
call esi
pop edi
pop esi
mov al, 1
pop ebx
ret