joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8e12a4
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8e12aa
pop ebp
sub ebp, 6
sub ebp, 0x4e12a4
jmp 0x8e1308
jmp 0x8e1311
mov eax, 0x4e12a4
add eax, ebp
add eax, 0x93
mov ecx, 0x61c
mov edx, 0xa2a15530
xor byte [eax], dl
inc eax
dec ecx
jne 0x8e1328
jmp 0x8e133b
pop edx
jo 0x8e1396
xor byte [eax], ah
xor byte [eax], dh
pop eax
xor ah, bh
sbb al, 0x30
add esi, eax
pushal
iretd
insd dword es:[edi], dx
mov ebx, 0x303038b5
xor byte [ebx + 0x30303ca5], bh
xor byte [ebx + 0x303020bd], bh
xor cl, dh
fnstenv [edx]
add dword [edx], esi
mov bl, 0xf2
xor al, 0x79
aas
mov ch, 0xc4
iretd
Function at 0x401000
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
dec edi
neg ebx
not eax
rol eax, 0x24
rol edi, 0xe6
or eax, 0xe9
mov edx, 0x2e
bswap edi
rol ebx, 0x4e
bswap ebx
dec edi
dec edi
not edx
rcl edx, 0x1b
neg edx
imul edi
not edx
rcl edi, 0x59
sbb esi, 0xce
rcr esi, 0xc0
inc ebx
not ebx
imul ebx
ror esi, 0xc1
dec ebx
not edx
dec edx
inc esi
imul esi
sbb edi, 0x72
mov edx, 0x1d
rcl esi, 0x9b
imul edx
dec edx
sub edx, 0xf3
sbb edi, 0x1b
rol esi, 0xe0
mov edi, 0x49
rcl edx, 0xad
rol eax, 0x19
bswap edx
bswap ebx
or edx, 0x5b
bswap edx
mov edx, 0x35
sbb eax, 0x65
neg eax
sub ebx, 0xcc
mov edx, 0x6e
sub ebx, 0x8b
xor ecx, ecx
xor edi, edi
or eax, 2
sub edi, 0xb8
mov edi, 0xfb
or ebx, 0x97
add edi, 0xae
inc esi
ror ebx, 0xad
or esi, 0x15
bswap ebx
sub eax, 0x5f
sub ebx, 0x6e
ror esi, 0xd9
not edx
rcl ebx, 0x8f
dec esi
rol edx, 0xa3
ror esi, 0x4d
sub edx, 0xe5
imul eax
dec esi
neg eax
imul eax
imul ebx
neg eax
ror ebx, 0x62
or ebx, 0xe6
dec eax
neg edi
rcl edx, 0xbf
mov ebx, 0xf1
neg edi
rcr ebx, 0xb7
ror ebx, 0xa7
not edi
mov edx, 0xba
bswap ebx
not edx
and esi, 0xa
dec edi
or edi, 0xb0
mov ebx, 0xf
ror eax, 0x46
neg esi
bswap ebx
inc eax
or esi, 0xf8
inc edx
add edx, 0xa3
bswap edx
sbb edi, 0xad
mov ecx, dword [ebp + 0xc]
rcl eax, 0xdf
or edx, 0x4b
inc eax
rol ebx, 0x23
dec ebx
not eax
mov ebx, 0x81
rcl esi, 0xb4
sub esi, 0x2e
not edi
or eax, 0xc
neg eax
neg edx
inc ebx
and esi, 0x5d
bswap eax
not edi
and edx, 0xb2
or edi, 0xac
ror eax, 0xb6
or edi, 0x8c
rol ebx, 0x24
not edx
imul edi
dec eax
neg edx
neg ebx
rol ebx, 0xd
and esi, 0xfe
dec edi
dec ebx
dec edi
rcr eax, 0x93
imul ebx
bswap eax
add esi, 0xe6
not ebx
and esi, 0x40
bswap edi
inc edx
sub edi, 0x78
rol edi, 0x45
and edi, 0x46
bswap edi
mov edx, 0x6d
add edx, 0x97
dec esi
and eax, 0x73
and ebx, 0xe8
mov esi, 0x63
mov edi, dword [ebp + 8]
xor esi, ebx
mov esi, ebx
mov ebx, eax
mov esi, ebx
mov ebx, eax
xor esi, esi
xor esi, esi
xor ebx, eax
xor ebx, eax
mov eax, eax
mov eax, ebx
mov eax, ebx
not byte [edi]
mov esi, eax
xor esi, ebx
mov esi, esi
xor eax, esi
mov eax, esi
mov esi, eax
mov esi, eax
xor eax, ebx
xor eax, ebx
sub byte [edi], 0x65
mov ebx, esi
mov ebx, ebx
xor eax, esi
mov ebx, esi
xor eax, ebx
xor ebx, eax
xor esi, ebx
mov esi, esi
xor ebx, eax
add byte [edi], 0x98
xor eax, eax
xor ebx, esi
mov esi, ebx
xor eax, eax
mov ebx, ebx
xor esi, eax
mov esi, esi
xor esi, esi
mov eax, esi
imul byte [edi]
inc edi
loop 0x4011cf
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x404c44
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5810f0]
jne 0x404c4e
repz ret
jmp fcn.00409145
Function at 0x4055b3
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.00402ee1
and dword [ebp - 4], 0
cmp dword [0x581df4], 0
mov ebx, eax
jne 0x405664
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405715
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405715
push eax
call fcn.00402e6f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x581df4], eax
call esi
push eax
call fcn.00402e6f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x581df8], eax
call esi
push eax
call fcn.00402e6f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x581dfc], eax
call esi
push eax
call fcn.00402e6f
pop ecx
mov dword [0x581e04], eax
test eax, eax
je 0x405664
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402e6f
pop ecx
mov dword [0x581e00], eax
mov eax, dword [0x581e00]
cmp eax, ebx
je 0x4056bc
cmp dword [0x581e04], ebx
je 0x4056bc
push eax
call fcn.00402eea
push dword [0x581e04]
mov esi, eax
call fcn.00402eea
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4056bc
test edi, edi
je 0x4056bc
call esi
test eax, eax
je 0x4056b3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4056b3
test byte [ebp - 0xc], 1
jne 0x4056bc
or dword [ebp + 0x10], 0x200000
jmp 0x4056f5
mov eax, dword [0x581df8]
cmp eax, ebx
je 0x4056f5
push eax
call fcn.00402eea
pop ecx
test eax, eax
je 0x4056f5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4056f5
mov eax, dword [0x581dfc]
cmp eax, ebx
je 0x4056f5
push eax
call fcn.00402eea
pop ecx
test eax, eax
je 0x4056f5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x581df4]
call fcn.00402eea
pop ecx
test eax, eax
je 0x405715
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405717
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b2b0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4e804c
call sym._EnterCriticalSection_4
mov ebx, dword [0x4e8044]
sub esp, 4
test ebx, ebx
je 0x40b2fb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x40b2f4
test esi, esi
je 0x40b2f4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40b2d0
mov dword [esp], 0x4e804c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40b4e0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x40b530
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40b608
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40b56e
cmp eax, 4
jne 0x40b590
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40b57e
cmp edx, 4
je 0x40b57e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0040b4e0

Function at 0x40bb80
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sym._GetLastError_0
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sym._SetLastError_4
sub esp, 4
mov eax, ebx
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40bbb0
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
je 0x40bbd4
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp sym._GetLastError_0
Function at 0x41d5c0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x4a3abc], 0
jne 0x41d694
mov byte [0x4a3abc], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x41d72e
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0x1c], 0xffffffff
sete al
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call sym.___cxa_demangle
mov esi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x30
mov ebp, eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
lea edi, [esi + 0x40]
mov dword [esp + 0xc], edi
call sym._fwrite
cmp dword [esp + 0x1c], 0
mov dword [esp + 4], edi
je 0x41d68a
mov dword [esp], ebx
call sym._fputs
lea eax, [esi + 0x40]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x4a423d
mov dword [esp + 0xc], eax
call sym._fwrite
cmp dword [esp + 0x1c], 0
je 0x41d6c1
call sym.___cxa_rethrow
mov dword [esp], ebp
call sym._fputs
jmp 0x41d65b
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
call sym._abort
mov dword [esp], ebp
call sym._free
jmp 0x41d685
call sym._abort
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
jmp 0x41d729
Function at 0x402b78
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push edi
push ebx
lea eax, [ebp - 4]
push esi
push eax
mov eax, dword [0x434f50]
or al, 8
xor edi, edi
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x402c0c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, 0x105
jmp 0x402bc9
cmp dword [ebp + 0x10], edi
jne 0x402c00
lea eax, [ebp - 0x210]
push edi
push eax
push dword [ebp - 4]
call fcn.00402b78
test eax, eax
jne 0x402bdb
lea eax, [ebp - 0x210]
push esi
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402bb0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.0040610b
cmp eax, edi
je 0x402c13
push edi
push dword [0x434f50]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402c0c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop esi
pop ebx
pop edi
leave
ret 0xc
cmp dword [0x434f50], edi
jne 0x402c09
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
or eax, eax
jne 0x402c09
jmp 0x402c0c
Function at 0x40551c
Capabilities:
Create process on windows

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

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

Disassembly:
push edi
mov edi, dword [esp + 8]
push esi
push edi
call fcn.004059e8
mov esi, eax
cmp esi, 0xffffffff
je 0x405622
test byte [esp + 0x10], 1
push edi
je 0x405604
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40560a
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405613
xor eax, eax
inc eax
jmp 0x405624
test byte [esp + 0x10], 4
jne 0x405622
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop esi
pop edi
ret 8
Function at 0x405629
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 eax, ebx
and eax, 4
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 4], eax
call fcn.004058f4
mov dword [ebp - 8], eax
test bl, 8
je 0x405668
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x434f28], eax
jmp 0x4057e5
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405682
test eax, eax
je 0x405793
test bl, 2
je 0x405793
push esi
mov ebx, 0x42f200
push ebx
call fcn.00405da1
cmp dword [ebp + 8], 0
je 0x4056a1
push str..
push ebx
call sub.KERNEL32.dll_lstrcatW
jmp 0x4056a7
push esi
call fcn.00405838
cmp word [esi], 0
jne 0x4056b7
cmp word [0x42f200], 0x5c
jne 0x4056c2
push 0x40a014
push esi
call sub.KERNEL32.dll_lstrcatW
push esi
call sub.KERNEL32.dll_lstrlenW
lea edi, [esi + eax*2]
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405788
cmp word [ebp - 0x22c], 0x2e
jne 0x40570c
cmp word [ebp - 0x22a], 0
je 0x40576b
cmp word [ebp - 0x22a], 0x2e
jne 0x40570c
cmp word [ebp - 0x228], 0
je 0x40576b
lea eax, [ebp - 0x22c]
push eax
push edi
call fcn.00405da1
test byte [ebp - 0x258], 0x10
je 0x405737
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40576b
push dword [ebp + 0xc]
push esi
call fcn.00405629
jmp 0x40576b
push dword [ebp - 4]
push esi
call fcn.004055e1
test eax, eax
jne 0x405763
cmp dword [ebp - 4], eax
je 0x40575b
push esi
push 0xfffffffffffffff1
call fcn.0040504b
push 0
push esi
call fcn.00405c3b
jmp 0x40576b
inc dword [0x434f28]
jmp 0x40576b
push esi
push 0xfffffffffffffff2
call fcn.0040504b
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
or eax, eax
jne 0x4056e4
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405793
and word [edi - 2], 0
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4057e5
cmp dword [ebp - 8], ebx
jne 0x4057a7
inc dword [0x434f28]
jmp 0x4057e5
push esi
call fcn.004060e4
test eax, eax
je 0x4057e5
push esi
call fcn.004057ec
mov eax, dword [ebp - 4]
or al, 1
push eax
push esi
call fcn.004055e1
or eax, eax
jne 0x4057dd
cmp dword [ebp - 4], ebx
je 0x40579f
push esi
push 0xfffffffffffffff1
call fcn.0040504b
push ebx
push esi
call fcn.00405c3b
jmp 0x4057e5
push esi
push 0xffffffffffffffe5
call fcn.0040504b
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4058f4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, 0x42fa00
push edi
push dword [esp + 0xc]
push esi
call fcn.00405da1
push esi
call fcn.00405897
mov edi, eax
or edi, edi
jne 0x405915
xor eax, eax
jmp 0x40596d
push edi
call fcn.00406035
test byte [0x434eb8], 0x80
je 0x405932
mov ax, word [edi]
test ax, ax
je 0x405911
cmp ax, 0x5c
je 0x405911
sub edi, esi
sar edi, 1
jmp 0x40594c
call fcn.004060e4
or eax, eax
je 0x405946
test byte [eax], 0x10
je 0x405911
push esi
call fcn.00405838
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405938
call fcn.004057ec
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 0x4059e8
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 0x405a07
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 0x405a0d
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 0x405a3c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, dword [ebp + 8]
push esi
push 0x64
pop esi
mov eax, dword [0x40a50c]
dec esi
mov dword [ebp - 8], eax
mov eax, dword [0x40a510]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
push 0x1a
pop ecx
div ecx
lea eax, [ebp - 8]
push edi
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405a8c
test esi, esi
jne 0x405a49
and word [edi], si
pop esi
pop edi
leave
ret 8
mov eax, edi
jmp 0x405a86

Function at 0x405a90
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, esp
push ebp
lea eax, [esi + 0x10]
mov ebp, dword [esi + 0x10]
push 0
push eax
push ebp
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405ab8
cmp ebp, dword [esi + 0x10]
jne 0x405ab8
xor eax, eax
inc eax
jmp 0x405aba
xor eax, eax
pop ebp
pop esi
ret 0xc
Function at 0x405abf
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, 0x430898
push esi
push edi
push 0x40a530
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov edi, 0x400
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x405b0e
push 1
push 0
push esi
call fcn.00405a0d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405c35
cmp eax, edi
jg 0x405c35
push edi
mov esi, 0x431098
push esi
push dword [esp + 0x20]
call ebx
test eax, eax
je 0x405c35
cmp eax, edi
jg 0x405c35
push esi
push ebp
push str._ls_ls_r_n
push 0x430498
call dword [sym.imp.USER32.dll_wsprintfA]
sub esp, 0xfffffff0
mov ebx, eax
mov eax, dword [0x434eb0]
push dword [eax + 0x128]
push esi
call fcn.00405dc3
push 4
push 0xc0000000
push esi
call fcn.00405a0d
mov ebp, eax
mov dword [esp + 0x1c], ebp
cmp ebp, 0xffffffff
je 0x405c35
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 0x405c2e
push edi
push esi
push ebp
call fcn.00405a90
test eax, eax
je 0x405c2e
push str._Rename__r_n
push esi
call fcn.00405972
test eax, eax
jne 0x405bc4
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
sub edi, 0xfffffff6
jmp 0x405bf9
push 0x40a514
sub eax, 0xfffffff6
push eax
call fcn.00405972
mov ebp, eax
or ebp, ebp
je 0x405bf5
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405be6
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405be0
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x405bfb
mov ebp, dword [esp + 0x1c]
mov eax, edi
add eax, esi
push ebx
push 0x430498
push eax
call fcn.004059c8
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
lea eax, [esp + 0x10]
push 0
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 0x405c6e
Capabilities:
Query or enumerate registry value

Disassembly:
push edi
mov edi, esp
push esi
lea esi, [edi + 0x18]
push ebp
push esi
mov eax, dword [edi + 0x18]
xor ebp, ebp
neg eax
sbb eax, eax
mov esi, dword [edi + 0x14]
and eax, 0x100
or eax, 0x20019
mov word [esi], bp
push eax
push ebp
push dword [edi + 0xc]
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405ce2
lea eax, [edi + 0xc]
mov dword [edi + 0xc], 0x800
push eax
lea eax, [edi + 0x14]
push esi
push eax
push ebp
push dword [edi + 0x10]
push dword [edi + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405ccf
cmp dword [edi + 0x14], 1
je 0x405cd2
cmp dword [edi + 0x14], 2
je 0x405cd2
mov word [esi], bp
push dword [edi + 0x18]
mov word [esi + 0x7fe], bp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop esi
pop edi
ret 0x14
Function at 0x4061b9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43189c], 0
push esi
jne 0x4061f0
xor ecx, ecx
push 8
pop esi
mov eax, ecx
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4061ca
mov dword [ecx*4 + 0x431898], eax
inc ecx
cmp ecx, 0x100
jl 0x4061c5
mov eax, dword [esp + 8]
not eax
mov edx, dword [esp + 0x10]
test edx, edx
jbe 0x406221
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
mov esi, dword [esi*4 + 0x431898]
shr eax, 8
xor eax, esi
inc ecx
dec edx
jne 0x406203
pop edi
not eax
pop esi
ret 0xc
Function at 0x403005
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 0xc18], ebx
cmp byte [esi + 0x16], bl
je 0x40301f
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x403032
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x403045
mov dword [ebp + 0x14], 3
xor eax, eax
cmp byte [esi + 0x15], bl
setne al
dec eax
and eax, 0x8000000
mov edi, eax
call fcn.004069f0
test eax, eax
je 0x40307e
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x40307e
cmp word [eax], bx
je 0x40307e
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x403092
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4030ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4030ae
mov dword [esi + 0xc18], 1
cmp edi, 0xffffffff
setne byte [ebp + 0x13]
mov byte [esi + 0x12], bl
mov dword [esi + 0xc], ebx
mov byte [esi + 0x10], bl
cmp byte [ebp + 0x13], bl
je 0x403110
mov dword [esi + 4], edi
cmp dword [ebp + 0xc], ebx
je 0x4030dc
push dword [ebp + 0xc]
lea eax, [esi + 0x418]
push eax
call fcn.0040ca1b
jmp 0x4030e5
xor eax, eax
mov word [esi + 0x418], ax
lea eax, [esi + 0x17]
cmp dword [ebp + 8], ebx
je 0x4030f8
push dword [ebp + 8]
push eax
call fcn.00408e0d
jmp 0x403106
push 0x1000000
push eax
push dword [ebp + 0xc]
call fcn.0040c868
push dword [esi + 4]
mov ecx, esi
call fcn.00402e88
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4031db
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc], 1
mov esi, 0x4e20
jne 0x403201
cmp dword [ebp + 0xc], esi
jbe 0x4031f6
mov dword [ebp + 0xc], esi
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403251
mov ecx, edi
call fcn.00402fbf
test al, al
je 0x403237
cmp dword [ebp + 0xc], esi
jbe 0x403237
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.004031db
jmp 0x403254
cmp dword [edi + 0xc], 1
jne 0x40324c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x40324c
xor eax, eax
jmp 0x403254
or eax, 0xffffffff
jmp 0x403254
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8

Function at 0x403525
Capabilities:
Get file attributes

Disassembly:
call fcn.004069f0
test eax, eax
je 0x403545
mov eax, dword [esp + 8]
test eax, eax
je 0x403545
cmp word [eax], 0
je 0x403545
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x40354f
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret 8