joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10068b34
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1005c0b0
xor ebx, ebx
cmp dword [0x10099f9c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10068c0a
push 0x1007bb1c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10068cea
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1007bb10
push edi
call esi
cmp eax, ebx
je 0x10068cea
push eax
call fcn.1005c042
mov dword [esp], 0x1007bb00
push edi
mov dword [0x10099f9c], eax
call esi
push eax
call fcn.1005c042
mov dword [esp], 0x1007baec
push edi
mov dword [0x10099fa0], eax
call esi
push eax
call fcn.1005c042
mov dword [0x10099fa4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1005bc3e
test eax, eax
pop ecx
pop ecx
je 0x10068bd8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10051648
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10068c0a
push 0x1007bad0
push edi
call esi
push eax
call fcn.1005c042
cmp eax, ebx
pop ecx
mov dword [0x10099fac], eax
je 0x10068c0a
push 0x1007bab8
push edi
call esi
push eax
call fcn.1005c042
pop ecx
mov dword [0x10099fa8], eax
mov eax, dword [0x10099fa8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10068c8f
cmp dword [0x10099fac], ecx
je 0x10068c8f
push eax
call fcn.1005c0b9
push dword [0x10099fac]
mov esi, eax
call fcn.1005c0b9
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10068c8f
cmp edi, ebx
je 0x10068c8f
call esi
cmp eax, ebx
je 0x10068c5c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10068c5c
test byte [ebp - 0x18], 1
jne 0x10068c8f
lea eax, [ebp - 0x10]
push eax
call fcn.1005bc75
test eax, eax
pop ecx
je 0x10068c77
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10051648
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10068c86
or dword [ebp + 0x10], 0x200000
jmp 0x10068cca
or dword [ebp + 0x10], 0x40000
jmp 0x10068cca
mov eax, dword [0x10099fa0]
cmp eax, dword [ebp - 8]
je 0x10068cca
push eax
call fcn.1005c0b9
cmp eax, ebx
pop ecx
je 0x10068cca
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10068cca
mov eax, dword [0x10099fa4]
cmp eax, dword [ebp - 8]
je 0x10068cca
push eax
call fcn.1005c0b9
cmp eax, ebx
pop ecx
je 0x10068cca
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10099f9c]
call fcn.1005c0b9
cmp eax, ebx
pop ecx
je 0x10068cea
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10068cec
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1006ea87
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x1009a110], 0
push esi
jne 0x1006e9fa
call fcn.1006e925
test eax, eax
je 0x1006ea3d
mov eax, dword [0x1009a110]
cmp eax, 1
jne 0x1006ea1b
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1006ea3d
pop esi
ret
push eax
call dword [0x1009a118]
test eax, eax
jne 0x1006ea85
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1006ea41
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x1009a110]
call dword [0x1009a118]
mov edi, eax
test edi, edi
je 0x1006ea68
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x1006ea84
lea edi, [esi + 0xff0]
push esi
push dword [0x1009a110]
call dword [0x1009a114]
add esi, 0x10
cmp esi, edi
jb 0x1006ea6e
mov eax, esi
pop edi
pop esi
ret
jmp 0x1006e9e7

Function at 0x1006ec80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x10095428]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1009a278], 0
jne 0x1006ed18
mov dword [ebp - 0x21c], 0
mov word [ebp - 0x218], 0
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.10051de0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x21c]
mov dword [0x1009a278], ecx
xor eax, eax
cmp dword [0x1009a278], 0
setne al
jmp 0x1006ed1d
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10051861
mov esp, ebp
pop ebp
ret
Function at 0x10070820
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x10095428]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x128], 0
push 0x118
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.10051de0
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x10070875
mov eax, 1
jmp 0x100708c0
cmp dword [ebp - 0x124], 5
jne 0x100708ae
cmp dword [ebp - 0x120], 1
jne 0x10070896
movzx edx, word [ebp - 0x14]
cmp edx, 1
jge 0x10070896
xor eax, eax
jmp 0x100708c0
cmp dword [ebp - 0x120], 0
jne 0x100708ac
movzx eax, word [ebp - 0x14]
cmp eax, 3
jge 0x100708ac
xor eax, eax
jmp 0x100708c0
jmp 0x100708bb
cmp dword [ebp - 0x124], 5
jae 0x100708bb
xor eax, eax
jmp 0x100708c0
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10051861
mov esp, ebp
pop ebp
ret

Function at 0x10070da0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10072a28
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x10095428]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
lea esi, [ebp - 0x2c]
call fcn.100018c9
mov byte [ebp - 4], 1
mov eax, dword [0x1007bc5c]
mov dword [ebp - 0x30], eax
mov ecx, dword [0x1007bc5c]
push ecx
push 0x5c
lea ecx, [ebp - 0x2c]
call fcn.10035700
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
cmp edx, dword [0x1007bc5c]
je 0x10070e6a
mov eax, dword [ebp - 0x30]
push eax
xor ebx, ebx
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x2c]
call fcn.100019db
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x98], ecx
mov byte [ebp - 4], 2
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x98]
call fcn.100018e8
mov byte [ebp - 4], 1
lea esi, [ebp - 0x4c]
call fcn.1004605b
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x50], esp
lea eax, [ebp - 0x2c]
call fcn.100018c9
mov dword [ebp - 0x9c], eax
call fcn.10070da0
add esp, 0x1c
push 0
lea eax, [ebp + 8]
call fcn.1000632d
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10070e8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10070eb5
mov dword [ebp - 0x54], 0
mov byte [ebp - 4], 0
lea esi, [ebp - 0x2c]
call fcn.1004605b
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp + 8]
call fcn.1004605b
mov eax, dword [ebp - 0x54]
jmp 0x10070ef7
mov dword [ebp - 0x58], 0xffffffff
mov byte [ebp - 4], 0
lea esi, [ebp - 0x2c]
call fcn.1004605b
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp + 8]
call fcn.1004605b
mov eax, dword [ebp - 0x58]
jmp 0x10070ef7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10051861
mov esp, ebp
pop ebp
ret
Function at 0x10070f20
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x10095428]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x238], ecx
mov word [ebp - 0x218], 0
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.10051de0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.100559b9
add esp, 8
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10070fc0
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x224], esp
lea edx, [ebp - 0x218]
push edx
call fcn.1000189d
mov dword [ebp - 0x23c], eax
call fcn.10070da0
add esp, 0x1c
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x220], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov eax, dword [ebp - 0x238]
add eax, 0x2c
call fcn.1000632d
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp + 0xc], 0
je 0x10070ffc
mov eax, dword [ebp - 0x238]
add eax, 0x2c
call fcn.1000632d
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10051861
mov esp, ebp
pop ebp
ret 8

Function at 0x100716b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x10095428]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov word [ebp - 0x420], 0
push 0x410
push 0
lea eax, [ebp - 0x41e]
push eax
call fcn.10051de0
add esp, 0xc
lea ecx, [ebp - 0x420]
push ecx
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x2f
mov edx, dword [ebp + 8]
push edx
call fcn.10051c77
add esp, 8
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
je 0x10071783
push str.QMDownload
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x428], esp
lea ecx, [ebp - 0x420]
push ecx
call fcn.1000189d
mov dword [ebp - 0x46c], eax
call fcn.10070da0
add esp, 0x1c
mov edx, dword [ebp - 0x424]
add edx, 2
push edx
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x420]
push ecx
mov esi, dword [ebp + 0xc]
call fcn.100090de
mov edx, dword [ebp - 0x424]
add edx, 2
push edx
mov esi, dword [ebp + 0x10]
call fcn.100090de
jmp 0x1007179d
push 0x10081c88
mov esi, dword [ebp + 0xc]
call fcn.100090de
push 0x10081c8c
mov esi, dword [ebp + 0x10]
call fcn.100090de
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10051861
mov esp, ebp
pop ebp
ret
Function at 0x100717b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x8c], 0
je 0x100717cd
xor eax, eax
jmp 0x1007198a
mov ecx, dword [ebp - 0x40]
cmp dword [ecx + 4], 0
jne 0x100717dd
xor eax, eax
jmp 0x1007198a
mov edx, dword [ebp + 8]
push edx
mov esi, dword [ebp - 0x40]
add esi, 0x10
call fcn.100090de
mov eax, dword [ebp - 0x40]
cmp dword [eax + 8], 0
jne 0x10071809
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x40]
cmp dword [edx + 8], 0
jne 0x10071819
xor eax, eax
jmp 0x1007198a
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [ebp - 0x40]
cmp dword [edx + 0x88], 0
je 0x10071871
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x88]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x1007185d
push 1
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x44], eax
jmp 0x10071864
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0x88], 0
call fcn.10070820
test eax, eax
je 0x100718bf
call fcn.10070800
cmp eax, 1
jne 0x100718bf
push 0x58
call fcn.100515d4
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x100718a4
mov ecx, dword [ebp - 0x14]
call fcn.1006fd90
mov dword [ebp - 0x48], eax
jmp 0x100718ab
mov dword [ebp - 0x48], 0
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x88], ecx
jmp 0x100718f8
push 0x30
call fcn.100515d4
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x100718df
mov ecx, dword [ebp - 0x1c]
call fcn.1006f670
mov dword [ebp - 0x4c], eax
jmp 0x100718e6
mov dword [ebp - 0x4c], 0
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x88], ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.STATIC
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x64], eax
push 0x100708d0
push 0xfffffffffffffffc
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x64]
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x8c], 1
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 0x40]
push edx
push 0x10071050
push 0
push 0
call fcn.10054cc0
add esp, 0x18
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x40]
cmp dword [edx + 0xc], 0
jne 0x1007197e
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x8c], 0
mov ecx, dword [ebp - 0x40]
xor eax, eax
cmp dword [ecx + 0xc], 0
setne al
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10071cc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 0x3c], ecx
cmp dword [ebp + 0x10], 0
jne 0x10071cd6
xor eax, eax
jmp 0x10071e15
mov dword [ebp - 0xc], 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x3c]
add ecx, 0x2c
call fcn.1002e8b0
lea edx, [ebp - 0x38]
push edx
mov ecx, dword [ebp - 0x3c]
add ecx, 0x2c
call fcn.1002e790
push eax
lea ecx, [ebp - 8]
call fcn.10030160
movzx eax, al
test eax, eax
je 0x10071d59
lea ecx, [ebp - 0x18]
call fcn.1002e1f0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
lea edx, [ebp + 8]
push edx
mov ecx, dword [ebp - 0x3c]
add ecx, 0x2c
call fcn.1002e7f0
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x10071e12
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 8]
call fcn.1002e940
add eax, 4
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
sub eax, dword [edx]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ecx]
jbe 0x10071e09
cmp dword [ebp - 0x20], 0x12c
jbe 0x10071e09
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [eax + 8]
jbe 0x10071e09
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], 0
fild qword [ebp - 0x44]
fdiv qword [0x10086d08]
fstp qword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0xc]
sub ecx, dword [eax + 8]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], 0
fild qword [ebp - 0x4c]
fdiv qword [ebp - 0x30]
fnstcw word [ebp - 0x4e]
movzx eax, word [ebp - 0x4e]
or eax, 0xc00
mov dword [ebp - 0x54], eax
fldcw word [ebp - 0x54]
fistp qword [ebp - 0x5c]
fldcw word [ebp - 0x4e]
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
mov dword [ecx], edx
jmp 0x10071e12
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4065c9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42d2c4], 0
jne 0x406604
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4065dd
mov dword [ecx*4 + 0x42d2c0], eax
inc ecx
cmp ecx, 0x100
jl 0x4065d8
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406631
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42d2c0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406612
not eax
pop ebp
ret 0xc

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x67f35ed1
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, str.8w:w
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x777869cb
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401664
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
xor eax, eax
mov ecx, dword [esi]
mov edx, dword [eax + 0x427030]
mov dword [eax + ecx], edx
add eax, 4
cmp eax, 0x48
jl 0x401673
xor eax, eax
mov ecx, 0x100
mov edx, dword [esi + 4]
mov ebx, dword [eax + 0x427078]
mov dword [eax + edx], ebx
add eax, 4
dec ecx
jne 0x40168d
cmp eax, 0x1000
jl 0x401688
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], edi
mov eax, edi
cdq
idiv ebx
inc edi
mov al, byte [edx + ecx]
mov byte [ebp + 0xf], al
mov eax, edi
cdq
idiv ebx
inc edi
mov al, byte [edx + ecx]
mov byte [ebp + 0xe], al
mov eax, edi
cdq
idiv ebx
inc edi
mov al, byte [edx + ecx]
mov byte [ebp + 0xd], al
mov eax, edi
cdq
idiv ebx
inc edi
mov al, byte [edx + ecx]
mov edx, dword [ebp - 4]
add dword [ebp - 4], 4
mov byte [ebp + 0xc], al
mov eax, dword [esi]
add eax, edx
mov edx, dword [ebp + 0xc]
xor dword [eax], edx
cmp dword [ebp - 4], 0x48
jl 0x4016af
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040104e
mov eax, dword [esi]
mov ecx, dword [ebp - 8]
mov dword [edi + eax], ecx
mov eax, dword [esi]
mov ecx, dword [ebp - 0xc]
mov dword [edi + eax + 4], ecx
add edi, 8
cmp edi, 0x48
jl 0x4016fd
push 4
pop edi
mov ebx, 0x80
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040104e
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 8]
mov dword [edi + eax - 4], ecx
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0xc]
mov dword [edi + eax], ecx
add edi, 8
dec ebx
jne 0x40172d
cmp edi, 0x1004
jl 0x401728
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x404391
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42c27c]
cmp al, 4
jb 0x4043c7
cmp eax, 0x80000000
jb 0x4043c7
push 0
push str.Win95_98_Me_is_not_support
push str.Please_use_old_version__v2.06_or_earlier_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
lea ecx, [ebp - 0x24]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00404060
lea ecx, [ebp - 0x24]
call fcn.00418986
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.004040bd
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x404e9f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, dword [esi]
cmp dword [eax + 0x6c], ebx
je 0x404f1f
add eax, 0x74
cmp byte [eax], bl
je 0x404f1f
push edi
push ebx
push 0x80
push 4
push ebx
push 3
push 0x40000000
push eax
call fcn.0041749f
mov edi, eax
add esp, 0x1c
cmp edi, 0xffffffff
je 0x404f1a
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi]
cmp dword [eax + 0x70], ebx
jne 0x404ef8
push ebx
push dword [ebp + 8]
call fcn.0041804b
pop ecx
mov dword [ebp + 8], eax
pop ecx
lea eax, [ebp - 4]
push ebx
push eax
push dword [ebp + 8]
call fcn.0041c030
pop ecx
push eax
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
jmp 0x404f22
push 1
pop eax
pop esi
pop ebx
leave
ret 4

Function at 0x404f28
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x69c
push esi
mov esi, dword [ebp + 8]
push edi
push 2
push 0x4289ac
push esi
call fcn.0041c0b0
add esp, 0xc
test eax, eax
je 0x40500d
cmp byte [esi], 0
je 0x40500d
cmp byte [esi + 1], 0x3a
je 0x40500d
and dword [ebp + 8], 0
lea eax, [ebp - 0x390]
push esi
push eax
call fcn.0041bd30
push 0x5c
push esi
call fcn.0041be60
add esp, 0x10
mov edi, 0x30c
test eax, eax
jne 0x404ff8
push eax
push reloc.WSOCK32.dll_accept
lea ecx, [ebp - 0x84]
call fcn.0041a090
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x84]
call fcn.0041a1e8
test eax, eax
je 0x404fed
lea eax, [ebp - 0x69c]
push edi
push eax
push str.Personal
lea ecx, [ebp - 0x84]
call fcn.0041a45b
test eax, eax
je 0x404fed
lea eax, [ebp - 0x390]
push eax
lea eax, [ebp - 0x69c]
push eax
push esi
call fcn.00419882
add esp, 0xc
lea ecx, [ebp - 0x84]
call fcn.0041a0a6
jmp 0x40500d
lea ecx, [ebp - 0x84]
call fcn.0041a0a6
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp - 0x390]
push edi
push eax
call fcn.00417513
add esp, 0x10
pop edi
pop esi
leave
ret
Function at 0x406600
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 3
push accept
mov edi, ecx
push dword [ebp + 8]
mov dword [ebp - 8], edi
call fcn.0041749f
mov esi, dword [ebp + 0xc]
add esp, 0x1c
cmp eax, 0xffffffff
mov dword [esi + 0x34], eax
je 0x4066f3
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp + 8]
xor ecx, ecx
xor ebx, ebx
or ecx, eax
or edx, ebx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], edx
mov ecx, dword [esi + 0x20]
or ecx, edx
jne 0x406664
push 1
pop eax
jmp 0x4066fb
push 0
push eax
push dword [ebp + 8]
push 2
push 0
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0xa0]
mov edi, dword [esi + 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x730]
cdq
cmp dword [esi + 0x24], edx
jl 0x40669d
jg 0x406698
cmp edi, eax
jbe 0x40669d
mov dword [ebp + 0xc], eax
jmp 0x4066a0
mov dword [ebp + 0xc], edi
mov edi, dword [esi + 0x2c]
mov eax, edi
mov dword [ebp + 8], edi
mov ebx, dword [ecx + 0x730]
sar eax, 0x1f
mov eax, ebx
cdq
push edx
push eax
push edi
push dword [esi + 0x28]
call fcn.0041c1f0
imul eax, ebx
push dword [ebp + 0xc]
push eax
push edi
push 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x30], eax
je 0x4066f3
push 1
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x4066f3
mov ecx, dword [ebp - 8]
push esi
call fcn.00406702
xor eax, eax
jmp 0x4066fb
xor eax, eax
cmp dword [esi + 0x30], eax
setne al
pop edi
pop esi
pop ebx
leave
ret 8