joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10336db
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 2
mov edi, ecx
xor esi, esi
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, eax
cmp ebx, esi
jl 0x10337aa
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push esi
push 1
push 0x64
push edi
call fcn.0103358d
push esi
push 1
push 0x66
push edi
call fcn.0103358d
push esi
push dword [ebp + 8]
push edi
call fcn.01033165
mov ebx, eax
cmp ebx, esi
jl 0x10337a2
mov ecx, dword [ebp - 4]
mov edi, 0x80000002
push edi
call fcn.010283b0
mov ebx, eax
cmp ebx, esi
jl 0x1033795
push esi
lea eax, [ebp + 8]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push 0x10049f0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x103377f
push 0x4c
push 0x1033930
push 1
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10337a2
jle 0x103378b
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
push ebx
push 0x10338b0
jmp 0x103379b
push ebx
push 0x1033820
call fcn.0100164a
pop ecx
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x10337b7
push ebx
push 0x10337c0
call fcn.0100164a
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8

Function at 0x10346c7
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ecx]
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
xor esi, esi
call dword [eax + 0x78]
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp eax, esi
je 0x10346ed
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov dword [edi], esi
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
xor ecx, ecx
mov dword [ebx], eax
cmp eax, ecx
je 0x103472f
cmp dword [ebp + 0x1c], ecx
je 0x103472f
push eax
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x7ff8fff2
add esi, 0x8007000e
pop ecx
mov dword [edi], eax
js 0x1034779
push dword [ebx]
push dword [ebp + 0x1c]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor ecx, ecx
jmp 0x1034731
mov dword [edi], ecx
push ecx
lea eax, [ebp - 4]
push eax
push ecx
push 0x20006
push ecx
push ecx
push ecx
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x103476c
push dword [ebx]
push dword [edi]
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [edi]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x104], eax
jmp 0x103477c
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
call dword [eax + 0x7c]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18
Function at 0x103782d
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x58], edi
jne 0x103788a
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push edi
push edi
call ebx
mov dword [esi + 0x5c], eax
cmp eax, edi
je 0x103787c
push edi
push edi
push edi
push edi
call ebx
mov dword [esi + 0x60], eax
cmp eax, edi
je 0x103787c
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x10377bd
push edi
push edi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x58], eax
cmp eax, edi
jne 0x103788a
mov ecx, esi
call fcn.01014474
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [esi + 0x58]
jmp 0x1037885

Function at 0x103f8f7
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.010154b7
mov eax, dword [0x10489a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1018], eax
cmp eax, ebx
jne 0x103f92b
xor eax, eax
jmp 0x103f9ef
mov ecx, dword [ebp + 0x10]
push esi
add ecx, ecx
push ecx
push ebx
push eax
call sub.msvcrt.dll_memset
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1004]
push ebx
push eax
mov dword [ebp - 0x1008], ebx
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x100c], eax
xor eax, eax
add esp, 0x18
mov word [ebp - 0x1010], ax
lea eax, [ebp - 0x101c]
push eax
push 0xc
lea eax, [ebp - 0x1014]
push eax
push 0x58
mov dword [ebp - 0x1014], edi
mov word [ebp - 0x100e], si
mov dword [ebp - 0x101c], ebx
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
pop esi
test eax, eax
jl 0x103f9e9
mov ecx, dword [ebp - 0x100c]
cmp ecx, ebx
je 0x103f9e9
cmp word [ebp - 0x1010], bx
je 0x103f9e9
movzx eax, word [ebp - 0x1010]
shr eax, 1
cmp eax, 0x800
jb 0x103f9c2
mov eax, 0x7ff
xor edx, edx
mov word [ecx + eax*2], dx
push dword [ebp - 0x100c]
push dword [ebp + 0x10]
push dword [ebp - 0x1018]
call fcn.01003f57
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp - 0x1008], ecx
mov eax, dword [ebp - 0x1008]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.01001b23
leave
ret 0xc
Function at 0x103fece
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
xor edx, edx
mov dword [ebp - 4], 0x80004005
cmp dword [ebp + 0xc], edx
je 0x103ff8d
mov eax, dword [ebp + 0xc]
push esi
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, dx
jne 0x103feee
sub eax, esi
sar eax, 1
je 0x103ff8c
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [ebp + 0x10]
push edi
push edx
push edx
push edx
push dword [ebp + 0xc]
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x103ff8a
mov eax, dword [edi]
cmp eax, 0x28
jb 0x103ff8a
cmp eax, 0xffff
ja 0x103ff8a
mov esi, dword [ebp + 0x14]
mov eax, dword [esi]
test eax, eax
je 0x103ff3e
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
and dword [esi], 0
pop ecx
push dword [edi]
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [esi], eax
test eax, eax
je 0x103ff8a
push dword [edi]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push dword [esi]
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x103ff8a
mov eax, dword [esi]
mov ecx, dword [eax]
cmp ecx, dword [edi]
jne 0x103ff80
cmp dword [eax + 4], 2
jne 0x103ff80
and dword [ebp - 4], 0
jmp 0x103ff8a
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
and dword [esi], 0
pop ecx
pop edi
pop ebx
pop esi
mov eax, dword [ebp - 4]
leave
ret 0x10
Function at 0x10409d4
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10489a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x214], ecx
cmp edx, 0xa
je 0x1040a0b
cmp edx, 0x14
je 0x1040a0b
cmp edx, 0x1e
jne 0x1040b16
test eax, eax
je 0x1040b16
test ecx, ecx
je 0x1040b16
push eax
push edx
push 0x101ce18
lea eax, [ebp - 0x208]
push 0x100
push eax
call fcn.01007913
add esp, 0x14
test eax, eax
jl 0x1040b16
and dword [ebp - 0x210], 0
push ebx
push esi
push edi
lea eax, [ebp - 0x210]
push eax
mov ebx, 0xf003f
push ebx
push 0
mov edi, 0x101cdd0
push edi
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
cmp eax, ecx
jle 0x1040a79
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x20c], eax
cmp eax, 0x80070002
jne 0x1040aaf
push ecx
lea eax, [ebp - 0x210]
push eax
push ecx
push ebx
push ecx
push ecx
push ecx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jle 0x1040aa9
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
pop edi
pop esi
pop ebx
jl 0x1040b20
mov eax, dword [ebp - 0x214]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1040ac4
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x214]
lea eax, [ebp - 0x208]
push 1
push 0
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jle 0x1040b02
and eax, 0xffff
or eax, 0x80070000
push dword [ebp - 0x210]
mov dword [ebp - 0x20c], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1040b20
mov dword [ebp - 0x20c], 0x80070057
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20c]
xor ecx, ebp
call fcn.01001b23
leave
ret 0xc
Function at 0x1040b39
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x10489a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0x14]
xor esi, esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x220], eax
cmp dword [ebp + 0xc], esi
jbe 0x1040cc7
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x214]
push eax
push 0x20019
push esi
push 0x101cdd0
push 0x80000002
mov dword [ebp - 0x214], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jle 0x1040ba6
and eax, 0xffff
or eax, 0x80070000
cmp eax, esi
mov dword [ebp - 0x20c], eax
jl 0x1040cd1
push ebx
push 0xa
mov dword [ebp - 0x210], esi
pop ebx
cmp dword [ebp - 0x210], esi
jne 0x1040c9e
push dword [ebp - 0x224]
lea eax, [ebp - 0x208]
push ebx
push 0x101ce18
push 0x100
push eax
call fcn.01007913
add esp, 0x14
test eax, eax
jl 0x1040c94
mov eax, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
push eax
push edi
lea eax, [ebp - 0x218]
push eax
push esi
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x218], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jle 0x1040c36
and eax, 0xffff
or eax, 0x80070000
cmp eax, esi
jl 0x1040c87
cmp dword [ebp - 0x218], 1
jne 0x1040c87
mov eax, dword [ebp - 0x21c]
cmp eax, esi
jbe 0x1040c87
test al, 1
jne 0x1040c87
shr eax, 1
dec eax
mov esi, eax
xor eax, eax
cmp ax, word [edi + esi*2]
jne 0x1040c85
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1040c61
sub eax, edx
sar eax, 1
cmp eax, esi
jne 0x1040c85
mov eax, dword [ebp - 0x220]
mov dword [eax], ebx
mov dword [ebp - 0x210], 1
xor esi, esi
add ebx, 0xa
cmp ebx, 0x1e
ja 0x1040c9e
jmp 0x1040bbe
mov dword [ebp - 0x20c], 0x80070057
cmp dword [ebp - 0x20c], esi
pop ebx
jl 0x1040cb9
cmp dword [ebp - 0x210], esi
jne 0x1040cb9
mov dword [ebp - 0x20c], 1
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1040cd1
mov dword [ebp - 0x20c], 0x80070057
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20c]
pop edi
xor ecx, ebp
pop esi
call fcn.01001b23
leave
ret 0x10
Function at 0x402a47
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 [0x42ec50]
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 0x402adb
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a98
cmp dword [ebp + 0x10], ebx
jne 0x402acf
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a47
test eax, eax
jne 0x402aaa
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a7f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405ebe
cmp eax, ebx
je 0x402ae2
push ebx
push dword [0x42ec50]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402adb
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 [0x42ec50], ebx
jne 0x402ad8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ad8
jmp 0x402adb
Function at 0x405363
Capabilities:
Create process on windows

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.0040581c
mov edi, eax
cmp edi, 0xffffffff
je 0x405469
test byte [esp + 0x10], 1
push esi
je 0x40544b
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405451
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40545a
xor eax, eax
inc eax
jmp 0x40546b
test byte [esp + 0x10], 4
jne 0x405469
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405470
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.0040572e
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4054af
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42ec28], eax
jmp 0x405639
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4054c9
test eax, eax
je 0x4055e7
test bl, 2
je 0x4055e7
mov esi, 0x42b028
push edi
push esi
call fcn.00405b93
cmp dword [ebp + 8], 0
je 0x4054e8
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4054ee
push edi
call fcn.00405687
cmp byte [edi], 0
jne 0x4054fc
cmp byte [0x42b028], 0x5c
jne 0x405507
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 0x4055dd
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.0040566b
cmp byte [eax], 0
je 0x40554d
cmp byte [ebp - 0x1c], 0
je 0x40554d
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405563
mov al, byte [esi + 1]
test al, al
je 0x4055bc
cmp al, 0x2e
jne 0x405563
cmp byte [esi + 2], 0
je 0x4055bc
push esi
push ebx
call fcn.00405b93
test byte [ebp - 0x14c], 0x10
je 0x405588
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4055bc
push dword [ebp + 0xc]
push edi
call fcn.00405470
jmp 0x4055bc
push dword [ebp - 4]
push edi
call fcn.00405428
test eax, eax
jne 0x4055b4
cmp dword [ebp - 4], eax
je 0x4055ac
push edi
push 0xfffffffffffffff1
call fcn.00404ea0
push 0
push edi
call fcn.00405a47
jmp 0x4055bc
inc dword [0x42ec28]
jmp 0x4055bc
push edi
push 0xfffffffffffffff2
call fcn.00404ea0
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40552b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4055e7
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405639
cmp dword [ebp - 0xc], esi
jne 0x4055fb
inc dword [0x42ec28]
jmp 0x405639
push edi
call fcn.00405e97
test eax, eax
je 0x405639
push edi
call fcn.00405640
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405428
test eax, eax
jne 0x405631
cmp dword [ebp - 4], esi
je 0x4055f3
push edi
push 0xfffffffffffffff1
call fcn.00404ea0
push esi
push edi
call fcn.00405a47
jmp 0x405639
push edi
push 0xffffffffffffffe5
call fcn.00404ea0
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40572e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42b428
push esi
call fcn.00405b93
push esi
call fcn.004056d9
mov edi, eax
test edi, edi
jne 0x40574f
xor eax, eax
jmp 0x4057a1
push edi
call fcn.00405dfe
test byte [0x42ebb8], 0x80
je 0x405768
mov al, byte [edi]
test al, al
je 0x40574b
cmp al, 0x5c
je 0x40574b
sub edi, esi
jmp 0x405780
call fcn.00405e97
test eax, eax
je 0x40577a
test byte [eax], 0x10
je 0x40574b
push esi
call fcn.00405687
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x40576c
call fcn.00405640
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 0x40581c
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 0x40583b
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 0x405841
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 0x405870
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 [0x409368]
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 0x4058b5
test edi, edi
jne 0x40587b
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4058af
Function at 0x4058b9
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x42bdb0
push 0x409384
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 0x405908
push 1
push 0
push esi
call fcn.00405841
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405a41
cmp eax, ebx
jg 0x405a41
mov esi, 0x42c1b0
push ebx
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405a41
cmp eax, ebx
jg 0x405a41
push esi
push edi
push str._s_s_r_n
push 0x42b9b0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42ebb0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405bb5
push 4
push 0xc0000000
push esi
call fcn.00405841
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405a41
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 0x405a3a
lea eax, [esp + 0x10]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405a3a
cmp edi, dword [esp + 0x10]
jne 0x405a3a
push str._Rename__r_n
push esi
call fcn.004057a6
test eax, eax
jne 0x4059d0
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405a05
add eax, 0xa
push 0x40936c
push eax
call fcn.004057a6
mov ebp, eax
test ebp, ebp
je 0x405a01
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4059f2
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4059ec
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x405a07
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x42b9b0
push eax
call fcn.004057fc
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 0x405a7a
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 0x405aeb
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 0x405ada
cmp dword [ebp + 0x14], 1
je 0x405adc
cmp dword [ebp + 0x14], 2
je 0x405adc
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 0x405f30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c5b4], 0
push esi
jne 0x405f67
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 0x405f41
mov dword [ecx*4 + 0x42c5b0], eax
inc ecx
cmp ecx, 0x100
jl 0x405f3c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f98
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 + 0x42c5b0]
xor eax, esi
inc ecx
dec edx
jne 0x405f7a
pop edi
not eax
pop esi
ret 0xc