joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48a7c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48a949
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4c64f8], 0
jne 0x48a926
push 0x4c7c5c
call sub.kernel32.dll_EnterCriticalSection_1
xor eax, eax
push ebp
push 0x48a91f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4c64f8], 0
jne 0x48a907
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004048c4
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.00404738
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00408584
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea edx, [ebp - 0x14]
xor ecx, ecx
mov eax, 0x48a960
call fcn.004099fc
mov eax, dword [ebp - 0xc]
call fcn.00404738
push eax
push 0x80000000
call sub.advapi32.dll_RegQueryValueA
test eax, eax
jne 0x48a888
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004048c4
jmp 0x48a8bf
lea eax, [ebp - 8]
mov edx, 0x48a980
call fcn.00404310
xor eax, eax
push ebp
push 0x48a8b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0046eeb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48a8bf
mov eax, dword [ebp - 8]
call fcn.00404738
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4c64f8], eax
cmp dword [0x4c64f8], 0
jne 0x48a8f2
mov ecx, dword [0x4c6ba0]
mov dl, 1
mov eax, dword [0x407908]
call fcn.0040ca0c
call fcn.00403cb4
push 0x48a98c
mov eax, dword [0x4c64f8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c7c74], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a926
push 0x4c7c5c
call sub.kernel32.dll_LeaveCriticalSection_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a950
lea eax, [ebp - 0x18]
call fcn.00404278
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0040429c
ret
Function at 0x4a0ea8
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
cmp byte [ebx + 0x87], 0
je 0x4a0ee3
cmp dword [ebx + 0x5c], 0
je 0x4a0ee3
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb8]
mov edx, eax
mov eax, esi
call fcn.004993cc
xor eax, eax
mov dword [ebx + 0x5c], eax
mov byte [ebx + 0x87], 0
cmp dword [ebx + 0x5c], 0
jne 0x4a102e
cmp dword [ebx + 0x7c], 0
jne 0x4a0f09
mov dl, 1
mov eax, dword [0x41af68]
call fcn.004033f4
mov dword [ebx + 0x7c], eax
cmp dword [ebx + 0xc], 0
je 0x4a1007
mov eax, dword [ebx + 0xc]
push eax
mov al, byte [0x4a1034]
push eax
mov al, byte [0x4a1038]
push eax
push 0
mov eax, dword [ebx + 0x7c]
push eax
mov eax, dword [0x4c6bcc]
push eax
mov ecx, dword [ebx + 0x68]
mov dl, 1
mov eax, dword [0x485ec4]
call fcn.00488640
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x4a1000
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebx + 0x5c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.004993cc
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xc0]
mov edx, eax
mov eax, esi
call fcn.004993cc
mov eax, dword [ebx + 0x40]
push eax
lea eax, [ebx + 0x70]
mov ecx, 1
mov edx, dword [0x496c88]
call fcn.00405750
add esp, 4
mov eax, dword [ebx + 0x30]
cmp eax, 0x1a
jge 0x4a0fd3
mov edx, dword [0x4c6e1c]
mov al, byte [edx + eax]
mov byte [ebx + 0x74], al
jmp 0x4a0fe4
cmp eax, 0x1007
jne 0x4a0fe0
mov byte [ebx + 0x74], 0x18
jmp 0x4a0fe4
mov byte [ebx + 0x74], 0
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x78], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a102e
mov eax, dword [ebp - 4]
call fcn.00403424
ret
lea eax, [ebx + 0x5c]
push eax
push 0
push 0
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.004993cc
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4a30f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404728
xor eax, eax
push ebp
push 0x4a31c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 0x4a31d4
lea edi, [ebp - 0x2c]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.00404738
mov esi, eax
inc esi
mov dword [ebp - 0xc], 1
xor edi, edi
jmp 0x4a31a3
mov dl, byte [esi]
cmp dl, 0x27
je 0x4a3148
cmp dl, byte [ebp - 5]
jne 0x4a314d
xor bl, 1
jmp 0x4a319f
test bl, bl
jne 0x4a319f
mov al, byte [esi]
and eax, 0xff
bt dword [ebp - 0x2c], eax
jae 0x4a319f
cmp byte [ebp + 8], 0
je 0x4a3176
mov al, byte [esi]
sub al, 0x3a
je 0x4a319f
add al, 0xfe
sub al, 3
jb 0x4a319f
mov edi, dword [ebp - 0xc]
inc edi
jmp 0x4a319f
cmp byte [esi], 0x3a
jne 0x4a3195
mov al, byte [esi - 1]
sub al, 0x20
je 0x4a3190
add al, 0xf8
sub al, 2
jb 0x4a3190
sub al, 2
je 0x4a3190
sub al, 0x11
jne 0x4a319f
mov edi, dword [ebp - 0xc]
jmp 0x4a319f
cmp byte [esi + 1], 0x3a
jne 0x4a319f
mov edi, dword [ebp - 0xc]
inc edi
inc esi
inc dword [ebp - 0xc]
test edi, edi
jne 0x4a31ac
cmp byte [esi], 0
jne 0x4a313c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a31c9
lea eax, [ebp - 4]
call fcn.00404278
ret
Function at 0x4ad9d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4adc30
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4ada33
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004ad498
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d354
cmp al, 1
jne 0x4ada33
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004ad7b0
test al, al
je 0x4adbbf
cmp dword [ebp - 8], 0
jge 0x4ada51
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004ad498
mov eax, dword [ebp - 0x210]
call fcn.00404538
cmp ebx, eax
jge 0x4ada9b
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004ad498
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4c6f24]
and eax, 0xff
bt dword [edx], eax
jae 0x4ada9b
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4adaaf
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004ad9ac
cmp ebx, dword [ebp - 8]
je 0x4adbb1
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4adadb
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403620
and eax, 0x7f
movzx eax, word [eax*2 + 0x4c6768]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4adb9e
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403620
and eax, 0x7f
movzx eax, word [eax*2 + 0x4c6768]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0044d7bc
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403620
and eax, 0x7f
movzx eax, word [eax*2 + 0x4c6768]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0044d7bc
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4adba5
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4adc12
cmp dword [ebp - 8], 0
jge 0x4adbca
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004ad498
mov eax, dword [ebp - 0x218]
call fcn.00404538
cmp eax, dword [ebp - 8]
jg 0x4adc04
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004ad498
mov eax, dword [ebp - 0x21c]
call fcn.00404538
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004ad9ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4adc37
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.0040429c
ret
Function at 0x4012f8
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
push esi
push edi
push 0x40fad0
push eax
push dword [0x412c48]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 8], eax
cmp edi, esi
jne 0x401331
xor al, al
jmp 0x401382
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x40132d
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0x80
push 2
push esi
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
mov edi, eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
cmp edi, esi
je 0x401380
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebp
ret

Function at 0x401386
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x40d8ee
call fcn.00409683
mov eax, dword [0x41204c]
mov ecx, 0x41204c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push 0x40fae0
lea ecx, [ebp - 0x14]
call fcn.004010f5
pop ecx
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00401792
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401f7c
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
push eax
push 0x82
call fcn.004012f8
pop ecx
mov bl, al
pop ecx
lea eax, [esi - 0x10]
call fcn.00401f7c
mov al, bl
call fcn.00409722
ret

Function at 0x4013f9
Capabilities:
Delete file

Disassembly:
push 0xc
mov eax, 0x40d8c3
call fcn.00409683
mov eax, dword [0x41204c]
mov ecx, 0x41204c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push str.RootGenius.zip
lea ecx, [ebp - 0x14]
call fcn.004010f5
pop ecx
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00401792
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401f7c
mov edi, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call esi
lea eax, [ebp - 0x10]
push eax
push 0x84
call fcn.004012f8
mov bl, al
pop ecx
pop ecx
test bl, bl
je 0x4014a0
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x40fc84
call fcn.004010f5
lea eax, [edi - 0x10]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], esp
mov ebx, esp
call fcn.00401b0b
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 0
call fcn.00401fac
add esp, 0xc
push edi
mov bl, al
call esi
lea eax, [edi - 0x10]
call fcn.00401f7c
mov al, bl
call fcn.00409722
ret
Function at 0x4014b0
Capabilities:
Delete file

Disassembly:
push 0x14
mov eax, 0x40d890
call fcn.00409683
mov eax, dword [0x41204c]
mov ecx, 0x41204c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
push str.RootGeniusEx.zip
lea ecx, [ebp - 0x18]
call fcn.004010f5
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00401792
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00401f7c
mov edi, dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call esi
lea eax, [ebp - 0x14]
push eax
push 0x85
call fcn.004012f8
pop ecx
pop ecx
mov byte [ebp - 0xd], al
test al, al
je 0x40155c
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x40fc84
call fcn.004010f5
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], esp
lea eax, [edi - 0x10]
mov dword [ebp - 0x18], esp
call fcn.00401b0b
add eax, 0x10
mov ecx, esp
mov dword [ecx], eax
mov byte [ebp - 4], 0
call fcn.00401fac
add esp, 0xc
push edi
mov byte [ebp - 0xd], al
call esi
lea eax, [edi - 0x10]
call fcn.00401f7c
mov al, byte [ebp - 0xd]
call fcn.00409722
ret

Function at 0x40156d
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx edi, ax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x40fb38
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
and dword [ebp - 0x10], 0x80000000
and eax, 0x7fffffff
mov ebx, dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 0x20], eax
xor esi, esi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], esi
fild qword [ebp - 0x24]
fild qword [ebp - 0x14]
fchs
faddp st(1)
fld qword [0x40fcc0]
fmul st(1), st(0)
fmulp st(1)
fcomp qword [0x40fcb8]
fnstsw ax
test ah, 5
jp 0x401607
push 4
mov eax, edi
pop ecx
and eax, 0x3ff
push 0x30
cmp cx, ax
jne 0x4015fa
push 0x40fb40
push 0x40fb48
jmp 0x401604
push str.Warning
push str.C_disk_space_will_cause_the_software_can_not_be_used_
push esi
call ebx
mov byte [ebp - 5], 1
call fcn.00401386
test al, al
jne 0x401619
mov byte [ebp - 5], al
jmp 0x401687
push 0x40fae0
lea ecx, [ebp - 0x10]
call fcn.004010f5
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop ecx
push dword [eax]
call esi
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401f7c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004013f9
test al, al
jne 0x401657
mov byte [ebp - 5], al
jmp 0x40167a
push 0x40fbec
lea ecx, [ebp - 0x10]
call fcn.004010f5
pop ecx
push dword [eax]
call esi
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401f7c
call fcn.004014b0
cmp byte [ebp - 5], 0
jne 0x4016b0
xor esi, esi
push 4
pop eax
and edi, 0x3ff
push 0x30
cmp ax, di
jne 0x4016a3
push 0x40fc0c
push str.Root
jmp 0x4016ad
push str.Error
push str.Root_Genius_failed_to_initialize_
push esi
call ebx
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4029ef
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411020]
jne 0x4029f9
repz ret
jmp fcn.004033dc

Function at 0x4078dc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00403554
and dword [ebp - 4], 0
cmp dword [0x412b60], 0
mov ebx, eax
jne 0x40798d
push 0x40f104
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407a3e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40f0f8
push edi
call esi
test eax, eax
je 0x407a3e
push eax
call fcn.004034e2
mov dword [esp], 0x40f0e8
push edi
mov dword [0x412b60], eax
call esi
push eax
call fcn.004034e2
mov dword [esp], 0x40f0d4
push edi
mov dword [0x412b64], eax
call esi
push eax
call fcn.004034e2
mov dword [esp], 0x40f0b8
push edi
mov dword [0x412b68], eax
call esi
push eax
call fcn.004034e2
pop ecx
mov dword [0x412b70], eax
test eax, eax
je 0x40798d
push 0x40f0a0
push edi
call esi
push eax
call fcn.004034e2
pop ecx
mov dword [0x412b6c], eax
mov eax, dword [0x412b6c]
cmp eax, ebx
je 0x4079e5
cmp dword [0x412b70], ebx
je 0x4079e5
push eax
call fcn.0040355d
push dword [0x412b70]
mov esi, eax
call fcn.0040355d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4079e5
test edi, edi
je 0x4079e5
call esi
test eax, eax
je 0x4079dc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4079dc
test byte [ebp - 0xc], 1
jne 0x4079e5
or dword [ebp + 0x10], 0x200000
jmp 0x407a1e
mov eax, dword [0x412b64]
cmp eax, ebx
je 0x407a1e
push eax
call fcn.0040355d
pop ecx
test eax, eax
je 0x407a1e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407a1e
mov eax, dword [0x412b68]
cmp eax, ebx
je 0x407a1e
push eax
call fcn.0040355d
pop ecx
test eax, eax
je 0x407a1e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x412b60]
call fcn.0040355d
pop ecx
test eax, eax
je 0x407a3e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407a40
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fc40
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48db4b
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.0048240a
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40fcc2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00480180
mov eax, dword [eax]
push 0x4d81f0
push eax
call fcn.00472164
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00482695
test bl, bl
je 0x40fcc2
push 0x4d81f0
lea ecx, [esp + 0xc]
call fcn.00482a25
push 0x4dbd94
lea ecx, [esp + 0xc]
call fcn.00482a25
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 0x40fcfe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00482695
jmp 0x40fdc9
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 0x40fd82
lea edx, [esp + 0x7c]
push 0x4dbd90
push edx
call fcn.00472164
add esp, 8
test eax, eax
je 0x40fd82
lea eax, [esp + 0x7c]
push 0x4dbd8c
push eax
call fcn.00472164
add esp, 8
test eax, eax
je 0x40fd82
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 0x40fd12
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.00482695
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 0x411040
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 0x4110a2
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 0x4110b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48dcab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4e81d0]
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 0x4111e8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x411116
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00482695
xor eax, eax
jmp 0x41125f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004827d2
push esi
lea ecx, [esp + 0xc]
call fcn.00482a61
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4dbdcc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x41123d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00411040
test eax, eax
jne 0x41123d
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 closesocket
mov ecx, edi
call fcn.00411040
test eax, eax
jne 0x41123d
lea eax, [esp + 0x14]
push 0x4dbda8
push eax
call fcn.004731a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41121c
lea ecx, [esp + 0x14]
push 0x4dbda4
push ecx
call fcn.00473120
mov esi, eax
add esp, 8
test esi, esi
jne 0x41121c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41121f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00482782
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41112e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00482695
xor eax, eax
jmp 0x41125f
mov byte [esi], 0
push 0x4dbda0
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.00482695
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