joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ae60
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a220b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0xdc40b8]
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 0x42af98
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x42aec6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00496ee4
xor eax, eax
jmp 0x42b00f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00497021
push esi
lea ecx, [esp + 0xc]
call fcn.004972b0
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 0x42afed
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0042adf0
test eax, eax
jne 0x42afed
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.0042adf0
test eax, eax
jne 0x42afed
lea eax, [esp + 0x14]
push 0xdb7d2c
push eax
call fcn.004881d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x42afcc
lea ecx, [esp + 0x14]
push 0xdb7d28
push ecx
call fcn.00488150
mov esi, eax
add esp, 8
test esi, esi
jne 0x42afcc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x42afcf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00496fd1
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x42aede
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00496ee4
xor eax, eax
jmp 0x42b00f
mov byte [esi], 0
push 0xdb7d24
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.00496ee4
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 0x43cac0
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 0x43cb2e
cmp si, 0x69
ja 0x43cb2e
add esi, 0xffd0
cmp si, 0x11
je 0x43cafe
push 0x11
call edi
test ax, ax
jge 0x43cafe
or esi, 0x2000
cmp si, 0x10
je 0x43cb13
push 0x10
call edi
test ax, ax
jge 0x43cb13
or esi, 0x4000
cmp si, 0x12
je 0x43cb28
push 0x12
call edi
test ax, ax
jge 0x43cb28
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x43cb3b
mov esi, 0xbd
jmp 0x43caef
cmp si, 0x6e
jne 0x43cb48
mov esi, 0xbe
jmp 0x43caef
cmp si, 0x6f
jne 0x43cae9
mov esi, 0xbf
jmp 0x43caef

Function at 0x43e490
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xdd4908]
xor edx, edx
cmp eax, edx
jne 0x43e4b6
xor eax, eax
mov byte [eax + 0xdd4808], al
inc eax
cmp eax, 0x100
jl 0x43e49e
mov dword [0xdd4908], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xdd4808
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x43e547
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 0x43e51a
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 0x43e4e8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x43e5c0
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 0x43e613
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 0x43e5fa
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
Function at 0x450b10
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a4488
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.0044b350
test eax, eax
je 0x450c18
lea ecx, [esp + 0xc]
call fcn.004229e0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.0044b350
mov ecx, eax
call fcn.00448a20
test eax, eax
je 0x450bff
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x450bff
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x450bff
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00422be0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x450be1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x450bff
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0xdd4d60]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0xda2540
call fcn.00422be0
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x450c70
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.0044b350
test eax, eax
je 0x450d5f
mov ecx, edi
call fcn.0044b350
mov ecx, eax
call fcn.004488d0
test eax, eax
jne 0x450d5f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x450d5f
mov eax, dword [0xdd4d60]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x450cd2
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.0044b350
mov ecx, eax
call fcn.00448b00
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x450d5f
cmp ebx, eax
jne 0x450d5f
cmp dword [esp + 0x10], eax
jne 0x450d45
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x453ac0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a4718
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x453af9
inc eax
mov dword [esi + 0x10], eax
jmp 0x453c0c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x453b0d
mov eax, 0xffffffc7
jmp 0x453c0e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x453b1e
cmp dword [esi + 8], eax
jne 0x453b0d
cmp dword [esi + 8], eax
jne 0x453b37
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x453b37
mov eax, 0xffffffc7
jmp 0x453c0e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x453b4b
push eax
mov ecx, ebx
call fcn.004532f0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004229e0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x453b7c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00422a00
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00452a60
test eax, eax
mov dword [esp + 0x38], eax
je 0x453baf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xda2570
call fcn.00422be0
mov eax, dword [esp + 0x38]
jmp 0x453c0e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00453920
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x453bf3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00453940
mov esi, eax
test esi, esi
jne 0x453c23
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00453920
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x453bc5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xda2570
call fcn.00422be0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xda2570
call fcn.00422be0
mov eax, esi
jmp 0x453c0e

Function at 0x458620
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x458680
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x458680
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x458680
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x458680
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4586c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x482cd0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0xdc172c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x482ce3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x482d24
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0xdc17d4]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x482d56
mov bl, byte [esp + ecx + 0x4c]
jmp 0x482d5a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x482d4b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x482d78
mov bl, byte [esp + ecx + 0x4c]
jmp 0x482d7c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x482d6d
xor ecx, ecx
mov eax, 0xdc173c
xor ebx, ebx
mov bl, byte [ecx + 0xdc17e4]
cmp byte [esp + ebx + 0x14], 0
je 0x482da7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0xdc17fc]
cmp byte [esp + ebx + 0x14], 0
je 0x482dbe
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x482d8e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x482d17
lea edx, [esp + 0x84]
push edx
call fcn.00482e00
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x484810
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4a5408
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0x10]
call fcn.00485d0e
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x38], 0
call fcn.00496f52
lea ecx, [esp + 0x3c]
push 1
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 1
call fcn.00494b33
mov eax, dword [eax]
push 0xdc4030
push eax
call fcn.00487154
add esp, 8
lea ecx, [esp + 0x3c]
test eax, eax
setne bl
call fcn.00496ee4
test bl, bl
je 0x484890
push 0xdc4030
lea ecx, [esp + 0xc]
call fcn.00497274
push 0xdc402c
lea ecx, [esp + 0xc]
call fcn.00497274
mov edx, dword [esp + 8]
push 0
push edx
lea ecx, [esp + 0x18]
call fcn.00485dd1
test eax, eax
je 0x484954
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov bl, 2
lea ecx, [esp + 0x18]
call fcn.00485ff1
mov edi, eax
mov eax, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [eax + 0x38]
test eax, eax
je 0x484910
lea ecx, [esp + 0x18]
call fcn.00485fb8
test eax, eax
jne 0x484910
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004860c0
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0x40], bl
call fcn.00484810
mov byte [esp + 0x3c], 1
lea ecx, [esp + 0x44]
jmp 0x484945
lea ecx, [esp + 0x18]
call fcn.00485fb8
test eax, eax
jne 0x48494a
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x38]
test eax, eax
jne 0x48494a
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
call fcn.004860c0
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x14]
call fcn.00496ee4
test edi, edi
jne 0x4848c0
pop edi
pop ebp
lea ecx, [esp + 0x10]
call fcn.00485d87
lea ecx, [esp + 8]
mov byte [esp + 0x34], 0
call fcn.00496ee4
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.00485d4b
mov ecx, dword [esp + 0x2c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x484a50
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4a5436
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0xdc40b8]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x15c], 0
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x164]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x160], 1
call fcn.00497021
push str..
lea ecx, [esp + 0x10]
call fcn.00497274
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x484af3
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 0
call fcn.00496ee4
lea ecx, [esp + 8]
mov dword [esp + 0x15c], 0xffffffff
call fcn.00496ee4
xor eax, eax
jmp 0x484c38
push ebp
mov ebp, dword [esp + 0x16c]
push edi
mov edi, dword [esp + 0x174]
lea edx, [esp + 0x48]
push 0xdc4050
push edx
call fcn.00487154
add esp, 8
test eax, eax
je 0x484be9
lea eax, [esp + 0x48]
push 0xdc404c
push eax
call fcn.00487154
add esp, 8
test eax, eax
je 0x484be9
test ebp, ebp
jne 0x484b55
lea ecx, [esp + 0x48]
push str.desktop.ini
push ecx
call fcn.00487203
add esp, 8
test eax, eax
je 0x484be9
push esi
lea ecx, [esp + 0x14]
call fcn.00497021
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0049729b
lea edx, [esp + 0x48]
lea ecx, [esp + 0x10]
push edx
call fcn.00497274
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x484b95
mov ecx, dword [esp + 0x10]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [esp + 0x1c], 0x10
je 0x484bb7
mov edx, dword [esp + 0x10]
push edi
push ebp
push edx
mov ecx, ebx
call fcn.00484a50
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x484be9
test edi, edi
je 0x484bde
lea ecx, [esp + 0x48]
push str.index.dat
push ecx
call fcn.00487203
add esp, 8
test eax, eax
jne 0x484bde
lea edx, [esp + 0x48]
mov ecx, ebx
push edx
push esi
call fcn.00484c60
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x484b03
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 0
call fcn.00496ee4
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call fcn.00496ee4
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x154]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 0xc
Function at 0x484c60
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a544b
push eax
mov eax, 0x2718
mov dword fs:[0], esp
call fcn.00487970
mov eax, dword [0xdc40b8]
push edi
mov dword [esp + 4], eax
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x2724], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x272c]
push ecx
lea ecx, [esp + 8]
call fcn.00497021
push 0x5c
lea ecx, [esp + 8]
call fcn.0049729b
mov edx, dword [esp + 0x2730]
lea ecx, [esp + 4]
push edx
call fcn.00497274
mov eax, dword [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x484d06
lea ecx, [esp + 4]
mov dword [esp + 0x2724], eax
call fcn.00496ee4
xor eax, eax
jmp 0x484d83
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
mov esi, eax
push 0x40
push edi
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jbe 0x484d61
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x2710
push 0
jbe 0x484d53
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x2710
push edx
push edi
call ebx
sub esi, 0x2710
jne 0x484d2d
jmp 0x484d61
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x272c], 0xffffffff
call fcn.00496ee4
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x271c]
pop edi
mov dword fs:[0], ecx
add esp, 0x2724
ret 8

Function at 0x499288
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4992c0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049733f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00497317
jmp 0x4992cc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49a976
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49a9b8
call fcn.004a042d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49a9b8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49a9af
xor eax, eax
jmp 0x49a9c0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049a9c6
pop edi
pop esi
pop ebx
ret 4
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x401443
pop dword [ebp - 0x40]
mov eax, 0x401443
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x35f87a04
add dword [ebp - 0x50], 0x1859cb47
mov dword [ebp - 0x4c], 0xd0f9aedb
sub dword [ebp - 0x4c], 0x9ec66296
mov dword [ebp - 0x48], 0x7fa35f67
sub dword [ebp - 0x48], 0x33571b39
mov dword [ebp - 0x44], 0xfb117adf
add dword [ebp - 0x44], 0x4ee8521
lea eax, [ebp - 0x50]
push eax
mov eax, 0xc9816fea
sub eax, 0xc940eee6
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x5f2022e2
add dword [ebp - 0x50], 0x15524674
mov dword [ebp - 0x4c], 0xb8a3770
sub dword [ebp - 0x4c], 0xca1dd5fb
mov dword [ebp - 0x48], 0x462232de
sub dword [ebp - 0x48], 0xe2b2c672
mov dword [ebp - 0x44], 0x7e79fb7f
add dword [ebp - 0x44], 0x81860481
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x19b431e3
add eax, 0xe68c4f1d
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x39a36
push 0
call eax
mov ecx, 0xfb6fb097
add ecx, 0x4909ccd
mov ebx, eax
mov edi, 0x46e400
add edi, dword [ebp - 0x40]
mov edx, 0x490b5cc1
sub edx, 0x1a5af711
xor dword [ebp - 0x18], 0xff99abca
mov esi, dword [edi]
add dword [ebp - 0x30], 0xf3d3207
add esi, edx
xor dword [ebp - 0x1c], ecx
mov dword [ebx], esi
mov dword [ebp - 0xc], 0x17daa3c
add ebx, 0x7034725d
add ebx, 0x8fcb8da7
add edi, 4
loop 0x40155a
add eax, 0x57f5584d
add eax, 0xa80bd016
xor ebx, ebx
add ebx, eax
add eax, 0x32047628
add eax, 0xcdfb89dd
mov ecx, 0x400000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ec
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a2f0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27