joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e1eb
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
add ecx, 0xffffffb0
neg esi
sbb esi, esi
push edi
xor edi, edi
and esi, ecx
cmp dword [ebp + 0x14], edi
mov dword [ebp - 4], 1
je 0x40e255
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, dword [ebp + 0xc]
mov edi, eax
lea eax, [edi + 1]
push eax
push edi
mov ecx, ebx
call fcn.0040d9d4
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, edi
jge 0x40e248
and dword [ebp - 4], 0
push 0xffffffffffffffff
mov ecx, ebx
call fcn.0040760e
xor edi, edi
jmp 0x40e268
mov ebx, dword [ebp + 0xc]
push dword [ebx]
lea ecx, [esi + 4]
push dword [ebp + 8]
call fcn.0040d753
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
jne 0x40e27d
push dword [ebp + 0x14]
lea ecx, [esi + 0x50]
push dword [ebp + 8]
call fcn.0040de9c
jmp 0x40e2b4
cmp dword [ebp + 0x14], edi
je 0x40e2b4
cmp dword [ebp + 0x18], edi
je 0x40e2b4
mov eax, dword [ebx]
mov eax, dword [eax - 8]
mov ecx, dword [ebp + 0x1c]
cmp eax, ecx
jle 0x40e2b4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x14]
mov dword [ebp - 0x1c], ecx
push dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x28], 1
call fcn.0040df84
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x40f4cf
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
call fcn.00408603
mov eax, dword [esi + 4]
test eax, eax
je 0x40f509
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 2
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push 5
push 8
push dword [esi + 4]
call edi
push eax
call ebx
pop edi
pop ebx
mov esi, dword [esi + 0x38]
dec dword [esi + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
ret
Function at 0x40f51d
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
add ecx, 0xffffffe0
neg esi
sbb esi, esi
xor ebx, ebx
and esi, ecx
cmp dword [ebp + 0x14], ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 4], 1
je 0x40f587
push dword [ebp + 8]
push dword [esi + 4]
call edi
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ecx, dword [ebp + 0xc]
mov ebx, eax
lea eax, [ebx + 1]
push eax
push ebx
call fcn.0040d9d4
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
jge 0x40f579
and dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
call fcn.0040760e
xor ebx, ebx
jmp 0x40f59a
mov eax, dword [ebp + 0xc]
push dword [eax]
lea ecx, [esi + 4]
push dword [ebp + 8]
call fcn.0040d753
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
jne 0x40f5c6
push 0xffffffffffffffff
add esi, 0x20
call dword [sym.imp.USER32.dll_MessageBeep]
push dword [ebp + 8]
mov eax, esi
add esi, 0xffffffe0
neg eax
sbb eax, eax
and eax, esi
push dword [eax + 4]
call edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x40f605
cmp dword [ebp + 0x14], ebx
je 0x40f605
cmp dword [ebp + 0x18], ebx
je 0x40f605
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax - 8]
cmp eax, dword [ebp + 0x1c]
jle 0x40f605
push 0xffffffffffffffff
add esi, 0x20
call dword [sym.imp.USER32.dll_MessageBeep]
push dword [ebp + 8]
mov eax, esi
add esi, 0xffffffe0
neg eax
sbb eax, eax
and eax, esi
push dword [eax + 4]
call edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x410665
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
push ebx
push esi
push edi
mov edi, ecx
mov ebx, 0x40579d
push ebx
lea ecx, [ebp - 8]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call fcn.0040ded4
push ebx
lea ecx, [ebp - 4]
call fcn.0040ded4
push 0xbd4
lea ecx, [ebp - 0xc]
call fcn.00407936
push dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push 0x28e
push 0xd72
push 0
push 4
push 0
push 4
push 0xbd2
push eax
call fcn.00407de2
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 0x24
push 0x41f
add edi, 4
push dword [edi]
call esi
push dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0
push 0x420
push dword [edi]
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x421
push dword [edi]
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x41073d
push 0x420
push dword [edi]
call esi
push dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 5
push 0x420
push dword [edi]
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x41076d
mov ebx, 0x421
push ebx
push dword [edi]
call esi
push dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 5
push ebx
push dword [edi]
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [ebp - 0x14]
xor ebx, ebx
push ebx
lea eax, [esi + 0x5c]
push eax
push 0x416
lea ecx, [esi + 0x50]
call fcn.0040dd6f
push ebx
mov ecx, edi
mov dword [esi + 0x58], ebx
call fcn.0040d7d6
lea ecx, [ebp - 4]
call fcn.00407505
lea ecx, [ebp - 8]
call fcn.00407505
lea ecx, [ebp - 0xc]
call fcn.00407505
lea ecx, [ebp - 0x10]
call fcn.00407505
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 0x10

Function at 0x410db5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4179f0]
jne 0x410dc6
test ecx, 0xffff0000
jne 0x410dc6
ret
jmp fcn.00410dd0
Function at 0x410eb5
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x405a30
call fcn.004110b4
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x400000], 0x5a4d
jne 0x410f09
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x410f09
movzx ecx, word [eax + 0x400018]
cmp ecx, 0x10b
je 0x410f21
cmp ecx, 0x20b
je 0x410f0e
mov dword [ebp - 0x1c], ebx
jmp 0x410f38
cmp dword [eax + 0x400084], 0xe
jbe 0x410f09
xor ecx, ecx
cmp dword [eax + 0x4000f8], ebx
jmp 0x410f32
cmp dword [eax + 0x400074], 0xe
jbe 0x410f09
xor ecx, ecx
cmp dword [eax + 0x4000e8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x418144], edi
mov dword [0x418148], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x418000]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x417ffc]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41814c], eax
call fcn.0040c23a
cmp dword [0x4179f4], ebx
jne 0x410f95
push fcn.0040c23a
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00411141
push 0x401374
push 0x401370
call sub.msvcrt.dll__initterm
mov eax, dword [0x417ff8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x417ff4]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x40136c
push 0x401354
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x411020
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x411000
cmp cl, 0x22
jne 0x410ff1
cmp byte [eax], 0x22
jne 0x411009
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x411014
cmp cl, 0x20
jbe 0x411005
test byte [ebp - 0x54], 1
je 0x41102b
movzx ecx, word [ebp - 0x50]
jmp 0x41102e
cmp byte [eax], 0x20
jbe 0x411009
inc eax
mov dword [ebp - 0x20], eax
jmp 0x411020
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call fcn.00407f6f
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x41104c
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x411088
mov eax, esi
jmp 0x41109c
call fcn.004110ef
ret

Function at 0x411cb3
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x411cfb
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 3
jne 0x411cdc
pop esi
pop ebp
jmp fcn.00411b33
cmp eax, 0xb7
je 0x411cfb
call esi
test eax, eax
jg 0x411ced
call esi
jmp 0x411cfd
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x411cfd
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x414a21
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4180d4], 0
push esi
jne 0x41498f
call fcn.00414886
test eax, eax
je 0x4149d2
mov eax, dword [0x4180d4]
cmp eax, 1
jne 0x4149b0
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4149d2
pop esi
ret
push eax
call dword [0x4180dc]
test eax, eax
jne 0x414a1a
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4149d6
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4180d4]
call dword [0x4180dc]
mov edi, eax
test edi, edi
je 0x4149fb
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x414a17
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4180d4]
call dword [0x4180d8]
add edi, 0x10
cmp edi, esi
jb 0x414a03
mov eax, edi
pop edi
pop esi
ret
jmp 0x41497c
Function at 0x414b38
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x4179f0]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x64], eax
xor eax, eax
lea edi, [ebp - 0x80]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
xor ebx, ebx
lea eax, [ebp - 0x84]
push eax
push 0x20006
push ebx
push ebx
push ebx
push 0x406dd0
push 0x80000002
mov dword [ebp - 0x78], 2
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x84], 0xc
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x414ce7
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [ebp - 0x64]
push dword [ebp - 0x70]
call edi
mov esi, eax
cmp esi, ebx
jne 0x414ce7
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0xe
push 0x406dc0
push 2
push ebx
push 0x406da0
push dword [ebp - 0x68]
call edi
mov esi, eax
cmp esi, ebx
jne 0x414ce7
push 4
lea eax, [ebp - 0x74]
push eax
push 4
push ebx
push 0x406d90
push dword [ebp - 0x68]
mov dword [ebp - 0x74], 1
call edi
mov esi, eax
cmp esi, ebx
jne 0x414ce7
push 4
lea eax, [ebp - 0x74]
push eax
push 4
push ebx
push 0x406d74
push dword [ebp - 0x68]
mov dword [ebp - 0x74], 1
call edi
mov esi, eax
cmp esi, ebx
jne 0x414ce7
mov edi, dword [ebp - 0x6c]
cmp edi, ebx
je 0x414ce7
jmp 0x414c52
mov edi, dword [ebp - 0x6c]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [edi + 8]
mov dword [ebp - 0x64], ebx
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x414ccc
mov esi, dword [edi + 4]
lea edi, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x50]
push eax
movsd dword es:[edi], dword [esi]
call fcn.00414a5c
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x4a
lea eax, [ebp - 0x50]
push eax
push 1
push ebx
push 0x406d68
push dword [ebp - 0x64]
call esi
mov edi, dword [ebp - 0x6c]
push dword [edi + 0xc]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [edi + 0xc]
push 1
push ebx
push 0x406d54
push dword [ebp - 0x64]
call esi
mov esi, eax
cmp dword [ebp - 0x64], ebx
je 0x414cda
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [edi]
cmp edi, ebx
mov dword [ebp - 0x6c], edi
jne 0x414c4f
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x68], ebx
je 0x414cfc
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x70], ebx
je 0x414d0a
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.00410db5
leave
ret 8
Function at 0x414db8
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4179f0]
push edi
push 0x25
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x98]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
jne 0x414e0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x414e24
and eax, 0xffff
or eax, 0x80070000
jmp 0x414e24
cmp dword [ebp - 0x88], 2
jne 0x414e21
cmp dword [ebp - 0x94], 5
jb 0x414e21
xor eax, eax
jmp 0x414e24
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
call fcn.00410db5
leave
ret
Function at 0x40408a
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x43ac98], 0x400
push edi
jne 0x4040e3
push esi
call fcn.004044a9
pop ecx
push esi
push esi
call fcn.004048a2
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00403ac7
fstp st(0)
push ecx
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00403aa4
fstp st(0)
push esi
call fcn.00404b00
pop ecx
push esi
push esi
call fcn.00404537
pop ecx
pop ecx
mov eax, dword [0x430be4]
mov dword [0x43ac98], eax
mov eax, dword [0x430bbc]
mov dword [0x43ac9c], eax
call fcn.00403dc9
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
cmp dword [esp + 0x10], ebx
jle 0x404152
cmp dword [esp + 0x18], 0x785074d5
jne 0x404160
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x404105
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x403820
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea eax, [esp + 0x14]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadSelectorEntry]
cmp edi, ebx
jle 0x404191
cmp dword [esp + 0x18], 0x785074d5
jne 0x40419a
inc edi
cmp edi, 0x11915
jl 0x404162
mov eax, dword [0x439be8]
mov dword [0x43a22c], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x405470
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a118]
jne 0x40547a
repz ret
jmp fcn.0040a182
Function at 0x409ea5
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.0040821e
and dword [ebp - 4], 0
cmp dword [0x43149c], 0
mov ebx, eax
jne 0x409f56
push 0x4023e8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a007
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4023dc
push edi
call esi
test eax, eax
je 0x40a007
push eax
call fcn.004081ac
mov dword [esp], 0x4023cc
push edi
mov dword [0x43149c], eax
call esi
push eax
call fcn.004081ac
mov dword [esp], 0x4023b8
push edi
mov dword [0x4314a0], eax
call esi
push eax
call fcn.004081ac
mov dword [esp], 0x40239c
push edi
mov dword [0x4314a4], eax
call esi
push eax
call fcn.004081ac
pop ecx
mov dword [0x4314ac], eax
test eax, eax
je 0x409f56
push 0x402384
push edi
call esi
push eax
call fcn.004081ac
pop ecx
mov dword [0x4314a8], eax
mov eax, dword [0x4314a8]
cmp eax, ebx
je 0x409fae
cmp dword [0x4314ac], ebx
je 0x409fae
push eax
call fcn.00408227
push dword [0x4314ac]
mov esi, eax
call fcn.00408227
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409fae
test edi, edi
je 0x409fae
call esi
test eax, eax
je 0x409fa5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409fa5
test byte [ebp - 0xc], 1
jne 0x409fae
or dword [ebp + 0x10], 0x200000
jmp 0x409fe7
mov eax, dword [0x4314a0]
cmp eax, ebx
je 0x409fe7
push eax
call fcn.00408227
pop ecx
test eax, eax
je 0x409fe7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409fe7
mov eax, dword [0x4314a4]
cmp eax, ebx
je 0x409fe7
push eax
call fcn.00408227
pop ecx
test eax, eax
je 0x409fe7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43149c]
call fcn.00408227
pop ecx
test eax, eax
je 0x40a007
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a009
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4094e0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4870fb
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.0047b867
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409562
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00479150
mov eax, dword [eax]
push 0x4a2234
push eax
call fcn.00459204
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047baf2
test bl, bl
je 0x409562
push 0x4a2234
lea ecx, [esp + 0xc]
call fcn.0047be82
push 0x4a5da4
lea ecx, [esp + 0xc]
call fcn.0047be82
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 0x40959e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047baf2
jmp 0x409669
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 0x409622
lea edx, [esp + 0x7c]
push 0x4a5da0
push edx
call fcn.00459204
add esp, 8
test eax, eax
je 0x409622
lea eax, [esp + 0x7c]
push 0x4a5d9c
push eax
call fcn.00459204
add esp, 8
test eax, eax
je 0x409622
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 0x4095b2
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.0047baf2
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 0x409e60
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 0x409ec2
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 0x409ed0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48717b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4ac694]
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 0x40a008
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409f36
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047baf2
xor eax, eax
jmp 0x40a07f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0047bc2f
push esi
lea ecx, [esp + 0xc]
call fcn.0047bebe
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 0x40a05d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00409e60
test eax, eax
jne 0x40a05d
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.00409e60
test eax, eax
jne 0x40a05d
lea eax, [esp + 0x14]
push 0x4a5db8
push eax
call fcn.0045a250
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a03c
lea ecx, [esp + 0x14]
push 0x4a5db4
push ecx
call fcn.0045a1d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a03c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40a03f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0047bbdf
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x409f4e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047baf2
xor eax, eax
jmp 0x40a07f
mov byte [esi], 0
push 0x4a5db0
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.0047baf2
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