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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x12dc
call fcn.004537c0
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [esp + 0x43c]
xor bl, bl
call fcn.0040c4bf
pop ecx
push dword [ebp + 0xc]
lea eax, [esp + 0x64c]
call fcn.0040c4bf
pop ecx
lea eax, [esp + 0x648]
push eax
lea eax, [esp + 0x43c]
push eax
call fcn.0040c5b1
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop ecx
mov byte [esp + 0x17], al
pop ecx
lea eax, [esp + 0x438]
push eax
call esi
cmp eax, 0xffffffff
mov edi, str..
je 0x40c7f0
test al, 0x10
je 0x40c7f0
lea eax, [esp + 0x438]
push edi
push eax
call fcn.0044e238
pop ecx
pop ecx
lea eax, [esp + 0x648]
push eax
call esi
cmp eax, 0xffffffff
je 0x40c813
test al, 0x10
je 0x40c813
lea eax, [esp + 0x648]
push edi
push eax
call fcn.0044e238
pop ecx
pop ecx
lea eax, [esp + 0x10d8]
push eax
lea eax, [esp + 0xaac]
push eax
lea eax, [esp + 0xcc0]
push eax
lea eax, [esp + 0xed4]
push eax
lea eax, [esp + 0x448]
push eax
call fcn.00450ca8
add esp, 0x14
lea eax, [esp + 0x858]
push eax
lea eax, [esp + 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
mov byte [esp + 0x12], 1
je 0x40c9ab
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp byte [esp + 0x12], 1
jne 0x40c9ab
test byte [esp + 0x858], 0x10
jne 0x40c986
lea eax, [esp + 0x648]
push eax
lea eax, [esp + 0x10dc]
push eax
lea eax, [esp + 0xab0]
push eax
lea eax, [esp + 0x890]
push eax
lea esi, [esp + 0x238]
call fcn.0040c9be
lea eax, [esp + 0xed8]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0044e262
lea eax, [esp + 0xcd0]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0044e238
lea eax, [esp + 0x8a4]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0044e238
mov eax, esi
push eax
call fcn.0040c46c
add esp, 0x2c
test al, al
je 0x40c91c
cmp byte [ebp + 0x10], 0
je 0x40c967
mov eax, esi
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
mov eax, esi
push eax
je 0x40c975
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp + 0x14], 1
lea eax, [esp + 0x228]
jne 0x40c959
cmp byte [esp + 0x13], 0
jne 0x40c93e
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x40c963
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
je 0x40c967
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40c963
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
jne 0x40c984
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x40c9b7
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40c9a9
mov bl, 1
lea eax, [esp + 0x858]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c871
mov byte [esp + 0x12], al
jmp 0x40c871
xor bl, bl
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cbda
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.0044e874
dec eax
lea eax, [esi + eax*2]
cmp word [eax], 0x5c
pop ecx
jne 0x40cbf6
and word [eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40cc6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jne 0x40cc20
push 0
push esi
call ebp
test eax, eax
je 0x40cc25
mov al, 1
jmp 0x40cc73
cmp eax, 3
jne 0x40cc71
push esi
call fcn.0040d6b8
mov edi, eax
push 0x5c
push edi
call fcn.00451f24
add esp, 0xc
test eax, eax
jne 0x40cc45
push edi
call fcn.0044e346
pop ecx
jmp 0x40cc71
and word [eax], 0
push ebx
push edi
call fcn.0040cbda
push edi
mov bl, al
call fcn.0044e346
test bl, bl
pop ecx
pop ecx
je 0x40cc68
push 0
push esi
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x40cc73
test al, 0x10
jne 0x40cc1c
xor al, al
pop edi
pop esi
pop ebp
ret

Function at 0x40cc77
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.0040c4bf
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
call fcn.0040c4bf
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 0x40ccf0
cmp byte [ebp + 0x10], al
je 0x40ccec
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.0044e81b
test eax, eax
pop ecx
pop ecx
je 0x40cce8
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 0x40cd09
test al, 0x10
jne 0x40cd10
xor al, al
jmp 0x40cdc9
push ebx
lea eax, [ebp - 0x22c]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40cd2a
test al, 0x10
je 0x40cd2a
cmp byte [ebp + 0x10], bl
jmp 0x40cd4b
lea eax, [ebp - 0x22c]
push eax
call fcn.0040cbda
test al, al
pop ecx
je 0x40cd4d
lea eax, [ebp - 0x22c]
push eax
call esi
cmp eax, 0xffffffff
je 0x40cd4d
test al, 0x10
jne 0x40cd51
xor al, al
jmp 0x40cdc8
lea eax, [ebp - 0x438]
push str..
push eax
call fcn.0044e238
lea eax, [ebp - 0x438]
push eax
call fcn.0044e874
mov word [ebp + eax*2 - 0x436], bx
lea eax, [ebp - 0x22c]
push eax
call fcn.0044e874
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 0x40cdcc
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.0040c4bf
push dword [ebp + 0xc]
lea eax, [ebp - 0x438]
call fcn.0040c4bf
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop ecx
pop ecx
lea eax, [ebp - 0x22c]
push eax
call esi
cmp eax, 0xffffffff
je 0x40ce0c
test al, 0x10
jne 0x40ce13
xor al, al
jmp 0x40cf2c
push ebx
lea eax, [ebp - 0x438]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40ce76
test al, 0x10
je 0x40ce76
cmp byte [ebp + 0x10], bl
je 0x40ceab
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40ce76
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0044e81b
test eax, eax
pop ecx
pop ecx
je 0x40ce76
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jmp 0x40cec1
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0040c5b1
test al, al
pop ecx
pop ecx
je 0x40cec6
push 1
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0040cc77
add esp, 0xc
test al, al
jne 0x40ceaf
xor al, al
jmp 0x40cf2b
lea eax, [ebp - 0x22c]
push 1
push eax
call fcn.0040cf2f
pop ecx
pop ecx
test al, al
setne al
jmp 0x40cf2b
lea eax, [ebp - 0x22c]
push eax
call fcn.0044e874
mov word [ebp + eax*2 - 0x22a], bx
lea eax, [ebp - 0x438]
push eax
call fcn.0044e874
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 0x40cf2f
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.0040c4bf
pop ecx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40cf5d
test al, 0x10
jne 0x40cf61
xor al, al
leave
ret
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
lea eax, [ebp - 0x22c]
push eax
jne 0x40cf7d
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x40cfc0
call fcn.0044e874
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 0x40d088
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 0x40d148
push 0x100
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 0x40d148
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x40d0e2
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x40d0d9
cmp esi, edx
jle 0x40d0f7
push str.0.0.0.0
push dword [ebp + 8]
call fcn.0044e262
pop ecx
pop ecx
jmp 0x40d141
push 4
push dword [eax + esi*4 - 4]
lea eax, [ebp - 8]
push eax
call fcn.00450640
add esp, 0xc
push dword [ebp - 8]
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004504b0
lea eax, [ebp - 0x10c]
push eax
or eax, 0xffffffff
call fcn.0040dead
mov esi, eax
push esi
push dword [ebp + 8]
call fcn.0044e262
push esi
call fcn.0044e346
add esp, 0x18
call sub.WSOCK32.dll_WSACleanup
jmp 0x40d157
push 0x46af60
push dword [ebp + 8]
call fcn.0044e262
pop ecx
pop ecx
pop esi
leave
ret

Function at 0x40d266
Capabilities:
Enumerate gui resources
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x48a7ac], 0
push ebx
push esi
mov ebx, eax
je 0x40d2d1
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 0x40d294
xor eax, eax
jmp 0x40d313
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [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 0x40d2d3
jmp 0x40d290
xor esi, esi
cmp byte [0x48a7ad], 0
je 0x40d2f0
test bl, 4
je 0x40d2f0
push esi
push 0x40d317
xor ebx, 4
call dword [sym.imp.USER32.dll_EnumWindows]
cmp ebx, 0x20
je 0x40d304
cmp ebx, 0x40
je 0x40d304
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40d313
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 0x40d353
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
jne 0x40d36c
push dword [esp + 4]
call fcn.0040d32e
test al, al
pop ecx
jne 0x40d388
push 1
jmp 0x40d36e
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 0x40d627
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 0x40d6b3
jne 0x40d63b
push 0
jmp 0x40d6ad
mov al, byte [0x48a7ad]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x40d6ac
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x40d6ac
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 [0x471200]
call fcn.00465706
cmp eax, edi
jb 0x40d66a
jmp 0x40d6b3
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40d8ff
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov bl, byte [0x4785bb]
push edi
push 0x8000
push esi
call fcn.0045238a
pop ecx
push eax
call fcn.00452293
push dword [ebp + 8]
mov dword [ebp - 4], eax
or eax, 0xffffffff
call fcn.0040df1c
mov edi, eax
push edi
push 0x46bed4
push esi
call fcn.004523b7
push edi
call fcn.0044e346
push esi
call fcn.00452684
add esp, 0x20
cmp dword [ebp - 4], 0xffffffff
jne 0x40d955
push 0x4000
jmp 0x40d958
push dword [ebp - 4]
push esi
call fcn.0045238a
pop ecx
push eax
call fcn.00452293
pop ecx
pop ecx
pop edi
test bl, bl
pop ebx
je 0x40d976
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
leave
ret

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

Disassembly:
push esi
xor esi, esi
inc esi
mov dword [0x488620], eax
push edi
mov edx, esi
mov eax, 0x488620
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, 0x488fdc
jl 0x41186e
pop edi
mov dword [0x476b84], esi
mov dword [0x488ff0], esi
pop esi
ret
Function at 0x41189c
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
cmp dword [0x488ff0], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x488620
jne 0x4118bc
push 0
call fcn.0045282f
pop ecx
call fcn.0041185d
mov dword [0x476b84], 0x270
mov dword [0x48861c], esi
mov edx, 0xe3
mov ecx, bind
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 0x4118db
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 0x411911
mov edx, dword [0x488620]
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 0x41196b
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x476b84]
jne 0x411978
call fcn.0041189c
mov eax, dword [0x48861c]
mov ecx, dword [eax]
add dword [0x48861c], 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 0x4119af
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
dec dword [0x476b84]
jne 0x4119bd
call fcn.0041189c
mov eax, dword [0x48861c]
mov eax, dword [eax]
add dword [0x48861c], 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 0x411a03
fadd qword [0x4711e0]
fmul qword [0x4711d8]
pop ecx
ret

Function at 0x411bae
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [esi + 0x14], 1
jne 0x411bd0
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.00450640
add esp, 0xc
jmp 0x411be3
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.00451cbe
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.00450f60
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
leave
ret 4
Function at 0x411cb7
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi + 0x464]
test eax, eax
mov ecx, 0x10000
je 0x411cca
cmp eax, ecx
jne 0x411ce5
push dword [esi + 0x1c]
push ecx
push 1
push dword [esi + 0x45c]
call fcn.00451cbe
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 0x411cfc
Capabilities:
Write file on windows

Disassembly:
cmp dword [esi + 0x18], 1
mov eax, dword [esi + 0x444]
push edi
je 0x411db3
cmp eax, dword [esi + 0x43c]
jae 0x411d7f
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 0x411d67
push dword [esi + 0x20]
push edi
push 1
push dword [esi + 0x458]
call fcn.004518b2
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 0x411d1b
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 0x411d88
jmp 0x411d7f
Function at 0x411dbd
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 0x411f1d
mov ebp, 0xff
push 1
mov eax, esi
call fcn.00411f4d
cmp eax, 1
mov eax, esi
jne 0x411e19
push 8
call fcn.00411f4d
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 0x411eb8
push 0xf
call fcn.00411f4d
mov ebx, eax
push 2
mov eax, esi
xor edi, edi
call fcn.00411f4d
cmp eax, 3
jne 0x411e78
push eax
pop edi
push eax
mov eax, esi
call fcn.00411f4d
cmp eax, 7
jne 0x411e78
push 0xa
pop edi
push 5
mov eax, esi
call fcn.00411f4d
cmp eax, 0x1f
jne 0x411e78
push 0x29
pop edi
push 8
mov eax, esi
call fcn.00411f4d
cmp eax, ebp
jne 0x411e78
mov edi, 0x128
jmp 0x411e6b
add edi, ebp
push 8
mov eax, esi
call fcn.00411f4d
cmp eax, ebp
je 0x411e69
lea edi, [eax + edi + 3]
mov eax, dword [esi + 0x43c]
sub eax, ebx
jmp 0x411eb4
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 0x411e86
call fcn.00411cfc
cmp dword [0x48cce8], 0x1000
jbe 0x411efe
mov edi, dword [esi + 0x454]
and dword [0x48cce8], 0
test edi, edi
je 0x411f04
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 0x411f04
mov byte [esi + 0x448], 1
jmp 0x411f04
inc dword [0x48cce8]
cmp byte [esi + 0x448], 0
jne 0x411f48
mov eax, dword [esp + 0x10]
cmp dword [esi + 0x43c], eax
jb 0x411ddc
lea edi, [esi + 0x460]
mov eax, dword [edi]
test eax, eax
je 0x411f40
push dword [esi + 0x20]
push eax
push 1
push dword [esi + 0x458]
call fcn.004518b2
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 0x411f42

Function at 0x411fdd
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.00450e40
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 0x4129c2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
push ebx
push esi
push 0x46af60
or eax, 0xffffffff
call fcn.0040df1c
pop ecx
mov esi, eax
lea eax, [esp + 0xa8]
push esi
push eax
call fcn.004504b0
push esi
call fcn.0044e346
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.00411fdd
lea eax, [esp + 0xa8]
push eax
call fcn.00450420
pop ecx
mov ebx, eax
call fcn.00411fdd
lea eax, [esp + 0xa8]
push eax
mov eax, ebx
call fcn.0041200a
mov eax, esi
call fcn.004120a1
and dword [edi + 8], 0
push 0x10
xor ecx, ecx
xor eax, eax
pop ebx
movzx edx, byte [esp + ecx + 0x18]
add eax, edx
inc ecx
cmp ecx, ebx
jl 0x412a36
push 0x46bc28
push dword [ebp + 8]
mov dword [edi + 8], eax
call fcn.004515c9
test eax, eax
pop ecx
pop ecx
mov dword [edi], eax
jne 0x412a5d
inc eax
jmp 0x412ab9
mov esi, edi
call fcn.00412ac1
push dword [edi]
mov esi, eax
test esi, esi
je 0x412a75
call fcn.004519a6
mov eax, esi
jmp 0x412ab8
push ebx
lea eax, [esp + 0x10]
push 1
push eax
call fcn.00451cbe
add esp, 0x10
push 0x99f2
push ebx
lea eax, [esp + 0x10]
push eax
call fcn.00412bbc
xor ecx, ecx
mov dword [edi + 8], ecx
xor eax, eax
movzx edx, byte [esp + eax + 8]
imul ecx, edx
inc eax
cmp eax, ebx
jl 0x412a9c
push dword [edi]
mov dword [edi + 8], ecx
call fcn.00452a11
mov dword [edi + 4], eax
xor eax, eax
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x412ac1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.004537c0
xor eax, eax
mov cl, byte [eax + 0x477030]
mov byte [ebp + eax - 0x20], cl
mov cl, byte [eax + 0x477028]
mov byte [ebp + eax - 0x18], cl
inc eax
cmp eax, 8
jl 0x412ad0
push ebx
push edi
lea eax, [ebp - 8]
push str.AU3_
push eax
call fcn.004504b0
push 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00450640
add esp, 0x14
xor edi, edi
push dword [esi]
lea eax, [ebp - 0x10020]
push 0x10000
push 1
push eax
call fcn.00451cbe
add esp, 0x10
cmp eax, 0x18
mov dword [ebp - 0xc], eax
jl 0x412bb7
lea edx, [eax - 0x14]
xor ecx, ecx
test edx, edx
jle 0x412b63
xor edx, edx
lea eax, [ebp + ecx - 0x10020]
mov bl, byte [ebp + edx - 0x20]
cmp bl, byte [eax + edx]
jne 0x412b53
inc edx
cmp edx, 0x14
jl 0x412b44
cmp edx, 0x14
je 0x412b77
mov eax, dword [ebp - 0xc]
inc ecx
lea edx, [eax - 0x14]
cmp ecx, edx
jl 0x412b3b
push 1
push 0xffffffffffffffec
push dword [esi]
lea edi, [edi + eax - 0x14]
call fcn.00451663
add esp, 0xc
jmp 0x412b0e
push 0
lea eax, [edi + ecx + 0x14]
push eax
push dword [esi]
call fcn.00451663
add esp, 0xc
push dword [esi]
lea eax, [ebp - 8]
push 4
push 1
push eax
call fcn.00451cbe
lea eax, [ebp - 8]
push str.EA06
push eax
mov byte [ebp - 4], 0
call fcn.00450f60
add esp, 0x18
neg eax
sbb eax, eax
and eax, 4
pop edi
pop ebx
leave
ret
push 3
pop eax
jmp 0x412bb3
Function at 0x412bbc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push esi
push edi
lea eax, [ebp - 0xdc]
call fcn.00412823
push dword [ebp + 0x10]
lea esi, [ebp - 0xdc]
call fcn.00412963
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x412c01
mov eax, dword [ebp + 8]
lea esi, [edi + eax]
lea eax, [ebp - 0xdc]
push eax
call fcn.00412935
xor byte [esi], al
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x412be7
pop edi
pop esi
leave
ret 0xc