joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458494
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x458533
cmp dword [ebx + 0x94], 0
jne 0x45852d
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45841c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45852d
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 0x4584f3
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45852d
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.00414680
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x458502
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x466c94]
cmp dword [eax + 0x30], 0
je 0x4588a9
test bl, bl
jne 0x4587fa
cmp dword [esi + 0x9c], 0
jne 0x4587ef
mov eax, esi
call fcn.0045b0cc
push eax
push 0x458678
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4587c0
mov eax, dword [0x466c94]
call fcn.0045b7ac
test al, al
je 0x4587c0
mov eax, dword [0x466cb8]
call fcn.00405748
mov edi, eax
cmp edi, 0
jl 0x4587c0
push 0
mov eax, dword [0x466cb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4587aa
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4587ef
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00414680
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4587cf
inc dword [esi + 0x9c]
jmp 0x4588a9
cmp dword [esi + 0x9c], 0
jle 0x4588a9
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4588a9
cmp dword [esi + 0x44], 0
je 0x458855
mov eax, dword [0x466c94]
call fcn.0045b7ac
test al, al
je 0x458855
mov eax, dword [0x466cb8]
call fcn.00405748
mov edi, eax
cmp edi, 0
jl 0x458855
push 5
mov eax, dword [0x466cb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45883f
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x458884
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00414680
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x458864
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x466cb8
mov ecx, 1
mov edx, dword [0x458658]
call fcn.004058fc
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x459390
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 0x4593fa
mov eax, ebx
call fcn.0045b7ac
test al, al
jne 0x4593fa
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.00404944
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x4593e7
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x459407
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004048a8
jmp 0x459407
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004048a8
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x45a8d0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45a93e
mov eax, esi
call fcn.004434c8
test al, al
je 0x45a93e
mov eax, dword [ebx + 0x84]
call fcn.00443128
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45a93e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45a932
push 0
mov eax, dword [ebx + 0x84]
call fcn.00443128
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043afa4
jmp 0x45a93e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045a70c
pop esi
pop ebx
ret

Function at 0x45dec4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404cd4
xor eax, eax
push ebp
push 0x45dfeb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x45def2
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
add ebx, ebx
add ebx, ebx
mov eax, ebx
call fcn.00402e48
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x45dfce
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, ebx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004056dc
push 0
call sub.user32.dll_OpenClipboard
call sub.user32.dll_EmptyClipboard
push ebx
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x45df9b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
xor edx, edx
push ebp
push 0x45df8a
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
mov eax, dword [ebp - 0xc]
mov ecx, ebx
call fcn.00403050
mov eax, dword [ebp - 8]
push eax
push 0xd
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45df91
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
Function at 0x41a380
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x41a393
xor eax, eax
jmp 0x41a451
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x41a3ae
xor eax, eax
jmp 0x41a451
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x4550
je 0x41a3cc
xor eax, eax
jmp 0x41a451
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0
jmp 0x41a40e
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x18]
jae 0x41a44f
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
push edx
call fcn.00419630
add esp, 8
test eax, eax
jne 0x41a44d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x41a451
jmp 0x41a405
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402a3d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x423790]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402ad1
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a8e
cmp dword [ebp + 0x10], ebx
jne 0x402ac5
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a3d
test eax, eax
jne 0x402aa0
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a75
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00406009
cmp eax, ebx
je 0x402ad8
push ebx
push dword [0x423790]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ad1
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 [0x423790], ebx
jne 0x402ace
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ace
jmp 0x402ad1
Function at 0x402f1f
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push edi
cmp eax, esi
jl 0x402f4b
mov ecx, dword [0x423738]
push esi
add eax, ecx
push esi
push eax
mov dword [0x41688c], eax
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.0040303a
cmp eax, esi
jl 0x403034
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40901c]
call fcn.004059e7
test eax, eax
je 0x403020
push dword [ebp + 8]
add dword [0x41688c], 4
call fcn.0040303a
cmp eax, esi
mov dword [ebp - 8], eax
jl 0x403034
cmp dword [ebp + 0x10], esi
jne 0x402ffc
cmp dword [ebp + 8], esi
jle 0x403031
mov esi, 0x412888
cmp dword [ebp + 8], 0x4000
mov edi, dword [ebp + 8]
jl 0x402fb1
mov edi, 0x4000
push edi
push esi
push dword [0x40901c]
mov dword [ebp - 4], edi
call fcn.004059e7
test eax, eax
je 0x403020
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402ff8
cmp dword [ebp + 0x14], edi
jne 0x402ff8
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41688c], eax
cmp dword [ebp + 8], 0
jg 0x402fa0
jmp 0x403031
push 0xfffffffffffffffe
jmp 0x403022
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403007
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403025
push 0xfffffffffffffffd
pop eax
jmp 0x403034
mov eax, dword [ebp - 4]
add dword [0x41688c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 0x10
Function at 0x40303a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41688c]
sub esi, dword [0x40a7f8]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x4236ec], eax
jle 0x4031a4
push dword [0x41e89c]
call fcn.004031cc
push ebx
push ebx
push dword [0x40a7f8]
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41e898], esi
mov dword [0x416888], ebx
mov ebp, 0x40a888
mov eax, dword [0x416890]
mov edi, 0x4000
sub eax, dword [0x41e89c]
cmp eax, edi
jg 0x4030af
mov edi, eax
mov esi, 0x412888
push edi
push esi
call fcn.004031b6
test eax, eax
je 0x403196
add dword [0x41e89c], edi
mov dword [0x40a818], esi
mov dword [0x40a81c], edi
cmp dword [0x4236f0], ebx
je 0x403106
cmp dword [0x423780], ebx
jne 0x403106
mov eax, dword [0x41e898]
push ebx
sub eax, dword [0x41688c]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40a7f8]
mov dword [0x416888], eax
call fcn.00402bda
pop ecx
mov ecx, 0x40a800
mov dword [0x40a820], ebp
mov dword [0x40a824], 0x8000
call fcn.00406109
test eax, eax
jl 0x40319f
mov esi, dword [0x40a820]
sub esi, ebp
je 0x403160
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40319b
cmp esi, dword [esp + 0x10]
jne 0x40319b
add dword [0x40a7f8], esi
cmp dword [0x40a81c], ebx
jne 0x4030d5
jmp 0x40316c
cmp dword [0x40a81c], ebx
jne 0x40319f
cmp edi, ebx
je 0x40319f
mov eax, dword [0x41688c]
mov ecx, eax
sub ecx, dword [0x40a7f8]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x403099
push ebx
push ebx
push eax
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4031a4
or eax, 0xffffffff
jmp 0x4031ae
push 0xfffffffffffffffe
jmp 0x4031a1
push 0xfffffffffffffffd
pop eax
jmp 0x4031ae
push 1
call fcn.00402bda
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x405491
Capabilities:
Create process on windows

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.0040594a
mov edi, eax
cmp edi, 0xffffffff
je 0x405597
test byte [esp + 0x10], 1
push esi
je 0x405579
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40557f
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405588
xor eax, eax
inc eax
jmp 0x405599
test byte [esp + 0x10], 4
jne 0x405597
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x40559e
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
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.0040585c
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4055dd
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423768], eax
jmp 0x405767
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4055f7
test eax, eax
je 0x405715
test bl, 2
je 0x405715
mov esi, 0x420ce8
push edi
push esi
call fcn.00405cde
cmp dword [ebp + 8], 0
je 0x405616
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40561c
push edi
call fcn.004057b5
cmp byte [edi], 0
jne 0x40562a
cmp byte [0x420ce8], 0x5c
jne 0x405635
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40570b
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405799
cmp byte [eax], 0
je 0x40567b
cmp byte [ebp - 0x1c], 0
je 0x40567b
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405691
mov al, byte [esi + 1]
test al, al
je 0x4056ea
cmp al, 0x2e
jne 0x405691
cmp byte [esi + 2], 0
je 0x4056ea
push esi
push ebx
call fcn.00405cde
test byte [ebp - 0x14c], 0x10
je 0x4056b6
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4056ea
push dword [ebp + 0xc]
push edi
call fcn.0040559e
jmp 0x4056ea
push dword [ebp - 4]
push edi
call fcn.00405556
test eax, eax
jne 0x4056e2
cmp dword [ebp - 4], eax
je 0x4056da
push edi
push 0xfffffffffffffff1
call fcn.00404fc9
push 0
push edi
call fcn.00405b92
jmp 0x4056ea
inc dword [0x423768]
jmp 0x4056ea
push edi
push 0xfffffffffffffff2
call fcn.00404fc9
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405659
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405715
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405767
cmp dword [ebp - 0xc], esi
jne 0x405729
inc dword [0x423768]
jmp 0x405767
push edi
call fcn.00405fe2
test eax, eax
je 0x405767
push edi
call fcn.0040576e
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405556
test eax, eax
jne 0x40575f
cmp dword [ebp - 4], esi
je 0x405721
push edi
push 0xfffffffffffffff1
call fcn.00404fc9
push esi
push edi
call fcn.00405b92
jmp 0x405767
push edi
push 0xffffffffffffffe5
call fcn.00404fc9
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40585c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4210e8
push esi
call fcn.00405cde
push esi
call fcn.00405807
mov edi, eax
test edi, edi
jne 0x40587d
xor eax, eax
jmp 0x4058cf
push edi
call fcn.00405f49
test byte [0x4236f8], 0x80
je 0x405896
mov al, byte [edi]
test al, al
je 0x405879
cmp al, 0x5c
je 0x405879
sub edi, esi
jmp 0x4058ae
call fcn.00405fe2
test eax, eax
je 0x4058a8
test byte [eax], 0x10
je 0x405879
push esi
call fcn.004057b5
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x40589a
call fcn.0040576e
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

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

Function at 0x40596f
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
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_CreateFileA]
ret 0xc

Function at 0x40599e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x409380]
dec edi
mov dword [ebp + 8], 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 byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4059e3
test edi, edi
jne 0x4059a9
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4059dd
Function at 0x405a16
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x421a70
push 0x40939c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x405a65
push 1
push 0
push esi
call fcn.0040596f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405b8c
cmp eax, ebx
jg 0x405b8c
mov esi, 0x421e70
push ebx
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405b8c
cmp eax, ebx
jg 0x405b8c
push esi
push edi
push str._s_s_r_n
push 0x421670
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4236f0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405d00
push 4
push 0xc0000000
push esi
call fcn.0040596f
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405b8c
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 0x405b85
push edi
push esi
push ebp
call fcn.004059e7
test eax, eax
je 0x405b85
push str._Rename__r_n
push esi
call fcn.004058d4
test eax, eax
jne 0x405b1b
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405b50
add eax, 0xa
push 0x409384
push eax
call fcn.004058d4
mov ebp, eax
test ebp, ebp
je 0x405b4c
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405b3d
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405b37
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x405b52
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x421670
push eax
call fcn.0040592a
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
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
pop ecx
ret

Function at 0x405bc5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405c36
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405c25
cmp dword [ebp + 0x14], 1
je 0x405c27
cmp dword [ebp + 0x14], 2
je 0x405c27
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x40607b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422274], 0
push esi
jne 0x4060b2
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 0x40608c
mov dword [ecx*4 + 0x422270], eax
inc ecx
cmp ecx, 0x100
jl 0x406087
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4060e3
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 + 0x422270]
xor eax, esi
inc ecx
dec edx
jne 0x4060c5
pop edi
not eax
pop esi
ret 0xc
Function at 0x1001113
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001080
call fcn.01001314
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1001150
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001150
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1001168
cmp eax, 0x20b
je 0x1001155
mov dword [ebp - 0x1c], ebx
jmp 0x100117c
cmp dword [ecx + 0x84], 0xe
jbe 0x1001150
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1001176
cmp dword [ecx + 0x74], 0xe
jbe 0x1001150
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1002018], 0xffffffff
or dword [0x100201c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1002014]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1002010]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1002020], eax
call fcn.0100130c
cmp dword [section..data], ebx
jne 0x10011d7
push fcn.0100130c
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010012f5
push 0x1001058
push 0x1001054
call sub.msvcrt.dll__initterm
mov eax, dword [0x100200c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1002008]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1001050
push 0x100104c
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x100126d
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1001241
cmp al, 0x22
jne 0x1001233
cmp byte [esi], 0x22
jne 0x100124a
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1001254
cmp al, 0x20
jbe 0x1001246
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x1001278
movzx eax, word [ebp - 0x50]
jmp 0x100127b
cmp byte [esi], 0x20
jbe 0x100124a
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100126d
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1001298
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10012cd
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100134f
ret