joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403c7d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
mov dword [edi + 0x74], eax
mov eax, dword [edi + 0x8c]
cmp ecx, eax
jbe 0x403c96
mov ecx, eax
push ebx
push esi
mov dword [edi + 0x78], ecx
test ecx, ecx
je 0x403e19
cmp dword [edi + 0x6c], 0
jne 0x403d25
mov eax, dword [edi + 0x88]
test eax, eax
je 0x403d25
mov ebx, 0x4000
cmp eax, ebx
jae 0x403cbe
mov ebx, eax
push dword [edi + 0x64]
mov eax, ebx
mov esi, edi
call fcn.0040368a
pop ecx
test eax, eax
je 0x403e20
sub dword [edi + 0x88], ebx
test byte [edi + 0x3c], 1
mov eax, dword [edi + 0x64]
mov dword [edi + 0x68], eax
mov dword [edi + 0x6c], ebx
je 0x403d25
xor esi, esi
test ebx, ebx
jbe 0x403d25
mov eax, dword [edi + 0x98]
mov ecx, dword [edi + 0x64]
lea edx, [esi + ecx]
and eax, 0xfffd
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor byte [edx], cl
mov eax, dword [edi + 0x64]
mov dl, byte [esi + eax]
lea ecx, [edi + 0x90]
call fcn.0040333e
inc esi
cmp esi, ebx
jb 0x403cee
mov eax, dword [edi + 0x9c]
mov ecx, dword [edi + 0x6c]
cmp eax, ecx
jbe 0x403d34
mov eax, ecx
test eax, eax
je 0x403d63
mov edx, dword [edi + 0x68]
lea esi, [edx + eax]
mov dl, byte [esi - 1]
sub dword [edi + 0x8c], eax
sub ecx, eax
sub dword [edi + 0x9c], eax
mov dword [edi + 0x6c], ecx
mov dword [edi + 0x68], esi
jne 0x403d63
cmp dl, byte [edi + 0xa0]
jne 0x403e29
cmp word [edi + 0x3e], 0
jne 0x403dc0
mov eax, dword [edi + 0x78]
mov esi, dword [edi + 0x6c]
cmp eax, esi
jae 0x403d76
mov esi, eax
push esi
push dword [edi + 0x68]
push dword [edi + 0x74]
call fcn.0055bd80
mov ecx, dword [edi + 0x74]
lea ebx, [edi + 0x84]
mov eax, dword [ebx]
add esp, 0xc
mov edx, esi
call fcn.0040326b
sub dword [edi + 0x8c], esi
mov ecx, dword [edi + 0x8c]
sub dword [edi + 0x6c], esi
sub dword [edi + 0x78], esi
add dword [edi + 0x68], esi
add dword [edi + 0x7c], esi
add dword [ebp - 4], esi
mov dword [ebx], eax
mov eax, dword [edi + 0x74]
add eax, esi
mov dword [edi + 0x74], eax
test ecx, ecx
jmp 0x403e0d
mov eax, dword [edi + 0x74]
mov ebx, dword [edi + 0x7c]
lea esi, [edi + 0x68]
mov dword [ebp - 8], eax
call fcn.00403384
mov dword [ebp - 0xc], eax
test eax, eax
je 0x403ddd
cmp eax, 1
jne 0x403e32
mov esi, dword [edi + 0x7c]
mov ecx, dword [ebp - 8]
sub esi, ebx
lea ebx, [edi + 0x84]
mov eax, dword [ebx]
mov edx, esi
call fcn.0040326b
sub dword [edi + 0x8c], esi
add dword [ebp - 4], esi
cmp dword [ebp - 0xc], 1
mov dword [ebx], eax
mov eax, dword [edi + 0x8c]
je 0x403e19
test eax, eax
je 0x403e19
cmp dword [edi + 0x78], 0
jne 0x403ca3
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
mov dword [edi + 8], 7
jmp 0x403e39
mov dword [edi + 8], 0x13
jmp 0x403e39
mov dword [edi + 8], 0x12
xor eax, eax
jmp 0x403e1c
Function at 0x4042f9
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], 1
mov dword [ebp - 4], eax
cmp byte [eax], bl
je 0x404323
cmp byte [eax + 1], 0x3a
jne 0x404323
inc eax
inc eax
cmp byte [eax], 0x5c
jne 0x40436c
inc eax
jmp 0x40436c
call fcn.004042e8
mov esi, eax
cmp esi, ebx
jne 0x404342
cmp dword [ebp + 8], ebx
jne 0x404344
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret
mov byte [esi], bl
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x404362
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404372
cmp esi, ebx
je 0x40433b
mov byte [esi], 0x5c
lea eax, [esi + 1]
cmp byte [eax], bl
jne 0x40432b
jmp 0x40433b
cmp esi, ebx
je 0x404379
mov byte [esi], 0x5c
xor eax, eax
jmp 0x40433e

Function at 0x404392
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], 1
mov dword [ebp - 4], eax
cmp word [eax], di
je 0x4043bf
cmp word [eax + 2], 0x3a
jne 0x4043bf
add eax, 4
cmp word [eax], 0x5c
jne 0x404410
inc eax
inc eax
jmp 0x404410
call fcn.0040437d
mov esi, eax
cmp esi, edi
jne 0x4043e0
cmp dword [ebp + 8], edi
jne 0x4043e5
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x404403
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404417
cmp esi, edi
je 0x4043d9
push 0x5c
pop eax
mov word [esi], ax
lea eax, [esi + 2]
cmp word [eax], di
jne 0x4043c9
jmp 0x4043d9
cmp esi, edi
je 0x404421
push 0x5c
pop eax
mov word [esi], ax
xor eax, eax
jmp 0x4043dc
Function at 0x404425
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
push 1
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4045d4
cmp dword [edi + 0x24], 0xffffffff
je 0x4045d4
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [edi + 8], esi
test al, 1
je 0x4044a5
cmp word [edi + 0x58], si
jne 0x404478
push ebx
mov eax, edi
call fcn.00403abd
pop ecx
cmp dword [edi + 8], esi
jne 0x4045c8
xor eax, eax
inc eax
mov word [edi + 0x58], ax
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebp + 8]
call fcn.00403c7d
mov dword [ebx + 0x20], eax
cmp dword [edi + 8], esi
jne 0x40449a
cmp dword [edi + 0x8c], esi
je 0x40449a
push 5
jmp 0x4045d6
xor eax, eax
mov word [edi + 0x58], ax
jmp 0x4045c8
test byte [ebx + 4], 0x10
je 0x4044d0
test al, 2
je 0x4044c9
test eax, eax
mov eax, dword [ebp + 8]
push 1
jns 0x4044bf
call fcn.00404392
jmp 0x4044c4
call fcn.004042f9
pop ecx
cmp eax, esi
je 0x404526
xor eax, eax
jmp 0x4045d7
cmp eax, 4
jne 0x4044da
mov eax, dword [ebp + 8]
jmp 0x40451e
mov dword [ebp - 4], eax
and dword [ebp - 4], 0x80000000
mov eax, dword [ebp + 8]
push esi
je 0x4044f1
call fcn.00404392
jmp 0x4044f6
call fcn.004042f9
pop ecx
cmp eax, esi
je 0x404526
push esi
push dword [ebx + 4]
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
cmp dword [ebp - 4], esi
je 0x404518
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x40451e
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x404532
mov dword [edi + 8], 1
jmp 0x4045c8
push ebx
mov eax, edi
call fcn.00403abd
pop ecx
cmp dword [edi + 8], esi
jne 0x4045b9
cmp dword [edi + 0x34], esi
jne 0x40459a
push 0x4000
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [edi + 0x34], eax
cmp eax, esi
jne 0x40459a
mov dword [edi + 8], 2
jmp 0x40459a
mov eax, dword [edi + 0x34]
mov ecx, 0x4000
call fcn.00403c7d
mov dword [ebp - 8], eax
cmp eax, esi
je 0x40459f
push esi
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [edi + 0x34]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404593
mov eax, dword [ebp - 8]
cmp dword [ebp - 0xc], eax
je 0x40459a
mov dword [edi + 8], 3
cmp dword [edi + 8], esi
je 0x404561
cmp dword [edi + 8], esi
jne 0x4045b9
lea eax, [ebx + 0x18]
push eax
lea eax, [ebx + 8]
push eax
add ebx, 0x10
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0xc], 4
je 0x4045c8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, edi
call fcn.00403a8e
mov eax, dword [edi + 8]
jmp 0x4045d7
push 9
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404d95
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
mov esi, eax
lea eax, [ebp - 0x48]
push eax
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x404db5
inc eax
jmp 0x404f33
mov ecx, dword [ebp - 0x48]
xor eax, eax
push ebx
xor ebx, ebx
mov edx, ecx
inc eax
and edx, eax
mov dword [ebp - 8], ebx
je 0x404dca
mov dword [ebp - 8], eax
test cl, 2
je 0x404dd3
or dword [ebp - 8], 2
test cl, 4
je 0x404ddc
or dword [ebp - 8], 4
mov eax, ecx
and eax, 0x10
je 0x404de7
or dword [ebp - 8], 0x10
test cl, 0x20
je 0x404df0
or dword [ebp - 8], 0x20
cmp eax, ebx
je 0x404dfd
or dword [ebp - 8], 0x40000000
jmp 0x404e04
or dword [ebp - 8], 0x80000000
or dword [ebp - 8], 0x1000000
cmp edx, ebx
jne 0x404e16
or dword [ebp - 8], 0x800000
push ebx
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x3c], eax
cmp eax, 0x28
jbe 0x404ed8
cmp dword [esi + 0x10], ebx
jne 0x404ed8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push ebx
push dword [esi + 0x48]
call edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0xc]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [esi + 0x48]
call ebx
push 0
push 0
push 0x24
push dword [esi + 0x48]
call edi
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x48]
call ebx
mov eax, 0x54ad
cmp word [ebp - 4], ax
jne 0x404ecd
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x34]
cmp dword [esi + 0x3c], ecx
jbe 0x404ecd
push 0
push 0
push eax
push dword [esi + 0x48]
call edi
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x48]
call ebx
mov eax, dword [ebp - 0x14]
cmp eax, 0x5a4d
je 0x404ec6
cmp eax, 0x454e
je 0x404ec6
cmp eax, 0x454c
je 0x404ec6
cmp eax, 0x4550
jne 0x404ecd
or dword [ebp - 8], 0x400000
xor eax, eax
push eax
push eax
push eax
push dword [esi + 0x48]
call edi
pop edi
push dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
push dword [ebp - 0x3c]
mov dword [esi + 0x10], eax
call fcn.00404d2f
push dword [ebp - 0x30]
mov dword [esi], eax
push dword [ebp - 0x34]
call fcn.00404d2f
push dword [ebp - 0x40]
mov dword [esi + 4], eax
push dword [ebp - 0x44]
call fcn.00404d2f
mov dword [esi + 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.00404cd6
movzx eax, word [ebp - 4]
movzx ecx, word [ebp - 8]
shl eax, 0x10
or eax, ecx
add esp, 0x28
mov dword [esi + 0xc], eax
xor eax, eax
pop ebx
pop esi
leave
ret
Function at 0x4060ec
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
and dword [edi + 0x6af50], 0
push 0x1fffc
mov ebx, eax
lea eax, [edi + 0x4af54]
push 0
mov esi, 0x10000
push eax
mov byte [edi + 0x6af81], 1
mov dword [edi + 0x6af54], esi
call fcn.00559c50
mov eax, ebx
shl eax, 3
movzx ecx, word [eax + 0x5d29b2]
mov dword [edi + 0x6af74], ecx
movzx ecx, word [eax + 0x5d29b0]
mov dword [edi + 0x6af78], ecx
movzx ecx, word [eax + 0x5d29b4]
mov dword [edi + 0x6af7c], ecx
movzx eax, word [eax + 0x5d29b6]
add esp, 0xc
mov dword [edi + 0x6af70], eax
cmp ebx, 2
ja 0x40616a
mov eax, dword [esp + 0x10]
or word [eax], 4
jmp 0x406177
cmp ebx, 8
jb 0x406177
mov eax, dword [esp + 0x10]
or word [eax], 2
push esi
mov esi, dword [edi]
lea ebx, [edi + 0x1af54]
push ebx
call fcn.00406d47
xor esi, esi
pop ecx
pop ecx
mov dword [edi + 0x6af6c], eax
cmp eax, esi
je 0x4061dc
mov byte [edi + 0x6af80], 0
mov dword [edi + 0x6af58], esi
mov dword [edi + 0x6af64], esi
cmp eax, 0x106
jae 0x4061b3
call fcn.00406318
mov dword [edi + 0x6af5c], esi
xor eax, eax
movzx ecx, byte [ebx + eax]
mov edx, dword [edi + 0x6af5c]
shl edx, 5
xor ecx, edx
and ecx, 0x7fff
inc eax
mov dword [edi + 0x6af5c], ecx
cmp eax, 2
jb 0x4061bb
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x4069e9
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x406a9b
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 + 0x5d2a00]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d2a00]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d2a00]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d2a00]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d2a00]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d2a00]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d2a00]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5d2a00]
inc ecx
sub edi, 8
dec esi
jne 0x406a00
pop ebx
test edi, edi
je 0x406ab4
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x5d2a00]
inc ecx
dec edi
jne 0x406a9f
pop esi
not eax
pop edi
ret

Function at 0x406ab9
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 + 0x5d2a00]
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 + 0x5d2a00]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x406b3a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [esi + 0x14], 0
jne 0x406bd7
mov ecx, eax
shr ecx, 8
test byte [esi], 0x10
mov byte [ebp - 0xc], al
mov byte [ebp - 0xb], cl
je 0x406b78
push edi
push eax
lea edi, [esi + 0x24]
push edi
call fcn.00406b17
push dword [ebp - 0xb]
mov byte [ebp - 0xc], al
push edi
call fcn.00406b17
add esp, 0x10
mov byte [ebp - 0xb], al
pop edi
test byte [esi], 1
je 0x406ba2
mov eax, dword [esi + 0x1c]
lea ecx, [eax + 2]
cmp ecx, dword [esi + 0x20]
jb 0x406b91
mov dword [esi + 0x14], 0xb
leave
ret
mov ecx, dword [esi + 4]
mov dx, word [ebp - 0xc]
mov word [eax + ecx], dx
add dword [esi + 0x1c], 2
jmp 0x406bc8
push 0
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 0xc]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406bc1
cmp dword [ebp - 4], 2
je 0x406bc8
mov dword [esi + 0x14], 3
test dword [esi], 0x40000000
je 0x406bd7
mov dword [esi + 0x14], 0x14
leave
ret

Function at 0x406bd9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jne 0x406cc2
test byte [esi], 0x10
je 0x406c62
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x406c04
cmp dword [esi + 0x34], edi
jae 0x406c04
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0x30], ebx
cmp dword [esi + 0x30], ebx
jne 0x406c2a
lea eax, [edi + edi]
push eax
push ebx
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 0x30], eax
cmp eax, ebx
jne 0x406c2a
mov dword [esi + 0x14], 2
jmp 0x406cb3
push edi
push dword [ebp + 8]
push dword [esi + 0x30]
call fcn.0055bd80
add esp, 0xc
test edi, edi
jbe 0x406c5b
mov eax, dword [esi + 0x30]
movzx eax, byte [eax + ebx]
push eax
lea eax, [esi + 0x24]
push eax
call fcn.00406b17
pop ecx
pop ecx
mov ecx, dword [esi + 0x30]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jb 0x406c3d
mov ecx, dword [esi + 0x30]
xor ebx, ebx
jmp 0x406c65
mov ecx, dword [ebp + 8]
test byte [esi], 1
je 0x406c93
mov eax, dword [esi + 0x1c]
lea edx, [eax + edi]
cmp edx, dword [esi + 0x20]
jb 0x406c7e
mov dword [esi + 0x14], 0xb
jmp 0x406cb3
push edi
push ecx
mov ecx, dword [esi + 4]
add ecx, eax
push ecx
call fcn.0055bd80
add esp, 0xc
add dword [esi + 0x1c], edi
jmp 0x406cb3
push ebx
lea eax, [ebp - 4]
push eax
push edi
push ecx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406cac
cmp dword [ebp - 4], edi
je 0x406cb3
mov dword [esi + 0x14], 3
test dword [esi], 0x40000000
je 0x406cc2
mov dword [esi + 0x14], 0x14
pop ebx
leave
ret
Function at 0x406d47
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
push edi
test eax, 0x40000000
je 0x406d5e
mov dword [esi + 0x14], 0x14
jmp 0x406db3
test al, al
jns 0x406d93
mov eax, dword [esi + 0x50]
mov edi, dword [esi + 0x4c]
cmp eax, edi
jae 0x406db3
sub edi, eax
mov dword [ebp - 4], edi
cmp edi, dword [ebp + 0xc]
jbe 0x406d7c
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
mov ecx, dword [esi + 0x48]
push edi
add ecx, eax
push ecx
push dword [ebp + 8]
call fcn.0055bd80
add esp, 0xc
add dword [esi + 0x50], edi
jmp 0x406dba
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406db7
mov dword [esi + 0x14], 7
xor eax, eax
jmp 0x406dcf
mov edi, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x44]
add dword [esi + 0x40], edi
mov edx, edi
call fcn.004069de
mov dword [esi + 0x44], eax
mov eax, edi
pop edi
leave
ret

Function at 0x40764a
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [edi + ebx*2]
push 0x5d29a4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [ebp + 0x18]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x407722
lea eax, [edi + ebx*2 + 2]
mov dword [ebp - 4], eax
lea eax, [esi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
mov dword [ebp - 8], eax
pop eax
mov word [edi + ebx*2], ax
lea eax, [esi + 0x2c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
test byte [esi], 0x10
je 0x4076e5
cmp word [esi + 0x2c], 0x2e
jne 0x4076c1
movzx eax, word [esi + 0x2e]
test ax, ax
je 0x407707
cmp ax, 0x2e
je 0x407707
mov eax, dword [ebp - 8]
push esi
push dword [ebp + 0x14]
lea eax, [eax + ebx + 1]
push eax
push edi
push dword [ebp + 8]
call fcn.0040764a
add esp, 0x14
mov dword [esi + 0x1c], eax
test eax, eax
je 0x407707
mov eax, dword [esi + 0x1c]
jmp 0x407724
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
push 0x12
lea eax, [edi + eax*2]
push 0
push eax
mov ecx, edi
call fcn.00407097
add esp, 0xc
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x4076e0
mov ebx, dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407685
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407729
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [edi + ebx]
push 0x5d2e28
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [ebp + 0x18]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x4077f8
lea eax, [edi + ebx + 1]
mov dword [ebp - 4], eax
lea eax, [esi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 8], eax
lea eax, [esi + 0x2c]
push eax
push dword [ebp - 4]
mov byte [edi + ebx], 0x5c
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [esi], 0x10
je 0x4077bc
cmp byte [esi + 0x2c], 0x2e
jne 0x407798
mov al, byte [esi + 0x2d]
test al, al
je 0x4077dd
cmp al, 0x2e
je 0x4077dd
mov eax, dword [ebp - 8]
push esi
push dword [ebp + 0x14]
lea eax, [eax + ebx + 1]
push eax
push edi
push dword [ebp + 8]
call fcn.00407729
add esp, 0x14
mov dword [esi + 0x1c], eax
test eax, eax
je 0x4077dd
mov eax, dword [esi + 0x1c]
jmp 0x4077fa
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
push 2
add eax, edi
push 0
push eax
mov ecx, edi
call fcn.00407097
add esp, 0xc
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x4077b7
mov ebx, dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407764
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ddbf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00420fc3
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40ddf8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0040da10
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x40de56
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x40de7a
cmp dword [edi + 0x54], 0
jne 0x40de7a
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00420fc3
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
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040de17
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x417c8b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x417cd2
call fcn.00420fc3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x417cd2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x417cee
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00417805
mov esi, eax
test edi, edi
je 0x417cec
test ebx, ebx
je 0x417cec
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41881b
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x588372
call fcn.0055672a
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x418840
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x418886
lea ecx, [ebp - 0x10]
call fcn.004085b2
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00409fba
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010d6
mov eax, esi
call fcn.00556802
ret 8

Function at 0x426e08
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x5896c2
call fcn.0055672a
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004018c0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x426e6a
call fcn.004203ef
cmp eax, 1
jne 0x426e6a
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.004081c2
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004099f5
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010d6
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010d6
mov eax, esi
call fcn.00556802
ret 0x10