joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401fe0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.00402040

Function at 0x402040
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4063c0]
test esi, esi
jle 0x402133
mov edi, dword [0x4063c4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x402074
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x40212c
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x402060
mov dword [esp], eax
mov esi, eax
call fcn.00402930
test eax, eax
mov edi, eax
je 0x402170
mov esi, dword [0x4063c4]
lea ebx, [ebx + ebx*4]
shl ebx, 2
add esi, ebx
mov dword [esi + 0x10], eax
mov dword [esi], 0
call fcn.00402a40
add eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x4063c4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x402150
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x402125
sub eax, 4
and eax, 0xfffffffb
je 0x402125
add ebx, dword [0x4063c4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x40213a
add dword [0x4063c0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor ebx, ebx
jmp 0x40207e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401fe0
mov eax, dword [0x4063c4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401fe0
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401fe0
Function at 0x4025b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4063d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4063d0]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x402605
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4025fe
test esi, esi
je 0x4025fe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4025e0
mov dword [esp], 0x4063d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4052f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468948
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x481e08]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp - 0x68]
cmp dword [eax + 0x3c], 0
je 0x405330
mov ecx, dword [ebp - 0x68]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x40533c
mov al, 1
jmp 0x4054df
mov dword [ebp - 0x10], 8
call fcn.0040a530
push eax
mov eax, dword [ebp - 0x68]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x68]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x3c], eax
call fcn.0040a530
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.0040a400
add esp, 8
movzx eax, al
test eax, eax
je 0x40537f
xor al, al
jmp 0x4054df
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.004040b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x34]
call fcn.00404180
mov ecx, eax
call fcn.004056c0
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.00402db0
add esi, eax
push esi
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.00404180
mov ecx, eax
call fcn.004056c0
push eax
mov ecx, dword [ebp - 0x68]
add ecx, 0x44
push ecx
mov edx, dword [ebp - 0x68]
mov ecx, dword [edx + 0x3c]
call fcn.00406a90
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x4053fa
cmp dword [ebp - 0x6c], 1
je 0x405401
cmp dword [ebp - 0x6c], 3
je 0x40549b
jmp 0x4054b3
mov eax, dword [ebp - 0x68]
mov byte [eax + 0x41], 0
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00404180
mov ecx, eax
call fcn.004056c0
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x405464
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x34]
call fcn.00404180
mov ecx, eax
call fcn.004056c0
push eax
call fcn.00439da8
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x405464
mov byte [ebp - 0x61], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004025d0
mov al, byte [ebp - 0x61]
jmp 0x4054df
mov ecx, dword [ebp - 0x68]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x405487
mov byte [ebp - 0x62], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004025d0
mov al, byte [ebp - 0x62]
jmp 0x4054df
cmp dword [ebp - 0x38], 0
jne 0x405499
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.004040f0
jmp 0x4054cb
mov byte [ebp - 0x63], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004025d0
mov al, byte [ebp - 0x63]
jmp 0x4054df
mov byte [ebp - 0x64], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004025d0
mov al, byte [ebp - 0x64]
jmp 0x4054df
jmp 0x405392
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00439a7d
mov esp, ebp
pop ebp
ret
Function at 0x40c480
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
test ax, ax
jge 0x40c496
push 8
pop edi
push 2
call esi
test ax, ax
jge 0x40c4a2
or edi, 1
push 1
call esi
test ax, ax
jge 0x40c4ae
or edi, 2
push 0x10
call esi
test ax, ax
jge 0x40c4ba
or edi, 4
push 0x12
call esi
test ax, ax
jge 0x40c4c6
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x40def5
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi]
mov ebx, dword [ebp + 8]
cmp eax, ecx
je 0x40df1a
cmp ebx, dword [esi + 0x54]
je 0x40df1a
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x54]
cmp ebx, eax
je 0x40dfdc
push edi
test eax, eax
je 0x40df6d
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [esi + 0x54]
mov ecx, esi
call fcn.0040d987
mov dword [esi + 0x54], edi
test ebx, ebx
je 0x40dfdb
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x40dfdb
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test al, al
je 0x40dfdb
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xd4]
test al, al
je 0x40dfdb
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [esi + 0x54], ebx
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor eax, eax
push eax
push eax
push eax
push str.setfocus
push dword [esi + 0x54]
mov ecx, esi
call fcn.0040d987
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x411799
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
sub esp, 0x2b4
lea ebp, [esp - 4]
mov eax, dword [0x481e08]
xor eax, ebp
mov dword [ebp + 0x2b4], eax
push 0xc
mov eax, 0x466293
call fcn.0043e4d9
mov edi, dword [ebp + 0x2c0]
mov ebx, ecx
call fcn.00410d1b
call fcn.0040c53b
push eax
lea ecx, [ebp + 0x230]
call fcn.00412077
xor esi, esi
mov dword [ebp - 4], esi
call fcn.0040c541
mov ecx, eax
call fcn.00411e0c
test al, al
je 0x4118fb
push edi
lea ecx, [ebp + 0x230]
call fcn.00411e9c
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
lea ecx, [ebp + 0x230]
call fcn.00411cb2
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
push esi
cmp eax, 0xffffffff
jne 0x41186f
push str.Error_opening_file
mov ecx, ebx
call fcn.00410ef1
mov bl, al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x230]
call fcn.00411ce7
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2b4]
xor ecx, ebp
call fcn.00439a7d
add ebp, 0x2b8
leave
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, esi
jne 0x411884
push esi
push str.File_is_empty
jmp 0x411830
cmp edi, 0x400000
jbe 0x411894
push esi
push str.File_too_large
jmp 0x411830
push edi
mov dword [ebp - 0x14], esi
call fcn.0040b9d4
pop ecx
push esi
lea ecx, [ebp - 0x14]
push ecx
push edi
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], edi
je 0x4118da
push dword [ebp - 0x10]
call fcn.0043a8c5
pop ecx
mov ecx, ebx
call fcn.00410d1b
push esi
push str.Could_not_read_file
jmp 0x411830
push dword [ebp + 0x2c4]
mov ecx, ebx
push edi
push dword [ebp - 0x10]
call fcn.00411648
push dword [ebp - 0x10]
mov bl, al
call fcn.0043a8c5
pop ecx
jmp 0x411839
call fcn.0040c541
push eax
lea ecx, [ebp + 0x230]
call fcn.00411e82
call fcn.0040c547
test al, al
je 0x41191c
call fcn.0040c54d
jmp 0x411933
push 2
push esi
lea ecx, [ebp + 0x230]
call fcn.00411cb2
push eax
call fcn.00417d54
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp eax, esi
jne 0x411945
push esi
push str.Error_opening_zip_file
jmp 0x411830
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push edi
push dword [ebp - 0x10]
call fcn.00416452
add esp, 0x14
test eax, eax
je 0x41196a
push esi
push str.Could_not_find_ziped_file
jmp 0x411830
mov eax, dword [ebp + 0x22c]
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x41187c
cmp eax, 0x400000
ja 0x41188c
push eax
call fcn.0040b9d4
push 3
push dword [ebp - 0x14]
mov edi, eax
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.00417db1
add esp, 0x18
cmp eax, esi
je 0x4119d1
cmp eax, 0x600
je 0x4119d1
push edi
call fcn.0043a8c5
pop ecx
call fcn.0040c547
test al, al
jne 0x4119c6
push dword [ebp - 0x10]
call fcn.00417deb
pop ecx
push esi
push str.Could_not_unzip_file
jmp 0x411830
call fcn.0040c547
test al, al
jne 0x4119e3
push dword [ebp - 0x10]
call fcn.00417deb
pop ecx
push dword [ebp + 0x2c4]
mov ecx, ebx
push dword [ebp - 0x14]
push edi
call fcn.00411648
push edi
jmp 0x4118ee
Function at 0x41502b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x415036
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x4150f1
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x46bd40]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x46bd40]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x46bd40]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x46bd40]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x46bd40]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x46bd40]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x46bd40]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x46bd40]
inc edx
sub edi, 8
dec esi
jne 0x415056
pop ebx
test edi, edi
je 0x41510a
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x46bd40]
inc edx
dec edi
jne 0x4150f5
pop edi
not eax
pop esi
ret

Function at 0x4155a1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x4155d5
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4155d0
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4155fd
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x4155e6
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0043aa10
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x41639a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x481e08]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x416444
movzx ecx, word [esi]
test cx, cx
je 0x416444
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x4163d8
cmp cx, 0x5c
jne 0x4163da
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x4163cc
cmp eax, esi
je 0x416418
push edi
sub eax, esi
mov edi, eax
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0044003c
xor eax, eax
mov word [ebp + edi*2 - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0041639a
add esp, 0x14
pop edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0043ded8
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0043deaa
add esp, 0x10
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00439a7d
leave
ret
Function at 0x417975
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4179f0
cmp dword [esi + 4], 0xffffffff
jne 0x4179f0
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x46c33c
push edi
call fcn.0043deaa
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x4179c2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4179c2
mov eax, 0x2000000
jmp 0x4179f5
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004153b7
add esp, 0x10
test eax, eax
jne 0x4179e0
mov eax, dword [ebp + 0x10]
jmp 0x4179f5
push eax
call fcn.00417571
mov dword [esi], eax
mov eax, dword [0x4838fc]
pop ecx
jmp 0x4179f5
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x41ea2c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x481e08]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x18], bl
je 0x41ea9d
cmp dword [esi + 0x10], ebx
je 0x41ea9d
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
inc edi
lea eax, [edi + edi]
call fcn.00440010
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x41ea9d
push edi
push dword [ebp - 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push dword [ebp - 8]
add ecx, 0x1b8
call fcn.00411e60
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
push 0x46c8cc
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0040d987
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439a7d
leave
ret 0x10

Function at 0x4203b1
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x4d4], ebx
je 0x420419
cmp dword [ebp + 8], 0x100
jne 0x420408
cmp word [ebp + 0xc], 0xd
jne 0x420408
cmp byte [esi + 0x4da], bl
je 0x4203ef
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x420408
cmp byte [esi + 0x4db], bl
jne 0x420408
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x420404
push ebx
push ebx
push ebx
push 0x46ca20
push esi
call fcn.0040d987
xor eax, eax
jmp 0x42041c
mov eax, dword [esi + 0x4d4]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop esi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x435b4e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x435b73
cmp eax, edi
jge 0x435b6b
mov eax, esi
call fcn.00435502
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
xor ecx, ecx
cmp dword [esi + 8], ecx
jle 0x435b95
mov al, byte [esi + 0xc]
shr dword [esi + 0xc], 8
add dword [esi + 8], 0xfffffff8
mov byte [ebp + ecx - 4], al
inc ecx
cmp dword [esi + 8], 0
jg 0x435b7a
cmp ecx, 4
jge 0x435bb4
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x435ba2
xor eax, eax
jmp 0x435baa
mov dl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, dl
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x435b98
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x435be6
mov eax, str.zlib_corrupt
call fcn.0043311f
jmp 0x435c21
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x435bf6
mov eax, str.read_past_buffer
jmp 0x435bdf
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x435c0b
mov ecx, edi
call fcn.0043552d
test eax, eax
je 0x435c21
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0043aa10
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret

Function at 0x439a7d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x481e08]
jne 0x439a87
repz ret
jmp fcn.00442362

Function at 0x439a8c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x439abd
call fcn.004424bd
mov dword [eax], esi
call fcn.004424aa
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0043d2d5
add esp, 0x14
push 0x16
pop eax
jmp 0x439b12
test dword [ebp + 0xc], 0xfffffff9
jne 0x439a99
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x439aea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004424d0
pop ecx
call fcn.004424aa
mov eax, dword [eax]
jmp 0x439b12
test al, 0x10
jne 0x439b10
test al, 1
je 0x439b10
test byte [ebp + 0xc], 2
je 0x439b10
call fcn.004424bd
mov dword [eax], 5
call fcn.004424aa
mov dword [eax], 0xd
jmp 0x439ae1
xor eax, eax
pop esi
pop ebp
ret
Function at 0x43d0cb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x43d0fc
call fcn.004424bd
mov dword [eax], esi
call fcn.004424aa
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0043d2d5
add esp, 0x14
push 0x16
pop eax
jmp 0x43d151
test dword [ebp + 0xc], 0xfffffff9
jne 0x43d0d8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43d129
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004424d0
pop ecx
call fcn.004424aa
mov eax, dword [eax]
jmp 0x43d151
test al, 0x10
jne 0x43d14f
test al, 1
je 0x43d14f
test byte [ebp + 0xc], 2
je 0x43d14f
call fcn.004424bd
mov dword [eax], 5
call fcn.004424aa
mov dword [eax], 0xd
jmp 0x43d120
xor eax, eax
pop esi
pop ebp
ret

Function at 0x44c3f9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004454f4
and dword [ebp - 4], 0
cmp dword [0x484694], 0
mov ebx, eax
jne 0x44c4aa
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44c55b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x44c55b
push eax
call fcn.00445482
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x484694], eax
call esi
push eax
call fcn.00445482
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x484698], eax
call esi
push eax
call fcn.00445482
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x48469c], eax
call esi
push eax
call fcn.00445482
pop ecx
mov dword [0x4846a4], eax
test eax, eax
je 0x44c4aa
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00445482
pop ecx
mov dword [0x4846a0], eax
mov eax, dword [0x4846a0]
cmp eax, ebx
je 0x44c502
cmp dword [0x4846a4], ebx
je 0x44c502
push eax
call fcn.004454fd
push dword [0x4846a4]
mov esi, eax
call fcn.004454fd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44c502
test edi, edi
je 0x44c502
call esi
test eax, eax
je 0x44c4f9
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44c4f9
test byte [ebp - 0xc], 1
jne 0x44c502
or dword [ebp + 0x10], 0x200000
jmp 0x44c53b
mov eax, dword [0x484698]
cmp eax, ebx
je 0x44c53b
push eax
call fcn.004454fd
pop ecx
test eax, eax
je 0x44c53b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44c53b
mov eax, dword [0x48469c]
cmp eax, ebx
je 0x44c53b
push eax
call fcn.004454fd
pop ecx
test eax, eax
je 0x44c53b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x484694]
call fcn.004454fd
pop ecx
test eax, eax
je 0x44c55b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44c55d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x450680
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x870
mov eax, dword [0x481e08]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x808], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x806]
push ecx
call fcn.0043a770
add esp, 0xc
push str.cmd.exe__C
lea edx, [ebp - 0x808]
push edx
call fcn.0043ded8
add esp, 8
lea ecx, [ebp + 8]
call fcn.00401160
push eax
lea eax, [ebp - 0x808]
push eax
call fcn.0043deaa
add esp, 8
mov dword [ebp - 0x868], 0x44
lea ecx, [ebp - 0x868]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor edx, edx
mov word [ebp - 0x838], dx
mov dword [ebp - 0x83c], 0x101
lea eax, [ebp - 0x818]
push eax
lea ecx, [ebp - 0x868]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
lea edx, [ebp - 0x808]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x81c], eax
cmp dword [ebp - 0x81c], 0
jne 0x45075a
mov dword [ebp - 0x86c], 0
lea ecx, [ebp + 8]
call fcn.004010b0
mov eax, dword [ebp - 0x86c]
jmp 0x4507b0
mov dword [ebp - 0x820], 0x7530
mov eax, dword [ebp - 0x820]
push eax
mov ecx, dword [ebp - 0x818]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45077e
jmp 0x450764
mov edx, dword [ebp - 0x814]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x870], 1
lea ecx, [ebp + 8]
call fcn.004010b0
mov eax, dword [ebp - 0x870]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439a7d
mov esp, ebp
pop ebp
ret