joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cb45
Capabilities:
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:
Delete file

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_UVc_ckknAmQWh6Rh_ImRe_kF_Q_3FQ8
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 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 0x40f5a0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4872fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0047bf5c
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40f622
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00479ce7
mov eax, dword [eax]
push 0x4a01d0
push eax
call fcn.0046b934
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047c1e7
test bl, bl
je 0x40f622
push 0x4a01d0
lea ecx, [esp + 0xc]
call fcn.0047c577
push 0x4a3d34
lea ecx, [esp + 0xc]
call fcn.0047c577
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40f65e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047c1e7
jmp 0x40f729
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40f6e2
lea edx, [esp + 0x7c]
push 0x4a3d30
push edx
call fcn.0046b934
add esp, 8
test eax, eax
je 0x40f6e2
lea eax, [esp + 0x7c]
push 0x4a3d2c
push eax
call fcn.0046b934
add esp, 8
test eax, eax
je 0x40f6e2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40f672
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0047c1e7
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x410980
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4109e2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x4109f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48745b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4ac9e4]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x410b28
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x410a56
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047c1e7
xor eax, eax
jmp 0x410b9f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0047c324
push esi
lea ecx, [esp + 0xc]
call fcn.0047c5b3
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x410b7d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push 0x80000000
call fcn.00410980
test eax, eax
jne 0x410b7d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push 0x80000000
mov ecx, edi
call fcn.00410980
test eax, eax
jne 0x410b7d
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.0046cad0
mov esi, eax
add esp, 8
test esi, esi
jne 0x410b5c
lea ecx, [esp + 0x14]
push 0x4a3d44
push ecx
call fcn.0046ca50
mov esi, eax
add esp, 8
test esi, esi
jne 0x410b5c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x410b5f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0047c2d4
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x410a6e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047c1e7
xor eax, eax
jmp 0x410b9f
mov byte [esi], 0
push 0x4a3d40
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0047c1e7
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4