joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cb45
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.0040c261
push dword [ebp + 0xc]
lea eax, [ebp - 0x230]
call fcn.0040c261
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
pop ecx
pop ecx
lea eax, [ebp - 0x128]
push eax
call esi
cmp eax, 0xffffffff
je 0x40cb85
test al, 0x10
jne 0x40cb8c
xor al, al
jmp 0x40cca3
push ebx
lea eax, [ebp - 0x230]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40cbef
test al, 0x10
je 0x40cbef
cmp byte [ebp + 0x10], bl
je 0x40cc24
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
jne 0x40cbef
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0044dfd0
test eax, eax
pop ecx
pop ecx
je 0x40cbef
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
test eax, eax
jmp 0x40cc3a
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0040c35c
test al, al
pop ecx
pop ecx
je 0x40cc3f
push 1
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0040c9f2
add esp, 0xc
test al, al
jne 0x40cc28
xor al, al
jmp 0x40cca2
lea eax, [ebp - 0x128]
push 1
push eax
call fcn.0040cca6
pop ecx
pop ecx
test al, al
setne al
jmp 0x40cca2
lea eax, [ebp - 0x128]
push eax
call fcn.0044e140
mov byte [ebp + eax - 0x127], bl
lea eax, [ebp - 0x230]
push eax
call fcn.0044e140
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 0x40cca6
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.0040c261
pop ecx
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40ccd4
test al, 0x10
jne 0x40ccd8
xor al, al
leave
ret
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
lea eax, [ebp - 0x128]
push eax
jne 0x40ccf4
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
test eax, eax
setne al
jmp 0x40cd36
call fcn.0044e140
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 0x40cdea
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 0x40ce74
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 0x40ce74
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x40ce3d
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x40ce34
cmp esi, edx
jle 0x40ce48
push str.0.0.0.0
jmp 0x40ce63
push 4
push dword [eax + esi*4 - 4]
lea eax, [ebp - 8]
push eax
call fcn.0044fd80
add esp, 0xc
push dword [ebp - 8]
call sub.WSOCK32.dll_inet_ntoa
push eax
push dword [ebp + 8]
call fcn.0044d950
pop ecx
pop ecx
call sub.WSOCK32.dll_WSACleanup
leave
ret
push 0x469ede
push dword [ebp + 8]
call fcn.0044d950
pop ecx
pop ecx
leave
ret

Function at 0x40cf8e
Capabilities:
Enumerate gui resources
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x47e69c], 0
push ebx
push esi
mov ebx, eax
je 0x40cff9
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 0x40cfbc
xor eax, eax
jmp 0x40d03b
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 0x40cffb
jmp 0x40cfb8
xor esi, esi
cmp byte [0x47e69d], 0
je 0x40d018
test bl, 4
je 0x40d018
push esi
push 0x40d03f
xor ebx, 4
call dword [sym.imp.USER32.dll_EnumWindows]
cmp ebx, 0x20
je 0x40d02c
cmp ebx, 0x40
je 0x40d02c
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40d03b
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 0x40d07b
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
jne 0x40d094
push dword [esp + 4]
call fcn.0040d056
test al, al
pop ecx
jne 0x40d0b0
push 1
jmp 0x40d096
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 0x40d0b1
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.0040d255
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 0x40d10d
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.0x40d112
jmp dword [esi*4 + 0x40d161]
xor eax, eax
jmp 0x40d15b
push 2
pop edi
jmp case.default.0x40d112
push 8
jmp 0x40d11f
push 0x20
jmp 0x40d11f
xor eax, eax
cmp byte [ebp - 4], 0x31
setne al
dec eax
and eax, 6
inc eax
inc eax
jmp 0x40d14b
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 0x40d181
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.0040d255
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 0x40d1dd
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.0x40d1e5
jmp dword [eax*4 + 0x40d235]
xor eax, eax
jmp 0x40d22e
mov edi, esi
jmp case.default.0x40d1e5
push 0x10
pop edi
jmp case.default.0x40d1e5
push 0x40
jmp 0x40d1f6
xor eax, eax
cmp byte [ebp - 4], 0x31
setne al
dec eax
and eax, 0xc
add eax, esi
jmp 0x40d21e
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 0x40d3a6
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 0x40d432
jne 0x40d3ba
push 0
jmp 0x40d42c
mov al, byte [0x47e69d]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x40d42b
mov esi, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x40d42b
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 [0x46d9d0]
call fcn.00463f06
cmp eax, edi
jb 0x40d3e9
jmp 0x40d432
push edi
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push esi
xor esi, esi
inc esi
mov dword [0x47c610], eax
push edi
mov edx, esi
mov eax, 0x47c610
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, 0x47cfcc
jl 0x411471
pop edi
mov dword [0x472c9c], esi
mov dword [0x47cfe0], esi
pop esi
ret

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

Disassembly:
push ecx
cmp dword [0x47cfe0], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x47c610
jne 0x4114bf
push 0
call fcn.00452177
pop ecx
call fcn.00411460
mov dword [0x472c9c], 0x270
mov dword [0x47c60c], 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 0x4114de
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 0x411514
mov edx, dword [0x47c610]
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 0x41156e
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x472c9c]
jne 0x41157b
call fcn.0041149f
mov eax, dword [0x47c60c]
mov ecx, dword [eax]
add dword [0x47c60c], 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 0x4115b2
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
dec dword [0x472c9c]
jne 0x4115c0
call fcn.0041149f
mov eax, dword [0x47c60c]
mov eax, dword [eax]
add dword [0x47c60c], 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 0x411606
fadd qword [0x46d9b0]
fmul qword [0x46d9a8]
pop ecx
ret

Function at 0x4117af
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [esi + 0x14], 1
jne 0x4117d1
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.0044fd80
add esp, 0xc
jmp 0x4117e4
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.004510ca
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.0044dfd0
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
leave
ret 4

Function at 0x4118b8
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi + 0x25c]
test eax, eax
mov ecx, 0x10000
je 0x4118cb
cmp eax, ecx
jne 0x4118e6
push dword [esi + 0x1c]
push ecx
push 1
push dword [esi + 0x254]
call fcn.004510ca
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 0x4118fd
Capabilities:
Write file on windows

Disassembly:
cmp dword [esi + 0x18], 1
mov eax, dword [esi + 0x23c]
push edi
je 0x4119b4
cmp eax, dword [esi + 0x234]
jae 0x411980
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 0x411968
push dword [esi + 0x20]
push edi
push 1
push dword [esi + 0x250]
call fcn.00450cbe
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 0x41191c
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 0x411989
jmp 0x411980

Function at 0x4119be
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 0x411b1e
mov ebp, 0xff
push 1
mov eax, esi
call fcn.00411b4e
cmp eax, 1
mov eax, esi
jne 0x411a1a
push 8
call fcn.00411b4e
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 0x411ab9
push 0xf
call fcn.00411b4e
mov ebx, eax
push 2
mov eax, esi
xor edi, edi
call fcn.00411b4e
cmp eax, 3
jne 0x411a79
push eax
pop edi
push eax
mov eax, esi
call fcn.00411b4e
cmp eax, 7
jne 0x411a79
push 0xa
pop edi
push 5
mov eax, esi
call fcn.00411b4e
cmp eax, 0x1f
jne 0x411a79
push 0x29
pop edi
push 8
mov eax, esi
call fcn.00411b4e
cmp eax, ebp
jne 0x411a79
mov edi, 0x128
jmp 0x411a6c
add edi, ebp
push 8
mov eax, esi
call fcn.00411b4e
cmp eax, ebp
je 0x411a6a
lea edi, [eax + edi + 3]
mov eax, dword [esi + 0x234]
sub eax, ebx
jmp 0x411ab5
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 0x411a87
call fcn.004118fd
cmp dword [0x480338], 0x1000
jbe 0x411aff
mov edi, dword [esi + 0x24c]
and dword [0x480338], 0
test edi, edi
je 0x411b05
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 0x411b05
mov byte [esi + 0x240], 1
jmp 0x411b05
inc dword [0x480338]
cmp byte [esi + 0x240], 0
jne 0x411b49
mov eax, dword [esp + 0x10]
cmp dword [esi + 0x234], eax
jb 0x4119dd
lea edi, [esi + 0x258]
mov eax, dword [edi]
test eax, eax
je 0x411b41
push dword [esi + 0x20]
push eax
push 1
push dword [esi + 0x250]
call fcn.00450cbe
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 0x411b43
Function at 0x411bde
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.004507e0
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 0x4125c3
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 0x469ede
push eax
call fcn.0044d950
pop ecx
pop ecx
lea esi, [esp + 0x18]
call fcn.00411bde
lea eax, [esp + 0xa8]
push eax
call fcn.0044e140
pop ecx
mov ebx, eax
call fcn.00411bde
lea eax, [esp + 0xa8]
push eax
mov eax, ebx
call fcn.00411c0b
mov eax, esi
call fcn.00411ca2
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 0x412624
push 0x46a9d8
push dword [ebp + 8]
mov dword [edi + 8], eax
call fcn.004509d5
test eax, eax
pop ecx
pop ecx
mov dword [edi], eax
jne 0x41264b
inc eax
jmp 0x4126a7
mov esi, edi
call fcn.004126af
push dword [edi]
mov esi, eax
test esi, esi
je 0x412663
call fcn.00450db2
mov eax, esi
jmp 0x4126a6
push ebx
lea eax, [esp + 0x10]
push 1
push eax
call fcn.004510ca
add esp, 0x10
push 0x99f2
push ebx
lea eax, [esp + 0x10]
push eax
call fcn.004127aa
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 0x41268a
push dword [edi]
mov dword [edi + 8], ecx
call fcn.00452359
mov dword [edi + 4], eax
xor eax, eax
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4126af
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.004531b0
xor eax, eax
mov cl, byte [eax + 0x473148]
mov byte [ebp + eax - 0x20], cl
mov cl, byte [eax + 0x473140]
mov byte [ebp + eax - 0x18], cl
inc eax
cmp eax, 8
jl 0x4126be
push ebx
push edi
lea eax, [ebp - 8]
push str.AU3_
push eax
call fcn.0044d950
push 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0044fd80
add esp, 0x14
xor edi, edi
push dword [esi]
lea eax, [ebp - 0x10020]
push 0x10000
push 1
push eax
call fcn.004510ca
add esp, 0x10
cmp eax, 0x18
mov dword [ebp - 0xc], eax
jl 0x4127a5
lea edx, [eax - 0x14]
xor ecx, ecx
test edx, edx
jle 0x412751
xor edx, edx
lea eax, [ebp + ecx - 0x10020]
mov bl, byte [ebp + edx - 0x20]
cmp bl, byte [eax + edx]
jne 0x412741
inc edx
cmp edx, 0x14
jl 0x412732
cmp edx, 0x14
je 0x412765
mov eax, dword [ebp - 0xc]
inc ecx
lea edx, [eax - 0x14]
cmp ecx, edx
jl 0x412729
push 1
push 0xffffffffffffffec
push dword [esi]
lea edi, [edi + eax - 0x14]
call fcn.00450a6f
add esp, 0xc
jmp 0x4126fc
push 0
lea eax, [edi + ecx + 0x14]
push eax
push dword [esi]
call fcn.00450a6f
add esp, 0xc
push dword [esi]
lea eax, [ebp - 8]
push 4
push 1
push eax
call fcn.004510ca
lea eax, [ebp - 8]
push str.EA06
push eax
mov byte [ebp - 4], 0
call fcn.0044dfd0
add esp, 0x18
neg eax
sbb eax, eax
and eax, 4
pop edi
pop ebx
leave
ret
push 3
pop eax
jmp 0x4127a1
Function at 0x4127aa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push esi
push edi
lea eax, [ebp - 0xdc]
call fcn.00412424
push dword [ebp + 0x10]
lea esi, [ebp - 0xdc]
call fcn.00412564
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x4127ef
mov eax, dword [ebp + 8]
lea esi, [edi + eax]
lea eax, [ebp - 0xdc]
push eax
call fcn.00412536
xor byte [esi], al
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x4127d5
pop edi
pop esi
leave
ret 0xc
Function at 0x412ad9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x37c
push ebx
push esi
mov esi, eax
push edi
lea eax, [ebp - 0x270]
call fcn.00411662
push 0
push dword [esi + 4]
xor edi, edi
push dword [esi]
inc edi
mov dword [ebp - 0xc], edi
call fcn.00450a6f
add esp, 0xc
lea eax, [ebp - 0x378]
push eax
push str.___AUTOIT_SCRIPT___
call fcn.00412c49
test eax, eax
je 0x412b24
push 6
pop eax
jmp 0x412c42
push dword [esi]
lea eax, [ebp - 1]
push edi
push edi
push eax
call fcn.004510ca
push dword [esi]
lea eax, [ebp - 8]
push edi
push 4
push eax
call fcn.004510ca
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.004510ca
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.004510ca
mov ebx, dword [ebp - 8]
add esp, 0x40
push 1
push 0x10
push dword [esi]
xor ebx, 0xa685
call fcn.00450a6f
mov eax, dword [ebp + 0xc]
add esp, 0xc
push dword [eax]
call fcn.0044fcb9
pop ecx
push edi
mov dword [ebp + 0xc], eax
call fcn.0044fcb9
pop ecx
push dword [esi]
mov dword [ebp - 0x10], eax
push 1
push edi
push eax
call fcn.004510ca
mov eax, dword [esi + 8]
mov esi, dword [ebp - 0x10]
add esp, 0x10
add eax, 0x2477
push eax
push edi
push esi
call fcn.004127aa
push edi
push esi
lea edi, [ebp - 0xc]
call fcn.0041160e
cmp ebx, dword [ebp - 0xc]
je 0x412bea
push dword [ebp + 0xc]
call fcn.0044fbdc
pop ecx
push esi
call fcn.0044fbdc
pop ecx
push 0xa
jmp 0x412b1e
cmp byte [ebp - 1], 1
jne 0x412c2c
lea eax, [ebp - 0x270]
call fcn.00411662
xor eax, eax
inc eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x270]
mov dword [ebp - 0x26c], esi
call fcn.0041168e
push esi
call fcn.0044fbdc
jmp 0x412c37
push dword [ebp + 0xc]
call fcn.0044fbdc
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 0x412c49
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
push ebx
push edi
mov byte [ebp - 1], 1
push dword [esi]
lea eax, [ebp - 0x14]
push 4
push 1
push eax
call fcn.004510ca
add esp, 0x10
push 0x18ee
push 4
lea eax, [ebp - 0x14]
push eax
call fcn.004127aa
lea eax, [ebp - 0x14]
push str.FILE
push eax
mov byte [ebp - 0x10], 0
call fcn.0044dfd0
test eax, eax
pop ecx
pop ecx
jne 0x412dc7
push dword [esi]
lea eax, [ebp - 0xc]
push 1
push 4
push eax
call fcn.004510ca
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.004510ca
add esp, 0x20
add edi, 0xb33f
push edi
push ebx
lea eax, [ebp - 0x228]
push eax
call fcn.004127aa
and word [ebp + ebx - 0x228], 0
lea eax, [ebp - 0x228]
push eax
or eax, 0xffffffff
call fcn.0040dc42
pop ecx
mov edi, eax
lea eax, [ebp - 0x330]
push edi
push eax
call fcn.0044d950
push edi
call fcn.0044db10
add esp, 0xc
push dword [esi]
lea eax, [ebp - 0xc]
push 1
push 4
push eax
call fcn.004510ca
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.004510ca
add esp, 0x20
add edi, 0xf479
push edi
push ebx
lea eax, [ebp - 0x228]
push eax
call fcn.004127aa
and word [ebp + ebx - 0x228], 0
lea eax, [ebp - 0x228]
push eax
or eax, 0xffffffff
call fcn.0040dc42
pop ecx
mov edi, eax
push edi
push dword [ebp + 0xc]
call fcn.0044d950
push edi
call fcn.0044db10
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x330]
push eax
call fcn.0044dfd0
test eax, eax
pop ecx
pop ecx
je 0x412dde
xor edi, edi
inc edi
push edi
push edi
push dword [esi]
call fcn.00450a6f
add esp, 0xc
push dword [esi]
lea eax, [ebp - 8]
push edi
push 4
push eax
call fcn.004510ca
xor dword [ebp - 8], 0x87bc
mov eax, dword [ebp - 8]
push edi
add eax, 0x18
push eax
push dword [esi]
call fcn.00450a6f
add esp, 0x1c
jmp 0x412dcb
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 1
je 0x412c58
push 6
pop eax
pop edi
pop ebx
leave
ret 8
xor eax, eax
jmp 0x412dd8