joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42fb84
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0x5e9a2c
cmp esi, 1
jl 0x42fba2
cmp esi, 8
jle 0x42fba6
xor eax, eax
jmp 0x42fbab
mov eax, 1
push eax
push ebx
call fcn.0042e2b8
add esp, 0xc
xor edx, edx
mov dword [ebx + 0x6af70], edx
mov ecx, dword [ebx + 0x6af68]
test ecx, ecx
jne 0x42fbdb
mov dword [ebx + 0x6af70], 1
mov dword [ebx + 0x6af68], 0x10000
xor eax, eax
mov dword [ebx + 0x6af64], eax
push 0x1fffc
push 0
lea edx, [ebx + 0x4af68]
push edx
call fcn.004d2d9c
movzx ecx, word [esi*8 + 0x51afc1]
mov dword [ebx + 0x6af90], ecx
add esp, 0xc
movzx eax, word [esi*8 + 0x51afbf]
mov dword [ebx + 0x6af94], eax
cmp esi, 2
movzx edx, word [esi*8 + 0x51afc3]
mov dword [ebx + 0x6af98], edx
movzx ecx, word [esi*8 + 0x51afc5]
mov dword [ebx + 0x6af8c], ecx
jg 0x42fc3c
or word [edi], 4
jmp 0x42fc45
cmp esi, 8
jl 0x42fc45
or word [edi], 2
xor eax, eax
xor edx, edx
mov dword [ebx + 0x6af7c], eax
mov esi, 0x8000
add esi, esi
mov dword [ebx + 0x6af6c], edx
push esi
lea eax, [ebx + 0x1af68]
push eax
push ebx
call dword [ebx + 9]
add esp, 0xc
mov dword [ebx + 0x6af88], eax
mov eax, dword [ebx + 0x6af88]
test eax, eax
je 0x42fc80
cmp eax, 0xffffffff
jne 0x42fc94
mov dword [ebx + 0x6af84], 1
xor edx, edx
mov dword [ebx + 0x6af88], edx
jmp 0x42fce2
xor ecx, ecx
mov dword [ebx + 0x6af84], ecx
mov eax, dword [ebx + 0x6af88]
cmp eax, 0x106
jae 0x42fcb0
push ebx
call fcn.0042fedc
pop ecx
xor edx, edx
xor esi, esi
mov dword [ebx + 0x6af74], edx
lea eax, [ebx + 0x1af68]
mov edx, dword [ebx + 0x6af74]
xor ecx, ecx
shl edx, 5
mov cl, byte [eax]
xor edx, ecx
inc eax
and edx, 0x7fff
inc esi
cmp esi, 2
mov dword [ebx + 0x6af74], edx
jb 0x42fcc0
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4310f4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
test edx, edx
jne 0x43110a
xor eax, eax
pop ebx
pop ebp
ret
xor eax, 0xffffffff
cmp ecx, 8
jb 0x4311fa
xor ebx, ebx
sub ecx, 8
mov bl, byte [edx]
inc edx
xor ebx, eax
and ebx, 0xff
shr eax, 8
mov ebx, dword [ebx*4 + 0x51b06c]
xor ebx, eax
mov eax, ebx
xor ebx, ebx
mov bl, byte [edx]
inc edx
xor ebx, eax
and ebx, 0xff
shr eax, 8
mov ebx, dword [ebx*4 + 0x51b06c]
xor ebx, eax
mov eax, ebx
xor ebx, ebx
mov bl, byte [edx]
inc edx
xor ebx, eax
and ebx, 0xff
shr eax, 8
mov ebx, dword [ebx*4 + 0x51b06c]
xor ebx, eax
mov eax, ebx
xor ebx, ebx
mov bl, byte [edx]
inc edx
xor ebx, eax
and ebx, 0xff
shr eax, 8
mov ebx, dword [ebx*4 + 0x51b06c]
xor ebx, eax
mov eax, ebx
xor ebx, ebx
mov bl, byte [edx]
inc edx
xor ebx, eax
and ebx, 0xff
shr eax, 8
mov ebx, dword [ebx*4 + 0x51b06c]
xor ebx, eax
mov eax, ebx
xor ebx, ebx
mov bl, byte [edx]
inc edx
xor ebx, eax
and ebx, 0xff
shr eax, 8
mov ebx, dword [ebx*4 + 0x51b06c]
xor ebx, eax
mov eax, ebx
xor ebx, ebx
mov bl, byte [edx]
inc edx
xor ebx, eax
and ebx, 0xff
shr eax, 8
mov ebx, dword [ebx*4 + 0x51b06c]
xor ebx, eax
mov eax, ebx
xor ebx, ebx
mov bl, byte [edx]
inc edx
xor ebx, eax
and ebx, 0xff
shr eax, 8
mov ebx, dword [ebx*4 + 0x51b06c]
xor ebx, eax
cmp ecx, 8
mov eax, ebx
jae 0x431116
test ecx, ecx
je 0x43121c
xor ebx, ebx
mov bl, byte [edx]
inc edx
xor ebx, eax
and ebx, 0xff
shr eax, 8
mov ebx, dword [ebx*4 + 0x51b06c]
xor ebx, eax
dec ecx
mov eax, ebx
jne 0x4311fe
xor eax, 0xffffffff
pop ebx
pop ebp
ret
Function at 0x4318ec
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x15]
test eax, eax
je 0x4319ca
mov edx, dword [ebx + 0x19]
add edx, esi
mov eax, dword [ebx + 0x1d]
cmp edx, eax
jb 0x4319ad
add eax, eax
cmp edx, eax
jae 0x431923
mov edx, dword [ebx + 0x1d]
add edx, edx
jmp 0x431928
mov edx, dword [ebx + 0x19]
add edx, esi
mov dword [ebp - 4], edx
push 0
mov eax, dword [ebp - 4]
push eax
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.KERNEL32.dll_CreateFileMappingA
mov edi, eax
test edi, edi
jne 0x43194e
mov eax, 0x300
jmp 0x4319f6
mov edx, dword [ebp - 4]
push edx
push 0
push 0
push 0xf001f
push edi
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x431978
push edi
call sub.KERNEL32.dll_CloseHandle
mov eax, 0x300
jmp 0x4319f6
mov edx, dword [ebx + 0x1d]
push edx
mov ecx, dword [ebx + 0x15]
push ecx
mov eax, dword [ebp - 8]
push eax
call fcn.004d2d2c
add esp, 0xc
mov edx, dword [ebx + 0x15]
push edx
call sub.KERNEL32.dll_UnmapViewOfFile
mov ecx, dword [ebx + 4]
push ecx
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp - 4]
mov dword [ebx + 0x1d], eax
mov edx, dword [ebp - 8]
mov dword [ebx + 0x15], edx
mov dword [ebx + 4], edi
push esi
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebx + 0x15]
mov edx, dword [ebx + 0x19]
add eax, edx
push eax
call fcn.004d2d2c
add esp, 0xc
add dword [ebx + 0x19], esi
mov eax, esi
jmp 0x4319f6
mov edx, dword [ebx]
test edx, edx
je 0x4319ed
xor ecx, ecx
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ecx
push 0
push eax
push esi
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebx]
push ecx
call sub.KERNEL32.dll_WriteFile
mov eax, dword [ebp - 0xc]
jmp 0x4319f6
mov dword [ebx + 0xc], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431df8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x431e5c
mov ecx, dword [ebx + 0x50]
mov eax, dword [ebx + 0x54]
cmp ecx, eax
ja 0x431e20
xor eax, eax
jmp 0x431ea8
mov esi, ecx
sub esi, eax
cmp edx, esi
jae 0x431e2a
mov esi, edx
push esi
mov edx, dword [ebx + 0x4c]
add edx, eax
push edx
push edi
call fcn.004d2d2c
add esp, 0xc
add dword [ebx + 0x54], esi
mov eax, dword [ebx + 0x3f]
add eax, esi
mov dword [ebx + 0x3f], eax
push esi
push edi
mov ecx, dword [ebx + 0x43]
push ecx
call fcn.004310f4
add esp, 0xc
mov dword [ebx + 0x43], eax
mov eax, esi
jmp 0x431ea8
mov eax, dword [ebx + 0x47]
test eax, eax
je 0x431e9f
push 0
lea ecx, [ebp - 4]
push ecx
push edx
push edi
push eax
call sub.KERNEL32.dll_ReadFile
test eax, eax
jne 0x431e79
xor eax, eax
jmp 0x431ea8
mov edx, dword [ebx + 0x3f]
mov ecx, dword [ebp - 4]
add edx, ecx
mov dword [ebx + 0x3f], edx
mov eax, dword [ebp - 4]
push eax
push edi
mov edx, dword [ebx + 0x43]
push edx
call fcn.004310f4
add esp, 0xc
mov dword [ebx + 0x43], eax
mov eax, dword [ebp - 4]
jmp 0x431ea8
mov dword [ebx + 0xc], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x435188
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
test edx, edx
jne 0x43519e
xor eax, eax
pop ebx
pop ebp
ret
xor eax, 0xffffffff
cmp ecx, 8
jb 0x43528e
xor ebx, ebx
sub ecx, 8
mov bl, byte [edx]
inc edx
xor ebx, eax
and ebx, 0xff
shr eax, 8
mov ebx, dword [ebx*4 + 0x51cb98]
xor ebx, eax
mov eax, ebx
xor ebx, ebx
mov bl, byte [edx]
inc edx
xor ebx, eax
and ebx, 0xff
shr eax, 8
mov ebx, dword [ebx*4 + 0x51cb98]
xor ebx, eax
mov eax, ebx
xor ebx, ebx
mov bl, byte [edx]
inc edx
xor ebx, eax
and ebx, 0xff
shr eax, 8
mov ebx, dword [ebx*4 + 0x51cb98]
xor ebx, eax
mov eax, ebx
xor ebx, ebx
mov bl, byte [edx]
inc edx
xor ebx, eax
and ebx, 0xff
shr eax, 8
mov ebx, dword [ebx*4 + 0x51cb98]
xor ebx, eax
mov eax, ebx
xor ebx, ebx
mov bl, byte [edx]
inc edx
xor ebx, eax
and ebx, 0xff
shr eax, 8
mov ebx, dword [ebx*4 + 0x51cb98]
xor ebx, eax
mov eax, ebx
xor ebx, ebx
mov bl, byte [edx]
inc edx
xor ebx, eax
and ebx, 0xff
shr eax, 8
mov ebx, dword [ebx*4 + 0x51cb98]
xor ebx, eax
mov eax, ebx
xor ebx, ebx
mov bl, byte [edx]
inc edx
xor ebx, eax
and ebx, 0xff
shr eax, 8
mov ebx, dword [ebx*4 + 0x51cb98]
xor ebx, eax
mov eax, ebx
xor ebx, ebx
mov bl, byte [edx]
inc edx
xor ebx, eax
and ebx, 0xff
shr eax, 8
mov ebx, dword [ebx*4 + 0x51cb98]
xor ebx, eax
cmp ecx, 8
mov eax, ebx
jae 0x4351aa
test ecx, ecx
je 0x4352b0
xor ebx, ebx
mov bl, byte [edx]
inc edx
xor ebx, eax
and ebx, 0xff
shr eax, 8
mov ebx, dword [ebx*4 + 0x51cb98]
xor ebx, eax
dec ecx
mov eax, ebx
jne 0x435292
xor eax, 0xffffffff
pop ebx
pop ebp
ret

Function at 0x435c2c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov esi, edi
imul esi, dword [ebp + 0x10]
mov al, byte [ebx]
test al, al
je 0x435c6a
push 0
lea ecx, [ebp - 4]
push ecx
push esi
push edx
mov edx, dword [ebx + 2]
push edx
call sub.KERNEL32.dll_ReadFile
test eax, eax
jne 0x435c61
mov byte [ebx + 6], 1
mov eax, dword [ebp - 4]
xor edx, edx
div edi
jmp 0x435c96
mov eax, dword [ebx + 0x13]
mov ecx, eax
add ecx, esi
cmp ecx, dword [ebx + 0xf]
jbe 0x435c7b
mov esi, dword [ebx + 0xf]
sub esi, eax
push esi
mov ecx, dword [ebx + 0xb]
add ecx, eax
push ecx
push edx
call fcn.004d2d2c
add esp, 0xc
mov ecx, esi
add dword [ebx + 0x13], ecx
mov eax, ecx
xor edx, edx
div edi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x436e74
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x436e8d
mov edx, dword [ebx + 4]
inc edx
je 0x436e94
mov eax, 0x1000000
jmp 0x436efb
lea edi, [ebx + 0x138]
push edi
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryA
push 0x5ea090
push edi
call fcn.004d2e40
add esp, 8
cmp esi, 1
jne 0x436ecd
mov eax, dword [ebp + 0xc]
push eax
call sub.KERNEL32.dll_GetFileType
cmp eax, 1
je 0x436ecd
mov eax, 0x2000000
jmp 0x436efb
lea edx, [ebp - 4]
push edx
push esi
mov ecx, dword [ebp + 0x10]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004359dc
add esp, 0x10
mov esi, eax
test esi, esi
jne 0x436eed
mov eax, dword [ebp - 4]
jmp 0x436efb
push esi
call fcn.00435f8c
pop ecx
mov dword [ebx], eax
mov eax, dword [0x51b7f0]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4373a4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test esi, esi
je 0x43745c
mov al, byte [esi]
test al, al
je 0x43745c
mov ebx, esi
mov eax, ebx
jmp 0x4373de
movsx edx, byte [eax]
cmp edx, 0x2f
je 0x4373db
cmp edx, 0x5c
jne 0x4373dd
mov ebx, eax
inc eax
mov dl, byte [eax]
test dl, dl
jne 0x4373ce
cmp esi, ebx
je 0x437417
mov eax, ebx
lea ecx, [ebp - 0x104]
sub eax, esi
push eax
push esi
push ecx
call fcn.004d30e8
add esp, 0xc
sub ebx, esi
lea eax, [ebp - 0x104]
mov byte [ebp + ebx - 0x104], 0
push eax
push edi
call fcn.004373a4
add esp, 8
push esi
xor eax, eax
push edi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x208]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
lea eax, [ebp - 0x208]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push esi
push eax
call fcn.004d2e40
add esp, 8
push 0
lea edx, [ebp - 0x208]
push edx
call sub.KERNEL32.dll_CreateDirectoryA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x438340
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x438349
add esp, 0xfffffbf4
mov eax, dword [ebp - 4]
push ebx
push esi
push edi
xor esi, esi
mov edi, dword [ebp + 8]
lea ebx, [ebp - 0x4410]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
test edi, edi
jne 0x43838d
mov ebx, 0xffffff9b
jmp 0x438494
push 0x5ea3aa
call fcn.00403700
pop ecx
mov dword [ebp - 8], eax
push 0x5ea3bd
call fcn.00403700
pop ecx
mov dword [ebp - 0xc], eax
push 1
push 0x5ea3cf
call fcn.004038e4
add esp, 8
push 1
push 0x5ea3e2
call fcn.004038e4
add esp, 8
push edi
call sub.KERNEL32.dll_GetFileAttributesA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4383e0
mov ebx, 0xffffff91
jmp 0x438494
test byte [ebp - 0x10], 0x10
je 0x4383ec
test byte [ebp - 0xf], 4
jne 0x4383f6
mov ebx, 0xffffff87
jmp 0x438494
push 0
push 0x2200000
push 3
push 0
push 1
push 0x80000000
push edi
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x43841c
mov ebx, 0xffffff7d
jmp 0x438494
push 0
lea eax, [ebp - 0x10]
push eax
push 0x4400
push ebx
push 0
push 0
push 0x900a8
push esi
call sub.KERNEL32.dll_DeviceIoControl
test eax, eax
jne 0x438442
mov ebx, 0xffffff73
jmp 0x438494
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebx]
cmp eax, 0xa0000003
je 0x438458
mov ebx, 0xffffff69
jmp 0x438494
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x438492
add ebx, 0x10
push 4
push 0x5ea3f4
push ebx
call fcn.004d337c
add esp, 0xc
test eax, eax
jne 0x438479
add ebx, 8
push 0
push 0
push 0x104
mov eax, dword [ebp + 0xc]
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call sub.KERNEL32.dll_WideCharToMultiByte
xor ebx, ebx
test esi, esi
je 0x43849e
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp - 4]
push eax
push 0x5ea3fe
call fcn.004038e4
add esp, 8
mov edx, dword [ebp - 8]
push edx
push 0x5ea412
call fcn.004038e4
add esp, 8
mov ecx, dword [ebp - 0xc]
push ecx
push 0x5ea425
call fcn.004038e4
add esp, 8
test ebx, ebx
je 0x4384e2
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4384e2
mov edx, dword [ebp + 0xc]
mov byte [edx], 0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43850c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x438526
test esi, esi
jne 0x438530
mov eax, 0xffffff9b
jmp 0x438673
push 0
push ebx
call sub.KERNEL32.dll_CreateDirectoryA
push 0
push 0x2200000
push 3
push 0
push 3
push 0xc0000000
push ebx
call sub.KERNEL32.dll_CreateFileA
mov edi, eax
test edi, edi
jne 0x438560
mov eax, 0xffffff87
jmp 0x438673
push esi
push edi
xor eax, eax
mov edi, esi
or ecx, 0xffffffff
lea esi, [ebp - 0x220]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea ebx, [ebp - 0x220]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov al, byte [ebp - 0x220]
cmp al, 0x5c
pop esi
jne 0x4385b9
mov dl, byte [ebp - 0x21f]
cmp dl, 0x3f
je 0x4385b9
mov cl, byte [ebp - 0x21e]
cmp cl, 0x3f
je 0x4385b9
mov al, byte [ebp - 0x21d]
cmp al, 0x5c
jne 0x4385ce
push esi
push 0x5ea437
lea edx, [ebp - 0x220]
push edx
call fcn.004d75f8
add esp, 0xc
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x220]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x220]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0x21a
push 0
push eax
call fcn.004d2d9c
add esp, 0xc
mov dword [ebx], 0xa0000003
push 0x104
lea edx, [ebx + 0x10]
push edx
push 0xffffffffffffffff
push esi
push 0
push 0
call sub.KERNEL32.dll_MultiByteToWideChar
mov ecx, eax
dec eax
mov edx, eax
add ecx, ecx
add edx, edx
movzx eax, dx
mov word [ebx + 0xc], cx
add eax, 0xc
mov word [ebx + 0xa], dx
mov dword [ebx + 4], eax
lea ecx, [ebp - 4]
push 0
push ecx
push 0
add eax, 8
push 0
push eax
push ebx
push 0x900a4
push edi
call sub.KERNEL32.dll_DeviceIoControl
test eax, eax
jne 0x43866b
push edi
call sub.KERNEL32.dll_CloseHandle
mov eax, 0xffffff9b
jmp 0x438673
push edi
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43867c
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
xor ebx, ebx
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], eax
test esi, esi
jne 0x4386a8
mov esi, 0xffffff9b
jmp 0x438766
push 0x5ea43e
call fcn.00403700
pop ecx
mov edi, eax
push 0x5ea451
call fcn.00403700
pop ecx
mov dword [ebp - 4], eax
push 1
push 0x5ea463
call fcn.004038e4
add esp, 8
push 1
push 0x5ea476
call fcn.004038e4
add esp, 8
push 0
push 0x2200000
push 3
push 0
push 3
push 0x40000000
push esi
call sub.KERNEL32.dll_CreateFileA
mov ebx, eax
test ebx, ebx
jne 0x438706
mov esi, 0xffffff87
jmp 0x438766
push 8
push 0
lea eax, [ebp - 0xc]
push eax
call fcn.004d2d9c
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov dword [edx], 0xa0000003
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push 8
mov eax, dword [ebp - 0x10]
push eax
push 0x900ac
push ebx
call sub.KERNEL32.dll_DeviceIoControl
test eax, eax
jne 0x43874b
push ebx
call sub.KERNEL32.dll_CloseHandle
mov esi, 0xffffff73
jmp 0x438766
push ebx
call sub.KERNEL32.dll_CloseHandle
xor ebx, ebx
push esi
call sub.KERNEL32.dll_RemoveDirectoryA
test eax, eax
jne 0x438764
mov esi, 0xffffff41
jmp 0x438766
xor esi, esi
test ebx, ebx
je 0x438770
push ebx
call sub.KERNEL32.dll_CloseHandle
push edi
push 0x5ea488
call fcn.004038e4
add esp, 8
mov eax, dword [ebp - 4]
push eax
push 0x5ea49b
call fcn.004038e4
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43c08c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, esi
mov eax, dword [ebx + 0x14]
push eax
push 0
call sub.KERNEL32.dll_GlobalAlloc
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
test edx, edx
jne 0x43c0bf
mov ecx, dword [ebp + 0x18]
xor eax, eax
mov dword [ecx], 2
jmp 0x43c21a
push 0
push esi
mov edx, dword [ebp - 4]
push edx
movzx ecx, word [ebx + 8]
push ecx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [ebp + 0x14]
push edx
call sub.GDI32.dll_GetDIBits
test eax, eax
jne 0x43c0ec
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 3
jmp 0x43c20f
push 3
mov eax, dword [ebp + 8]
push eax
call fcn.00403dc0
add esp, 8
mov edi, eax
test edi, edi
jne 0x43c10e
mov eax, dword [ebp + 0x18]
mov dword [eax], 4
jmp 0x43c20f
mov word [ebp - 0x18], 0x4d42
mov eax, dword [ebx + 0x20]
mov edx, dword [ebx]
shl eax, 2
add eax, edx
mov edx, dword [ebx + 0x14]
mov ecx, eax
add ecx, edx
add ecx, 0xe
add eax, 0xe
mov dword [ebp - 0x16], ecx
lea ecx, [ebp - 0x18]
mov word [ebp - 0x12], 0
mov word [ebp - 0x10], 0
mov dword [ebp - 0xe], eax
lea eax, [ebp - 8]
push 0
push eax
push 0xe
push ecx
push edi
call sub.KERNEL32.dll_WriteFile
test eax, eax
jne 0x43c161
mov eax, dword [ebp + 0x18]
mov dword [eax], 5
jmp 0x43c20f
push 0
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebx + 0x20]
shl ecx, 2
add ecx, 0x28
push ecx
push ebx
push edi
call sub.KERNEL32.dll_WriteFile
test eax, eax
jne 0x43c18a
mov eax, dword [ebp + 0x18]
mov dword [eax], 6
jmp 0x43c20f
mov ebx, dword [ebx + 0x14]
mov esi, dword [ebp - 4]
cmp ebx, 0xfde8
jbe 0x43c1cd
push 0
lea eax, [ebp - 8]
push eax
push 0xfde8
push esi
push edi
call sub.KERNEL32.dll_WriteFile
test eax, eax
jne 0x43c1b9
mov edx, dword [ebp + 0x18]
mov dword [edx], 7
jmp 0x43c20f
sub ebx, 0xfde8
add esi, 0xfde8
cmp ebx, 0xfde8
ja 0x43c198
push 0
lea ecx, [ebp - 8]
push ecx
push ebx
push esi
push edi
call sub.KERNEL32.dll_WriteFile
test eax, eax
jne 0x43c1ea
mov eax, dword [ebp + 0x18]
mov dword [eax], 8
jmp 0x43c20f
push edi
call sub.KERNEL32.dll_CloseHandle
test eax, eax
jne 0x43c1ff
mov edx, dword [ebp + 0x18]
mov dword [edx], 9
jmp 0x43c20f
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_GlobalFree
mov eax, 1
jmp 0x43c21a
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_GlobalFree
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43d934
Capabilities:
Find taskbar

Disassembly:
push ebx
xor ebx, ebx
push 0
push 0
push 0x10
push 0x5ea94c
push 0
call sub.USER32.dll_FindWindowA
push eax
call sub.USER32.dll_PostMessageA
push 0
push 0
push 0x10
push 0x5ea95a
push 0
call sub.USER32.dll_FindWindowA
push eax
call sub.USER32.dll_PostMessageA
push 0
push 0
push 0x12
push 0x5ea967
push 0
call sub.USER32.dll_FindWindowA
push eax
call sub.USER32.dll_PostMessageA
push 0
push 0
push 2
push 0x5ea974
push 0
call sub.USER32.dll_FindWindowA
push eax
call sub.USER32.dll_PostMessageA
push 0x5ea981
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call sub.KERNEL32.dll_FreeLibrary
push 0x5ea98e
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call sub.KERNEL32.dll_FreeLibrary
jmp 0x43d9fa
inc ebx
cmp ebx, 0xa
jg 0x43da0a
push 0
push 0
push 0x418
push 0
push 0x5ea99f
call sub.USER32.dll_FindWindowA
push eax
call sub.USER32.dll_PostMessageA
push 0
push 0
push 2
push 0
push 0x5ea9a3
call sub.USER32.dll_FindWindowA
push eax
call sub.USER32.dll_PostMessageA
push 1
call fcn.004dee84
pop ecx
push 0
push 0x5ea99b
call sub.USER32.dll_FindWindowA
test eax, eax
jne 0x43d9b9
push 1
call fcn.004dee84
pop ecx
mov eax, 1
pop ebx
ret

Function at 0x43db8c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
lea edx, [ebp - 4]
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push edx
push esi
call sub.USER32.dll_GetWindowThreadProcessId
call sub.KERNEL32.dll_GetCurrentProcessId
mov ecx, dword [ebp - 4]
cmp eax, ecx
jne 0x43dbc0
mov eax, 1
jmp 0x43dc80
mov eax, dword [0x51d6ac]
test eax, eax
je 0x43dbda
mov edx, dword [ebp - 4]
cmp eax, edx
jne 0x43dbda
mov eax, 1
jmp 0x43dc80
mov eax, dword [0x51d6b0]
test eax, eax
je 0x43dbf4
mov edx, dword [ebp - 4]
cmp eax, edx
jne 0x43dbf4
mov eax, 1
jmp 0x43dc80
mov eax, ebx
and eax, 1
test eax, eax
jne 0x43dc5b
lea edx, [ebp - 8]
push edx
push 0x7d0
push 2
push 0x80000000
push 0
push 0x11
push esi
call sub.USER32.dll_SendMessageTimeoutA
test eax, eax
je 0x43dc57
lea ecx, [ebp - 8]
push ecx
push 0x7d0
push 2
push 0x80000000
push 1
push 0x16
push esi
call sub.USER32.dll_SendMessageTimeoutA
test eax, eax
je 0x43dc50
lea eax, [ebp - 8]
push eax
push 0x7d0
push 2
push 0
push 1
push 0x10
push esi
call sub.USER32.dll_SendMessageTimeoutA
mov eax, 1
jmp 0x43dc80
xor eax, eax
jmp 0x43dc80
test eax, eax
je 0x43dc7e
mov edx, dword [ebp - 4]
push edx
push 0
push 1
call sub.KERNEL32.dll_OpenProcess
test eax, eax
je 0x43dc7a
push 0
push eax
call sub.KERNEL32.dll_TerminateProcess
mov edi, eax
mov eax, edi
jmp 0x43dc80
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x43dcdc
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
call fcn.0043d934
mov eax, dword [ebp + 8]
push eax
push 0x43dc88
call sub.USER32.dll_EnumWindows
push 0x1388
push 0x1f4
call fcn.0043da34
add esp, 8
mov eax, 1
pop ebp
ret
Function at 0x43e4f4
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
push 0x5eaa8c
push 0x5eaa81
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call sub.KERNEL32.dll_GetProcAddress
mov ebx, eax
test ebx, ebx
je 0x43e519
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
call ebx
push 0
call fcn.00401288
push eax
push 0
push 0
push 1
push 1
push 0xffff
push 0xffff
push 0x90800200
push 0x5eaaac
push 0x5eaaa5
push 8
call sub.USER32.dll_CreateWindowExA
mov ebx, eax
call sub.USER32.dll_GetForegroundWindow
mov esi, eax
push 0xa
call sub.KERNEL32.dll_Sleep
push 0
call sub.KERNEL32.dll_Sleep
push 0xa
call sub.KERNEL32.dll_Sleep
push 0
call sub.KERNEL32.dll_Sleep
push 1
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
push 0
push esi
call sub.USER32.dll_GetWindowThreadProcessId
push eax
call sub.USER32.dll_AttachThreadInput
push 0xa
call sub.KERNEL32.dll_Sleep
push 0
call sub.KERNEL32.dll_Sleep
push 0xa
call sub.KERNEL32.dll_Sleep
push 0
call sub.KERNEL32.dll_Sleep
push ebx
call sub.USER32.dll_SetForegroundWindow
push ebx
call sub.USER32.dll_BringWindowToTop
push 0xa
call sub.KERNEL32.dll_Sleep
push 0
call sub.KERNEL32.dll_Sleep
push 0xa
call sub.KERNEL32.dll_Sleep
push 0
call sub.KERNEL32.dll_Sleep
push 0
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
push 0
push esi
call sub.USER32.dll_GetWindowThreadProcessId
push eax
call sub.USER32.dll_AttachThreadInput
push 0xa
call sub.KERNEL32.dll_Sleep
push 0
call sub.KERNEL32.dll_Sleep
push 0xa
call sub.KERNEL32.dll_Sleep
push 0
call sub.KERNEL32.dll_Sleep
mov eax, ebx
pop esi
pop ebx
ret