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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e1f8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x43b050]
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.0040a050
mov eax, dword [eax]
add esp, 4
lea ecx, [ebp - 0x20]
push ecx
call fcn.004054c0
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 0x408e27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], bl
je 0x408e61
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 0x408e4c
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 0x408e6f
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 0x408e90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x43b050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x208
mov dword [ebp - 0x214], 0
lea eax, [ebp - 0x20c]
push 0
push eax
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x218], 0x104
mov dword [ebp - 0x214], 1
call fcn.0041d2e0
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, str.SWXINARKIlnclzsQQ4667
call fcn.0040a050
mov eax, dword [eax]
add esp, 0x10
push 0
lea edx, [ebp - 0x210]
push edx
push 0
push 0x20019
push 0
push 0
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov eax, dword [ebp - 0x21c]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408f3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
pop ebx
je 0x408f92
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 0x435b04
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str._bin
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0041c1c2
add esp, 0xc
push esi
lea ecx, [ebp - 0x20c]
call fcn.00403220
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.0041b25d
mov esp, ebp
pop ebp
ret
Function at 0x409090
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 0x4090b4
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 0x4090ad
mov ecx, dword [ebp + 8]
cmp edi, 2
jbe 0x409140
lea edx, [edi - 3]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
push ebx
jmp 0x4090e0
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 0x4090e0
pop ebx
test edi, edi
je 0x4091a4
movzx edx, byte [esi]
shr edx, 2
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
cmp edi, 1
jbe 0x409189
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 0x4091a1
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 0x40aa50
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.0041ef90
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 0x40aa8a
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x40aa99
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x40aaa8
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x40aab7
mov eax, edi
xor dword [esi - 8], edx
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x40aac4
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x40aad3
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x40aae2
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x40aaf1
mov eax, edi
xor dword [esi - 4], edx
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x40aafe
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x40ab0d
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x40ab1c
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x40ab2b
mov eax, edi
xor dword [esi], edx
add esi, 0xc
dec dword [ebp - 4]
jne 0x40aa80
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.0040a460
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 0x40ab43
xor edi, edi
pop ebx
jmp 0x40ab70
mov eax, dword [ebp + 8]
lea esi, [ebp - 8]
call fcn.0040a460
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 0x40ab70
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40bf40
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 0x40bf7d
mov dword [ebp + 8], eax
mov edx, dword [ebp + 8]
push edx
push ecx
lea eax, [ebp - 0x3c]
push eax
call fcn.0041ef90
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.0041ef90
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 0x40bfe5
xor eax, eax
lea ecx, [ebp - 0x3c]
test esi, esi
jne 0x40bfd0
xor dword [edi], edx
add edi, 4
dec dword [ebp - 0x40]
jne 0x40bfc5
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.0040c080
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 0x40c001
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.0040c080
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 0x40c034
add dword [ebp - 0x40], 0x400
dec dword [ebp - 0x44]
jne 0x40c02f
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x48]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b25d
mov esp, ebp
pop ebp
ret 8
Function at 0x40cba0
Capabilities:
Check if file exists
Query or enumerate registry value
Read .ini file

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.0041d2e0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x114]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x114]
push 0x5c
push eax
call fcn.0041ca00
add esp, 8
test eax, eax
je 0x40ce00
lea ecx, [ebp - 0x114]
push 0x5c
push ecx
mov byte [eax], 0
call fcn.0041ca00
add esp, 8
test eax, eax
je 0x40ce00
push str.ExtraInfo.ini
lea edx, [ebp - 0x114]
push 0x104
push edx
mov byte [eax], 0
call fcn.0041ca66
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
call esi
test eax, eax
jne 0x40ccdf
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 [sym.imp.SHLWAPI.dll_SHGetValueA]
cmp byte [ebp - 0x114], 0
je 0x40ce00
push str.ExtraInfo.ini
lea ecx, [ebp - 0x114]
push 0x104
push ecx
call fcn.0041ca66
add esp, 0xc
lea edx, [ebp - 0x114]
push edx
call esi
neg eax
sbb eax, eax
and eax, 0xfffffff3
add eax, edi
jne 0x40ce02
push 0x3ff
lea eax, [ebp - 0x513]
push 0
push eax
mov byte [ebp - 0x514], 0
call fcn.0041d2e0
add esp, 0xc
lea ecx, [ebp - 0x114]
push ecx
push 0x400
lea edx, [ebp - 0x514]
push edx
push 0x435bec
push str.Item2
push str.Main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebx, eax
test ebx, ebx
je 0x40cdea
test bl, 1
jne 0x40cdea
mov edi, ebx
shr edi, 1
push ebx
mov dword [ebp - 0x518], edi
call fcn.0041bb83
push edi
push 0
push eax
mov dword [ebp - 0x51c], eax
call fcn.0041d2e0
add esp, 0x10
xor esi, esi
test ebx, ebx
je 0x40cd94
mov edi, dword [ebp - 0x51c]
jmp 0x40cd70
push edi
lea eax, [ebp + esi - 0x514]
push str._02x
push eax
call fcn.0041c2a5
add esi, 2
add esp, 0xc
inc edi
cmp esi, ebx
jb 0x40cd70
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.0040bea0
push esi
mov edi, eax
call fcn.0041bc7c
mov edx, dword [ebp - 0x518]
mov eax, dword [ebp - 0x520]
push edx
push edi
push eax
call fcn.0041ef90
push edi
call fcn.0041b252
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041b25d
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.0041b25d
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.0041b25d
mov esp, ebp
pop ebp
ret
Function at 0x40ce20
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.0040cba0
add esp, 4
test eax, eax
je 0x40cf35
lea eax, [ebp - 0x114]
push eax
push 0x201
push 0
push str.SoftwareSogouExplorer
push 0x80000002
mov dword [ebp - 0x114], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [ebp - 0x114]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x40ceb2
lea ecx, [ebp - 0x118]
push ecx
push edi
push 0x435bec
push eax
mov dword [ebp - 0x118], 0x104
call ebx
mov edx, dword [ebp - 0x114]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40cf35
lea eax, [ebp - 0x114]
push eax
push 0x201
push 0
push str.SoftwareSogouExplorer
push 0x80000001
mov dword [ebp - 0x114], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [ebp - 0x114]
test eax, eax
je 0x40cf11
lea ecx, [ebp - 0x118]
push ecx
push edi
push 0x435bec
push eax
mov dword [ebp - 0x118], 0x104
call ebx
mov edx, dword [ebp - 0x114]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40cf35
push edi
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push edi
push str._sSogouExplorer
push 0x104
push edi
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x10
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.0041d2e0
add esp, 0xc
lea esi, [ebp - 0x110]
call fcn.0040d0d0
test al, al
jne 0x40cf77
mov eax, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b25d
mov esp, ebp
pop ebp
ret
push edi
push str._sSogouExplorer.exe
push 0x104
push edi
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x10
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40cf61
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.0040d000
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.0041b25d
mov esp, ebp
pop ebp
ret
Function at 0x40d000
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 0x40d02e
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push esi
call fcn.0041b26c
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40d085
push ebx
push esi
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x40d085
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 0x40d085
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 fcn.0041b300
add esp, 4
cmp byte [ebp - 1], 0
pop ebx
je 0x40d026
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 0x40d0d0
Capabilities:
Check if file exists
Enumerate files on windows

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.0041d2e0
push edi
push str._s
lea ecx, [esp + 0x18c]
push 0x104
push ecx
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
push 0x13c
lea edx, [esp + 0x5c]
push ebx
push edx
mov dword [esp + 0x60], ebx
call fcn.0041d2e0
add esp, 0x28
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x17c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x40d168
xor al, al
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.0041b25d
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 0x40d20b
test byte [esp + 0x38], 0x10
je 0x40d20b
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.0040dc30
mov eax, ebx
push eax
push edi
push str._s_sSogouExplorer.dll
push 0x104
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40d209
xor eax, eax
mov ecx, dword [esp + eax + 0x1c]
mov edx, dword [esp + eax + 0xc]
cmp ecx, edx
ja 0x40d1e9
jb 0x40d209
add eax, 4
cmp eax, 0x10
jl 0x40d1d1
jmp 0x40d209
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 [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40d178
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x20]
call fcn.0040c960
mov ebx, 0x10
cmp dword [eax + 0x14], ebx
jb 0x40d248
mov eax, dword [eax]
push eax
push edi
push str._s_sSogouExplorer.dll
push 0x104
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
cmp dword [esp + 0x30], ebx
jb 0x40d271
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041b252
add esp, 4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ecx, dword [esp + 0x284]
neg eax
sbb eax, eax
pop ebx
xor ecx, esp
neg eax
call fcn.0041b25d
mov esp, ebp
pop ebp
ret
Function at 0x40de30
Capabilities:
Create pipe
Create process on windows
Get process image filename
Write and execute a file
Write file on windows
Write pipe

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 [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x40deb1
mov ecx, dword [ebp - 0x214]
push edi
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x40dec9
mov eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b25d
mov esp, ebp
pop ebp
ret 8
push 0x44
lea edx, [ebp - 0x288]
push edi
push edx
call fcn.0041d2e0
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.0041d2e0
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 [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40df6a
mov edx, dword [ebp - 0x218]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
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.0041b25d
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 [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x23c]
push ecx
call esi
mov ecx, dword [ebp - 0x214]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
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 0x40e05d
mov edx, dword [ebp - 0x21c]
cmp edx, dword [ebp + 0xc]
jne 0x40e05d
lea eax, [ebp - 0x210]
push 0x5c
push eax
call fcn.0041b528
add esp, 8
cmp eax, edi
je 0x40e048
lea esi, [eax + 2]
push esi
call fcn.0041b7b7
add esp, 4
call fcn.00417340
cmp eax, 0xe63b8692
jne 0x40e048
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b25d
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.0041b25d
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.0041b25d
mov esp, ebp
pop ebp
ret 8
Function at 0x40e0b0
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0
push 0
push 0
mov dword [0x43e4cc], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0x43e4cc
push 0x40e080
push 0
push 0
mov dword [0x43e4d0], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov eax, dword [0x43e4d0]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x43e4d0]
push ecx
call esi
mov eax, dword [0x43e4cc]
mov dword [0x43e4d0], 0
pop esi
ret

Function at 0x40e130
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.0040ce20
test eax, eax
jne 0x40e264
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40e264
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e161
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.0041bf93
mov ecx, dword [esi + 4]
add esp, 4
push edi
push 0x4357f4
inc ecx
push ecx
push eax
mov dword [esi + 8], eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov ebx, dword [esi + 4]
lea ebx, [ebx + ebx + 0xc]
push ebx
call fcn.0041bf93
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.0041ef90
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.0040bd80
add esp, 0x14
push edi
mov ebx, eax
call fcn.0041b252
add esp, 4
test ebx, ebx
je 0x40e258
mov edi, dword [ebp - 4]
test edi, edi
je 0x40e258
call fcn.0040e0b0
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_IsWindow]
push edi
push ebx
test eax, eax
je 0x40e23d
mov ecx, dword [ebp - 4]
call fcn.0040dd00
push ebx
mov esi, eax
call fcn.0041b252
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0040de30
push ebx
mov esi, eax
call fcn.0041b252
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