joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f2a8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40f3bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call sub.rtl160.bpl__System__LStrClr_qqrpv
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x40f2f1
push ebx
mov eax, edi
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push esi
call sub.kernel32.dll_FindResourceW
mov ebx, eax
jmp 0x40f35e
movzx eax, bl
cmp ebx, eax
jne 0x40f31b
push ebx
lea eax, [ebp - 4]
mov edx, edi
mov ecx, 0
call sub.rtl160.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push esi
call sub.kernel32.dll_FindResourceA
mov ebx, eax
jmp 0x40f35e
lea eax, [ebp - 0xc]
mov edx, ebx
call sub.rtl160.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov ecx, 0
call sub.rtl160.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 8]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
lea eax, [ebp - 0x10]
mov edx, edi
mov ecx, 0
call sub.rtl160.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x10]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push esi
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x40f390
push ebx
push esi
call sub.kernel32.dll_LoadResource
mov edi, eax
test edi, edi
je 0x40f390
push 0
push ebx
push esi
call sub.kernel32.dll_SizeofResource
push eax
push edi
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, dword [ebp + 8]
pop ecx
call sub.rtl160.bpl__System__LStrFromPCharLen_qqrr27System__AnsiStringT_us_i0__pcius
push edi
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f3c2
lea eax, [ebp - 0x10]
call sub.rtl160.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0xc]
call sub.rtl160.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl160.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x416e04
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x416f4e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x416e2c
cmp dword [ebx + 4], 0
jne 0x416f4e
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x416e52
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x416e52
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
push 0
push 0x100000
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
sub eax, dword [ebx + 8]
sbb edx, dword [ebx + 0xc]
push edx
push eax
call fcn.00416d58
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x416f4e
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x416f01
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x416ea7
push 4
push 0x1000
push 0x100000
push 0
call sub.kernel32.dll_VirtualAlloc
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
push dword [ebx + 0xc]
push dword [ebx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor ecx, ecx
xor edx, edx
call fcn.00416d98
test al, al
je 0x416ef7
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x416ef7
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 4]
jne 0x416ef7
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
jmp 0x416f1f
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
jmp 0x416f1f
push dword [ebx + 0xc]
push dword [ebx + 8]
mov ecx, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 4
call fcn.00416dec
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov dword [ebx], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x416f4e
mov ecx, dword [ebx + 4]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
call fcn.0041b070
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov dword [edx], eax
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x417318
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 8], eax
mov esi, dword [ebx + 0x24]
sub esi, dword [ebx + 0x5c]
sub esi, dword [ebx + 0x54]
test esi, esi
jne 0x417349
cmp dword [ebx + 0x54], 0
jne 0x417349
cmp dword [ebx + 0x5c], 0
jne 0x417349
mov esi, dword [ebp - 8]
jmp 0x4173f4
cmp esi, 0xffffffff
jne 0x417354
dec esi
jmp 0x4173f4
mov eax, dword [ebx + 0x54]
mov edx, dword [ebp - 8]
sub edx, 0x106
add edx, dword [ebp - 8]
cmp eax, edx
jb 0x4173f4
mov eax, dword [ebx + 0x20]
mov edx, dword [ebp - 8]
lea edx, [eax + edx]
mov ecx, dword [ebp - 8]
xchg edx, eax
call sub.rtl160.bpl__System_Move_qqrpxvpvi
mov eax, dword [ebp - 8]
sub dword [ebx + 0x58], eax
mov eax, dword [ebp - 8]
sub dword [ebx + 0x54], eax
mov eax, dword [ebp - 8]
sub dword [ebx + 0x44], eax
mov eax, dword [ebx + 0x34]
mov edx, dword [ebx + 0x2c]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
jb 0x4173b6
movzx ecx, word [ebp - 4]
sub cx, word [ebp - 8]
mov word [edx], cx
jmp 0x4173bb
mov word [edx], 0
dec eax
test eax, eax
jne 0x417398
mov eax, dword [ebp - 8]
mov edx, dword [ebx + 0x28]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
jb 0x4173e7
movzx ecx, word [ebp - 4]
sub cx, word [ebp - 8]
mov word [edx], cx
jmp 0x4173ec
mov word [edx], 0
dec eax
test eax, eax
jne 0x4173c9
add esi, dword [ebp - 8]
mov ecx, dword [ebx]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
push edx
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
cmp edx, dword [esp + 4]
jne 0x417410
cmp eax, dword [esp]
pop edx
pop eax
je 0x41747e
push ebp
mov eax, dword [ebx + 0x54]
add eax, dword [ebx + 0x5c]
mov edx, dword [ebx + 0x20]
add edx, eax
mov eax, ecx
mov ecx, esi
call fcn.004172a4
pop ecx
add dword [ebx + 0x5c], eax
cmp dword [ebx + 0x5c], 3
jb 0x417458
mov eax, dword [ebx + 0x54]
mov edx, dword [ebx + 0x20]
movzx eax, byte [edx + eax]
mov dword [ebx + 0x30], eax
mov ecx, dword [ebx + 0x40]
shl eax, cl
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x20]
movzx edx, byte [ecx + edx + 1]
xor eax, edx
and eax, dword [ebx + 0x3c]
mov dword [ebx + 0x30], eax
cmp dword [ebx + 0x5c], 0x106
jae 0x41747e
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx + 0x18]
jne 0x417328
cmp eax, dword [ecx + 0x14]
jne 0x417328
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4189d8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x418b25
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x418a00
cmp dword [ebx + 4], 0
jne 0x418b25
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x418a26
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x418a26
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
push 0
push 0x100000
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
sub eax, dword [ebx + 8]
sbb edx, dword [ebx + 0xc]
push edx
push eax
call fcn.00416d58
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x418b25
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x418ad5
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x418a7b
push 4
push 0x1000
push 0x100000
push 0
call sub.kernel32.dll_VirtualAlloc
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
push dword [ebx + 0xc]
push dword [ebx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor ecx, ecx
xor edx, edx
call fcn.00416d98
test al, al
je 0x418acb
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x418acb
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 4]
jne 0x418acb
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
jmp 0x418af3
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
jmp 0x418af3
push dword [ebx + 0xc]
push dword [ebx + 8]
mov ecx, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 4
call fcn.00416dec
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov dword [ebx], eax
cmp dword [ebx + 0xc], 0
jne 0x418b25
cmp dword [ebx + 8], 0
jne 0x418b25
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
cdq
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
add dword [ebx], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
sub dword [ebx + 4], eax
pop esi
pop ebx
pop ecx
pop ebp
ret

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

Disassembly:
push esi
mov esi, eax
dec ecx
test ecx, ecx
jl 0x41b094
inc ecx
mov eax, edx
mov edx, esi
xor dl, byte [eax]
movzx edx, dl
mov edx, dword [edx*4 + 0x53403c]
shr esi, 8
xor edx, esi
mov esi, edx
inc eax
dec ecx
jne 0x41b07b
mov eax, esi
pop esi
ret
Function at 0x41bd3c
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor esi, esi
mov edi, 0x12
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x48]
lea eax, [esi + 1]
xor edx, edx
div dword [ebp - 8]
mov eax, dword [ebp - 4]
movzx ebx, byte [eax + edx]
shl ebx, 0x10
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi]
shl eax, 0x18
add ebx, eax
lea eax, [esi + 2]
xor edx, edx
div dword [ebp - 8]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edx]
shl eax, 8
add ebx, eax
lea eax, [esi + 3]
xor edx, edx
div dword [ebp - 8]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edx]
add ebx, eax
xor dword [ecx], ebx
lea eax, [esi + 4]
xor edx, edx
div dword [ebp - 8]
mov esi, edx
add ecx, 4
dec edi
jne 0x41bd58
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor edi, edi
mov eax, dword [ebp + 8]
push eax
push 1
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x48]
lea edx, [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.0041b97c
pop ecx
mov eax, edi
add eax, eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [edx + eax*4 - 0x48], ecx
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [edx + eax*4 - 0x44], ecx
inc edi
cmp edi, 9
jne 0x41bdb9
mov edi, 4
mov eax, dword [ebp + 8]
lea ebx, [eax - 0x1048]
xor esi, esi
mov eax, dword [ebp + 8]
push eax
push 1
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x48]
lea edx, [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.0041b97c
pop ecx
mov eax, esi
add eax, eax
mov edx, dword [ebp - 0xc]
mov dword [ebx + eax*4], edx
mov edx, dword [ebp - 0x10]
mov dword [ebx + eax*4 + 4], edx
inc esi
cmp esi, 0x80
jne 0x41bdff
add ebx, 0x400
dec edi
jne 0x41bdfd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41be44
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffff94
push ebx
push esi
push edi
mov byte [ebp - 0x1051], cl
mov dword [ebp - 0x1050], edx
mov dword [ebp - 0x104c], eax
mov ebx, dword [ebp + 0x14]
lea esi, [ebp - 0x1060]
push esi
mov esi, 0x53443c
lea edi, [ebp - 0x48]
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
pop esi
push esi
mov esi, 0x534484
lea edi, [ebp - 0x1048]
mov ecx, 0x400
rep movsd dword es:[edi], dword [esi]
pop esi
mov dword [ebp - 0x106c], ebx
mov edi, dword [ebp - 0x106c]
test edi, edi
je 0x41bea9
sub edi, 4
mov edi, dword [edi]
push ebp
mov eax, ebx
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
mov edx, edi
call fcn.0041bd3c
pop ecx
mov ebx, dword [ebp - 0x104c]
cmp byte [ebp - 0x1051], 0
je 0x41bedd
lea eax, [ebp - 0x48]
mov dword [ebp - 0x1058], eax
mov dword [ebp - 0x105c], 1
jmp 0x41bef0
lea eax, [ebp - 4]
mov dword [ebp - 0x1058], eax
mov dword [ebp - 0x105c], 0xffffffff
mov eax, dword [ebp - 0x1050]
shr eax, 3
dec eax
test eax, eax
jl 0x41c010
inc eax
mov dword [ebp - 0x1068], eax
cmp dword [ebp + 0x10], 0
jne 0x41bf13
cmp dword [ebp + 0xc], 0
je 0x41bf90
mov dword [esi], 7
lea eax, [ebp + 0xc]
add eax, dword [esi]
movzx edx, byte [eax]
inc edx
and dl, 0xff
mov byte [eax], dl
lea eax, [ebp + 0xc]
add eax, dword [esi]
cmp byte [eax], 0
jne 0x41bf3a
dec dword [esi]
cmp dword [esi], 0xffffffff
jne 0x41bf1b
lea eax, [ebp + 0xc]
mov eax, dword [eax]
call fcn.0041b950
mov dword [esi], eax
lea eax, [ebp + 0xc]
add eax, 4
mov eax, dword [eax]
call fcn.0041b950
mov dword [ebp - 0x1064], eax
push ebp
mov eax, dword [ebp - 0x105c]
push eax
lea edx, [ebp - 0x1064]
mov eax, esi
mov ecx, dword [ebp - 0x1058]
call fcn.0041b97c
pop ecx
mov eax, dword [esi]
call fcn.0041b950
xor dword [ebx], eax
mov eax, dword [ebp - 0x1064]
call fcn.0041b950
lea edx, [ebx + 4]
xor dword [edx], eax
jmp 0x41c001
cmp byte [ebp + 8], 0
jne 0x41bfe8
mov edi, ebx
mov eax, dword [edi]
call fcn.0041b950
mov dword [esi], eax
lea eax, [ebx + 4]
mov eax, dword [eax]
call fcn.0041b950
mov dword [ebp - 0x1064], eax
push ebp
mov eax, dword [ebp - 0x105c]
push eax
lea edx, [ebp - 0x1064]
mov eax, esi
mov ecx, dword [ebp - 0x1058]
call fcn.0041b97c
pop ecx
mov eax, dword [esi]
call fcn.0041b950
mov dword [edi], eax
mov eax, dword [ebp - 0x1064]
call fcn.0041b950
lea edx, [ebx + 4]
mov dword [edx], eax
jmp 0x41c001
push ebp
mov eax, dword [ebp - 0x105c]
push eax
mov edx, ebx
lea eax, [ebx + 4]
mov ecx, dword [ebp - 0x1058]
call fcn.0041b97c
pop ecx
add ebx, 8
dec dword [ebp - 0x1068]
jne 0x41bf09
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41c148
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
test esi, esi
jle 0x41c273
lea eax, [esi + 2]
mov ecx, 3
cdq
idiv ecx
mov edx, eax
add edx, edx
add edx, edx
mov eax, edi
xor ecx, ecx
call sub.rtl160.bpl__System__LStrSetLength_qqrr27System__AnsiStringT_us_i0__ius
mov ecx, dword [edi]
mov eax, esi
mov edi, 3
cdq
idiv edi
mov edi, eax
test edi, edi
jle 0x41c1e5
movzx eax, byte [ebx]
shl eax, 0x10
movzx edx, byte [ebx + 1]
shl edx, 8
add eax, edx
movzx edx, byte [ebx + 2]
add eax, edx
mov edx, eax
shr edx, 0x12
and edx, 0x3f
movzx edx, byte [edx + 0x535484]
mov byte [ecx], dl
mov edx, eax
shr edx, 0xc
and edx, 0x3f
movzx edx, byte [edx + 0x535484]
mov byte [ecx + 1], dl
mov edx, eax
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + 0x535484]
mov byte [ecx + 2], dl
and eax, 0x3f
movzx eax, byte [eax + 0x535484]
mov byte [ecx + 3], al
add ecx, 4
add ebx, 3
dec edi
jne 0x41c185
mov eax, esi
mov esi, 3
cdq
idiv esi
dec edx
je 0x41c1fa
dec edx
je 0x41c22b
jmp 0x41c27a
movzx eax, byte [ebx]
shl eax, 0x10
mov edx, eax
shr edx, 0x12
and edx, 0x3f
movzx edx, byte [edx + 0x535484]
mov byte [ecx], dl
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x535484]
mov byte [ecx + 1], al
mov byte [ecx + 2], 0x3d
mov byte [ecx + 3], 0x3d
jmp 0x41c27a
movzx eax, byte [ebx]
shl eax, 0x10
movzx edx, byte [ebx + 1]
shl edx, 8
add eax, edx
mov edx, eax
shr edx, 0x12
and edx, 0x3f
movzx edx, byte [edx + 0x535484]
mov byte [ecx], dl
mov edx, eax
shr edx, 0xc
and edx, 0x3f
movzx edx, byte [edx + 0x535484]
mov byte [ecx + 1], dl
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + 0x535484]
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x3d
jmp 0x41c27a
mov eax, edi
call sub.rtl160.bpl__System__LStrClr_qqrpv
pop edi
pop esi
pop ebx
ret
Function at 0x41d210
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41d301
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
mov esi, eax
push esi
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x41d2eb
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push esi
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x41d2eb
xor eax, eax
push ebp
push 0x41d2e4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize
mov edx, eax
mov eax, ebx
xor ecx, ecx
call sub.rtl160.bpl__System__LStrSetLength_qqrr27System__AnsiStringT_us_i0__ius
cmp dword [ebx], 0
je 0x41d2c4
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
push eax
mov eax, dword [ebx]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x41d2c4
mov eax, dword [ebx]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
cmp eax, dword [ebp - 0x10]
je 0x41d2c8
xor eax, eax
jmp 0x41d2ca
mov al, 1
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d2eb
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d308
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__LStrClr_qqrpv
ret
Function at 0x428014
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
movzx eax, cl
mov edx, dword [ebp - 4]
cmp word [edx + eax*2], 0xffff
jne 0x428066
mov dword [ebp - 0xc], 0x7fffffff
xor esi, esi
mov ebx, dword [ebp - 8]
movzx eax, cl
movzx edx, byte [ebx]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp - 0xc]
jge 0x42805d
movzx edx, cl
mov edi, dword [ebp - 4]
lea edi, [edi + edx*2]
mov word [edi], si
mov dword [ebp - 0xc], eax
inc esi
add ebx, 3
cmp esi, 0x10
jne 0x42803c
movzx eax, cl
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax*2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x428db8
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
mov esi, eax
lea eax, [ebp - 0x14]
mov edx, 0x14
call fcn.00403694
mov dword [ebp - 0x14], 0x14
push 0x428ec0
push 0x428edc
call sub.kernel32.dll_GetModuleHandleW_1
push eax
call fcn.00402f44
mov ebx, eax
test ebx, ebx
je 0x428dfb
lea eax, [ebp - 0x14]
push eax
call ebx
test eax, eax
jne 0x428e51
lea eax, [ebp - 8]
push eax
call sub.user32.dll_GetCursorPos
test eax, eax
je 0x428e51
push dword [ebp - 4]
push dword [ebp - 8]
call sub.user32.dll_WindowFromPoint
test eax, eax
je 0x428e23
push 0
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov ebx, eax
jmp 0x428e25
xor ebx, ebx
test ebx, ebx
je 0x428e37
push 0xffffffffffffffff
push ebx
call sub.kernel32.dll_GetCurrentThreadId
push eax
call sub.user32.dll_AttachThreadInput
call sub.user32.dll_GetCursor
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x428e51
push 0
push ebx
call sub.kernel32.dll_GetCurrentThreadId
push eax
call sub.user32.dll_AttachThreadInput
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x428eba
test byte [ebp - 0x10], 1
je 0x428eba
lea eax, [ebp - 0x28]
push eax
push ebx
call sub.user32.dll_GetIconInfo
test eax, eax
je 0x428e92
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x428e79
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x428e86
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x24]
sub dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
sub dword [ebp - 4], eax
push 3
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
sub edx, dword [eax - 8]
push edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
sub edx, dword [eax - 4]
push edx
push esi
call sub.user32.dll_DrawIconEx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ac54
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov byte [esp + 4], cl
mov dword [esp], edx
mov edi, eax
mov ecx, edi
movzx eax, byte [esp]
mov byte [esp + 5], al
mov edx, edi
shr edx, 8
mov eax, dword [esp]
shr eax, 8
mov byte [esp + 6], al
mov eax, edi
shr eax, 0x10
mov ebx, dword [esp]
shr ebx, 0x10
mov byte [esp + 7], bl
xor esi, esi
cmp byte [esp + 4], 0
je 0x42ace8
movzx ebx, cl
movzx ebp, byte [esp + 5]
add ebx, ebp
cmp ebx, 0xff
jbe 0x42acac
inc esi
mov cl, 0xff
jmp 0x42acb0
add cl, byte [esp + 5]
movzx ebx, dl
movzx ebp, byte [esp + 6]
add ebx, ebp
cmp ebx, 0xff
jbe 0x42acc7
inc esi
mov dl, 0xff
jmp 0x42accb
add dl, byte [esp + 6]
movzx ebx, al
movzx ebp, byte [esp + 7]
add ebx, ebp
cmp ebx, 0xff
jbe 0x42ace2
inc esi
mov al, 0xff
jmp 0x42ad15
add al, byte [esp + 7]
jmp 0x42ad15
cmp cl, byte [esp + 5]
jae 0x42acf3
inc esi
xor ecx, ecx
jmp 0x42acf7
sub cl, byte [esp + 5]
cmp dl, byte [esp + 6]
jae 0x42ad02
inc esi
xor edx, edx
jmp 0x42ad06
sub dl, byte [esp + 6]
cmp al, byte [esp + 7]
jae 0x42ad11
inc esi
xor eax, eax
jmp 0x42ad15
sub al, byte [esp + 7]
dec esi
jle 0x42ad2c
movzx ecx, byte [esp + 4]
xor cl, 1
mov edx, dword [esp]
mov eax, edi
call fcn.0042ac54
jmp 0x42ad3f
movzx eax, al
shl eax, 0x10
movzx edx, dl
shl edx, 8
add eax, edx
movzx edx, cl
add eax, edx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42bf90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42c013
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, 0x10
call fcn.00403694
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x30]
sub eax, 0x2e
mov dword [esi + 8], eax
push 0x410
push esi
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0042c130
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
push eax
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0042c130
mov eax, dword [ebp - 8]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push edi
call sub.user32.dll_DrawTextA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c01a
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl160.bpl__System__LStrArrayClr_qqrpvi
ret

Function at 0x42c534
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x42c57f
push 0
push 0
push 0xe
push esi
call sub.user32.dll_SendMessageA
mov edx, eax
inc edx
lea eax, [ebx + 0x50]
xor ecx, ecx
call sub.rtl160.bpl__System__LStrSetLength_qqrr27System__AnsiStringT_us_i0__ius
mov eax, dword [ebx + 0x50]
push eax
mov eax, dword [ebx + 0x50]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
push eax
push 0xd
mov eax, dword [ebx + 0x14]
push eax
call sub.user32.dll_SendMessageA
mov edx, eax
lea eax, [ebx + 0x50]
xor ecx, ecx
call sub.rtl160.bpl__System__LStrSetLength_qqrr27System__AnsiStringT_us_i0__ius
mov eax, edi
mov edx, dword [ebx + 0x50]
call sub.rtl160.bpl__System__LStrAsg_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__
pop edi
pop esi
pop ebx
ret