joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409c41
Capabilities:
Execute shellcode via indirect call
Get disk information
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Resolve function by parsing pe exports
Spawn thread to rwx shellcode
Terminate process

Disassembly:
adc byte [ebx - 0x74acf7b3], cl
or byte [ebx], cl
mov eax, dword [0x18]
add eax, 0x49b762e

Function at 0x40a2fc
Capabilities:
Execute shellcode via indirect call
Get disk information
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Resolve function by parsing pe exports
Spawn thread to rwx shellcode
Terminate process

Disassembly:
cmp dword [ebp + 8], edi
ja 0x40a2ef
push ebp
xor eax, 0x761a04b0
push ebp
add al, 0x1a
jbe 0x40a358
cld
push esi
adc al, 0x89
ror byte [ecx], 1
nop
nop
cmc
mov edi, edi
ja 0x40a2ff
nop
push es
mov edi, edi
nop
dec esp
nop
loopne 0x40a2ea

Function at 0x40a364
Capabilities:
Execute shellcode via indirect call
Get disk information
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Parse pe header
Resolve function by parsing pe exports
Spawn thread to rwx shellcode
Terminate process

Disassembly:
sal byte [esi - 0x24], 0x2e
jbe 0x402d97
jbe 0x402d47
sbb dh, byte [ebp + 0x2d]
nop
pop edx
jne 0x402d9d
ja 0x402ddf
cmp al, 0x89
nop
add eax, dword [eax]
and al, 0xf
test byte [ebx - 0x3e], bh
jnp 0x402d5b
lea ebp, [eax - 1]
nop
cmp esi, eax
loopne 0x402d84
sub eax, 0x2dbab276
mov edx, 0x59905590
jbe 0x40a3b5
nop
add byte [eax], al
xor dword [ebp - 4], eax
or dword [edx], ebx
pop edi
or byte [edi + ecx], al
sbb eax, 0x1dcb2876
mov ebp, esp
and dword [ebp - 4], edi
push edi
xor dl, byte [edx]
jne 0x402d99
or byte [edi], 0x84
nop
mov word [di], gs
and al, 0x57

Function at 0x40a50f
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Execute shellcode via indirect call
Get disk information
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Resolve function by parsing pe exports
Spawn thread to rwx shellcode
Terminate process

Disassembly:
sub ebp, dword [esi]
push ebp
and byte [edi + 0x77], dl
add dword [esi], ebp
jmp 0x40a351
Function at 0x4046c2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test ecx, ecx
je 0x4046f4
test dl, 3
je 0x4046f1
movzx eax, byte [edx]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [edi + eax*4]
inc edx
sub ecx, 1
jne 0x4046d8
mov dword [ebp - 4], edx
lea eax, [edx + ecx]
mov esi, eax
mov dword [ebp + 0xc], esi
cmp ecx, 0xc
jb 0x4047d6
sub eax, 0xc
mov dword [ebp + 8], eax
xor ebx, dword [edx]
mov edx, dword [edx + 4]
mov eax, edx
shr eax, 8
movzx ecx, al
mov eax, edx
shr eax, 0x10
movzx eax, al
mov esi, dword [edi + ecx*4 + 0x1800]
xor esi, dword [edi + eax*4 + 0x1400]
mov eax, edx
shr eax, 0x18
xor esi, dword [edi + eax*4 + 0x1000]
movzx eax, dl
mov edx, dword [ebp - 4]
xor esi, dword [edi + eax*4 + 0x1c00]
mov eax, ebx
mov edx, dword [edx + 8]
shr eax, 8
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov ecx, dword [edi + ecx*4 + 0x2800]
xor ecx, dword [edi + eax*4 + 0x2400]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [edi + eax*4 + 0x800]
mov eax, edx
shr eax, 0x10
movzx eax, al
xor ecx, dword [edi + eax*4 + 0x400]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [edi + eax*4 + 0x2000]
movzx eax, bl
xor ecx, dword [edi + eax*4 + 0x2c00]
movzx eax, dl
shr edx, 0x18
xor ecx, dword [edi + eax*4 + 0xc00]
xor ecx, dword [edi + edx*4]
mov edx, dword [ebp - 4]
xor ecx, esi
add edx, 0xc
mov ebx, ecx
mov dword [ebp - 4], edx
cmp edx, dword [ebp + 8]
jbe 0x40470b
mov esi, dword [ebp + 0xc]
jmp 0x4047d6
movzx eax, byte [edx]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [edi + eax*4]
inc edx
cmp edx, esi
jb 0x4047c7
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x40566a
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 0x4056a1
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x405694
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 0x40570f
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 0x40575c
cmp ebx, 4
jne 0x40575f
cmp edi, 6
jbe 0x40575f
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 0x4056b0
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4069f1
Capabilities:
Check os version

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

Function at 0x406ae9
Capabilities:
Check os version

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x5312c0]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x406d31
push str.SetDefaultDllDirectories
push 0x4aecd0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406d31
push 0xc00
call eax
test eax, eax
jne 0x406dcd
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x406dcd
cmp eax, 0x104
ja 0x406dcd
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x406d68
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
mov cl, byte [str.userenv]
push esi
mov esi, str.userenv
test cl, cl
je 0x406dcc
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 0x406d89
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 0x406d86
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004585e5
leave
ret
Function at 0x40a559
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 0x40a60d
lea edi, [esi + 0xc8]
mov ebx, ecx
cmp dword [edi + 8], edx
je 0x40a5e8
mov ecx, edi
call fcn.0040a535
xor edx, edx
add edi, 0x28
sub ebx, 1
jne 0x40a5da
mov edx, dword [esi + 0x5c]
test edx, edx
je 0x40a606
mov eax, dword [esi + 0x14]
mov ecx, eax
call dword [eax + 4]
xor edx, edx
mov dword [esi + 0x5c], edx
jmp 0x40a608
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.0040a518
mov edi, eax
test edi, edi
jne 0x40a69f
lea ecx, [ebx + 0x20]
call fcn.0040d41e
mov edi, eax
test edi, edi
jne 0x40a69f
lea ecx, [ebx + 0x1c]
call fcn.0040d41e
mov edi, eax
test edi, edi
jne 0x40a69f
push ebx
call fcn.0040b5bb
mov edi, eax
test edi, edi
je 0x40a69f
and dword [esi + 0x44], 0
lea ebx, [esi + 0xc8]
push 0x20
pop esi
mov ecx, ebx
call fcn.0040a4e1
add ebx, 0x28
sub esi, 1
jne 0x40a68d
mov esi, dword [ebp - 4]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x40a6b3
mov dword [esi + 0x40], eax
xor edx, edx
cmp dword [esi + 0x38], edx
jne 0x40a6c7
cmp dword [esi + 0x40], edx
jne 0x40a6c7
cmp dword [esi + 0x3c], edx
jne 0x40a6c7
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 0x40ce84
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 0x40cecb
push 0x40
pop edx
cmp ecx, edx
je 0x40ceb8
sub edx, ecx
lea eax, [esi + 0x40]
push edx
add eax, ecx
push 0
push eax
call fcn.0045a9f0
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 0x40cece
lea edi, [esi + 0x20]
sub eax, ecx
push eax
lea eax, [esi + 0x40]
add eax, ecx
push 0
push eax
call fcn.0045a9f0
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 0x40cf04
pop edi
mov ecx, esi
pop esi
pop ebx
jmp 0x40cf33

Function at 0x40cf27
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [section..data]
mov dword [ecx], eax
jmp 0x40cf33
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 0x40d523
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.004680df
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x40d54d
call fcn.0040d432
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x413409
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.00416668
test al, al
je 0x413467
push esi
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x413466
push dword [ebp + 8]
push edi
push eax
call fcn.0045a470
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 0x413466
mov dword [ebp - 4], ebx
mov bl, 1
pop esi
lea ecx, [ebp - 4]
call fcn.0041668b
pop edi
mov al, bl
pop ebx
leave
ret 4
Function at 0x4143ae
Capabilities:
Create directory

Disassembly:
push 0x38
mov eax, 0x4a3acd
call fcn.004588e2
mov esi, ecx
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4143ce
mov al, 1
jmp 0x414414
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4143df
xor al, al
jmp 0x414414
lea ecx, [ebp - 0x44]
call fcn.00414c57
lea ecx, [ebp - 0x1c]
call fcn.0040e446
push ebx
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.00414eae
test al, al
je 0x414409
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.0045889d
pop ecx
mov al, bl
call fcn.004588b0
ret

Function at 0x414640
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, ecx
call fcn.0041546b
cmp eax, 0xffffffff
je 0x414668
test al, 0x10
jne 0x414668
test al, 1
je 0x414668
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x414668
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 0x4149b3
Capabilities:
Set file attributes

Disassembly:
push 0x94
mov eax, 0x4a3be4
call fcn.004588e2
mov esi, ecx
mov dword [ebp - 0x30], esi
lea ecx, [ebp - 0xa0]
call fcn.00414c57
lea ecx, [ebp - 0x78]
call fcn.0040e446
and dword [ebp - 4], 0
lea ecx, [ebp - 0xa0]
push 0
push dword [esi]
call fcn.00414eae
test al, al
je 0x414a08
mov ebx, dword [ebp - 0x80]
mov eax, ebx
shr eax, 4
test al, 1
jne 0x414a19
push 0x10b
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x78]
call fcn.0045889d
pop ecx
xor al, al
call fcn.004588b0
ret
push dword [ebp - 0x78]
or dword [ebp - 4], 0xffffffff
shr ebx, 0xa
call fcn.0045889d
pop ecx
and bl, 1
jne 0x414b53
push esi
lea ecx, [ebp - 0x18]
call fcn.0040e331
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call fcn.00412a07
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.0040e446
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x28]
call fcn.004157fb
lea ecx, [ebp - 0x68]
call fcn.00414c57
lea ecx, [ebp - 0x40]
call fcn.0040e446
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x28]
xor edi, edi
call fcn.00415628
test al, al
je 0x414b30
mov esi, dword [ebp - 0x2c]
cmp esi, dword [ebp - 0x14]
jae 0x414aae
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.0040e9d5
mov eax, dword [ebp - 0x48]
shr eax, 4
test al, 1
je 0x414ada
lea ecx, [ebp - 0x18]
call fcn.004149b3
test al, al
jne 0x414af0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov bl, 1
jmp 0x414aee
mov ecx, dword [ebp - 0x18]
call fcn.00414640
test al, al
jne 0x414af0
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.00415628
test al, al
jne 0x414a9d
mov esi, dword [ebp - 0x30]
test bl, bl
je 0x414b30
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x40]
call fcn.0045889d
push dword [ebp - 0x24]
call fcn.0045889d
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
call fcn.00414c9c
push dword [ebp - 0x18]
jmp 0x414a0b
push dword [ebp - 0x40]
call fcn.0045889d
push dword [ebp - 0x24]
call fcn.0045889d
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
call fcn.00414c9c
push dword [ebp - 0x18]
call fcn.0045889d
pop ecx
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x414a11
mov ecx, dword [esi]
call fcn.004149a6
jmp 0x414a13

Function at 0x414bc9
Capabilities:
Set file attributes

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

Function at 0x414bd7
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 0x41546b
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 0x415556
Capabilities:
Get disk information

Disassembly:
push 0x24
mov eax, 0x4a3d45
call fcn.004588e2
mov eax, ecx
mov dword [ebp - 0x14], eax
call fcn.0040d763
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 0x415586
xor al, al
jmp 0x415622
push edi
lea ecx, [ebp - 0x20]
call fcn.004134f5
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 0x415619
cmp edi, dword [ebp - 0x1c]
ja 0x415619
lea ecx, [ebp - 0x30]
call fcn.0040e446
mov byte [ebp - 4], 1
mov edx, ebx
mov dword [ebp - 0x1c], edx
mov eax, ebx
test edi, edi
je 0x41560b
push 2
pop ecx
mov dword [ebp - 0x10], ecx
inc eax
mov dword [ebp - 0x18], eax
cmp word [ecx + esi - 2], bx
jne 0x4155fe
lea eax, [edx + esi]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040e716
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
call fcn.0040da91
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x30]
push eax
call fcn.0040d71f
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 0x4155c5
mov edx, dword [ebp - 0x1c]
push dword [ebp - 0x30]
cmp edx, edi
sete bl
call fcn.0045889d
pop ecx
push esi
call fcn.0045889d
pop ecx
mov al, bl
call fcn.004588b0
ret

Function at 0x4158a9
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 0x4158d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4158d3
xor al, al
jmp 0x4158e7
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 0x421e38
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 0x421e4b
mov dword [esi], edi
test eax, eax
je 0x421e8e
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 0x421e83
add dword [esi], edx
test eax, eax
jne 0x421e8e
call fcn.00421893
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x42aa0b
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a580a
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x5312c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0xa8]
call fcn.0042aabd
lea ecx, [esi + 0x78]
call fcn.0042aabd
push dword [esi + 0x30]
call fcn.0045889d
push dword [esi + 0x24]
call fcn.0045889d
push dword [esi + 0x18]
call fcn.0045889d
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x42aa6f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 8]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x42aa83
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 4]
mov dword [ebp - 4], 2
test ecx, ecx
je 0x42aa97
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x42aaaa
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 0x42ab1a
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a5844
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x5312c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0042e9e8
lea ecx, [esi + 0x30]
call fcn.0042aabd
push dword [esi + 0x24]
call fcn.0045889d
pop ecx
lea ecx, [esi + 0xc]
call fcn.0040d617
mov ecx, esi
call fcn.0042a9c8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret
Function at 0x43002a
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 0x43006f
cmp edx, 0x52
je 0x43005e
cmp ecx, 0x76
jne 0x43006b
mov ecx, esi
call fcn.0042fad9
jmp 0x430076
test al, al
je 0x43006b
mov ecx, esi
call fcn.004309ca
jmp 0x430076
xor al, al
jmp 0x430078
mov ecx, esi
call fcn.0043030c
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x431e19
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.00431f34
lea eax, [ebx + 0x38]
mov ecx, ebx
push eax
push 0x65
push 0x67
call fcn.00431f34
mov ecx, ebx
call fcn.00413a4a
cmp byte [ebx + 9], 0
lea edi, [ebx + 4]
jne 0x431e86
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 0x431eb2
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