joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c672
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xca8
push ebx
push esi
push dword [ebp + 8]
lea eax, [esp + 0x14]
mov byte [esp + 0x13], 0
call fcn.0040c4db
pop ecx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c6b7
test al, 0x10
je 0x40c6b7
lea eax, [esp + 0x10]
push str..
push eax
call fcn.0044e949
pop ecx
pop ecx
lea eax, [esp + 0xaa0]
push eax
lea eax, [esp + 0x894]
push eax
lea eax, [esp + 0x478]
push eax
lea eax, [esp + 0x68c]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004514e8
add esp, 0x14
lea eax, [esp + 0x220]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov bl, 1
je 0x40c788
cmp bl, 1
jne 0x40c788
test byte [esp + 0x220], 0x10
jne 0x40c760
lea eax, [esp + 0x680]
push eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x17], bl
call fcn.0044e973
lea eax, [esp + 0x478]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0044e949
lea eax, [esp + 0x25c]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0044e949
add esp, 0x18
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp eax, 1
jne 0x40c777
lea eax, [esp + 0x220]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40c704
xor bl, bl
jmp 0x40c704
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, byte [esp + 0xf]
jmp 0x40c779

Function at 0x40cbf6
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call fcn.0044f00e
dec eax
lea eax, [esi + eax*2]
cmp word [eax], 0x5c
pop ecx
jne 0x40cc12
and word [eax], 0
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40cc89
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
mov ebp, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
jne 0x40cc3c
push 0
push esi
call ebp
test eax, eax
je 0x40cc41
mov al, 1
jmp 0x40cc8f
cmp eax, 3
jne 0x40cc8d
push esi
call fcn.0040d6da
mov edi, eax
push 0x5c
push edi
call fcn.00452dc0
add esp, 0xc
test eax, eax
jne 0x40cc61
push edi
call fcn.0044e722
pop ecx
jmp 0x40cc8d
and word [eax], 0
push ebx
push edi
call fcn.0040cbf6
push edi
mov bl, al
call fcn.0044e722
test bl, bl
pop ecx
pop ecx
je 0x40cc84
push 0
push esi
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x40cc8f
test al, 0x10
jne 0x40cc38
xor al, al
pop edi
pop esi
pop ebp
ret
Function at 0x40cc93
Capabilities:
Check if file exists
Copy file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push dword [ebp + 8]
lea eax, [ebp - 0x438]
call fcn.0040c4db
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
call fcn.0040c4db
pop ecx
pop ecx
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x40cd0c
cmp byte [ebp + 0x10], al
je 0x40cd08
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
je 0x40cd04
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
mov al, 1
leave
ret
xor al, al
leave
ret
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
lea eax, [ebp - 0x438]
push eax
call esi
cmp eax, 0xffffffff
je 0x40cd25
test al, 0x10
jne 0x40cd2c
xor al, al
jmp 0x40cde5
push ebx
lea eax, [ebp - 0x22c]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40cd46
test al, 0x10
je 0x40cd46
cmp byte [ebp + 0x10], bl
jmp 0x40cd67
lea eax, [ebp - 0x22c]
push eax
call fcn.0040cbf6
test al, al
pop ecx
je 0x40cd69
lea eax, [ebp - 0x22c]
push eax
call esi
cmp eax, 0xffffffff
je 0x40cd69
test al, 0x10
jne 0x40cd6d
xor al, al
jmp 0x40cde4
lea eax, [ebp - 0x438]
push str..
push eax
call fcn.0044e949
lea eax, [ebp - 0x438]
push eax
call fcn.0044f00e
mov word [ebp + eax*2 - 0x436], bx
lea eax, [ebp - 0x22c]
push eax
call fcn.0044f00e
mov word [ebp + eax*2 - 0x22a], bx
lea eax, [ebp - 0x438]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x14], eax
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 2
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
pop esi
leave
ret
Function at 0x40cde8
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x22c]
call fcn.0040c4db
push dword [ebp + 0xc]
lea eax, [ebp - 0x438]
call fcn.0040c4db
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
pop ecx
pop ecx
lea eax, [ebp - 0x22c]
push eax
call esi
cmp eax, 0xffffffff
je 0x40ce28
test al, 0x10
jne 0x40ce2f
xor al, al
jmp 0x40cf48
push ebx
lea eax, [ebp - 0x438]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40ce92
test al, 0x10
je 0x40ce92
cmp byte [ebp + 0x10], bl
je 0x40cec7
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x40ce92
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
je 0x40ce92
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jmp 0x40cedd
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0040c5cd
test al, al
pop ecx
pop ecx
je 0x40cee2
push 1
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0040cc93
add esp, 0xc
test al, al
jne 0x40cecb
xor al, al
jmp 0x40cf47
lea eax, [ebp - 0x22c]
push 1
push eax
call fcn.0040cf4b
pop ecx
pop ecx
test al, al
setne al
jmp 0x40cf47
lea eax, [ebp - 0x22c]
push eax
call fcn.0044f00e
mov word [ebp + eax*2 - 0x22a], bx
lea eax, [ebp - 0x438]
push eax
call fcn.0044f00e
mov word [ebp + eax*2 - 0x436], bx
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x18], eax
pop ecx
lea eax, [ebp - 0x438]
mov dword [ebp - 0x14], eax
pop ecx
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
pop esi
leave
ret

Function at 0x40cf4b
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push dword [ebp + 8]
lea eax, [ebp - 0x22c]
call fcn.0040c4db
pop ecx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40cf79
test al, 0x10
jne 0x40cf7d
xor al, al
leave
ret
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
lea eax, [ebp - 0x22c]
push eax
jne 0x40cf99
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x40cfdc
call fcn.0044f00e
mov word [ebp + eax*2 - 0x22a], bx
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x18], eax
pop ecx
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 3
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
leave
ret
Function at 0x40d0aa
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
push esi
mov esi, eax
lea eax, [ebp - 0x29c]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x40d16a
push pe_nt_image_headers32
lea eax, [ebp - 0x10c]
push eax
call sub.WSOCK32.dll_gethostname
lea eax, [ebp - 0x10c]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x40d16a
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x40d104
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x40d0fb
cmp esi, edx
jle 0x40d119
push str.0.0.0.0
push dword [ebp + 8]
call fcn.0044e973
pop ecx
pop ecx
jmp 0x40d163
push 4
push dword [eax + esi*4 - 4]
lea eax, [ebp - 8]
push eax
call fcn.00450dd0
add esp, 0xc
push dword [ebp - 8]
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00450c40
lea eax, [ebp - 0x10c]
push eax
or eax, 0xffffffff
call fcn.0040ded4
mov esi, eax
push esi
push dword [ebp + 8]
call fcn.0044e973
push esi
call fcn.0044e722
add esp, 0x18
call sub.WSOCK32.dll_WSACleanup
jmp 0x40d179
push 0x46bf68
push dword [ebp + 8]
call fcn.0044e973
pop ecx
pop ecx
pop esi
leave
ret

Function at 0x40d288
Capabilities:
Enumerate gui resources
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x48b7b4], 0
push ebx
push esi
mov ebx, eax
je 0x40d2f3
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40d2b6
xor eax, eax
jmp 0x40d335
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
xor eax, dword [ecx + esi*2 - 1]
adc eax, sym.imp.ADVAPI32.dll_LookupPrivilegeValueW
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x40d2f5
jmp 0x40d2b2
xor esi, esi
cmp byte [0x48b7b5], 0
je 0x40d312
test bl, 4
je 0x40d312
push esi
push 0x40d339
xor ebx, 4
call dword [sym.imp.USER32.dll_EnumWindows]
cmp ebx, 0x20
je 0x40d326
cmp ebx, 0x40
je 0x40d326
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40d335
xor eax, eax
cmp ebx, 0x20
sete al
push esi
push eax
call sub.KERNEL32.DLL_SetSystemPowerState
pop esi
pop ebx
leave
ret

Function at 0x40d375
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
jne 0x40d38e
push dword [esp + 4]
call fcn.0040d350
test al, al
pop ecx
jne 0x40d3aa
push 1
jmp 0x40d390
push 0
push 0
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
ret
Function at 0x40d649
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
test edi, edi
push esi
jl 0x40d6d5
jne 0x40d65d
push 0
jmp 0x40d6cf
mov al, byte [0x48b7b5]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x40d6ce
mov esi, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x40d6ce
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [esp + 8]
push eax
call esi
mov eax, dword [esp + 8]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
sbb ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
fild qword [esp + 0x18]
fild qword [esp + 0x20]
fdivp st(1)
fmul qword [0x4723a0]
call fcn.00465e16
cmp eax, edi
jb 0x40d68c
jmp 0x40d6d5
push edi
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40d921
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov bl, byte [0x4795bc]
push edi
push 0x8000
push esi
call fcn.00452a09
pop ecx
push eax
call fcn.00452912
push dword [ebp + 8]
mov dword [ebp - 4], eax
or eax, 0xffffffff
call fcn.0040df43
mov edi, eax
push edi
push 0x46ced4
push esi
call fcn.00452a36
push edi
call fcn.0044e722
push esi
call fcn.00452d03
add esp, 0x20
cmp dword [ebp - 4], 0xffffffff
jne 0x40d977
push 0x4000
jmp 0x40d97a
push dword [ebp - 4]
push esi
call fcn.00452a09
pop ecx
push eax
call fcn.00452912
pop ecx
pop ecx
pop edi
test bl, bl
pop ebx
je 0x40d998
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
leave
ret

Function at 0x4118c7
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
inc esi
mov dword [0x489628], eax
push edi
mov edx, esi
mov eax, 0x489628
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x489fe4
jl 0x4118d8
pop edi
mov dword [0x478078], esi
mov dword [0x489ff8], esi
pop esi
ret
Function at 0x411906
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
cmp dword [0x489ff8], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x489628
jne 0x411926
push 0
call fcn.00452f3f
pop ecx
call fcn.004118c7
mov dword [0x478078], 0x270
mov dword [0x489620], esi
mov edx, 0xe3
mov ecx, SysReAllocString
mov eax, 0x9908b0df
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi + 0x634]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x411945
mov edx, 0x18c
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi - 0x38c]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x41197b
mov edx, dword [0x489628]
mov edi, dword [esi]
xor edi, edx
and edi, ecx
xor edi, dword [esi]
and dl, 1
shr edi, 1
neg dl
sbb edx, edx
and edx, eax
xor edi, edx
xor edi, dword [esi - 0x38c]
mov dword [esi], edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4119d5
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x478078]
jne 0x4119e2
call fcn.00411906
mov eax, dword [0x489620]
mov ecx, dword [eax]
add dword [0x489620], 4
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x411a19
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
dec dword [0x478078]
jne 0x411a27
call fcn.00411906
mov eax, dword [0x489620]
mov eax, dword [eax]
add dword [0x489620], 4
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov ecx, eax
and ecx, 0xff3a58ad
shl ecx, 7
xor eax, ecx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov ecx, eax
shr ecx, 0x12
xor ecx, eax
test ecx, ecx
mov dword [esp], ecx
fild dword [esp]
jge 0x411a6d
fadd qword [0x472380]
fmul qword [0x472378]
pop ecx
ret

Function at 0x411c18
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [esi + 0x14], 1
jne 0x411c3a
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.00450dd0
add esp, 0xc
jmp 0x411c4d
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.004523ce
add esp, 0x10
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 3]
add dword [esi + 0xc], 8
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 1]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea eax, [ebp - 8]
push str.EA06
push eax
mov byte [ebp - 4], 0
call fcn.00451670
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
leave
ret 4
Function at 0x411d21
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi + 0x464]
test eax, eax
mov ecx, 0x10000
je 0x411d34
cmp eax, ecx
jne 0x411d4f
push dword [esi + 0x1c]
push ecx
push 1
push dword [esi + 0x45c]
call fcn.004523ce
add esp, 0x10
and dword [esi + 0x464], 0
mov ecx, dword [esi + 0x464]
mov eax, dword [esi + 0x45c]
mov al, byte [ecx + eax]
inc ecx
mov dword [esi + 0x464], ecx
ret

Function at 0x411d66
Capabilities:
Write file on windows

Disassembly:
cmp dword [esi + 0x18], 1
mov eax, dword [esi + 0x444]
push edi
je 0x411e1d
cmp eax, dword [esi + 0x43c]
jae 0x411de9
mov edi, 0x10000
push ebx
mov eax, dword [esi + 0x444]
mov ecx, dword [esi + 0x438]
mov ebx, dword [esi + 0x460]
mov edx, dword [esi + 0x458]
and eax, 0x1ffff
mov al, byte [eax + ecx]
mov byte [edx + ebx], al
inc dword [esi + 0x460]
cmp dword [esi + 0x460], edi
jne 0x411dd1
push dword [esi + 0x20]
push edi
push 1
push dword [esi + 0x458]
call fcn.00451fc2
add esp, 0x10
and dword [esi + 0x460], 0
inc dword [esi + 0x444]
inc dword [esi + 8]
mov eax, dword [esi + 0x444]
cmp eax, dword [esi + 0x43c]
jb 0x411d85
pop ebx
and dword [esi + 0x440], 0
pop edi
ret
mov eax, dword [esi + 0x444]
mov ecx, dword [esi + 0x438]
mov edi, dword [esi + 8]
mov edx, dword [esi]
and eax, 0x1ffff
mov al, byte [eax + ecx]
mov byte [edx + edi], al
inc dword [esi + 8]
inc dword [esi + 0x444]
mov eax, dword [esi + 0x444]
cmp eax, dword [esi + 0x43c]
jb 0x411df2
jmp 0x411de9
Function at 0x411e27
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, eax
mov eax, dword [esi + 0x10]
cmp dword [esi + 0x43c], eax
push edi
mov dword [esp + 0x10], eax
jae 0x411f87
mov ebp, 0xff
push 1
mov eax, esi
call fcn.00411fb7
cmp eax, 1
mov eax, esi
jne 0x411e83
push 8
call fcn.00411fb7
mov ecx, dword [esi + 0x43c]
mov edx, dword [esi + 0x438]
and ecx, 0x1ffff
mov byte [ecx + edx], al
inc dword [esi + 0x43c]
inc dword [esi + 0x440]
jmp 0x411f22
push 0xf
call fcn.00411fb7
mov ebx, eax
push 2
mov eax, esi
xor edi, edi
call fcn.00411fb7
cmp eax, 3
jne 0x411ee2
push eax
pop edi
push eax
mov eax, esi
call fcn.00411fb7
cmp eax, 7
jne 0x411ee2
push 0xa
pop edi
push 5
mov eax, esi
call fcn.00411fb7
cmp eax, 0x1f
jne 0x411ee2
push 0x29
pop edi
push 8
mov eax, esi
call fcn.00411fb7
cmp eax, ebp
jne 0x411ee2
mov edi, 0x128
jmp 0x411ed5
add edi, ebp
push 8
mov eax, esi
call fcn.00411fb7
cmp eax, ebp
je 0x411ed3
lea edi, [eax + edi + 3]
mov eax, dword [esi + 0x43c]
sub eax, ebx
jmp 0x411f1e
mov ebx, dword [esi + 0x43c]
mov ecx, dword [esi + 0x438]
mov edx, eax
and edx, 0x1ffff
mov dl, byte [edx + ecx]
and ebx, 0x1ffff
dec edi
mov byte [ebx + ecx], dl
inc eax
inc dword [esi + 0x43c]
inc dword [esi + 0x440]
test edi, edi
jne 0x411ef0
call fcn.00411d66
cmp dword [0x48dd00], 0x1000
jbe 0x411f68
mov edi, dword [esi + 0x454]
and dword [0x48dd00], 0
test edi, edi
je 0x411f6e
mov ecx, dword [esi + 8]
mov eax, ecx
imul eax, eax, 0x64
xor edx, edx
div dword [esi + 0x10]
push eax
push ecx
push dword [esi + 0xc]
call edi
add esp, 0xc
test eax, eax
jne 0x411f6e
mov byte [esi + 0x448], 1
jmp 0x411f6e
inc dword [0x48dd00]
cmp byte [esi + 0x448], 0
jne 0x411fb2
mov eax, dword [esp + 0x10]
cmp dword [esi + 0x43c], eax
jb 0x411e46
lea edi, [esi + 0x460]
mov eax, dword [edi]
test eax, eax
je 0x411faa
push dword [esi + 0x20]
push eax
push 1
push dword [esi + 0x458]
call fcn.00451fc2
add esp, 0x10
and dword [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
pop eax
jmp 0x411fac

Function at 0x412047
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.00451260
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
ret

Function at 0x412c26
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push esi
push edi
lea eax, [ebp - 0xdc]
call fcn.0041288d
push dword [ebp + 0x10]
lea esi, [ebp - 0xdc]
call fcn.004129cd
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x412c6b
mov eax, dword [ebp + 8]
lea esi, [edi + eax]
lea eax, [ebp - 0xdc]
push eax
call fcn.0041299f
xor byte [esi], al
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x412c51
pop edi
pop esi
leave
ret 0xc
Function at 0x412f5e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68c
push ebx
push esi
mov esi, eax
push edi
lea eax, [ebp - 0x478]
call fcn.00411ac9
push 0
push dword [esi + 4]
xor edi, edi
push dword [esi]
inc edi
mov dword [ebp - 0xc], edi
call fcn.00451d73
add esp, 0xc
lea eax, [ebp - 0x688]
push eax
push str.___AUTOIT_SCRIPT___
call fcn.004130ce
test eax, eax
je 0x412fa9
push 6
pop eax
jmp 0x4130c7
push dword [esi]
lea eax, [ebp - 1]
push edi
push edi
push eax
call fcn.004523ce
push dword [esi]
lea eax, [ebp - 8]
push edi
push 4
push eax
call fcn.004523ce
push dword [esi]
mov edi, dword [ebp - 8]
push 1
lea eax, [ebp - 8]
push 4
mov ebx, 0x87bc
push eax
xor edi, ebx
call fcn.004523ce
push dword [esi]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
xor eax, ebx
push 1
mov dword [ecx], eax
lea eax, [ebp - 8]
push 4
push eax
call fcn.004523ce
mov ebx, dword [ebp - 8]
add esp, 0x40
push 1
push 0x10
push dword [esi]
xor ebx, 0xa685
call fcn.00451d73
mov eax, dword [ebp + 0xc]
add esp, 0xc
push dword [eax]
call fcn.00450ae9
pop ecx
push edi
mov dword [ebp + 0xc], eax
call fcn.00450ae9
pop ecx
push dword [esi]
mov dword [ebp - 0x10], eax
push 1
push edi
push eax
call fcn.004523ce
mov eax, dword [esi + 8]
mov esi, dword [ebp - 0x10]
add esp, 0x10
add eax, 0x2477
push eax
push edi
push esi
call fcn.00412c26
push edi
push esi
lea edi, [ebp - 0xc]
call fcn.00411a75
cmp ebx, dword [ebp - 0xc]
je 0x41306f
push dword [ebp + 0xc]
call fcn.00450d38
pop ecx
push esi
call fcn.00450d38
pop ecx
push 0xa
jmp 0x412fa3
cmp byte [ebp - 1], 1
jne 0x4130b1
lea eax, [ebp - 0x478]
call fcn.00411ac9
xor eax, eax
inc eax
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x460], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x478], eax
lea eax, [ebp - 0x478]
mov dword [ebp - 0x474], esi
call fcn.00411af7
push esi
call fcn.00450d38
jmp 0x4130bc
push dword [ebp + 0xc]
call fcn.00450d38
mov dword [ebp + 0xc], esi
mov eax, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4130ce
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push ebx
push edi
mov byte [ebp - 1], 1
push dword [esi]
lea eax, [ebp - 0x14]
push 4
push 1
push eax
call fcn.004523ce
add esp, 0x10
push 0x18ee
push 4
lea eax, [ebp - 0x14]
push eax
call fcn.00412c26
lea eax, [ebp - 0x14]
push str.FILE
push eax
mov byte [ebp - 0x10], 0
call fcn.00451670
test eax, eax
pop ecx
pop ecx
jne 0x413223
push dword [esi]
lea eax, [ebp - 0xc]
push 1
push 4
push eax
call fcn.004523ce
mov edi, dword [ebp - 0xc]
push dword [esi]
xor edi, 0xadbc
lea ebx, [edi + edi]
push ebx
lea eax, [ebp - 0x228]
push 1
push eax
call fcn.004523ce
add esp, 0x20
add edi, 0xb33f
push edi
push ebx
lea eax, [ebp - 0x228]
push eax
call fcn.00412c26
and word [ebp + ebx - 0x228], 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.0044e973
push dword [esi]
lea eax, [ebp - 0xc]
push 1
push 4
push eax
call fcn.004523ce
mov edi, dword [ebp - 0xc]
push dword [esi]
xor edi, 0xf820
lea ebx, [edi + edi]
push ebx
lea eax, [ebp - 0x228]
push 1
push eax
call fcn.004523ce
add esp, 0x28
add edi, 0xf479
push edi
push ebx
lea eax, [ebp - 0x228]
push eax
call fcn.00412c26
and word [ebp + ebx - 0x228], 0
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 0xc]
call fcn.0044e973
push dword [ebp + 8]
lea eax, [ebp - 0x438]
push eax
call fcn.0044ef27
add esp, 0x10
test eax, eax
je 0x41323a
xor edi, edi
inc edi
push edi
push edi
push dword [esi]
call fcn.00451d73
add esp, 0xc
push dword [esi]
lea eax, [ebp - 8]
push edi
push 4
push eax
call fcn.004523ce
xor dword [ebp - 8], 0x87bc
mov eax, dword [ebp - 8]
push edi
add eax, 0x18
push eax
push dword [esi]
call fcn.00451d73
add esp, 0x1c
jmp 0x413227
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 1
je 0x4130dd
push 6
pop eax
pop edi
pop ebx
leave
ret 8
xor eax, eax
jmp 0x413234