joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f810
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.00429ef0
test eax, eax
je 0x42f8ff
mov ecx, edi
call fcn.00429ef0
mov ecx, eax
call fcn.004274a0
test eax, eax
jne 0x42f8ff
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42f8ff
mov eax, dword [0x640190]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x42f872
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.00429ef0
mov ecx, eax
call fcn.004276d0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x42f8ff
cmp ebx, eax
jne 0x42f8ff
cmp dword [esp + 0x10], eax
jne 0x42f8e5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x432690
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47f348
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4326c9
inc eax
mov dword [esi + 0x10], eax
jmp 0x4327dc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4326dd
mov eax, 0xffffffc7
jmp 0x4327de
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4326ee
cmp dword [esi + 8], eax
jne 0x4326dd
cmp dword [esi + 8], eax
jne 0x432707
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x432707
mov eax, 0xffffffc7
jmp 0x4327de
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43271b
push eax
mov ecx, ebx
call fcn.00431ec0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00403540
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43274c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00403560
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00431630
test eax, eax
mov dword [esp + 0x38], eax
je 0x43277f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x611c50
call fcn.00403740
mov eax, dword [esp + 0x38]
jmp 0x4327de
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004324f0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4327c3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00432510
mov esi, eax
test esi, esi
jne 0x4327f3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004324f0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x432795
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x611c50
call fcn.00403740
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x611c50
call fcn.00403740
mov eax, esi
jmp 0x4327de

Function at 0x4371e0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x437240
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x437240
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x437240
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x437240
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x437280
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x442de0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47fc38
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.0047870d
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00442740
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.0047863b
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.00474eff
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.00474eff
push 1
push 0
push 0
mov ecx, esi
call fcn.00474ea7
push 1
push 0
push 1
mov ecx, esi
call fcn.00474ea7
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047877f
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x442f60
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47fc58
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.0047870d
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00442740
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.0047863b
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 0x443024
cmp dword [esp + 0x40], 1
jne 0x443022
cmp ecx, eax
jge 0x443024
mov eax, ecx
cmp eax, 0xc8
jge 0x443030
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00442de0
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.0047877f
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x443820
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47fd03
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.0047331d
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.004789b5
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00479ed1
test eax, eax
je 0x44393c
mov ecx, dword [esp + 0x3c]
call fcn.004789e2
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 0x443900
push edi
mov ecx, esi
call fcn.00476046
mov ecx, esi
call fcn.00443ae0
cmp dword [esp + 0x38], 1
jne 0x443935
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.00476181
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 0x445b20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x445b53
push esi
call fcn.00453ed0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x445b4c
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 0x445bd9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x445bc2
mov eax, dword [esi + 8]
test eax, eax
je 0x445b77
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 0x445bbe
cmp eax, 2
je 0x445bc2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x445b6a
cmp eax, 3
je 0x445b9d
cmp eax, 1
jne 0x445b6a
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 0x445b6a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x445b6a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00445c00
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x445be8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00445c00
add esp, 4
pop esi
ret

Function at 0x446480
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4464a1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4464a1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4464a1
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 0x474112
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47414a
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.004721c9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004721a1
jmp 0x474156
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x475803
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 0x475845
call fcn.0047b2b7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x475845
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47583c
xor eax, eax
jmp 0x47584d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00475853
pop edi
pop esi
pop ebx
ret 4
Function at 0x47b7e7
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 0x47b815
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47b833
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047b74d
jmp 0x47b833
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47b833
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047b74d
test edi, edi
mov eax, edi
jne 0x47b81d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408e84
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x33a93923
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x39562946
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x40141e
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x110
lea eax, [esp]
push ebp
push esi
mov esi, dword [esp + 0x124]
push edi
mov edi, dword [esp + 0x128]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or eax, 9
push eax
push dword [esp + 0x12c]
push dword [esp + 0x12c]
call fcn.0040602d
test eax, eax
jne 0x401527
xor ebp, ebp
test byte [esp + 0x128], 2
je 0x401493
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebp
push eax
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x401503
push 0x105
lea eax, [esp + 0x18]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x4014ce
test edi, edi
jne 0x401503
push dword [esp + 0x128]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call fcn.0040141e
test eax, eax
jne 0x4014d8
push 0x105
lea eax, [esp + 0x18]
push eax
push edi
push dword [esp + 0x18]
call ebp
test eax, eax
je 0x4014a6
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065c8
test eax, eax
jne 0x401514
push dword [esp + 0x124]
push dword [esp + 0x124]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x401527
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x401527
push 0
push esi
push dword [esp + 0x12c]
push dword [esp + 0x12c]
call eax
pop edi
pop esi
pop ebp
add esp, 0x110
ret 0xc
Function at 0x402f57
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x50
mov ecx, dword [esp + 0x54]
mov eax, 0x421118
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x6c]
mov ebx, 0x8000
test edi, edi
cmovne ebx, dword [esp + 0x70]
xor esi, esi
test edi, edi
cmovne eax, edi
mov dword [esp + 0x10], eax
test ecx, ecx
js 0x402f93
mov eax, dword [0x42ed38]
add eax, ecx
push eax
call fcn.00402f40
push 4
lea eax, [esp + 0x70]
push eax
push dword [0x40a010]
call fcn.0040662a
test eax, eax
je 0x403173
mov eax, dword [esp + 0x6c]
test eax, eax
jns 0x40311b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [0x40ba84], esi
and dword [0x40ba80], esi
mov dword [esp + 0x70], eax
mov eax, 0x40d108
mov dword [0x415110], eax
mov dword [0x41510c], eax
mov eax, dword [esp + 0x6c]
and eax, 0x7fffffff
mov dword [0x40b568], 8
mov ecx, eax
mov dword [0x415108], 0x415108
mov dword [esp + 0x14], eax
mov dword [esp + 0x6c], ecx
jbe 0x403113
mov ebp, 0x4000
cmp ecx, ebp
cmovl ebp, ecx
push ebp
push 0x41d118
call fcn.00402f2a
test eax, eax
je 0x403173
sub dword [esp + 0x6c], ebp
mov dword [0x40b55c], ebp
mov ebp, dword [esp + 0x10]
mov dword [0x40b558], 0x41d118
push 0x40b558
mov dword [0x40b560], ebp
mov dword [0x40b564], ebx
call fcn.00406eff
mov dword [esp + 0x1c], eax
test eax, eax
js 0x403117
mov eax, dword [0x40b560]
sub eax, ebp
mov dword [esp + 0x64], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x42edd4], 1
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
je 0x4030cf
sub eax, dword [esp + 0x70]
cmp eax, 0xc8
ja 0x403093
test ecx, ecx
jne 0x4030cf
mov eax, dword [esp + 0x14]
push eax
push 0x64
sub eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [esp + 0x24]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push 0
call fcn.00405a87
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x64]
test eax, eax
je 0x40310b
test edi, edi
jne 0x4030f0
push eax
push ebp
push dword [esp + 0x70]
call fcn.004066e9
test eax, eax
je 0x40315b
mov eax, dword [esp + 0x64]
jmp 0x4030fc
mov ebp, dword [0x40b560]
sub ebx, eax
mov dword [esp + 0x10], ebp
add esi, eax
cmp dword [esp + 0x1c], 1
jne 0x403040
jmp 0x403113
test ecx, ecx
jg 0x40300b
mov eax, esi
jmp 0x403176
push 0xfffffffffffffffc
jmp 0x403175
test edi, edi
jne 0x40315f
test eax, eax
jle 0x403113
mov ebp, 0x41d118
cmp eax, ebx
mov edi, ebx
cmovl edi, eax
push edi
push ebp
call fcn.00402f2a
test eax, eax
je 0x403173
push edi
push ebp
push dword [esp + 0x70]
call fcn.004066e9
test eax, eax
je 0x40315b
mov eax, dword [esp + 0x6c]
add esi, edi
sub eax, edi
mov dword [esp + 0x6c], eax
test eax, eax
jg 0x403128
jmp 0x403113
push 0xfffffffffffffffe
jmp 0x403175
mov esi, dword [esp + 0x70]
cmp eax, esi
cmovl esi, eax
push esi
push edi
call fcn.00402f2a
test eax, eax
jne 0x403113
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x10
Function at 0x403180
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 4], 0
je 0x40319f
mov eax, dword [0x40b550]
test eax, eax
je 0x403197
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x40b550], 0
ret
cmp dword [0x40b550], 0
je 0x4031b0
push 0
call fcn.00405f9a
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x42ece0]
jbe 0x4031e3
push 0
push 0x403446
push 0
push 0x6f
push dword [0x42e4d4]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 5
push eax
mov dword [0x40b550], eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x405baf
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405bc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4
Function at 0x405f2d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
lea eax, [ebp - 0x120]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
ja 0x405f67
test eax, eax
je 0x405f67
lea eax, [ebp + eax - 0x120]
cmp byte [eax - 1], 0x5c
je 0x405f6d
mov ecx, 0x408298
jmp 0x405f72
lea eax, [ebp - 0x120]
mov ecx, 0x408299
push dword [ebp + 8]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x405fc8
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405feb
push dword [esp + 8]
push dword [esp + 8]
call fcn.0040605b
pop ecx
pop ecx
inc dword [0x42edb0]
ret 8

Function at 0x40605b
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x42c1a0], 0x4c554e
mov ebp, 0x42c1a0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
je 0x4060a7
push 1
push 0
push esi
call fcn.004065fd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x406187
cmp eax, ebx
jg 0x406187
push ebx
mov esi, 0x42bda0
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x406187
cmp eax, ebx
jg 0x406187
push esi
push ebp
push str._s_s_r_n
push 0x42b9a0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x42ecf0]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.00405c2a
push 4
push 0xc0000000
push esi
call fcn.004065fd
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406187
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x406180
push esi
push edi
push ebx
call fcn.0040662a
test eax, eax
je 0x406180
push str._Rename__r_n
push edi
call fcn.00406809
test eax, eax
jne 0x40618c
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x42b9a0
lea eax, [ecx + edi]
push eax
call fcn.0040637b
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.004066e9
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x408704
add eax, 0xa
push eax
call fcn.00406809
mov ecx, eax
test ecx, ecx
je 0x406151
lea edx, [edi + esi]
jmp 0x4061ab
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x4061a5
sub ecx, edi
inc ecx
jmp 0x406153
Function at 0x406256
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.00406870
mov edi, eax
cmp edi, 0xffffffff
je 0x406299
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x40627a
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x406280
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x406289
xor eax, eax
inc eax
jmp 0x40629b
test byte [ebp + 0xc], 4
jne 0x406299
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop ebp
ret 8

Function at 0x406304
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x42b5a0
push ebx
call fcn.004067ed
push ebx
call fcn.00406898
mov esi, eax
test esi, esi
je 0x406374
push esi
call fcn.004069d0
test byte [0x42ecec], 0x80
je 0x40633a
mov al, byte [esi]
test al, al
je 0x406374
cmp al, 0x5c
je 0x406374
sub esi, ebx
jmp 0x406352
call fcn.004062a0
test eax, eax
je 0x40634c
test byte [eax], 0x10
je 0x406374
push ebx
call fcn.004069a5
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
cmp eax, esi
jg 0x40633e
call fcn.00406229
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406374
xor eax, eax
inc eax
jmp 0x406376
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x40639d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x42b158], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x42b158
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4063dc
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4