joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412c36
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00405d70
mov eax, dword [0x473b00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00411097
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x412c78
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x412dd4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041c420
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x475618]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041305c
mov ecx, dword [esi*4 + 0x475618]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x412dcd
cmp eax, dword [edi + ecx + 0x24]
jne 0x412dcd
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412dcd
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041305c
add esp, 0x14
test edx, edx
jl 0x412dcd
jg 0x412d43
test eax, eax
jb 0x412dcd
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x412dcd
jl 0x412d5d
cmp dword [ebp - 0x1008], eax
ja 0x412dcd
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x412d7b
test ebx, ebx
je 0x412db4
cmp ecx, edi
jae 0x412db4
mov al, byte [ecx]
cmp al, 0xd
jne 0x412d95
lea eax, [edi - 1]
cmp ecx, eax
jae 0x412da1
cmp byte [ecx + 1], 0xa
jne 0x412da1
inc ecx
jmp 0x412da1
movzx eax, al
movsx eax, byte [eax + 0x474480]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x412d7b
cmp edx, ebx
jne 0x412d7b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x412dd2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405003
leave
ret
Function at 0x418fd9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x475618]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419019
cmp byte [ebx], 0xa
jne 0x419019
or byte [eax + edi + 0x28], 4
jmp 0x41901e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41911c
mov al, byte [edx]
cmp al, 0x1a
je 0x4190fe
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41904d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x419072
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41907c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41902f
jmp 0x41911c
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4190f9
cmp dword [ebp - 0xc], 0
je 0x4190f9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x475618]
test byte [eax + edi + 0x28], 0x48
je 0x4190d3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4190be
mov byte [esi], dl
jmp 0x4190cf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x475618]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41911c
cmp byte [ebp - 1], 0xa
jne 0x4190e2
cmp esi, ebx
jne 0x4190e2
mov byte [esi], 0xa
jmp 0x41911b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041307a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41911c
mov byte [esi], 0xd
jmp 0x41911b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x475618]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419118
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41911c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x419125
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x475618]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419168
cmp word [esi], dx
jne 0x419168
or byte [edi + eax + 0x28], 4
jmp 0x41916d
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4192c0
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4192a0
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4191af
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4191e5
cmp eax, edx
jae 0x4191f1
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x419187
jmp 0x4192c0
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41929c
cmp dword [ebp - 0x14], 0
je 0x41929c
mov eax, dword [ebx*4 + 0x475618]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x419274
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41923d
mov word [esi], cx
jmp 0x419270
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x475618]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x475618]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x475618]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4192c0
pop ebx
cmp word [ebp - 4], bx
jne 0x419285
cmp esi, dword [ebp + 0xc]
jne 0x419285
mov word [esi], bx
jmp 0x4192bd
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041307a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4192c0
push 0xd
jmp 0x4192b9
mov ecx, dword [ebx*4 + 0x475618]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4192b7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4192c0
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41d9d0
Capabilities:
Create thread
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 8
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 4
call fcn.00404fc5
add esp, 4
test eax, eax
je 0x41d9ef
mov dword [eax], 0x41d7b0
jmp 0x41d9f1
xor eax, eax
lea ecx, [esp + 4]
push ecx
push 0
push eax
push 0x401750
push 0
push 0
call fcn.0040a675
add esp, 0x18
mov dword [esp], eax
test eax, eax
je 0x41da5a
cmp dword [esp + 4], 0
je 0x41da69
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [esp + 4]
cmp ecx, eax
je 0x41da70
push 0
push ecx
push dword [esp + 8]
call fcn.00402832
add esp, 0xc
test eax, eax
jne 0x41da77
push eax
push eax
push eax
push eax
push eax
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x18], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
cmp dword [esp + 4], 0
jne 0x41da7e
xor eax, eax
add esp, 8
ret
push 6
mov dword [esp + 8], 0
call fcn.004029e8
push 1
call fcn.004029e8
push 5
call fcn.004029e8
push 2
call fcn.004029e8
call fcn.0040a4dd
int3

Function at 0x8be058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008be1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x8be07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8be06a
add dl, dl
jne 0x8be089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8be0dc
xor eax, eax
add dl, dl
jne 0x8be096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8be17d
add dl, dl
jne 0x8be0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8be0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8be0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8be0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8be0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8be075
mov eax, 1
add dl, dl
jne 0x8be0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8be0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8be0e1
sub eax, ebx
mov ebx, 1
jne 0x8be128
mov ecx, 1
add dl, dl
jne 0x8be10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8be119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8be105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8be075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8be13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8be14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8be136
cmp eax, 0x7d00
jae 0x8be16d
cmp eax, 0x500
jb 0x8be168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8be075
cmp eax, 0x7f
ja 0x8be170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8be075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8be19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x8be075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4095dc], 0
jne 0x40100e
call fcn.0040104a
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 4]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x401047
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 + 0x4095d8]
xor eax, esi
inc ecx
dec edx
jne 0x401028
pop edi
pop esi
not eax
ret

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

Disassembly:
push esi
push edi
xor esi, esi
mov ecx, 0x4095d8
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 0x401058
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x4099d8
jl 0x401053
pop edi
pop esi
ret
Function at 0x403ed2
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 0x403fae
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 0x403fa8
cmp byte [ebp - 0x114], 0x2e
jne 0x403f34
cmp byte [ebp - 0x113], 0x2e
je 0x403f8b
cmp byte [ebp - 0x113], 0
je 0x403f8b
lea eax, [ebp - 0x114]
push eax
lea eax, [edi + esi + 1]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [ebp - 0x140], 1
je 0x403f60
mov eax, dword [ebp - 0x140]
xor eax, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [ebp - 0x140], 0x10
je 0x403f76
push dword [ebp + 0xc]
push esi
call fcn.00403ed2
pop ecx
pop ecx
jmp 0x403f8b
push esi
push dword [0x409034]
call fcn.00405e22
pop ecx
pop ecx
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 0x403f19
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.00405e22
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
leave
ret

Function at 0x403fc5
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 0x404057
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 0x404042
cmp dword [ebp + 0x10], ebx
jne 0x404034
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00403fc5
add esp, 0xc
test eax, eax
jne 0x404042
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x404004
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x404057
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 0x404093
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
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 [0x420848]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4040fc
cmp dword [ebp - 4], 0x1c
jne 0x4040fc
lea eax, [ebp - 0x20]
push eax
call fcn.0040405c
test eax, eax
pop ecx
je 0x4040fc
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x40bd20
mov esi, eax
call fcn.00401dab
push dword [ebp - 0xc]
push esi
push 0xffffffffffffffff
call fcn.0040437c
add esp, 0x10
cmp eax, dword [ebp - 0xc]
je 0x404103
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
or eax, 0xffffffff
pop edi
pop esi
leave
ret
push 1
push edi
push edi
push dword [0x420848]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test byte [ebp - 0x20], 2
mov dword [0x417d3c], eax
mov dword [0x420010], esi
je 0x404136
mov dword [0x420018], 1
lea eax, [esi + 0x84]
jmp 0x404153
lea eax, [esi + 0xf8]
mov dword [0x420018], edi
mov dword [0x420028], eax
mov ecx, dword [esi + 0xec]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [0x42000c], eax
mov esi, dword [esi + 0x34]
lea ecx, [esi + esi*2]
lea eax, [eax + ecx*8]
mov dword [0x40bd18], eax
xor eax, eax
jmp 0x4040ff
Function at 0x404196
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x4041b0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
jmp 0x4041b7
mov dword [ebp - 8], 0x8000
cmp ebx, edi
mov dword [ebp - 4], edi
jne 0x4041c3
mov ebx, 0x40fd3c
mov eax, dword [ebp + 8]
cmp eax, edi
jl 0x4041e1
mov ecx, dword [0x417d3c]
push edi
add ecx, eax
push edi
push ecx
push dword [0x420848]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push 4
push eax
push dword [0x420848]
call esi
test eax, eax
je 0x404369
test byte [ebp + 0xb], 0x80
je 0x4042ef
push 0x40bd20
call fcn.00401d7f
and dword [ebp + 8], 0x7fffffff
pop ecx
jle 0x404374
mov edi, 0x40bd3c
jmp 0x404231
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x4000
cmp dword [ebp + 8], eax
jge 0x40423e
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0x14]
push 0
push ecx
push eax
push edi
push dword [0x420848]
call esi
test eax, eax
je 0x404369
mov eax, dword [ebp + 0x14]
mov dword [0x40bd20], edi
sub dword [ebp + 8], eax
mov dword [0x40bd24], eax
mov eax, dword [ebp - 8]
push 0x40bd20
mov dword [0x40bd2c], ebx
mov dword [0x40bd30], eax
call fcn.00401dda
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
jl 0x4042e4
mov eax, dword [0x40bd2c]
mov esi, eax
sub esi, ebx
je 0x4042d5
cmp dword [ebp + 0x10], 0
jne 0x4042b7
lea eax, [ebp + 0x14]
push 0
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4042eb
cmp dword [ebp + 0x14], esi
jne 0x4042eb
add dword [ebp - 4], esi
jmp 0x4042c9
sub dword [ebp - 8], esi
add dword [ebp - 4], esi
cmp dword [ebp - 8], 1
mov ebx, eax
jl 0x404374
cmp dword [ebp - 0x10], 1
je 0x404374
jmp 0x404267
cmp dword [ebp + 8], 0
jg 0x40422b
jmp 0x404374
push 0xfffffffffffffffc
jmp 0x40436b
push 0xfffffffffffffffe
jmp 0x40436b
cmp dword [ebp + 0x10], edi
jne 0x404349
cmp dword [ebp + 8], edi
jle 0x404374
mov edi, 0x40bd3c
mov eax, dword [ebp - 8]
cmp dword [ebp + 8], eax
jge 0x404309
mov eax, dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0xc]
push ebx
push ecx
push eax
push edi
push dword [0x420848]
call esi
test eax, eax
je 0x404369
lea eax, [ebp + 0x10]
push ebx
push eax
push dword [ebp - 0xc]
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4042eb
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jne 0x4042eb
add dword [ebp - 4], eax
sub dword [ebp + 8], eax
cmp dword [ebp + 8], ebx
jg 0x4042fe
jmp 0x404374
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 8], eax
jge 0x404354
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x420848]
call esi
test eax, eax
jne 0x40436e
push 0xfffffffffffffffd
pop eax
jmp 0x404377
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404972
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [0x420010]
push ebx
xor ebx, ebx
push ebp
mov cl, byte [eax + 0x6f]
push esi
and cl, 4
push edi
mov byte [0x420004], cl
mov al, byte [eax + 0x6f]
and al, 1
cmp dword [0x420018], ebx
mov byte [0x420024], al
jne 0x404a92
mov ebp, 0x41ec00
mov dword [0x409400], 3
push ebp
call fcn.004065ae
test eax, eax
pop ecx
jne 0x404a74
mov eax, dword [0x420010]
cmp dword [eax + 0xb0], ebx
jl 0x404a74
mov esi, 0x41f800
push esi
push dword [eax + 0xb4]
call fcn.0040416a
pop ecx
push eax
mov eax, dword [0x420010]
push dword [eax + 0xb0]
call fcn.0040416a
pop ecx
push eax
mov eax, dword [0x420010]
push dword [eax + 0xac]
call fcn.00406934
mov al, byte [0x41f800]
add esp, 0x10
cmp al, bl
je 0x404a74
cmp al, 0x22
jne 0x404a30
mov edi, dword [sym.imp.USER32.dll_CharNextA]
push esi
call edi
mov esi, eax
mov cl, byte [eax]
cmp cl, bl
je 0x404a2e
cmp cl, 0x22
je 0x404a2e
push eax
call edi
jmp 0x404a1e
mov byte [eax], bl
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + esi - 4]
cmp eax, esi
jbe 0x404a6c
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x404a6c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404a5f
test al, 0x10
jne 0x404a6c
push esi
call fcn.00406547
cmp eax, esi
pop ecx
jb 0x404a6c
mov byte [eax], bl
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
call fcn.004065ae
test eax, eax
pop ecx
jne 0x404a92
mov eax, dword [0x420010]
push dword [eax + 0xd8]
push ebp
call fcn.00406996
pop ecx
pop ecx
mov eax, dword [0x420010]
mov edi, 0x420040
push dword [eax + 0x18]
push edi
call fcn.00406996
mov eax, dword [0x420010]
pop ecx
pop ecx
cmp byte [eax + 0x6e], bl
jne 0x404b22
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, eax
mov eax, dword [0x420010]
mov ecx, dword [eax + 0x38]
cmp ecx, 0xffffffff
je 0x404ae3
push dword [eax + 0x40]
push dword [eax + 0x3c]
push ecx
push edi
push dword [0x419be8]
call fcn.0040242e
mov esi, eax
mov eax, dword [0x420010]
add esp, 0x14
add eax, 0x4c
push ebx
push eax
mov dword [0x420844], esi
push dword [0x42000c]
call fcn.004026b6
add esp, 0xc
test eax, eax
je 0x404b05
push 1
pop eax
jmp 0x404b71
push ebx
push 0x404b76
push esi
push 0x69
push dword [0x419be8]
mov dword [0x420844], ebx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
jmp 0x404b71
add eax, 0x4c
push ebx
push eax
push dword [0x42000c]
call fcn.004026b6
add esp, 0xc
test eax, eax
jne 0x404b00
push ebx
call fcn.00405ed4
test eax, eax
mov eax, dword [0x420010]
push ebx
je 0x404b5d
add eax, 0x5c
push eax
push dword [0x42000c]
call fcn.004026b6
add esp, 0xc
jmp 0x404b00
add eax, 0x54
push eax
push dword [0x42000c]
call fcn.004026b6
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x405085
Capabilities:
Hide graphical window

Disassembly:
cmp byte [0x420004], 0
push edi
je 0x4050cf
mov edi, dword [esp + 8]
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x407
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3ee
push edi
call esi
push eax
push edi
call fcn.004050d1
mov eax, dword [0x420020]
pop ecx
pop ecx
pop esi
test eax, eax
je 0x4050cf
push eax
push edi
call fcn.004050d1
pop ecx
pop ecx
pop edi
ret
Function at 0x405ed4
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc04
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
cmp dword [0x420018], ebx
je 0x405f1c
mov eax, dword [0x420010]
push dword [0x420020]
add eax, 0x7c
push eax
push dword [0x42000c]
call fcn.004026b6
add esp, 0xc
test eax, eax
je 0x4060e5
inc dword [0x418bd4]
jmp 0x4060e5
mov eax, dword [0x420010]
cmp dword [eax + 0xec], ebx
jle 0x405f7e
xor esi, esi
cmp dword [0x418bd4], ebx
jne 0x4060e5
mov ecx, dword [0x420028]
add ecx, esi
test byte [ecx + 7], 0x80
jne 0x405f4b
cmp byte [eax + 0x6e], 0
je 0x405f72
push dword [0x420020]
add ecx, 8
push ecx
push dword [0x42000c]
call fcn.004026b6
add esp, 0xc
test eax, eax
je 0x405f6d
inc dword [0x418bd4]
mov eax, dword [0x420010]
inc edi
add esi, 0x14
cmp edi, dword [eax + 0xec]
jl 0x405f2b
cmp dword [0x418bd4], ebx
jne 0x4060e5
cmp dword [eax + 0xe0], 0xffffffff
je 0x4060e5
push dword [eax + 0xdc]
lea eax, [ebp - 0x404]
mov ebx, 0xfffffd66
push eax
call fcn.00406996
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ecx
pop ecx
lea eax, [ebp - 0xc04]
push 0x41ec00
push eax
call esi
lea eax, [ebp - 0xc04]
push eax
call fcn.004064f8
lea eax, [ebp - 0x404]
push eax
call fcn.00406587
pop ecx
test eax, eax
pop ecx
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0xc04]
push eax
je 0x405ff4
call esi
jmp 0x405ffa
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 2
lea eax, [ebp - 0xc04]
push 0x40000000
push eax
call fcn.00406623
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x4060b0
push dword [0x420840]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x4060a5
push eax
push eax
push eax
push dword [0x420848]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
push 0
push eax
push dword [0x420840]
push esi
push dword [0x420848]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x420010]
mov ecx, dword [eax + 0xe4]
test ecx, ecx
jle 0x40607e
add ecx, esi
push 0x2e8
push ecx
push dword [eax + 0xe0]
call fcn.0040437c
add esp, 0xc
lea eax, [ebp - 4]
push 0
push eax
push dword [0x420840]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
push 0xffffffffffffffff
call fcn.00404181
pop ecx
mov ebx, eax
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jge 0x4060d2
lea eax, [ebp - 0x404]
push eax
push str.Error_creating:
call fcn.00405e22
pop ecx
lea eax, [ebp - 0xc04]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4060e5
lea eax, [ebp - 0x404]
push eax
push str.Created_uninstaller:
call fcn.00405e22
pop ecx
pop ecx
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x406104
push 0
push dword [0x418bd4]
push 0x404
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x418bd4]
leave
ret 4