joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c40e
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.0044d720
dec eax
add eax, esi
cmp byte [eax], 0x5c
pop ecx
jne 0x40c427
mov byte [eax], 0
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40c49d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
mov ebp, dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
jne 0x40c451
push 0
push esi
call ebp
test eax, eax
je 0x40c456
mov al, 1
jmp 0x40c4a3
cmp eax, 3
jne 0x40c4a1
push esi
call fcn.0040ceec
mov edi, eax
push 0x5c
push edi
call fcn.004513b0
add esp, 0xc
test eax, eax
jne 0x40c476
push edi
call fcn.0044d0f0
pop ecx
jmp 0x40c4a1
push ebx
push edi
mov byte [eax], 0
call fcn.0040c40e
push edi
mov bl, al
call fcn.0044d0f0
test bl, bl
pop ecx
pop ecx
je 0x40c498
push 0
push esi
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x40c4a3
test al, 0x10
jne 0x40c44d
xor al, al
pop edi
pop esi
pop ebp
ret

Function at 0x40c4a7
Capabilities:
Check if file exists
Copy file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push dword [ebp + 8]
lea eax, [ebp - 0x230]
call fcn.0040bd16
push dword [ebp + 0xc]
lea eax, [ebp - 0x128]
call fcn.0040bd16
pop ecx
pop ecx
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
jne 0x40c520
cmp byte [ebp + 0x10], al
je 0x40c51c
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
je 0x40c518
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
mov al, 1
leave
ret
xor al, al
leave
ret
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
lea eax, [ebp - 0x230]
push eax
call esi
cmp eax, 0xffffffff
je 0x40c539
test al, 0x10
jne 0x40c540
xor al, al
jmp 0x40c5f7
push ebx
lea eax, [ebp - 0x128]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40c55a
test al, 0x10
je 0x40c55a
cmp byte [ebp + 0x10], bl
jmp 0x40c57b
lea eax, [ebp - 0x128]
push eax
call fcn.0040c40e
test al, al
pop ecx
je 0x40c57d
lea eax, [ebp - 0x128]
push eax
call esi
cmp eax, 0xffffffff
je 0x40c57d
test al, 0x10
jne 0x40c581
xor al, al
jmp 0x40c5f6
lea eax, [ebp - 0x230]
push str..
push eax
call fcn.0044cf40
lea eax, [ebp - 0x230]
push eax
call fcn.0044d720
mov byte [ebp + eax - 0x22f], bl
lea eax, [ebp - 0x128]
push eax
call fcn.0044d720
mov byte [ebp + eax - 0x127], bl
lea eax, [ebp - 0x230]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x128]
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_SHFileOperationA]
neg eax
sbb al, al
inc al
pop ebx
pop esi
leave
ret
Function at 0x40c5fa
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x128]
call fcn.0040bd16
push dword [ebp + 0xc]
lea eax, [ebp - 0x230]
call fcn.0040bd16
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
pop ecx
pop ecx
lea eax, [ebp - 0x128]
push eax
call esi
cmp eax, 0xffffffff
je 0x40c63a
test al, 0x10
jne 0x40c641
xor al, al
jmp 0x40c758
push ebx
lea eax, [ebp - 0x230]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40c6a4
test al, 0x10
je 0x40c6a4
cmp byte [ebp + 0x10], bl
je 0x40c6d9
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
jne 0x40c6a4
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
je 0x40c6a4
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
test eax, eax
jmp 0x40c6ef
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0040be11
test al, al
pop ecx
pop ecx
je 0x40c6f4
push 1
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0040c4a7
add esp, 0xc
test al, al
jne 0x40c6dd
xor al, al
jmp 0x40c757
lea eax, [ebp - 0x128]
push 1
push eax
call fcn.0040c75b
pop ecx
pop ecx
test al, al
setne al
jmp 0x40c757
lea eax, [ebp - 0x128]
push eax
call fcn.0044d720
mov byte [ebp + eax - 0x127], bl
lea eax, [ebp - 0x230]
push eax
call fcn.0044d720
mov byte [ebp + eax - 0x22f], bl
lea eax, [ebp - 0x128]
mov dword [ebp - 0x18], eax
pop ecx
lea eax, [ebp - 0x230]
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_SHFileOperationA]
neg eax
sbb al, al
inc al
pop ebx
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push dword [ebp + 8]
lea eax, [ebp - 0x128]
call fcn.0040bd16
pop ecx
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40c789
test al, 0x10
jne 0x40c78d
xor al, al
leave
ret
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
lea eax, [ebp - 0x128]
push eax
jne 0x40c7a9
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
test eax, eax
setne al
jmp 0x40c7eb
call fcn.0044d720
mov byte [ebp + eax - 0x127], bl
lea eax, [ebp - 0x128]
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_SHFileOperationA]
neg eax
sbb al, al
inc al
pop ebx
leave
ret
Function at 0x40c89f
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
lea eax, [ebp - 0x29c]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x40c929
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 0x40c929
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x40c8f2
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x40c8e9
cmp esi, edx
jle 0x40c8fd
push str.0.0.0.0
jmp 0x40c918
push 4
push dword [eax + esi*4 - 4]
lea eax, [ebp - 8]
push eax
call fcn.0044f370
add esp, 0xc
push dword [ebp - 8]
call sub.WSOCK32.dll_inet_ntoa
push eax
push dword [ebp + 8]
call fcn.0044cf30
pop ecx
pop ecx
call sub.WSOCK32.dll_WSACleanup
leave
ret
push 0x468eee
push dword [ebp + 8]
call fcn.0044cf30
pop ecx
pop ecx
leave
ret

Function at 0x40ca43
Capabilities:
Enumerate gui resources
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x47d63c], 0
push ebx
push esi
mov ebx, eax
je 0x40caae
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 0x40ca71
xor eax, eax
jmp 0x40caf0
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
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 0x40cab0
jmp 0x40ca6d
xor esi, esi
cmp byte [0x47d63d], 0
je 0x40cacd
test bl, 4
je 0x40cacd
push esi
push 0x40caf4
xor ebx, 4
call dword [sym.imp.USER32.dll_EnumWindows]
cmp ebx, 0x20
je 0x40cae1
cmp ebx, 0x40
je 0x40cae1
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40caf0
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 0x40cb30
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
jne 0x40cb49
push dword [esp + 4]
call fcn.0040cb0b
test al, al
pop ecx
jne 0x40cb65
push 1
jmp 0x40cb4b
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 0x40cb66
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor edi, edi
call fcn.0040cd0a
mov esi, eax
lea eax, [ebp - 8]
push eax
push 1
push ebx
push str.Control_PanelMouse
push reloc.WSOCK32.dll_accept
mov dword [ebp - 0xc], 3
mov byte [ebp - 4], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40cbc2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push str.SwapMouseButtons
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 7
ja case.default.0x40cbc7
jmp dword [esi*4 + 0x40cc16]
xor eax, eax
jmp 0x40cc10
push 2
pop edi
jmp case.default.0x40cbc7
push 8
jmp 0x40cbd4
push 0x20
jmp 0x40cbd4
xor eax, eax
cmp byte [ebp - 4], 0x31
setne al
dec eax
and eax, 6
inc eax
inc eax
jmp 0x40cc00
xor eax, eax
cmp byte [ebp - 4], 0x31
setne al
dec eax
and eax, 0xfffffffa
add eax, 8
mov edi, eax
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_mouse_event]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40cc36
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor edi, edi
call fcn.0040cd0a
push 4
pop esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 1
push ebx
push str.Control_PanelMouse
push reloc.WSOCK32.dll_accept
mov dword [ebp - 0xc], esi
mov byte [ebp - 4], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40cc92
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push str.SwapMouseButtons
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
cmp eax, 7
ja case.default.0x40cc9a
jmp dword [eax*4 + 0x40ccea]
xor eax, eax
jmp 0x40cce3
mov edi, esi
jmp case.default.0x40cc9a
push 0x10
pop edi
jmp case.default.0x40cc9a
push 0x40
jmp 0x40ccab
xor eax, eax
cmp byte [ebp - 4], 0x31
setne al
dec eax
and eax, 0xc
add eax, esi
jmp 0x40ccd3
xor eax, eax
cmp byte [ebp - 4], 0x31
setne al
dec eax
and eax, 0xfffffff4
add eax, 0x10
mov edi, eax
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_mouse_event]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ce5b
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 0x40cee7
jne 0x40ce6f
push 0
jmp 0x40cee1
mov al, byte [0x47d63d]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x40cee0
mov esi, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x40cee0
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 [0x46c980]
call fcn.004634e6
cmp eax, edi
jb 0x40ce9e
jmp 0x40cee7
push edi
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push esi
xor esi, esi
inc esi
mov dword [0x47b5b0], eax
push edi
mov edx, esi
mov eax, 0x47b5b0
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, 0x47bf6c
jl 0x410efd
pop edi
mov dword [0x471c9c], esi
mov dword [0x47bf80], esi
pop esi
ret

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

Disassembly:
push ecx
cmp dword [0x47bf80], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x47b5b0
jne 0x410f4b
push 0
call fcn.00451757
pop ecx
call fcn.00410eec
mov dword [0x471c9c], 0x270
mov dword [0x47b5ac], 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 0x410f6a
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 0x410fa0
mov edx, dword [0x47b5b0]
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 0x410ffa
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x471c9c]
jne 0x411007
call fcn.00410f2b
mov eax, dword [0x47b5ac]
mov ecx, dword [eax]
add dword [0x47b5ac], 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 0x41103e
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
dec dword [0x471c9c]
jne 0x41104c
call fcn.00410f2b
mov eax, dword [0x47b5ac]
mov eax, dword [eax]
add dword [0x47b5ac], 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 0x411092
fadd qword [0x46c960]
fmul qword [0x46c958]
pop ecx
ret

Function at 0x41123b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [esi + 0x14], 1
jne 0x41125d
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.0044f370
add esp, 0xc
jmp 0x411270
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.0045019d
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.0044d5b0
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
leave
ret 4

Function at 0x411344
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi + 0x25c]
test eax, eax
mov ecx, 0x10000
je 0x411357
cmp eax, ecx
jne 0x411372
push dword [esi + 0x1c]
push ecx
push 1
push dword [esi + 0x254]
call fcn.0045019d
add esp, 0x10
and dword [esi + 0x25c], 0
mov ecx, dword [esi + 0x25c]
mov eax, dword [esi + 0x254]
mov al, byte [ecx + eax]
inc ecx
mov dword [esi + 0x25c], ecx
ret
Function at 0x411389
Capabilities:
Write file on windows

Disassembly:
cmp dword [esi + 0x18], 1
mov eax, dword [esi + 0x23c]
push edi
je 0x411440
cmp eax, dword [esi + 0x234]
jae 0x41140c
mov edi, 0x10000
push ebx
mov eax, dword [esi + 0x23c]
mov ecx, dword [esi + 0x230]
mov ebx, dword [esi + 0x258]
mov edx, dword [esi + 0x250]
and eax, 0x1ffff
mov al, byte [eax + ecx]
mov byte [edx + ebx], al
inc dword [esi + 0x258]
cmp dword [esi + 0x258], edi
jne 0x4113f4
push dword [esi + 0x20]
push edi
push 1
push dword [esi + 0x250]
call fcn.00450b32
add esp, 0x10
and dword [esi + 0x258], 0
inc dword [esi + 0x23c]
inc dword [esi + 8]
mov eax, dword [esi + 0x23c]
cmp eax, dword [esi + 0x234]
jb 0x4113a8
pop ebx
and dword [esi + 0x238], 0
pop edi
ret
mov eax, dword [esi + 0x23c]
mov ecx, dword [esi + 0x230]
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 + 0x23c]
mov eax, dword [esi + 0x23c]
cmp eax, dword [esi + 0x234]
jb 0x411415
jmp 0x41140c

Function at 0x41144a
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 + 0x234], eax
push edi
mov dword [esp + 0x10], eax
jae 0x4115aa
mov ebp, 0xff
push 1
mov eax, esi
call fcn.004115da
cmp eax, 1
mov eax, esi
jne 0x4114a6
push 8
call fcn.004115da
mov ecx, dword [esi + 0x234]
mov edx, dword [esi + 0x230]
and ecx, 0x1ffff
mov byte [ecx + edx], al
inc dword [esi + 0x234]
inc dword [esi + 0x238]
jmp 0x411545
push 0xf
call fcn.004115da
mov ebx, eax
push 2
mov eax, esi
xor edi, edi
call fcn.004115da
cmp eax, 3
jne 0x411505
push eax
pop edi
push eax
mov eax, esi
call fcn.004115da
cmp eax, 7
jne 0x411505
push 0xa
pop edi
push 5
mov eax, esi
call fcn.004115da
cmp eax, 0x1f
jne 0x411505
push 0x29
pop edi
push 8
mov eax, esi
call fcn.004115da
cmp eax, ebp
jne 0x411505
mov edi, 0x128
jmp 0x4114f8
add edi, ebp
push 8
mov eax, esi
call fcn.004115da
cmp eax, ebp
je 0x4114f6
lea edi, [eax + edi + 3]
mov eax, dword [esi + 0x234]
sub eax, ebx
jmp 0x411541
mov ebx, dword [esi + 0x234]
mov ecx, dword [esi + 0x230]
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 + 0x234]
inc dword [esi + 0x238]
test edi, edi
jne 0x411513
call fcn.00411389
cmp dword [0x47f2d8], 0x1000
jbe 0x41158b
mov edi, dword [esi + 0x24c]
and dword [0x47f2d8], 0
test edi, edi
je 0x411591
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 0x411591
mov byte [esi + 0x240], 1
jmp 0x411591
inc dword [0x47f2d8]
cmp byte [esi + 0x240], 0
jne 0x4115d5
mov eax, dword [esp + 0x10]
cmp dword [esi + 0x234], eax
jb 0x411469
lea edi, [esi + 0x258]
mov eax, dword [edi]
test eax, eax
je 0x4115cd
push dword [esi + 0x20]
push eax
push 1
push dword [esi + 0x250]
call fcn.00450b32
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 0x4115cf
Function at 0x41166a
Capabilities:
Hash data with md5

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
push ebx
push esi
lea eax, [esp + 0xa8]
push 0x468eee
push eax
call fcn.0044cf30
pop ecx
pop ecx
lea esi, [esp + 0x18]
call fcn.0041166a
lea eax, [esp + 0xa8]
push eax
call fcn.0044d720
pop ecx
mov ebx, eax
call fcn.0041166a
lea eax, [esp + 0xa8]
push eax
mov eax, ebx
call fcn.00411697
mov eax, esi
call fcn.0041172e
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 0x4120b0
push 0x4699e4
push dword [ebp + 8]
mov dword [edi + 8], eax
call fcn.00450849
test eax, eax
pop ecx
pop ecx
mov dword [edi], eax
jne 0x4120d7
inc eax
jmp 0x412133
mov esi, edi
call fcn.0041213b
push dword [edi]
mov esi, eax
test esi, esi
je 0x4120ef
call fcn.00450c26
mov eax, esi
jmp 0x412132
push ebx
lea eax, [esp + 0x10]
push 1
push eax
call fcn.0045019d
add esp, 0x10
push 0x99f2
push ebx
lea eax, [esp + 0x10]
push eax
call fcn.00412236
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 0x412116
push dword [edi]
mov dword [edi + 8], ecx
call fcn.00451939
mov dword [edi + 4], eax
xor eax, eax
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41213b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.00452790
xor eax, eax
mov cl, byte [eax + 0x472148]
mov byte [ebp + eax - 0x20], cl
mov cl, byte [eax + 0x472140]
mov byte [ebp + eax - 0x18], cl
inc eax
cmp eax, 8
jl 0x41214a
push ebx
push edi
lea eax, [ebp - 8]
push str.AU3_
push eax
call fcn.0044cf30
push 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0044f370
add esp, 0x14
xor edi, edi
push dword [esi]
lea eax, [ebp - 0x10020]
push 0x10000
push 1
push eax
call fcn.0045019d
add esp, 0x10
cmp eax, 0x18
mov dword [ebp - 0xc], eax
jl 0x412231
lea edx, [eax - 0x14]
xor ecx, ecx
test edx, edx
jle 0x4121dd
xor edx, edx
lea eax, [ebp + ecx - 0x10020]
mov bl, byte [ebp + edx - 0x20]
cmp bl, byte [eax + edx]
jne 0x4121cd
inc edx
cmp edx, 0x14
jl 0x4121be
cmp edx, 0x14
je 0x4121f1
mov eax, dword [ebp - 0xc]
inc ecx
lea edx, [eax - 0x14]
cmp ecx, edx
jl 0x4121b5
push 1
push 0xffffffffffffffec
push dword [esi]
lea edi, [edi + eax - 0x14]
call fcn.004508e3
add esp, 0xc
jmp 0x412188
push 0
lea eax, [edi + ecx + 0x14]
push eax
push dword [esi]
call fcn.004508e3
add esp, 0xc
push dword [esi]
lea eax, [ebp - 8]
push 4
push 1
push eax
call fcn.0045019d
lea eax, [ebp - 8]
push str.EA06
push eax
mov byte [ebp - 4], 0
call fcn.0044d5b0
add esp, 0x18
neg eax
sbb eax, eax
and eax, 4
pop edi
pop ebx
leave
ret
push 3
pop eax
jmp 0x41222d
Function at 0x412236
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push esi
push edi
lea eax, [ebp - 0xdc]
call fcn.00411eb0
push dword [ebp + 0x10]
lea esi, [ebp - 0xdc]
call fcn.00411ff0
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x41227b
mov eax, dword [ebp + 8]
lea esi, [edi + eax]
lea eax, [ebp - 0xdc]
push eax
call fcn.00411fc2
xor byte [esi], al
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x412261
pop edi
pop esi
leave
ret 0xc