joyce8/EMBER2024-capa huggingface dataset:
Function at 0x688160
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
sub esp, 8
mov ecx, dword [0x6d6f40]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
xor ecx, esp
mov dword [esp + 4], ecx
push eax
call fcn.0068bbf0
add esp, 4
mov dword [esp], 0xffffffff
mov ecx, esp
push 0
push ecx
push edi
push esi
push eax
call sub.KERNEL32.dll_ReadFile
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [esp]
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0068f43b
mov eax, esi
add esp, 8
pop esi
pop edi
ret

Function at 0x688ec0
Capabilities:
Get common file path

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x108
mov eax, dword [0x6d6f40]
mov ebx, dword [esp + 0x11c]
mov ecx, 0x6e3f60
mov edx, str.SetDefaultDllDirectories
xor eax, esp
mov dword [esp + 0x104], eax
call fcn.00688de0
test eax, eax
je 0x688efc
push 0x800
push 0
push ebx
jmp 0x688f3f
mov ebp, esp
push 0x104
push ebp
call sub.KERNEL32.dll_GetSystemDirectoryA
xor esi, esi
test eax, eax
je 0x688f46
mov edi, eax
push ebx
call fcn.006872d0
add esp, 4
lea ecx, [edi + eax + 2]
cmp ecx, 0x104
ja 0x688f46
inc eax
mov byte [esp + edi], 0x5c
lea ecx, [esp + edi + 1]
push eax
push ebx
push ecx
call fcn.00687310
add esp, 0xc
push 8
push 0
push ebp
call sub.KERNEL32.dll_LoadLibraryExA
mov esi, eax
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0068f43b
mov eax, esi
add esp, 0x108
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x68a8c0
Capabilities:
Get hostname

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x210
mov eax, dword [0x6d6f40]
mov esi, ecx
mov ecx, dword [esp + 0x228]
mov edi, edx
xor eax, esp
cmp dword [esp + 0x224], 0
mov dword [esp + 0x20c], eax
mov byte [esi], 0
je 0x68a962
xor eax, eax
test ecx, ecx
setne al
lea eax, [eax + eax + 5]
lea ecx, [esp + 8]
lea ebp, [esp + 0xc]
mov dword [esp + 8], 0x100
push ecx
push ebp
push eax
call sub.KERNEL32.dll_GetComputerNameExW
mov ebx, 0xffff
test eax, eax
je 0x68a970
mov eax, dword [esp + 8]
mov dword [esp + 4], ebp
mov dword [esp], esi
add edi, esi
lea edx, [esp + 4]
lea ecx, [eax + 1]
lea eax, [esp + eax*2 + 0xe]
mov dword [esp + 8], ecx
mov ecx, esp
push 0
push edi
push ecx
push eax
push edx
call fcn.00688940
add esp, 0x14
test eax, eax
jne 0x68a970
mov ecx, esi
call fcn.0068a9b0
xor eax, eax
cmp byte [esi], 0
mov ebx, 0xffff
cmovne ebx, eax
jmp 0x68a970
mov eax, 6
test ecx, ecx
jne 0x68a8fb
mov ebx, 0x16
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0068f43b
mov eax, ebx
add esp, 0x210
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x68d230
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov edi, 0x9e3779b9
cmp ecx, 3
jae 0x68d256
mov ebx, 0x9e3779b9
mov edx, ecx
jmp 0x68d2dc
mov edx, ecx
mov ebx, 0x9e3779b9
movzx ebp, byte [eax]
add edx, 0xfffffffd
add ebp, ebx
movzx ebx, byte [eax + 1]
add ebx, edi
movzx edi, byte [eax + 2]
add eax, 3
sub ebp, ebx
add edi, esi
mov esi, edi
sub ebp, edi
sub ebx, edi
shr esi, 0xd
xor esi, ebp
mov ebp, esi
sub ebx, esi
sub edi, esi
shl ebp, 8
xor ebp, ebx
mov ebx, ebp
sub edi, ebp
sub esi, ebp
shr ebx, 0xd
xor ebx, edi
mov edi, ebx
sub esi, ebx
sub ebp, ebx
shr edi, 0xc
xor edi, esi
mov esi, edi
sub ebp, edi
sub ebx, edi
shl esi, 0x10
xor esi, ebp
mov ebp, esi
sub ebx, esi
sub edi, esi
shr ebp, 5
xor ebp, ebx
mov ebx, ebp
sub edi, ebp
sub esi, ebp
shr ebx, 3
xor ebx, edi
mov edi, ebx
sub esi, ebx
sub ebp, ebx
shl edi, 0xa
xor edi, esi
mov esi, edi
sub ebp, edi
shr esi, 0xf
xor esi, ebp
cmp edx, 2
ja 0x68d25d
add esi, ecx
cmp edx, 1
je 0x68d2ee
cmp edx, 2
jne 0x68d2f3
movzx ecx, byte [eax + 1]
add edi, ecx
movzx eax, byte [eax]
add ebx, eax
sub ebx, esi
mov eax, esi
sub ebx, edi
shr eax, 0xd
sub edi, esi
xor eax, ebx
mov ecx, eax
sub edi, eax
sub esi, eax
shl ecx, 8
xor ecx, edi
mov edx, ecx
sub esi, ecx
sub eax, ecx
shr edx, 0xd
xor edx, esi
mov esi, edx
sub eax, edx
sub ecx, edx
shr esi, 0xc
xor esi, eax
mov edi, esi
sub ecx, esi
sub edx, esi
shl edi, 0x10
xor edi, ecx
mov ecx, edi
sub edx, edi
sub esi, edi
shr ecx, 5
xor ecx, edx
mov eax, ecx
sub esi, ecx
sub edi, ecx
shr eax, 3
xor eax, esi
sub edi, eax
sub ecx, eax
shl eax, 0xa
xor eax, edi
sub ecx, eax
shr eax, 0xf
xor eax, ecx
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x68e120
Capabilities:
Print debug messages
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x6d6f40]
xor eax, esp
mov dword [esp + 8], eax
push dword [esp + 0x20]
call sub.KERNEL32.dll_OutputDebugStringA
push str.ADVAPI32.DLL
call fcn.00688ec0
add esp, 4
test eax, eax
je 0x68e1bf
mov esi, eax
push str.RegisterEventSourceA
push eax
call sub.KERNEL32.dll_GetProcAddress
mov ebp, eax
push str.ReportEventA
push esi
call sub.KERNEL32.dll_GetProcAddress
mov edi, eax
push str.DeregisterEventSource
push esi
call sub.KERNEL32.dll_GetProcAddress
test ebp, ebp
je 0x68e1b9
test edi, edi
je 0x68e1b9
mov ebx, eax
test eax, eax
je 0x68e1b9
mov eax, dword [esp + 0x20]
mov dword [esp], 0x6d6e15
mov dword [esp + 4], eax
push str.hasplms
push 0
call ebp
test eax, eax
je 0x68e1b9
mov ebp, eax
mov eax, esp
push 0
push eax
push 0
push 2
push 0
push 0xc0070003
push 0
push 1
push ebp
call edi
push ebp
call ebx
push esi
call sub.KERNEL32.dll_FreeLibrary
push str.USER32.DLL
call fcn.00688ec0
add esp, 4
test eax, eax
je 0x68e1f6
mov esi, eax
push str.MessageBoxA
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x68e1f0
push 0x10
push str.Sentinel_HASP
push dword [esp + 0x28]
push 0
call eax
push esi
call sub.KERNEL32.dll_FreeLibrary
call sub.KERNEL32.dll_GetCurrentProcess
push 1
push eax
call sub.KERNEL32.dll_TerminateProcess
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0068f43b
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x68fad1
Capabilities:
Terminate process

Disassembly:
push 8
push 0x6b02b0
call fcn.006904bc
push 8
call fcn.00690764
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x6e4050], esi
jne 0x68fb05
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x6e404c], esi
mov al, byte [ebp + 0x10]
mov byte [0x6e4048], al
cmp dword [ebp + 0xc], edi
jne 0x68fb4f
cmp dword [0x6e482c], edi
je 0x68fb3f
mov eax, dword [0x6e4828]
sub eax, 4
mov dword [0x6e4828], eax
cmp eax, dword [0x6e482c]
jb 0x68fb3f
mov eax, dword [eax]
cmp eax, edi
je 0x68fb20
call eax
jmp 0x68fb20
push 0x6b2020
mov eax, 0x6b201c
call fcn.0068fa4f
pop ecx
push 0x6b2028
mov eax, 0x6b2024
call fcn.0068fa4f
pop ecx
or dword [ebp - 4], 0xffffffff
call fcn.0068fb80
cmp dword [ebp + 0x10], edi
jne 0x68fb8e
mov dword [0x6e4050], esi
push dword [ebp + 8]
call fcn.0068fa0d
xor edi, edi
xor esi, esi
inc esi
call fcn.006904f7
ret
Function at 0x68fc1d
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x6b02c0
call fcn.006904bc
mov edi, 0x94
mov eax, edi
call fcn.0068f450
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x6e4010], ecx
mov eax, dword [esi + 4]
mov dword [0x6e401c], eax
mov edx, dword [esi + 8]
mov dword [0x6e4020], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x6e4014], esi
cmp ecx, 2
je 0x68fc7d
or esi, 0x8000
mov dword [0x6e4014], esi
shl eax, 8
add eax, edx
mov dword [0x6e4018], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x68fcb8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x68fcb8
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x68fcd0
cmp eax, 0x20b
je 0x68fcbd
mov dword [ebp - 0x1c], esi
jmp 0x68fce4
cmp dword [ecx + 0x84], 0xe
jbe 0x68fcb8
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x68fcde
cmp dword [ecx + 0x74], 0xe
jbe 0x68fcb8
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0069155c
pop ecx
test eax, eax
jne 0x68fcf8
push 0x1c
call fcn.0068fbf9
pop ecx
call fcn.00691453
test eax, eax
jne 0x68fd09
push 0x10
call fcn.0068fbf9
pop ecx
call fcn.00690887
mov dword [ebp - 4], esi
call fcn.00691077
test eax, eax
jge 0x68fd22
push 0x1b
call fcn.0068fbd4
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x6e4820], eax
call fcn.00690f55
mov dword [0x6e4054], eax
call fcn.00690eb3
test eax, eax
jge 0x68fd48
push 8
call fcn.0068fbd4
pop ecx
call fcn.00690c80
test eax, eax
jge 0x68fd59
push 9
call fcn.0068fbd4
pop ecx
push 1
call fcn.0068fa67
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x68fd6f
push eax
call fcn.0068fbd4
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00690c23
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x68fd90
movzx eax, word [ebp - 0x40]
jmp 0x68fd93
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00545280
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x68fdb1
push edi
call fcn.0068fb94
call fcn.0068fbb6
jmp 0x68fde3
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.006904f7
ret
Function at 0x69090f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x6d6f40]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x6d7080]
je 0x690944
inc eax
cmp eax, 0x13
jb 0x690935
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x6d7080]
jne 0x690a6a
mov eax, dword [0x6e405c]
cmp eax, 1
je 0x690a42
cmp eax, edx
jne 0x690974
cmp dword [0x6d6f54], 1
je 0x690a42
cmp ecx, 0xfc
je 0x690a6a
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x6909aa
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.006916b0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00690280
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x6909de
mov eax, edi
push eax
call fcn.00690280
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x6b0304
push edi
call fcn.006917b0
add esp, 0x10
push edi
call fcn.00690280
push dword [esi + 0x6d7084]
mov ebx, eax
call fcn.00690280
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0068f450
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.006916b0
push edi
push ebx
call fcn.006916c0
push 0x6b0300
push ebx
call fcn.006916c0
push dword [esi + 0x6d7084]
push ebx
call fcn.006916c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.006915ad
add esp, 0x2c
jmp 0x690a6a
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x6d7084]
push dword [esi]
call fcn.00690280
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0068f43b
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x6915ad
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x6e42dc], ebx
push esi
push edi
jne 0x69162d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x691668
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6b0974
push edi
call esi
test eax, eax
mov dword [0x6e42dc], eax
je 0x691668
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x6e42e0], eax
call esi
cmp dword [0x6e4010], 2
mov dword [0x6e42e4], eax
jne 0x69162d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x6e42ec], eax
je 0x69162d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x6e42e8], eax
mov eax, dword [0x6e42e8]
test eax, eax
je 0x691672
call eax
test eax, eax
je 0x691659
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x6e42ec]
test eax, eax
je 0x691659
test byte [ebp - 8], 1
jne 0x691672
cmp dword [0x6e401c], 4
jb 0x69166c
or byte [ebp + 0x12], 0x20
jmp 0x691691
xor eax, eax
jmp 0x6916a1
or byte [ebp + 0x12], 4
jmp 0x691691
mov eax, dword [0x6e42e0]
test eax, eax
je 0x691691
call eax
mov ebx, eax
test ebx, ebx
je 0x691691
mov eax, dword [0x6e42e4]
test eax, eax
je 0x691691
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x6e42dc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6919c2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x6919f0
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x6919f7
cmp ebx, dword [eax + 4]
jae 0x6919f7
xor eax, eax
jmp 0x691be7
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x691a08
xor eax, eax
inc eax
jmp 0x691be6
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x691a1e
cmp ecx, edx
jae 0x691b63
cmp dword [eax + 4], 0
je 0x691a27
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x691a0f
cmp dword [ebp + 8], 0
je 0x691a49
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x691b63
cmp eax, esi
jae 0x691b63
mov eax, dword [0x6e42f0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x691a6e
cmp dword [esi*4 + 0x6e42f8], edi
je 0x691b67
inc esi
cmp esi, eax
jl 0x691a5c
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x691be3
cmp dword [ebp - 8], 0x1000000
jne 0x691be3
test byte [ebp - 0xc], 0xcc
je 0x691aec
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x691be3
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x691be3
cmp word [eax + 0x18], 0x10b
jne 0x691be3
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x691be3
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x691aec
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x691aec
test byte [ecx + 0x27], 0x80
jne 0x691b63
push 1
push 0x6e4338
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x691a00
mov ecx, dword [0x6e42f0]
test ecx, ecx
mov edx, ecx
jle 0x691b20
lea eax, [ecx*4 + 0x6e42f4]
cmp dword [eax], edi
je 0x691b20
dec edx
sub eax, 4
test edx, edx
jg 0x691b14
test edx, edx
jne 0x691b51
push 0xf
pop ebx
cmp ecx, ebx
jg 0x691b2d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x691b45
lea eax, [edx*4 + 0x6e42f8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x691b33
cmp ecx, 0x10
jge 0x691b51
inc ecx
mov dword [0x6e42f0], ecx
push 0
push 0x6e4338
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x691a00
xor eax, eax
jmp 0x691be6
test esi, esi
jle 0x691a00
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x6e4338
call ebx
test eax, eax
jne 0x691a00
cmp dword [esi*4 + 0x6e42f8], edi
je 0x691bbd
mov eax, dword [0x6e42f0]
lea esi, [eax - 1]
test esi, esi
jl 0x691bab
cmp dword [esi*4 + 0x6e42f8], edi
je 0x691ba7
dec esi
jns 0x691b9b
test esi, esi
jge 0x691bbb
cmp eax, 0x10
jge 0x691bb6
inc eax
mov dword [0x6e42f0], eax
lea esi, [eax - 1]
jmp 0x691bbd
je 0x691bd5
xor ecx, ecx
test esi, esi
jl 0x691bd5
lea eax, [ecx*4 + 0x6e42f8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x691bc3
push 0
push 0x6e4338
call ebx
jmp 0x691a00
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x693e7c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0068f450
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x693f17
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x6e4010]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x693f17
cmp eax, 1
je 0x693f38
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x693f17
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x693ee4
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x693f13
xor eax, eax
inc eax
jmp 0x693f57
cmp edi, eax
jae 0x693f1b
xor eax, eax
jmp 0x693f57
cmp eax, esi
jae 0x693f22
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x6e4010]
jmp 0x693f3b
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c010
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4daf5b
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.004cfe3a
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40c092
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004cdd4c
mov eax, dword [eax]
push 0x525c50
push eax
call fcn.004bff84
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004d00c5
test bl, bl
je 0x40c092
push 0x525c50
lea ecx, [esp + 0xc]
call fcn.004d0455
push 0x525c5c
lea ecx, [esp + 0xc]
call fcn.004d0455
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 0x40c0ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004d00c5
jmp 0x40c199
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA_1]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40c152
lea edx, [esp + 0x7c]
push 0x525c58
push edx
call fcn.004bff84
add esp, 8
test eax, eax
je 0x40c152
lea eax, [esp + 0x7c]
push 0x525c54
push eax
call fcn.004bff84
add esp, 8
test eax, eax
je 0x40c152
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 0x40c0e2
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.004d00c5
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 0x40c9a0
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_1]
mov esi, eax
test esi, esi
jne 0x40ca02
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_1]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey_1]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40ca10
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4dafdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x552d58]
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 0x40cb48
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40ca76
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004d00c5
xor eax, eax
jmp 0x40cbbf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004d0202
push esi
lea ecx, [esp + 0xc]
call fcn.004d0491
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 0x40cb9d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040c9a0
test eax, eax
jne 0x40cb9d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA_1]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.0040c9a0
test eax, eax
jne 0x40cb9d
lea eax, [esp + 0x14]
push 0x525c6c
push eax
call fcn.004c1000
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cb7c
lea ecx, [esp + 0x14]
push 0x525c68
push ecx
call fcn.004c0f80
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cb7c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA_1]
lea esi, [esp + eax + 0x13]
jmp 0x40cb7f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004d01b2
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40ca8e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004d00c5
xor eax, eax
jmp 0x40cbbf
mov byte [esi], 0
push 0x525c64
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.004d00c5
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