joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4415ab
Capabilities:
Terminate process

Disassembly:
sub esp, 0x110
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebp, eax
mov esi, 0x465e34
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esp + 0x10c], eax
mov eax, dword [esi + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, eax
mov eax, dword [esi + 0x74]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
mov eax, dword [esi + 0x30]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
lea eax, [esp + 8]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [esp + 8], 0
je 0x441624
xor edx, edx
movsx eax, byte [esp + edx + 8]
mov word [ebx + edx*2], ax
inc edx
cmp byte [esp + edx + 8], 0
jne 0x441613
push ebx
call edi
mov edx, eax
mov ebx, dword [esi + 0x50]
cmp dword [ebx], 0
je 0x441665
mov eax, edx
mov dword [esp + 4], edx
call fcn.0044171f
movzx eax, al
mov edx, dword [esp + 4]
cmp al, byte [ebx]
je 0x441650
cmp al, byte [ebx + 1]
jne 0x441700
mov eax, edx
call fcn.00441737
cmp eax, dword [ebx + 4]
je 0x441665
cmp eax, dword [ebx + 8]
jne 0x441700
mov eax, dword [esi + 0x30]
mov dword [esp + 4], 0
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
xor ecx, ecx
mov eax, dword [esi + 0x84]
mov edx, dword [eax + ecx]
mov dword [ecx + ebx], edx
add ecx, 4
cmp ecx, 0x20
jl 0x44167d
push ebx
push dword [esp + 0x110]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x441700
lea ebx, [esp + 4]
push ebx
mov ebx, dword [esi + 0x48]
mov eax, dword [esi]
push eax
push 0x4000
push ebx
call edi
mov eax, dword [esi + 0x60]
push 8
pop edx
add ebp, eax
mov ecx, dword [ebp + 4]
mov eax, dword [edx + ebp]
add eax, ecx
mov dword [edx + ebx], eax
add edx, 4
cmp edx, 0x4000
jl 0x4416c3
mov edx, dword [esi + 0x40]
lea eax, [esp + 4]
push eax
mov dword [ebx + 8], edx
push dword [esp + 8]
push 0x4000
push ebx
call edi
mov ecx, dword [ebx + 0xc]
add ecx, ebx
mov eax, dword [esi + 0x44]
add ecx, eax
mov edx, dword [esi + 0x44]
add ebx, edx
push ebx
call ecx
pop eax
push 0x10
mov eax, dword [esi + 0x1c]
mov esi, dword [esi + 0x10]
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4434ec
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
add ecx, dword [ebx + 0x5d39b875]
enter 0x2374, 0x57
lodsb al, byte [esi]
inc esp
sub al, byte [eax]
add byte [ebx + 0x68], ah
jecxz 0x44345e
popfd
xchg edi, eax
sbb al, 0x4c
fnstsw word [edx - 0x3f7cb3e4]
sbb al, 0x4c
add eax, 0x1c
dec esp
and cl, byte [ecx]
ror byte [ecx - 0x6a6e1c2c], 1
cwde
sbb al, 0x4c
popfd
and ah, byte [edx + 0x58]
sub ch, ah
and al, 0xd9
int1
cwde
adc al, 0xd6
repne outsd dx, dword [esi]
test al, 0x91
jne 0x4434f8
push 0x64
sub byte [eax - 0x675222a9], ch
sbb al, 0x4c
adc dword [edi + 0x63860c4e], ebx
push ds
dec esp
popfd
add dword [ecx], esp
xlatb
loop 0x44349c
scasd eax, dword es:[edi]
and dword [eax - 0x62], ebx
xchg edi, eax
sbb al, 0x9c
push esi
cdq
sbb al, 0x4c
popfd
add ch, dh
dec esp
sub bl, ah
xor dword [eax], edx
in eax, dx
jg 0x4434f1
pop edx
popfd
xchg edi, eax
lahf
adc byte [ecx - 0x1528deff], ch
scasd eax, dword es:[edi]
lahf
or eax, 0x4dd6e8e1
popfd
xchg edi, eax
sbb al, 0xd
jg 0x4434b3
test eax, 0x6d5bb290
xor al, 0x51
cmpsb byte [esi], byte es:[edi]
sbb al, 0x4c
and byte [ecx + ebp - 0x29], bl
ljmp 0x625f
Function at 0x401010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 5
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 6
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 7
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 9
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0xa
mov dword [ebp - 4], edx
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x406fc2
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x18]
mov ecx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 0xa0]
mov eax, dword [ecx + 0x24]
sub eax, dword [edx + 0xc]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x401010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 5
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 6
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 7
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 9
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0xa
mov dword [ebp - 4], edx
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4044d4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [0x645ef8], 2
push esi
mov esi, ecx
jne 0x404559
push edi
call fcn.00406242
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x404558
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
mov edx, edi
lea ecx, [ebp - 8]
call fcn.004067a1
mov esi, dword [ebp - 8]
add esp, 8
cmp esi, dword [edi + 4]
je 0x404558
push dword [esi]
push 0
call dword [sym.imp.USER32.dll_KillTimer]
mov edx, dword [edi + 4]
lea ecx, [esi + 8]
push esi
call fcn.004068e9
add dword [edi + 4], 0xfffffff8
mov eax, dword [edi + 4]
pop ecx
cmp dword [edi], eax
jne 0x404558
mov ecx, edi
call fcn.0040653b
push 0xc
push edi
call fcn.0056c61e
pop ecx
pop ecx
call fcn.00406242
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
leave
ret

Function at 0x4049e7
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x645f00], 2
push esi
push edi
mov edi, ecx
jne 0x404a67
call fcn.0040621b
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x404a67
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
mov dword [ebp - 4], eax
mov ecx, esi
lea eax, [ebp - 4]
push eax
call fcn.00406895
cmp eax, dword [esi]
je 0x404a67
cmp dword [eax + 0x14], edi
jne 0x404a67
push eax
mov ecx, esi
call fcn.00406b35
cmp dword [esi + 4], 0
jne 0x404a4e
push ecx
mov ecx, esi
call fcn.00404a6f
call fcn.0040621b
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp byte [ebp + 8], 0
je 0x404a59
xor eax, eax
inc eax
jmp 0x404a69
call dword [sym.imp.USER32.dll_ReleaseCapture]
neg eax
sbb eax, eax
neg eax
jmp 0x404a69
xor al, al
pop edi
pop esi
leave
ret 4

Function at 0x404a8f
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x645f00], 2
push esi
mov dword [ebp - 4], ecx
jne 0x404ac7
call fcn.0040621b
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x404ac7
lea eax, [ebp - 4]
mov ecx, esi
push eax
call fcn.00406895
cmp eax, dword [esi]
je 0x404ac7
mov eax, dword [eax + 0x14]
jmp 0x404ac9
xor eax, eax
pop esi
leave
ret

Function at 0x406561
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ecx
xor ecx, ecx
mov edx, 0x645f00
inc ecx
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x4065b0
push esi
push 4
call fcn.00415d9b
mov esi, eax
mov dword [ebp - 4], esi
pop ecx
test esi, esi
je 0x406593
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
jmp 0x406595
xor esi, esi
mov dword [0x645f04], esi
mov dword [0x645f00], 2
pop esi
leave
ret
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x645f00], 2
jne 0x4065a8
leave
ret
Function at 0x4065bb
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ecx
xor ecx, ecx
mov edx, 0x645ef8
inc ecx
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x40660a
push esi
push 4
call fcn.00415d9b
mov esi, eax
mov dword [ebp - 4], esi
pop ecx
test esi, esi
je 0x4065ed
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
jmp 0x4065ef
xor esi, esi
mov dword [0x645efc], esi
mov dword [0x645ef8], 2
pop esi
leave
ret
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x645ef8], 2
jne 0x406602
leave
ret

Function at 0x4092b2
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x63d284]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x5c
xor ebx, ebx
mov esi, ecx
push ebx
push esi
call fcn.00573610
add esp, 0xc
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push esi
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
push 0x118
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.00573610
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x11c], 6
jne 0x409328
cmp byte [ebp - 6], cl
jne 0x409335
mov bl, cl
cmp dword [ebp - 0x11c], 6
movzx ebx, bl
cmova ebx, ecx
mov ecx, str.Tahoma
test bl, bl
mov eax, 0x60dad4
cmove eax, ecx
push eax
lea eax, [esi + 0x1c]
push 0x20
push eax
call fcn.00591c49
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop esi
pop ebx
call fcn.0056cd75
leave
ret

Function at 0x40d5fd
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov esi, ecx
call fcn.0040d9a2
test al, al
jne 0x40d611
mov ecx, esi
pop esi
jmp fcn.004044d4
pop esi
ret

Function at 0x4116b7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [ebp + 8]
push ebx
push esi
push edi
push 0x60dd6c
mov esi, edx
mov dword [ebp - 4], ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x411759
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x411759
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x411759
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x411752
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41174b
push ebx
push edi
push eax
call fcn.005729d0
and dword [ebp + 8], 0
lea eax, [ebp + 8]
add esp, 0xc
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x411744
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00411080
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41175e
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, ecx
cmp dword [edi + 4], 0
je 0x4117f0
push ebx
xor ebx, ebx
cmp dword [edi + 0xc], ebx
jle 0x4117ef
mov eax, dword [edi + 0x10]
mov dword [ebp - 8], 0xff
push esi
and dword [ebp - 4], 0
test eax, eax
jle 0x4117e8
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
imul ecx, dword [ebp - 4]
imul eax, ebx
cdq
and edx, 7
lea esi, [edx + eax]
xor edx, edx
sar esi, 3
add esi, ecx
add esi, dword [edi + 8]
movzx ecx, byte [esi + 3]
movzx eax, byte [esi]
imul eax, ecx
div dword [ebp - 8]
xor edx, edx
mov byte [esi], al
movzx eax, byte [esi + 1]
imul eax, ecx
div dword [ebp - 8]
xor edx, edx
mov byte [esi + 1], al
movzx eax, byte [esi + 2]
imul eax, ecx
mov ecx, 0xff
div ecx
mov ecx, dword [ebp - 4]
inc ecx
mov byte [esi + 2], al
mov eax, dword [edi + 0x10]
mov dword [ebp - 4], ecx
cmp ecx, eax
jl 0x41178b
inc ebx
cmp ebx, dword [edi + 0xc]
jl 0x411783
pop esi
pop ebx
pop edi
leave
ret

Function at 0x412141
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x28], ebx
je case.default.0x4121a5
mov edx, dword [ebp + 0x10]
movzx eax, dx
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
shr edx, 0x10
mov dword [ebp - 4], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.0041228e
mov edi, eax
test edi, edi
jne 0x412194
push esi
push 0x4124a1
call dword [sym.imp.USER32.dll_EnumWindows]
jmp case.default.0x4121a5
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [edi - 1]
cmp eax, 7
ja case.default.0x4121a5
jmp dword [eax*4 + 0x41222d]
push dword [esi + 0x98]
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
cmp edi, 2
setne al
add eax, 0xf001
jmp 0x412213
push dword [esi + 0x9c]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 0xf006
cmp edi, 1
lea ecx, [eax - 3]
jmp 0x412210
push dword [esi + 0xa0]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 0xf008
cmp edi, 5
lea ecx, [eax - 4]
jmp 0x412210
push dword [esi + 0xa4]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 0xf007
cmp edi, 6
lea ecx, [eax - 2]
cmove eax, ecx
push ebx
push eax
push 0x112
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x4178c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d2115
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x63d284]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x30]
mov dword [esi], vtable.CFilterCoder.10.0
mov dword [esi + 4], vtable.CFilterCoder.9.0
mov dword [esi + 8], vtable.CFilterCoder.8.0
mov dword [esi + 0xc], vtable.CFilterCoder.7.0
mov dword [esi + 0x10], vtable.CFilterCoder.6.0
mov dword [esi + 0x14], vtable.CFilterCoder.5.0
mov dword [esi + 0x18], vtable.CFilterCoder.4.0
mov dword [esi + 0x1c], vtable.CFilterCoder.3.0
mov dword [esi + 0x20], vtable.CFilterCoder.2.0
mov dword [esi + 0x24], vtable.CFilterCoder.1.0
mov dword [esi + 0x28], vtable.CFilterCoder.0
call fcn.004174ee
and dword [ebp - 4], 0
mov ecx, dword [esi + 0x74]
test ecx, ecx
je 0x41794a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 1
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x41795e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 2
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x417972
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 3
mov ecx, dword [esi + 0x68]
test ecx, ecx
je 0x417986
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 4
mov ecx, dword [esi + 0x64]
test ecx, ecx
je 0x41799a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 5
mov ecx, dword [esi + 0x60]
test ecx, ecx
je 0x4179ae
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 6
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x4179c2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 7
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x4179d6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret

Function at 0x41a480
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x100
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
or esi, edi
mov eax, esi
add ebx, ebx
shr eax, 7
mov ecx, edi
and eax, 1
and ecx, ebx
push eax
mov eax, esi
add ecx, edi
shr eax, 8
add eax, ecx
mov ecx, dword [ebp - 4]
lea edx, [edx + eax*2]
call fcn.0041a3ec
mov edx, dword [ebp - 8]
add esi, esi
mov eax, esi
xor eax, ebx
not eax
and edi, eax
pop ecx
cmp esi, 0x10000
jb 0x41a49b
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41a51e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, edx
xor edi, edi
mov ebx, ecx
or esi, 0x100
mov ecx, esi
mov eax, esi
shr ecx, 7
add esi, esi
shr eax, 8
and ecx, 1
neg ecx
sar ecx, 4
and ecx, 0x7f
movzx edx, word [ebx + eax*2]
mov eax, dword [ebp + 8]
shr edx, 4
xor edx, ecx
add edi, dword [eax + edx*4]
cmp esi, 0x10000
jb 0x41a530
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x41a565
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x100
mov dword [ebp - 4], ecx
xor edi, edi
or edx, esi
add ebx, ebx
mov ecx, esi
and ecx, ebx
mov eax, edx
add ecx, esi
shr eax, 8
add eax, ecx
mov ecx, dword [ebp - 4]
movzx ecx, word [ecx + eax*2]
mov eax, edx
shr eax, 7
add edx, edx
and eax, 1
shr ecx, 4
neg eax
sar eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [ebp + 0xc]
add edi, dword [eax + ecx*4]
mov ecx, edx
xor ecx, ebx
not ecx
and esi, ecx
cmp edx, 0x10000
jb 0x41a57b
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41a64d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
bts esi, edx
mov ebx, ecx
cmp esi, 1
je 0x41a688
push edi
mov edi, dword [ebp + 0xc]
mov edx, esi
and esi, 1
shr edx, 1
neg esi
sar esi, 4
and esi, 0x7f
movzx ecx, word [ebx + edx*2]
shr ecx, 4
xor ecx, esi
mov esi, edx
add eax, dword [edi + ecx*4]
cmp esi, 1
jne 0x41a665
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41a68c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor esi, esi
inc edi
test ebx, ebx
je 0x41a6d3
mov eax, dword [ebp + 8]
mov edx, eax
movzx ecx, word [ecx + edi*2]
and edx, 1
shr eax, 1
add edi, edi
mov dword [ebp + 8], eax
or edi, edx
mov eax, edx
shr ecx, 4
neg eax
sar eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [ebp + 0xc]
add esi, dword [eax + ecx*4]
mov ecx, dword [ebp - 4]
sub ebx, 1
jne 0x41a6a1
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e29b
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor ebx, ebx
push edi
sub eax, 3
je 0x41e360
sub eax, 3
je 0x41e34f
sub eax, 1
je 0x41e2ff
dec eax
sub eax, 1
je 0x41e2ea
sub eax, 1
je 0x41e2d6
sub eax, 1
je 0x41e2d6
sub eax, 1
jne 0x41e38a
mov eax, dword [ebp + 0x14]
push 0x40
pop ecx
mov word [eax], cx
mov dword [eax + 0xc], ebx
mov dword [eax + 8], ebx
jmp 0x41e38a
mov eax, dword [ebp + 0x14]
push 0x13
pop ecx
mov word [eax], cx
mov dword [eax + 8], 0x80
jmp 0x41e38a
mov esi, dword [ebp + 0x14]
push 0x15
pop eax
push ebx
mov word [esi], ax
mov eax, dword [ebp + 8]
push 0x80
push 3
push ebx
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp + 0xc]
push 1
push SysReAllocString
push dword [ecx + eax*4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41e348
lea eax, [esi + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41e38a
mov ebx, 0x80004005
jmp 0x41e38a
mov eax, dword [ebp + 0x14]
push 0xb
pop ecx
mov word [eax], cx
xor ecx, ecx
mov word [eax + 8], cx
jmp 0x41e38a
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 8
pop eax
mov word [ebx], ax
mov edi, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
mov edx, dword [ecx - 0xc]
mov ecx, dword [edi + esi*4]
lea ecx, [ecx + edx*2]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebx + 8], eax
xor ebx, ebx
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0x10
Function at 0x420102
Capabilities:
Delete file
Move file

Disassembly:
push 8
mov eax, 0x5d266f
call fcn.0056d40a
mov edi, ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
xor ebx, ebx
call fcn.0041f33e
mov dword [ebp - 4], ebx
mov ecx, edi
push dword [ebp + 8]
call fcn.00420239
test eax, eax
jne 0x420221
push ebx
push dword [ebp + 8]
call fcn.00598137
pop ecx
pop ecx
test eax, eax
jne 0x420224
lea ecx, [ebp - 0x10]
call fcn.0040ade6
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push str._s.tmp
push eax
call fcn.00422e62
mov esi, dword [ebp - 0x10]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push dword [ebp + 8]
call fcn.0059820d
pop ecx
pop ecx
test eax, eax
je 0x4201a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x610b44
lea edx, [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.0041e67a
pop ecx
mov byte [ebp - 4], 2
jmp 0x4201d2
lea ecx, [esi - 0x10]
call fcn.0040bedb
jmp 0x420224
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push dword [ebp + 8]
mov ecx, edi
call fcn.00420239
test eax, eax
jne 0x420219
push 0x610b44
lea edx, [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.0041e67a
pop ecx
mov byte [ebp - 4], 3
push dword [eax]
mov ecx, edi
call fcn.00420239
mov byte [ebp - 4], 1
mov edi, eax
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040bedb
test edi, edi
je 0x42019b
push 0x610b44
lea edx, [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.0041e67a
pop ecx
push 5
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040bedb
lea ecx, [esi - 0x10]
call fcn.0040bedb
xor ebx, ebx
inc ebx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040bedb
mov eax, ebx
call fcn.0056d3d8
ret 4