joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003e2bc
Capabilities:
Encode data using xor
Get common file path

Disassembly:
mov eax, 0x10065b78
call fcn.100641f8
sub esp, 0x2c
push ebx
push esi
mov dword [ebp - 0x14], 0x2f0
mov ebx, ecx
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
cmp dword [ebp - 0x14], 0x5b8
mov dword [ebp - 0x18], ebx
jle 0x1003e323
mov edi, esi
mov ebx, esi
mov dword [ebp - 0x1c], esi
mov ecx, esi
mov eax, ebx
sar eax, cl
mov ecx, 0x10081de8
xor eax, edi
cdq
push edx
push eax
call fcn.1000d012
inc esi
cmp esi, 0x7fc6
jl 0x1003e2ed
inc ebx
push 0
pop esi
cmp ebx, 0x482c
jl 0x1003e2ea
inc edi
cmp edi, 0x312c
jl 0x1003e2e8
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 4], esi
cmp dword [ebp - 0x14], 0xffffffb9
jge 0x1003e33b
mov edx, str.qmdpysk_iuu_ihquqy_mjhiluae
mov ecx, 0x10081de8
call fcn.1000ff9e
or dword [ebp - 4], 0xffffffff
cmp byte [ebp + 8], 0
je 0x1003e388
push 0x563
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_RestoreDC]
jmp 0x1003e43f
cmp byte [ebx], 0
je 0x1003e3bd
push esi
push esi
push 0x4a15
push 0x1eee
push 1
push 0x4bb8
push 0x2030
push 0x33ca
push ecx
mov edx, 0x7358
mov ecx, 0x181c
call fcn.1003d8e1
add esp, 0x24
mov dword [ebp - 0x14], 0x4230
cmp dword [ebp - 0x14], 0x4615
jle 0x1003e42b
push esi
push 0xabe
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, esi
mov ebx, esi
mov ecx, ebx
mov eax, edi
sar eax, cl
lea ecx, [ebp - 0x34]
cdq
push edx
push eax
call fcn.10001a6a
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1003e3f8
mov eax, dword [eax]
push eax
call fcn.1004c39e
pop ecx
push esi
push 1
lea ecx, [ebp - 0x34]
call fcn.1000205a
inc ebx
cmp ebx, 0x31e4
jl 0x1003e3dd
inc edi
cmp edi, 0x1932
jl 0x1003e3db
push esi
push 0x6cd
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp dword [ebp - 0x14], 0x4151
jge 0x1003e43f
push str.azzke_cgnksog_ynyeaa_vdw_razezlc_rbcijphuy_tbbzeu_zigcvangk_vlbxa_tta_bszyzgy_sjrxdq
call fcn.1004c39e
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003f651
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jl 0x1003f668
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 8

Function at 0x1003f68a
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov edx, 0x10146fb4
push edi
mov esi, edx
mov edi, 0x7fffffff
mov ecx, dword [esi + 0x9c4]
xor ecx, dword [esi + 0x9c0]
and ecx, edi
xor ecx, dword [esi + 0x9c0]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0xff4]
xor eax, ecx
mov dword [esi], eax
add esi, 4
cmp esi, 0x10147340
jl 0x1003f698
mov esi, 0x9908b0df
mov ecx, dword [edx + 0xd50]
xor ecx, dword [edx + 0xd4c]
and ecx, edi
xor ecx, dword [edx + 0xd4c]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, esi
xor eax, ecx
xor eax, dword [edx]
mov dword [edx + 0x38c], eax
add edx, 4
cmp edx, 0x101475e4
jl 0x1003f6d8
mov ecx, dword [0x10148330]
xor ecx, dword [0x10146fb4]
and ecx, edi
xor ecx, dword [0x10148330]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
and dword [0x10146fb0], 0
and eax, esi
shr ecx, 1
xor eax, ecx
xor eax, dword [0x101475e4]
mov dword [0x10147970], eax
pop esi
ret
Function at 0x10044a1b
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10065fa4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push esi
push ecx
mov edx, 0xa05
lea ecx, [esp + 0x40]
call fcn.10001aa2
pop ecx
xor esi, esi
lea ecx, [esp + 0x6c]
push eax
mov dword [esp + 0x98], esi
call fcn.1001110b
xor ebx, ebx
mov byte [esp + 0x94], 2
push esi
inc ebx
lea ecx, [esp + 0x40]
push ebx
call fcn.1000232a
push 0x1a26
push 0x43ad
push ecx
mov dl, bl
lea ecx, [esp + 0x78]
call fcn.100446bb
pop ecx
pop ecx
mov edx, 0x91b
lea ecx, [esp + 0x28]
call fcn.10001aa2
mov edx, 0x91c
mov byte [esp + 0x98], 3
lea ecx, [esp + 0x40]
call fcn.10001aa2
pop ecx
mov edx, eax
mov byte [esp + 0x94], 4
lea ecx, [esp + 0x18]
call fcn.100416cf
push esi
push ebx
lea ecx, [esp + 0x44]
mov byte [esp + 0x9c], 6
call fcn.1000232a
push ecx
mov edx, 0x91d
lea ecx, [esp + 0x58]
call fcn.10001aa2
pop ecx
mov edx, eax
mov byte [esp + 0x94], 7
lea ecx, [esp + 0xc]
call fcn.100416cf
push esi
push ebx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x9c], 9
call fcn.1000232a
push ebx
push 0x7675
push 0x52d4
push ebx
push 0xb2b
push 0x35e1
lea eax, [esp + 0x30]
push eax
push 0x505e
push 0x67d4
lea eax, [esp + 0x48]
push eax
push ebx
lea eax, [esp + 0x38]
mov edx, 0x1850
push eax
mov ecx, 0x7a17
call fcn.100447df
add esp, 0x30
lea ecx, [esp + 0xc]
call fcn.10045173
lea ecx, [esp + 0x18]
call fcn.10045173
push esi
push ebx
lea ecx, [esp + 0x2c]
call fcn.1000232a
or dword [esp + 0x94], 0xffffffff
lea ecx, [esp + 0x6c]
call fcn.10012f1c
mov ecx, dword [esp + 0x8c]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401958
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 0x40198f
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x401982
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 0x4019fd
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 0x401a4a
cmp ebx, 4
jne 0x401a4d
cmp edi, 6
jbe 0x401a4d
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 0x40199e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402a78
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov edx, dword [edx]
and edx, 7
cmp eax, 5
jae 0x402a95
xor eax, eax
jmp 0x402bb2
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [eax - 4]
add ecx, ebx
push esi
mov dword [ebp + 0xc], ecx
lea esi, [edi + ebx]
jmp 0x402ab0
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x402ab4
inc esi
cmp esi, ecx
jb 0x402aa7
mov ecx, esi
sub ecx, edi
mov edi, esi
sub ecx, ebx
sub edi, ebx
cmp esi, dword [ebp + 0xc]
jae 0x402b9f
cmp ecx, 2
jbe 0x402b0a
xor edx, edx
movzx ebx, byte [esi + 4]
lea eax, [ebx + 1]
test al, 0xfe
jne 0x402b90
movzx eax, byte [esi + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 1]
shl ebx, 8
or ebx, eax
mov eax, dword [ebp + 0x10]
add eax, 5
add eax, edi
cmp dword [ebp + 0x18], 0
je 0x402b36
add ebx, eax
jmp 0x402b38
shr edx, cl
test edx, edx
je 0x402ace
cmp edx, 4
ja 0x402b28
cmp edx, 3
je 0x402b28
mov eax, edx
shr eax, 1
movzx eax, byte [eax + esi + 1]
inc eax
test al, 0xfe
jne 0x402ace
or edx, 8
shr edx, 1
inc edi
mov ecx, dword [ebp + 0xc]
jmp 0x402aa2
sub ebx, eax
test edx, edx
je 0x402b6d
and edx, 6
mov eax, ebx
shl edx, 2
mov ecx, edx
shr eax, cl
inc eax
test al, 0xfe
jne 0x402b6b
mov eax, 0x100
shl eax, cl
dec eax
xor ebx, eax
mov eax, dword [ebp + 0x10]
add eax, 5
add eax, edi
cmp dword [ebp + 0x18], 0
je 0x402b69
add ebx, eax
jmp 0x402b6b
sub ebx, eax
xor edx, edx
mov eax, ebx
mov byte [esi + 1], bl
shr eax, 8
mov byte [esi + 2], al
mov eax, ebx
shr ebx, 0x18
shr eax, 0x10
and bl, 1
neg bl
mov byte [esi + 3], al
push 5
mov byte [esi + 4], bl
pop eax
jmp 0x402b98
or edx, 8
xor eax, eax
shr edx, 1
inc eax
mov ebx, dword [ebp + 8]
add edi, eax
jmp 0x402b2e
xor eax, eax
shr edx, cl
cmp ecx, 2
pop esi
cmova edx, eax
mov eax, dword [ebp + 0x14]
pop ebx
mov dword [eax], edx
mov eax, edi
pop edi
pop ebp
ret 0x14
Function at 0x4031c7
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
mov eax, dword [0x496024]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x368]
mov dword [ebp - 0x368], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x403207
cmp dword [ebp - 0x364], 6
jne 0x403207
cmp dword [ebp - 0x360], 0
je 0x403231
push str.SetDefaultDllDirectories
push 0x47d638
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403231
push 0xc00
call eax
test eax, eax
jne 0x4032c6
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4032c6
cmp eax, 0x104
ja 0x4032c6
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x403271
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.UXTHEME], 0
push esi
mov esi, str.UXTHEME
je 0x4032c5
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
mov edx, edi
mov cl, byte [esi]
inc esi
movzx eax, cl
mov word [edx], ax
lea edx, [edx + 2]
test cl, cl
jne 0x40328c
push str..dll
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 8
push 0
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x40328a
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042fd48
mov esp, ebp
pop ebp
ret
Function at 0x4069fa
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
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 [esi + 0x78], edx
cmova eax, ecx
mov dword [esi + 0x7c], edx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
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 0x406aa4
lea edi, [esi + 0xc8]
mov ebx, ecx
cmp dword [edi + 8], edx
je 0x406a85
push edi
call fcn.004069cf
xor edx, edx
add edi, 0x28
sub ebx, 1
jne 0x406a78
cmp dword [esi + 0x5c], ebx
je 0x406a9f
mov eax, dword [esi + 0x14]
push dword [esi + 0x5c]
push eax
call dword [eax + 4]
and dword [esi + 0x5c], ebx
mov eax, dword [esi]
mov dword [esi + 0x20], eax
push dword [esi + 0x10]
lea eax, [esi + 0x98]
push eax
call fcn.00406ed7
mov ecx, dword [esi + 0x58]
and dword [esi + 0x24], 0
and dword [esi + 0x28], 0
lea eax, [ecx + 5]
imul ebx, eax, 0x28
lea eax, [ecx + 1]
mov dword [esi + 0x58], eax
add ebx, esi
push ebx
call fcn.00406991
mov edi, eax
test edi, edi
jne 0x406b20
lea eax, [ebx + 0x20]
push eax
call fcn.0040941d
mov edi, eax
test edi, edi
jne 0x406b20
lea eax, [ebx + 0x1c]
push eax
call fcn.0040941d
mov edi, eax
test edi, edi
jne 0x406b20
push ebx
call fcn.004078a7
mov edi, eax
test edi, edi
je 0x406b20
and dword [esi + 0x44], 0
lea ebx, [esi + 0xc8]
push 0x20
pop esi
push ebx
call fcn.0040690f
add ebx, 0x28
sub esi, 1
jne 0x406b0f
mov esi, dword [ebp + 8]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x406b34
mov dword [esi + 0x40], eax
xor edx, edx
cmp dword [esi + 0x38], edx
jne 0x406b48
cmp dword [esi + 0x40], edx
jne 0x406b48
cmp dword [esi + 0x3c], edx
jne 0x406b48
mov dword [esi + 0x44], edx
xor ecx, ecx
cmp dword [esi + 0x44], edx
pop edi
pop esi
cmovne eax, ecx
pop ebx
pop ebp
ret 4

Function at 0x409228
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 8], 0
and dword [eax + 0xc], 0
mov dword [eax + 0x20], 0x6a09e667
mov dword [eax + 0x24], 0xbb67ae85
mov dword [eax + 0x28], 0x3c6ef372
mov dword [eax + 0x2c], 0xa54ff53a
mov dword [eax + 0x30], 0x510e527f
mov dword [eax + 0x34], 0x9b05688c
mov dword [eax + 0x38], 0x1f83d9ab
mov dword [eax + 0x3c], 0x5be0cd19
pop ebp
ret 4
Function at 0x409539
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
call fcn.0043e0e8
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x409565
call fcn.0040943c
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40e5e7
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x4794c4
call fcn.0042fff2
cmp byte [0x499d1c], 0
mov edi, dword [ebp + 8]
jne 0x40e627
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.0040bcca
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0042ffa8
pop ecx
test esi, esi
je 0x40e635
mov al, 1
jmp 0x40e67b
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x40e621
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40e646
xor al, al
jmp 0x40e67b
lea ecx, [ebp - 0x50]
call fcn.0040f15d
lea ecx, [ebp - 0x28]
call fcn.0040a48f
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.0040f43f
test al, al
je 0x40e670
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.0042ffa8
pop ecx
mov al, bl
call fcn.0042ffbb
ret 4

Function at 0x40e683
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x499d1c], 0
jne 0x40e6bd
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040bcca
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042ffa8
pop ecx
test esi, esi
pop esi
je 0x40e6cc
mov al, 1
jmp 0x40e6ce
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x40e6b7
xor al, al
mov esp, ebp
pop ebp
ret 4

Function at 0x40e8ba
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040fac2
cmp eax, 0xffffffff
je 0x40e8e7
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x40e8e7
and eax, 0xfffffffe
push eax
push esi
call fcn.0040f047
test al, al
je 0x40e91f
cmp byte [0x499d1c], 0
push esi
jne 0x40e915
lea eax, [ebp - 0xc]
push eax
call fcn.0040bcca
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042ffa8
pop ecx
test esi, esi
je 0x40e91f
mov al, 1
jmp 0x40e921
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jmp 0x40e90f
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40ed86
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x499d1c], 0
jne 0x40edbe
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040bcca
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042ffa8
pop ecx
test esi, esi
pop esi
je 0x40edcb
mov al, 1
jmp 0x40edcd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jmp 0x40edb8
xor al, al
mov esp, ebp
pop ebp
ret 4
Function at 0x40f047
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x499d1c], 0
jne 0x40f082
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040bcca
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042ffa8
pop ecx
test esi, esi
pop esi
je 0x40f092
mov al, 1
jmp 0x40f094
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jmp 0x40f07c
xor al, al
mov esp, ebp
pop ebp
ret 8

Function at 0x40fac2
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x499d1c], 0
jne 0x40faf6
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040bcca
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042ffa8
pop ecx
mov eax, esi
pop esi
jmp 0x40fb09
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x40fbf8
Capabilities:
Get disk information

Disassembly:
push 0x2c
mov eax, 0x4797b2
call fcn.0042fff2
mov ecx, dword [ebp + 8]
call fcn.004097e0
cmp byte [0x499d1c], 0
jne 0x40fcd8
mov ecx, dword [ebp + 8]
call fcn.004097e0
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x40fc3b
xor al, al
jmp 0x40fd8b
push edi
call fcn.0042ff9f
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
push esi
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov edi, eax
test edi, edi
je 0x40fd82
cmp edi, dword [ebp - 0x18]
ja 0x40fd82
lea ecx, [ebp - 0x2c]
call fcn.0040a217
mov byte [ebp - 4], 1
test edi, edi
je 0x40fcce
xor eax, eax
mov dword [ebp - 0x14], edi
inc eax
mov ecx, edi
mov dword [ebp - 0x10], eax
cmp byte [esi + eax - 1], 0
jne 0x40fcc2
lea eax, [ebx + esi]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a562
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0040bc7a
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 2
call fcn.00409778
push dword [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0042ffa8
pop ecx
mov ecx, dword [ebp - 0x14]
mov eax, ebx
inc eax
sub ecx, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
jne 0x40fc80
push dword [ebp - 0x2c]
cmp ebx, edi
jmp 0x40fd79
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
je 0x40fc34
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040f0be
mov esi, dword [ebp - 0x1c]
push esi
push edi
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x40fd82
cmp edi, dword [ebp - 0x18]
ja 0x40fd82
lea ecx, [ebp - 0x38]
call fcn.0040a48f
mov byte [ebp - 4], 4
mov edx, ebx
mov dword [ebp - 0x18], edx
mov eax, ebx
mov dword [ebp - 0x10], eax
test edi, edi
je 0x40fd74
push 2
pop ecx
mov dword [ebp - 0x14], ecx
cmp word [esi + ecx - 2], bx
jne 0x40fd63
lea eax, [edx + esi]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040a73e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
inc eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x38]
push eax
call fcn.00409778
mov ecx, dword [ebp - 0x14]
mov edx, ecx
mov eax, dword [ebp - 0x10]
inc eax
add ecx, 2
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
cmp eax, edi
jb 0x40fd35
mov edx, dword [ebp - 0x18]
push dword [ebp - 0x38]
cmp edx, edi
sete bl
call fcn.0042ffa8
pop ecx
push esi
call fcn.0042ffa8
mov al, bl
pop ecx
call fcn.0042ffbb
ret 4

Function at 0x40ffab
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 0x40ffd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40ffd1
xor al, al
jmp 0x40ffe5
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 0x41be2a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
test esi, esi
je 0x41be3a
mov dword [esi], edi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41be80
push edi
lea ecx, [ebp + 0x14]
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 + 0x14]
add dword [ecx + 8], edx
adc dword [ecx + 0xc], edi
test esi, esi
je 0x41be75
add dword [esi], edx
test eax, eax
jne 0x41be80
call fcn.0041b966
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x423cbb
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b269
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x496024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x30], 0
mov dword [esi], vtable.CInFileStreamVol.0
mov dword [esi + 4], vtable.CInFileStreamVol.1.0
mov dword [esi + 8], vtable.CInFileStreamVol.2.0
mov dword [esi + 0xc], vtable.CInFileStreamVol.3.0
je 0x423d0e
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 0x74]
mov eax, dword [esi + 0x28]
mov byte [ecx + eax], 0
and dword [ebp - 4], 0
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x423d1f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, esi
call fcn.0041b89a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42450b
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b453
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x496024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004282c9
lea ecx, [esi + 0x30]
call fcn.004244b1
push dword [esi + 0x24]
call fcn.0042ffa8
pop ecx
lea ecx, [esi + 0xc]
call fcn.00409646
mov ecx, esi
call fcn.004243bf
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x428e6d
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x496024]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
mov edx, 0x4011
test al, al
mov ecx, 0x4110
lea eax, [ebp - 0x164]
cmovne ecx, edx
push ecx
push 0x160
push eax
push 0x90
push 0x47d82c
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042fd48
mov esp, ebp
pop ebp
ret 4

Function at 0x4296e5
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]
cmp ecx, 8
je 0x429728
cmp ecx, 0x52
je 0x429717
cmp ecx, 0x76
jne 0x429724
mov ecx, esi
call fcn.0042916a
jmp 0x42972f
test al, al
je 0x429724
mov ecx, esi
call fcn.00429f3c
jmp 0x42972f
xor al, al
jmp 0x429731
mov ecx, esi
call fcn.004299c1
mov al, 1
pop esi
pop ebp
ret 4