joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44af30
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4883b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00480cf0
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0044a890
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00480c1e
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0047d4df
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0047d4df
push 1
push 0
push 0
mov ecx, esi
call fcn.0047d487
push 1
push 0
push 1
mov ecx, esi
call fcn.0047d487
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00480d62
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x44b0b0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4883d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00480cf0
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0044a890
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00480c1e
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x44b174
cmp dword [esp + 0x40], 1
jne 0x44b172
cmp ecx, eax
jge 0x44b174
mov eax, ecx
cmp eax, 0xc8
jge 0x44b180
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0044af30
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00480d62
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x44b970
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x488483
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0047b8ff
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00480f98
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004824b4
test eax, eax
je 0x44ba8c
mov ecx, dword [esp + 0x3c]
call fcn.00480fc5
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44ba50
push edi
mov ecx, esi
call fcn.0047e62a
mov ecx, esi
call fcn.0044bc30
cmp dword [esp + 0x38], 1
jne 0x44ba85
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0047e765
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x44dc70
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44dca3
push esi
call fcn.0045c030
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44dc9c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44dd29
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44dd12
mov eax, dword [esi + 8]
test eax, eax
je 0x44dcc7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44dd0e
cmp eax, 2
je 0x44dd12
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44dcba
cmp eax, 3
je 0x44dced
cmp eax, 1
jne 0x44dcba
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44dcba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44dcba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044dd50
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44dd38
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044dd50
add esp, 4
pop esi
ret

Function at 0x44e5d0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x44e5f1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x44e5f1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x44e5f1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x47c6f5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47c72d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047a7ac
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047a784
jmp 0x47c739
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47dde7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47de29
call fcn.004838a4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47de29
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47de20
xor eax, eax
jmp 0x47de31
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047de37
pop edi
pop esi
pop ebx
ret 4
Function at 0x483dd4
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x483e02
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x483e20
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00483d3a
jmp 0x483e20
mov eax, dword [esi + 0x14]
test eax, eax
je 0x483e20
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00483d3a
test edi, edi
mov eax, edi
jne 0x483e0a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4010df
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.cygwin1.dll_signal
mov ebx, eax
mov dword [esp + 4], 1
mov dword [esp], 3
call sub.cygwin1.dll_signal
cmp dword [sym.imp.cygncurses_8.dll_stdscr], 0
add byte [edi + 0xf000040], al
test ch, al
add byte [eax], al
invalid
mov dword [esp + 4], 0
mov dword [esp], str.Really_quit_
call fcn.00401050
mov eax, dword [sym.imp.cygncurses_8.dll_stdscr]
add byte [edi + 0x4890040], al
and al, 0xe8
and bl, byte [edx]
add byte [eax], al
cmp eax, 0x79
je 0x40119a
cmp eax, 0x59
je 0x40119a
mov eax, dword [0x407f80]
mov dword [esp + 8], eax
mov eax, dword [0x407f70]
mov dword [esp + 4], eax
mov eax, dword [sym.imp.cygncurses_8.dll_stdscr]
add byte [edi + 0x4890040], al
and al, 0xe8
cmp dword [edx], ebx
add byte [eax], al
mov dword [esp + 4], ebx
mov dword [esp], 2
call sub.cygwin1.dll_signal
mov dword [esp + 4], ebx
mov dword [esp], 3
call sub.cygwin1.dll_signal
mov eax, dword [sym.imp.cygncurses_8.dll_stdscr]
add byte [edi + 0x4890040], al
and al, 0xe8
fcomp qword [ecx]
add byte [eax], al
add esp, 0x14
pop ebx
pop ebp
ret
mov dword [esp + 8], 0
mov dword [esp + 4], 0x17
mov eax, dword [sym.imp.cygncurses_8.dll_stdscr]
add byte [edi + 0x4890040], al
and al, 0xe8
jmp 0xa14011d1
add byte [edi + 0x4890040], al
and al, 0xe8
lodsb al, byte [esi]
sbb dword [eax], eax
add al, ch
xchg dword [ecx], ebx
add byte [eax], al
mov dword [esp], 0x405019
call sub.cygwin1.dll_puts
mov eax, dword [0x404004]
mov dword [esp], eax
call fcn.00402032
mov dword [esp], 0
call sub.cygwin1.dll_exit
push ebp
mov ebp, esp
sub esp, 8
cmp dword [sym.imp.cygncurses_8.dll_stdscr], 0
add byte [edi + 0x74000040], al
invalid
call sub.cygncurses_8.dll_endwin
mov dword [esp], 0
call sub.cygwin1.dll_exit

Function at 0x40120e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call sub.cygwin1.dll___getreent
mov edx, dword [0x406430]
mov dword [esp + 8], edx
mov dword [esp + 4], str.Usage:__s___p____s__n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 1
call sub.cygwin1.dll_exit
Function at 0x40236a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, 1
cmp dword [ebp + 8], 0
je 0x402420
jmp 0x4023f9
mov dword [esp + 4], ebx
mov dword [esp], 0x405510
call sub.cygwin1.dll_printf
mov eax, ebx
inc ebx
cmp eax, 0xe
jle 0x4023ed
mov dword [esp], str.Overriding_stale_lock...
call sub.cygwin1.dll_puts
mov dword [esp], str._tmp_Greed.lock
call sub.cygwin1.dll_unlink
cmp eax, 0xffffffff
jne 0x4023ed
call sub.cygwin1.dll___getreent
mov dword [esp + 0xc], str._tmp_Greed.lock
mov edx, dword [0x406430]
mov dword [esp + 8], edx
mov dword [esp + 4], str._s:__s:_Cant_unlink_lock._n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 1
call sub.cygwin1.dll_exit
mov dword [esp], 1
call sub.cygwin1.dll_sleep
mov dword [esp + 4], 0
mov dword [esp], str._tmp_Greed.lock
call sub.cygwin1.dll_creat
cmp eax, 0xffffffff
je 0x402382
mov dword [esp], eax
call sub.cygwin1.dll_close
jmp 0x40242c
mov dword [esp], str._tmp_Greed.lock
call sub.cygwin1.dll_unlink
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x405ec3
Capabilities:
Set file attributes

Disassembly:
test edx, 0xf0000000
je 0x405ed1
and edx, 0x3fff
jmp fcn.00405e35

Function at 0x405ed6
Capabilities:
Delete directory

Disassembly:
mov eax, 0x4a97f4
call fcn.004a51d0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00408e61
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, eax
cmp ebx, 1
je 0x405f05
push edi
call esi
test eax, eax
je 0x405f05
mov al, 1
jmp 0x405f49
test ebx, ebx
je 0x405f47
lea ecx, [ebp - 0x18]
call fcn.00402ff3
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00408f6a
test al, al
push dword [ebp - 0x18]
je 0x405f41
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401e9f
test esi, esi
pop ecx
setne al
jmp 0x405f49
call fcn.00401e9f
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405f58
Capabilities:
Move file

Disassembly:
mov eax, 0x4a9810
call fcn.004a51d0
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], ecx
call fcn.00408e61
mov ecx, dword [ebp - 0x10]
mov esi, eax
call fcn.00408e61
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x14], eax
push 1
pop ebx
cmp esi, ebx
je 0x405fa1
cmp eax, ebx
je 0x405fa1
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x405fa1
mov al, bl
jmp 0x406018
test esi, esi
jne 0x405faa
cmp dword [ebp - 0x14], esi
je 0x406016
lea ecx, [ebp - 0x30]
call fcn.00402ff3
and dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00402ff3
cmp esi, ebx
mov byte [ebp - 4], bl
je 0x405fca
cmp dword [ebp - 0x14], ebx
jne 0x405fcc
xor ebx, ebx
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00409485
test al, al
push dword [ebp - 0x24]
je 0x406007
push dword [ebp - 0x30]
call edi
mov esi, eax
push dword [ebp - 0x24]
call fcn.00401e9f
push dword [ebp - 0x30]
call fcn.00401e9f
pop ecx
test esi, esi
pop ecx
setne al
jmp 0x406018
call fcn.00401e9f
push dword [ebp - 0x30]
call fcn.00401e9f
pop ecx
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4060fd
Capabilities:
Create directory

Disassembly:
mov eax, 0x4a9840
call fcn.004a51d0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00408e61
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
cmp ebx, 1
je 0x40613b
push 0
push edi
call esi
test eax, eax
je 0x40612e
mov al, 1
jmp 0x406184
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x406182
test ebx, ebx
je 0x406182
lea ecx, [ebp - 0x18]
call fcn.00402ff3
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00408f6a
test al, al
je 0x406179
push 0
push dword [ebp - 0x18]
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401e9f
test esi, esi
pop ecx
setne al
jmp 0x406184
push dword [ebp - 0x18]
call fcn.00401e9f
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4062d4
Capabilities:
Create directory

Disassembly:
mov eax, 0x4a9883
call fcn.004a51d0
sub esp, 0x7c
push ebx
push esi
push edi
mov esi, ecx
call fcn.00408e61
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 1
je 0x406319
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40630c
mov al, 1
jmp 0x406400
call ebx
cmp eax, 0xb7
je 0x4063af
test edi, edi
je 0x4063af
lea ecx, [ebp - 0x18]
call fcn.00402ff3
and dword [ebp - 4], 0
cmp edi, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.00408f6a
test al, al
je 0x4063a2
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x406355
mov bl, 1
jmp 0x40639d
call ebx
cmp eax, 0xb7
je 0x406362
xor bl, bl
jmp 0x40639d
lea ecx, [ebp - 0x50]
call fcn.00406b7c
lea ecx, [ebp - 0x28]
call fcn.00402ff3
push 0
lea ecx, [ebp - 0x50]
push dword [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004070c2
test al, al
jne 0x40638b
xor bl, bl
jmp 0x406394
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.00401e9f
pop ecx
push dword [ebp - 0x18]
jmp 0x4063f8
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call fcn.00401e9f
pop ecx
call ebx
cmp eax, 0xb7
je 0x4063bc
xor al, al
jmp 0x406400
lea ecx, [ebp - 0x88]
call fcn.00406b7c
lea ecx, [ebp - 0x60]
call fcn.00402ff3
push 0
push esi
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 2
call fcn.004070c2
test al, al
jne 0x4063ec
xor bl, bl
jmp 0x4063f5
mov ebx, dword [ebp - 0x68]
shr ebx, 4
and bl, 1
push dword [ebp - 0x60]
call fcn.00401e9f
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40640f
Capabilities:
Delete file

Disassembly:
mov eax, 0x4a9898
call fcn.004a51d0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407045
cmp eax, 0xffffffff
je 0x406443
test al, 0x10
jne 0x406443
test al, 1
je 0x406443
mov edx, eax
mov ecx, edi
and edx, 0xfffffffe
call fcn.00405e35
test al, al
je 0x4064a4
mov ecx, edi
call fcn.00408e61
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
cmp ebx, 1
je 0x406462
push edi
call esi
test eax, eax
je 0x406462
mov al, 1
jmp 0x4064a6
test ebx, ebx
je 0x4064a4
lea ecx, [ebp - 0x18]
call fcn.00402ff3
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00408f6a
test al, al
push dword [ebp - 0x18]
je 0x40649e
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401e9f
test esi, esi
pop ecx
setne al
jmp 0x4064a6
call fcn.00401e9f
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x407045
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4a9994
call fcn.004a51d0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00408e61
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x407071
push edi
call esi
cmp eax, 0xffffffff
jne 0x4070b3
test ebx, ebx
je 0x4070b0
lea ecx, [ebp - 0x18]
call fcn.00402ff3
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00408f6a
test al, al
push dword [ebp - 0x18]
je 0x4070aa
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401e9f
pop ecx
mov eax, esi
jmp 0x4070b3
call fcn.00401e9f
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4078ca
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4a9a60
call fcn.004a51d0
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
call fcn.00401519
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x18], ebx
je 0x4079a0
mov eax, SysReAllocString
cmp ebx, eax
ja 0x407906
mov eax, ebx
add eax, eax
push eax
call fcn.00401e6b
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x14], ebx
je 0x407999
cmp ebx, dword [ebp - 0x18]
ja 0x407999
lea ecx, [ebp - 0x2c]
call fcn.00402ff3
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edi
jbe 0x407981
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x407976
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.00403177
mov ecx, dword [ebp - 0x10]
lea eax, [edi + 1]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
call fcn.0044c671
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040154a
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x14]
jb 0x407944
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x2c]
call fcn.00401e9f
push esi
call fcn.00401e9f
cmp dword [ebp - 0x18], ebx
pop ecx
pop ecx
sete al
jmp 0x4079a2
push esi
call fcn.00401e9f
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x407aa0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp byte [ecx + 5], bl
push esi
je 0x407ac2
cmp byte [ecx + 6], bl
je 0x407ac2
mov eax, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 4], ecx
jmp 0x407b02
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407ae6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x407ae6
xor al, al
jmp 0x407b04
push 1
push ebx
push ebx
push dword [ebp - 4]
call fcn.004a54d0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
pop ebx
leave
ret 4
Function at 0x40a66d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edx, SysReAllocStringLen
mov eax, dword [esi]
mov dword [esi + 4], ebx
lea ecx, [ebp - 0x14]
and byte [eax], bl
call fcn.004a59b0
cmp dword [ebp - 0x14], 0x80000004
jb 0x40a6c6
lea edx, [ebx - 0x7ffffffe]
lea ecx, [ebp - 0x14]
call fcn.004a59b0
lea edi, [ebp - 0x14]
mov dword [ebp - 4], 4
mov edx, dword [edi]
mov ecx, esi
call fcn.0040a711
add edi, 4
dec dword [ebp - 4]
jne 0x40a6af
inc ebx
cmp ebx, 3
jb 0x40a697
mov ecx, esi
call fcn.00402c3d
mov ecx, esi
call fcn.00402c00
cmp dword [esi + 4], 0
jne 0x40a70c
xor edx, edx
lea ecx, [ebp - 0x14]
call fcn.004a59b0
push 1
pop edi
mov eax, edi
mov ecx, esi
shr eax, 1
xor eax, edi
mov edx, dword [ebp + eax*4 - 0x14]
call fcn.0040a711
inc edi
cmp edi, 4
jb 0x40a6e7
mov ecx, esi
call fcn.00402c3d
mov ecx, esi
call fcn.00402c00
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413af1
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x4aa1af
call fcn.004a51d0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00402ff3
and dword [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.00402ff3
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.00402ff3
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.00402ff3
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.00402ff3
and byte [esi + 0x3c], 0
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 4
call fcn.00402ff3
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 5
call fcn.00402ff3
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x41430c
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x4aa2bb
call fcn.004a51d0
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0040310b
and dword [ebp - 4], 0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.0040310b
lea eax, [edi + 0x18]
lea ecx, [esi + 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.0040310b
lea eax, [edi + 0x24]
lea ecx, [esi + 0x24]
push eax
mov byte [ebp - 4], 2
call fcn.0040310b
lea eax, [edi + 0x30]
lea ecx, [esi + 0x30]
push eax
mov byte [ebp - 4], 3
call fcn.0040310b
mov al, byte [edi + 0x3c]
lea ecx, [esi + 0x40]
mov byte [esi + 0x3c], al
lea eax, [edi + 0x40]
push eax
mov byte [ebp - 4], 4
call fcn.0040310b
add edi, 0x4c
lea ecx, [esi + 0x4c]
push edi
mov byte [ebp - 4], 5
call fcn.0040310b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x419e8c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx + 4]
push ebx
push esi
mov esi, dword [ecx]
xor edx, edx
push edi
test eax, eax
mov ebx, 0x159a55e5
mov edi, 0x1f123bb5
mov dword [ebp - 4], eax
jbe 0x419edc
mov eax, 0xffff
mov ecx, ebx
and ecx, eax
imul ecx, ecx, 0x9069
shr ebx, 0x10
add ebx, ecx
mov ecx, edi
and ecx, eax
imul ecx, ecx, 0x4650
shr edi, 0x10
add edi, ecx
mov ecx, edi
xor cl, byte [ebp + 8]
mov byte [edx + esi], cl
inc edx
cmp edx, dword [ebp - 4]
jb 0x419eb0
pop edi
pop esi
pop ebx
leave
ret 4