joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4598c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, ecx
push edi
push 0
push 0x78
mov edi, edx
push ebx
mov dword [ebp - 4], edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x79
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor esi, esi
movsx eax, word [edi + 0x12]
cmp esi, eax
jne 0x459938
push 2
push 0x80
call fcn.0047b099
mov edi, eax
add esp, 8
mov eax, dword [ebp - 4]
mov ecx, edi
movsx edx, word [eax + esi*2]
call fcn.00459800
push edi
lea ecx, [esi + 0x6e]
push ecx
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
call fcn.0047b0af
mov edi, dword [ebp - 4]
add esp, 4
push 1
lea eax, [esi + 0x6e]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
inc esi
cmp esi, 8
jl 0x4598f2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46b5c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, edx
push 0
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], eax
push ecx
cmp dword [esi + 0x2a4], 0
lea ecx, [ebp - 1]
push 1
push ecx
push eax
setne byte [ebp - 1]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46b69e
cmp byte [ebp - 1], 0
push edi
je 0x46b691
mov esi, dword [esi + 0x2a4]
mov edi, dword [0x4b70e4]
cmp edi, esi
je 0x46b678
test esi, esi
jne 0x46b617
xor ecx, ecx
jmp 0x46b61d
mov ecx, dword [esi + 0x1d8]
cmp dword [0x4b70e8], ecx
je 0x46b641
mov dword [0x4b70ec], 0
test ecx, ecx
je 0x46b63b
mov eax, dword [ecx + 0x7c]
mov dword [0x4b70ec], eax
mov dword [0x4b70e8], ecx
mov dword [0x4b70e4], esi
test esi, esi
je 0x46b65e
mov eax, dword [esi + 0x1d0]
mov dword [0x4b70c4], eax
mov eax, dword [esi + 0x1d4]
jmp 0x46b66a
mov dword [0x4b70c4], 0
xor eax, eax
push eax
mov dword [0x4b70bc], eax
call dword [sym.imp.MMFS2.dll_Ordinal_831]
mov esi, edi
mov ecx, dword [ebp - 8]
call fcn.0044ff60
mov ecx, esi
mov edi, eax
call fcn.00402c30
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, 1
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46b6b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
mov byte [ebp - 1], 0
xor edi, edi
lea ecx, [ebp - 0x10]
push edi
push ecx
push 1
lea ecx, [ebp - 1]
mov eax, edx
push ecx
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46b739
cmp byte [ebp - 1], 0
je 0x46b734
push dword [ebx + 0x2ac]
mov edx, dword [ebx + 0x44]
mov ecx, ebx
push edi
call fcn.0046aa80
mov ecx, dword [ebx + 0x2a4]
add esp, 8
test ecx, ecx
je 0x46b739
call fcn.00402c30
mov ecx, dword [ebx + 0x2a4]
xor edx, edx
mov esi, eax
call fcn.00406ba0
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 8]
mov dword [ebp - 8], edi
call fcn.00451bc0
mov ecx, esi
mov edi, eax
call fcn.00402c30
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46c8c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4b3ca0]
xor eax, ebp
mov dword [ebp - 4], eax
push 6
lea eax, [ebp - 0xc]
push eax
movzx eax, word [ebp + 8]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x46c908
push 0xa
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.0048565a
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004775a3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004775a3
mov esp, ebp
pop ebp
ret
Function at 0x473040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b6380]
push edi
test eax, eax
je 0x4730b9
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x4730b9
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x4730b9
push esi
mov esi, dword [ebp + 0xc]
push 5
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4730a1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4730a1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4730a1
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
pop esi
pop edi
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [edi + 0x54]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0x18
xor eax, eax
pop edi
pop ebp
ret 0x18

Function at 0x4730c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b6380]
push edi
test eax, eax
je 0x473139
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x473139
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x473139
push esi
mov esi, dword [ebp + 0xc]
push 5
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x473121
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x473121
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x473121
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
pop esi
pop edi
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [edi + 0x58]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0x18
xor eax, eax
pop edi
pop ebp
ret 0x18

Function at 0x473140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b6380]
push edi
test eax, eax
je 0x4731b9
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x4731b9
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x4731b9
push esi
mov esi, dword [ebp + 0xc]
push 5
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4731a1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4731a1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4731a1
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
pop esi
pop edi
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [edi + 0x4c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0x18
xor eax, eax
pop edi
pop ebp
ret 0x18
Function at 0x4731c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b6380]
push edi
test eax, eax
je 0x473239
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x473239
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x473239
push esi
mov esi, dword [ebp + 0xc]
push 5
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x473221
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x473221
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x473221
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
pop esi
pop edi
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [edi + 0x50]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0x18
xor eax, eax
pop edi
pop ebp
ret 0x18

Function at 0x4734c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b6380]
push edi
test eax, eax
je 0x473524
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x473524
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x473524
push esi
mov esi, dword [ebp + 0xc]
push 4
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x473515
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x473515
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x473515
push eax
call dword [sym.imp.USER32.dll_LoadMenuIndirectW]
test eax, eax
jne 0x47351e
push dword [ebp + 0x10]
mov eax, dword [edi + 0x3c]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0xc
xor eax, eax
pop edi
pop ebp
ret 0xc

Function at 0x473530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b6380]
push edi
test eax, eax
je 0x473594
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x473594
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x473594
push esi
mov esi, dword [ebp + 0xc]
push 4
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x473585
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x473585
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x473585
push eax
call dword [sym.imp.USER32.dll_LoadMenuIndirectW]
test eax, eax
jne 0x47358e
push dword [ebp + 0x10]
mov eax, dword [edi + 0x40]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0xc
xor eax, eax
pop edi
pop ebp
ret 0xc

Function at 0x47ed22
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047ebbd
Function at 0x403116
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 0x403136
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x403145
mov ebx, 0x410ea0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x40315a
mov ecx, dword [0x42a278]
add ecx, eax
push ecx
call fcn.00403311
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004032fb
test eax, eax
je 0x4032b2
test byte [ebp + 0x17], 0x80
je 0x40329b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40ce10
mov dword [ebp - 0xc], eax
call fcn.004067bf
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4032f1
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x4031aa
mov esi, dword [ebp + 0x14]
mov edi, 0x40cea0
push esi
push edi
call fcn.004032fb
test eax, eax
je 0x4032b2
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.004067df
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x403293
mov esi, dword [0x40ce30]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x42a2d4], 1
mov edi, eax
je 0x403252
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x403219
cmp dword [ebp + 0x14], 0
jne 0x403252
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.004052ec
mov dword [ebp - 0xc], edi
test esi, esi
je 0x403287
cmp dword [ebp + 0x10], 0
jne 0x40326f
push esi
push ebx
push dword [ebp + 0xc]
call fcn.00405e2c
test eax, eax
je 0x403297
add dword [ebp - 4], esi
jmp 0x40327b
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40ce30]
cmp dword [ebp - 0x10], 1
jne 0x4031cd
jmp 0x4032f1
cmp dword [ebp + 0x14], 0
jg 0x40319d
jmp 0x4032f1
push 0xfffffffffffffffc
jmp 0x4032b4
push 0xfffffffffffffffe
jmp 0x4032b4
test edi, edi
je 0x4032e6
cmp dword [ebp + 0x14], esi
jge 0x4032a7
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004032fb
test eax, eax
jne 0x4032ee
push 0xfffffffffffffffd
pop eax
jmp 0x4032f4
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x4032c2
mov esi, dword [ebp + 0x14]
mov edi, 0x40cea0
push esi
push edi
call fcn.004032fb
test eax, eax
je 0x4032b2
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405e2c
test eax, eax
je 0x403297
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x4032b7
jmp 0x4032f1
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4057bb
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f0
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], 0x4083e0
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40580c
xor eax, eax
jmp 0x405833
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405833
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x405808
call esi
pop esi
leave
ret 4

Function at 0x40586d
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 0x4058ac
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4058b0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405d55
mov edi, eax
cmp edi, 0xffffffff
je 0x40598f
test byte [esp + 0x10], 1
push esi
je 0x405971
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405977
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405980
xor eax, eax
inc eax
jmp 0x405991
test byte [esp + 0x10], 4
jne 0x40598f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405996
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.00405c61
test bl, 8
mov dword [ebp - 8], eax
je 0x4059d5
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42a2a8], eax
jmp 0x405b52
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4059ef
test eax, eax
je 0x405b00
test bl, 2
je 0x405b00
mov esi, 0x4256f0
push edi
push esi
call fcn.00406284
cmp dword [ebp + 8], 0
je 0x405a0e
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405a14
push edi
call fcn.00405ba5
cmp word [edi], 0
jne 0x405a24
cmp word [0x4256f0], 0x5c
jne 0x405a2f
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 0x405af5
cmp word [ebp - 0x22c], 0x2e
jne 0x405a79
cmp word [ebp - 0x22a], 0
je 0x405ad8
cmp word [ebp - 0x22a], 0x2e
jne 0x405a79
cmp word [ebp - 0x228], 0
je 0x405ad8
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406284
test byte [ebp - 0x258], 0x10
je 0x405aa4
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405ad8
push dword [ebp + 0xc]
push edi
call fcn.00405996
jmp 0x405ad8
push dword [ebp - 4]
push edi
call fcn.0040594e
test eax, eax
jne 0x405ad0
cmp dword [ebp - 4], eax
je 0x405ac8
push edi
push 0xfffffffffffffff1
call fcn.004052ec
push 0
push edi
call fcn.0040604a
jmp 0x405ad8
inc dword [0x42a2a8]
jmp 0x405ad8
push edi
push 0xfffffffffffffff2
call fcn.004052ec
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405a51
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405b00
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405b52
cmp dword [ebp - 8], esi
jne 0x405b14
inc dword [0x42a2a8]
jmp 0x405b52
push edi
call fcn.004065c7
test eax, eax
je 0x405b52
push edi
call fcn.00405b59
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.0040594e
test eax, eax
jne 0x405b4a
cmp dword [ebp - 4], esi
je 0x405b0c
push edi
push 0xfffffffffffffff1
call fcn.004052ec
push esi
push edi
call fcn.0040604a
jmp 0x405b52
push edi
push 0xffffffffffffffe5
call fcn.004052ec
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405c61
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425ef0
push esi
call fcn.00406284
push esi
call fcn.00405c04
mov edi, eax
test edi, edi
jne 0x405c82
xor eax, eax
jmp 0x405cda
push edi
call fcn.00406518
test byte [0x42a21c], 0x80
je 0x405c9f
mov ax, word [edi]
test ax, ax
je 0x405c7e
cmp ax, 0x5c
je 0x405c7e
sub edi, esi
sar edi, 1
jmp 0x405cb9
call fcn.004065c7
test eax, eax
je 0x405cb3
test byte [eax], 0x10
je 0x405c7e
push esi
call fcn.00405ba5
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405ca5
call fcn.00405b59
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 0x405d55
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 0x405d74
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 0x405d7a
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 0x405da9
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 [0x40a558]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a55c]
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 0x405df9
test edi, edi
jne 0x405db6
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405df3
Function at 0x405ed0
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x426d88], 0x55004e
mov dword [0x426d8c], 0x4c
mov edi, 0x400
mov ebp, 0x426d88
je 0x405f26
push 1
push 0
push esi
call fcn.00405d7a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406045
cmp eax, edi
jg 0x406045
mov esi, 0x427588
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406045
cmp eax, edi
jg 0x406045
push esi
push ebp
push str._ls_ls_r_n
push 0x426988
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42a214]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004062a6
push 4
push 0xc0000000
push esi
call fcn.00405d7a
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406045
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 0x40603e
push edi
push esi
push ebp
call fcn.00405dfd
test eax, eax
je 0x40603e
push str._Rename__r_n
push esi
call fcn.00405cdf
test eax, eax
jne 0x405fdc
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406011
add eax, 0xa
push 0x40a560
push eax
call fcn.00405cdf
mov ebp, eax
test ebp, ebp
je 0x40600d
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405ffe
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405ff8
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406013
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x426988
push eax
call fcn.00405d35
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.00405e2c
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 0x40604a
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 0x40606d
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405ed0
pop ecx
pop ecx
inc dword [0x42a2b0]
ret 8
Function at 0x406152
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x800
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004060f1
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4061c2
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x7fe], 0
test edi, edi
pop edi
jne 0x4061c2
cmp dword [ebp + 0xc], 1
je 0x4061c6
cmp dword [ebp + 0xc], 2
je 0x4061c6
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x4065ee
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406612
xor eax, eax
test eax, eax
je 0x406625
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406625
xor ecx, ecx
jmp 0x406628
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x427d8c], 0
push esi
jne 0x406788
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406762
mov dword [ecx*4 + 0x427d88], eax
inc ecx
cmp ecx, 0x100
jl 0x40675d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067b9
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427d88]
xor eax, esi
inc ecx
dec edx
jne 0x40679b
pop edi
not eax
pop esi
ret 0xc