joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44bad0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [esi], 0
mov al, byte [0x66104a]
mov cl, byte [0x66104d]
mov edx, dword [0x661030]
and cl, al
mov eax, dword [0x661034]
mov byte [0x66104d], cl
mov ecx, eax
shr ecx, 2
sub edx, ecx
xor ecx, ecx
mov cl, byte [0x661043]
mov dword [0x661030], edx
mov edx, dword [0x661038]
or edx, 7
imul edx, ecx
and eax, edx
mov dword [0x661034], eax
call fcn.0044ba10
mov edx, dword [0x664abc]
push edx
call dword [sym.imp.GDI32.dll_SaveDC]
mov dword [esi], eax
mov eax, dword [0x664abc]
push eax
call dword [sym.imp.ole32.dll_CoRevokeClassObject]
push 0
call sub.comdlg32.dll_FindTextW
push edi
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x44bb5b
or dword [esi], 0x2000000
mov eax, esi
pop edi
pop esi
ret

Function at 0x4899c9
Capabilities:
Encode data using xor

Disassembly:
jge 0x489a0f
push esi
sub dl, byte [ebx - 0x79]
aas
aad 0x2c
and byte [eax + 0x64], bl
jno 0x489a25
jns 0x489a41
pushfd
xchg esp, eax
mov al, byte [0x930c50c4]
jmp 0xef77f52c
wait
mov bh, 0xa2
mov edi, dword [ebx - 0x7de9559a]
out 0xf0, eax
mov eax, dword [0x38272cf0]
dec edi
and dword [edx + ebx*4 + 0x2d], eax
or eax, 0x9011c031
rcr byte [edi], 0x9a
iretd
xor eax, eax
adc dword [eax - 0x3065e040], edx
add dword [ecx - 0x60], 0xffffffc5
mov byte [ecx], bl
mov al, byte [0xa014e0bf]
je 0x489a72
dec esp
popfd
insd dword es:[edi], dx
or dword [ebx], ebp
jg 0x489a12
sal byte [edx + edx - 0x60], 1
stosd dword es:[edi], eax
xor ecx, dword [ebp + esi - 0x632c9b88]
insb byte es:[edi], dx
in al, 0xb5
inc esp
fisttp word [edx + 0x3d71cf02]
sbb byte [edx + 0x26002851], bh
je 0x489a56
mov al, byte [0x358c33ab]
js 0x489aaf
rcr dword [esp + ebp*2 - 0x20bb4a1c], cl
mov al, byte [edx]
iretd
cmp eax, 0x2851ba18
add byte [esi], ah
invalid
outsb dx, byte [esi]
les ebx, [edi - 0x2b]
stc
ret 0x3a5a
rcl ebx, 0xcf
je 0x489ace
sbb ebx, dword [ebx]
invalid
jb 0x489b28
hlt
sti
inc ebp
inc edx
rol byte [esi - 0x558f7a90], 0xd5
dec eax
push ebx
stosd dword es:[edi], eax
invalid

Function at 0x5b5ad9
Capabilities:
Encode data using xor

Disassembly:
bound ecx, qword [ebx]
pop edx
insb byte es:[edi], dx
inc esp
mov edx, 0x9efb6aae
ljmp 0x94e2
cwde
invalid
call 0x1b505045
aaa
mov ebx, 0x18a70b76
mov dword [ecx + 0x51], ecx
mov esi, dword [esi - 0x59]
cmpsd dword [esi], dword es:[edi]
sbb byte [ecx + 0x768b5149], cl
cmpsd dword [esi], dword es:[edi]
cmp byte [edx + esi + 0x5b], dh
pop ebp
xor eax, 0x317149cf
xor ecx, dword [edx]
inc ebx
test eax, 0xf381d2c6
and dword es:[eax], ebp
test eax, 0x739ffe0b
cmp dl, bh
xlatb
and ebx, ebx
add al, byte [ebp + 0x33]
pop ecx
sbb dword [ecx - 0x1c], esp
movsb byte es:[edi], byte [esi]
pop ebx
and eax, 0xb0fd5923
jp 0x5b5ad7
jae 0x5b5abe
loopne 0x5b5b07
mov ch, 0xf0
stosd dword es:[edi], eax
pop edx
inc edx
pushal
wait
jp 0x5b5b68
jp 0x5b5b52
int 0xe1
jmp 0xd3672bb9
push ss
ja 0x5b5ae2
jle 0x5b5ba2
movsb byte es:[edi], byte [esi]
test eax, 0xf50e8278
or al, byte [esi + 0x3e5169d1]
inc esi
sbb dword [edx + edx*8 + 3], edi
cmp ebx, dword [edx + 0x5a]
add edi, dword [ebx]
pop edx
pop edx
mov dl, 0x85
invalid
push cs
ret
Function at 0x403558
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x632ecc
call fcn.004acdbb
mov edi, eax
mov dword [ebp - 4], 1
cmp edi, esi
je 0x4035fe
push ebx
test esi, esi
jne 0x4035fd
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
movzx eax, ax
push 6
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4035e7
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4035ab
xor eax, eax
jmp 0x4035e5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4035a7
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x4035d8
cmp esi, eax
jae 0x4035a7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4035ca
cmp esi, eax
jae 0x4035a7
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
push dword [ebp - 4]
mov ecx, 0x632ecc
call fcn.004acdbb
inc dword [ebp - 4]
mov edi, eax
test edi, edi
jne 0x40357d
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x4052f5
Capabilities:
Delete file

Disassembly:
push 0x3c
mov eax, 0x5a3574
call fcn.00495539
xor esi, esi
mov ebx, ecx
cmp dword [ebp + 8], esi
je 0x405310
cmp dword [ebp + 8], 4
jne 0x405386
mov eax, dword [ebx - 0x6b0]
push 0xc
push eax
call dword [sym.imp.USER32.dll_KillTimer]
cmp dword [ebx + 0x224], esi
je 0x405386
lea eax, [ebp - 0x48]
push 0x5ff8dc
lea edi, [ebx + 0x58]
push eax
call fcn.00401638
push str.dyinstaller.exe
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], esi
call fcn.0040a4f4
add esp, 0x10
push 1
xor edi, edi
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00401ad5
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x405368
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebx + 0x224]
call fcn.0040f28f
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.00401ad5
call fcn.00495583
ret 8

Function at 0x40554e
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59fe2c
mov eax, dword fs:[0]
push eax
mov eax, 0x1040
call fcn.0049f020
mov eax, dword [0x621810]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, ebx
call fcn.004056f9
mov byte [ebp - 0x1049], al
test al, al
je 0x4056da
lea eax, [ebx + 0x728]
push eax
lea ecx, [ebp - 0x1048]
mov byte [ebp - 0x104a], 0
call fcn.0044b9b0
and dword [ebp - 4], 0
mov dword [esp], str._bin_test_app.ini
push eax
lea eax, [ebp - 0x102c]
call fcn.0040a4f4
pop ecx
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x1048]
mov byte [ebp - 4], 2
call fcn.00401ad5
cmp dword [ebp - 0x1018], 8
mov eax, dword [ebp - 0x102c]
jae 0x4055ee
lea eax, [ebp - 0x102c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405662
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x1010], ax
lea eax, [ebp - 0x100e]
push eax
call fcn.0048cf80
mov eax, dword [ebp - 0x102c]
add esp, 0xc
cmp dword [ebp - 0x1018], 8
jae 0x40562c
lea eax, [ebp - 0x102c]
push eax
push 0x800
lea eax, [ebp - 0x1010]
push eax
push 0x5ff550
push str.TestClient
push 0x5ff30c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x1010]
push eax
call fcn.0048cae1
test eax, eax
pop ecx
setne al
jmp 0x405668
mov al, byte [ebp - 0x104a]
cmp byte [ebx + 0x784], al
je 0x4056cb
lea eax, [ebx + 0x728]
and dword [eax + 0x10], edi
cmp dword [eax + 0x14], 8
mov byte [ebp - 0x1049], 0
jb 0x405688
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
call fcn.00402e69
movzx edx, byte [ebx + 0x784]
mov ecx, dword [eax]
push edx
mov esi, 0x5ffb6c
push esi
push str.MainDlg.cpp
push 0x384
push 2
push eax
call dword [ecx + 8]
call fcn.00402e2e
movzx edx, byte [ebx + 0x784]
mov ecx, dword [eax]
push edx
push esi
push 2
push eax
call dword [ecx + 4]
add esp, 0x28
push 1
xor edi, edi
lea esi, [ebp - 0x102c]
call fcn.00401ad5
mov al, byte [ebp - 0x1049]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b951
leave
ret
Function at 0x4064d4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a0f56
mov eax, dword fs:[0]
push eax
sub esp, 0x328
mov eax, dword [0x621810]
xor eax, esp
mov dword [esp + 0x320], eax
push ebx
push esi
push edi
mov eax, dword [0x621810]
xor eax, esp
push eax
lea eax, [esp + 0x338]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
and dword [esp + 0x1c], 0
mov esi, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], esi
call fcn.00448020
push eax
lea ecx, [esp + 0x28]
call fcn.0044b9b0
pop ecx
and dword [esp + 0x340], 0
cmp dword [esi + 0x14], 8
jb 0x406546
mov esi, dword [esi]
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x406555
lea eax, [esp + 0x24]
push esi
push eax
lea eax, [esp + 0x48]
push str._s_s
push eax
call fcn.00445760
add esp, 0x10
mov ebx, eax
lea eax, [esp + 0x24]
mov byte [esp + 0x340], 1
call fcn.004016e5
push 1
xor edi, edi
lea esi, [esp + 0x44]
mov byte [esp + 0x344], 0
call fcn.00401ad5
lea eax, [esp + 0x24]
push eax
call fcn.0044c820
pop ecx
test al, al
je 0x4065c0
lea eax, [esp + 0x24]
push eax
call fcn.0040604b
test al, al
je 0x4065c0
mov esi, dword [esp + 0x18]
lea ebx, [esp + 0x24]
call fcn.00401696
jmp 0x4066d8
push 0x64
lea eax, [esp + 0x60]
push 0
push eax
call fcn.0048cf80
add esp, 0xc
lea eax, [esp + 0x5c]
push eax
push 0x64
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea eax, [esp + 0x5c]
mov dword [esp + 0x1c], eax
cmp word [esp + 0x5c], di
je 0x4066ca
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
push 0x206
push eax
mov word [esp + 0x12c], ax
lea eax, [esp + 0x12e]
push eax
call fcn.0048cf80
add esp, 0xc
push dword [esp + 0x1c]
lea eax, [esp + 0x128]
push 0x104
push eax
call fcn.0048cf17
add esp, 0xc
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4066ad
push 0x5ffce8
lea eax, [esp + 0x128]
push eax
call ebx
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x14], 8
jb 0x40665e
mov eax, dword [eax]
push eax
lea eax, [esp + 0x128]
push eax
call ebx
lea eax, [esp + 0x124]
push eax
lea eax, [esp + 0x44]
call fcn.004018af
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x344], 2
call fcn.0044c820
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0x44]
mov byte [esp + 0x1b], al
mov byte [esp + 0x344], 0
call fcn.00401ad5
cmp byte [esp + 0x17], 0
jne 0x40670f
mov esi, dword [esp + 0x1c]
push esi
call fcn.0048c5ca
lea eax, [esi + eax*2 + 2]
cmp word [eax], 0
pop ecx
mov dword [esp + 0x1c], eax
jne 0x4065f7
push 0x5fe734
mov eax, dword [esp + 0x1c]
call fcn.004018af
push 1
xor edi, edi
lea esi, [esp + 0x28]
call fcn.00401ad5
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x338]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x320]
xor ecx, esp
call fcn.0048b951
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x124]
push eax
jmp 0x4066cf
Function at 0x406719
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.0048cf80
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
mov dword [ebp - 0x58], 0x44
call fcn.0048cf80
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40676a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x406787
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
xor edx, edx
pop esi
leave
ret 8
Function at 0x4070a5
Capabilities:
Write file on windows

Disassembly:
push 0x58
mov eax, 0x59e9dc
call fcn.00495539
mov esi, ecx
push esi
mov edi, edx
call fcn.0044aa40
cmp dword [esi + 0x14], 8
pop ecx
jb 0x4070c4
mov esi, dword [esi]
push 0x5ffdd0
push esi
lea eax, [ebp - 0x64]
push str._s_s
push eax
call fcn.00445760
add esp, 0x10
and dword [ebp - 4], 0
push str.wb_ccsUTF_8
lea eax, [ebp - 0x2c]
call fcn.004018af
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x4070fe
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x40710a
lea eax, [ebp - 0x64]
push ecx
push eax
call fcn.0048d3b4
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40714e
mov ecx, edi
lea eax, [ebp - 0x48]
call fcn.00445720
cmp dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 0x48]
jae 0x40712f
lea eax, [ebp - 0x48]
push esi
push ebx
push dword [ebp - 0x38]
push eax
call fcn.0048d522
push esi
call fcn.0048d609
add esp, 0x14
push 0
push ebx
lea ecx, [ebp - 0x48]
call fcn.0040342c
push ebx
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.00401ad5
push ebx
lea esi, [ebp - 0x64]
call fcn.00401ad5
call fcn.00495583
ret
Function at 0x407168
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a28fe
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x621810]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x621810]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x10], esi
mov dword [esi + 0x764], ebx
call fcn.00402e69
mov ecx, dword [eax]
mov edi, str.CalcMd5
push edi
push str.MainDlg.cpp
push 0x62f
push ebx
push eax
call dword [ecx + 8]
add esp, 0x14
call fcn.00402e2e
mov ecx, dword [eax]
push edi
push ebx
push eax
call dword [ecx + 4]
lea eax, [esi + 0x744]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4071ea
mov eax, dword [eax]
push str.dyinstaller.exe
push eax
lea eax, [esp + 0x24]
push str._s_s
push eax
call fcn.00445760
add esp, 0x10
mov dword [esp + 0x48], ebx
add esi, 0x768
mov ebx, eax
mov eax, esi
mov dword [esp + 0x14], esi
call fcn.004016e5
or dword [esp + 0x48], 0xffffffff
push 1
xor edi, edi
lea esi, [esp + 0x20]
call fcn.00401ad5
mov edi, dword [esp + 0x14]
mov ecx, edi
call fcn.0044b110
mov esi, dword [esp + 0x10]
and dword [0x635670], 0
and dword [esi + 0x7a4], 0
or dword [esi + 0x7a8], 0xffffffff
mov dword [0x635668], eax
mov dword [0x63566c], edx
mov byte [esi + 0x938], 1
call fcn.00402e69
cmp dword [edi + 0x14], 8
jb 0x407270
mov ecx, dword [edi]
jmp 0x407272
mov ecx, edi
push dword [0x63566c]
mov edx, dword [eax]
push dword [0x635668]
mov ebx, str.file:_s__size:_I64d
push ecx
push ebx
push str.MainDlg.cpp
push 0x638
push 0
push eax
call dword [edx + 8]
add esp, 0x20
call fcn.00402e2e
cmp dword [edi + 0x14], 8
jb 0x4072a7
mov edi, dword [edi]
push dword [0x63566c]
mov ecx, dword [eax]
push dword [0x635668]
push edi
push ebx
xor ebx, ebx
push ebx
push eax
call dword [ecx + 4]
mov ecx, dword [esi + 0x6c4]
add esp, 0x18
cmp ecx, ebx
je 0x4072ed
mov eax, dword [ecx]
mov dword [ecx + 0xa24], 4
call dword [eax + 0x100]
mov ecx, dword [esi + 0x6c4]
mov eax, dword [ecx]
push 0x5fffe8
call dword [eax + 0x2c]
lea eax, [esp + 0x18]
push eax
push ebx
push esi
push 0x4074d4
push ebx
push ebx
call fcn.0048d0bf
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0x64
push 0x10
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0048b951
mov esp, ebp
pop ebp
ret
Function at 0x408fa7
Capabilities:
Terminate process

Disassembly:
push 0x24
mov eax, 0x59e956
call fcn.00495539
call fcn.00448020
push eax
lea esi, [ebp - 0x2c]
call fcn.004024df
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp - 0x1c], esi
je 0x40906a
mov dword [ebp - 0x30], esi
call fcn.00448af0
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x408fe3
lea ecx, [ebp - 0x2c]
call fcn.004488d0
mov edi, eax
cmp edi, esi
je 0x40906a
mov esi, str.TerminateProcess__pid:_u
push edi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x40906a
cmp dword [ebp - 0x30], 0x14
jg 0x40906a
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00402e69
mov ecx, dword [eax]
push edi
push esi
push str.MainDlg.cpp
push 0x888
push 0
push eax
call dword [ecx + 8]
call fcn.00402e2e
mov ecx, dword [eax]
push edi
push esi
push 0
push eax
call dword [ecx + 4]
add esp, 0x28
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x40905c
lea ecx, [ebp - 0x2c]
call fcn.004488d0
inc dword [ebp - 0x30]
mov edi, eax
test edi, edi
jne 0x408ff3
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.00401ad5
call fcn.00495583
ret
Function at 0x411ad0
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
jns 0x411ae6
push 8
pop edi
push 2
call esi
test ax, ax
jns 0x411af2
or edi, 1
push 1
call esi
test ax, ax
jns 0x411afe
or edi, 2
push 0x10
call esi
test ax, ax
jns 0x411b0a
or edi, 4
push 0x12
call esi
test ax, ax
jns 0x411b16
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x4125cc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
mov esi, eax
xor edi, edi
cmp dword [esi + 0x108], edi
jle 0x41260b
mov eax, dword [esi + 0x104]
lea edx, [ebp - 1]
push edx
push dword [ebp + 0xc]
mov byte [ebp - 1], 0
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx]
push ebx
push dword [ebp + 8]
call dword [eax]
cmp byte [ebp - 1], 0
jne 0x41266a
inc edi
cmp edi, dword [esi + 0x108]
jl 0x4125e0
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x4126be
sub eax, 4
je 0x41266e
dec eax
dec eax
jne 0x4126b6
mov word [ebp + 8], ax
lea edi, [ebp + 0xa]
push ebx
stosw word es:[edi], ax
call fcn.004907fc
pop ecx
mov ecx, dword [esi + 0x58]
push reloc.WS2_32.dll_ioctlsocket
lea edx, [ebp + 8]
push edx
mov word [ebp + 8], ax
mov eax, dword [ecx]
push 0x414ba2
call dword [eax + 0xfc]
mov esi, eax
test esi, esi
je 0x4126b6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf0]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov al, 1
jmp 0x4126b8
cmp dword [esi + 0x5c], 0
je 0x4126b6
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x6c]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x70]
mov dword [ebp - 0x24], 6
mov word [ebp - 0x10], bx
mov dword [ebp - 0x14], eax
call fcn.00411ad0
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x5c]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x10c]
xor al, al
pop edi
pop esi
leave
ret 8
cmp ebx, 9
jne 0x4126b6
cmp dword [esi + 0x5c], 0
je 0x41270c
mov ecx, dword [esi + 0x5c]
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x41270c
mov ecx, dword [esi + 0x5c]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x41270c
mov ecx, dword [esi + 0x5c]
mov eax, dword [ecx]
push str.RichEditUI
call dword [eax + 0xc]
push eax
call fcn.0048f15e
pop ecx
pop ecx
test eax, eax
je 0x41270c
mov eax, dword [esi + 0x5c]
cmp byte [eax + 0xa61], 0
jne 0x4126b6
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setns al
movzx eax, al
push eax
mov eax, esi
call fcn.0041418c
jmp 0x41266a
Function at 0x413eab
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi]
cmp eax, ecx
je 0x413ecd
cmp ebx, dword [esi + 0x5c]
je 0x413ecd
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x5c]
cmp ebx, eax
je 0x413f95
test eax, eax
je 0x413f23
push 7
pop ecx
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov dword [esp + 8], 0x14
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x5c]
lea edx, [esp + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x10c]
xor edi, edi
push edi
push edi
push dword [esi + 0x5c]
mov ecx, str.killfocus
mov edx, esi
call fcn.004142eb
mov dword [esi + 0x5c], edi
test ebx, ebx
je 0x413f95
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x413f95
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test al, al
je 0x413f95
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xd4]
test al, al
je 0x413f95
push 7
pop ecx
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov dword [esi + 0x5c], ebx
mov dword [esp + 8], 0x15
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x5c]
lea edx, [esp + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x10c]
push 0
push 0
push dword [esi + 0x5c]
mov ecx, str.setfocus
mov edx, esi
call fcn.004142eb
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41c533
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and byte [esi + 0x1d], 9
mov al, byte [esi + 0x1d]
test al, 1
je 0x41c56b
test al, 8
jne 0x41c56b
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x41c56b
or byte [esi + 0x1d], 4
mov cl, byte [esi + 0x1d]
test eax, 0x21000000
jne 0x41c56b
or cl, 2
mov byte [esi + 0x1d], cl
test byte [esi + 0x1d], 2
je 0x41c584
push 8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
pop ebp
jmp fcn.0041b767
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 4
Function at 0x41d1a8
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x398
mov eax, 0x59ca0d
call fcn.00495539
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x398], esi
mov dword [ebp - 0x3a4], eax
call fcn.0041d403
push 0x62c448
lea eax, [ebp - 0x164]
call fcn.00414f94
xor edi, edi
mov dword [ebp - 4], edi
mov ebx, dword [0x62c598]
cmp word [ebx], di
jne 0x41d2f7
mov ebx, dword [ebp - 0x3a4]
cmp ebx, edi
je 0x41d206
lea esi, [ebp - 0x164]
call fcn.00414fc9
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp - 0x164]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x39c], eax
push edi
cmp eax, 0xffffffff
jne 0x41d255
push str.Error_opening_file
mov eax, dword [ebp - 0x398]
call fcn.0041dc42
mov bl, al
lea ecx, [ebp - 0x164]
call fcn.00414fb8
mov al, bl
call fcn.00495583
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
jne 0x41d26a
push edi
push str.File_is_empty
jmp 0x41d233
cmp esi, 0x400000
jbe 0x41d27a
push edi
push str.File_too_large
jmp 0x41d233
push esi
mov dword [ebp - 0x3a4], edi
call fcn.0048b666
pop ecx
push edi
mov ebx, eax
lea eax, [ebp - 0x3a4]
push eax
push esi
push ebx
push dword [ebp - 0x39c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x39c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3a4], esi
je 0x41d2d2
push ebx
call fcn.0048d15f
mov esi, dword [ebp - 0x398]
pop ecx
call fcn.0041d403
push edi
push str.Could_not_read_file
mov eax, esi
jmp 0x41d239
push esi
push ebx
push dword [ebp - 0x398]
call fcn.0041d11d
push ebx
mov byte [ebp - 0x39d], al
call fcn.0048d15f
mov bl, byte [ebp - 0x39d]
pop ecx
jmp 0x41d240
lea esi, [ebp - 0x164]
call fcn.00414fc9
xor ebx, ebx
cmp byte [0x6356b8], bl
je 0x41d313
mov eax, dword [0x6356bc]
jmp 0x41d324
push 2
push ebx
push dword [ebp - 0x164]
call fcn.00421799
add esp, 0xc
mov ecx, eax
mov dword [ebp - 0x39c], eax
cmp ecx, ebx
jne 0x41d33b
push ebx
push str.Error_opening_zip_file
jmp 0x41d233
mov edx, dword [ebp - 0x3a4]
lea eax, [ebp - 0x394]
push eax
lea eax, [ebp - 0x3a4]
push eax
call fcn.004217f5
pop ecx
pop ecx
test eax, eax
je 0x41d365
push ebx
push str.Could_not_find_ziped_file
jmp 0x41d233
mov eax, dword [ebp - 0x168]
mov edi, eax
cmp eax, ebx
jne 0x41d377
push ebx
jmp 0x41d263
cmp eax, 0x400000
jbe 0x41d384
push ebx
jmp 0x41d273
push eax
call fcn.0048b666
pop ecx
mov esi, eax
mov eax, dword [ebp - 0x39c]
push edi
push esi
push dword [ebp - 0x3a4]
call fcn.004218c6
add esp, 0xc
cmp eax, ebx
je 0x41d3d4
cmp eax, 0x600
je 0x41d3d4
push esi
call fcn.0048d15f
pop ecx
cmp byte [0x6356b8], bl
jne 0x41d3c9
push dword [ebp - 0x39c]
call fcn.004218fa
pop ecx
push ebx
push str.Could_not_unzip_file
jmp 0x41d233
cmp byte [0x6356b8], bl
jne 0x41d3e8
push dword [ebp - 0x39c]
call fcn.004218fa
pop ecx
push edi
push esi
push dword [ebp - 0x398]
call fcn.0041d11d
push esi
mov bl, al
call fcn.0048d15f
pop ecx
jmp 0x41d240