joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010f6
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0x8007000e
jne 0x401108
call fcn.004d0fa0
ret 4
jmp fcn.004f54d0

Function at 0x401153
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [eax]
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], 0x10
mov eax, dword [ebp + 0xc]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
call fcn.0040110d
add dword [ebp + 0xc], 4
xor eax, edi
dec dword [ebp + 8]
mov edi, dword [ebp - 4]
mov ecx, eax
jne 0x401171
mov eax, dword [esi + 0x40]
xor eax, ecx
mov ecx, dword [esi + 0x44]
xor ecx, edi
mov dword [ebx], ecx
mov ecx, dword [ebp + 0x10]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
leave
ret

Function at 0x4011a4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [eax]
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [esi + 0x44]
mov dword [ebp + 8], 0x10
xor ecx, dword [edi]
mov dword [ebp - 4], ecx
call fcn.0040110d
xor eax, ebx
mov ebx, dword [ebp - 4]
sub edi, 4
dec dword [ebp + 8]
mov ecx, eax
jne 0x4011c2
mov eax, dword [esi + 4]
mov edx, dword [ebp + 0xc]
xor eax, ecx
mov ecx, dword [esi]
xor ecx, ebx
pop edi
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
pop esi
mov dword [ecx], eax
pop ebx
leave
ret

Function at 0x4011f3
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 4
mov eax, 0x503a38
lea ecx, [edi + 0x48]
pop ebx
mov edx, 0x100
mov esi, dword [eax]
mov dword [ecx], esi
add eax, ebx
add ecx, ebx
dec edx
jne 0x40120f
cmp eax, 0x504a38
jl 0x40120a
mov edx, 0x5039f0
xor ecx, ecx
mov eax, edi
sub edx, edi
mov dword [ebp - 4], 0x12
xor esi, esi
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
movzx ebx, byte [ecx + ebx]
shl esi, 8
or esi, ebx
inc ecx
cmp ecx, dword [ebp + 0x10]
jl 0x40124c
xor ecx, ecx
dec dword [ebp - 8]
jne 0x401238
mov ebx, dword [edx + eax]
xor ebx, esi
mov dword [eax], ebx
push 4
pop ebx
add eax, ebx
dec dword [ebp - 4]
jne 0x401233
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
call fcn.00401153
mov eax, dword [ebp - 4]
mov dword [edi + esi*4], eax
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [edi + esi*4 + 4], eax
inc esi
inc esi
cmp esi, 0x12
jl 0x40126a
lea esi, [edi + 0x4c]
mov dword [ebp - 0xc], ebx
mov ebx, 0x80
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
call fcn.00401153
mov eax, dword [ebp - 4]
mov dword [esi - 4], eax
mov eax, dword [ebp - 8]
mov dword [esi], eax
add esp, 0xc
add esi, 8
dec ebx
jne 0x40129a
dec dword [ebp - 0xc]
jne 0x401295
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401748
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40175d
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40176f
xor eax, eax
jmp 0x4017a1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401793
cmp esi, eax
jae 0x40176b
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401785
cmp esi, eax
jae 0x40176b
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x40191f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401936
test al, 0x10
je 0x401936
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x4023a2
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4feee2
call fcn.004af370
sub esp, 0x64
push ebx
push esi
xor ebx, ebx
push ebx
push dword [ebp + 0x10]
lea ecx, [ebp - 0x70]
push dword [ebp + 8]
call fcn.004e4ab0
push 0x400
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
call fcn.004e4a80
push ebx
push dword [ebp + 0x10]
lea ecx, [ebp - 0x48]
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004e4b00
mov dword [ebp - 0x10], ebx
jmp 0x402430
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov dl, bl
mov eax, ebx
shr ecx, 0x18
shr ebx, 0x10
xor cl, bl
shr eax, 8
and dl, 0xf0
xor cl, al
xor cl, dl
xor ebx, ebx
xor edx, edx
cmp esi, ebx
jbe 0x40241f
mov al, byte [edx + 0x54f130]
xor al, cl
xor byte [ebp + edx - 0x20], al
inc edx
cmp edx, esi
jb 0x40240e
push esi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x48]
call fcn.004e4cf0
add dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x20]
push 0x10
lea ecx, [ebp - 0x70]
push eax
call fcn.004e4ca0
mov esi, eax
cmp esi, ebx
ja 0x4023ea
lea ecx, [ebp - 0x48]
call fcn.004e4b40
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.004e4f10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.004e4f10
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40330d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp eax, esi
je 0x403333
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00403245
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax - 0xc]
add esp, 0xc
inc ecx
push ecx
push eax
push 1
push esi
push str.Signal
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push esi
mov ebx, 0xf003f
push ebx
push esi
push esi
push esi
push str.InprocServer32
push dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
push ebx
push esi
push esi
push esi
push str.ProgID
push dword [ebp + 8]
call edi
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
je 0x4033b2
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], esi
je 0x4033bc
push dword [ebp - 8]
call edi
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.0040141b
pop edi
pop esi
leave
ret
Function at 0x4033cb
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [esi]
call fcn.004d41e0
pop ecx
push esi
mov edi, eax
push edi
push 0
push 0
push str.Signal
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.004025aa
push edi
call fcn.004d41d0
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp + 0x14]
test eax, eax
mov edx, dword [ebp - 0x10]
je 0x403427
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x20]
cmp edx, eax
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
ja 0x40352c
jb 0x403446
cmp dword [ebp - 0x14], ecx
ja 0x40352c
cmp edx, esi
ja 0x40352c
jb 0x403459
cmp dword [ebp - 0x14], edi
ja 0x40352c
cmp eax, esi
push ebx
ja 0x40346f
jb 0x403464
cmp ecx, edi
jae 0x40346f
mov dword [ebp - 4], 1
mov ebx, edi
jmp 0x403477
and dword [ebp - 4], 0
mov ebx, ecx
mov esi, eax
mov edi, dword [ebp + 8]
mov eax, dword [edi]
test al, 0x10
mov dword [ebp + 0x14], 1
je 0x4034c1
sub ebx, dword [ebp - 0x14]
push 0xc9
push 0x2a69c000
sbb esi, edx
push esi
push ebx
call fcn.004b00f0
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 4]
test eax, eax
mov dword [ebp - 8], edx
fild qword [ebp - 0xc]
fild dword [edi + 4]
jge 0x4034b6
fadd qword [0x504a40]
fcompp
fnstsw ax
test ah, 5
jp 0x4034e6
jmp 0x4034e2
test ah, 1
je 0x4034e6
lea eax, [ebp - 0xc]
push eax
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
cmp esi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
jb 0x4034e6
ja 0x4034e2
cmp ebx, eax
jb 0x4034e6
and dword [ebp + 0x14], 0
cmp dword [ebp - 4], 0
pop ebx
je 0x403527
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00403245
mov eax, dword [ebp - 4]
mov ecx, dword [eax - 0xc]
add esp, 0xc
inc ecx
push ecx
push eax
push 1
push 0
push str.Signal
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.0040141b
mov eax, dword [ebp + 0x14]
jmp 0x40352e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x403532
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4035cc
push edi
xor edi, edi
inc edi
cmp dword [ebp - 0x10], edi
je 0x4035aa
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push str.Signal
push dword [ebp - 4]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4035aa
cmp dword [ebp - 8], esi
jbe 0x4035aa
cmp dword [ebp - 0xc], edi
jne 0x4035aa
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004033cb
add esp, 0x10
mov edi, eax
jmp 0x4035b7
push dword [ebp + 0x14]
push dword [ebp - 4]
call fcn.0040330d
pop ecx
pop ecx
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp + 0xc]
call esi
mov eax, edi
pop edi
jmp 0x4035e6
cmp dword [ebp + 0x14], esi
je 0x4035da
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x403b61
Capabilities:
Delete file

Disassembly:
mov eax, 0x4ff02d
call fcn.004af370
sub esp, 0x598
push ebx
push esi
push edi
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x10], esp
call fcn.00482261
mov edi, dword [ebp + 0xc]
and dword [ebp - 4], 0
push 0x20
push 0
push edi
call fcn.004af490
or dword [edi + 0x14], 0xffffffff
mov esi, dword [ebp + 8]
add esp, 0xc
push dword [esi]
lea ecx, [ebp - 0xa4]
call fcn.004821dd
test eax, eax
je 0x403bc2
push edi
lea ecx, [ebp - 0xa4]
call fcn.00482272
test eax, eax
jne 0x403d76
lea ecx, [ebp - 0x40]
call fcn.004d40c0
mov eax, dword [esi]
push 0x40
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004d6310
push 2
push 0xffffffffffffffff
push 0xfffffffffffffffc
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004d58d0
push 4
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004d5830
cmp eax, 4
jne 0x403d61
mov edi, dword [ebp - 0x30]
push 2
push 0xfffffffffffffff8
pop eax
sub eax, edi
cdq
push edx
push eax
lea ecx, [ebp - 0x2c]
call fcn.004d58d0
push 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004d5830
cmp eax, 8
jne 0x403d61
cmp byte [ebp - 0x18], 0x46
je 0x403c40
cmp byte [ebp - 0x18], 0x43
jne 0x403d61
cmp byte [ebp - 0x17], 0x57
jne 0x403d61
cmp byte [ebp - 0x16], 0x53
jne 0x403d61
push dword [esi]
lea eax, [ebp - 0x1c]
push eax
mov ebx, edi
call fcn.00403af3
pop ecx
pop ecx
mov esi, eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 4
call fcn.00402a49
pop ecx
push esi
push eax
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 5
call fcn.00402dbf
add esp, 0xc
push 0x504ad0
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 6
call fcn.00402e2f
add esp, 0xc
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.0040141b
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.0040141b
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 8
call fcn.0040141b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffff8
lea ecx, [ebp - 0x2c]
call fcn.004d58d0
push 0x1042
push dword [ebp + 8]
lea ecx, [ebp - 0x54]
call fcn.004d6310
mov byte [ebp - 4], 0xb
mov edi, 0x400
test ebx, ebx
jle 0x403d19
cmp ebx, edi
mov eax, ebx
jl 0x403cf3
mov eax, edi
push eax
lea eax, [ebp - 0x5a4]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004d5830
mov esi, eax
push esi
lea eax, [ebp - 0x5a4]
push eax
lea ecx, [ebp - 0x54]
call fcn.004d5880
sub ebx, esi
jmp 0x403ce7
lea ecx, [ebp - 0x54]
call fcn.004d5b50
push dword [ebp + 8]
lea ecx, [ebp - 0xa4]
call fcn.004821dd
test eax, eax
je 0x403d41
push dword [ebp + 0xc]
lea ecx, [ebp - 0xa4]
call fcn.00482272
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 8
call fcn.004d5c00
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040141b
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004d5c00
and dword [ebp - 4], 0
call fcn.004d4100
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.0048226d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x404be8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4ff114
call fcn.004af370
push ecx
push ecx
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x404c32
push 0xc
call fcn.004d4190
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
and dword [ebp - 4], edi
jmp 0x404c7b
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], eax
push 0x544258
lea eax, [ebp - 0x10]
jmp 0x404cc3
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
jne 0x404c5a
push 0xc
call fcn.004d4190
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 1
jmp 0x404c7b
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404c86
push 0xc
call fcn.004d4190
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 2
test ecx, ecx
je 0x404c1c
call fcn.00415f1d
jmp 0x404c1e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x404cc9
push 0xc
call fcn.004d4190
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
mov dword [ebp - 4], 3
je 0x404cb2
call fcn.00415f1d
jmp 0x404cb4
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], eax
push 0x544258
lea eax, [ebp - 0x14]
push eax
call fcn.004b00ac
push dword [esi]
call fcn.004d41e0
test eax, eax
pop ecx
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
je 0x404ce6
push dword [esi]
push edi
push eax
call fcn.004aebe0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x404edf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4ff114
call fcn.004af370
push ecx
push ecx
push ebx
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x404f29
push 0xc
call fcn.004d4190
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
and dword [ebp - 4], esi
jmp 0x404f6f
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], eax
push 0x544258
lea eax, [ebp - 0x10]
jmp 0x404fb5
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x404f4e
push 0xc
call fcn.004d4190
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 1
jmp 0x404f6f
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404f7a
push 0xc
call fcn.004d4190
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 2
test ecx, ecx
je 0x404f13
call fcn.00415f1d
jmp 0x404f15
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x404fbb
push 0xc
call fcn.004d4190
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
mov dword [ebp - 4], 3
je 0x404fa4
call fcn.00415f1d
jmp 0x404fa6
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], eax
push 0x544258
lea eax, [ebp - 0x14]
push eax
call fcn.004b00ac
push dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push ebx
mov edx, eax
call fcn.00404cf4
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405560
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4ff114
call fcn.004af370
push ecx
push ecx
push ebx
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4055aa
push 0xc
call fcn.004d4190
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
and dword [ebp - 4], esi
jmp 0x4055f0
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], eax
push 0x544258
lea eax, [ebp - 0x10]
jmp 0x405636
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x4055cf
push 0xc
call fcn.004d4190
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 1
jmp 0x4055f0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4055fb
push 0xc
call fcn.004d4190
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 2
test ecx, ecx
je 0x405594
call fcn.00415f1d
jmp 0x405596
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x40563c
push 0xc
call fcn.004d4190
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
mov dword [ebp - 4], 3
je 0x405625
call fcn.00415f1d
jmp 0x405627
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], eax
push 0x544258
lea eax, [ebp - 0x14]
push eax
call fcn.004b00ac
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push ebx
push eax
call fcn.00404ffd
mov ecx, dword [ebp - 0xc]
add esp, 0x10
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x406951
Capabilities:
Create directory

Disassembly:
mov eax, 0x4ff2a5
call fcn.004af370
mov eax, 0x1018
call fcn.004aeb50
and dword [ebp - 0x10], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, dword [ebp + 0x14]
cmp ebx, 4
jle 0x406a81
push esi
mov esi, dword [ebp + 0x10]
push edi
mov eax, dword [esi]
push 4
lea ecx, [ebp - 0x24]
push ecx
mov ecx, esi
call dword [eax + 0x34]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov edi, eax
lea eax, [ebp - 0x1024]
push esi
push eax
call fcn.00404339
mov eax, dword [esi]
pop ecx
pop ecx
mov ecx, esi
call dword [eax + 0xc]
sub edi, eax
lea ebx, [ebx + edi - 4]
test ebx, ebx
jl 0x406a7f
mov eax, dword [esi]
push 4
lea ecx, [ebp + 0x14]
push ecx
mov ecx, esi
call dword [eax + 0x34]
sub ebx, 4
cmp ebx, dword [ebp + 0x14]
jl 0x406a7f
cmp dword [ebp - 0x24], 0
lea eax, [ebp - 0x1024]
push eax
push dword [ebp + 0xc]
jne 0x406a1a
lea eax, [ebp - 0x1c]
push eax
call fcn.00402e2f
push dword [ebp + 0x14]
and dword [ebp - 4], 0
push esi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004067ba
mov ecx, dword [ebp - 0x20]
add esp, 0x1c
add ecx, 0xfffffff0
call fcn.0040141b
mov ecx, dword [ebp - 0x1c]
jmp 0x406a67
lea eax, [ebp - 0x10]
push eax
call fcn.00402e2f
push 0x504c10
push eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], 1
call fcn.00402e2f
push dword [ebp + 0x14]
mov byte [ebp - 4], 2
push esi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00406951
mov ecx, dword [ebp - 0x14]
add esp, 0x28
add ecx, 0xfffffff0
call fcn.0040141b
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040141b
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.0040141b
sub ebx, dword [ebp + 0x14]
cmp ebx, 4
jg 0x406989
pop edi
pop esi
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.004028b4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4071b0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push edi
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
test edi, edi
mov dword [ebp - 4], edi
je 0x407245
push ebx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x407239
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [ebp - 8], eax
je 0x407231
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
call edi
mov ecx, dword [esi]
mov edx, dword [esi + 0xc]
push 0xcc0020
mov dword [ebp + 8], eax
mov eax, dword [esi + 4]
push eax
push ecx
push dword [ebp - 4]
sub edx, eax
mov eax, dword [esi + 8]
push edx
sub eax, ecx
push eax
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp + 8]
push ebx
call edi
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
pop esi
push dword [ebp - 4]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
pop ebx
mov eax, dword [ebp - 8]
pop edi
leave
ret 4

Function at 0x4088b3
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x409c61
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4ff596
call fcn.004af370
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], esp
push ebx
call fcn.004af4f0
mov edx, eax
pop ecx
xor eax, eax
xor ecx, ecx
test edx, edx
jbe 0x409ca2
movzx edi, byte [ecx + ebx]
mov esi, eax
shr esi, 9
xor esi, eax
shr esi, 7
xor esi, edi
shl eax, 5
xor eax, esi
inc ecx
cmp ecx, edx
jb 0x409c88
push 0x11
xor edx, edx
pop ecx
div ecx
mov edi, edx
mov esi, dword [edi*4 + 0x555190]
mov dword [ebp - 0x1c], edi
jmp 0x409cc7
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x409cf7
mov esi, dword [esi + 0x10]
test esi, esi
mov dword [ebp - 0x18], esi
jne 0x409cb7
and dword [ebp - 0x14], esi
lea ecx, [ebp - 0x28]
call fcn.004d40c0
and dword [ebp - 4], esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
push str.FFish
push ebx
call fcn.00405560
add esp, 0x10
jmp 0x409d26
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
lea eax, [esi + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
or dword [ebp - 4], 0xffffffff
call fcn.004d4100
cmp dword [ebp - 0x14], 0
je 0x409d6b
push 1
push 0x14
call fcn.004afff1
push ebx
mov esi, eax
call fcn.004afca8
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
add esp, 0xc
and dword [esi + 8], 0
mov eax, dword [eax]
mov dword [esi + 0xc], eax
lea eax, [edi*4 + 0x555190]
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov dword [eax], esi
test esi, esi
jne 0x409cff
xor eax, eax
jmp 0x409d02