joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40536a
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
lea eax, [ebp - 0x284]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4053fe
push ebx
push edi
push 1
lea eax, [ebp - 0x144]
pop ebx
push eax
push dword [ebp + 0xc]
call esi
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, eax
cmp edi, 0xffffffff
je 0x4053ca
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
xor ebx, ebx
push edi
test eax, eax
setge bl
call esi
push dword [ebp - 4]
call esi
pop edi
test ebx, ebx
pop ebx
je 0x4053f9
mov eax, dword [ebp - 0x144]
test al, 1
je 0x4053eb
and al, 0xfe
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 1
pop eax
jmp 0x405400
xor eax, eax
pop esi
leave
ret

Function at 0x40543d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, 0x415338
je 0x4054a1
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x4054a1
mov eax, edi
test eax, eax
je 0x4054a1
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [edi], 0
je 0x4054a1
push dword [edi + 4]
call esi
push eax
mov dword [ebp + 0x10], eax
push dword [ebp + 8]
push dword [edi + 4]
call fcn.0040e4f0
add esp, 0xc
test eax, eax
je 0x4054a8
push dword [edi]
call esi
push eax
mov dword [ebp + 0x10], eax
push dword [ebp + 8]
push dword [edi]
call fcn.0040e4f0
add esp, 0xc
test eax, eax
je 0x4054a8
add edi, 0xc
jne 0x405463
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov edi, dword [edi + 8]
test edi, edi
je 0x4054a1
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
add eax, ecx
mov cl, byte [eax]
cmp cl, 0x5c
je 0x4054c3
cmp cl, 0x2f
jne 0x4054c4
inc eax
lea ecx, [ebp - 4]
push ecx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4054a1
cmp dword [ebp - 4], eax
je 0x4054a1
cmp byte [ebx], 0x22
je 0x4054f3
push 4
pop esi
push ebx
mov dword [ebp + 8], esi
call fcn.0040e464
pop ecx
mov dword [ebp - 8], eax
lea edi, [ebp - 8]
jmp 0x405518
push ebx
call esi
and byte [eax + ebx - 1], 0
lea edi, [ebx + 1]
push edi
mov dword [ebp + 8], 1
call esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jb 0x405518
inc esi
push esi
push edi
push dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
pop eax
jmp 0x4054a3
Function at 0x405533
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push ebx
push esi
push edi
lea eax, [ebp - 0x168]
xor edi, edi
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x20
jbe 0x40569c
cmp dword [ebp + 8], edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
je 0x405570
push dword [ebp + 8]
call esi
mov dword [ebp - 8], eax
jmp 0x405573
mov dword [ebp - 8], edi
cmp dword [ebp + 0xc], edi
je 0x405582
push dword [ebp + 0xc]
call esi
mov dword [ebp - 0xc], eax
jmp 0x405585
mov dword [ebp - 0xc], edi
lea eax, [ebp - 0x168]
test eax, eax
je 0x40559c
lea eax, [ebp - 0x168]
push eax
call esi
mov ebx, eax
jmp 0x40559e
xor ebx, ebx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
add eax, ebx
lea eax, [eax + ecx + 0xa]
push eax
call fcn.0040d7b0
mov esi, eax
pop ecx
cmp esi, edi
mov dword [ebp - 4], esi
je 0x40569c
mov edi, 0x417438
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x168]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call esi
push edi
push dword [ebp - 4]
call esi
cmp dword [ebp - 0xc], 0
mov edi, 0x417250
jle 0x4055fa
push edi
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 8]
push 4
pop ecx
cmp eax, ecx
jl 0x405608
cmp ebx, ecx
jge 0x405614
cmp eax, ebx
mov ecx, eax
jl 0x405610
mov ecx, ebx
test ecx, ecx
je 0x40562e
sub ebx, ecx
sub eax, ecx
add eax, dword [ebp + 8]
lea edx, [ebp + ebx - 0x168]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40563c
push edi
push dword [ebp - 4]
call esi
push dword [ebp + 8]
push dword [ebp - 4]
call esi
push 0x44
xor esi, esi
pop edi
lea eax, [ebp - 0x60]
push edi
push esi
push eax
call fcn.0040def0
push 0x10
lea eax, [ebp - 0x1c]
push esi
push eax
mov dword [ebp - 0x60], edi
call fcn.0040def0
add esp, 0x18
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405693
push dword [ebp - 0x1c]
call fcn.00405780
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x1c]
call esi
push dword [ebp - 4]
call fcn.0040d8ea
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x40578d
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push ebx
push edi
push dword [0x42c4dc]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x10c]
push eax
call edi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [ebp + eax - 0x10c]
cmp cl, 0x2e
je 0x4057db
cmp cl, 0x5c
je 0x4057db
cmp cl, 0x2f
je 0x4057db
test eax, eax
je 0x4058e8
dec eax
jmp 0x4057ba
and byte [ebp + eax - 0x10c], 0
cmp dword [ebp + 8], 0
lea ebx, [ebp + eax - 0x10c]
jne 0x4058ad
and dword [ebp - 4], 0
push 0x41744c
push ebx
call edi
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4058e8
push esi
lea eax, [ebp - 0x220]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x220], 0x2e
je 0x40583d
dec eax
jmp 0x405830
lea ecx, [ebp + eax - 0x21e]
mov al, byte [ecx]
test al, al
je 0x405863
cmp al, 0x30
jl 0x405861
mov al, byte [ecx]
cmp al, 0x39
jg 0x405861
movsx eax, al
lea edx, [esi + esi*4]
inc ecx
lea esi, [eax + edx*2 - 0x30]
jmp 0x405844
xor esi, esi
cmp esi, dword [ebp - 4]
jle 0x40586b
mov dword [ebp - 4], esi
lea eax, [ebp - 0x24c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40588c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp + 8], 0xffffffff
cmp dword [ebp + 8], 0xffffffff
jne 0x405821
cmp dword [ebp - 4], 0
pop esi
je 0x4058e8
push dword [ebp - 4]
push str..e_02d
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4058f3
cmp dword [ebp + 8], 1
jne 0x4058bd
push str..exe
push ebx
call edi
jmp 0x4058cf
push dword [ebp + 8]
push str..e_02d
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4058ec
xor eax, eax
jmp 0x405905
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x10c]
push eax
push dword [0x42c4dc]
call edi
push 1
pop eax
pop edi
pop ebx
leave
ret
Function at 0x405c68
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x434900]
push esi
push edi
mov esi, 0xc00000
mov ax, word [eax + 0x675c]
push 1
imul ax, ax, 0x3b
add eax, 0x50
lea ecx, [ebp - 0x14]
movzx eax, ax
push esi
push ecx
push 0x70
push eax
mov dword [ebp - 4], eax
call fcn.004038e0
mov eax, dword [0x41a958]
mov edx, dword [ebp - 0xc]
add esp, 0x14
test eax, eax
je 0x405cb7
sub edx, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
add edx, eax
mov dword [ebp - 0xc], edx
mov eax, dword [0x41a95c]
mov ecx, dword [ebp - 8]
test eax, eax
je 0x405cce
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
add ecx, eax
mov dword [ebp - 8], ecx
push dword [ebp - 4]
mov eax, dword [0x434900]
sub ecx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x14]
push dword [0x4346f0]
push 0
push dword [eax]
add eax, 0x14cc
push ecx
push edx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push esi
push eax
push dword [0x417454]
push 1
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
mov edi, eax
mov eax, dword [0x434900]
push 0
push dword [eax]
call esi
push dword [ebp + 8]
push 0
push 0x400
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
push edi
call fcn.00405b58
pop ecx
mov dword [ebp + 8], eax
pop ecx
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x14]
push 1
mov dword [0x41a958], eax
mov eax, dword [ebp - 0x10]
mov dword [0x41a95c], eax
mov eax, dword [0x434900]
push dword [eax]
call esi
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x434900]
push dword [eax]
call dword [sym.imp.USER32.dll_SetActiveWindow]
cmp dword [ebp + 8], 0
pop edi
pop esi
jne 0x405d8a
xor eax, eax
leave
ret
cmp dword [ebp + 8], 0xffffffff
jne 0x405d97
mov eax, 0x424
leave
ret
xor eax, eax
cmp dword [ebp + 8], 0xfffffffc
setne al
dec eax
and eax, 0x37a
add eax, 0xbe
leave
ret

Function at 0x405dad
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x434900]
push esi
push edi
mov esi, 0xc80000
mov ax, word [eax + 0x675c]
push 1
imul ax, ax, 0x56
movzx edi, ax
lea eax, [ebp - 0x10]
push esi
push eax
push 0x78
push edi
call fcn.004038e0
add esp, 0x14
push edi
push dword [0x4346f0]
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x434900]
push dword [ebp - 0xc]
add eax, 0x14cc
push dword [ebp - 0x10]
push esi
push eax
push dword [0x417458]
push 1
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ecx, dword [0x434900]
push 5
mov dword [ecx], eax
mov eax, dword [0x434900]
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x434900]
push dword [eax]
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
leave
ret
Function at 0x405ed7
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x434900]
push esi
push edi
mov esi, 0xc80000
mov ax, word [eax + 0x675c]
push 1
imul ax, ax, 0x3c
add eax, 0x50
push esi
movzx edi, ax
lea eax, [ebp - 0x10]
push eax
push 0x7f
push edi
call fcn.004038e0
add esp, 0x14
push edi
push dword [0x4346f0]
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x434900]
push dword [ebp - 0xc]
add eax, 0x14cc
push dword [ebp - 0x10]
push esi
push eax
push dword [0x417450]
push 1
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
push esi
call fcn.00405b58
pop ecx
mov edi, eax
pop ecx
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
test edi, edi
pop edi
pop esi
jne 0x405fb6
mov eax, dword [0x434900]
add eax, 0x1f2
push eax
call fcn.0040d570
test eax, eax
pop ecx
jle 0x405fb2
mov ecx, dword [0x434900]
cmp byte [ecx + eax + 0x1f1], 0x5c
lea edx, [ecx + eax + 0x1f1]
jne 0x405fb2
cmp eax, 3
jne 0x405faf
cmp byte [ecx + 0x1f3], 0x3a
je 0x405fb2
and byte [edx], 0
xor eax, eax
leave
ret
mov eax, 0xbe
leave
ret

Function at 0x40604a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [0x434900]
push ebx
push esi
push edi
mov eax, dword [ecx + 0x6760]
mov esi, 0xc80000
add eax, dword [ecx + 0x675c]
push 1
push esi
cdq
sub eax, edx
sar eax, 1
imul eax, eax, 0x21
add eax, 0x9d
movzx edi, ax
lea eax, [ebp - 0x10]
push eax
push 0xd6
push edi
call fcn.004038e0
mov eax, dword [0x41a970]
mov ecx, dword [ebp - 8]
add esp, 0x14
test eax, eax
je 0x4060a6
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
add ecx, eax
mov dword [ebp - 8], ecx
mov edx, dword [0x41a974]
mov eax, dword [ebp - 4]
test edx, edx
je 0x4060be
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], edx
add eax, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
sub eax, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x10]
push edi
push dword [0x4346f0]
push 0
push ebx
push eax
mov eax, dword [0x434900]
push ecx
add eax, 0x14cc
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
push eax
push dword [0x41745c]
push 1
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push ebx
mov edi, eax
call esi
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
push edi
call fcn.00405b58
pop ecx
mov dword [ebp + 8], eax
pop ecx
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x10]
push 1
mov dword [0x41a970], eax
mov eax, dword [ebp - 0xc]
push ebx
mov dword [0x41a974], eax
call esi
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [ebp + 8]
pop edi
neg eax
sbb eax, eax
pop esi
and eax, 0xbe
pop ebx
leave
ret
Function at 0x407a17
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b4
mov eax, dword [0x434900]
add eax, 0x2f2
cmp byte [eax], 0
je 0x407b00
lea ecx, [ebp - 0x22c]
push 0x41a910
push ecx
push eax
call fcn.00404a49
add esp, 0xc
lea eax, [ebp - 0x3b4]
push 0x4000
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x407b00
mov eax, dword [0x434900]
push str.notepad
add eax, 0x2f2
push eax
call fcn.0040d6c0
lea eax, [ebp - 0x22c]
push eax
mov eax, dword [0x434900]
add eax, 0x2f2
push eax
call fcn.0040d6d0
mov eax, dword [0x434900]
add esp, 0x10
add eax, 0x2f2
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jb 0x407b00
lea eax, [ebp - 0xc8]
push 0x41760c
push eax
call fcn.0040d6c0
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x64]
push eax
mov eax, dword [0x434900]
push 0
add eax, 0x2fa
push 0
push eax
call fcn.0040e1ce
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0040d6d0
lea eax, [ebp - 0xc8]
push eax
call fcn.00407c37
add esp, 0x28
leave
ret

Function at 0x407c37
Capabilities:
Enumerate gui resources

Disassembly:
push edi
mov edi, dword [esp + 8]
push edi
call fcn.0041433a
lea eax, [edi + 0x64]
push eax
call fcn.0041433a
pop ecx
pop ecx
and dword [0x41a930], 0
push edi
push 0x407bce
call dword [sym.imp.USER32.dll_EnumWindows]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x41a930], 0
jne 0x407c4d
pop edi
ret

Function at 0x407da3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push dword [0x41a9c8]
call fcn.00407ec5
push 0xc
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.0040e680
add esp, 0x10
xor edi, edi
lea esi, [ebp + edi - 0xc]
call fcn.00407eaf
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.00407e50
inc edi
pop ecx
cmp edi, 0xc
jl 0x407dc9
mov eax, dword [0x417bd4]
movzx cx, byte [ebp - 1]
test byte [eax + 0x28], 2
je 0x407e00
movzx eax, word [0x42c426]
shr eax, 8
jmp 0x407e08
mov eax, dword [0x42c42c]
shr eax, 0x18
movzx ecx, cx
cmp ecx, eax
je 0x407e14
or eax, 0xffffffff
jmp 0x407e4c
mov eax, dword [0x42c3c8]
mov ecx, dword [0x41bbac]
cmp eax, ecx
jle 0x407e25
mov eax, ecx
mov esi, dword [0x42c4a0]
mov ecx, eax
dec eax
test ecx, ecx
je 0x407e4a
lea edi, [eax + 1]
call fcn.00407eaf
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.00407e50
inc esi
dec edi
pop ecx
jne 0x407e35
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x407e50
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [0x41a9bc]
mov edx, 0xff
mov eax, ecx
push esi
xor eax, dword [esp + 8]
shr ecx, 8
and eax, edx
mov eax, dword [eax*4 + 0x417648]
xor eax, ecx
mov ecx, dword [0x41a9c4]
mov dword [0x41a9bc], eax
and eax, edx
add eax, dword [0x41a9c0]
mov esi, ecx
and esi, edx
imul eax, eax, 0x8088405
inc eax
mov dword [0x41a9c0], eax
shr eax, 0x18
xor eax, esi
pop esi
shr ecx, 8
mov eax, dword [eax*4 + 0x417648]
xor eax, ecx
mov dword [0x41a9c4], eax
mov eax, dword [esp + 4]
ret
Function at 0x408d08
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, 0x42c4e0
push edi
push esi
call fcn.0040d44a
push esi
call fcn.0040d570
cmp byte [eax + 0x42c4df], 0x5c
pop ecx
pop ecx
jne 0x408d34
push 2
pop eax
jmp 0x408db7
push 0x42c460
push esi
call fcn.0040eab0
pop ecx
test eax, eax
pop ecx
jne 0x408d5b
test byte [0x42c466], 0x80
jne 0x408d5b
push 0x180
push esi
call fcn.0041446e
pop ecx
pop ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call edi
test al, 2
je 0x408d76
push esi
call edi
xor eax, 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
xor eax, eax
pop edi
lea ecx, [ebp - 0xc]
push eax
push 0x80
push 2
push ecx
push eax
push 0x40000000
push esi
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x42c3f4], eax
jne 0x408daf
mov eax, edi
jmp 0x408db7
mov dword [0x4346a0], edi
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x408e37
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x41b810], 0
jne 0x408ec5
push 1
push 0x2000
push dword [0x42c3c4]
call fcn.00409b08
add esp, 0xc
cmp eax, 0xffffffff
mov dword [0x42c3c8], eax
je 0x408ec5
mov ecx, dword [0x417bd4]
push esi
mov esi, dword [0x42c3c4]
mov dword [0x42c4a0], esi
test byte [ecx + 0x28], 1
je 0x408eaf
mov ecx, dword [0x41bbac]
inc ecx
cmp eax, ecx
jg 0x408e89
mov ecx, eax
mov edx, ecx
dec ecx
test edx, edx
je 0x408eaf
push edi
lea edi, [ecx + 1]
call fcn.00407eaf
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.00407e50
inc esi
dec edi
pop ecx
jne 0x408e94
mov eax, dword [0x42c3c8]
pop edi
dec eax
pop esi
mov dword [0x42c3c8], eax
mov eax, dword [0x42c4a0]
movzx eax, byte [eax]
inc dword [0x42c4a0]
ret
or eax, 0xffffffff
ret
Function at 0x408ec9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x43468c], 0
mov eax, dword [0x41bba4]
push ebx
push esi
push edi
jne 0x408fbb
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor esi, esi
mov ecx, ebx
cmp edi, esi
je 0x408f10
lea edx, [edi]
mov dword [ebp + 8], edx
movzx edx, byte [ecx]
movzx esi, al
xor edx, esi
shr eax, 8
mov edx, dword [edx*4 + 0x417648]
xor eax, edx
inc ecx
dec dword [ebp + 8]
jne 0x408ef4
xor esi, esi
add dword [0x43492c], edi
push dword [0x43492c]
mov dword [0x41bba4], eax
push dword [0x434924]
call fcn.0040d37f
pop ecx
pop ecx
mov cl, 0x64
sub cl, al
mov eax, dword [0x43492c]
cmp eax, dword [0x434924]
mov byte [0x43493d], cl
jne 0x408f6a
push dword [0x42c4c0]
inc dword [0x42c4c8]
mov byte [0x43493d], 0x64
push dword [0x42c4c8]
call fcn.0040d34e
pop ecx
mov byte [0x42c4d0], al
pop ecx
push 0x434920
push 0x406
call fcn.0040bb0d
cmp byte [0x43468c], 0
pop ecx
pop ecx
jne 0x408fbb
push dword [0x42c4c4]
add dword [0x42c4cc], edi
push dword [0x42c4cc]
call fcn.0040d34e
push 0x42c4c0
push 0x96
mov byte [0x42c4d1], al
call fcn.0040bb0d
add esp, 0x10
cmp byte [0x43468c], 0
je 0x408fc5
mov eax, 0xbe
jmp 0x4090f4
cmp dword [0x434644], esi
jne 0x4090f2
cmp edi, esi
je 0x4090f2
cmp dword [0x4346b4], esi
je 0x408fe9
push 0x32
pop eax
jmp 0x4090f4
mov eax, dword [0x417bd4]
test byte [eax + 0x28], 8
jne 0x409009
push edi
push ebx
push dword [0x42c3f4]
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, edi
jmp 0x4090e9
cmp dword [ebp + 0x10], esi
je 0x40901e
mov edx, dword [0x42c3c0]
mov ecx, 0x1040
mov dword [ebp + 8], edx
jmp 0x40902d
mov eax, dword [0x42c4b8]
mov ecx, 0x2000
mov dword [ebp + 8], eax
mov edx, eax
cmp dword [0x4346ec], esi
je 0x409041
mov dword [0x41a9d0], esi
mov dword [0x4346ec], esi
cmp byte [ebx], 0xa
mov esi, ebx
jne 0x409054
cmp dword [0x41a9d0], 0
je 0x409054
lea esi, [ebx + 1]
and dword [0x41a9d0], 0
add edi, ebx
cmp esi, edi
mov eax, edx
jae 0x4090f2
lea ecx, [ecx + edx - 2]
mov dword [ebp + 0xc], ecx
mov cl, byte [esi]
cmp cl, 0xd
jne 0x40909c
mov byte [eax], cl
inc eax
lea ecx, [edi - 1]
mov byte [eax], 0xa
inc eax
cmp esi, ecx
jne 0x40908f
mov dword [0x41a9d0], 1
jmp 0x4090ac
cmp byte [esi + 1], 0xa
lea ecx, [esi + 1]
jne 0x4090ac
mov esi, ecx
jmp 0x4090ac
cmp cl, 0xa
jne 0x4090a9
mov byte [eax], 0xd
inc eax
mov byte [eax], cl
jmp 0x4090ab
mov byte [eax], cl
inc eax
cmp eax, dword [ebp + 0xc]
jbe 0x4090cc
mov ebx, eax
sub ebx, edx
push ebx
push edx
push dword [0x42c3f4]
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, ebx
jne 0x4090eb
mov eax, dword [ebp + 8]
mov edx, eax
inc esi
cmp esi, edi
jb 0x40906e
cmp eax, edx
jbe 0x4090f2
mov esi, eax
sub esi, edx
push esi
push edx
push dword [0x42c3f4]
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, esi
je 0x4090f2
call fcn.004090f9
jmp 0x4090f4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40afdc
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x40aff8
lea eax, [ebp - 0xc]
push eax
call fcn.0040af96
pop ecx
mov dword [ebp - 4], eax
push dword [0x42c3f4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp + 8], edi
mov dword [0x4346a0], edi
je 0x40b060
push ebx
push edi
push 0x80
push 3
push edi
push edi
mov ebx, 0x42c4e0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40b04c
cmp dword [ebp - 4], edi
je 0x40b04c
lea ecx, [ebp - 0xc]
push ecx
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp + 8]
call esi
mov eax, dword [0x417bd4]
mov eax, dword [eax + 0x24]
and eax, 0x7f
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop ebx
pop edi
pop esi
leave
ret
Function at 0x40b7a6
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
and byte [ebp + 0xb], 0
add al, 0x40
mov byte [ebp + 9], 0x3a
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 0xa], 0x2f
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
dec eax
dec eax
neg eax
sbb eax, eax
inc eax
pop ebp
ret
Function at 0x40d27b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [str.:]
push esi
push 0x11
mov dword [ebp - 4], eax
call fcn.0040d7b0
mov esi, eax
mov eax, dword [ebp + 8]
pop ecx
and byte [esi], 0
cmp byte [eax + 1], 0x3a
jne 0x40d2d7
mov al, byte [eax]
and byte [ebp - 1], 0
push edi
push 0x11
mov byte [ebp - 4], al
call fcn.0040d7b0
pop ecx
mov edi, eax
push 0x10
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0xc]
push 0x10
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push edi
call fcn.0040d8ea
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x40df48
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40df68
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040e315
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40df8b
test byte [esp + 8], 2
je 0x40df8b
call fcn.0040e388
mov dword [eax], 0xd
call fcn.0040e391
mov dword [eax], 5
jmp 0x40df64
xor eax, eax
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x414499
test byte [esp + 8], 0x80
je 0x414488
and al, 0xfe
jmp 0x41448a
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4144aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040e315
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret