joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420ba4
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 + 0x4b1050]
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 0x420be4
cmp byte [ebx], 0xa
jne 0x420be4
or byte [eax + edi + 0x28], 4
jmp 0x420be9
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x420ce7
mov al, byte [edx]
cmp al, 0x1a
je 0x420cc9
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x420c18
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x420c3d
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x420c47
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 0x420bfa
jmp 0x420ce7
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 0x420cc4
cmp dword [ebp - 0xc], 0
je 0x420cc4
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4b1050]
test byte [eax + edi + 0x28], 0x48
je 0x420c9e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x420c89
mov byte [esi], dl
jmp 0x420c9a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4b1050]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x420ce7
cmp byte [ebp - 1], 0xa
jne 0x420cad
cmp esi, ebx
jne 0x420cad
mov byte [esi], 0xa
jmp 0x420ce6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00421724
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x420ce7
mov byte [esi], 0xd
jmp 0x420ce6
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4b1050]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420ce3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x420ce7
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x420cf0
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 + 0x4b1050]
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 0x420d33
cmp word [esi], dx
jne 0x420d33
or byte [edi + eax + 0x28], 4
jmp 0x420d38
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 0x420e8b
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 0x420e6b
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x420d7a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x420db0
cmp eax, edx
jae 0x420dbc
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 0x420d52
jmp 0x420e8b
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 0x420e67
cmp dword [ebp - 0x14], 0
je 0x420e67
mov eax, dword [ebx*4 + 0x4b1050]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x420e3f
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x420e08
mov word [esi], cx
jmp 0x420e3b
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4b1050]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4b1050]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4b1050]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x420e8b
pop ebx
cmp word [ebp - 4], bx
jne 0x420e50
cmp esi, dword [ebp + 0xc]
jne 0x420e50
mov word [esi], bx
jmp 0x420e88
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00421724
add esp, 0x10
cmp word [ebp - 4], bx
je 0x420e8b
push 0xd
jmp 0x420e84
mov ecx, dword [ebx*4 + 0x4b1050]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420e82
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x420e8b
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 0x421dbd
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4ae600]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x421e08
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00421f5c
test al, al
jne 0x421e02
sub edx, 2
cmp edx, edi
jne 0x421de8
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x421e2a
lea eax, [edi + 2]
cmp edx, eax
je 0x421e2a
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00421d09
add esp, 0x10
jmp 0x421f24
push esi
lea ecx, [ebp - 0x255]
call fcn.00421f5c
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x421e6d
push dword [ebp - 0x25c]
jmp 0x421e1a
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x421eaa
cmp word [ebp - 0x226], 0
je 0x421ecb
cmp word [ebp - 0x226], ax
jne 0x421eaa
cmp word [ebp - 0x224], 0
je 0x421ecb
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00421d09
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x421f17
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x421e84
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x421eff
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x421f24
push 0x421b39
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00427730
add esp, 0x10
jmp 0x421ef4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040cde2
leave
ret

Function at 0x429200
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42922d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42922d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x42a696
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 2
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x42a716
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
jbe 0x42a715
push ebx
mov ebx, 0x4b0450
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebx
mov byte [edi + esi], al
call fcn.0040151b
push eax
call fcn.00402dcf
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebx
mov byte [edi + esi], al
call fcn.0040151b
push eax
call fcn.00402dcf
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x42b5b8
mov byte [edi + esi], al
call fcn.0041236e
xor byte [edi + esi], al
add esp, 0x1c
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x42a6b8
pop ebx
pop esi
lea ecx, [ebp + 8]
call fcn.004065b2
pop edi
pop ebp
ret 0x14
Function at 0x417e50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
jmp 0x417e6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x417e71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x417e60
mov eax, 1
add ebx, ebx
jne 0x417e83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x417e78
jne 0x417e94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417e78
xor ecx, ecx
sub eax, 3
jb 0x417ea8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x417f1a
mov ebp, eax
add ebx, ebx
jne 0x417eb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x417ec0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x417ee4
inc ecx
add ebx, ebx
jne 0x417ed0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x417ec5
jne 0x417ee1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417ec5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x417f04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x417ef5
jmp 0x417e66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x417f04
add edi, ecx
jmp 0x417e66
pop esi
mov edi, esi
mov ecx, 0x1ef
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x417f22
cmp byte [edi], 1
jne 0x417f22
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x417f27
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x417f9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1cd8c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1ce40]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x417f54
mov ecx, edi
jns 0x417f83
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1ce44]
or eax, eax
je 0x417f99
mov dword [ebx], eax
add ebx, 4
jmp 0x417f71
call dword [esi + 0x1ce54]
mov ebp, dword [esi + 0x1ce48]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x417fd3
sub esp, 0xffffff80
jmp 0x4054d8
Function at 0x404272
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push edx
push ecx
push edi
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0xc], 0
jne 0x40428d
jmp 0x4043ba
mov eax, 0x6c
sub eax, 0x58
mov dword [ebp - 8], eax
mov eax, 0x58
mul dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
add eax, dword [ebp - 8]
push 0x40
push 0x1000
push eax
push 0
call fcn.0042866c
or eax, eax
je 0x4043ba
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
pop dword [eax + 0x10]
push 0x10
push dword [ebp + 0x10]
lea eax, [eax]
push eax
call fcn.00428b70
mov eax, dword [ebp - 4]
lea edi, [eax + 0x14]
push dword [ebp - 0xc]
push dword [ebp + 0x14]
push edi
call fcn.00428b70
push ebx
push 0
push dword [ebp - 4]
push dword [ebp + 8]
push 0
push 0x58
push 0
push dword [0x43c044]
call fcn.004285fa
or eax, eax
jne 0x404390
pushfd
pushal
sub esp, 0x6c
wait
fnsave dword [esp]
cld
mov eax, esp
and esp, 0xfffffffc
push eax
mov eax, dword [eax + 0x88]
push 0x43c054
call fcn.00428558
push str.DBPLUGIN
push 0
push 0xff
push 0x437bd1
call fcn.0042947b
test dword [0x43c050], 1
je 0x404365
push str.DBPLUGIN
push 0
push 0x808080
push str.__BookObj.inc__365_
call fcn.0042947b
push str.DBPLUGIN
push 0x80
push 0
push 0x437574
call fcn.0042947b
push 0x43c054
call fcn.00428618
pop esp
frstor dword [esp]
add esp, 0x6c
popal
popfd
xor eax, eax
push eax
mov ebx, eax
push 0x58
push 0x449440
push eax
call fcn.00428b70
mov edx, dword [eax]
call dword [edx - 0xc]
mov eax, ebx
pop ebx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4043ba
mov edx, dword [ebp - 0x10]
push edx
mov edx, dword [edx]
call dword [edx - 0x44]
mov eax, dword [ebp - 0x10]
pop edi
pop ecx
pop edx
leave
ret 0x14
Function at 0x406d2b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push dword [0x44d734]
call fcn.004287b6
mov dword [ebp - 0x14], eax
push dword [0x44d73c]
push dword [ebp - 0x14]
call fcn.00428ace
mov dword [ebp - 0x1c], eax
push dword [ebp + 8]
call fcn.004286a2
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
push dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.00428a86
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.00428ace
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
push dword [ebp - 8]
pop dword [ebp - 0x24]
push dword [ebp - 4]
pop dword [ebp - 0x20]
lea eax, [ebp - 0x10]
push eax
call fcn.004287b0
push dword [ebp + 8]
push 0xffffffffffffffeb
push dword [0x44d734]
call fcn.0042896c
add dword [ebp - 0x10], 8
add dword [ebp - 0xc], 8
add dword [ebp - 8], 2
add dword [ebp - 4], 2
push 1
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [0x44d734]
call fcn.004288d6
push 4
push dword [0x44d734]
call fcn.0042898a
push 0
push 0
push dword [0x44d734]
call fcn.00428870
push dword [0x44d734]
call fcn.004289b4
push dword [ebp - 0x14]
push dword [0x44d734]
call fcn.0042890c
leave
ret 4
Function at 0x409135
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push 0x94
lea eax, [ebp - 0x94]
push eax
call fcn.00428642
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call fcn.004285d0
mov eax, dword [ebp - 0x90]
cmp eax, 6
jb 0x40917a
push 0xc8
call fcn.00428660
leave
ret

Function at 0x4091b4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ecx
push edx
mov dword [0x44f603], 0x94
push 0x44f603
call fcn.004285d0
cmp dword [0x44f607], 5
jbe 0x409221
push str.dwmapi.dll
call fcn.0042861e
or eax, eax
je 0x409221
mov dword [0x43e16f], eax
push str.DwmIsCompositionEnabled
push dword [0x43e16f]
call fcn.004285ac
or eax, eax
je 0x409208
mov dword [0x43e173], eax
push str.DwmEnableComposition
push dword [0x43e16f]
call fcn.004285ac
or eax, eax
je 0x409221
mov dword [0x43e177], eax
cmp dword [0x43e173], 0
je 0x409253
lea eax, [ebp - 4]
push eax
call dword [0x43e173]
and dword [ebp - 4], 0xff
push dword [ebp - 4]
pop dword [0x43e17b]
cmp dword [ebp - 4], 1
jne 0x409253
cmp dword [0x43e177], 0
je 0x409253
cmp dword [0x43e17b], 0
je 0x4092a2
push str.dnaml_reader
push 0x8023
push 0x43e17f
call fcn.0040bcfd
or eax, eax
je 0x4092a2
push 0x43e17f
lea eax, [ebp - 0x108]
push eax
call fcn.0042869c
push str.Cursors
lea eax, [ebp - 0x108]
push eax
call fcn.0042868a
lea eax, [ebp - 0x108]
push eax
call fcn.0042a220
mov ecx, 4
lea edx, [0x44d7f4]
mov eax, 0x4e20
push ecx
sub ecx, 4
neg ecx
shl eax, cl
mov dword [edx + ecx*4], eax
pop ecx
loop 0x4092ad
mov eax, 4
shl eax, 2
add edx, eax
mov ecx, 9
mov eax, 0x3d090
push ecx
sub ecx, 9
neg ecx
shl eax, cl
mov dword [edx + ecx*4], eax
pop ecx
loop 0x4092cf
mov dword [0x44d624], 1
mov dword [0x44d628], 1
mov dword [0x44d62c], 1
mov dword [0x44f697], 1
pop edx
pop ecx
leave
ret

Function at 0x40acb8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push 0
push 0x80
push 3
push 0
push 1
push Ordinal_4
push dword [ebp + 8]
call fcn.00428540
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
cmp eax, 0xffffffff
je 0x40ad09
push 0
push eax
call fcn.0042859a
cmp eax, 0xffffffff
je 0x40ad01
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov dword [ebp - 4], 1
push dword [ebp - 8]
call fcn.00428528
mov eax, dword [ebp - 4]
pop ebx
leave
ret 8

Function at 0x40b364
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push esi
push 0x104
lea eax, [ebp - 0x104]
push eax
call fcn.00428642
lea eax, [ebp - 0x104]
push eax
push 0x104
call fcn.004285ca
test eax, eax
je 0x40b3c6
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call fcn.0040b3cb
push eax
cmp dword [ebp + 8], 0
je 0x40b3c5
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.0042b450
pop eax
pop esi
leave
ret 0x14
Function at 0x40b3cb
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push esi
push dword [ebp + 8]
call fcn.0042a220
test eax, eax
je 0x40b496
lea eax, [ebp - 0x104]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.004285c4
test eax, eax
je 0x40b496
cmp dword [ebp + 0x18], 0
je 0x40b438
lea eax, [ebp - 0x104]
push eax
call fcn.00428552
lea esi, [ebp - 0x104]
lodsb al, byte [esi]
cmp al, 0
je 0x40b429
cmp al, 0x2e
jne 0x40b419
dec esi
mov byte [esi], 0
inc esi
jmp 0x40b419
push dword [ebp + 0x18]
lea eax, [ebp - 0x104]
push eax
call fcn.0042868a
cmp dword [ebp + 8], 0
je 0x40b450
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.0042b450
cmp dword [ebp + 0x14], 1
jne 0x40b45d
mov eax, 0x100
jmp 0x40b47c
cmp dword [ebp + 0x14], 2
jne 0x40b46a
mov eax, 0x4000000
jmp 0x40b47c
cmp dword [ebp + 0x14], 3
jne 0x40b477
mov eax, 0x4000100
jmp 0x40b47c
mov eax, 0x80
push 0
push eax
push 2
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x104]
push eax
call fcn.00428540
pop esi
leave
ret 0x14

Function at 0x40b84c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0
push 0x80
push 3
push 0
push 1
push Ordinal_4
push dword [ebp + 8]
call fcn.00428540
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
cmp eax, 0xffffffff
je 0x40b8c2
push 0
push 0
push dword [ebp + 0xc]
push eax
call fcn.00428648
cmp eax, 0xffffffff
je 0x40b8ba
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 8]
call fcn.0042863c
or eax, eax
je 0x40b8ba
mov dword [ebp - 4], 1
cmp dword [ebp + 0x18], 0
je 0x40b8ba
mov eax, dword [ebp + 0x18]
push dword [ebp - 0xc]
pop dword [eax]
push dword [ebp - 8]
call fcn.00428528
mov eax, dword [ebp - 4]
leave
ret 0x14

Function at 0x40bb8d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
mov dword [ebp - 4], 0
cmp dword [0x43e17b], 0
je 0x40bbb9
push 0x43e17f
call fcn.004286a2
cmp eax, 0
jbe 0x40bbb9
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 1
jne 0x40bbce
push 0x43e17f
push dword [ebp + 8]
call fcn.0042869c
jmp 0x40bbd9
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004285d6
leave
ret 8
Function at 0x40ce7d
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 4], 0
cmp dword [0x43e06b], 0
je 0x40d026
cmp dword [ebp + 0xc], 0x20
jne 0x40cec3
cmp dword [0x44d710], 1
jne 0x40d026
push 0
call fcn.00428930
mov dword [ebp - 4], 1
mov eax, 1
jmp 0x40d026
cmp dword [ebp + 0xc], 6
jne 0x40cef4
and dword [ebp + 0x10], 0xffff
cmp dword [ebp + 0x10], 0
jne 0x40cee5
mov dword [0x44d6f8], 0
jmp 0x40d026
mov dword [0x44d6f8], 1
jmp 0x40d026
cmp dword [ebp + 0xc], 0x112
jne 0x40cf22
and dword [ebp + 0x10], 0xfff0
cmp dword [ebp + 0x10], 0xf140
jne 0x40d026
mov dword [ebp - 4], 1
mov eax, 0
jmp 0x40d026
cmp dword [ebp + 0xc], 0x100
je 0x40cf46
cmp dword [ebp + 0xc], 0x201
je 0x40cf46
cmp dword [ebp + 0xc], 0x204
je 0x40cf46
cmp dword [ebp + 0xc], 0x207
jne 0x40cf80
cmp dword [0x44d710], 1
jne 0x40d026
push 0
push 0x3f2
push 0x111
push dword [0x43c160]
call fcn.00428924
call fcn.0040d2b7
mov dword [ebp - 4], 1
mov eax, 0
jmp 0x40d026
cmp dword [ebp + 0xc], 0x200
jne 0x40d016
cmp dword [0x44d710], 1
jne 0x40d026
cmp dword [0x44d704], 0
jne 0x40cfcb
push 0x44d708
call fcn.004287b0
mov dword [0x44d704], 1
push dword [0x44d708]
pop dword [ebp - 0xc]
push dword [0x44d70c]
pop dword [ebp - 8]
jmp 0x40cfd4
lea eax, [ebp - 0xc]
push eax
call fcn.004287b0
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x44d708]
jne 0x40cfec
mov eax, dword [ebp - 8]
cmp eax, dword [0x44d70c]
jne 0x40cfec
jmp 0x40d014
push 0
push 0x3f2
push 0x111
push dword [0x43c160]
call fcn.00428924
call fcn.0040d2b7
mov dword [ebp - 4], 1
mov eax, 0
jmp 0x40d026
cmp dword [ebp + 0xc], 0x10
jne 0x40d026
mov dword [0x44d6f8], 0
mov ebx, dword [ebp + 0x18]
push dword [ebp - 4]
pop dword [ebx]
pop ebx
leave
ret 0x14
Function at 0x40d7dd
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push esi
push edi
push ecx
cmp dword [0x43e0e7], 0
je 0x40d7f4
pop ecx
pop edi
pop esi
leave
ret
cmp dword [0x43e0db], 0
je 0x40d944
mov eax, dword [0x43e0db]
dec eax
push eax
call fcn.0040edfe
mov edi, eax
mov eax, dword [edi + 8]
mov edx, 0
div dword [edi + 4]
mov dword [ebp - 8], eax
mov eax, dword [edi]
add eax, dword [edi + 8]
add eax, edi
mov esi, eax
mov dword [ebp - 4], esi
mov ecx, dword [edi + 4]
mov dword [ebp - 0xc], 0
cmp ecx, 0
jbe 0x40d858
sub esi, dword [ebp - 8]
cmp dword [esi + 0x2c], 0
jne 0x40d856
inc dword [ebp - 0xc]
cmp dword [esi + 0x38], 0x28
jne 0x40d856
cmp dword [0x43e0ff], 0
jne 0x40d856
dec dword [ebp - 0xc]
loop 0x40d838
push dword [ebp - 0xc]
pop dword [0x43e0eb]
cmp dword [0x43e0eb], 0
jbe 0x40d944
mov eax, 0x58
mul dword [0x43e0eb]
mov dword [ebp - 0xc], eax
push 0x40
push 0x1000
push dword [ebp - 0xc]
push 0
call fcn.0042866c
mov dword [0x43e0e7], eax
cmp dword [0x43e0e7], 0
je 0x40d944
mov edi, dword [ebp - 4]
mov esi, dword [0x43e0e7]
add esi, dword [ebp - 0xc]
mov ecx, dword [0x43e0eb]
mov dword [ebp - 0xc], 1
sub edi, dword [ebp - 8]
cmp dword [edi + 0x2c], 0
je 0x40d8c3
jmp 0x40d8b8
cmp dword [edi + 0x38], 0x28
jne 0x40d8d4
cmp dword [0x43e0ff], 0
jne 0x40d8d4
jmp 0x40d8b8
sub esi, 0x58
push dword [ebp - 0xc]
pop dword [esi]
inc dword [ebp - 0xc]
mov byte [esi + 0x18], 1
mov eax, dword [edi + 0x1c]
mov byte [esi + 0x25], al
mov eax, dword [edi + 0x20]
mov byte [esi + 0x27], al
mov eax, dword [edi + 0x2c]
mov byte [esi + 0x26], al
lea eax, [esi + 0x34]
mov dword [esi + 0x2c], eax
push dword [edi + 0x14]
pop dword [esi + 0x34]
push dword [edi + 4]
pop dword [esi + 0x38]
push dword [edi + 8]
pop dword [esi + 0x3c]
push dword [edi + 0xc]
pop dword [esi + 0x40]
push dword [edi + 0x10]
pop dword [esi + 0x54]
push dword [edi + 0x30]
pop dword [esi + 0x50]
push dword [edi + 0x34]
pop dword [esi + 0x4c]
push dword [edi + 0x18]
pop dword [esi + 0x19]
push dword [edi + 0x24]
pop dword [esi + 0x1d]
push dword [edi + 0x28]
pop dword [esi + 0x21]
push dword [edi + 0x38]
pop dword [esi + 4]
dec ecx
jne 0x40d8b8
pop ecx
pop edi
pop esi
leave
ret