joyce8/EMBER2024-capa huggingface dataset:
Function at 0x510053
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0050ef3a
and dword [ebp - 4], 0
cmp dword [0x51a560], 0
mov ebx, eax
jne 0x510104
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x5101b5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x5101b5
push eax
call fcn.0050eec8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x51a560], eax
call esi
push eax
call fcn.0050eec8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x51a564], eax
call esi
push eax
call fcn.0050eec8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x51a568], eax
call esi
push eax
call fcn.0050eec8
pop ecx
mov dword [0x51a570], eax
test eax, eax
je 0x510104
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0050eec8
pop ecx
mov dword [0x51a56c], eax
mov eax, dword [0x51a56c]
cmp eax, ebx
je 0x51015c
cmp dword [0x51a570], ebx
je 0x51015c
push eax
call fcn.0050ef43
push dword [0x51a570]
mov esi, eax
call fcn.0050ef43
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x51015c
test edi, edi
je 0x51015c
call esi
test eax, eax
je 0x510153
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x510153
test byte [ebp - 0xc], 1
jne 0x51015c
or dword [ebp + 0x10], 0x200000
jmp 0x510195
mov eax, dword [0x51a564]
cmp eax, ebx
je 0x510195
push eax
call fcn.0050ef43
pop ecx
test eax, eax
je 0x510195
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x510195
mov eax, dword [0x51a568]
cmp eax, ebx
je 0x510195
push eax
call fcn.0050ef43
pop ecx
test eax, eax
je 0x510195
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x51a560]
call fcn.0050ef43
pop ecx
test eax, eax
je 0x5101b5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5101b7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x511ee8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x519a88]
jne 0x511ef2
repz ret
jmp fcn.00513615
Function at 0x4065bf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4065e3
xor eax, eax
test eax, eax
je 0x4065f5
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4065f5
xor ecx, ecx
jmp 0x4065f8
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x4066e4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232bc], 0
push esi
jne 0x40671b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4066f5
mov dword [ecx*4 + 0x4232b8], eax
inc ecx
cmp ecx, 0x100
jl 0x4066f0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40674c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4232b8]
xor eax, esi
inc ecx
dec edx
jne 0x40672e
pop edi
not eax
pop esi
ret 0xc

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x67127985
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x431060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4310d2
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x5b5a4a1d
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x40107b
Capabilities:
Get memory capacity
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x444664]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x40
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.0041f6b0
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x48], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp eax, 1
jne 0x4010c0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
shrd ecx, eax, 0x14
shr eax, 0x14
jmp 0x4010c4
xor ecx, ecx
xor eax, eax
test eax, eax
ja 0x4010da
jb 0x4010d2
cmp ecx, 0x3d4
jae 0x4010da
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f69e
leave
ret
Function at 0x404114
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7e0
mov eax, dword [0x444664]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov esi, 0x3e8
mov dword [ebp - 0x7dc], eax
mov dword [ebp - 0x7d8], edi
mov ecx, esi
lea eax, [ebp - 0x3ec]
mov byte [eax], 0
inc eax
dec ecx
jne 0x404148
mov ecx, esi
lea eax, [ebp - 0x7d4]
mov byte [eax], 0
inc eax
dec ecx
jne 0x404157
lea eax, [ebp - 0x3ec]
push str.Lorem_ipsum_dolor_sit_amet__consectetur_adipiscing_elit__sed_do_eiusmod_tempor_incididunt_ut_labore_et_dolore_magna_aliqua.
push eax
call fcn.0041f7d0
lea eax, [ebp - 0x7d4]
push str.Ut_enim_ad_minim_veniam__quis_nostrud_exercitation_ullamco_laboris_nisi_ut_aliquip_ex_ea_commodo_consequat.
push eax
call fcn.0041f7d0
lea eax, [ebp - 0x7d4]
push eax
lea eax, [ebp - 0x3ec]
push eax
call fcn.0041f730
lea eax, [ebp - 0x7d4]
push eax
lea eax, [ebp - 0x3ec]
push eax
call fcn.0041f730
lea eax, [ebp - 0x7d4]
push eax
lea eax, [ebp - 0x3ec]
push eax
call fcn.0041f730
lea eax, [ebp - 0x7d4]
push eax
lea eax, [ebp - 0x3ec]
push eax
call fcn.0041f730
add esp, 0x30
lea eax, [edi + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
lea eax, [ebp - 0x7d4]
push eax
lea eax, [ebp - 0x3ec]
push eax
call fcn.0041f730
lea eax, [ebp - 0x7d4]
push eax
lea eax, [ebp - 0x3ec]
push eax
call fcn.0041f730
lea eax, [ebp - 0x7d4]
push eax
lea eax, [ebp - 0x3ec]
push eax
mov byte [edi + ebx], 0
call fcn.0041f730
lea eax, [ebp - 0x7d4]
push eax
lea eax, [ebp - 0x3ec]
push eax
call fcn.0041f730
xor edi, edi
add esp, 0x20
cmp dword [ebp - 0x7d8], edi
jbe 0x4042eb
mov eax, dword [ebp + 8]
sub eax, ebx
mov dword [ebp - 0x7e0], eax
lea eax, [ebp - 0x7d4]
push eax
lea eax, [ebp - 0x3ec]
push eax
call fcn.0041f730
lea eax, [ebp - 0x7d4]
push eax
lea eax, [ebp - 0x3ec]
push eax
call fcn.0041f730
add esp, 0x10
push dword [ebp - 0x7dc]
lea esi, [edi + ebx]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [ebp - 0x7dc]
mov ecx, dword [ebp - 0x7e0]
mov al, byte [edx + eax]
xor al, byte [ecx + esi]
mov byte [esi], al
lea eax, [ebp - 0x7d4]
push eax
lea eax, [ebp - 0x3ec]
push eax
call fcn.0041f730
lea eax, [ebp - 0x7d4]
push eax
lea eax, [ebp - 0x3ec]
push eax
call fcn.0041f730
lea eax, [ebp - 0x7d4]
push eax
lea eax, [ebp - 0x3ec]
push eax
call fcn.0041f730
add esp, 0x18
inc edi
cmp edi, dword [ebp - 0x7d8]
jb 0x404249
mov esi, 0x3e8
lea eax, [ebp - 0x7d4]
push eax
lea eax, [ebp - 0x3ec]
push eax
call fcn.0041f730
lea eax, [ebp - 0x7d4]
push eax
lea eax, [ebp - 0x3ec]
push eax
call fcn.0041f730
push esi
lea eax, [ebp - 0x3ec]
push 0
push eax
call fcn.0041f6b0
push esi
lea eax, [ebp - 0x7d4]
push 0
push eax
call fcn.0041f6b0
mov ecx, dword [ebp - 4]
add esp, 0x28
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0041f69e
leave
ret 8
Function at 0x404345
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
push 0x40
push 0
push esi
call fcn.004048db
add esp, 0x10
test eax, eax
jne 0x404365
xor eax, eax
inc eax
jmp 0x4043f8
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x4043f5
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4043f5
push dword [ebp + 8]
lea edi, [esi + 0x40]
push 0xf8
push eax
push edi
call fcn.004048db
add esp, 0x10
test eax, eax
je 0x40435d
cmp dword [edi], 0x4550
jne 0x4043f5
mov eax, 0x10b
cmp word [esi + 0x58], ax
jne 0x4043f5
movzx eax, word [esi + 0x46]
test ax, ax
je 0x4043f5
mov edi, eax
imul edi, edi, 0x28
push edi
mov dword [esi + 0x140], edi
call fcn.0041fc5b
pop ecx
mov dword [esi + 0x138], eax
test eax, eax
jne 0x4043cf
push 3
jmp 0x4043f7
movzx ecx, word [esi + 0x54]
push dword [ebp + 8]
mov edx, dword [esi + 0x3c]
lea ecx, [ecx + edx + 0x18]
push edi
push ecx
push eax
mov dword [esi + 0x13c], ecx
call fcn.004048db
add esp, 0x10
neg eax
sbb eax, eax
inc eax
jmp 0x4043f8
push 2
pop eax
pop edi
pop ebp
ret

Function at 0x4069eb
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x4069f6
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x406aaa
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43ec50]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43ec50]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43ec50]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43ec50]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43ec50]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43ec50]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43ec50]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43ec50]
add ecx, 8
sub edi, 8
dec esi
jne 0x406a0d
pop ebx
test edi, edi
je 0x406ac3
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x43ec50]
inc ecx
dec edi
jne 0x406aae
pop esi
not eax
pop edi
ret

Function at 0x406ac8
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x43ec50]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x43ec50]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x415905
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x433362
call fcn.00423679
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
mov edi, ecx
cmp ebx, esi
jne 0x415927
xor eax, eax
call fcn.004236c3
ret 4
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x41594d
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x41594d
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x41591f
cmp dword [edi + 0x54], 0
jne 0x415957
mov eax, esi
jmp 0x41591f
mov eax, edi
call fcn.004162a1
cmp dword [edi + 0x44], 0
jne 0x41597a
push dword [edi + 0x54]
movsx eax, bl
push eax
call fcn.00422028
pop ecx
cmp eax, esi
pop ecx
mov eax, ebx
jne 0x41591f
jmp 0x415953
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.00415f9a
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x415a28
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
mov ebx, dword [ebp - 0x1c]
add ebx, eax
push ebx
push edx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x2d]
push eax
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x14]
test eax, eax
js 0x415a50
cmp eax, 1
jg 0x415a30
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4159d7
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, eax
je 0x4159fd
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4159ea
lea eax, [ebp - 0x2c]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.00422c4b
add esp, 0x10
cmp esi, eax
jne 0x415a50
lea eax, [ebp - 0x2d]
mov byte [edi + 0x49], 1
cmp dword [ebp - 0x38], eax
jne 0x415a4b
test esi, esi
jne 0x415989
cmp dword [ebp - 0x1c], 0x20
jae 0x415a50
push esi
push 8
pop ebx
lea esi, [ebp - 0x2c]
call fcn.0040d0bd
jmp 0x415989
mov edx, dword [ebp - 0x2c]
jmp 0x41599b
cmp eax, 3
jne 0x415a50
movsx eax, byte [ebp - 0x2d]
push dword [edi + 0x54]
push eax
call fcn.00422028
or esi, 0xffffffff
pop ecx
pop ecx
cmp eax, esi
je 0x415a53
mov esi, dword [ebp + 8]
jmp 0x415a53
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00404a66
jmp 0x415953
Function at 0x4161b8
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x433335
call fcn.00423679
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x416299
cmp byte [edi + 0x49], bl
je 0x416299
mov eax, dword [edi]
push 0xffffffffffffffff
mov ecx, edi
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4161ed
xor al, al
jmp 0x41629b
lea esi, [ebp - 0x2c]
call fcn.00415f9a
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x41623b
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x18]
sub eax, 0
je 0x416240
dec eax
je 0x416244
dec eax
dec eax
je 0x416295
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00404a66
mov al, bl
jmp 0x41629b
mov edx, dword [ebp - 0x2c]
jmp 0x416206
mov byte [edi + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x416250
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, eax
je 0x416276
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x416263
lea eax, [ebp - 0x2c]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.00422c4b
add esp, 0x10
cmp esi, eax
jne 0x416229
cmp byte [edi + 0x49], 0
je 0x416295
test esi, esi
jne 0x4161f8
push esi
push 8
pop ebx
lea esi, [ebp - 0x2c]
call fcn.0040d0bd
jmp 0x4161f8
mov bl, 1
jmp 0x41622b
mov al, 1
call fcn.004236c3
ret

Function at 0x417704
Capabilities:
Reference http user-agent string

Disassembly:
push 0x28
mov eax, 0x4335e4
call fcn.00423679
xor esi, esi
mov dword [ebp - 4], esi
mov edi, ecx
push 0x43d12c
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], esi
call fcn.004049cf
mov dword [ebp - 4], esi
xor ebx, ebx
mov esi, str.Mozilla_5.0__Windows_NT_10.0_
inc ebx
push esi
mov dword [ebp - 0x30], ebx
call fcn.004201e0
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00404aaa
call fcn.0041714d
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040cee5
pop ecx
pop ecx
mov esi, eax
mov dword [ebp - 4], ebx
call fcn.00404a22
push 0
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00404a66
lea eax, [ebp - 0x2c]
push str._rv:107.0__Gecko___20100101_Firefox___107.0
push eax
call fcn.0040cee5
pop ecx
pop ecx
mov esi, eax
mov dword [ebp - 4], 2
call fcn.00404a22
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00404a66
mov eax, edi
call fcn.004236c3
ret
Function at 0x417f60
Capabilities:
Enumerate files on windows

Disassembly:
push 0x298
mov eax, 0x433a84
call fcn.00423679
and dword [ebp - 0x2a0], 0
mov dword [ebp - 0x2a4], ebx
lea eax, [ebp - 0x48]
xor esi, esi
push eax
inc esi
lea eax, [ebp + 8]
mov dword [ebp - 4], esi
call fcn.00417daa
cmp dword [eax + 0x14], 8
jb 0x417f96
mov eax, dword [eax]
lea ecx, [ebp - 0x298]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push esi
xor edi, edi
lea esi, [ebp - 0x48]
mov dword [ebp - 0x29c], eax
call fcn.0040ce40
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
lea eax, [ebp - 0x26c]
inc edi
push eax
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x2a0], edi
call fcn.004177a0
mov ecx, esi
mov esi, ebx
mov byte [ebp - 4], 2
call fcn.00418e47
push edi
jmp 0x418003
lea eax, [ebp - 0x26c]
push eax
lea esi, [ebp - 0x2c]
call fcn.004177a0
mov ecx, esi
mov esi, ebx
mov byte [ebp - 4], 3
call fcn.00418e47
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040ce40
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0x29c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x417fe5
push eax
push 1
lea ecx, [ebp + 8]
call fcn.00404a66
mov eax, ebx
call fcn.004236c3
ret 0x1c

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov ebx, eax
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x41c670
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push edi
push eax
mov dword [esi + 0x6af6c], edi
call fcn.0041f6b0
mov eax, ebx
movzx ecx, word [eax*8 + 0x43d2d2]
mov dword [esi + 0x6af98], ecx
movzx ecx, word [eax*8 + 0x43d2d0]
mov dword [esi + 0x6af9c], ecx
movzx ecx, word [eax*8 + 0x43d2d4]
mov dword [esi + 0x6afa0], ecx
movzx eax, word [eax*8 + 0x43d2d6]
add esp, 0xc
mov dword [esi + 0x6af94], eax
cmp ebx, 2
jg 0x41c6d3
mov eax, dword [ebp + 8]
or word [eax], 4
jmp 0x41c6df
cmp ebx, 8
jl 0x41c6df
mov eax, dword [ebp + 8]
or word [eax], 2
push 0x10000
lea ebx, [esi + 0x1af70]
push ebx
push esi
mov dword [esi + 0x6af84], edi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
cmp eax, edi
je 0x41c744
cmp eax, 0xffffffff
je 0x41c744
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x41c71f
call fcn.0041c89a
mov dword [esi + 0x6af7c], edi
xor eax, eax
movzx ecx, byte [ebx + eax]
shl edi, 5
xor edi, ecx
and edi, 0x7fff
inc eax
mov dword [esi + 0x6af7c], edi
cmp eax, 2
jb 0x41c727
jmp 0x41c754
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x41c9ab
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x41cba9
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x41ca25
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x41ca68
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x41ca68
mov ecx, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], ecx
jbe 0x41ca4f
mov dword [esi + 0x6afa0], ecx
push dword [ebp - 4]
mov edx, esi
call fcn.0041c759
mov ebx, eax
mov eax, dword [esi + 0x6af90]
pop ecx
cmp ebx, eax
jbe 0x41ca68
mov ebx, eax
cmp ebx, 3
jb 0x41cb29
mov edx, dword [esi + 0x6af84]
sub edx, dword [esi + 0x6af88]
lea ecx, [ebx - 3]
mov eax, esi
call fcn.0041c134
sub dword [esi + 0x6af90], ebx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x41caf6
cmp eax, 3
jb 0x41caf6
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, edi
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, edi
dec ebx
mov dword [esi + edx*4 + 0x2af70], ecx
mov eax, dword [esi + 0x6af7c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x41caa4
jmp 0x41cb49
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, edi
mov dword [esi + 0x6af7c], edx
jmp 0x41cb4f
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
xor edx, edx
mov eax, esi
call fcn.0041c134
dec dword [esi + 0x6af90]
mov dword [ebp - 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp - 8], 0
je 0x41cb8a
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x41cb68
lea edx, [ecx + esi + 0x1af70]
jmp 0x41cb6a
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 0
sub eax, ecx
push edx
mov ecx, esi
call fcn.0041bf6b
mov eax, dword [esi + 0x6af84]
pop ecx
pop ecx
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x41cb9b
call fcn.0041c89a
cmp dword [esi + 0x6af90], 0
jne 0x41c9d5
pop edi
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x41cbbc
lea edx, [ecx + esi + 0x1af70]
jmp 0x41cbbe
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push edx
mov ecx, esi
call fcn.0041bf6b
pop ecx
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x41d766
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x41d771
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x41d825
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43d320]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43d320]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43d320]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43d320]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43d320]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43d320]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43d320]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43d320]
add ecx, 8
sub edi, 8
dec esi
jne 0x41d788
pop ebx
test edi, edi
je 0x41d83e
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x43d320]
inc ecx
dec edi
jne 0x41d829
pop esi
not eax
pop edi
ret

Function at 0x41d843
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x43d320]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x43d320]
pop esi
mov dword [ecx + 8], eax
ret