joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c5650
Capabilities:
Parse credit card information

Disassembly:
mov ecx, dword [0xf33f68]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5c57c1
movzx eax, byte [esp + 4]
lea ecx, [eax - 0x61]
cmp cl, 0x19
jbe 0x5c5681
lea ecx, [eax - 0x41]
cmp cl, 0x19
jbe 0x5c5681
lea ecx, [eax - 0x30]
cmp cl, 9
ja 0x5c5687
mov byte [esp + 0xc], 0
ret
mov ecx, dword [esp + 8]
cmp ecx, 3
je 0x5c5695
cmp ecx, 4
jne 0x5c56c6
cmp al, 0x2c
ja 0x5c56ae
lea edx, [eax - 0x21]
cmp dl, 1
jbe 0x5c56c0
cmp al, 0x24
je 0x5c56c0
cmp al, 0x26
jae 0x5c56c0
jmp 0x5c56c6
lea edx, [eax - 0x3a]
cmp dl, 4
jbe 0x5c56c0
cmp al, 0x5b
je 0x5c56c0
cmp al, 0x5d
jne 0x5c56c6
mov byte [esp + 0xc], 0
ret
cmp al, 0x2f
ja 0x5c56fd
cmp al, 0x26
ja 0x5c56df
cmp al, 0x24
je 0x5c571c
cmp al, 0x26
je 0x5c571c
jmp 0x5c57a3
lea edx, [eax - 0x2b]
cmp dl, 1
jbe 0x5c571c
lea edx, [eax - 0x2d]
cmp dl, 1
jbe 0x5c579d
cmp al, 0x2f
je 0x5c571c
jmp 0x5c57a3
cmp al, 0x3d
ja 0x5c5714
lea edx, [eax - 0x3a]
cmp dl, 1
jbe 0x5c571c
cmp al, 0x3d
je 0x5c571c
jmp 0x5c57a3
lea edx, [eax - 0x3f]
cmp dl, 1
ja 0x5c5793
cmp ecx, 2
jg 0x5c5757
cmp ecx, 1
je 0x5c574c
cmp ecx, 2
jne 0x5c57a3
cmp al, 0x2f
je 0x5c573a
cmp al, 0x3b
je 0x5c573a
cmp al, 0x2c
jne 0x5c5741
mov eax, 1
jmp 0x5c5747
cmp al, 0x3f
sete al
mov byte [esp + 0xc], al
ret
cmp al, 0x3f
sete al
mov byte [esp + 0xc], al
ret
cmp ecx, 5
jne 0x5c577d
cmp al, 0x40
je 0x5c576b
cmp al, 0x2f
je 0x5c576b
cmp al, 0x3f
jne 0x5c5772
mov eax, 1
jmp 0x5c5778
cmp al, 0x3a
sete al
mov byte [esp + 0xc], al
ret
cmp ecx, 6
je 0x5c578d
cmp ecx, 7
jne 0x5c57a3
mov byte [esp + 0xc], 0
ret
mov byte [esp + 0xc], 1
ret
cmp al, 0x5f
je 0x5c579d
cmp al, 0x7e
jne 0x5c57a3
mov byte [esp + 0xc], 0
ret
cmp ecx, 7
jne 0x5c57bb
cmp al, 0x21
je 0x5c57b5
add eax, 0xffffffd8
cmp al, 2
ja 0x5c57bb
mov byte [esp + 0xc], 0
ret
mov byte [esp + 0xc], 1
ret
call fcn.0046b3d0
jmp fcn.005c5650
Function at 0x5c9530
Capabilities:
Hash data with md5

Disassembly:
mov ecx, dword [0xf33f68]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 8]
cmp eax, dword [ecx + 8]
jbe 0x5c9621
sub esp, 0x88
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
lea edi, [esp + 0x2c]
xor eax, eax
call fcn.0046ca69
nop
mov dword [esp + 0x2c], 0x67452301
mov dword [esp + 0x30], 0xefcdab89
mov dword [esp + 0x34], 0x98badcfe
mov dword [esp + 0x38], 0x10325476
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [esp + 0x2c]
mov dword [esp], ecx
mov edx, dword [esp + 0x8c]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x90]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0xc], edx
call fcn.005c9070
lea ecx, [esp + 0x2c]
mov dword [esp], ecx
call fcn.005c9350
lea edi, [esp + 0x1c]
lea esi, [esp + 4]
call fcn.0046cf68
lea edi, [esp + 0x98]
lea esi, [esp + 0x1c]
call fcn.0046cf68
add esp, 0x88
ret
call fcn.0046b3d0
jmp fcn.005c9530
Function at 0x5cf350
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [0xf33f68]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5cf49c
sub esp, 0x28
lea eax, [esp + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], eax
mov byte [esp + 8], 0x30
call fcn.005897f0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x5cf3b8
lea eax, [0x783b80]
mov dword [esp], eax
call fcn.0040d540
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x27
lea ecx, [0x7dae1c]
mov dword [eax], ecx
lea ecx, [0xc7eec4]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
add esp, 0x28
ret
mov eax, dword [esp + 0x30]
test eax, eax
je 0x5cf488
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov byte [esp + 0x1b], 0
lea eax, [esp + 0x2c]
mov dword [esp], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 4], ecx
lea ecx, [esp + 0x1b]
mov dword [esp + 8], ecx
mov byte [esp + 0xc], 1
call fcn.00589e30
movzx eax, byte [esp + 0x10]
test al, al
je 0x5cf455
mov edx, dword [esp + 0x38]
mov eax, dword [edx]
movzx ecx, byte [esp + 0x1b]
xor ecx, 0xffffff80
movzx ecx, cl
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
call eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5cf3b8
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
add esp, 0x28
ret
lea eax, [0x783b80]
mov dword [esp], eax
call fcn.0040d540
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x26
lea ecx, [0x7d9b55]
mov dword [eax], ecx
lea ecx, [0xc7eec4]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
add esp, 0x28
ret
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
add esp, 0x28
ret
call fcn.0046b3d0
jmp fcn.005cf350
Function at 0x5da560
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0xf33f68]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5da79c
sub esp, 0x68
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
lea edi, [esp + 0x2c]
xor eax, eax
call fcn.0046ca75
lea ecx, [0x5da7b0]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x90]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x44], ecx
lea edx, [esp + 0x1c]
mov dword [esp + 0x48], edx
lea edx, [esp + 0x24]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x50], edx
lea ebx, [esp + 0x84]
mov dword [esp + 0x54], ebx
mov ebx, dword [edx + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.005cb320
mov ecx, dword [esp + 8]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x18], edx
xor eax, eax
jmp 0x5da689
mov dword [esp + 0x14], eax
lea ebx, [ecx + eax*8]
mov ebp, dword [ebx]
mov ebx, dword [ebx + 4]
mov esi, dword [esp + 0x2c]
mov dword [esp], 2
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
lea edx, [esp + 0x2c]
call esi
mov eax, dword [esp + 0x14]
inc eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
cmp eax, edx
jl 0x5da657
mov eax, dword [esp + 0x80]
mov eax, dword [eax + 8]
mov dword [esp], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
call fcn.005cb320
mov eax, dword [esp + 8]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x18], ecx
xor edx, edx
jmp 0x5da6ef
mov dword [esp + 0x14], edx
lea ecx, [eax + edx*8]
mov ebx, dword [ecx]
mov ecx, dword [ecx + 4]
mov ebp, dword [esp + 0x2c]
mov dword [esp], 1
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
lea edx, [esp + 0x2c]
call ebp
mov eax, dword [esp + 0x14]
lea edx, [eax + 1]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
cmp edx, ecx
jl 0x5da6bb
mov eax, dword [esp + 0x88]
test eax, eax
je 0x5da714
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov eax, dword [esp + 0x88]
test eax, eax
jne 0x5da798
mov eax, dword [esp + 0x90]
test eax, eax
jne 0x5da798
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x64], eax
lea eax, [0x79ab00]
mov dword [esp], eax
lea eax, [esp + 0x58]
mov dword [esp + 4], eax
call fcn.0040aba0
mov eax, dword [esp + 8]
lea ecx, [0xc7f368]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], eax
add esp, 0x68
ret
call fcn.0046b3d0
jmp fcn.005da560
Function at 0x620520
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0xf33f68]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x6206fc
sub esp, 0x24
mov eax, dword [esp + 0x28]
test byte [eax], al
mov ecx, dword [0xf34078]
test ecx, ecx
jne 0x62054d
mov ecx, dword [esp + 0x38]
jmp 0x620564
mov ecx, dword [eax + 0x10]
call fcn.0046c7f0
mov dword [edi], ecx
mov ecx, dword [esp + 0x38]
mov dword [edi + 4], ecx
mov edx, dword [eax + 0x2c]
mov dword [edi + 8], edx
mov dword [eax + 0x10], 0
mov dword [eax + 0x2c], ecx
lea edx, [0x771b00]
mov dword [esp], edx
call fcn.0040d540
mov eax, dword [esp + 4]
mov dword [eax + 4], 1
lea ecx, [0xc7caac]
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [ecx + 0x74], 1
mov dword [ecx + 0x78], 1
mov edx, dword [0xf34078]
test edx, edx
jne 0x6205b5
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x3c]
jmp 0x6205dc
call fcn.0046c820
mov dword [edi], eax
mov edx, dword [ecx + 0x70]
mov dword [edi + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [edi + 8], edx
mov ebx, dword [ecx + 0x20]
mov dword [edi + 0xc], ebx
mov ebx, dword [esp + 0x3c]
mov dword [edi + 0x10], ebx
mov ebp, dword [ecx + 0x7c]
mov dword [edi + 0x14], ebp
mov dword [ecx + 0x70], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 0x24], eax
mov ebp, dword [esp + 0x34]
mov dword [ecx + 0x28], ebp
mov dword [ecx + 0x20], edx
mov dword [ecx + 0x7c], ebx
xor ebx, ebx
jmp 0x6205f8
inc ebx
mov dword [esp + 0x1c], ebx
cmp eax, ebx
jle 0x620653
mov ebp, dword [edx + ebx*4]
test ebp, ebp
je 0x6205f7
lea eax, [0x779e60]
mov dword [esp], eax
mov dword [esp + 4], ebp
lea ecx, [0x7bd102]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 5
call fcn.004116d0
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
jne 0x620647
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x1c]
jmp 0x6205f7
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x20]
mov dword [esp + 0x20], edx
mov ebp, dword [ecx + 0x24]
mov dword [esp + 0x18], ebp
xor esi, esi
jmp 0x620666
inc esi
cmp esi, ebp
jge 0x6206d5
mov edi, dword [edx + esi*4]
test edi, edi
je 0x620665
mov dword [esp + 0x14], esi
lea eax, [0x779e60]
mov dword [esp], eax
mov dword [esp + 4], edi
lea ecx, [0x7be241]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 8
call fcn.004116d0
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
jne 0x6206bd
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
jmp 0x620665
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
jmp 0x6206d7
cmp eax, ebx
setle al
cmp esi, ebp
setge dl
mov ecx, dword [ecx + 0x14]
test ecx, 1
setne cl
mov ebx, dword [esp + 0x38]
mov byte [ebx + 0x4d], cl
mov byte [ebx + 0x4e], al
mov byte [ebx + 0x4f], dl
add esp, 0x24
ret
call fcn.0046b3d0
jmp fcn.00620520
Function at 0x40257d
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x408b6c], 0
jne 0x40258b
call fcn.004025c7
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 4]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x4025c4
push esi
lea edx, [ecx + 1]
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 + 0x408b68]
xor eax, esi
inc ecx
dec edx
jne 0x4025a5
pop edi
pop esi
not eax
ret

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

Disassembly:
push esi
push edi
xor esi, esi
mov ecx, 0x408b68
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4025d5
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x408f68
jl 0x4025d0
pop edi
pop esi
ret
Function at 0x403fd9
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
cmp dword [ebp + 0xc], 0
push esi
mov esi, dword [ebp + 8]
je 0x4040ba
push esi
call fcn.0040673f
test eax, eax
pop ecx
je 0x4040ba
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push str..
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4040b4
cmp byte [ebp - 0x114], 0x2e
jne 0x40404a
cmp byte [ebp - 0x113], 0x2e
je 0x40409b
cmp byte [ebp - 0x113], 0
je 0x40409b
lea eax, [ebp - 0x114]
push eax
lea eax, [edi + esi + 1]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [ebp - 0x140], 0x10
je 0x404072
push dword [ebp + 0xc]
push esi
call fcn.00403fd9
pop ecx
pop ecx
jmp 0x40409b
push esi
push str.Delete_file:
call fcn.0040613d
mov eax, dword [ebp - 0x140]
pop ecx
test al, 1
pop ecx
je 0x404094
xor eax, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x140]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40402f
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
and byte [edi + esi], 0
pop edi
pop ebx
push esi
push str.Remove_directory:
call fcn.0040613d
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
leave
ret

Function at 0x4040d1
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor ebx, ebx
push 0xf003f
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x404163
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x40414e
cmp dword [ebp + 0x10], ebx
jne 0x404140
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.004040d1
add esp, 0xc
test eax, eax
jne 0x40414e
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x404110
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x404163
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40419f
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x20]
push 0x1c
push eax
push dword [0x420028]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40428c
cmp dword [ebp - 4], 0x1c
jne 0x40428c
lea eax, [ebp - 0x20]
push eax
call fcn.00404168
test eax, eax
pop ecx
je 0x40428c
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, 0x40a0e8
mov esi, eax
push ebx
call section..text
test eax, eax
jl 0x40428c
cmp dword [0x416120], edi
je 0x40421f
push ebx
call fcn.0040147a
push ebx
call section..text
test eax, eax
jl 0x40428c
push 1
lea eax, [ebp - 0x124]
pop ebx
push eax
push 0x104
mov dword [0x416120], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x228]
push eax
push edi
lea eax, [ebp - 0x124]
push 0x4086cc
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push edi
push 0x4000100
push 2
push edi
push edi
lea eax, [ebp - 0x228]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x40868c], eax
jne 0x404294
push edi
push 0x41f820
push str.Error_writing_temp_file
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
push ebx
push edi
push edi
push dword [0x420028]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x20]
push dword [ebp - 0xc]
and ecx, ebx
mov dword [0x416118], eax
shl ecx, 2
sub eax, ecx
mov ecx, dword [ebp - 8]
push esi
push 0xffffffffffffffff
lea eax, [eax + ecx - 0x1c]
mov dword [0x416114], eax
call fcn.004045cc
add esp, 0xc
cmp eax, dword [ebp - 0xc]
je 0x4042ec
push edi
push 0x41f820
push str.Error_reading_installer_info_block
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40428c
mov eax, dword [0x416110]
mov dword [0x41f7f4], esi
test byte [ebp - 0x20], 2
mov dword [0x41611c], eax
je 0x40430d
inc dword [0x41f7fc]
lea eax, [esi + 0x78]
jmp 0x404324
lea eax, [esi + 0xec]
mov dword [0x41f80c], eax
mov ecx, dword [esi + 0xe0]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [0x41f7f0], eax
mov esi, dword [esi + 0x34]
lea ecx, [esi + esi*2]
lea eax, [eax + ecx*8]
mov dword [0x40a0e4], eax
xor eax, eax
jmp 0x40428f
Function at 0x40436a
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
jl 0x404397
mov ecx, dword [0x41611c]
push ebx
add eax, ecx
push ebx
push eax
mov dword [0x416110], eax
push dword [0x40868c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.0040448d
cmp eax, ebx
pop ecx
jl 0x404488
lea eax, [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x40868c]
call edi
test eax, eax
je 0x404485
cmp dword [ebp - 4], esi
jne 0x404485
push dword [ebp + 8]
add dword [0x416110], esi
call fcn.0040448d
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
jl 0x404488
cmp dword [ebp + 0x10], ebx
jne 0x404454
cmp dword [ebp + 8], ebx
jle 0x404480
mov esi, 0x412110
mov eax, 0x4000
cmp dword [ebp + 8], eax
jge 0x40440c
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
push eax
push esi
push dword [0x40868c]
call edi
test eax, eax
je 0x404485
lea eax, [ebp + 0x14]
push ebx
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404450
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jne 0x404450
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x416110], eax
cmp dword [ebp + 8], ebx
jg 0x4043ff
jmp 0x404480
push 0xfffffffffffffffe
jmp 0x404487
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40445f
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push ebx
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40868c]
call edi
test eax, eax
je 0x404485
mov eax, dword [ebp - 4]
add dword [0x416110], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x404488
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40448d
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x416110]
push ebx
sub eax, dword [0x40a0e0]
push esi
push edi
add eax, dword [ebp + 8]
test eax, eax
jle 0x4045c0
xor esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
push esi
push dword [0x416118]
push dword [0x420028]
call edi
push esi
push esi
push dword [0x40a0e0]
push dword [0x40868c]
call edi
mov ebx, 0x412110
mov edi, 0x40a110
mov eax, dword [0x416114]
mov ecx, 0x4000
sub eax, dword [0x416118]
cmp eax, ecx
jle 0x4044f3
mov eax, ecx
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push ebx
push dword [0x420028]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4045a6
mov eax, dword [ebp - 4]
mov dword [0x40a0e8], ebx
add dword [0x416118], eax
mov dword [0x40a0ec], eax
push 0x40a0e8
mov dword [0x40a0f8], edi
mov dword [0x40a0fc], 0x8000
call fcn.00401058
test eax, eax
jl 0x4045c7
mov esi, dword [0x40a0f8]
sub esi, edi
je 0x40457c
lea eax, [ebp - 8]
push 0
push eax
push esi
push edi
push dword [0x40868c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4045ab
cmp esi, dword [ebp - 8]
jne 0x4045ab
add dword [0x40a0e0], esi
cmp dword [0x40a0ec], 0
jne 0x404522
jmp 0x40458b
cmp dword [0x40a0ec], 0
jne 0x4045c7
cmp dword [ebp - 4], 0
je 0x4045c7
mov eax, dword [0x416110]
mov ecx, eax
sub ecx, dword [0x40a0e0]
add ecx, dword [ebp + 8]
test ecx, ecx
jle 0x4045af
xor esi, esi
jmp 0x4044dd
or eax, 0xffffffff
jmp 0x4045c2
push 0xfffffffffffffffe
jmp 0x4045c9
push 0
push 0
push eax
push dword [0x40868c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push 0xfffffffffffffffd
pop eax
jmp 0x4045c2
Function at 0x404bd2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [0x41f7f4]
push ebx
xor ebx, ebx
push ebp
mov cl, byte [eax + 0x63]
push esi
and cl, 4
push edi
mov byte [0x41f7e8], cl
mov al, byte [eax + 0x63]
and al, 1
cmp dword [0x41f7fc], ebx
mov byte [0x41f808], al
jne 0x404cf8
mov ebp, 0x41e3e0
mov dword [0x408840], 3
push ebp
mov dword [0x408844], ebx
call fcn.0040673f
test eax, eax
pop ecx
jne 0x404cda
mov eax, dword [0x41f7f4]
cmp dword [eax + 0xa4], ebx
jl 0x404cda
mov esi, 0x41efe0
push esi
push dword [eax + 0xa8]
call fcn.0040433e
pop ecx
push eax
mov eax, dword [0x41f7f4]
push dword [eax + 0xa4]
call fcn.0040433e
pop ecx
push eax
mov eax, dword [0x41f7f4]
push dword [eax + 0xa0]
call fcn.00406b20
mov al, byte [0x41efe0]
add esp, 0x10
cmp al, bl
je 0x404cda
cmp al, 0x22
jne 0x404c96
mov edi, dword [sym.imp.USER32.dll_CharNextA]
push esi
call edi
mov esi, eax
mov cl, byte [eax]
cmp cl, bl
je 0x404c94
cmp cl, 0x22
je 0x404c94
push eax
call edi
jmp 0x404c84
mov byte [eax], bl
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + esi - 4]
cmp eax, esi
jbe 0x404cd2
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x404cd2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404cc5
test al, 0x10
jne 0x404cd2
push esi
call fcn.004066d8
cmp eax, esi
pop ecx
jb 0x404cd2
mov byte [eax], bl
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
call fcn.0040673f
test eax, eax
pop ecx
jne 0x404cf8
mov eax, dword [0x41f7f4]
push dword [eax + 0xcc]
push ebp
call fcn.00406b82
pop ecx
pop ecx
mov eax, dword [0x41f7f4]
mov edi, 0x41f820
push dword [eax + 0x18]
push edi
call fcn.00406b82
mov eax, dword [0x41f7f4]
pop ecx
pop ecx
cmp byte [eax + 0x62], bl
jne 0x404d87
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, eax
mov eax, dword [0x41f7f4]
mov ecx, dword [eax + 0x38]
cmp ecx, 0xffffffff
je 0x404d49
push dword [eax + 0x40]
push dword [eax + 0x3c]
push ecx
push edi
push dword [0x418fd4]
call fcn.004022f5
mov esi, eax
mov eax, dword [0x41f7f4]
add esp, 0x14
push ebx
mov dword [0x420024], esi
push dword [eax + 0x4c]
push dword [0x41f7f0]
call fcn.004025fc
add esp, 0xc
test eax, eax
je 0x404d6a
push 1
pop eax
jmp 0x404de1
push ebx
push 0x404de6
push esi
push 0x69
push dword [0x418fd4]
mov dword [0x420024], ebx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
jmp 0x404de1
push ebx
push dword [eax + 0x4c]
push dword [0x41f7f0]
call fcn.004025fc
add esp, 0xc
test eax, eax
jne 0x404d65
push ebx
call fcn.004061f1
test eax, eax
je 0x404dc8
cmp dword [0x41f7e4], ebx
jne 0x404d65
mov eax, dword [0x41f7f4]
push ebx
push dword [eax + 0x54]
push dword [0x41f7f0]
call fcn.004025fc
add esp, 0xc
jmp 0x404d65
mov eax, dword [0x41f7f4]
push ebx
push dword [eax + 0x50]
push dword [0x41f7f0]
call fcn.004025fc
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret