joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41902c
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x419028
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x419023
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
add byte [eax], al
add byte [eax], al
cmp edx, 0x3000
jne 0x41900d
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x419015
cmp edx, ebx
jne 0x419163
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x418fe4
add eax, dword [eax + 4]
jmp 0x418fd1
mov dword [ebp + 0xc], ebx
jmp 0x419033
push es
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x41904b
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x419069
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4190c7
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4190ae
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4190b7
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4190c1
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4190a3
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x41902d
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x419114
dec eax
je 0x41910b
sub eax, 3
je 0x419102
mov dword [ebp - 4], 0x40
jmp 0x419131
mov dword [ebp - 4], 4
jmp 0x419117
mov dword [ebp - 4], 0x20
jmp 0x419117
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x419163
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4190e3
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41ce54
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, edx
mov dword [esp], pe_nt_image_headers32
test al, al
je 0x41ce75
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameA
jmp 0x41ce80
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, pe_nt_image_headers32
call fcn.004038dc
add esp, 0x104
pop ebx
ret
Function at 0x45b6c0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x45b6c6
ret

Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
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 eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408e54
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x2c9d6202
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x7aba7c8a
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x402e82
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, 0x442800
push 0x400
add eax, 0x3e8
push esi
push ebx
mov dword [0x434eec], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 3
push 0x80000000
push esi
call fcn.00405cb9
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0xc], edi
mov dword [0x40a018], edi
jne 0x402edc
mov eax, str.Error_launching_installer
jmp 0x4030b4
push esi
mov esi, 0x440800
push esi
call fcn.004060e4
push esi
call fcn.00405ae4
push eax
push 0x443000
call fcn.004060e4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [0x422a04], eax
mov esi, eax
jle 0x402ff7
mov ebx, 0x422a08
mov eax, dword [0x434ef4]
mov edi, esi
neg eax
sbb eax, eax
and eax, 0x7e00
add eax, 0x200
cmp esi, eax
jl 0x402f30
mov edi, eax
push edi
push ebx
call fcn.004032d6
test eax, eax
je 0x403061
cmp dword [0x434ef4], 0
jne 0x402fc2
push 0x1c
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.00405c74
mov eax, dword [ebp - 0x28]
test eax, 0xfffffff0
jne 0x402fd0
cmp dword [ebp - 0x24], 0xdeadbeef
jne 0x402fd0
cmp dword [ebp - 0x18], 0x74736e49
jne 0x402fd0
cmp dword [ebp - 0x1c], 0x74666f73
jne 0x402fd0
cmp dword [ebp - 0x20], 0x6c6c754e
jne 0x402fd0
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x4169f8]
and eax, 2
or dword [0x434f80], eax
mov eax, dword [ebp - 0x10]
cmp eax, esi
mov dword [0x434ef4], ecx
jg 0x40305a
test byte [ebp + 8], 8
jne 0x402fb4
test byte [ebp + 8], 4
jne 0x402ff5
inc dword [ebp - 4]
lea esi, [eax - 4]
cmp edi, esi
jbe 0x402fd0
mov edi, esi
jmp 0x402fd0
test byte [ebp + 8], 2
jne 0x402fd0
push 0
call fcn.00402e1e
pop ecx
cmp esi, dword [0x422a04]
jge 0x402fe5
push edi
push ebx
push dword [ebp - 8]
call fcn.0040656f
mov dword [ebp - 8], eax
add dword [0x4169f8], edi
sub esi, edi
test esi, esi
jg 0x402f15
xor ebx, ebx
push 1
call fcn.00402e1e
cmp dword [0x434ef4], ebx
pop ecx
je 0x40305a
cmp dword [ebp - 4], ebx
je 0x40302e
push dword [0x4169f8]
call fcn.004032ec
lea eax, [ebp + 8]
push 4
push eax
call fcn.004032d6
test eax, eax
je 0x40305a
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x40305a
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov eax, dword [0x434ef4]
add eax, 0x1c
push eax
call fcn.004032ec
push dword [ebp - 0x14]
push esi
push ebx
push 0xffffffffffffffff
call fcn.004030bb
cmp eax, dword [ebp - 0x14]
je 0x40306b
mov eax, str.Installer_integrity_check_has_failed._Common_causes_include_nincomplete_download_and_damaged_media._Contact_the_ninstallers_author_to_obtain_a_new_copy._n_nMore_information_at:_nhttp:__nsis.sf.net_NSIS_Error
jmp 0x4030b4
push 1
call fcn.00402e1e
pop ecx
jmp 0x40305a
test byte [ebp - 0x28], 1
mov dword [0x434ef0], esi
mov eax, dword [esi]
mov dword [0x434ef8], eax
je 0x403084
inc dword [0x434efc]
jmp 0x465fa0
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40392d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [0x434ef0]
push edi
push 2
call fcn.004064be
xor edi, edi
cmp eax, edi
je 0x403959
call eax
movzx eax, ax
push eax
push 0x441000
call fcn.0040602b
jmp 0x4039b3
mov ebx, 0x42d248
push edi
push ebx
push edi
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov word [0x441000], 0x30
mov word [0x441002], 0x78
mov word [0x441004], di
call fcn.00405fb1
cmp word [0x42d248], di
jne 0x4039a8
push edi
push ebx
push 0x4083d4
push str..DEFAULTControl_PanelInternational
push 0x80000003
call fcn.00405fb1
push ebx
push 0x441000
call sub.KERNEL32.dll_lstrcatW
call fcn.00403c03
mov eax, dword [0x434ef8]
mov ebp, 0x43f800
and eax, 0x20
push ebp
mov dword [0x434f60], eax
mov dword [0x434f7c], 0x10000
call fcn.00405ba0
test eax, eax
jne 0x403a6e
mov ecx, dword [esi + 0x48]
cmp ecx, edi
je 0x403a6e
mov edx, dword [esi + 0x4c]
mov eax, dword [0x434f18]
mov ebx, 0x432e80
push edi
lea edx, [eax + edx*2]
push ebx
lea eax, [eax + ecx*2]
push edx
push eax
push dword [esi + 0x44]
call fcn.00405fb1
mov ax, word [0x432e80]
cmp ax, di
je 0x403a6e
cmp ax, 0x22
jne 0x403a2d
mov ebx, 0x432e82
push 0x22
push ebx
call fcn.00405ac5
mov word [eax], di
push ebx
call sub.KERNEL32.dll_lstrlenW
lea eax, [ebx + eax*2 - 8]
cmp eax, ebx
jbe 0x403a61
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x403a61
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403a5b
test al, 0x10
jne 0x403a61
push ebx
call fcn.00405ae4
push ebx
call fcn.00405a98
push eax
push ebp
call fcn.004060e4
push ebp
call fcn.00405ba0
test eax, eax
jne 0x403a84
push dword [esi + 0x118]
push ebp
call fcn.00406106
push 0x8040
push edi
push edi
push 1
push 0x67
push dword [0x434ee0]
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [0x433ec8], eax
cmp dword [esi + 0x50], 0xffffffff
mov ebx, 0x433e80
je 0x403b2a
mov ecx, dword [0x434ee0]
mov esi, 0x40a380
push ebx
mov dword [0x433e84], 0x401000
mov dword [0x433e90], ecx
mov dword [0x433e94], eax
mov dword [0x433ea4], esi
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x403bf9
lea eax, [esp + 0x10]
push edi
push eax
push edi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push edi
push dword [0x434ee0]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
push edi
push edi
push eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push 0x80000000
push edi
push esi
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x42d228], eax
push edi
call fcn.0040140b
test eax, eax
je 0x403b3c
push 2
pop eax
jmp 0x403bfb
call fcn.00403c03
jmp 0x465c80
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x405712
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405763
xor eax, eax
jmp 0x40578a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x40578a
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x40575f
call esi
pop esi
leave
ret 4

Function at 0x4057c4
Capabilities:
Create process on windows

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405c94
mov edi, eax
cmp edi, 0xffffffff
je 0x4058ce
jmp loc.00465190
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405ba0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa50
push esi
call fcn.004060e4
push esi
call fcn.00405b43
mov edi, eax
test edi, edi
jne 0x405bc1
xor eax, eax
jmp 0x405c19
push edi
call fcn.00406378
test byte [0x434ef8], 0x80
je 0x405bde
mov ax, word [edi]
test ax, ax
je 0x405bbd
cmp ax, 0x5c
je 0x405bbd
sub edi, esi
sar edi, 1
jmp 0x405bf8
call fcn.00406427
test eax, eax
je 0x405bf2
test byte [eax], 0x10
je 0x405bbd
push esi
call fcn.00405ae4
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405be4
call fcn.00405a98
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 0x405cb9
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 0x405ce8
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 [0x40a550]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a554]
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 0x405d38
test edi, edi
jne 0x405cf5
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405d32
Function at 0x405e13
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, 0x4308e8
push 0x40a574
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405e61
push 1
push 0
push esi
call fcn.00405cb9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x405f80
cmp eax, edi
jg 0x405f80
mov esi, 0x4310e8
push edi
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x405f80
cmp eax, edi
jg 0x405f80
push esi
push ebx
push str._ls_ls_r_n
push 0x4304e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x434ef0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406106
push 4
push 0xc0000000
push esi
call fcn.00405cb9
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405f80
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 0x405f79
push edi
push esi
push ebp
call fcn.00405d3c
test eax, eax
je 0x405f79
push str._Rename__r_n
push esi
call fcn.00405c1e
test eax, eax
jne 0x405f17
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405f4c
add eax, 0xa
push 0x40a558
push eax
call fcn.00405c1e
mov ebp, eax
test ebp, ebp
je 0x405f48
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405f39
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405f33
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405f4e
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4304e8
push eax
call fcn.00405c74
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405d6b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x465e10

Function at 0x405f85
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x405fa8
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405e13
pop ecx
pop ecx
inc dword [0x434f70]
ret 8
Function at 0x402dd0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x402e31
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x402e14
cmp edi, 2
jb 0x402e14
cmp byte [esi], cl
jne 0x402e14
cmp byte [esi + 1], cl
jne 0x402e14
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x43f610]
jmp 0x402de5
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x43f610]
test edi, edi
jne 0x402de5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x402e60
cmp cl, 0x23
jne 0x402e47
cmp byte [esi], cl
jne 0x402e47
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x43f610]
test cl, cl
jne 0x402e38
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x402f90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x402fa4
mov dword [ebx], 0
mov edx, 0x43f3e8
call fcn.00402e70
mov esi, eax
test esi, esi
je 0x403092
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call edi
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x403088
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x403088
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x403088
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x403088
mov eax, dword [0x44a678]
test eax, eax
je 0x40301c
inc dword [eax + 0x36c]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x403088
push esi
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x40306d
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x44a678]
add esp, 4
test eax, eax
je 0x40305a
dec dword [eax + 0x36c]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x40307f
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404840
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x44a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0xc4]
lea edx, [ebp - 8]
push ebx
mov ebx, dword [ecx + 0xcc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 4
mov ebx, dword [ebx + eax*4 - 4]
mov dword [ebp - 8], edi
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x43f610]
sub esi, 1
jne 0x404873
mov eax, dword [0x44a678]
not ebx
cmp dword [eax + 0x1be0], ebx
jne 0x4048a2
mov dword [eax + 0x1be4], ebx
cmp dword [eax + 0x1c1c], ebx
jne 0x4048b1
mov byte [eax + 0x1c20], 1
cmp dword [eax + 0x1bc8], ebx
jne 0x4048ca
push ecx
push edi
mov edx, 4
mov ecx, ebx
call fcn.00414820
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043cc84
mov esp, ebp
pop ebp
ret 4
Function at 0x408f10
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x408f4d
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x408f33
cmp byte [esi], bl
jne 0x408f33
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x43f610]
test bl, bl
jne 0x408f24
pop edi
pop esi
not ecx
pop ebx
jmp fcn.00408eb0

Function at 0x40e5b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x44a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x44a678]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0x1ba8]
mov esi, 4
mov eax, dword [edi + 0xc4]
add edi, 0xc4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov ebx, dword [edi + 8]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x43f610]
sub esi, 1
jne 0x40e5f1
mov eax, dword [0x44a678]
not ebx
cmp dword [eax + 0x1bc8], ebx
jne 0x40e62b
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.00414820
add esp, 8
mov ecx, dword [edi + 4]
mov esi, dword [edi]
cmp esi, ecx
jne 0x40e656
inc esi
test ecx, ecx
je 0x40e644
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x40e649
mov eax, 8
cmp eax, esi
mov ecx, edi
cmovg esi, eax
push esi
call fcn.004160e0
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043cc84
mov esp, ebp
pop ebp
ret
Function at 0x413910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x2fa8], 0
lea esi, [edi + 0x2fac]
je 0x413992
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x41394c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00415bd0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.004034f0
mov edx, dword [esi]
mov ecx, 0x44a674
push dword [edi + 0x2fa8]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x2fb4]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.004034f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret