joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ead8
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa54
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x440]
call fcn.0040e1cb
push dword [ebp + 0xc]
lea eax, [ebp - 0x234]
call fcn.0040e1cb
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
pop ecx
pop ecx
lea eax, [ebp - 0x440]
push eax
call esi
cmp eax, 0xffffffff
je 0x40eb18
test al, 0x10
jne 0x40eb1f
xor al, al
jmp 0x40ecca
push ebx
lea eax, [ebp - 0x234]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40ec14
test al, 0x10
je 0x40ec14
cmp byte [ebp + 0x10], bl
je 0x40ec49
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x40eb98
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.004518ea
test eax, eax
pop ecx
pop ecx
je 0x40eb91
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jmp 0x40ec5f
mov al, 1
jmp 0x40ecc9
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0xa54]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.0045237c
lea eax, [ebp - 0x234]
push 0x46c6b8
push eax
call fcn.0044f843
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0044f843
add esp, 0x24
cmp word [ebp - 0x644], bx
je 0x40ec14
lea eax, [ebp - 0x234]
push 0x46d028
push eax
call fcn.0044f843
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0044f843
add esp, 0x10
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.0040e2bd
test al, al
pop ecx
pop ecx
je 0x40ec64
push 1
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.0040e983
add esp, 0xc
test al, al
jne 0x40ec4d
xor al, al
jmp 0x40ecc9
lea eax, [ebp - 0x440]
push 1
push eax
call fcn.0040eccd
pop ecx
pop ecx
test al, al
setne al
jmp 0x40ecc9
lea eax, [ebp - 0x440]
push eax
call fcn.0045177a
mov word [ebp + eax*2 - 0x43e], bx
lea eax, [ebp - 0x234]
push eax
call fcn.0045177a
mov word [ebp + eax*2 - 0x232], bx
lea eax, [ebp - 0x440]
mov dword [ebp - 0x18], eax
pop ecx
lea eax, [ebp - 0x234]
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 0x40eccd
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.0040e1cb
pop ecx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ecfb
test al, 0x10
jne 0x40ecff
xor al, al
leave
ret
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
lea eax, [ebp - 0x22c]
push eax
jne 0x40ed1b
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x40ed5e
call fcn.0045177a
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 0x40ee2c
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 0x40eeec
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 0x40eeec
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x40ee86
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x40ee7d
cmp esi, edx
jle 0x40ee9b
push str.0.0.0.0
push dword [ebp + 8]
call fcn.0044f86d
pop ecx
pop ecx
jmp 0x40eee5
push 4
push dword [eax + esi*4 - 4]
lea eax, [ebp - 8]
push eax
call fcn.0044fd10
add esp, 0xc
push dword [ebp - 8]
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00451f70
lea eax, [ebp - 0x10c]
push eax
or eax, 0xffffffff
call fcn.0040fbdc
mov esi, eax
push esi
push dword [ebp + 8]
call fcn.0044f86d
push esi
call fcn.0044f951
add esp, 0x18
call sub.WSOCK32.dll_WSACleanup
jmp 0x40eefb
push 0x46bf80
push dword [ebp + 8]
call fcn.0044f86d
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x40f00a
Capabilities:
Enumerate gui resources
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x48a2ec], 0
push ebx
push esi
mov ebx, eax
je 0x40f075
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 0x40f038
xor eax, eax
jmp 0x40f0b7
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 0x40f077
jmp 0x40f034
xor esi, esi
cmp byte [0x48a2ed], 0
je 0x40f094
test bl, 4
je 0x40f094
push esi
push 0x40f0bb
xor ebx, 4
call dword [sym.imp.USER32.dll_EnumWindows]
cmp ebx, 0x20
je 0x40f0a8
cmp ebx, 0x40
je 0x40f0a8
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40f0b7
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 0x40f0f7
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
jne 0x40f110
push dword [esp + 4]
call fcn.0040f0d2
test al, al
pop ecx
jne 0x40f12c
push 1
jmp 0x40f112
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 0x40f310
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 0x40f39c
jne 0x40f324
push 0
jmp 0x40f396
mov al, byte [0x48a2ed]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x40f395
mov esi, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x40f395
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 [0x4726e0]
call fcn.00466d06
cmp eax, edi
jb 0x40f353
jmp 0x40f39c
push edi
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40f5e8
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov bl, byte [0x4795bb]
push esi
push 0x8000
push edi
mov esi, eax
call fcn.00453763
pop ecx
push eax
call fcn.0045366c
cmp dword [esi + 8], 0xb
pop ecx
pop ecx
mov dword [ebp - 4], eax
jne 0x40f635
push edi
mov ecx, esi
call fcn.004122fb
push eax
push 1
mov eax, esi
call fcn.0041239b
push eax
call fcn.00452b54
add esp, 0x10
mov dword [ebp - 8], eax
jmp 0x40f670
call fcn.00412336
push eax
or eax, 0xffffffff
call fcn.0040fc4b
push eax
push 0x46d1e8
push edi
mov dword [ebp - 0xc], eax
call fcn.00453790
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
call fcn.0044f951
add esp, 0x14
test bl, bl
je 0x40f670
call fcn.00412336
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
push edi
call fcn.00453a5d
cmp dword [ebp - 4], 0xffffffff
pop ecx
pop esi
pop ebx
jne 0x40f686
push 0x4000
jmp 0x40f689
push dword [ebp - 4]
push edi
call fcn.00453763
pop ecx
push eax
call fcn.0045366c
mov eax, dword [ebp - 8]
pop ecx
pop ecx
leave
ret

Function at 0x4114ed
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
test dword [ecx], eax
mov esi, edx
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
je 0x41152c
mov eax, dword [esi]
cmp eax, edi
jne 0x411597
push edi
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
test eax, eax
jne 0x41157b
or eax, 0xffffffff
jmp 0x411597
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
cmp eax, edi
mov dword [esi], eax
je 0x41154e
cmp eax, 0xffffffff
je 0x41154e
push 1
push esi
push eax
call fcn.0041145a
add esp, 0xc
jmp 0x411595
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40000000
push 0x46d4e8
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x411577
cmp eax, edi
jne 0x41157b
mov dword [esi], edi
jmp 0x411595
push 1
lea eax, [ebp + 0xc]
push eax
push dword [esi]
call fcn.0041145a
add esp, 0xc
call fcn.00411449
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [esi]
pop edi
pop esi
leave
ret 8
Function at 0x41159d
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
test byte [eax], 1
mov esi, ecx
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
je 0x4115dd
mov eax, dword [esi]
cmp eax, edi
jne 0x411647
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
test eax, eax
jne 0x41162b
or eax, 0xffffffff
jmp 0x411647
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
cmp eax, edi
mov dword [esi], eax
je 0x4115fe
cmp eax, 0xffffffff
je 0x4115fe
push 1
push esi
push eax
call fcn.0041145a
add esp, 0xc
jmp 0x411645
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 1
push SysReAllocString
push 0x46d4e8
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x411627
cmp eax, edi
jne 0x41162b
mov dword [esi], edi
jmp 0x411645
push 1
lea eax, [ebp + 8]
push eax
push dword [esi]
call fcn.0041145a
add esp, 0xc
call fcn.00411449
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [esi]
pop edi
pop esi
leave
ret 4

Function at 0x411765
Capabilities:
Create thread

Disassembly:
push ecx
xor eax, eax
cmp dword [esi + 0x30], eax
jne 0x411783
lea ecx, [esp]
push ecx
push eax
push esi
push 0x411953
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi + 0x30], eax
pop ecx
ret

Function at 0x411785
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
lea esi, [ebp + 0x30]
cmp dword [esi], 0
je 0x4117e0
push ebx
push edi
lea ebx, [ebp + 0x34]
push dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
mov edi, 0x1f6
cmp eax, edi
je 0x4117de
add ebp, 0x14
push ebp
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push 0x3e8
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
call fcn.00411449
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push ebp
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
pop ebx
pop esi
pop ebp
ret 4
Function at 0x41196a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10010
call fcn.00454dd0
push ebx
push esi
push edi
mov esi, ecx
lea eax, [esi + 0x34]
push 0x1f5
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
mov edi, 0xffff
push edi
mov dword [esi + 0x10], edi
call fcn.0044f8e7
mov ebx, dword [sym.imp.KERNEL32.DLL_ReadFile]
pop ecx
mov dword [esi + 8], eax
jmp 0x411a58
cmp dword [ebp - 4], 0
jbe 0x411a73
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 4]
cmp dword [esi + 0x10], eax
jae 0x411a2f
push dword [esi + 0xc]
call fcn.0044f8e7
push dword [esi + 0xc]
mov dword [ebp - 8], eax
push dword [esi + 8]
push eax
call fcn.0044fd10
push dword [esi + 8]
call fcn.0044f951
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 4]
test eax, eax
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
jge 0x4119ff
fadd qword [0x4726a8]
fmul qword [0x4726c0]
call fcn.00466d06
push eax
mov dword [esi + 0x10], eax
call fcn.0044f8e7
push dword [esi + 0xc]
mov dword [esi + 8], eax
push dword [ebp - 8]
push dword [esi + 8]
call fcn.0044fd10
push dword [ebp - 8]
call fcn.0044f951
add esp, 0x28
push dword [ebp - 4]
lea eax, [ebp - 0x10010]
push eax
mov eax, dword [esi + 0xc]
add eax, dword [esi + 8]
push eax
call fcn.0044fd10
mov eax, dword [ebp - 4]
add dword [esi + 0xc], eax
add esp, 0xc
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push 0
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x10010]
push eax
push dword [esi + 0x2c]
call ebx
test eax, eax
jne 0x4119ab
mov esi, 0x1f6
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

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

Disassembly:
push esi
xor esi, esi
inc esi
mov dword [0x489620], eax
push edi
mov edx, esi
mov eax, 0x489620
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, 0x489fdc
jl 0x413ff0
pop edi
mov dword [0x478078], esi
mov dword [0x489ff0], esi
pop esi
ret
Function at 0x41401e
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
cmp dword [0x489ff0], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x489620
jne 0x41403e
push 0
call fcn.00453e41
pop ecx
call fcn.00413fdf
mov dword [0x478078], 0x270
mov dword [0x48961c], 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 0x41405d
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 0x414093
mov edx, dword [0x489620]
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 0x4140ed
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x478078]
jne 0x4140fa
call fcn.0041401e
mov eax, dword [0x48961c]
mov ecx, dword [eax]
add dword [0x48961c], 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 0x414131
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
dec dword [0x478078]
jne 0x41413f
call fcn.0041401e
mov eax, dword [0x48961c]
mov eax, dword [eax]
add dword [0x48961c], 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 0x414185
fadd qword [0x4726a8]
fmul qword [0x4726a0]
pop ecx
ret

Function at 0x414330
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [esi + 0x14], 1
jne 0x414352
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.0044fd10
add esp, 0xc
jmp 0x414365
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.00452f60
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.00452570
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
leave
ret 4
Function at 0x414439
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi + 0x464]
test eax, eax
mov ecx, 0x10000
je 0x41444c
cmp eax, ecx
jne 0x414467
push dword [esi + 0x1c]
push ecx
push 1
push dword [esi + 0x45c]
call fcn.00452f60
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 0x41447e
Capabilities:
Write file on windows

Disassembly:
cmp dword [esi + 0x18], 1
mov eax, dword [esi + 0x444]
push edi
je 0x414535
cmp eax, dword [esi + 0x43c]
jae 0x414501
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 0x4144e9
push dword [esi + 0x20]
push edi
push 1
push dword [esi + 0x458]
call fcn.00452b54
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 0x41449d
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 0x41450a
jmp 0x414501
Function at 0x41453f
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 0x41469f
mov ebp, 0xff
push 1
mov eax, esi
call fcn.004146cf
cmp eax, 1
mov eax, esi
jne 0x41459b
push 8
call fcn.004146cf
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 0x41463a
push 0xf
call fcn.004146cf
mov ebx, eax
push 2
mov eax, esi
xor edi, edi
call fcn.004146cf
cmp eax, 3
jne 0x4145fa
push eax
pop edi
push eax
mov eax, esi
call fcn.004146cf
cmp eax, 7
jne 0x4145fa
push 0xa
pop edi
push 5
mov eax, esi
call fcn.004146cf
cmp eax, 0x1f
jne 0x4145fa
push 0x29
pop edi
push 8
mov eax, esi
call fcn.004146cf
cmp eax, ebp
jne 0x4145fa
mov edi, 0x128
jmp 0x4145ed
add edi, ebp
push 8
mov eax, esi
call fcn.004146cf
cmp eax, ebp
je 0x4145eb
lea edi, [eax + edi + 3]
mov eax, dword [esi + 0x43c]
sub eax, ebx
jmp 0x414636
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 0x414608
call fcn.0041447e
cmp dword [0x48b8c0], 0x1000
jbe 0x414680
mov edi, dword [esi + 0x454]
and dword [0x48b8c0], 0
test edi, edi
je 0x414686
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 0x414686
mov byte [esi + 0x448], 1
jmp 0x414686
inc dword [0x48b8c0]
cmp byte [esi + 0x448], 0
jne 0x4146ca
mov eax, dword [esp + 0x10]
cmp dword [esi + 0x43c], eax
jb 0x41455e
lea edi, [esi + 0x460]
mov eax, dword [edi]
test eax, eax
je 0x4146c2
push dword [esi + 0x20]
push eax
push 1
push dword [esi + 0x458]
call fcn.00452b54
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 0x4146c4

Function at 0x41475f
Capabilities:
Hash data with md5

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
push ebx
push esi
push 0x46bf80
or eax, 0xffffffff
call fcn.0040fc4b
pop ecx
mov esi, eax
lea eax, [esp + 0xa8]
push esi
push eax
call fcn.00451f70
push esi
call fcn.0044f951
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.0041475f
lea eax, [esp + 0xa8]
push eax
call fcn.00451ee0
pop ecx
mov ebx, eax
call fcn.0041475f
lea eax, [esp + 0xa8]
push eax
mov eax, ebx
call fcn.0041478c
mov eax, esi
call fcn.00414823
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 0x4151b8
push 0x46cf3c
push dword [ebp + 8]
mov dword [edi + 8], eax
call fcn.0045286b
test eax, eax
pop ecx
pop ecx
mov dword [edi], eax
jne 0x4151df
inc eax
jmp 0x41523b
mov esi, edi
call fcn.00415243
push dword [edi]
mov esi, eax
test esi, esi
je 0x4151f7
call fcn.00452c48
mov eax, esi
jmp 0x41523a
push ebx
lea eax, [esp + 0x10]
push 1
push eax
call fcn.00452f60
add esp, 0x10
push 0x99f2
push ebx
lea eax, [esp + 0x10]
push eax
call fcn.0041533e
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 0x41521e
push dword [edi]
mov dword [edi + 8], ecx
call fcn.00454023
mov dword [edi + 4], eax
xor eax, eax
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x415243
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.00454dd0
xor eax, eax
mov cl, byte [eax + 0x478030]
mov byte [ebp + eax - 0x20], cl
mov cl, byte [eax + 0x478028]
mov byte [ebp + eax - 0x18], cl
inc eax
cmp eax, 8
jl 0x415252
push ebx
push edi
lea eax, [ebp - 8]
push str.AU3_
push eax
call fcn.00451f70
push 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0044fd10
add esp, 0x14
xor edi, edi
push dword [esi]
lea eax, [ebp - 0x10020]
push 0x10000
push 1
push eax
call fcn.00452f60
add esp, 0x10
cmp eax, 0x18
mov dword [ebp - 0xc], eax
jl 0x415339
lea edx, [eax - 0x14]
xor ecx, ecx
test edx, edx
jle 0x4152e5
xor edx, edx
lea eax, [ebp + ecx - 0x10020]
mov bl, byte [ebp + edx - 0x20]
cmp bl, byte [eax + edx]
jne 0x4152d5
inc edx
cmp edx, 0x14
jl 0x4152c6
cmp edx, 0x14
je 0x4152f9
mov eax, dword [ebp - 0xc]
inc ecx
lea edx, [eax - 0x14]
cmp ecx, edx
jl 0x4152bd
push 1
push 0xffffffffffffffec
push dword [esi]
lea edi, [edi + eax - 0x14]
call fcn.00452905
add esp, 0xc
jmp 0x415290
push 0
lea eax, [edi + ecx + 0x14]
push eax
push dword [esi]
call fcn.00452905
add esp, 0xc
push dword [esi]
lea eax, [ebp - 8]
push 4
push 1
push eax
call fcn.00452f60
lea eax, [ebp - 8]
push str.EA06
push eax
mov byte [ebp - 4], 0
call fcn.00452570
add esp, 0x18
neg eax
sbb eax, eax
and eax, 4
pop edi
pop ebx
leave
ret
push 3
pop eax
jmp 0x415335
Function at 0x41533e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push esi
push edi
lea eax, [ebp - 0xdc]
call fcn.00414fa5
push dword [ebp + 0x10]
lea esi, [ebp - 0xdc]
call fcn.004150e5
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x415383
mov eax, dword [ebp + 8]
lea esi, [edi + eax]
lea eax, [ebp - 0xdc]
push eax
call fcn.004150b7
xor byte [esi], al
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x415369
pop edi
pop esi
leave
ret 0xc