joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44bfd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x466040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x44c08c
cmp byte [esi + 0x3d], 0
je 0x44c08c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x44c07a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x44c041
sub eax, 1
je 0x44c045
sub eax, 2
jne 0x44c07a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455124
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x44c063
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x44c07a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455124
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455124
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00455124
mov esp, ebp
pop ebp
ret
Function at 0x455e2e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x455e6d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x455e6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x455e6d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x455e6d
cmp dword [ecx + 0x74], 0xe
jbe 0x455e6d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x45656a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x456591
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x456594
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00456546
pop esi
leave
ret 8
Function at 0x4015bd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d800]
jne 0x4015c7
repz ret
jmp fcn.00402a9c

Function at 0x405bcb
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.004039eb
and dword [ebp - 4], 0
cmp dword [0x42f078], 0
mov ebx, eax
jne 0x405c7c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405d2d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405d2d
push eax
call fcn.00403979
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42f078], eax
call esi
push eax
call fcn.00403979
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42f07c], eax
call esi
push eax
call fcn.00403979
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42f080], eax
call esi
push eax
call fcn.00403979
pop ecx
mov dword [0x42f088], eax
test eax, eax
je 0x405c7c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403979
pop ecx
mov dword [0x42f084], eax
mov eax, dword [0x42f084]
cmp eax, ebx
je 0x405cd4
cmp dword [0x42f088], ebx
je 0x405cd4
push eax
call fcn.004039f4
push dword [0x42f088]
mov esi, eax
call fcn.004039f4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405cd4
test edi, edi
je 0x405cd4
call esi
test eax, eax
je 0x405ccb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405ccb
test byte [ebp - 0xc], 1
jne 0x405cd4
or dword [ebp + 0x10], 0x200000
jmp 0x405d0d
mov eax, dword [0x42f07c]
cmp eax, ebx
je 0x405d0d
push eax
call fcn.004039f4
pop ecx
test eax, eax
je 0x405d0d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405d0d
mov eax, dword [0x42f080]
cmp eax, ebx
je 0x405d0d
push eax
call fcn.004039f4
pop ecx
test eax, eax
je 0x405d0d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42f078]
call fcn.004039f4
pop ecx
test eax, eax
je 0x405d2d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405d2f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5d461a
Capabilities:
Encode data using xor

Disassembly:
mov byte [ecx - 0x645e08cd], ch
mov cl, 0xea
fnstcw word [ecx - 0x6f671e62]
mov eax, 0x795d73e2
and dword [edx + 8], edx
div byte [esi]
cmp eax, 0xde520cee
jae 0x5d4689
jns 0x5d464f
push edx
or dh, dh
cmp eax, 0xde520cee
xor eax, 0xeb23c9
jecxz 0x5d462a
push edx
sbb esp, ebp
invalid

Function at 0x5e3d06
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5e3d21
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124a8f46]
pop edx
test eax, eax
je 0x5e3df3
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5e3de2
test dword [ebp - 0x2a8], 1
jne 0x5e3de2
and dword [ebp - 0x2a8], 0x100
jne 0x5e3de2
push esi
push edx
push 4
push esi
call dword [edx + 0x122d2cc0]
pop edx
pop esi
test eax, eax
je 0x5e3d85
jmp 0x5e3de2
cmp word [esi], 0x5a4d
jne 0x5e3de2
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5e3de2
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d2b1c]
pop edx
test eax, eax
je 0x5e3de2
lea eax, [ebp - 0x28c]
push eax
call fcn.005e3c62
test eax, eax
jne 0x5e3ddb
jmp 0x5e3de2
mov eax, esi
jmp 0x5e3df3
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5e3d21
pop esi
leave
ret 4
Function at 0x101a520
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
or ebp, 0xffffffff
jmp 0x101a542
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x101a549
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101a538
mov eax, 1
add ebx, ebx
jne 0x101a55b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x101a550
jne 0x101a56c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x101a550
xor ecx, ecx
sub eax, 3
jb 0x101a580
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x101a5f2
mov ebp, eax
add ebx, ebx
jne 0x101a58b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x101a598
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x101a5bc
inc ecx
add ebx, ebx
jne 0x101a5a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x101a59d
jne 0x101a5b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x101a59d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x101a5dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x101a5cd
jmp 0x101a53e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x101a5dc
add edi, ecx
jmp 0x101a53e
pop esi
mov edi, esi
mov ecx, 0x93c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x101a5fa
cmp byte [edi], 1
jne 0x101a5fa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x101a5ff
lea edi, [esi + 0x18000]
mov eax, dword [edi]
or eax, eax
je 0x101a66e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1ccfc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1cd88]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x101a62c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1cd8c]
or eax, eax
je 0x101a668
mov dword [ebx], eax
add ebx, 4
jmp 0x101a649
call dword [esi + 0x1cd9c]
mov ebp, dword [esi + 0x1cd90]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x101a6a2
sub esp, 0xffffff80
jmp 0x1012420
Function at 0x431a70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x24000]
push edi
jmp 0x431a8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x431a91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x431a80
mov eax, 1
add ebx, ebx
jne 0x431aa3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x431a98
jne 0x431ab4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x431a98
xor ecx, ecx
sub eax, 3
jb 0x431ac8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x431b3a
mov ebp, eax
add ebx, ebx
jne 0x431ad3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x431ae0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x431b04
inc ecx
add ebx, ebx
jne 0x431af0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x431ae5
jne 0x431b01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x431ae5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x431b24
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x431b15
jmp 0x431a86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x431b24
add edi, ecx
jmp 0x431a86
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x431b42
cmp byte [edi], 9
jne 0x431b42
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x431b47
lea edi, [esi + 0x2f000]
mov eax, dword [edi]
or eax, eax
je 0x431bbf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x433a0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x43468]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x431b74
mov ecx, edi
jns 0x431ba3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4346c]
or eax, eax
je 0x431bb9
mov dword [ebx], eax
add ebx, 4
jmp 0x431b91
call dword [esi + 0x4347c]
mov ebp, dword [esi + 0x43470]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x431bf3
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x402b7a
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 [0x47af50]
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 0x402c0e
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402bcb
cmp dword [ebp + 0x10], ebx
jne 0x402c02
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402b7a
test eax, eax
jne 0x402bdd
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402bb2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00406110
cmp eax, ebx
je 0x402c15
push ebx
push dword [0x47af50]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402c0e
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 [0x47af50], ebx
jne 0x402c0b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402c0b
jmp 0x402c0e
Function at 0x405521
Capabilities:
Create process on windows

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.004059ed
mov edi, eax
cmp edi, 0xffffffff
je 0x405627
test byte [esp + 0x10], 1
push esi
je 0x405609
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40560f
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405618
xor eax, eax
inc eax
jmp 0x405629
test byte [esp + 0x10], 4
jne 0x405627
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x40562e
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.004058f9
test bl, 8
mov dword [ebp - 8], eax
je 0x40566d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x47af28], eax
jmp 0x4057ea
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405687
test eax, eax
je 0x405798
test bl, 2
je 0x405798
mov esi, 0x460200
push edi
push esi
call fcn.00405da6
cmp dword [ebp + 8], 0
je 0x4056a6
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x4056ac
push edi
call fcn.0040583d
cmp word [edi], 0
jne 0x4056bc
cmp word [0x460200], 0x5c
jne 0x4056c7
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 0x40578d
cmp word [ebp - 0x22c], 0x2e
jne 0x405711
cmp word [ebp - 0x22a], 0
je 0x405770
cmp word [ebp - 0x22a], 0x2e
jne 0x405711
cmp word [ebp - 0x228], 0
je 0x405770
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00405da6
test byte [ebp - 0x258], 0x10
je 0x40573c
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405770
push dword [ebp + 0xc]
push edi
call fcn.0040562e
jmp 0x405770
push dword [ebp - 4]
push edi
call fcn.004055e6
test eax, eax
jne 0x405768
cmp dword [ebp - 4], eax
je 0x405760
push edi
push 0xfffffffffffffff1
call fcn.00405050
push 0
push edi
call fcn.00405c40
jmp 0x405770
inc dword [0x47af28]
jmp 0x405770
push edi
push 0xfffffffffffffff2
call fcn.00405050
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4056e9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405798
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4057ea
cmp dword [ebp - 8], esi
jne 0x4057ac
inc dword [0x47af28]
jmp 0x4057ea
push edi
call fcn.004060e9
test eax, eax
je 0x4057ea
push edi
call fcn.004057f1
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004055e6
test eax, eax
jne 0x4057e2
cmp dword [ebp - 4], esi
je 0x4057a4
push edi
push 0xfffffffffffffff1
call fcn.00405050
push esi
push edi
call fcn.00405c40
jmp 0x4057ea
push edi
push 0xffffffffffffffe5
call fcn.00405050
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4058f9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x464200
push esi
call fcn.00405da6
push esi
call fcn.0040589c
mov edi, eax
test edi, edi
jne 0x40591a
xor eax, eax
jmp 0x405972
push edi
call fcn.0040603a
test byte [0x47aeb8], 0x80
je 0x405937
mov ax, word [edi]
test ax, ax
je 0x405916
cmp ax, 0x5c
je 0x405916
sub edi, esi
sar edi, 1
jmp 0x405951
call fcn.004060e9
test eax, eax
je 0x40594b
test byte [eax], 0x10
je 0x405916
push esi
call fcn.0040583d
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x40593d
call fcn.004057f1
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 0x4059ed
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 0x405a0c
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 0x405a12
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 0x405a41
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 [0x40a50c]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a510]
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 0x405a91
test edi, edi
jne 0x405a4e
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405a8b
Function at 0x405ac4
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, 0x468898
push 0x40a530
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405b13
push 1
push 0
push esi
call fcn.00405a12
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x405c3a
cmp eax, edi
jg 0x405c3a
mov esi, 0x469098
push edi
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405c3a
cmp eax, edi
jg 0x405c3a
push esi
push ebx
push str._ls_ls_r_n
push 0x468498
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x47aeb0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405dc8
push 4
push 0xc0000000
push esi
call fcn.00405a12
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405c3a
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 0x405c33
push edi
push esi
push ebp
call fcn.00405a95
test eax, eax
je 0x405c33
push str._Rename__r_n
push esi
call fcn.00405977
test eax, eax
jne 0x405bc9
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405bfe
add eax, 0xa
push 0x40a514
push eax
call fcn.00405977
mov ebp, eax
test ebp, ebp
je 0x405bfa
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405beb
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405be5
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x405c00
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x468498
push eax
call fcn.004059cd
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 0x405c73
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 0x405ce7
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x4000
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 0x405cd4
cmp dword [ebp + 0x14], 1
je 0x405cd7
cmp dword [ebp + 0x14], 2
je 0x405cd7
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x3ffe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x4061be
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x46989c], 0
push esi
jne 0x4061f5
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 0x4061cf
mov dword [ecx*4 + 0x469898], eax
inc ecx
cmp ecx, 0x100
jl 0x4061ca
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406226
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 + 0x469898]
xor eax, esi
inc ecx
dec edx
jne 0x406208
pop edi
not eax
pop esi
ret 0xc