joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452d97
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x452f16
lea eax, [ebp + 0x20]
mov dword [ebp - 0x7c], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x80]
movzx eax, byte [eax]
test eax, eax
je 0x452e44
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x452e28
push 0x1691
push 0
push 0
push 0x2219
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
jmp 0x452e3f
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x452f14
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x64]
movzx eax, byte [eax]
test eax, eax
je 0x452e86
push 0x9f2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x452f14
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x452ed8
mov eax, dword [ebp - 0x48]
cmp dword [eax], 0
jne 0x452ed8
and dword [ebp - 0x50], 0
jmp 0x452edf
mov dword [ebp - 0x50], 1
mov eax, dword [ebp - 4]
cmp dword [eax], 1
je 0x452ef0
mov dword [ebp - 0x58], 1
jmp 0x452ef4
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x68]
mov eax, dword [eax]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0x452f3a
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x78], eax
push dword [ebp - 0x78]
push 0
push 0x362e
push 0x74e
push 0x42cd
push 1
call fcn.0045ef48
add esp, 0x18
mov esp, ebp
pop ebp
ret
Function at 0x4568eb
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x456929
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 1
call fcn.00456984
add esp, 0x14
jmp 0x456980
lea eax, [ebp + 0x18]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x45696d
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x456960
push 0
push 0xba9
push 0
call dword [sym.imp.GDI32.dll_GetEnhMetaFileHeader]
jmp 0x45696b
push 0x1563
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x456980
push 0
push 1
push 0x1dc7
push 0
call fcn.004580ed
add esp, 0x10
mov esp, ebp
pop ebp
ret

Function at 0x4586ad
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x45876e
lea eax, [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x34], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x458735
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
test eax, eax
je 0x45871c
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x458733
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
jmp 0x45876c
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x458755
push 1
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
jmp 0x45876c
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x45876c
push 0x1563
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x458793
lea eax, [ebp + 0x24]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x40], eax
push 0x1e4d
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
push eax
push 1
push dword [ebp - 0x40]
call fcn.0044c287
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x4587f5
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x4588f5
lea eax, [ebp + 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x28]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x4588bb
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x458896
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0xffffffe7
jmp 0x45886b
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0xfffffff8
je 0x458894
mov byte [ebp - 1], 0
push 1
push 0x2073
push 0
lea eax, [ebp - 1]
push eax
push 1
push 0
push 1
call fcn.004575ba
add esp, 0x1c
jmp 0x458860
jmp 0x4588b9
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x4588b9
push 0
push 0xa44
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x4588f3
push 0x1329
push 0x2ba6
push 0x3bf
push 0xe6f
push 0x1c98
push 0x2d5b
push 0
push 0x2d7e
push 0x45a4
push 1
push 1
push 0
call fcn.0045560d
add esp, 0x30
jmp 0x45893e
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x34], eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push 0x72d9
push dword [ebp - 0x3c]
push 1
push dword [ebp - 0x40]
push dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
movzx eax, byte [eax]
push eax
call fcn.00450004
add esp, 0x20
mov esp, ebp
pop ebp
ret
Function at 0x494f41
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4aa0a7
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4bd7f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00492e57
mov dword [ebp - 0x14], eax
cmp dword [0xabd6d4], esi
jne 0x4aa19a
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4aa127
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4aa27a
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4aa27a
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4aa27a
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0xabd6d4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0xabd6d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0xabd6dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xabd6e4], eax
test eax, eax
je 0x4aa197
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xabd6e0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4aa1bf
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4aa1b2
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4aa1d4
push 4
pop eax
jmp 0x4aa27c
cmp dword [ebp - 0x14], esi
je 0x4aa1d4
push dword [0xabd6d4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4aa1b9
mov eax, dword [0xabd6e0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4aa232
cmp dword [0xabd6e4], edi
je 0x4aa232
push eax
call ebx
push dword [0xabd6e4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4aa232
test eax, eax
je 0x4aa232
call ecx
test eax, eax
je 0x4aa227
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4aa227
test byte [ebp - 8], 1
jne 0x4aa232
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4aa262
mov eax, dword [0xabd6d8]
cmp eax, edi
je 0x4aa25f
push eax
call ebx
test eax, eax
je 0x4aa25f
call eax
mov esi, eax
test esi, esi
je 0x4aa25f
mov eax, dword [0xabd6dc]
cmp eax, edi
je 0x4aa25f
push eax
call ebx
test eax, eax
je 0x4aa25f
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0xabd6d4]
call ebx
test eax, eax
je 0x4aa27a
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4aa27c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048fd8b
mov esp, ebp
pop ebp
ret
Function at 0x402a30
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 [0x42ecd0]
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 0x402ac4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a81
cmp dword [ebp + 0x10], ebx
jne 0x402ab8
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a30
test eax, eax
jne 0x402a93
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a68
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405c12
cmp eax, ebx
je 0x402acb
push ebx
push dword [0x42ecd0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ac4
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 [0x42ecd0], ebx
jne 0x402ac1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ac1
jmp 0x402ac4
Function at 0x405161
Capabilities:
Create process on windows

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

Function at 0x405226
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.004054c8
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x40525c
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42eca8], eax
jmp 0x4053e1
mov dword [ebp + 8], ecx
push edi
and dword [ebp + 8], 1
je 0x405277
test eax, eax
je 0x40538c
test cl, 2
je 0x40538c
mov esi, 0x42b098
push ebx
push esi
call fcn.004058f4
cmp dword [ebp + 8], 0
je 0x405296
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40529c
push ebx
call fcn.0040542e
push 0x409010
push ebx
call sub.KERNEL32.dll_lstrcatA
push ebx
call sub.KERNEL32.dll_lstrlenA
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x405382
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405412
cmp byte [eax], 0
je 0x4052ed
cmp byte [ebp - 0x18], 0
je 0x4052ed
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405303
mov al, byte [esi + 1]
test al, al
je 0x405361
cmp al, 0x2e
jne 0x405303
cmp byte [esi + 2], 0
je 0x405361
push esi
push edi
call fcn.004058f4
test byte [ebp - 0x148], 0x10
je 0x405328
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405361
push dword [ebp + 0xc]
push ebx
call fcn.00405226
jmp 0x405361
push ebx
call fcn.004055ac
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405359
test byte [ebp + 0xc], 4
je 0x405351
push ebx
push 0xfffffffffffffff1
call fcn.00404c9f
push 0
push ebx
call fcn.00405642
jmp 0x405361
inc dword [0x42eca8]
jmp 0x405361
push ebx
push 0xfffffffffffffff2
call fcn.00404c9f
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4052cb
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40538c
and byte [edi - 1], 0
xor esi, esi
pop edi
cmp dword [ebp + 8], esi
je 0x4053e1
cmp dword [ebp - 8], esi
jne 0x4053a1
inc dword [0x42eca8]
jmp 0x4053e1
push ebx
call fcn.00405beb
test eax, eax
je 0x4053e1
push ebx
call fcn.004053e7
push ebx
call fcn.004055ac
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4053d9
test byte [ebp + 0xc], 4
je 0x405399
push ebx
push 0xfffffffffffffff1
call fcn.00404c9f
push esi
push ebx
call fcn.00405642
jmp 0x4053e1
push ebx
push 0xffffffffffffffe5
call fcn.00404c9f
pop esi
pop ebx
leave
ret 8
Function at 0x4054c8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42b498
push esi
call fcn.004058f4
push esi
call fcn.0040547b
mov edi, eax
test edi, edi
jne 0x4054e9
xor eax, eax
jmp 0x40553b
push edi
call fcn.00405b52
test byte [0x42ec34], 0x80
je 0x405502
mov al, byte [edi]
test al, al
je 0x4054e5
cmp al, 0x5c
je 0x4054e5
sub edi, esi
jmp 0x40551a
call fcn.00405beb
test eax, eax
je 0x405514
test byte [eax], 0x10
je 0x4054e5
push esi
call fcn.0040542e
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405506
call fcn.004053e7
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 0x4055ac
Capabilities:
Check if file exists
Get file attributes
Set file attributes

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

Function at 0x4055cb
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 0x4055fa
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
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 0x40563e
test edi, edi
jne 0x405605
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405638
Function at 0x405642
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405c12
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405666
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x40579f
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42c220], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x42c220
je 0x4056aa
push 1
push 0
push esi
call fcn.004055cb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4057a5
cmp eax, edi
jg 0x4057a5
mov esi, 0x42bc98
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4057a5
cmp eax, edi
jg 0x4057a5
push esi
push ebp
push str._s_s_r_n
push 0x42b898
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42ec2c]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405916
push 4
push 0xc0000000
push esi
call fcn.004055cb
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x40579f
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 0x405798
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405798
cmp edi, dword [esp + 0x18]
jne 0x405798
push str._Rename__r_n
push esi
call fcn.00405540
test eax, eax
jne 0x4057ac
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004058f4
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x42b898
push eax
call fcn.0040558c
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
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]
inc dword [0x42ecb0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x4093a0
push eax
call fcn.00405540
test eax, eax
je 0x405763
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x4057d3
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4057c8
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405765
Function at 0x4057db
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 0x40584c
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 0x40583b
cmp dword [ebp + 0x14], 1
je 0x40583d
cmp dword [ebp + 0x14], 2
je 0x40583d
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 0x405c7e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c624], 0
push esi
jne 0x405cb5
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 0x405c8f
mov dword [ecx*4 + 0x42c620], eax
inc ecx
cmp ecx, 0x100
jl 0x405c8a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405ce6
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 + 0x42c620]
xor eax, esi
inc ecx
dec edx
jne 0x405cc8
pop edi
not eax
pop esi
ret 0xc

Function at 0x417cd0
Capabilities:
Check os version

Disassembly:
sub esp, 8
mov eax, dword [0x5fd030]
mov dword [esp + 4], 0
lea ecx, [eax + eax]
mov eax, dword [0x5fd034]
or ecx, eax
mov dword [esp], ecx
fild qword [esp]
fadd qword [0x5fd058]
fstp qword [0x5fd058]
call fcn.00417c10
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
xor edx, edx
and ecx, 0xff
mov dl, ah
cmp ecx, 5
mov eax, edx
jne 0x417d2f
cmp eax, 1
jae 0x417d3f
mov dword [0x5fffd8], 0x409
add esp, 8
ret
ja 0x417d3f
mov dword [0x5fffd8], 0x409
add esp, 8
ret
mov dword [0x5fffd8], 0x7f
add esp, 8
ret

Function at 0x5f4bf9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5fd3b0
cmp edx, dword [eax]
je 0x5f4c1b
add eax, 8
inc ecx
cmp eax, 0x5fd440
jl 0x5f4c0c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5fd3b0]
jne 0x5f4d49
mov eax, dword [0x604d48]
cmp eax, 1
je 0x5f4d23
test eax, eax
jne 0x5f4c4c
cmp dword [0x5fd2d8], 1
je 0x5f4d23
cmp edx, 0xfc
je 0x5f4d49
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5f4c83
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.005f55e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.005f5a70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x5f4cc6
lea eax, [ebp - 0x1a4]
push eax
call fcn.005f5a70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x5f9bfc
push edi
call fcn.005f7940
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.005f55e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.005f55f0
lea eax, [ebp - 0xa0]
push 0x5f9bdc
push eax
call fcn.005f55f0
push dword [esi + 0x5fd3b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.005f55f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.005f78b4
add esp, 0x2c
pop edi
jmp 0x5f4d49
lea eax, [ebp + 8]
lea esi, [esi + 0x5fd3b4]
push 0
push eax
push dword [esi]
call fcn.005f5a70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret