joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ddc40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x548c20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x596a5c]
push ebx
mov dword [esp + 0x10], eax
xor ebx, ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], eax
push ebx
lea eax, [esp + 0x1c]
push ebx
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x20]
push edx
push eax
push ecx
mov byte [esp + 0x44], 3
call fcn.004df8d0
add esp, 0x1c
test eax, eax
je 0x4ddd6b
push ebx
lea edx, [esp + 0x34]
push ebx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
call fcn.004df8d0
add esp, 0x1c
test eax, eax
je 0x4ddd6b
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.00501e6d
add esp, 8
test eax, eax
jne 0x4ddd6b
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call fcn.00501e6d
add esp, 8
test eax, eax
jne 0x4ddd6b
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push esi
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call fcn.004dfb10
add esp, 0x10
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x2c], 2
call fcn.00519a06
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 1
call fcn.00519a06
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], bl
call fcn.00519a06
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00519a06
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
lea ecx, [esp + 4]
mov byte [esp + 0x28], 2
call fcn.00519a06
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call fcn.00519a06
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], bl
call fcn.00519a06
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00519a06
mov ecx, dword [esp + 0x20]
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x4dddc0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, 1
cmp esi, eax
jl 0x4ddde9
mov ecx, dword [esp + 8]
push ebx
mov bl, byte [ecx]
mov edx, eax
and edx, 3
mov dl, byte [esp + edx + 0x14]
xor bl, dl
inc eax
mov byte [ecx], bl
inc ecx
cmp eax, esi
jle 0x4dddd3
pop ebx
pop esi
ret

Function at 0x4dddf0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push edi
lea eax, [esp + 4]
push 4
push eax
call fcn.004742d0
mov edi, dword [esp + 0x18]
add esp, 8
xor eax, eax
test edi, edi
jbe 0x4dde33
push ebx
push esi
mov esi, dword [esp + 0x14]
mov ecx, eax
mov dl, byte [esi]
and ecx, 3
mov bl, byte [esp + ecx + 0xc]
lea ecx, [esp + ecx + 0xc]
xor bl, dl
inc eax
inc esi
cmp eax, edi
mov byte [ecx], bl
jb 0x4dde11
mov eax, dword [esp + 0xc]
pop esi
pop ebx
pop edi
pop ecx
ret
mov eax, dword [esp + 4]
pop edi
pop ecx
ret
Function at 0x4ddf20
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor edx, edx
test esi, esi
jle 0x4ddf4e
mov eax, dword [esp + 0x10]
push ebx
push edi
mov edi, dword [esp + 0x10]
xor ecx, ecx
mov cl, byte [edx + edi]
mov ebx, ecx
mov ecx, edx
and ecx, 0xf
shl ebx, cl
xor eax, ebx
inc edx
cmp edx, esi
jl 0x4ddf35
pop edi
pop ebx
pop esi
ret
mov eax, dword [esp + 0x10]
pop esi
ret
Function at 0x4de510
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebx
call fcn.004741f0
add esp, 4
test eax, eax
jne 0x4de57a
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
cmp eax, 1
jne 0x4de57a
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
call fcn.00474320
add esp, 4
mov edi, eax
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4de572
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.00474210
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
ret

Function at 0x4de840
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x64
mov edx, dword [esp + 0x68]
mov ecx, 0x19
xor eax, eax
push esi
push edi
lea edi, [esp + 8]
push eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0xc]
push eax
push ecx
push edx
mov ecx, 0x599b30
call fcn.00499db0
mov al, byte [esp + 8]
lea esi, [esp + 8]
test al, al
je 0x4de890
and eax, 0xff
push eax
call fcn.005045e2
add esp, 4
mov byte [esi], al
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4de878
mov eax, 0x98543643
lea ecx, [esp + 8]
mov edx, 8
mov esi, dword [ecx]
add ecx, 4
xor eax, esi
dec edx
jne 0x4de89e
pop edi
pop esi
add esp, 0x64
ret

Function at 0x4ded60
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 0x4dedce
cmp si, 0x69
ja 0x4dedce
add esi, 0xffd0
cmp si, 0x11
je 0x4ded9e
push 0x11
call edi
test ax, ax
jge 0x4ded9e
or esi, 0x2000
cmp si, 0x10
je 0x4dedb3
push 0x10
call edi
test ax, ax
jge 0x4dedb3
or esi, 0x4000
cmp si, 0x12
je 0x4dedc8
push 0x12
call edi
test ax, ax
jge 0x4dedc8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4deddb
mov esi, 0xbd
jmp 0x4ded8f
cmp si, 0x6e
jne 0x4dede8
mov esi, 0xbe
jmp 0x4ded8f
cmp si, 0x6f
jne 0x4ded89
mov esi, 0xbf
jmp 0x4ded8f
Function at 0x4edac0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x549838
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
lea ecx, [esp + 4]
call fcn.004733a0
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 4]
mov dword [esp + 0x20], 0
push eax
push esi
push ecx
call fcn.004ed680
add esp, 0xc
test eax, eax
je 0x4edb3e
push eax
push 0x59a520
call fcn.0046b030
add esp, 8
lea ecx, [esp + 4]
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 4], 0x54d7d0
call fcn.004735a0
xor eax, eax
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov eax, ecx
push esi
neg eax
sbb eax, eax
push ecx
and eax, edx
mov edx, dword [esp + 0x30]
push eax
push edx
call fcn.004e89c0
add esp, 0x10
lea ecx, [esp + 4]
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 4], 0x54d7d0
call fcn.004735a0
mov ecx, dword [esp + 0x18]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x4ee340
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x549930
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push esi
push edi
push 0x400
lea ecx, [esp + 0xc]
call fcn.00527979
push 0
push 0x1000
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x8c], 0
call fcn.00521948
lea ecx, [esp + 0x30]
mov byte [esp + 0x7c], 1
push ecx
mov ecx, dword [esp + 0x88]
call fcn.00450ab0
lea ecx, [esp + 0x30]
call fcn.00521aac
lea ecx, [esp + 8]
call fcn.0051f217
lea ecx, [esp + 8]
mov esi, eax
call fcn.005279f0
mov edx, dword [esp + 0x8c]
mov edi, eax
lea eax, [esp + 0x84]
push 2
push eax
mov ecx, 0x59a5e8
mov dword [esp + 0x8c], edx
call fcn.00473c60
lea ecx, [esi + 4]
lea edx, [esp + 0x84]
mov dword [esp + 0x84], ecx
push 4
push edx
mov ecx, 0x59a5e8
call fcn.00473c60
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0x84]
push 4
push ecx
mov ecx, 0x59a5e8
mov dword [esp + 0x8c], eax
call fcn.00473c60
push esi
push edi
mov ecx, 0x59a5e8
call fcn.00473c60
push edi
call fcn.0050310a
add esp, 4
lea ecx, [esp + 0x30]
mov byte [esp + 0x7c], 0
call fcn.00521a24
lea ecx, [esp + 8]
mov dword [esp + 0x7c], 0xffffffff
call fcn.00527a02
mov ecx, dword [esp + 0x74]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x78
ret 0xc
Function at 0x4f4c40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54a468
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push esi
push edi
mov edi, ecx
mov eax, 0x7fffffff
lea ecx, [esp + 0x2c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.004733a0
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x54], 0
call fcn.004f4b00
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4f4d98
mov eax, dword [esp + 8]
push 0
test eax, eax
push 0
jne 0x4f4cc5
mov ecx, dword [edi + 0x4c]
add ecx, 0x14
call fcn.004d2670
jmp 0x4f4cd1
mov ecx, dword [edi + 0x4c]
push eax
add ecx, 0x14
call fcn.004d2760
test eax, eax
je 0x4f4d98
lea esi, [eax + 0x18]
push esi
call fcn.00474320
add esi, eax
push esi
call fcn.00474320
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x4f4d98
mov eax, dword [esp + 8]
test eax, eax
jne 0x4f4d0f
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.004f9140
jmp 0x4f4d1e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
sub eax, ecx
sub eax, esi
mov esi, dword [esp + 0xc]
add eax, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
mov ecx, eax
mov eax, dword [esp + 0x28]
sar ecx, 1
sub ecx, esi
mov esi, dword [esp + 0x18]
sub eax, edx
sub eax, esi
mov esi, dword [esp + 0x10]
add eax, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x50]
sar eax, 1
sub eax, esi
cmp edx, 0x202004f
jne 0x4f4d6a
xor eax, eax
jmp 0x4f4d74
cmp edx, 0x2020050
jne 0x4f4d74
xor ecx, ecx
and eax, 0xffff
and ecx, 0xffff
shl eax, 0x10
or eax, ecx
mov ecx, edi
push eax
lea eax, [esp + 0x30]
push eax
push 0
push 0x202003d
call fcn.004f31b0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x2c], 0x54d7d0
call fcn.004735a0
mov ecx, dword [esp + 0x40]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x44
ret 4
Function at 0x4f9d10
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x44
push esi
lea eax, [esp + 4]
push 0x44
mov esi, ecx
push eax
call fcn.004742d0
add esp, 8
lea ecx, [esi + 0x64]
mov eax, dword [esi + 0x5c]
lea edx, [esp + 4]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
mov dword [esp + 0x2c], 0x44
mov dword [esi + 0x388], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4f9d70
push 0x5965e8
call fcn.004dc5d0
add esp, 4
xor eax, eax
pop esi
add esp, 0x44
ret
push 0
push 0
push 0
push 0
push esi
push 0x4f9cb0
call fcn.0051e14e
mov eax, 1
pop esi
add esp, 0x44
ret

Function at 0x50e5ee
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x598b40
cmp edx, dword [eax]
je 0x50e610
add eax, 8
inc ecx
cmp eax, 0x598bd0
jl 0x50e601
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x598b40]
jne 0x50e73e
mov eax, dword [0x5a8b3c]
cmp eax, 1
je 0x50e718
test eax, eax
jne 0x50e641
cmp dword [0x5979a4], 1
je 0x50e718
cmp edx, 0xfc
je 0x50e73e
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x50e678
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00508850
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00502110
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x50e6bb
lea eax, [ebp - 0x1a4]
push eax
call fcn.00502110
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x595c04
push edi
call fcn.00503190
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00508850
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00508860
lea eax, [ebp - 0xa0]
push 0x5598f4
push eax
call fcn.00508860
push dword [esi + 0x598b44]
lea eax, [ebp - 0xa0]
push eax
call fcn.00508860
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00510a4b
add esp, 0x2c
pop edi
jmp 0x50e73e
lea eax, [ebp + 8]
lea esi, [esi + 0x598b44]
push 0
push eax
push dword [esi]
call fcn.00502110
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x515580
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00503290
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x51564b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x51564b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x5155fe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x515609
or bh, 8
and edi, 0x8000000
je 0x515624
mov eax, dword [0x5aa29c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x51564b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x515a20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x515a4b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x515a6f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x515a8a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x51a123
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x51a145
cmp dword [edi + 0x3c], 0
jne 0x51a145
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0053597d
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0051a172
pop edi
pop esi
pop ebx
ret 8

Function at 0x51bd85
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x51bdbd
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.00519e61
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00519e39
jmp 0x51bdc9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x51d837
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 0x51d879
call fcn.0053597d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x51d879
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x51d870
xor eax, eax
jmp 0x51d881
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0051d887
pop edi
pop esi
pop ebx
ret 4
Function at 0x10005510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x1000551f
pop dword [ebp - 0x28]
mov eax, 0x6b17781d
add eax, 0xa4e8dd02
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x36aa2
push 0
mov eax, 0xb6f608fb
sub eax, 0xa6f508b7
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0xf90bdb11
add ecx, 0x6f46aeb
mov edi, eax
mov edx, 0xe8ebfe9
sub edx, 0xfe8d27e9
add edx, dword [ebp - 0x28]
mov esi, 0x6daf218e
sub esi, 0x225f86b9
xor dword [ebp - 0x1c], ecx
mov ebx, dword [edx]
xor dword [ebp - 0xc], 0xfb9e304b
add ebx, esi
add dword [ebp - 0x24], 0x4c1b9709
mov dword [edi], ebx
xor dword [ebp - 0x18], 0xc9272496
add edi, 4
add edx, 0xd2d487d9
sub edx, 0xd2d487d5
loop 0x1000557e
add eax, 0x10ac3
xor ebx, ebx
add ebx, eax
add eax, 0xbb634549
sub eax, 0xbb634544
mov ecx, 0x182bb11e
add ecx, 0xf7d44ee2
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x401443
pop dword [ebp - 0x28]
mov eax, 0x401443
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x8ef26a58
sub dword [ebp - 0x38], 0x40a0250d
mov dword [ebp - 0x34], 0x4d065162
sub dword [ebp - 0x34], 0x1ad3051d
mov dword [ebp - 0x30], 0x866f8af2
sub dword [ebp - 0x30], 0x3a2346c4
mov dword [ebp - 0x2c], 0xca98f8b8
add dword [ebp - 0x2c], 0x35670748
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x2fe39746
sub dword [ebp - 0x38], 0xbb712df0
mov dword [ebp - 0x34], 0xacffbce7
add dword [ebp - 0x34], 0x946ca48e
mov dword [ebp - 0x30], 0x756a5ab4
add dword [ebp - 0x30], 0xee0511b8
mov dword [ebp - 0x2c], 0xcdcf77c
add dword [ebp - 0x2c], 0xf3230884
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x14ac98b2
add eax, 0xeb93e84e
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x38576
push 0
call eax
mov ecx, 0x95cdbdd3
add ecx, 0x6a328a61
xor esi, esi
add esi, eax
mov edi, 0x40aed4f3
add edi, 0xbf980f0d
add edi, dword [ebp - 0x28]
mov edx, 0x201d8865
add edx, 0x2aaccbea
xor dword [ebp - 0x18], eax
mov ebx, dword [edi]
add dword [ebp - 0x1c], 0x7fa1e11c
sub ebx, edx
add dword [ebp - 0x24], eax
mov dword [esi], ebx
add dword [ebp - 0x10], edx
add esi, 0x6e9caff
sub esi, 0x6e9cafb
add edi, 4
loop 0x40155d
add eax, 0xabb3d4e3
sub eax, 0xabb2c140
mov ebx, eax
add eax, 5
mov ecx, 0x7efd0e93
sub ecx, 0x7ebd0e93
add ecx, dword [ebp - 0x28]
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
Function at 0x1000b410
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov byte [ebp - 1], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp + 0x10]
push eax
movzx ecx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1000b450
jmp 0x1000b4ff
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1000b46c
jmp 0x1000b4ff
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1000b481
jmp 0x1000b4ff
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x24], eax
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x1000b4ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x20
jne 0x1000b4cc
mov byte [ebp - 1], 1
jmp 0x1000b4ff
jmp 0x1000b4ff
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1000b4f3
jmp 0x1000b4ff
mov byte [ebp - 1], 1
xor ecx, ecx
jne 0x1000b42f
cmp dword [ebp - 8], 0xffffffff
je 0x1000b516
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x1000b52d
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 0x10], 0
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret