joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409fa0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431cd8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x43e0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x14]
push eax
mov ecx, str.SpesmarlHjcrpkpesNjzupwk_Tfjezs
mov dword [ebp - 4], ebx
call fcn.0040dcd0
mov eax, dword [eax]
add esp, 4
lea ecx, [ebp - 0x20]
push ecx
mov ecx, 0x80000001
call fcn.00405a90
test eax, eax
mov eax, dword [ebp - 0x14]
sete byte [ebp - 0xd]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a01e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], bl
je 0x40a0ca
cmp esi, ebx
je 0x40a069
cmp word [esi], bx
je 0x40a069
lea ecx, [ebp - 0x14]
push ecx
mov ecx, 0x438c8c
call fcn.0040dcd0
mov edi, dword [eax]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push esi
push 1
push ebx
push edi
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
cmp eax, ebx
sete cl
mov esi, ecx
jmp 0x40a08c
lea ecx, [ebp - 0x14]
push ecx
mov ecx, 0x438c8c
call fcn.0040dcd0
mov eax, dword [eax]
mov edi, dword [ebp - 0x20]
add esp, 4
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
neg eax
sbb esi, esi
inc esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a0ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, ebx
je 0x40a0b6
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x40a0d8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ad30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431ef8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x43e0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040a310
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x40ada5
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ad94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x14]
push ecx
call fcn.0040a970
mov eax, dword [ebp - 0x14]
add esp, 4
cmp dword [eax - 0xc], 0
jne 0x40ade2
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40add6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x40ad78
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or edx, 0xffffffff
test eax, eax
mov eax, dword [ebp - 0x14]
jne 0x40ae02
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40adca
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ae1b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ae41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x40aef0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x43e0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
test esi, esi
je 0x40afa2
lea eax, [ebp - 0x20]
push eax
mov eax, str.SoftwareTencentTodayDo
mov ecx, 0x80000001
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.00405a90
test eax, eax
jne 0x40af94
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x14]
movzx eax, word [ebp - 0x12]
imul edx, edx, 0x64
movzx ecx, word [ebp - 0xe]
mov edi, dword [ebp - 0x20]
add edx, eax
imul edx, edx, 0x64
add edx, ecx
push 4
mov dword [ebp - 0x24], edx
lea edx, [ebp - 0x24]
push edx
push 4
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
test edi, edi
je 0x40af81
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 1]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e965
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40afa2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0041e965
mov esp, ebp
pop ebp
ret

Function at 0x40afc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x2001f
xor esi, esi
push esi
push str.SoftwareTencentTodayDo
push 0x80000001
mov dword [ebp - 8], 0
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b015
mov esi, dword [ebp - 4]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push ecx
push esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [ebp - 8]
test esi, esi
je 0x40b023
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b030
Capabilities:
Create process on windows
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43e0b0]
xor eax, ebp
mov dword [ebp - 4], eax
test esi, esi
jne 0x40b057
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e965
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 5
push 0
push 0
push esi
push str.open
push 0
call edi
cmp eax, 0x20
jg 0x40b0ea
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00420a30
add esp, 0xc
push 0
push 0x26
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.Internet_Exploreriexplore.exe
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0041ec5e
add esp, 0xc
push 5
push 0
push esi
lea ecx, [ebp - 0x20c]
push ecx
push str.open
push 0
call edi
cmp eax, 0x20
jle 0x40b0fe
push 0x3e9
call fcn.0040b120
add esp, 4
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e965
mov esp, ebp
pop ebp
ret
push 0x3ea
call fcn.0040b120
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
call fcn.0041e965
mov esp, ebp
pop ebp
ret
Function at 0x40b120
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431800
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x43e0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x43e060]
mov edx, dword [eax + 0xc]
mov ecx, 0x43e060
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
push eax
push 0x438d48
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00405780
add esp, 8
lea ecx, [ebp - 0x24]
push ecx
mov eax, str.SoftwareTencentReport
mov ecx, 0x80000001
mov dword [ebp - 0x10], ebx
call fcn.00405a90
test eax, eax
jne 0x40b232
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x24]
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
push ecx
push ebx
push edi
push esi
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x10]
push 4
lea edx, [ebp - 0x18]
push edx
push 4
push ebx
inc eax
push edi
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, ebx
je 0x40b1ee
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x24], esi
lea eax, [edi - 0x10]
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b210
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x40b21b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b254
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x40b262
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c630
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431d10
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x43e0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
je 0x40c794
cmp word [esi], bx
je 0x40c794
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x14]
push eax
mov ecx, str.SpesmarlHjcrpkpesNjzupwkTbqrlzsPlrkjpzExnfpqeq
mov dword [ebp - 4], ebx
call fcn.0040dcd0
mov eax, dword [eax]
add esp, 4
lea ecx, [ebp - 0x24]
push ecx
mov ecx, 0x80000001
call fcn.00405a90
test eax, eax
mov eax, dword [ebp - 0x14]
sete byte [ebp - 0xd]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c6bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], bl
je 0x40c786
mov edx, esi
lea ecx, [ebp - 0x18]
call fcn.0040d050
mov esi, eax
lea ecx, [ebp - 0x14]
push ecx
mov ecx, str.SalffSthslKx
mov byte [ebp - 4], 1
call fcn.0040dcd0
mov edi, dword [eax]
mov esi, dword [esi]
xor eax, eax
add esp, 4
cmp esi, ebx
setne al
cmp eax, ebx
jne 0x40c702
mov esi, dword [ebp - 0x24]
mov eax, 0xd
jmp 0x40c71d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push esi
mov esi, dword [ebp - 0x24]
push 1
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
cmp eax, ebx
mov eax, dword [ebp - 0x14]
sete cl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov edi, ecx
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c745
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c767
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x40c772
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x40c794
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c930
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431cd8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x43e0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x14]
push eax
mov ecx, str.SpesmarlHjcrpkpesNjzupwk_Hluih
mov dword [ebp - 4], ebx
call fcn.0040dcd0
mov eax, dword [eax]
add esp, 4
lea ecx, [ebp - 0x20]
push ecx
mov ecx, 0x80000001
call fcn.00405a90
test eax, eax
mov eax, dword [ebp - 0x14]
sete byte [ebp - 0xd]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c9ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], bl
je 0x40c9e6
mov edi, dword [ebp - 0x20]
push str.PnSate
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
neg esi
sbb esi, esi
cmp edi, ebx
je 0x40c9d1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x40c9f4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ca10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x43e0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x208
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x20c]
push 0
push ecx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x218], 0x104
mov dword [ebp - 0x214], 1
call fcn.00420a30
lea edx, [ebp - 0x21c]
push edx
mov ecx, str.SWXINARKIlnclzsQQ4667
call fcn.0040dcd0
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0x10
lea ecx, [ebp - 0x210]
push ecx
push 0x20019
push 0
push eax
push 0x80000002
call esi
test eax, eax
mov eax, dword [ebp - 0x21c]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cac2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
je 0x40cafe
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x214]
push eax
push 0
push 0x438e24
push ecx
call ebx
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [ebp - 0x20c], 0
jne 0x40cb62
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
push str.SOFTWARETencentQQLite
push 0x80000002
call esi
test eax, eax
jne 0x40cb58
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x214]
push eax
push 0
push 0x438e24
push ecx
call ebx
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [ebp - 0x20c], 0
je 0x40cb7b
push str._bin
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0041ec5e
add esp, 0xc
mov esi, dword [ebp - 0x220]
push esi
lea ecx, [ebp - 0x20c]
call fcn.00404800
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e965
mov esp, ebp
pop ebp
ret
Function at 0x40cd70
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, eax
mov esi, ecx
lea ecx, [edi + 2]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
cmp edx, 0x40000000
jb 0x40cd94
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
add edx, edx
add edx, edx
cmp dword [eax], edx
jb 0x40cd8d
mov ecx, dword [ebp + 8]
cmp edi, 2
jbe 0x40ce20
lea edx, [edi - 3]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
push ebx
jmp 0x40cdc0
movzx eax, byte [esi]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx eax, byte [esi]
movzx ebx, byte [esi + 1]
and eax, 3
add eax, eax
shr ebx, 4
movzx eax, byte [ebx + eax*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
movzx ebx, byte [esi + 2]
and eax, 0xf
shr ebx, 6
movzx eax, byte [ebx + eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
movzx eax, byte [esi + 2]
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 3], al
add ecx, 4
add esi, 3
sub edi, 3
dec edx
jne 0x40cdc0
pop ebx
test edi, edi
je 0x40ce84
movzx edx, byte [esi]
shr edx, 2
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
cmp edi, 1
jbe 0x40ce69
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
and edx, 3
add edx, edx
shr eax, 4
movzx edx, byte [eax + edx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], dl
movzx eax, byte [esi + 1]
and eax, 0xf
movzx edx, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], dl
mov byte [ecx + 3], 0x3d
jmp 0x40ce81
movzx eax, byte [esi]
and eax, 3
shl eax, 4
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], dl
mov word [ecx + 2], 0x3d3d
add ecx, 4
mov edx, dword [ebp + 0xc]
mov eax, ecx
sub eax, dword [ebp + 8]
pop edi
mov dword [edx], eax
mov byte [ecx], 0
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40e710
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
push 0x1048
push 0x436938
push esi
mov edi, eax
call fcn.004217f0
add esp, 0xc
mov eax, edi
lea ecx, [edi + 8]
add esi, 8
mov dword [ebp - 4], 6
push ebx
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x40e74a
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x40e759
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x40e768
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x40e777
mov eax, edi
xor dword [esi - 8], edx
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x40e784
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x40e793
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x40e7a2
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x40e7b1
mov eax, edi
xor dword [esi - 4], edx
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x40e7be
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x40e7cd
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x40e7dc
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x40e7eb
mov eax, edi
xor dword [esi], edx
add esi, 0xc
dec dword [ebp - 4]
jne 0x40e740
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
xor edi, edi
mov eax, dword [ebp + 8]
lea esi, [ebp - 8]
call fcn.0040e120
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [eax + edi*4], ecx
mov dword [eax + edi*4 + 4], edx
add edi, 2
cmp edi, 0x12
jl 0x40e803
xor edi, edi
pop ebx
jmp 0x40e830
mov eax, dword [ebp + 8]
lea esi, [ebp - 8]
call fcn.0040e120
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [eax + edi*4 + 0x48], ecx
mov dword [eax + edi*4 + 0x4c], edx
add edi, 2
cmp edi, 0x400
jl 0x40e830
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40fc00
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x43e0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, edx
mov edx, dword [eax]
mov dword [ebx], edx
mov edx, dword [eax + 4]
mov dword [ebx + 4], edx
mov edx, dword [eax]
mov dword [ebx + 8], edx
mov eax, dword [eax + 4]
mov dword [ebx + 0xc], eax
mov eax, 0x38
push esi
push edi
mov dword [ebp - 0x48], ebx
cmp dword [ebp + 8], eax
jbe 0x40fc3d
mov dword [ebp + 8], eax
mov edx, dword [ebp + 8]
push edx
push ecx
lea eax, [ebp - 0x3c]
push eax
call fcn.004217f0
lea edi, [ebx + 0x10]
push 0x1000
add ebx, 0x58
push 0x435938
mov ecx, 0x12
mov esi, 0x4358f0
mov dword [ebp - 0x44], edi
push ebx
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x54], ebx
call fcn.004217f0
mov edi, dword [ebp - 0x44]
add esp, 0x18
lea ecx, [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x40], 0x12
xor edx, edx
mov esi, 4
lea esp, [esp]
movzx ebx, byte [ecx]
shl edx, 8
inc eax
dec esi
or edx, ebx
inc ecx
cmp eax, dword [ebp + 8]
jne 0x40fca5
xor eax, eax
lea ecx, [ebp - 0x3c]
test esi, esi
jne 0x40fc90
xor dword [edi], edx
add edi, 4
dec dword [ebp - 0x40]
jne 0x40fc85
mov edi, dword [ebp - 0x48]
xor ebx, ebx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
add edi, 0x10
mov eax, dword [ebp - 0x48]
lea esi, [ebp - 0x50]
call fcn.0040fd40
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov dword [edi], ecx
mov dword [edi + 4], edx
add ebx, 2
add edi, 8
cmp ebx, 0x12
jb 0x40fcc1
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], 4
mov edi, dword [ebp - 0x40]
xor ebx, ebx
mov eax, dword [ebp - 0x48]
lea esi, [ebp - 0x50]
call fcn.0040fd40
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov dword [edi], ecx
mov dword [edi + 4], edx
add ebx, 2
add edi, 8
cmp ebx, 0x100
jl 0x40fcf4
add dword [ebp - 0x40], 0x400
dec dword [ebp - 0x44]
jne 0x40fcef
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x48]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e965
mov esp, ebp
pop ebp
ret 8