joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a24c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45a3f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45a3d8
mov dl, 1
mov eax, dword [0x412324]
call fcn.004039f4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404838
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45a3c7
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044c72c
test al, al
je 0x45a3ba
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45a408
lea eax, [ebp - 0x254]
call fcn.004093a8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45a3ba
xor eax, eax
push ebp
push 0x45a3b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45a440
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45a39c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404aa8
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45a39c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404aa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a3ba
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45a2bd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00415ffc
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a3fe
lea eax, [ebp - 0x260]
call fcn.00404838
ret

Function at 0x45ad70
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x47ec94]
cmp byte [eax + 0xad], 0
jne 0x45ade1
cmp dword [0x47ecb0], 0
jne 0x45ada2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45ad2c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x47ecb0], eax
cmp dword [0x47ecac], 0
jne 0x45adbd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x47ecac], eax
cmp dword [0x47ecb4], 0
jne 0x45ade1
push esp
push 0
push 0
push 0x45acd0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x47ecb4], eax
pop edx
ret
Function at 0x45afb4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45afcb
add esp, 0xfffffff0
call fcn.00403d30
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a150
mov eax, dword [0x4799d4]
cmp word [eax + 2], 0
jne 0x45aff3
mov eax, dword [0x4799d4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045cbb4
mov eax, dword [0x479a7c]
cmp word [eax + 2], 0
jne 0x45b00d
mov eax, dword [0x479a7c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045cdc0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411f00]
call fcn.004039f4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411f00]
call fcn.004039f4
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x411f00]
call fcn.004039f4
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41e4d4]
call fcn.00424420
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x45b1c4
mov eax, dword [0x479900]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004247f4
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45d484
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x479900]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cad0
test eax, eax
je 0x45b114
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408d60
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cb04
test eax, eax
je 0x45b128
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404aa8
mov byte [ebx + 0xd4], 0
push ebx
push 0x45c6dc
call fcn.0041b2cc
mov dword [ebx + 0xc8], eax
mov eax, dword [0x479804]
cmp byte [eax], 0
jne 0x45b179
mov eax, ebx
call fcn.0045b308
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045d65c
mov eax, ebx
call fcn.0045e1c0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45b1b9
call fcn.00403d88
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b588
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x45b627
cmp dword [ebx + 0x94], 0
jne 0x45b621
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45b510
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45b621
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45b5e7
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45b621
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004142a4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45b5f6
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45b840
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x47ec94]
cmp dword [eax + 0x30], 0
je 0x45b99d
test bl, bl
jne 0x45b8ee
cmp dword [esi + 0x9c], 0
jne 0x45b8e3
mov eax, esi
call fcn.0045e03c
push eax
push 0x45b76c
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x45b8b4
mov eax, dword [0x47ec94]
call fcn.0045e71c
test al, al
je 0x45b8b4
mov eax, dword [0x47ecb8]
call fcn.004056f4
mov edi, eax
cmp edi, 0
jl 0x45b8b4
push 0
mov eax, dword [0x47ecb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45b89e
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45b8e3
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004142a4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45b8c3
inc dword [esi + 0x9c]
jmp 0x45b99d
cmp dword [esi + 0x9c], 0
jle 0x45b99d
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x45b99d
cmp dword [esi + 0x44], 0
je 0x45b949
mov eax, dword [0x47ec94]
call fcn.0045e71c
test al, al
je 0x45b949
mov eax, dword [0x47ecb8]
call fcn.004056f4
mov edi, eax
cmp edi, 0
jl 0x45b949
push 5
mov eax, dword [0x47ecb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45b933
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45b978
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004142a4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45b958
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x47ecb8
mov ecx, 1
mov edx, dword [0x45b74c]
call fcn.004058a8
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x45c430
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45c49a
mov eax, ebx
call fcn.0045e71c
test al, al
jne 0x45c49a
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404928
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x45c487
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x45c4a7
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040488c
jmp 0x45c4a7
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040488c
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x45d840
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45d8ae
mov eax, esi
call fcn.004473f0
test al, al
je 0x45d8ae
mov eax, dword [ebx + 0x84]
call fcn.00447040
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45d8ae
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45d8a2
push 0
mov eax, dword [ebx + 0x84]
call fcn.00447040
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043efc8
jmp 0x45d8ae
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045d67c
pop esi
pop ebx
ret
Function at 0x401434
Capabilities:
Copy file
Create process on windows
Create shortcut via ishelllink
Delete file
Delete registry value
Enumerate files on windows
Get file attributes
Move file
Query environment variable
Query or enumerate registry key
Query or enumerate registry value
Read .ini file
Read file on windows
Set current directory
Set file attributes
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [0x42a268]
push 7
pop ecx
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
mov edi, section..ndata
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
xor ebx, ebx
shl ecx, 0xb
add ecx, edi
mov esi, eax
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x2c]
shl esi, 0xb
mov dword [0x40cdf8], ecx
lea ecx, [edx - 2]
add esi, edi
cmp ecx, 0x43
mov dword [ebp - 4], ebx
ja case.0x40148a.65
jmp dword [ecx*4 + 0x402a5e]
push ebx
push eax
call fcn.004052e2
jmp 0x402288
inc dword [0x42922c]
cmp dword [ebp - 0xc], ebx
je 0x402288
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x402288
push eax
call fcn.0040136d
dec eax
push ebx
push eax
invalid

Function at 0x402bff
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 [0x42a310]
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]
invalid

Function at 0x4030e7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x403112
mov ecx, dword [0x42a2b8]
push esi
add eax, ecx
push esi
push eax
mov dword [0x418ef4], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.004031ef
cmp eax, esi
jl 0x4031e9
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00405ddb
test eax, eax
je 0x4031d9
push dword [ebp + 8]
add dword [0x418ef4], 4
call fcn.004031ef
mov ebx, eax
cmp ebx, esi
jl 0x4031e7
cmp dword [ebp + 0x10], esi
jne 0x4031b5
cmp dword [ebp + 8], esi
jle 0x4031e7
mov esi, 0x414ef0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x403177
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00405ddb
test eax, eax
je 0x4031d9
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00405e0a
test eax, eax
je 0x4031b1
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x418ef4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x403166
jmp 0x4031e7
push 0xfffffffffffffffe
jmp 0x4031db
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4031c0
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4031de
push 0xfffffffffffffffd
pop eax
jmp 0x4031e9
mov ebx, dword [ebp - 4]
add dword [0x418ef4], ebx
invalid
Function at 0x404220
Capabilities:
Hash data using murmur3

Disassembly:
add dword [0x42a62e], edx
xor esi, dword [0x42ad57]
and dword [0x42a3cf], edx
xor edi, dword [0x42acbd]
xor eax, ebx
sub ebx, dword [0x42adf7]
dec ebx
call fcn.0040514a
inc ecx

Function at 0x404247
Capabilities:
Hash data using murmur3

Disassembly:
inc ebx
xor esi, ebp
neg edi
mov dword [0x42a3a4], esi
ror edx, 8
rol edx, 8
neg edi
xor esi, ebp
dec ebx
dec ecx
inc ebx
xor eax, ebx
or dword [0x42a51a], ecx
sub dword [0x42a3cd], ebx
rol eax, 0xa
call fcn.00402508
add esi, 0xbf7e307c
call fcn.004031e8
push 0x81ffffef
int1
mov ebp, 0x4eb04365

Function at 0x404293
Capabilities:
Hash data using murmur3

Disassembly:
add byte [ecx + 0x42a52b3d], cl
add cl, al
mov byte [esi], 3
sbb eax, 0x42aa1c
rol esi, 0x17
not edx
ror ecx, 0x16
rol ecx, 0x16
Function at 0x404b67
Capabilities:
Hash data using murmur3

Disassembly:
call fcn.0040514a
ror esi, 0xa
sub ebx, esp
call fcn.00402717
sub edx, esi
push esi
mov dword [0x42a58b], edi

Function at 0x404b7f
Capabilities:
Hash data using murmur3

Disassembly:
xor esi, esp
inc ebx
rol ecx, 5
add ebx, eax
sub ebx, 0x69ef4300
xor edx, ebp
inc esi
rol edx, 0x11
sub esi, 0x8d74c72e
call fcn.004022a2
sub eax, dword [0x42ab41]
call fcn.0040514a
invalid
adc al, 0xc9
Function at 0x4057b1
Capabilities:
Create directory

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

Function at 0x405863
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x426750], 0x44
push eax
xor eax, eax
push 0x426750
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 0x4058a2
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405d33
mov edi, eax
cmp edi, 0xffffffff
je 0x40596d
test byte [esp + 0x10], 1
push esi
je 0x40594f
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405955
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40595e
xor eax, eax
inc eax
jmp 0x40596f
test byte [esp + 0x10], 4
jne 0x40596d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8

Function at 0x405974
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]
invalid

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f50
push esi
call fcn.00406183
push esi
call fcn.00405be2
mov edi, eax
test edi, edi
jne 0x405c60
xor eax, eax
jmp 0x405cb8
push edi
call fcn.00406417
test byte [0x42a278], 0x80
je 0x405c7d
mov ax, word [edi]
test ax, ax
je 0x405c5c
cmp ax, 0x5c
je 0x405c5c
sub edi, esi
sar edi, 1
jmp 0x405c97
call fcn.004064c6
test eax, eax
je 0x405c91
test byte [eax], 0x10
je 0x405c5c
push esi
call fcn.00405b83
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405c83
call fcn.00405b37
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 0x405d33
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 0x405d52
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 0x405d58
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 0x405d87
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 [0x40a5a0]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a5a4]
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 0x405dd7
test edi, edi
jne 0x405d94
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405dd1
Function at 0x405eb2
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, 0x426de8
push 0x40a5c4
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 0x405f00
push 1
push 0
push esi
call fcn.00405d58
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x40601f
cmp eax, edi
jg 0x40601f
mov esi, 0x4275e8
push edi
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x40601f
cmp eax, edi
jg 0x40601f
push esi
push ebx
push str._ls_ls_r_n
push 0x4269e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42a270]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004061a5
push 4
push 0xc0000000
push esi
call fcn.00405d58
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x40601f
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 0x406018
push edi
push esi
push ebp
call fcn.00405ddb
test eax, eax
je 0x406018
push str._Rename__r_n
push esi
call fcn.00405cbd
test eax, eax
jne 0x405fb6
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405feb
add eax, 0xa
push 0x40a5a8
push eax
call fcn.00405cbd
mov ebp, eax
test ebp, ebp
je 0x405fe7
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405fd8
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405fd2
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405fed
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4269e8
push eax
call fcn.00405d13
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.00405e0a
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

Function at 0x406024
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 0x406047
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405eb2
pop ecx
pop ecx
inc dword [0x42a2f0]
ret 8
Function at 0x406050
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 0x4060c4
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 0x4060b1
cmp dword [ebp + 0x14], 1
je 0x4060b4
cmp dword [ebp + 0x14], 2
je 0x4060b4
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

Function at 0x4061a5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
test eax, eax
jge 0x4061c3
mov ecx, dword [0x42923c]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [ecx]
mov ecx, dword [0x42a298]
push ebx
push esi
push edi
lea ecx, [ecx + eax*2]
mov eax, 0x428200
cmp dword [ebp + 8], eax
mov esi, eax
jb 0x4063f1
mov edx, dword [ebp + 8]
sub edx, eax
sar edx, 1
cmp edx, 0x800
jae 0x4063f1
mov esi, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x4063f1
mov edx, esi
sub edx, eax
and edx, 0xfffffffe
cmp edx, 0x800
jge 0x4063fd
push 2
pop edx
add ecx, edx
cmp di, 4
mov dword [ebp - 4], ecx
jae 0x4063de
mov al, byte [ecx + 1]
mov cl, byte [ecx]
mov dl, al
mov bl, cl
and edx, 0x7f
and ebx, 0x7f
shl edx, 7
add dword [ebp - 4], 2
or edx, ebx
movzx ebx, cl
movzx eax, al
mov dword [ebp + 0xc], edx
mov edx, ebx
mov ecx, 0x8000
mov dword [ebp - 0xc], eax
or edx, ecx
or eax, ecx
cmp di, 2
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], eax
jne 0x40637f
push 2
pop edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x40628a
cmp ax, 0x5a04
je 0x40628a
cmp dword [ebp - 0xc], 0x23
je 0x40628a
cmp dword [ebp - 0xc], 0x2e
je 0x40628a
and dword [ebp + 0xc], 0
jmp 0x406291
mov dword [ebp + 0xc], 1
cmp dword [0x42a2e4], 0
je 0x40629d
push 4
pop edi
test bl, bl
jns 0x4062db
invalid

Function at 0x4064ed
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 0x406511
xor eax, eax
test eax, eax
je 0x406524
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406524
xor ecx, ecx
jmp 0x406527
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 eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
leave
ret 4