joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Allocate thread local storage

Disassembly:
push 0x28
push 0
push 0x40be84
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
call sub.KERNEL32.dll_GetModuleHandleW
mov dword [0x40be88], eax
push 0
push 0x1000
push 0
call sub.KERNEL32.dll_HeapCreate
mov dword [0x40be84], eax
mov eax, 0x40b088
mov dword [0x40be8c], eax
call fcn.00402223
call fcn.00407ba0
call fcn.00407330
call fcn.00406d58
call fcn.004068d1
call fcn.004066aa
call fcn.00406044
call fcn.00405e76
call fcn.00405bd0
call fcn.00403d0c
call fcn.004035b0
call fcn.00402e07
call fcn.004029e0
call fcn.004029cc
call fcn.00402908
call fcn.00402897
call fcn.004027be
call fcn.004022dc
mov dword [0x40be94], 0
mov edx, dword [0x40bfb8]
push edx
push edx
mov edx, dword [0x40bfb8]
push edx
push edx
call fcn.00406073
mov edx, dword [0x40b0a8]
add dword [esp], edx
call fcn.004067fb
push 0x40be98
call fcn.00407c20
call fcn.0040126d
push 0
jmp 0x4010eb
call 0x401105
call fcn.00407bf0
push dword [0x40be84]
call sub.KERNEL32.dll_HeapDestroy
call sub.KERNEL32.dll_ExitProcess
call fcn.004022b9
call fcn.00402768
call fcn.00402896
call fcn.004029c0
call fcn.00402e06
call fcn.00405bf0
call fcn.00405f04
call fcn.0040669e
call fcn.0040687a
call fcn.004068b3
call fcn.004073f5
call fcn.00407320
ret

Function at 0x40126d
Capabilities:
Hide graphical window

Disassembly:
push ebx
xor eax, eax
push eax
mov byte [esp], 0xff
push 0x122
push 0xd2
push 0
push 0
call fcn.00401268
call fcn.00402472
push eax
mov ebx, 0x333c
cmp ebx, dword [esp]
jne 0x4012aa
push 0
jmp 0x4010eb
mov ebx, 0x332c
cmp ebx, dword [esp]
jne 0x401302
call fcn.004069eb
push eax
mov ebx, dword [0x40bea0]
cmp ebx, dword [esp]
jne 0x4012ec
push 0
push dword [0x40bea8]
call sub.USER32.dll_ShowWindow
call fcn.004011f2
push 5
push dword [0x40bea8]
call sub.USER32.dll_ShowWindow
jmp 0x401301
mov ebx, dword [0x40bea4]
cmp ebx, dword [esp]
jne 0x401301
push 0
jmp 0x4010eb
pop eax
pop eax
movsx ebx, byte [esp]
and ebx, ebx
jl 0x40128e
xor eax, eax
add esp, 4
pop ebx
ret
Function at 0x402549
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push 0x40a008
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x4025e1
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4025de
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x4025de
lea eax, [esi - 1]
push eax
push dword [0x40bfc0]
call fcn.0040748d
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x4025e0
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x4025d5
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x4026c8
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x4025bb
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x402687
push eax
call esi
test al, al
jns 0x402687
push 0x11
call esi
test al, al
js 0x402687
push 0x10
call esi
test al, al
js 0x402687
push 0x12
call esi
test al, al
js 0x402687
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x402687
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x40265b
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x402672
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x4026d2
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x4026d2
test ebp, ebp
je 0x4026ab
push 0x11
call esi
test al, al
js 0x4026a3
push 0x10
call esi
test al, al
js 0x4026a3
push 0x12
call esi
test al, al
jns 0x4026ab
push 1
push ebp
call fcn.004026de
test ebx, ebx
je 0x4026bf
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x4026d2
test edi, edi
je 0x4026d2
mov eax, dword [edi + 8]
jmp 0x4026d4
and dword [esp + 0x14], 0
jmp 0x4025e0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x403ca0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x403cd2
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403ccd
cmp dword [esp + 0xc], esi
je 0x403ce9
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret
Function at 0x9bb455
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x9bb47c
call fcn.0095d988
mov dword [eax], esi
call fcn.0095d975
push 0x16
pop esi
mov dword [eax], esi
call fcn.0095e5ca
mov eax, esi
jmp 0x9bb4d1
test dword [ebp + 0xc], 0xfffffff9
jne 0x9bb462
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x9bb4a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0095d99b
pop ecx
call fcn.0095d975
mov eax, dword [eax]
jmp 0x9bb4d1
test al, 0x10
jne 0x9bb4cf
test al, 1
je 0x9bb4cf
test byte [ebp + 0xc], 2
je 0x9bb4cf
call fcn.0095d988
mov dword [eax], 5
call fcn.0095d975
mov dword [eax], 0xd
jmp 0x9bb4a0
xor eax, eax
pop esi
pop ebp
ret

Function at 0x418e60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x14000]
push edi
jmp 0x418e7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x418e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x418e70
mov eax, 1
add ebx, ebx
jne 0x418e93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x418e88
jne 0x418ea4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x418e88
xor ecx, ecx
sub eax, 3
jb 0x418eb8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x418f2a
mov ebp, eax
add ebx, ebx
jne 0x418ec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x418ed0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x418ef4
inc ecx
add ebx, ebx
jne 0x418ee0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x418ed5
jne 0x418ef1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x418ed5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x418f14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x418f05
jmp 0x418e76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x418f14
add edi, ecx
jmp 0x418e76
pop esi
lea edi, [esi + 0x16000]
mov eax, dword [edi]
or eax, eax
je 0x418f7c
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1f524]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1f560]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x418f31
mov ecx, edi
jns 0x418f60
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1f568]
or eax, eax
je 0x418f76
mov dword [ebx], eax
add ebx, 4
jmp 0x418f4e
call dword [esi + 0x1f564]
mov ebp, dword [esi + 0x1f56c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x418fb0
sub esp, 0xffffff80
jmp 0x4014bc
Function at 0x40149d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x473eb0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x401532
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014ef
cmp dword [ebp + 0x10], ebx
jne 0x401526
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.0040149d
test eax, eax
jne 0x401501
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.0040644b
cmp eax, ebx
je 0x401539
push ebx
push dword [0x473eb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401532
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 [0x473eb0], ebx
jne 0x40152f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x40152f
jmp 0x401532
Function at 0x4033d2
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x4301e4]
sub esi, dword [0x4341f0]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
mov dword [0x473e20], eax
cmp esi, ebx
jle 0x403530
push dword [0x4341ec]
call fcn.004033bb
push ebx
push ebx
push dword [0x4341f0]
push dword [0x40c014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x4301e0], esi
mov dword [0x420154], ebx
mov ebp, 0x4281e0
mov eax, dword [0x4341e8]
sub eax, dword [0x4341ec]
mov edi, 0x4000
cmp eax, edi
jg 0x403447
mov edi, eax
push edi
mov esi, 0x4301e8
push esi
call fcn.00403389
test eax, eax
je 0x403542
add dword [0x4341ec], edi
mov dword [0x428170], esi
mov dword [0x428174], edi
cmp dword [0x473ddc], ebx
je 0x40349e
cmp dword [0x473ea0], ebx
jne 0x40349e
mov eax, dword [0x4301e0]
sub eax, dword [0x4301e4]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x4341f0]
mov dword [0x420154], eax
call fcn.004032e7
pop ecx
mov ecx, 0x428158
mov dword [0x428178], ebp
mov dword [0x42817c], 0x8000
call fcn.00407618
test eax, eax
js 0x403547
mov esi, dword [0x428178]
sub esi, ebp
je 0x4034fc
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x40c014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40354c
cmp esi, dword [esp + 0x10]
jne 0x40354c
add dword [0x4341f0], esi
cmp dword [0x428174], ebx
jne 0x40346d
jmp 0x403508
cmp dword [0x428174], ebx
jne 0x403547
cmp edi, ebx
je 0x403547
mov eax, dword [0x4301e4]
mov ecx, eax
sub ecx, dword [0x4341f0]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x403431
push ebx
push ebx
push eax
push dword [0x40c014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.004032e7
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x40353a
push 0xfffffffffffffffd
pop eax
jmp 0x40353a
push 0xfffffffffffffffe
jmp 0x403549
Function at 0x403550
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x40357a
add eax, dword [0x473e18]
push edi
push edi
push eax
push dword [0x40c014]
mov dword [0x4301e4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.004033d2
cmp eax, edi
jl 0x403673
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40c014]
call ebx
test eax, eax
je 0x40366f
cmp dword [ebp - 4], esi
jne 0x40366f
push dword [ebp + 8]
add dword [0x4301e4], esi
call fcn.004033d2
mov dword [ebp - 8], eax
cmp eax, edi
jl 0x403672
cmp dword [ebp + 0x10], edi
jne 0x40363e
cmp dword [ebp + 8], edi
jle 0x40366a
mov esi, 0x4301e8
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x4035ee
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40c014]
call ebx
test eax, eax
je 0x40366f
cmp edi, dword [ebp - 4]
jne 0x40366f
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40363a
cmp dword [ebp + 0x14], edi
jne 0x40363a
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x4301e4], eax
cmp dword [ebp + 8], 0
jg 0x4035e1
jmp 0x40366a
push 0xfffffffffffffffe
jmp 0x403671
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403649
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40c014]
call ebx
test eax, eax
je 0x40366f
mov eax, dword [ebp - 4]
add dword [0x4301e4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403672
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x405d9f
Capabilities:
Create process on windows

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

Function at 0x406036
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406053
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x406056
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 [0x40a6ac]
mov dword [ebp - 8], eax
mov eax, dword [0x40a6b0]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4060a6
test edi, edi
jne 0x406063
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x4060a0

Function at 0x4060aa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406123
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x4008
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40610c
cmp dword [ebp + 0x14], 1
je 0x406111
cmp dword [ebp + 0x14], 2
je 0x406111
xor eax, eax
mov word [esi], ax
push dword [ebp + 0x18]
xor eax, eax
mov word [esi + 0x4006], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14

Function at 0x4063c8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea esi, [eax + eax]
push 0x409838
lea eax, [ebp + esi - 0x208]
push eax
call edi
mov ebx, dword [ebp + 8]
push ebx
lea eax, [ebp + esi - 0x206]
push eax
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jle 0x406437
mov esi, str..dll
push esi
lea eax, [ebx + eax*2 - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x406437
push esi
lea eax, [ebp - 0x208]
push eax
call edi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4068cc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4582d0
push esi
call fcn.004061e0
push esi
call fcn.00405eb9
mov edi, eax
test edi, edi
jne 0x4068ed
xor eax, eax
jmp 0x40694a
push edi
call fcn.0040620f
test byte [0x473e28], 0x80
je 0x406909
movzx eax, word [edi]
test ax, ax
je 0x4068e9
cmp eax, 0x5c
je 0x4068e9
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x40692b
push esi
call fcn.004063a1
test eax, eax
je 0x406925
test byte [eax], 0x10
je 0x40694f
push esi
call fcn.0040689f
push esi
call ebx
cmp eax, edi
jg 0x406916
push esi
call fcn.00406870
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x406949

Function at 0x406953
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, str.__
push edi
push dword [ebp + 8]
mov ebx, eax
call fcn.00405f6b
test eax, eax
jne 0x4069d4
cmp esi, 0x104
jle 0x4069d4
lea eax, [esi + esi + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push edi
push esi
call fcn.004061e0
push dword [ebp + 8]
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
lea eax, [ebx + 1]
neg eax
sbb eax, eax
and eax, ebx
push eax
push dword [ebp + 0x10]
push 0
push 1
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4069f5
push 0
lea eax, [ebx + 1]
neg eax
sbb eax, eax
and eax, ebx
push eax
push dword [ebp + 0x10]
push 0
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406c92
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406cbb
mov eax, dword [0x40c058]
cmp eax, 0xffffffff
je 0x406caf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40c058], 0xffffffff
jmp 0x406d66
cmp dword [0x462530], ebx
je 0x406d66
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp word [0x46b560], bx
je 0x406d32
cmp dword [0x40c058], 0xffffffff
jne 0x406d3b
mov esi, 0x46b560
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 4
push 0x40000000
push esi
mov dword [ebp + 8], eax
call fcn.00406953
mov dword [0x40c058], eax
cmp eax, 0xffffffff
je 0x406d64
cmp dword [ebp + 8], 0xffffffff
jne 0x406d27
push ebx
lea ecx, [ebp - 4]
push ecx
push 2
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp + 8], 0xfeff
call edi
mov eax, dword [0x40c058]
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40c058], 0xffffffff
je 0x406d64
push 0x40a8dc
mov esi, 0x462540
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp + 8]
push ecx
add eax, eax
push eax
push esi
push dword [0x40c058]
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x406d9d
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x40a8f0
mov ebx, 0x45c2d8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov esi, 0x400
cmp edi, ebp
je 0x406deb
push 1
push ebp
push edi
call fcn.00406953
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406f66
cmp eax, esi
jg 0x406f66
push esi
mov edi, 0x461930
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406f66
cmp eax, esi
jg 0x406f66
push ebp
push ebp
push esi
push 0x45cad8
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x406f66
push ebp
push ebp
push esi
mov esi, 0x45d128
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x406f66
push esi
push 0x45cad8
push str._s_s_r_n
push 0x45d528
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x473ddc]
push dword [eax + 0x128]
push edi
call fcn.004069fe
push 4
push 0xc0000000
push edi
call fcn.00406953
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x406f66
push ebp
push eax
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
cmp esi, ebp
je 0x406f5c
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406f5c
cmp edi, dword [esp + 0x10]
jne 0x406f5c
push str._Rename__r_n
push esi
call fcn.00405fbc
cmp eax, ebp
jne 0x406eef
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406f24
push 0x40a8e4
add eax, 0xa
push eax
call fcn.00405fbc
mov ebp, eax
test ebp, ebp
je 0x406f22
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
cmp ecx, ebp
jbe 0x406f19
sub eax, ecx
mov dl, byte [ecx]
mov byte [eax + ecx], dl
dec ecx
cmp ecx, ebp
ja 0x406f0f
sub ebp, esi
lea eax, [ebp + 1]
xor ebp, ebp
jmp 0x406f26
xor ebp, ebp
mov eax, edi
push ebx
push 0x45d528
add eax, esi
push eax
call fcn.00406012
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x407585
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x462134], 0
jne 0x4075c3
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x407599
mov dword [ecx*4 + 0x462130], eax
inc ecx
cmp ecx, 0x100
jl 0x407594
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4075f0
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x462130]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4075d1
not eax
pop ebp
ret 0xc
Function at 0x710c8b
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x7109ec
add edx, edi
add edx, edx
call fcn.00710cbf
add edi, edx
or edx, edi
mov edx, 0xdfe855b4
xor dword [ecx], ebx
sub edx, 1
inc ecx
add edi, 0xb2fdcec2
cmp ecx, eax
jne fcn.00710c8b
add edi, 0x40a03263
ret