joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a464
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
jne 0x41a48b
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.0040c92b
test eax, eax
je 0x41a48b
call fcn.0040c9b2
test eax, eax
mov dword [esp + 0xc], eax
jne 0x41a492
xor eax, eax
jmp 0x41a554
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 0x34]
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
push ebp
push edi
push pe_nt_image_headers32
mov ebp, 0x3000
push ebp
push eax
push ecx
call ebx
mov edi, eax
test edi, edi
jne 0x41a4ca
push pe_nt_image_headers32
push ebp
push dword [esp + 0x20]
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x41a4ca
xor eax, eax
jmp 0x41a551
push dword [esp + 0x14]
mov ecx, esi
push edi
call fcn.00410685
mov eax, dword [esi + 0x10]
xor ebx, ebx
cmp dword [eax + 0xa0], ebx
jbe 0x41a4f7
cmp dword [eax + 0xa4], ebx
jbe 0x41a4f7
push edi
mov ecx, esi
call fcn.0040c7ed
test eax, eax
je 0x41a4c3
push edi
mov ecx, esi
call fcn.0040c84c
test eax, eax
jne 0x41a512
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
jmp 0x41a4c3
mov eax, dword [esi + 0x10]
mov dword [eax + 0x34], edi
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x28]
push ebx
xor ebp, ebp
inc ebp
push ebp
add eax, edi
push edi
mov dword [esi + 4], eax
call eax
test eax, eax
jne 0x41a54a
push ebx
push ebx
push edi
call dword [esi + 4]
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov dword [esi + 4], ebx
jmp 0x41a4c3
mov dword [esi], ebp
mov dword [esi + 8], edi
mov eax, ebp
pop edi
pop ebp
pop ebx
pop esi
ret 8
Function at 0x4227fd
Capabilities:
Get memory capacity

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x1b0
xor ecx, ecx
cmp dword [0x4acef0], ecx
jne 0x42281a
or eax, 0xffffffff
jmp 0x423949
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x74]
or dword [ebp + 0x48], 0xffffffff
push esi
push edi
mov dword [ebp + 0x30], ecx
mov esi, dword [ebp + 0x78]
lea edi, [ebp + 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
cmp ebx, 2
mov dword [ebp + 0x5c], ecx
lea edi, [ebp + 0x60]
stosd dword es:[edi], eax
mov byte [ebp + 0x5b], al
mov eax, dword [ebp + 0x7c]
mov eax, dword [eax]
mov ax, word [eax]
mov dword [ebp + 0x64], ecx
mov dword [ebp + 0x68], ecx
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x20], ecx
mov dword [ebp + 0x24], ecx
mov dword [ebp + 4], ecx
mov dword [ebp + 0x28], ecx
mov dword [ebp + 0x4c], ecx
mov dword [ebp + 0x10], ecx
mov dword [ebp + 8], ecx
mov dword [ebp + 0x50], ecx
mov dword [ebp - 4], ecx
mov word [ebp + 0x1c], ax
mov dword [ebp + 0x54], ecx
mov dword [ebp + 0x14], 0xfa0
jne 0x42294e
push 0x498968
push dword [esi + 4]
call fcn.0048040c
test eax, eax
pop ecx
pop ecx
jne 0x422957
mov eax, dword [0x4acef4]
xor edi, edi
cmp eax, edi
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x1c], edi
mov dword [ebp], edi
mov dword [ebp + 4], edi
je 0x4228bb
lea ecx, [ebp]
push ecx
lea ecx, [ebp + 0x18]
push ecx
call eax
lea ecx, [ebp + 0x20]
call fcn.00435d62
push 0x3f
lea eax, [ebp + 0x20]
push eax
push 1
call fcn.0040f851
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
add esp, 0xc
cmp eax, 2
mov esi, 0x498960
jne 0x4228ea
mov esi, 0x498950
jmp 0x422905
cmp eax, 0xffffffff
jne 0x4228f6
mov esi, 0x498934
jmp 0x422905
cmp ecx, edi
ja 0x422905
jb 0x422900
cmp edx, edi
ja 0x422905
mov esi, 0x49891c
movzx eax, dl
shrd edx, ecx, 8
push esi
push eax
movsx eax, dx
push eax
movzx eax, byte [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x1c]
shr ecx, 8
mov ecx, dword [ebp + 0x18]
shrd ecx, eax, 8
shr eax, 8
movsx eax, cx
push eax
mov eax, dword [ebp + 0x7c]
push 0x4988f4
push dword [eax]
mov dword [ebp + 0x24], ecx
call dword [sym.imp.USER32.DLL_wsprintfW]
add esp, 0x1c
lea ecx, [ebp + 0x20]
call fcn.0043092f
jmp case.0x422cad.114
cmp ebx, 1
jle 0x42359a
xor edi, edi
Function at 0x42837b
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xa4
push ebx
push esi
mov esi, dword [ebp + 0x7c]
push edi
push 0x4977c8
lea ecx, [ebp + 0x64]
sar esi, 0x10
call fcn.004403c3
mov ebx, dword [ebp + 0x74]
push esi
push dword [ebx]
call fcn.0040ea74
pop ecx
pop ecx
push 0x20a
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x74], eax
call fcn.00435d80
push dword [ebp + 0x68]
push 0x208
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov edi, dword [ebp + 0x78]
push edi
lea ecx, [ebp - 0x38]
call fcn.0040c4fb
push edi
lea ecx, [ebp - 0x38]
call fcn.0040cabb
push dword [ebp + 0x68]
mov eax, dword [edi + 0x14]
push 0x4976a0
mov dword [ebp - 0x24], eax
call fcn.00435749
movzx eax, si
push eax
lea ecx, [ebp - 0x38]
mov word [ebp - 0xc], si
call fcn.00434c15
mov ecx, dword [ebp + 0x7c]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0x64]
push eax
push dword [ebp + 0x74]
push 0
push ebx
call fcn.00420f25
movzx esi, ax
or esi, dword [ebp + 0x7c]
add esp, 0x14
mov edi, 0x4ad684
push edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
and dword [ebp + 0xc], 0
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push 0
lea ecx, [ebp - 0x38]
call fcn.004282f1
lea ecx, [ebp + 8]
call fcn.0043092f
lea ecx, [ebp + 0x68]
call fcn.0043092f
lea ecx, [ebp + 0x64]
call fcn.0043092f
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x428461
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0xd0
push ebx
push esi
mov dword [ebp + 0x50], ecx
push edi
lea ecx, [ebp + 0x54]
call fcn.00435d62
push dword [ebp + 0x6c]
xor ebx, ebx
lea ecx, [ebp + 0x38]
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x5c], ebx
call fcn.004403c3
mov eax, dword [ebp + 0x38]
mov edi, dword [ebp + 0x74]
and dword [ebp + 0x74], 8
push 0x4977c8
lea ecx, [ebp + 0x4c]
mov dword [ebp + 0x3c], eax
and edi, 0xfffffff7
call fcn.004403c3
call fcn.0040ea8d
mov esi, eax
movzx eax, si
push ebx
push dword [ebp + 0x50]
mov dword [ebp + 0x60], eax
shl dword [ebp + 0x60], 0x10
lea ecx, [ebp - 0x6c]
mov dword [ebp + 0x30], esi
mov dword [ebp + 0x44], eax
call fcn.00428357
push dword [ebp + 0x50]
lea ecx, [ebp - 0x6c]
call fcn.0040cabb
push dword [ebp + 0x6c]
lea ecx, [ebp + 0x48]
call fcn.004403c3
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x48]
push eax
push dword [ebp + 0x6c]
mov dword [ebp + 0x40], ebx
call fcn.00473899
mov eax, dword [ebp + 0x40]
add esp, 0xc
cmp eax, ebx
je 0x428504
mov word [eax - 2], bx
push dword [ebp + 0x48]
lea ecx, [ebp - 0x6c]
push 0x4976a0
call fcn.00435749
push dword [ebp + 0x44]
lea ecx, [ebp - 0x6c]
call fcn.00434c15
mov eax, dword [ebp + 0x54]
push dword [ebp + 0x60]
mov word [ebp - 0x40], si
xor word [eax], si
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x4c]
push eax
push dword [ebp + 0x3c]
lea eax, [ebp + 0x54]
push ebx
push eax
call fcn.004211b3
mov esi, eax
add esp, 0x18
cmp esi, 0xffffffff
jne 0x428558
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
jmp 0x428613
push ebx
lea ecx, [ebp + 0x4c]
call fcn.0044042b
mov eax, dword [ebp + 0x54]
push dword [ebp + 0x30]
mov dword [ebp + 0x34], eax
push eax
call fcn.0040ea74
cmp eax, ebx
pop ecx
pop ecx
jle 0x428611
add eax, 2
push eax
push ebx
push dword [ebp + 0x54]
call fcn.0040eae8
movzx eax, word [ebp + 0x60]
and esi, 2
or esi, eax
or esi, dword [ebp + 0x60]
add esp, 0xc
cmp dword [ebp + 0x74], ebx
mov dword [ebp - 0x28], ebx
je 0x4285a7
push dword [ebp + 0x6c]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [ebp + 0x34], ebx
jne 0x4285b1
xor esi, esi
inc esi
jmp 0x428613
cmp byte [0x4ab280], bl
jge 0x4285c0
mov byte [0x4ab280], 1
push dword [ebp + 0x70]
lea eax, [ebp + 0x54]
push dword [ebp + 0x78]
push eax
push dword [ebp + 0x44]
call fcn.00421650
sub eax, dword [ebp + 0x54]
sar eax, 1
push eax
push edi
push dword [ebp + 0x7c]
lea eax, [ebp + 0x54]
push eax
push dword [ebp + 0x44]
call fcn.004169c1
add esp, 0x24
push eax
mov dword [ebp + 0x74], eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov eax, dword [ebp + 0x54]
mov ecx, dword [ebp + 0x50]
push ebx
push dword [ebp + 0x74]
or esi, edi
push esi
push dword [ebp + 0x3c]
mov dword [ebp + 0x54], ebx
push dword [ebp + 0x70]
push eax
call fcn.00471542
xor esi, esi
lea ecx, [ebp + 0x48]
call fcn.0043092f
push ebx
lea ecx, [ebp - 0x6c]
call fcn.004282f1
lea ecx, [ebp - 0x2c]
call fcn.0043092f
lea ecx, [ebp + 0x4c]
call fcn.0043092f
lea ecx, [ebp + 0x38]
call fcn.0043092f
lea ecx, [ebp + 0x54]
call fcn.0043092f
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x64
leave
ret 0x14
Function at 0x42c82c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
push edi
xor eax, eax
mov ecx, 0xff
lea edi, [ebp - 0x40b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 8
lea eax, [ebp - 0x409]
push 0x499248
push eax
mov byte [ebp - 0x40c], 0xeb
mov byte [ebp - 0x40b], 0x3c
mov byte [ebp - 0x40a], 0x90
call fcn.00480710
mov eax, dword [ebp + 0xc]
push 0xb
mov dword [ebp - 0x3f0], eax
lea eax, [ebp - 0x3e1]
push 0x49923c
mov esi, 0x200
xor ebx, ebx
push eax
mov word [ebp - 0x401], si
mov word [ebp - 0x3fe], 1
mov byte [ebp - 0x3fc], 2
mov word [ebp - 0x3fb], 0xf0
mov byte [ebp - 0x3f7], 0xf0
mov word [ebp - 0x3f4], 0x3f
mov word [ebp - 0x3f2], 0xff
mov byte [ebp - 0x3e8], 0x80
mov byte [ebp - 0x3e6], 0x29
mov dword [ebp - 0x3e5], ebx
call fcn.00480710
push 8
lea eax, [ebp - 0x3d6]
push 0x499230
push eax
call fcn.00480710
movzx eax, word [ebp - 0x3fb]
movzx edi, word [ebp - 0x401]
shl eax, 5
lea eax, [eax + edi - 1]
cdq
idiv edi
movzx ecx, byte [ebp - 0x3fc]
add ecx, 0x100
add esp, 0x24
push ebx
push ebx
push esi
push dword [ebp + 0x10]
mov word [ebp - 0x20e], 0xaa55
push dword [ebp + 0xc]
mov word [ebp - 0x3f9], 0x11
mov byte [ebp - 0x3ff], 1
mov edx, eax
mov eax, ecx
sub eax, edx
movzx edx, word [ebp - 0x3fe]
sub eax, edx
add eax, 0x10
xor edx, edx
div ecx
mov word [ebp - 0x3f6], ax
call fcn.0047fe80
push edx
push eax
push dword [ebp + 8]
call fcn.0043181b
add esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x40c]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_WriteFile]
call ebx
movzx eax, byte [ebp - 0x3fc]
movzx edi, word [ebp - 0x3fb]
mov dword [ebp - 8], eax
movzx eax, word [ebp - 0x3f6]
shl edi, 5
add edi, 0x1ff
sar edi, 9
dec eax
push 0x400
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x40c]
push 0
push eax
call fcn.0047fd70
movzx eax, word [ebp - 0x3fe]
add esp, 0xc
sub eax, 2
js 0x42c9ef
inc eax
mov dword [ebp + 0x10], eax
push 0
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call ebx
dec dword [ebp + 0x10]
jne 0x42c9d7
mov eax, dword [ebp - 8]
test eax, eax
mov dword [ebp - 0x40c], 0xfffff8
jbe 0x42ca45
mov ecx, dword [ebp - 0xc]
dec ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
push 0
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x40c]
push eax
push dword [ebp + 8]
call ebx
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x42ca40
inc eax
mov dword [ebp + 0x10], eax
push 0
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call ebx
dec dword [ebp + 0x10]
jne 0x42ca28
dec dword [ebp - 8]
jne 0x42ca0a
push 0x400
lea eax, [ebp - 0x40c]
push 0
push eax
call fcn.0047fd70
push 0x1a
lea eax, [ebp - 0x40c]
push 0x499214
push eax
call fcn.00480710
add esp, 0x18
push 0
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x40c]
push eax
push dword [ebp + 8]
call ebx
add edi, 0xfffffffe
js 0x42ca9d
inc edi
push 0
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call ebx
dec edi
jne 0x42ca87
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43174a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 0xf003f
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004316e0
add esp, 0x10
test eax, eax
jne 0x431792
push esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x431794
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 0x20006
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004316e0
add esp, 0x10
test eax, eax
jne 0x4317dc
push esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x4317de
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004316e0
add esp, 0x10
test eax, eax
jne 0x431819
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x431e56
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4ad0b8], 0
push edi
mov edi, ecx
jne 0x432085
and dword [ebp - 4], 0
test byte [0x4ada94], 4
jne 0x431e8c
or byte [0x4ada94], 8
push 2
push 0x4949b8
call fcn.0040f24d
pop ecx
pop ecx
push esi
lea eax, [ebp - 4]
push eax
push fcn.004ad0b4
mov esi, 0x49a60c
push esi
push 0x49a600
call fcn.00431911
lea eax, [ebp - 4]
push eax
push fcn.004ad0bc
push esi
push 0x499380
call fcn.00431911
lea eax, [ebp - 4]
push eax
push fcn.004ad0c0
push esi
push 0x49a5f4
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad0c4
push esi
push 0x4993b4
call fcn.00431911
add esp, 0x40
lea eax, [ebp - 4]
push eax
push fcn.004ad0c8
push esi
push 0x49a5ec
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad0cc
push esi
push 0x499378
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad0d0
push esi
push 0x49a5e0
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad0d4
push esi
push 0x49a5d8
call fcn.00431911
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4ad0d8
push esi
push 0x4993ac
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad0dc
push esi
push 0x4993a4
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad0e0
push esi
push 0x49939c
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad0e8
push esi
push 0x49a5cc
call fcn.00431911
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4ad0e4
push esi
push 0x49a5c0
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad0ec
push esi
push 0x499354
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad0f0
push esi
push 0x499360
call fcn.00431911
lea eax, [ebp - 4]
push eax
push fcn.004ad0f4
push esi
push 0x49a5b8
call fcn.00431911
add esp, 0x40
lea eax, [ebp - 4]
push eax
push fcn.004ad0f8
push esi
push 0x49a5b0
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad0fc
push esi
push 0x49a5a8
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad100
push esi
push 0x49a59c
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad104
push esi
push 0x49a58c
call fcn.00431911
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4ad108
push esi
push 0x49a580
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad10c
push esi
push 0x49a570
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad110
push esi
push 0x49a560
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad0b8
push esi
push 0x49a558
call fcn.00431911
add esp, 0x40
pop esi
mov eax, edi
pop edi
leave
ret

Function at 0x433072
Capabilities:
Find taskbar

Disassembly:
push 0
push 0x49a74c
call dword [sym.imp.USER32.DLL_FindWindowA]
push 0
push 0x49a73c
push 0
push eax
call dword [sym.imp.USER32.DLL_FindWindowExA]
ret
Function at 0x433417
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov esi, ecx
jne 0x43342b
lea ebx, [ebp + 0x10]
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jl 0x43346e
mov eax, dword [esi + 4]
push edi
lea ecx, [ebp + 0x10]
push ecx
push 0x1000
push eax
push dword [esi]
mov dword [esi + 8], edi
mov dword [ebp + 0x10], edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp eax, edi
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0xc], ecx
jne 0x433464
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
je 0x43346e
cmp dword [ebp + 0x10], edi
jne 0x43346e
dec dword [esi + 0x14]
jns 0x433433
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jge 0x43348e
lea ecx, [eax + 1]
mov dword [esi + 8], ecx
mov ecx, dword [esi + 4]
mov al, byte [eax + ecx]
mov ecx, dword [ebp + 8]
mov byte [ecx], al
xor eax, eax
inc eax
mov dword [ebx], eax
jmp 0x433492
mov dword [ebx], edi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4339a6
Capabilities:
Delete registry key

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x108
push esi
push edi
mov ax, word [ebp + 0x7c]
push 0x20
pop ecx
mov esi, 0x49a9e8
lea edi, [ebp - 0x10]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x21
pop ecx
mov esi, 0x49a960
lea edi, [ebp - 0x94]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.ADVAPI32.DLL_RegDeleteKeyW]
mov word [ebp + 0x6e], ax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x10]
push eax
mov edi, 0x80000001
push edi
call esi
lea eax, [ebp - 0x94]
push eax
push edi
call esi
pop edi
pop esi
add ebp, 0x74
leave
ret

Function at 0x433c53
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push 0x7405c
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call ebx
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x18
push esi
push edi
push edi
push 0x70000
push dword [ebp + 8]
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
call ebx
cmp dword [ebp - 8], edi
je 0x433cb2
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x433ccf
mov eax, dword [esi + 0x14]
mul dword [esi + 0x10]
push edi
push dword [esi + 0xc]
push edx
push eax
call fcn.0047fe80
push dword [esi + 4]
push dword [esi]
push edx
push eax
call fcn.0047fe80
pop edi
pop ebx
leave
ret
Function at 0x433ed8
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
push 0xc0
push esi
push ebx
mov dword [edi], esi
call fcn.0047fd70
add esp, 0xc
push esi
lea eax, [ebp + 0x10]
push eax
push 0x100000
push ebx
push esi
push esi
push 0x70050
push dword [ebp + 8]
mov dword [ebp + 0x10], esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x433f20
mov eax, dword [ebx + 4]
mov dword [edi], eax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x43428a
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
push ebx
push esi
push edi
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x318], esi
mov ecx, 0xc3
lea edi, [ebp - 0x314]
rep stosd dword es:[edi], eax
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
xor edi, edi
inc edi
test eax, eax
jne 0x4342d1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
mov dword [ebp - 4], edi
je 0x4342d4
mov dword [ebp - 4], esi
push esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push esi
push 0x2200000
push 3
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x434301
xor eax, eax
jmp 0x434389
push dword [ebp + 0xc]
mov dword [ebp - 0x318], 0xa0000003
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push dword [ebp + 0xc]
shl eax, 1
mov word [ebp - 0x30e], ax
mov eax, dword [ebp - 0x30e]
add eax, 2
mov word [ebp - 0x30c], ax
lea eax, [ebp - 0x308]
push eax
call fcn.00482615
movzx eax, word [ebp - 0x30e]
pop ecx
pop ecx
push esi
lea ecx, [ebp - 8]
push ecx
push esi
add eax, 0xc
push esi
mov dword [ebp - 0x314], eax
add eax, 8
push eax
lea eax, [ebp - 0x318]
push eax
push 0x900a4
push ebx
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
jne 0x434380
cmp dword [ebp - 4], esi
jne 0x43437e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4343b7
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.DLL_OpenClipboard]
test eax, eax
je 0x434414
push esi
push edi
call dword [sym.imp.USER32.DLL_EmptyClipboard]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea esi, [eax + eax + 2]
push esi
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push esi
push dword [esp + 0x10]
push eax
call fcn.004102e0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.DLL_SetClipboardData]
pop edi
pop esi
jmp dword [sym.imp.USER32.DLL_CloseClipboard]
ret
Function at 0x43444a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_VirtualProtect]
push esi
push edi
lea eax, [ebp - 4]
push eax
push pe_nt_image_headers32
mov esi, ecx
push 0xc
push dword [esi]
lea edi, [esi + 4]
call ebx
lea eax, [ebp - 4]
push eax
push pe_nt_image_headers32
push 0x12
push edi
call ebx
push 0x12
push 0x499bfc
push edi
call fcn.004102e0
mov ecx, dword [ebp + 8]
lea eax, [edi + 0xe]
sub ecx, eax
sub ecx, 4
mov dword [eax], ecx
mov esi, dword [esi + 0x18]
add esp, 0xc
test esi, esi
je 0x4344ae
push edi
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.DLL_SetWindowLongW]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4344ae
mov dword [ecx], eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4349af
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x14]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
mov dword [ebp + 0x14], 0x80
jbe 0x434a3e
push ebx
mov ebx, 0x200
push dword [ebp + 0x18]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x434a08
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4349fe
cmp dword [ebp + 0x14], eax
jg 0x4349fb
mov eax, edi
jmp 0x4349fe
dec dword [ebp + 0x14]
add dword [esi], eax
add dword [ebp + 0xc], eax
sub dword [ebp + 0x10], eax
jmp 0x434a37
and dword [ebp + 0x14], 0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x70
jne 0x434a3d
cmp edi, ebx
jbe 0x434a3d
cmp dword [ebp + 0x10], ebx
jbe 0x434a34
add edi, 0x1ff
shr edi, 1
cmp edi, ebx
jbe 0x434a37
and edi, 0xfffffe00
jmp 0x434a37
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0
ja 0x4349cf
pop ebx
xor eax, eax
cmp eax, dword [esi]
pop edi
sbb eax, eax
neg eax
pop esi
leave
ret

Function at 0x434ab9
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
and dword [0x4ad268], 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.DLL_GetKeyboardState]
test byte [ebp - 0xef], 0x80
je 0x434ae6
or dword [0x4ad268], 2
test byte [ebp - 0xf0], 0x80
je 0x434af6
or dword [0x4ad268], 4
test byte [ebp - 0xee], 0x80
je 0x434b06
or dword [0x4ad268], 1
test byte [ebp - 0xa5], 0x80
je 0x434b16
or dword [0x4ad268], 8
test byte [ebp - 0xa4], 0x80
je 0x434b26
or dword [0x4ad268], 8
leave
ret