joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405518
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7ac
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
mov esi, edx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.00405714
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
push esi
call sub.USER32.DLL_GetWindowRect
lea edx, [ebp - 0x44]
push edx
push esi
call sub.USER32.DLL_GetClientRect
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x34]
inc ecx
sub ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
inc eax
sub eax, dword [ebp - 0x38]
test bl, bl
mov dword [ebp - 0x18], eax
je 0x4055af
cmp byte [ebp + 8], 0
jne 0x4055af
mov eax, dword [ebp - 0x3c]
mov ecx, 0x64
imul dword [ebp - 0xc]
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x38]
imul dword [ebp - 0x10]
cdq
mov edi, 0x64
idiv edi
add ecx, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
push 0x206
push eax
push ecx
push 0
push 0
push 0
push esi
call sub.USER32.DLL_SetWindowPos
cmp byte [ebp + 8], 0
jne 0x4055ed
push 0x400
lea eax, [ebp - 0x444]
push eax
push esi
call sub.USER32.DLL_GetWindowTextA
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x444]
lea edx, [ebp - 0x444]
mov eax, dword [ebp - 4]
call fcn.0040539c
lea edx, [ebp - 0x444]
push edx
push esi
call sub.USER32.DLL_SetWindowTextA
push 8
call sub.USER32.DLL_GetSystemMetrics
sub dword [ebp - 0x18], eax
push 5
push esi
call sub.USER32.DLL_GetWindow
mov edi, eax
mov dword [ebp - 0x1c], edi
xor esi, esi
jmp 0x4056fb
push 0x400
lea eax, [ebp - 0x844]
push eax
push edi
call sub.USER32.DLL_GetWindowTextA
cmp byte [ebp - 0x844], 0
je 0x40564c
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x844]
lea edx, [ebp - 0x844]
mov eax, dword [ebp - 4]
call fcn.0040539c
lea edx, [ebp - 0x844]
push edx
push edi
call sub.USER32.DLL_SetWindowTextA
test bl, bl
je 0x4056eb
lea ecx, [ebp - 0x854]
push ecx
push edi
call sub.USER32.DLL_GetWindowRect
mov eax, dword [ebp - 0x854]
sub eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x14]
sar edx, 1
jns 0x405674
adc edx, 0
sub eax, edx
mov ecx, 0x64
imul dword [ebp - 0xc]
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x850]
sub eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x18]
imul dword [ebp - 0x10]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x84c]
sub eax, dword [ebp - 0x854]
inc eax
imul dword [ebp - 0xc]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x848]
sub eax, dword [ebp - 0x850]
inc eax
imul dword [ebp - 0x10]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
push 0x204
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push ecx
push 0
push edi
call sub.USER32.DLL_SetWindowPos
push 2
push edi
call sub.USER32.DLL_GetWindow
mov edi, eax
cmp edi, dword [ebp - 0x1c]
je 0x40570b
inc esi
test edi, edi
je 0x40570b
cmp esi, 0x200
jl 0x40560b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4058f4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9ac
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0xc]
lea ebx, [ebp - 0x254]
test edi, edi
je 0x40593b
mov edx, edi
mov eax, ebx
call fcn.0040d3f4
mov eax, ebx
call fcn.0040d378
inc eax
add ebx, eax
mov edx, edi
mov eax, ebx
call fcn.0040d3f4
mov eax, ebx
call fcn.0040d378
inc eax
add ebx, eax
mov eax, 0x85
call fcn.00402c0c
mov edx, eax
mov eax, ebx
call fcn.0040d3f4
mov eax, ebx
call fcn.0040d378
inc eax
add ebx, eax
mov edx, 0x4125b0
mov eax, ebx
call fcn.0040d3f4
mov eax, ebx
call fcn.0040d378
inc eax
mov ecx, 0x4c
add ebx, eax
lea eax, [ebp - 0x54]
xor edx, edx
mov byte [ebx], 0
call fcn.0040d2f0
mov dword [ebp - 0x54], 0x4c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x50], eax
mov edx, dword [0x415638]
mov dword [ebp - 0x4c], edx
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 0x400
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov eax, esi
call fcn.0040607c
cmp esi, eax
jne 0x4059d4
lea edx, [ebp - 0x654]
push edx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea ecx, [ebp - 0x654]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], 0x1080c
cmp byte [ebp + 8], 0
je 0x4059ee
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetSaveFileNameA
mov ebx, eax
jmp 0x4059f9
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetOpenFileNameA
mov ebx, eax
test ebx, ebx
jne 0x405a2a
call sub.COMDLG32.DLL_CommDlgExtendedError
cmp eax, 0x3002
jne 0x405a2a
mov byte [esi], 0
cmp byte [ebp + 8], 0
je 0x405a1f
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetSaveFileNameA
mov ebx, eax
jmp 0x405a2a
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetOpenFileNameA
mov ebx, eax
test ebx, ebx
setne al
and eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x406d60
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
call fcn.004057b8
test eax, eax
je 0x406d86
test ebx, ebx
je 0x406d86
cmp word [ebx], 0
je 0x406d86
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x406d8e
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x406da1
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.0040715c
xor eax, eax
jmp 0x406dbc
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x406db0
cmp eax, 3
jne 0x406db7
mov eax, 2
jmp 0x406dbc
mov eax, 1
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.004057b8
test eax, eax
je 0x4070fb
test ebx, ebx
je 0x4070fb
cmp word [ebx], 0
je 0x4070fb
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret

Function at 0x407130
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.004057b8
test eax, eax
je 0x407152
test ebx, ebx
je 0x407152
cmp word [ebx], 0
je 0x407152
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
pop esi
pop ebx
ret

Function at 0x40715c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
call fcn.004057b8
test eax, eax
je 0x407189
test ebx, ebx
je 0x407189
cmp word [ebx], 0
je 0x407189
push esi
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
setne al
and eax, 1
jmp 0x407198
push esi
push edi
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
setne al
and eax, 1
pop edi
pop esi
pop ebx
ret
Function at 0x408fa8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, 0x414e14
mov dword [ebp - 4], edx
mov esi, ecx
cmp dword [edi + 4], 0
mov ebx, eax
jne 0x408fc8
call fcn.00408f70
mov eax, dword [ebp - 4]
jmp 0x408fe1
mov edx, ebx
xor ecx, ecx
xor dl, byte [eax]
dec esi
mov cl, dl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
inc eax
mov ebx, edx
test esi, esi
jbe 0x408fe9
test al, 7
jne 0x408fcd
cmp esi, 8
jb 0x409072
xor ebx, dword [eax]
xor ecx, ecx
mov cl, bl
sub esi, 8
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
xor ebx, dword [eax + 4]
add eax, 8
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
cmp esi, 8
mov ebx, edx
jae 0x408ff2
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp esi, dword [ebp - 8]
jbe 0x40909c
mov ecx, dword [ebp - 8]
mov edx, ebx
shr ebx, 8
xor dl, byte [eax + ecx]
and edx, 0xff
mov ecx, dword [edi + edx*4]
xor ecx, ebx
mov ebx, ecx
inc dword [ebp - 8]
cmp esi, dword [ebp - 8]
ja 0x40907c
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x40bd6c
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x40bd75
mov eax, dword [ebp - 4]
add esp, 0xfffffb2c
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
lea edi, [ebp - 0x14b8]
lea eax, [ebp - 0x4a4]
call fcn.00406a5c
lea eax, [ebp - 0x478]
call fcn.00406a5c
lea eax, [ebp - 0x44c]
call fcn.00406a5c
push 0
lea ecx, [ebp - 0x10b8]
mov edx, ebx
mov eax, esi
call fcn.00405c50
test al, al
jne 0x40bdd2
xor eax, eax
jmp 0x40bf20
cmp byte [ebp - 0x10b8], 0
je 0x40bde4
cmp byte [ebp - 0x420], 0
jne 0x40bdeb
xor eax, eax
jmp 0x40bf20
lea eax, [ebp - 0x10b8]
call fcn.0040607c
lea edx, [ebp - 0x420]
call fcn.00407254
test eax, eax
je 0x40be1b
mov eax, esi
call fcn.0040607c
lea edx, [ebp - 0x420]
call fcn.00407254
test eax, eax
je 0x40be22
xor eax, eax
jmp 0x40bf20
xor ebx, ebx
mov eax, edi
mov ecx, 0x400
mov edx, esi
call fcn.004072f8
push ebx
push str.rtmp_d
mov eax, edi
call fcn.0040607c
push eax
call fcn.0040d4e0
add esp, 0xc
mov eax, edi
xor edx, edx
call fcn.004070d0
test al, al
je 0x40be60
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x40be24
mov eax, edi
xor edx, edx
call fcn.004070d0
test al, al
je 0x40be74
xor eax, eax
jmp 0x40bf20
lea eax, [ebp - 0x18b8]
mov ecx, 0x400
mov edx, esi
call fcn.004072f8
lea eax, [ebp - 0x10b8]
call fcn.0040607c
push eax
lea eax, [ebp - 0x18b8]
call fcn.0040607c
pop edx
call fcn.0040d3f4
push edi
lea ecx, [ebp - 0x18b8]
push ecx
call sub.KERNEL32.DLL_MoveFileA
test eax, eax
jne 0x40beb8
xor eax, eax
jmp 0x40bf20
lea eax, [ebp - 0x24d8]
call fcn.0040bf28
xor ebx, ebx
xor edx, edx
mov eax, esi
call fcn.004070d0
test al, al
jne 0x40bee5
push 1
lea eax, [ebp - 0x24d8]
xor ecx, ecx
mov edx, esi
call fcn.0040c108
mov ebx, eax
lea eax, [ebp - 0x18b8]
push eax
push edi
call sub.KERNEL32.DLL_MoveFileA
test bl, bl
je 0x40bf0c
lea eax, [ebp - 0x24d8]
call fcn.0040c1f8
lea eax, [ebp - 0x24d8]
call fcn.0040c27c
mov al, 1
push eax
lea eax, [ebp - 0x24d8]
mov edx, 2
call fcn.0040bf78
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bfbc
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, eax
push edi
mov dword [ebp - 4], edx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc18], edx
cmp byte [ebx + 0x16], 0
mov esi, ecx
je 0x40bfdf
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x40bff0
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x40bfff
or dword [ebp - 8], 2
xor eax, eax
cmp byte [ebx + 0x15], 0
jne 0x40c00c
add eax, 0x8000000
mov dword [ebp - 0xc], eax
call fcn.004057b8
test eax, eax
je 0x40c039
test esi, esi
je 0x40c039
cmp word [esi], 0
je 0x40c039
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push esi
call sub.KERNEL32.DLL_CreateFileW
mov edi, eax
jmp 0x40c050
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x40c069
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x40c069
mov dword [ebx + 0xc18], 1
xor edx, edx
cmp edi, 0xffffffff
mov byte [ebx + 0x12], 0
setne cl
mov dword [ebx + 0xc], edx
and ecx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 0xd], cl
cmp byte [ebp - 0xd], 0
je 0x40c0d3
mov dword [ebx + 4], edi
test esi, esi
je 0x40c09e
lea eax, [ebx + 0x418]
mov edx, esi
call fcn.0040dba8
jmp 0x40c0a7
mov word [ebx + 0x418], 0
cmp dword [ebp - 4], 0
je 0x40c0ba
lea eax, [ebx + 0x17]
mov edx, dword [ebp - 4]
call fcn.0040d3f4
jmp 0x40c0c9
lea edx, [ebx + 0x17]
mov ecx, 0x1000000
mov eax, esi
call fcn.0040d9b0
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0040c1d8
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40c2b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
test esi, esi
je 0x40c3e1
cmp dword [edi + 0xc], 0
je 0x40c2ef
mov eax, dword [edi + 0xc]
dec eax
je 0x40c2d9
dec eax
je 0x40c2e5
jmp 0x40c2ef
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x40c2ef
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
mov byte [ebp - 5], 0
xor edx, edx
mov dword [ebp - 0xc], edx
cmp dword [edi + 0xc], 0
je 0x40c34b
xor ebx, ebx
cmp esi, ebx
jle 0x40c368
push 0
lea eax, [ebp - 0xc]
push eax
mov edx, esi
sub edx, ebx
cmp edx, 0x4000
jge 0x40c31c
mov ecx, esi
sub ecx, ebx
jmp 0x40c321
mov ecx, 0x4000
push ecx
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne dl
and edx, 1
mov byte [ebp - 5], dl
test dl, dl
je 0x40c368
add ebx, 0x4000
cmp esi, ebx
jg 0x40c304
jmp 0x40c368
push 0
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne cl
and ecx, 1
mov byte [ebp - 5], cl
cmp byte [ebp - 5], 0
jne 0x40c3dd
cmp byte [edi + 0x14], 0
je 0x40c3dd
cmp dword [edi + 0xc], 0
jne 0x40c3dd
lea edx, [edi + 0x17]
mov eax, 0x415618
call fcn.0040a358
test al, al
je 0x40c3c7
mov ecx, dword [ebp - 0xc]
cmp ecx, esi
jae 0x40c2ef
cmp dword [ebp - 0xc], 0
jbe 0x40c2ef
mov eax, edi
call fcn.0040c618
push edx
push eax
mov eax, dword [ebp - 0xc]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
xor edx, edx
mov eax, edi
call fcn.0040c560
jmp 0x40c2ef
lea ecx, [edi + 0x17]
mov eax, 0x415618
xor edx, edx
call fcn.0040a340
jmp 0x40c3dd
mov byte [edi + 8], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c4dc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push esi
push edi
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x40c506
cmp esi, 0x4e20
jle 0x40c4fc
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40c556
mov eax, ebx
call fcn.0040c824
test al, al
je 0x40c53d
cmp esi, 0x4e20
jle 0x40c53d
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.0040c4dc
jmp 0x40c559
cmp dword [ebx + 0xc], 1
jne 0x40c551
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x40c551
xor eax, eax
jmp 0x40c559
or eax, 0xffffffff
jmp 0x40c559
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x40d940
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [0x412748], 0
jne 0x40d959
call fcn.0040d584
mov dword [0x412744], eax
inc byte [0x412748]
call fcn.0040d584
sub eax, dword [0x412744]
cmp eax, 0x64
jle 0x40d995
cmp dword [0x413154], 0
je 0x40d990
mov eax, 0x415618
mov edx, 0xff
call fcn.0040a4ec
mov eax, 0x415618
mov edx, 0xff
call fcn.0040a4e4
call fcn.00402c88
ret
Function at 0x4049e4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x404a1c
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x404a0a
mov al, 1
jmp 0x404a5d
cmp dword [ebx + 0x54], ecx
jne 0x404a13
mov al, 2
jmp 0x404a5d
cmp dword [ebx + 0x7c], ecx
jne 0x404a5d
mov al, 3
jmp 0x404a5d
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x404a31
mov al, 4
jmp 0x404a5d
cmp ecx, 5
jne 0x404a51
cmp ebx, 0
jne 0x404a3f
mov al, 5
jmp 0x404a5d
cmp ebx, 1
jne 0x404a48
mov al, 6
jmp 0x404a5d
cmp ebx, 2
jne 0x404a51
mov al, 7
jmp 0x404a5d
cmp ecx, 6
jne 0x404a5d
cmp ebx, 0
jne 0x404a5d
mov al, 8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41c1a0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47aeab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046f989
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41c222
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046d8a0
mov eax, dword [eax]
push 0x492224
push eax
call fcn.00460444
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046fc14
test bl, bl
je 0x41c222
push 0x492224
lea ecx, [esp + 0xc]
call fcn.0046ffa4
push 0x495d9c
lea ecx, [esp + 0xc]
call fcn.0046ffa4
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41c25e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046fc14
jmp 0x41c329
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x41c2e2
lea edx, [esp + 0x7c]
push 0x495d98
push edx
call fcn.00460444
add esp, 8
test eax, eax
je 0x41c2e2
lea eax, [esp + 0x7c]
push 0x495d94
push eax
call fcn.00460444
add esp, 8
test eax, eax
je 0x41c2e2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41c272
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046fc14
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x41cb20
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41cb82
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x41cb90
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47af2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x49cc30]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x41ccc8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x41cbf6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046fc14
xor eax, eax
jmp 0x41cd3f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046fd51
push esi
lea ecx, [esp + 0xc]
call fcn.0046ffe0
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x41cd1d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0041cb20
test eax, eax
jne 0x41cd1d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0041cb20
test eax, eax
jne 0x41cd1d
lea eax, [esp + 0x14]
push 0x495db0
push eax
call fcn.00461510
mov esi, eax
add esp, 8
test esi, esi
jne 0x41ccfc
lea ecx, [esp + 0x14]
push 0x495dac
push ecx
call fcn.00461490
mov esi, eax
add esp, 8
test esi, esi
jne 0x41ccfc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41ccff
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046fd01
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41cc0e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046fc14
xor eax, eax
jmp 0x41cd3f
mov byte [esi], 0
push 0x495da8
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0046fc14
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x42d1d0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x42d23e
cmp si, 0x69
ja 0x42d23e
add esi, 0xffd0
cmp si, 0x11
je 0x42d20e
push 0x11
call edi
test ax, ax
jge 0x42d20e
or esi, 0x2000
cmp si, 0x10
je 0x42d223
push 0x10
call edi
test ax, ax
jge 0x42d223
or esi, 0x4000
cmp si, 0x12
je 0x42d238
push 0x12
call edi
test ax, ax
jge 0x42d238
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42d24b
mov esi, 0xbd
jmp 0x42d1ff
cmp si, 0x6e
jne 0x42d258
mov esi, 0xbe
jmp 0x42d1ff
cmp si, 0x6f
jne 0x42d1f9
mov esi, 0xbf
jmp 0x42d1ff

Function at 0x42ea00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4ad2a8]
xor edx, edx
cmp eax, edx
jne 0x42ea26
xor eax, eax
mov byte [eax + 0x4ad1a8], al
inc eax
cmp eax, 0x100
jl 0x42ea0e
mov dword [0x4ad2a8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4ad1a8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x42eab7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x42ea8a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x42ea58
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x42eb30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x42eb83
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x42eb6a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret