joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d0bc0
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4d0bf2
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
pop ebp
ret

Function at 0x4d0c80
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0xc]
push esi
push edi
push 0xf0000000
push 1
push 0
push 0
push eax
mov esi, edx
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4d0cbb
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d0cc0
push 0
sub ecx, edx
push ecx
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea eax, [ebp - 4]
push 0
push eax
push 0
push 2
push dword [ebp - 8]
mov dword [ebp - 4], 0
call esi
cmp dword [ebp - 4], 0x10
jne 0x4d0d06
push 0
lea eax, [ebp - 4]
push eax
push edi
push 2
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x4d0d14
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4d0d24
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4d5a60
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x571db2
call fcn.0052884a
mov esi, ecx
mov ecx, dword [0x5c6380]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
lea ecx, [eax + 0x90]
cmp dword [ecx + 0x14], 8
jb 0x4d5a8e
mov ecx, dword [ecx]
mov eax, dword [esi]
push dword [eax + 0xc4]
add eax, 0xc8
push ecx
push str._s_s.exe
push eax
call fcn.0042ccc0
mov eax, dword [esi]
add esp, 0x10
push dword [eax + 0xc8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esi]
mov ecx, edx
neg ecx
push 0x2710
sbb ecx, ecx
lea eax, [edx + 0x2c]
and ecx, eax
mov dword [edx + 0x3c], ecx
mov edx, dword [esi]
push 0
lea ecx, [edx + 0x38]
lea eax, [edx + 0x28]
neg edx
sbb edx, edx
sub esp, 0x18
and edx, eax
mov dword [ebp - 0x10], esp
mov dword [ecx], edx
mov eax, dword [esi]
mov ecx, dword [eax + 0xc8]
mov eax, esp
push ecx
push eax
call fcn.0044ead0
mov eax, dword [esi]
sub esp, 0x10
and dword [ebp - 4], 0
mov ecx, dword [eax + 0xc0]
mov eax, esp
push ecx
push eax
call fcn.0044ead0
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [esi]
add ecx, 0x38
call fcn.0048d190
call fcn.00528813
ret
Function at 0x4d5b24
Capabilities:
Create process on windows

Disassembly:
push 0x4c
mov eax, 0x571de5
call fcn.0052887e
mov ebx, ecx
mov ecx, dword [0x5c6380]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
push eax
lea ecx, [ebp - 0x28]
call fcn.0044a200
mov ecx, dword [0x5c6380]
and dword [ebp - 4], 0
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov esi, eax
lea eax, [ebp - 0x58]
cmovae ecx, dword [ebp - 0x28]
push ecx
push eax
call fcn.00440590
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push str._S__D
push eax
call fcn.00474ae0
add esp, 0x14
mov edi, eax
mov edx, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 2
call dword [edx + 4]
add eax, 0x90
cmp dword [eax + 0x14], 8
jb 0x4d5ba3
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
jb 0x4d5bab
mov edi, dword [edi]
mov ecx, dword [ebx]
push 0
push eax
push edi
push dword [ecx + 0xc8]
mov ecx, dword [ecx + 0x20]
push str.open
call fcn.004dd4ce
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x40]
call fcn.0043eb00
lea ecx, [ebp - 0x58]
call fcn.0043eb00
lea ecx, [ebp - 0x28]
call fcn.0043eb00
call fcn.00528828
ret
Function at 0x4d6d1b
Capabilities:
Create process on windows

Disassembly:
push 0x3c
mov eax, 0x5721e7
call fcn.0052887e
mov ebx, ecx
mov byte [ebx + 0x34], 0
mov ecx, dword [0x5c6380]
mov eax, dword [ecx]
call dword [eax + 8]
push 1
push ebx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
mov ecx, eax
call fcn.004d6ea9
mov ecx, dword [ebx + 0x20]
push str.sldDown
call fcn.004dca5a
push 0x64
mov ecx, eax
call fcn.004e5992
mov ecx, dword [ebx + 0x20]
push str.lblDown
call fcn.004dca5a
mov edi, eax
call fcn.00422040
push eax
lea ecx, [ebp - 0x44]
call fcn.0042a720
and dword [ebp - 4], 0
lea eax, [ebp - 0x48]
push 0x57b508
push eax
call fcn.004d4371
push dword [eax]
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
call fcn.0042ccc0
mov ecx, dword [ebp - 0x48]
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.00421da0
mov eax, dword [edi]
mov ecx, edi
mov esi, dword [ebp - 0x44]
push esi
call dword [eax + 0x30]
push 0x7d0
call fcn.004342f0
pop ecx
mov ecx, dword [0x5c6380]
mov eax, dword [ecx]
call dword [eax + 4]
push 0x57b528
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
mov ecx, eax
call fcn.004d3463
push str.UIMainProxy::OnUpdateSucceed
push str.mainexe
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
mov ecx, 0x5c8338
call fcn.00488500
push 8
pop edi
cmp dword [ebp - 0x14], edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
cmovae ecx, dword [ebp - 0x28]
cmp dword [eax + 0x14], edi
jb 0x4d6e1b
mov eax, dword [eax]
push ecx
push eax
push 0x5c8338
call fcn.0048a570
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.0043eb00
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00440590
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 4
cmp dword [ecx + 0x14], edi
jb 0x4d6e59
mov ecx, dword [ecx]
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
push 5
cmovae eax, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebx + 0x20]
push str._autorun__tipver
push eax
push str.open
call fcn.004dd4ce
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0043eb00
mov ecx, ebx
call fcn.004d5e32
lea ecx, [ebp - 0x28]
call fcn.0043eb00
lea ecx, [esi - 0x10]
call fcn.00421da0
call fcn.00528828
ret
Function at 0x4d867e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 8], eax
xor eax, eax
push eax
push eax
push ecx
push 0x4d8f9b
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x4daf3e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov esi, 0x11b29719
mov edi, 0x7f7
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
xor ecx, ecx
mov dword [ebp - 4], eax
test eax, eax
jle 0x4daf76
movsx eax, byte [ecx + ebx]
or eax, 0x80
cdq
xor esi, eax
xor edi, edx
inc ecx
cmp ecx, dword [ebp - 4]
jl 0x4daf62
mov edx, edi
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4dd77b
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
push 8
pop ecx
test ax, ax
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x4dd79e
or esi, 1
push 1
call edi
test ax, ax
jns 0x4dd7aa
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x4dd7b6
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x4dd7c2
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [ebp + 8]
cmp eax, dword [edi + 0x1c]
je 0x4e0149
cmp esi, dword [edi + 0x114]
je 0x4e0149
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [edi + 0x114], 0
je 0x4e01a7
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0x14
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
movlpd qword [ebp - 8], xmm0
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x114]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x118]
xor eax, eax
mov ecx, edi
push eax
push eax
push eax
push str.killfocus
push dword [edi + 0x114]
call fcn.004dfca7
and dword [edi + 0x114], 0
test esi, esi
je 0x4e0226
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
cmp eax, edi
jne 0x4e0226
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd8]
test al, al
je 0x4e0226
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xe4]
test al, al
je 0x4e0226
xorps xmm0, xmm0
mov dword [edi + 0x114], esi
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
movlpd qword [ebp - 8], xmm0
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x114]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x118]
xor eax, eax
mov ecx, edi
push eax
push eax
push eax
push str.setfocus
push dword [edi + 0x114]
call fcn.004dfca7
pop edi
pop esi
leave
ret 4
Function at 0x4e232a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4e235c
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8

Function at 0x4e3755
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
and byte [esi + 0xc], 9
mov al, byte [esi + 0xc]
test al, 1
je 0x4e3792
test al, 8
jne 0x4e3792
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x4e3792
mov cl, byte [esi + 0xc]
or cl, 4
mov byte [esi + 0xc], cl
test eax, 0x21000000
jne 0x4e3792
or cl, 2
mov byte [esi + 0xc], cl
test byte [esi + 0xc], 2
je 0x4e37af
push 8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, esi
call fcn.004e37bf
jmp 0x4e37ba
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 4
Function at 0x4e8c7c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
cmp dword [esi + 0x6a4], ebx
je 0x4e8d0f
mov ecx, 0x100
movzx eax, di
cmp dword [ebp + 8], ecx
jne 0x4e8cf5
cmp eax, 0xd
jne 0x4e8cd9
cmp byte [esi + 0x6aa], bl
je 0x4e8cc0
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4e8cf5
cmp byte [esi + 0x6ab], bl
jne 0x4e8cf5
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x4e8cd5
push ebx
push ebx
push ebx
push str.return
push esi
call fcn.004dfca7
xor eax, eax
jmp 0x4e8d12
cmp dword [ebp + 8], ecx
jne 0x4e8cf5
cmp eax, 0x26
jne 0x4e8ce7
push 0xffffffffffffffff
jmp 0x4e8cee
cmp eax, 0x28
jne 0x4e8cf5
push 1
mov ecx, esi
call fcn.004e729b
mov eax, dword [esi + 0x6a4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov ecx, dword [eax + 0xc]
push edi
push dword [ebp + 8]
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x4e8d12
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x4e90b9
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5c1334]
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 0x4e9173
movzx eax, word [esi]
test ax, ax
je 0x4e9173
push edi
mov edi, esi
mov ecx, esi
mov edx, eax
cmp dx, 0x2f
je 0x4e90fb
cmp dx, 0x5c
jne 0x4e90fd
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x4e90ef
cmp edi, esi
je 0x4e9146
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_wcsncpy
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x4e9181
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004e90b9
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscpy
lea eax, [ebp - 0x414]
push esi
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscat
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00528802
leave
ret
call fcn.00529285
int3

Function at 0x4e9a65
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x4e9ae1
cmp dword [edi + 4], 0xffffffff
jne 0x4e9ae1
push esi
lea esi, [edi + 0x140]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x59578c
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscat
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x4e9ab3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4e9ab3
mov eax, 0x2000000
jmp 0x4e9ae6
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004ec10c
add esp, 0x10
test eax, eax
jne 0x4e9ad1
mov eax, dword [ebp - 4]
jmp 0x4e9ae6
push eax
call fcn.004ec997
mov dword [edi], eax
mov eax, dword [0x5c6b4c]
pop ecx
jmp 0x4e9ae6
mov eax, 0x1000000
pop edi
leave
ret 0xc
Function at 0x4ea013
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movsx eax, byte [ebp + 0xc]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x57e208]
xor eax, ecx
mov ecx, dword [edx + 8]
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x57e208]
mov dword [edx + 8], ecx
pop ebp
ret

Function at 0x4ec219
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
imul ecx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x4ec24c
push 0
lea eax, [ebp + 0x10]
push eax
push ecx
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ec247
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4ec276
mov edx, dword [edi + 0x18]
push esi
mov esi, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x14]
cmovbe esi, ecx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
pop esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret

Function at 0x4ec404
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4ec412
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x4ec4d1
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x57e208]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x57e208]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x57e208]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x57e208]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x57e208]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x57e208]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x57e208]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x57e208]
sub edi, 1
jne 0x4ec42a
pop edi
test esi, esi
je 0x4ec4ed
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x57e208]
inc edx
sub esi, 1
jne 0x4ec4d5
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x5008e5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
mov edx, eax
and edi, 7
je 0x500913
cmp eax, edi
jge 0x500907
push esi
call fcn.004fba0f
mov eax, dword [esi + 8]
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub eax, edi
mov dword [esi + 8], eax
mov edx, eax
xor ecx, ecx
test eax, eax
jle 0x500936
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x50091c
mov dword [esi + 8], edx
jmp 0x50094b
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x500941
xor dl, dl
jmp 0x500946
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x500936
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x500985
push str.zlib_corrupt
call fcn.004fb941
add esp, 4
jmp 0x5009c5
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x500995
push str.read_past_buffer
jmp 0x50097b
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x5009af
push edi
push ecx
push esi
call fcn.00504181
add esp, 0xc
test eax, eax
je 0x5009c5
push edi
push dword [esi]
push dword [esi + 0x10]
call sub.VCRUNTIME140.dll_memcpy
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x504d8c
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x504db2
push 0
call fcn.004e148c
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 4]
push 1
call fcn.004e1693
and dword [esi + 4], 0
pop esi
ret
Function at 0x505730
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x1c8
mov eax, 0x5739f5
call fcn.0052887e
mov esi, ecx
mov ebx, dword [ebp + 8]
call fcn.00505ae4
call fcn.004dd4f9
push eax
lea ecx, [ebp - 0x98]
call fcn.004d9b31
and dword [ebp - 4], 0
call fcn.004dd4ff
mov ecx, eax
call fcn.004da644
test al, al
jne 0x505870
call fcn.004dd4ff
push eax
lea ecx, [ebp - 0x98]
call fcn.004d9f5a
call fcn.004dd618
test al, al
je 0x505793
call fcn.004dd505
jmp 0x5057ab
push 2
push 0
lea ecx, [ebp - 0x98]
call fcn.004da4c6
push eax
call fcn.004e9b7e
add esp, 0xc
mov edi, eax
test edi, edi
je 0x505870
lea eax, [ebp - 0x1c4]
push eax
lea eax, [ebp - 0x1d0]
push eax
push 1
push ebx
push edi
call fcn.004e920b
add esp, 0x14
test eax, eax
jne 0x505870
mov ebx, dword [ebp - 0x9c]
test ebx, ebx
jne 0x5057e7
push ebx
jmp 0x5058f3
cmp ebx, 0x400000
jbe 0x5057f6
push 0
jmp 0x505903
push ebx
call fcn.00528a7d
push 3
push ebx
push eax
push dword [ebp - 0x1d0]
mov dword [ebp - 0x1c8], eax
push edi
call fcn.004e9fdb
add esp, 0x18
test eax, eax
je 0x505848
cmp eax, 0x600
je 0x505848
push dword [ebp - 0x1c8]
call fcn.00528a86
pop ecx
call fcn.004dd618
test al, al
jne 0x50583c
push edi
call fcn.004e905b
pop ecx
push 0
push str.Could_not_unzip_file
jmp 0x50595f
call fcn.004dd618
test al, al
jne 0x505858
push edi
call fcn.004e905b
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x1c8]
mov ecx, esi
push ebx
push edi
call fcn.00505999
push edi
jmp 0x50597c
push ebx
lea ecx, [ebp - 0x98]
call fcn.004d9fdd
push 0
push 0x80
push 3
push 0
push 1
push closesocket
lea ecx, [ebp - 0x98]
call fcn.004d9e72
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
call edi
mov dword [ebp - 0x1c8], eax
cmp eax, 0xffffffff
jne 0x5058e2
push ebx
lea ecx, [ebp - 0x98]
call fcn.004d9dcd
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push ebx
call edi
mov dword [ebp - 0x1c8], eax
cmp eax, 0xffffffff
jne 0x5058e2
push 0
push str.Error_opening_file
jmp 0x50595f
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x5058fa
push ebx
push str.File_is_empty
jmp 0x50595f
cmp edi, 0x400000
jbe 0x50590a
push ebx
push str.File_too_large
jmp 0x50595f
push edi
mov dword [ebp - 0x1cc], ebx
call fcn.00528a7d
pop ecx
mov ebx, eax
lea eax, [ebp - 0x1cc]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x1c8]
mov dword [ebp - 0x1d4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x1c8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1cc], edi
je 0x50596a
push ebx
call fcn.00528a86
pop ecx
mov ecx, esi
call fcn.00505ae4
push 0
push str.Could_not_read_file
mov ecx, esi
call fcn.00505b1c
mov bl, al
jmp 0x505984
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.00505999
push dword [ebp - 0x1d4]
mov bl, al
call fcn.00528a86
pop ecx
lea ecx, [ebp - 0x98]
call fcn.004d9ca5
mov al, bl
call fcn.00528828
ret 8
Function at 0x5120d8
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c4
jmp method.DuiLib::CListUI.virtual_284

Function at 0x5149cd
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x10
mov esi, ecx
call dword [sym.imp.USER32.dll_GetKeyState]
lea edi, [esi - 0x6c4]
mov ebx, eax
mov edx, dword [edi]
mov ecx, edi
and ebx, 0x8000
call dword [edx + 0xe4]
test al, al
je 0x514a28
cmp byte [ebp + 0xc], 0
mov al, byte [ebp + 8]
mov byte [esi + 0xc], al
je 0x514a1f
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x514a1f
mov eax, dword [ecx]
push 0
push dword [esi + 4]
test ebx, ebx
je 0x514a1c
call dword [eax + 0x10]
jmp 0x514a1f
call dword [eax + 8]
mov ecx, edi
call fcn.00514133
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x514b2f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, 0x8000
push edi
mov dword [ebp - 8], esi
cmp byte [esi + 4], 0
je 0x514bb3
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test bx, ax
jne 0x514bb3
lea edi, [esi - 0x54]
xor ebx, ebx
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
test eax, eax
jle 0x514baf
mov esi, dword [ebp + 8]
cmp ebx, esi
je 0x514ba0
mov eax, dword [edi]
mov ecx, edi
push ebx
call dword [eax]
test eax, eax
je 0x514ba0
mov edx, dword [eax]
mov ecx, eax
push str.ListItem
call dword [edx + 0x14]
mov dword [ebp - 4], eax
test eax, eax
je 0x514ba0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
test al, al
je 0x514ba0
mov ecx, dword [ebp - 4]
push 0
push 0
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [edi]
mov ecx, edi
inc ebx
call dword [eax + 0xc]
cmp ebx, eax
jl 0x514b67
mov esi, dword [ebp - 8]
or dword [esi + 0xc], 0xffffffff
mov eax, dword [esi + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp ebx, eax
je 0x514c75
test ebx, ebx
js 0x514c34
lea ecx, [esi - 0x54]
mov eax, dword [ecx]
push ebx
call dword [eax]
mov edi, eax
test edi, edi
je 0x514c34
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0xd8]
test al, al
je 0x514c34
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xe4]
test al, al
je 0x514c34
mov eax, dword [edi]
mov ecx, edi
push str.ListItem
call dword [eax + 0x14]
mov dword [ebp + 8], eax
test eax, eax
je 0x514c34
cmp byte [esi + 4], 0
mov dword [esi + 0xc], ebx
je 0x514c38
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x514c38
mov ecx, dword [ebp + 8]
push 0
push 1
mov eax, dword [ecx]
call dword [eax + 0x14]
test al, al
jne 0x514c38
or dword [esi + 0xc], 0xffffffff
xor al, al
jmp 0x514c77
push dword [esi + 0xc]
lea ebx, [esi - 0x6c4]
mov ecx, ebx
call fcn.00512fde
cmp byte [ebp + 0xc], 0
je 0x514c58
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x100]
mov ecx, dword [esi - 0x674]
test ecx, ecx
je 0x514c75
push 0
push dword [ebp - 8]
push dword [esi + 0xc]
push str.itemselect
push ebx
call fcn.004dfca7
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8