joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10085430
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1008e330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1007380a
mov dword [ebp - 0x14], eax
cmp dword [0x13c6b014], esi
jne 0x10085523
push 0x800
push esi
push 0x100084b8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x100854b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10085603
push esi
push esi
push 0x100084b8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10085603
push 0x100084d0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10085603
push eax
call ebx
push 0x100084dc
push edi
mov dword [0x13c6b014], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100084ec
push edi
mov dword [0x13c6b018], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10008500
push edi
mov dword [0x13c6b01c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x13c6b024], eax
test eax, eax
je 0x10085520
push 0x1000851c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x13c6b020], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10085548
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1008553b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1008555d
push 4
pop eax
jmp 0x10085605
cmp dword [ebp - 0x14], esi
je 0x1008555d
push dword [0x13c6b014]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10085542
mov eax, dword [0x13c6b020]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x100855bb
cmp dword [0x13c6b024], edi
je 0x100855bb
push eax
call ebx
push dword [0x13c6b024]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x100855bb
test eax, eax
je 0x100855bb
call ecx
test eax, eax
je 0x100855b0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x100855b0
test byte [ebp - 8], 1
jne 0x100855bb
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x100855eb
mov eax, dword [0x13c6b018]
cmp eax, edi
je 0x100855e8
push eax
call ebx
test eax, eax
je 0x100855e8
call eax
mov esi, eax
test esi, esi
je 0x100855e8
mov eax, dword [0x13c6b01c]
cmp eax, edi
je 0x100855e8
push eax
call ebx
test eax, eax
je 0x100855e8
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x13c6b014]
call ebx
test eax, eax
je 0x10085603
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10085605
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006f799
mov esp, ebp
pop ebp
ret
Function at 0x406cda
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44dcd0]
jne 0x406ce4
repz ret
jmp fcn.0040e185

Function at 0x413b3b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040b4a1
and dword [ebp - 4], 0
cmp dword [0x44f93c], 0
mov ebx, eax
jne 0x413bec
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413c9d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413c9d
push eax
call fcn.0040b42f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44f93c], eax
call esi
push eax
call fcn.0040b42f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44f940], eax
call esi
push eax
call fcn.0040b42f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44f944], eax
call esi
push eax
call fcn.0040b42f
pop ecx
mov dword [0x44f94c], eax
test eax, eax
je 0x413bec
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040b42f
pop ecx
mov dword [0x44f948], eax
mov eax, dword [0x44f948]
cmp eax, ebx
je 0x413c44
cmp dword [0x44f94c], ebx
je 0x413c44
push eax
call fcn.0040b4aa
push dword [0x44f94c]
mov esi, eax
call fcn.0040b4aa
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413c44
test edi, edi
je 0x413c44
call esi
test eax, eax
je 0x413c3b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413c3b
test byte [ebp - 0xc], 1
jne 0x413c44
or dword [ebp + 0x10], 0x200000
jmp 0x413c7d
mov eax, dword [0x44f940]
cmp eax, ebx
je 0x413c7d
push eax
call fcn.0040b4aa
pop ecx
test eax, eax
je 0x413c7d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413c7d
mov eax, dword [0x44f944]
cmp eax, ebx
je 0x413c7d
push eax
call fcn.0040b4aa
pop ecx
test eax, eax
je 0x413c7d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44f93c]
call fcn.0040b4aa
pop ecx
test eax, eax
je 0x413c9d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413c9f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a7c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
rcl esi, 0x5b
sub edx, 0x9f
dec edx
or ebx, 0xe8
dec ebx
mov ebx, 0x18
rol ebx, 0xb4
sub edx, 0xbd
or esi, 0x24
imul esi
neg edx
inc ebx
sub edx, 0x4a
rol esi, 0xb5
add edx, 0x3a
bswap esi
inc esi
and eax, 0x8e
imul edi
or eax, 0x8e
or eax, 0xe2
dec eax
rcr edi, 0xaf
not esi
inc eax
imul edx
inc esi
rcl ebx, 0xf1
rcr eax, 0x10
inc ebx
ror eax, 0x4a
imul esi
imul ebx
ror edi, 0x60
or edx, 0xa2
imul eax
dec esi
not esi
ror ebx, 0x29
dec esi
or edi, 0xb8
imul eax
rcl esi, 0x70
sbb edi, 0x8e
or ebx, 0x7e
and esi, 0x51
bswap eax
or edx, 0x50
dec esi
dec ebx
mov byte [ebp - 0x20], 0x8f
mov byte [ebp - 0x1f], 0xed
mov byte [ebp - 0x1e], 0x48
mov byte [ebp - 0x1d], 0x6c
mov byte [ebp - 0x1c], 0x91
mov byte [ebp - 0x1b], 0xb9
mov byte [ebp - 0x1a], 0xe9
mov byte [ebp - 0x19], 0xf1
mov byte [ebp - 0x18], 0x28
mov byte [ebp - 0x17], 0xad
mov byte [ebp - 0x16], 0x5b
mov byte [ebp - 0x15], 0x83
mov byte [ebp - 0x14], 0x38
mov byte [ebp - 0x13], 0x9f
mov byte [ebp - 0x12], 0xa4
mov byte [ebp - 0x11], 0x9c
mov byte [ebp - 0x10], 0x97
mov byte [ebp - 0xf], 0x74
mov byte [ebp - 0xe], 0x57
mov byte [ebp - 0xd], 0xe1
mov byte [ebp - 0xc], 0x42
mov byte [ebp - 0xb], 0xfa
mov byte [ebp - 0xa], 0xc
mov byte [ebp - 9], 0xe4
mov byte [ebp - 8], 0xb4
mov byte [ebp - 7], 0xfc
mov byte [ebp - 6], 0x18
mov byte [ebp - 5], 0xd1
mov byte [ebp - 4], 0x7c
mov byte [ebp - 3], 0x2d
mov byte [ebp - 2], 0xf6
mov byte [ebp - 1], 0xbf
mov dword [ebp - 0x24], 0x20
rcl esi, 0x5b
sub edx, 0x9f
dec edx
or ebx, 0xe8
dec ebx
mov ebx, 0x18
rol ebx, 0xb4
sub edx, 0xbd
or esi, 0x24
imul esi
neg edx
inc ebx
sub edx, 0x4a
rol esi, 0xb5
add edx, 0x3a
bswap esi
inc esi
and eax, 0x8e
imul edi
or eax, 0x8e
or eax, 0xe2
dec eax
rcr edi, 0xaf
not esi
inc eax
imul edx
inc esi
rcl ebx, 0xf1
rcr eax, 0x10
inc ebx
ror eax, 0x4a
imul esi
imul ebx
ror edi, 0x60
or edx, 0xa2
imul eax
dec esi
not esi
ror ebx, 0x29
dec esi
or edi, 0xb8
imul eax
rcl esi, 0x70
sbb edi, 0x8e
or ebx, 0x7e
and esi, 0x51
bswap eax
or edx, 0x50
dec esi
dec ebx
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0041a4f0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x76f031
Capabilities:
Encode data using xor

Disassembly:
jecxz 0x76f04a
ret
adc bh, byte [eax - 0x4c]
add dword [ebx], edi
jae 0x76f091
arpl word [esi], di
mov ebp, dword [0xf397c3ec]
inc eax
std
hlt
jge 0x76f05f
loopne 0x76f057
fcomp dword [edx + 0x16317044]
test dword gs:[edi - 0x9d1839e], ebx
bound edi, qword [esi + ebp - 0xa]
cmp byte [edi + edx*4], bl
jp 0x76f0be
pop esi
les edi, [ecx]
int1
push edx
out 0xf, al
mov edi, 0x87bc6fe5
ret 0xbb03
pop edi
loope 0x76f0c5
adc ecx, edx
pushfd
xlatb
lds edx, [edx + ebx*4 - 0x64ecec82]
wait
pushal
xchg esi, eax
dec ebp
in al, dx
adc eax, 0xc24bb16b
leave
push ss
scasb al, byte es:[edi]
sbb al, 0x85
loope 0x76f035
push ebx
pop edx
cmpsb byte [esi], byte es:[edi]
stosb byte es:[edi], al
scasd eax, dword es:[edi]
invalid
inc ebp
shl dword [ebx + 0x3f67b6d3], 0x92
aas
xchg edx, eax
outsb dx, byte [esi]
jecxz 0x76f084
sub ebx, dword [edx]
pop ds
inc esp
mov dh, 0x4e
dec esi
scasb al, byte es:[edi]
jle 0x76f0ce
jnp 0x76f0fb
jns 0x76f0a7
jae 0x76f0a6
int 0x5b
pop ebx
jbe 0x76f0c4
inc esp
pop ebp
inc eax
fnsave dword [edi]
jb 0x76f115
invalid
xor dword [ebx + 0x5b93645b], edx
in eax, dx
aam 0x68
salc
adc dword [esi], ecx
sub esp, esp
test eax, 0x61ab844c
pop ebp
xchg dword [edx + 3], ebp
add al, 0xb1
add eax, dword [ecx + esi*4]
jp 0x76f0e5
sbb esp, ebx
retf 0xaacf
push ds
mov fs, word [ecx - 0x29d9c88a]
mov cl, 0x30
mov ch, 0x77
xchg edi, eax
mov byte [0x7d357e04], al
mov dh, 0x8b
push esi
xchg ecx, eax
test dword [edi - 0x584b450a], ebx
jge 0x76f0d8
outsd dx, dword [esi]
push edx
add al, 0x61
adc al, 0xd6
adc eax, 0x8623f591
jb 0x76f1b1
mov ch, 0xf4
inc esi
out 0x4f, al
invalid
ljmp 0x79b7:0x3596116b
Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2b0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402c93
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406488
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2b0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a2b0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x4030bb
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x4030db
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x4030ea
mov ebx, 0x410ea0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4030ff
mov ecx, dword [0x42a258]
add ecx, eax
push ecx
call fcn.004032b6
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004032a0
test eax, eax
je 0x403257
test byte [ebp + 0x17], 0x80
je 0x403240
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40ce10
mov dword [ebp - 0xc], eax
call fcn.004065a7
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403296
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x40314f
mov esi, dword [ebp + 0x14]
mov edi, 0x40cea0
push esi
push edi
call fcn.004032a0
test eax, eax
je 0x403257
sub dword [ebp + 0x14], esi
mov dword [0x40ce28], edi
mov dword [0x40ce2c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40ce10
mov dword [0x40ce30], ebx
mov dword [0x40ce34], eax
call fcn.004065c7
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x403238
mov esi, dword [0x40ce30]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x42a2b4], 1
mov edi, eax
je 0x4031f7
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x4031be
cmp dword [ebp + 0x14], 0
jne 0x4031f7
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x90]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
push 0
call fcn.0040520d
mov dword [ebp - 0xc], edi
test esi, esi
je 0x40322c
cmp dword [ebp + 0x10], 0
jne 0x403214
push esi
push ebx
push dword [ebp + 0xc]
call fcn.00405d35
test eax, eax
je 0x40323c
add dword [ebp - 4], esi
jmp 0x403220
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40ce30]
cmp dword [ebp - 0x10], 1
jne 0x403172
jmp 0x403296
cmp dword [ebp + 0x14], 0
jg 0x403142
jmp 0x403296
push 0xfffffffffffffffc
jmp 0x403259
push 0xfffffffffffffffe
jmp 0x403259
test edi, edi
je 0x40328b
cmp dword [ebp + 0x14], esi
jge 0x40324c
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004032a0
test eax, eax
jne 0x403293
push 0xfffffffffffffffd
pop eax
jmp 0x403299
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403267
mov esi, dword [ebp + 0x14]
mov edi, 0x40cea0
push esi
push edi
call fcn.004032a0
test eax, eax
je 0x403257
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405d35
test eax, eax
je 0x40323c
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x40325c
jmp 0x403296
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4056dc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40572d
xor eax, eax
jmp 0x405754
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405754
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x405729
call esi
pop esi
leave
ret 4

Function at 0x40578e
Capabilities:
Create process on windows

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

Function at 0x405857
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405c5e
mov edi, eax
cmp edi, 0xffffffff
je 0x405898
test byte [esp + 0x10], 1
push esi
je 0x40587a
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405880
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405889
xor eax, eax
inc eax
jmp 0x40589a
test byte [esp + 0x10], 4
jne 0x405898
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x40589f
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405b6a
test bl, 8
mov dword [ebp - 8], eax
je 0x4058de
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42a288], eax
jmp 0x405a5b
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4058f8
test eax, eax
je 0x405a09
test bl, 2
je 0x405a09
mov esi, 0x4256f0
push edi
push esi
call fcn.004060ae
cmp dword [ebp + 8], 0
je 0x405917
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x40591d
push edi
call fcn.00405aae
cmp word [edi], 0
jne 0x40592d
cmp word [0x4256f0], 0x5c
jne 0x405938
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4059fe
cmp word [ebp - 0x22c], 0x2e
jne 0x405982
cmp word [ebp - 0x22a], 0
je 0x4059e1
cmp word [ebp - 0x22a], 0x2e
jne 0x405982
cmp word [ebp - 0x228], 0
je 0x4059e1
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.004060ae
test byte [ebp - 0x258], 0x10
je 0x4059ad
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4059e1
push dword [ebp + 0xc]
push edi
call fcn.0040589f
jmp 0x4059e1
push dword [ebp - 4]
push edi
call fcn.00405857
test eax, eax
jne 0x4059d9
cmp dword [ebp - 4], eax
je 0x4059d1
push edi
push 0xfffffffffffffff1
call fcn.0040520d
push 0
push edi
call fcn.00405f4f
jmp 0x4059e1
inc dword [0x42a288]
jmp 0x4059e1
push edi
push 0xfffffffffffffff2
call fcn.0040520d
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40595a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405a09
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405a5b
cmp dword [ebp - 8], esi
jne 0x405a1d
inc dword [0x42a288]
jmp 0x405a5b
push edi
call fcn.004063f1
test eax, eax
je 0x405a5b
push edi
call fcn.00405a62
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405857
test eax, eax
jne 0x405a53
cmp dword [ebp - 4], esi
je 0x405a15
push edi
push 0xfffffffffffffff1
call fcn.0040520d
push esi
push edi
call fcn.00405f4f
jmp 0x405a5b
push edi
push 0xffffffffffffffe5
call fcn.0040520d
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405b6a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425ef0
push esi
call fcn.004060ae
push esi
call fcn.00405b0d
mov edi, eax
test edi, edi
jne 0x405b8b
xor eax, eax
jmp 0x405be3
push edi
call fcn.00406342
test byte [0x42a218], 0x80
je 0x405ba8
mov ax, word [edi]
test ax, ax
je 0x405b87
cmp ax, 0x5c
je 0x405b87
sub edi, esi
sar edi, 1
jmp 0x405bc2
call fcn.004063f1
test eax, eax
je 0x405bbc
test byte [eax], 0x10
je 0x405b87
push esi
call fcn.00405aae
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405bae
call fcn.00405a62
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405c5e
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405c7d
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405c83
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405cb2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a550]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a554]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405d02
test edi, edi
jne 0x405cbf
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405cfc
Function at 0x405ddd
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, 0x426d88
push 0x40a574
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405e2b
push 1
push 0
push esi
call fcn.00405c83
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x405f4a
cmp eax, edi
jg 0x405f4a
mov esi, 0x427588
push edi
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x405f4a
cmp eax, edi
jg 0x405f4a
push esi
push ebx
push str._ls_ls_r_n
push 0x426988
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42a210]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004060d0
push 4
push 0xc0000000
push esi
call fcn.00405c83
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405f4a
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405f43
push edi
push esi
push ebp
call fcn.00405d06
test eax, eax
je 0x405f43
push str._Rename__r_n
push esi
call fcn.00405be8
test eax, eax
jne 0x405ee1
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405f16
add eax, 0xa
push 0x40a558
push eax
call fcn.00405be8
mov ebp, eax
test ebp, ebp
je 0x405f12
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405f03
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405efd
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405f18
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x426988
push eax
call fcn.00405c3e
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405d35
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405f4f
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x405f72
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405ddd
pop ecx
pop ecx
inc dword [0x42a290]
ret 8
Function at 0x405f7b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov word [esi], di
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405fef
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x800
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405fdc
cmp dword [ebp + 0x14], 1
je 0x405fdf
cmp dword [ebp + 0x14], 2
je 0x405fdf
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x7fe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14