joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408bc0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*4]
sub ecx, eax
neg ecx
add ecx, ecx
lea edx, [ecx + ecx]
mov ecx, 0xc
sub ecx, edx
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 1]
push ecx
xor esi, esi
call fcn.0041ad8c
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x408c19
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 2
jle 0x408ca2
lea edx, [edi - 3]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
lea eax, [edx*4]
sub eax, edx
neg eax
add edi, eax
mov dword [ebp - 4], edx
mov dword [ebp + 8], edi
movzx eax, byte [ebx]
movzx edi, byte [ebx + 1]
mov edx, eax
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], dl
and eax, 3
add eax, eax
mov edx, edi
shr edx, 4
movzx eax, byte [edx + eax*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 1], al
movzx eax, byte [ebx + 2]
mov edx, eax
shr edx, 6
and edi, 0xf
movzx edx, byte [edx + edi*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 2], dl
mov byte [ecx + esi + 3], al
add esi, 4
add ebx, 3
dec dword [ebp - 4]
jne 0x408c42
mov edi, dword [ebp + 8]
test edi, edi
je 0x408d02
movzx edi, byte [ebx]
mov edx, edi
shr edx, 2
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and edi, 3
cmp dword [ebp + 8], 1
mov byte [ecx + esi], al
jle 0x408ceb
movzx eax, byte [ebx + 1]
mov edx, eax
shr edx, 4
add edi, edi
mov dl, byte [edx + edi*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 1], dl
mov byte [ecx + esi + 2], al
mov byte [ecx + esi + 3], 0x3d
jmp 0x408cff
shl edi, 4
mov dl, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 1], dl
mov word [ecx + esi + 2], 0x3d3d
add esi, 4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x408d0b
mov dword [eax], esi
pop edi
mov byte [ecx + esi], 0
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a590
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 0x433ee0
push esi
mov edi, eax
call fcn.0041eab0
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 0x40a5ca
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x40a5d9
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x40a5e8
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x40a5f7
mov eax, edi
xor dword [esi - 8], edx
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x40a604
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x40a613
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x40a622
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x40a631
mov eax, edi
xor dword [esi - 4], edx
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x40a63e
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x40a64d
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x40a65c
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x40a66b
mov eax, edi
xor dword [esi], edx
add esi, 0xc
dec dword [ebp - 4]
jne 0x40a5c0
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.00409fa0
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 0x40a683
xor edi, edi
pop ebx
jmp 0x40a6b0
mov eax, dword [ebp + 8]
lea esi, [ebp - 8]
call fcn.00409fa0
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 0x40a6b0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ba70
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x43b050]
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 0x40baad
mov dword [ebp + 8], eax
mov edx, dword [ebp + 8]
push edx
push ecx
lea eax, [ebp - 0x3c]
push eax
call fcn.0041eab0
lea edi, [ebx + 0x10]
push 0x1000
add ebx, 0x58
push 0x432ee0
mov ecx, 0x12
mov esi, 0x432e98
mov dword [ebp - 0x44], edi
push ebx
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x54], ebx
call fcn.0041eab0
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 0x40bb15
xor eax, eax
lea ecx, [ebp - 0x3c]
test esi, esi
jne 0x40bb00
xor dword [edi], edx
add edi, 4
dec dword [ebp - 0x40]
jne 0x40baf5
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.0040bbb0
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 0x40bb31
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.0040bbb0
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 0x40bb64
add dword [ebp - 0x40], 0x400
dec dword [ebp - 0x44]
jne 0x40bb5f
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x48]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ad7d
mov esp, ebp
pop ebp
ret 8
Function at 0x40c6d0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x520
mov eax, dword [0x43b050]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x103
lea ecx, [ebp - 0x113]
push 0
push ecx
mov dword [ebp - 0x520], eax
mov edi, 0xd
mov byte [ebp - 0x114], 0
call fcn.0041ce00
add esp, 0xc
push 0x104
lea edx, [ebp - 0x114]
push edx
push 0
call dword [0x4300b8]
lea eax, [ebp - 0x114]
push 0x5c
push eax
call fcn.0041c5f0
add esp, 8
test eax, eax
je 0x40c930
lea ecx, [ebp - 0x114]
push 0x5c
push ecx
mov byte [eax], 0
call fcn.0041c5f0
add esp, 8
test eax, eax
je 0x40c930
push str.ExtraInfo.ini
lea edx, [ebp - 0x114]
push 0x104
push edx
mov byte [eax], 0
call fcn.0041c656
mov esi, dword [0x430218]
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
call esi
test eax, eax
jne 0x40c80f
lea ecx, [ebp - 0x518]
push ecx
lea edx, [ebp - 0x114]
push edx
mov byte [ebp - 0x114], al
lea eax, [ebp - 0x51c]
push eax
push str.Install
push str.SoftwareTencentQQ2009
push 0x80000002
mov dword [ebp - 0x51c], 1
mov dword [ebp - 0x518], 0x104
call dword [0x430214]
cmp byte [ebp - 0x114], 0
je 0x40c930
push str.ExtraInfo.ini
lea ecx, [ebp - 0x114]
push 0x104
push ecx
call fcn.0041c656
add esp, 0xc
lea edx, [ebp - 0x114]
push edx
call esi
neg eax
sbb eax, eax
and eax, 0xfffffff3
add eax, edi
jne 0x40c932
push 0x3ff
lea eax, [ebp - 0x513]
push 0
push eax
mov byte [ebp - 0x514], 0
call fcn.0041ce00
add esp, 0xc
lea ecx, [ebp - 0x114]
push ecx
push 0x400
lea edx, [ebp - 0x514]
push edx
push 0x435944
push str.Item2
push str.Main
call dword [0x4300b4]
mov ebx, eax
test ebx, ebx
je 0x40c91a
test bl, 1
jne 0x40c91a
mov edi, ebx
shr edi, 1
push ebx
mov dword [ebp - 0x518], edi
call fcn.0041b6a3
push edi
push 0
push eax
mov dword [ebp - 0x51c], eax
call fcn.0041ce00
add esp, 0x10
xor esi, esi
test ebx, ebx
je 0x40c8c4
mov edi, dword [ebp - 0x51c]
jmp 0x40c8a0
push edi
lea eax, [ebp + esi - 0x514]
push str._02x
push eax
call fcn.0041be9c
add esi, 2
add esp, 0xc
inc edi
cmp esi, ebx
jb 0x40c8a0
mov edi, dword [ebp - 0x518]
mov esi, dword [ebp - 0x51c]
lea ecx, [ebp - 0x518]
push ecx
mov ebx, edi
mov dword [ebp - 0x518], 0
call fcn.0040b9d0
push esi
mov edi, eax
call fcn.0041b79c
mov edx, dword [ebp - 0x518]
mov eax, dword [ebp - 0x520]
push edx
push edi
push eax
call fcn.0041eab0
push edi
call fcn.0041ad72
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041ad7d
mov esp, ebp
pop ebp
ret
mov eax, 5
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041ad7d
mov esp, ebp
pop ebp
ret
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ad7d
mov esp, ebp
pop ebp
ret
Function at 0x40c950
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x43b050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push edi
call fcn.0040c6d0
add esp, 4
test eax, eax
je 0x40ca65
lea eax, [ebp - 0x114]
push eax
push 0x201
push 0
push str.SoftwareSogouExplorer
push 0x80000002
mov dword [ebp - 0x114], 0
call dword [section..rdata]
mov eax, dword [ebp - 0x114]
mov ebx, dword [0x430044]
test eax, eax
je 0x40c9e2
lea ecx, [ebp - 0x118]
push ecx
push edi
push 0x435944
push eax
mov dword [ebp - 0x118], 0x104
call ebx
mov edx, dword [ebp - 0x114]
push edx
mov esi, eax
call dword [0x430040]
test esi, esi
je 0x40ca65
lea eax, [ebp - 0x114]
push eax
push 0x201
push 0
push str.SoftwareSogouExplorer
push 0x80000001
mov dword [ebp - 0x114], 0
call dword [section..rdata]
mov eax, dword [ebp - 0x114]
test eax, eax
je 0x40ca41
lea ecx, [ebp - 0x118]
push ecx
push edi
push 0x435944
push eax
mov dword [ebp - 0x118], 0x104
call ebx
mov edx, dword [ebp - 0x114]
push edx
mov esi, eax
call dword [0x430040]
test esi, esi
je 0x40ca65
push edi
push 0
push 0
push 0x26
push 0
call dword [0x430200]
push edi
push str._sSogouExplorer
push 0x104
push edi
call dword [0x43021c]
add esp, 0x10
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.0041ce00
add esp, 0xc
lea esi, [ebp - 0x110]
call fcn.0040cc00
test al, al
jne 0x40caa7
mov eax, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ad7d
mov esp, ebp
pop ebp
ret
push edi
push str._sSogouExplorer.exe
push 0x104
push edi
call dword [0x43021c]
add esp, 0x10
push edi
call dword [0x430218]
test eax, eax
je 0x40ca91
xor eax, eax
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x118], eax
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
push ecx
lea eax, [ebp - 0x110]
call fcn.0040cb30
mov ecx, dword [ebp - 4]
add esp, 0x10
cmp dword [ebp - 0x114], 5
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
and eax, 0xc
pop ebx
call fcn.0041ad7d
mov esp, ebp
pop ebp
ret
Function at 0x40cb30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push edi
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push edi
mov byte [ebp - 1], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x40cb5e
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push esi
call fcn.0041ad8c
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40cbb5
push ebx
push esi
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x40cbb5
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
xor eax, eax
push 0x4329f8
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40cbb5
mov esi, dword [ebp - 8]
mov ecx, 0xd
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x44], 0xfeef04bd
sete byte [ebp - 1]
push ebx
call main
add esp, 4
cmp byte [ebp - 1], 0
pop ebx
je 0x40cb56
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp + 8]
mov ecx, eax
shr ecx, 0x10
mov dword [edx], ecx
mov ecx, dword [ebp + 0xc]
movzx eax, ax
mov dword [ecx], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 0x10]
mov edx, eax
shr edx, 0x10
mov dword [ecx], edx
movzx edx, ax
mov eax, dword [ebp + 0x14]
pop edi
mov dword [eax], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40cc00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x284
mov eax, dword [0x43b050]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
xor ebx, ebx
push 0x103
lea eax, [esp + 0x17d]
push ebx
push eax
mov byte [esp + 0x184], bl
call fcn.0041ce00
push edi
push str._s
lea ecx, [esp + 0x18c]
push 0x104
push ecx
call dword [0x43021c]
push 0x13c
lea edx, [esp + 0x5c]
push ebx
push edx
mov dword [esp + 0x60], ebx
call fcn.0041ce00
add esp, 0x28
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x17c]
push ecx
call dword [0x4300ac]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x40cc98
xor al, al
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.0041ad7d
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
cmp byte [esp + 0x64], 0x2e
je 0x40cd3b
test byte [esp + 0x38], 0x10
je 0x40cd3b
lea edx, [esp + 0x1c]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
push edx
lea ebx, [esp + 0x68]
call fcn.0040d760
mov eax, ebx
push eax
push edi
push str._s_sSogouExplorer.dll
push 0x104
push esi
call dword [0x43021c]
add esp, 0x14
push esi
call dword [0x430218]
test eax, eax
je 0x40cd39
xor eax, eax
mov ecx, dword [esp + eax + 0x1c]
mov edx, dword [esp + eax + 0xc]
cmp ecx, edx
ja 0x40cd19
jb 0x40cd39
add eax, 4
cmp eax, 0x10
jl 0x40cd01
jmp 0x40cd39
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
xor ebx, ebx
mov eax, dword [esp + 8]
lea edx, [esp + 0x38]
push edx
push eax
call dword [0x4300bc]
test eax, eax
jne 0x40cca8
mov ecx, dword [esp + 8]
push ecx
call dword [0x4300b0]
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x20]
call fcn.0040c490
mov ebx, 0x10
cmp dword [eax + 0x14], ebx
jb 0x40cd78
mov eax, dword [eax]
push eax
push edi
push str._s_sSogouExplorer.dll
push 0x104
push esi
call dword [0x43021c]
add esp, 0x14
cmp dword [esp + 0x30], ebx
jb 0x40cda1
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041ad72
add esp, 4
push esi
call dword [0x430218]
mov ecx, dword [esp + 0x284]
neg eax
sbb eax, eax
pop ebx
xor ecx, esp
neg eax
call fcn.0041ad7d
mov esp, ebp
pop ebp
ret
Function at 0x40d960
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x43b050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x500000
mov esi, ecx
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x214]
mov dword [ebp - 0x220], eax
xor edi, edi
push edx
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x22c], 0xc
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], 1
call dword [0x4300cc]
test eax, eax
je 0x40d9e1
mov ecx, dword [ebp - 0x214]
push edi
push 1
push ecx
call dword [0x4300c0]
test eax, eax
jne 0x40d9f9
mov eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ad7d
mov esp, ebp
pop ebp
ret 8
push 0x44
lea edx, [ebp - 0x288]
push edi
push edx
call fcn.0041ce00
mov eax, dword [ebp - 0x218]
push 0x206
lea edx, [ebp - 0x20e]
xor ecx, ecx
push edi
push edx
mov dword [ebp - 0x288], 0x44
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x25c], 0x100
mov word [ebp - 0x210], cx
call fcn.0041ce00
add esp, 0x18
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x288]
push ecx
push edi
push edi
push edi
push 1
push edi
push edi
push edi
add esi, 0xc
push esi
call dword [0x4300c4]
test eax, eax
jne 0x40da9a
mov edx, dword [ebp - 0x218]
mov esi, dword [0x430108]
push edx
call esi
mov eax, dword [ebp - 0x214]
push eax
call esi
mov eax, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ad7d
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 0x23c]
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push edx
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
mov eax, dword [ebp - 0x238]
mov esi, dword [0x430108]
push eax
call esi
mov ecx, dword [ebp - 0x23c]
push ecx
call esi
mov ecx, dword [ebp - 0x214]
mov ebx, dword [0x430110]
push edi
lea edx, [ebp - 0x21c]
push edx
push 4
lea eax, [ebp + 0xc]
push eax
push ecx
mov dword [ebp - 0x21c], edi
call ebx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x220]
push edi
lea edx, [ebp - 0x21c]
push edx
mov edx, dword [ebp - 0x214]
push eax
push ecx
push edx
mov dword [ebp - 0x21c], edi
call ebx
mov ebx, eax
mov eax, dword [ebp - 0x214]
push eax
call esi
mov ecx, dword [ebp - 0x218]
push ecx
call esi
cmp ebx, edi
je 0x40db8d
mov edx, dword [ebp - 0x21c]
cmp edx, dword [ebp + 0xc]
jne 0x40db8d
lea eax, [ebp - 0x210]
push 0x5c
push eax
call fcn.0041b048
add esp, 8
cmp eax, edi
je 0x40db78
lea esi, [eax + 2]
push esi
call fcn.0041b2d7
add esp, 4
call fcn.00416e70
cmp eax, 0xe63b8692
jne 0x40db78
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ad7d
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ad7d
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 9
pop ebx
call fcn.0041ad7d
mov esp, ebp
pop ebp
ret 8
Function at 0x40dc60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0xc]
push edi
mov ecx, ebx
mov edi, eax
call fcn.0040c950
test eax, eax
jne 0x40dd94
push ebx
call dword [0x430218]
test eax, eax
je 0x40dd94
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40dc91
sub eax, edx
sar eax, 1
mov dword [esi + 4], eax
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041bab3
mov ecx, dword [esi + 4]
add esp, 4
push edi
push 0x435504
inc ecx
push ecx
push eax
mov dword [esi + 8], eax
call dword [0x430210]
mov ebx, dword [esi + 4]
lea ebx, [ebx + ebx + 0xc]
push ebx
call fcn.0041bab3
mov edx, dword [esi]
mov edi, eax
mov dword [edi], edx
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
add esp, 0x14
add edx, edx
push edx
push eax
lea ecx, [edi + 0xc]
push ecx
call fcn.0041eab0
add esp, 0xc
push 0x40
push str.wujian_fjh0fsafdf190u_rsali_fsi_sdil_saf_fas3__fwad_19840718_fs
lea edx, [ebp - 4]
push edx
push ebx
push edi
mov dword [ebp - 4], 0
call fcn.0040b8b0
add esp, 0x14
push edi
mov ebx, eax
call fcn.0041ad72
add esp, 4
test ebx, ebx
je 0x40dd88
mov edi, dword [ebp - 4]
test edi, edi
je 0x40dd88
call fcn.0040dbe0
push eax
mov dword [ebp - 4], eax
call dword [0x430240]
push edi
push ebx
test eax, eax
je 0x40dd6d
mov ecx, dword [ebp - 4]
call fcn.0040d830
push ebx
mov esi, eax
call fcn.0041ad72
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0040d960
push ebx
mov esi, eax
call fcn.0041ad72
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xc
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f5f0
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x43b050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
cmp edi, 0x10
je 0x40f624
cmp edi, 0xc
je 0x40f624
cmp edi, 8
je 0x40f624
mov dword [ebp + 0x10], 0x10
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
xor edx, edx
lea esi, [ecx - 8]
mov dword [ebx], edi
mov dword [ebp - 0x108], edx
test esi, esi
js 0x40f6aa
add esi, 8
shr esi, 3
lea ecx, [esi*8]
mov dword [ebp - 0x108], ecx
jmp 0x40f650
movzx edi, byte [eax + 1]
movzx ecx, byte [eax]
shl edi, 8
or ecx, edi
movzx edi, byte [eax + 2]
shl edi, 0x10
or ecx, edi
movzx edi, byte [eax + 3]
shl edi, 0x18
or ecx, edi
movzx edi, byte [eax + 5]
mov dword [ebp + edx*4 - 0x104], ecx
movzx ecx, byte [eax + 4]
shl edi, 8
or ecx, edi
movzx edi, byte [eax + 6]
shl edi, 0x10
or ecx, edi
movzx edi, byte [eax + 7]
shl edi, 0x18
or ecx, edi
mov dword [ebp + edx*4 - 0x100], ecx
add eax, 8
add edx, 2
dec esi
jne 0x40f650
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov esi, ecx
sub esi, dword [ebp - 0x108]
je 0x40f723
and ecx, 7
add eax, ecx
dec ecx
xor edi, edi
xor esi, esi
cmp ecx, 7
ja case.default.0x40f6c3
jmp dword [ecx*4 + 0x40f804]
movzx edi, byte [eax - 1]
dec eax
shl edi, 0x18
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 0x10
or edi, ecx
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 8
or edi, ecx
movzx ecx, byte [eax - 1]
dec eax
or edi, ecx
movzx esi, byte [eax - 1]
dec eax
shl esi, 0x18
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 0x10
or esi, ecx
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 8
or esi, ecx
movzx eax, byte [eax - 1]
or esi, eax
mov ecx, dword [ebp + 8]
mov dword [ebp + edx*4 - 0x100], edi
mov edi, dword [ebp + 0x10]
mov dword [ebp + edx*4 - 0x104], esi
lea eax, [ecx + 3]
cdq
and edx, 3
add eax, edx
lea edx, [edi + edi + 2]
sar eax, 2
mov ecx, 1
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], edx
mov dword [ebx + 4], 0xb7e15163
cmp edx, ecx
jle 0x40f762
nop
mov esi, dword [ebx + ecx*4]
sub esi, 0x61c88647
mov dword [ebx + ecx*4 + 4], esi
inc ecx
cmp ecx, edx
jl 0x40f750
cmp edx, eax
jg 0x40f768
mov edx, eax
lea ecx, [edx + edx*2]
xor edi, edi
xor esi, esi
xor eax, eax
mov dword [ebp - 0x108], edi
test ecx, ecx
jle 0x40f7f4
mov dword [ebp - 0x10c], ecx
jmp 0x40f790
mov edx, dword [ebp - 0x108]
mov edx, dword [ebp + edx*4 - 0x104]
lea ecx, [eax + edi]
add ecx, dword [ebx + esi*4 + 4]
add edx, eax
rol ecx, 3
mov edi, ecx
mov dword [ebx + esi*4 + 4], ecx
lea ecx, [eax + edi]
and ecx, 0x1f
add edx, edi
rol edx, cl
mov ecx, dword [ebp - 0x108]
inc esi
mov dword [ebp + ecx*4 - 0x104], edx
mov eax, edx
cmp esi, dword [ebp - 0x110]
jl 0x40f7d3
xor esi, esi
inc ecx
mov dword [ebp - 0x108], ecx
cmp ecx, dword [ebp - 0x114]
jl 0x40f7ec
mov dword [ebp - 0x108], 0
dec dword [ebp - 0x10c]
jne 0x40f790
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041ad7d
mov esp, ebp
pop ebp
ret