joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403665
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov eax, 0x41b4b0
call fcn.004086bc
sub esp, 0x20c
mov eax, dword [0x422a90]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
mov esi, 0x104
push esi
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00408760
add esp, 0xc
lea eax, [ebp - 0x218]
push esi
push eax
call sub.WS2_32.dll_gethostname
test eax, eax
je 0x4036e0
mov eax, dword [0x4260c0]
lea ecx, [ebp - 0x114]
push esi
push ecx
push 0xa
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x114]
lea ecx, [ebp - 0x10]
push eax
call fcn.00413cf0
lea eax, [ebp - 0x10]
push eax
call fcn.00402444
pop ecx
xor esi, esi
jmp 0x403708
lea eax, [ebp - 0x218]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4036ad
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call sub.WS2_32.dll_inet_ntoa
push eax
lea ecx, [edi + 0x54]
call fcn.00413cf0
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00413bf7
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x403d4e
Capabilities:
Hash data with md5

Disassembly:
mov eax, ecx
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x41c518
mov dword [eax + 4], 0x67452301
mov dword [eax + 8], 0xefcdab89
mov dword [eax + 0xc], 0x98badcfe
mov dword [eax + 0x10], 0x10325476
ret

Function at 0x403e43
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
push 8
lea eax, [ebp - 8]
lea edi, [esi + 0x14]
push edi
push eax
call fcn.00404796
mov eax, dword [edi]
push 0x38
shr eax, 3
and eax, 0x3f
pop ecx
cmp eax, ecx
jb 0x403e6e
push 0x78
pop ecx
sub ecx, eax
push ecx
push 0x42276c
mov ecx, esi
call fcn.00403d9e
lea eax, [ebp - 8]
push 8
push eax
mov ecx, esi
call fcn.00403d9e
lea ebx, [esi + 4]
push 0x10
push ebx
mov ecx, esi
push dword [ebp + 8]
call fcn.00404796
push 4
push 0
push ebx
mov ecx, esi
call fcn.00404845
push 4
push 0
push edi
mov ecx, esi
call fcn.00404845
push 1
lea eax, [esi + 0x1c]
push 0
push eax
mov ecx, esi
call fcn.00404845
and dword [esi + 0x18], 0
and dword [edi], 0
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
pop edi
mov dword [ebx], 0x67452301
pop esi
pop ebx
leave
ret 4

Function at 0x4048fa
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
lea eax, [ebp + 0x10]
push edi
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call fcn.00409247
lea eax, [ebp - 0x104]
xor esi, esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax + 0x1ac], esi
je 0x404961
add eax, 0x88
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov edi, eax
cmp edi, esi
je 0x40496e
lea eax, [ebp - 4]
push esi
push eax
push esi
push 1
push esi
push esi
push esi
push 4
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x40496e
lea eax, [ebp - 0x104]
push eax
call fcn.004091cf
pop ecx
pop edi
pop esi
leave
ret
Function at 0x404a6b
Capabilities:
Create thread

Disassembly:
mov eax, 0x41b524
call fcn.004086bc
sub esp, 0x34
push ebx
push esi
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, esi
mov dword [0x426260], eax
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
push 1
push esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], esi
call fcn.00406b17
push esi
push esi
push esi
push 3
push 4
push esi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
push 1
mov ebx, 0x4260b8
push 0x14
push ebx
call fcn.004064d5
push str.Service_started
push edi
call fcn.004048fa
cmp dword [edi + 0x1ac], esi
pop ecx
pop ecx
je 0x404aef
push 4
mov ecx, edi
call fcn.00404a4b
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push 0x4070bd
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
jne 0x404b0d
push 1
call fcn.004049f6
push esi
push esi
lea eax, [ebp - 0x40]
push esi
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x404b28
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
call fcn.0040656a
call dword [sym.imp.ole32.dll_CoUninitialize]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00406acd
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x404ce5
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov eax, 0x41b540
call fcn.004086bc
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x18], ecx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, ebx
jl 0x404e04
mov ecx, dword [ebp - 0x18]
call fcn.00404f9d
push ebx
push 1
push 0x64
push dword [ebp - 0x18]
call fcn.004050e7
mov dword [ebp - 0x14], ebx
mov esi, 0x20006
lea ecx, [ebp - 0x14]
push esi
push str.AppID
push 0x80000000
mov dword [ebp - 4], ebx
call fcn.004050a9
mov edi, eax
cmp edi, ebx
je 0x404d59
cmp dword [ebp - 0x14], ebx
je 0x404e02
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404e02
mov dword [ebp - 0x10], ebx
push esi
push str.C9354317_7F21_43A7_BBDF_013B999B0DCA
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004050a9
mov edi, eax
cmp edi, ebx
jne 0x404de5
push str.LocalService
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp dword [ebp + 0xc], ebx
je 0x404dd1
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, 0x4228d8
push edi
call esi
inc eax
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push ebx
push str.LocalService
push dword [ebp - 0x10]
call edi
mov ebx, str._Service
push ebx
call esi
inc eax
push eax
push ebx
push 1
push 0
push str.ServiceParameters
push dword [ebp - 0x10]
call edi
mov ecx, dword [ebp - 0x18]
call fcn.00404eee
xor ebx, ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 0x18]
call fcn.004065a6
mov edi, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x404df8
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x404e02
push dword [ebp - 0x14]
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x404eee
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov edi, ecx
call fcn.004048b7
test eax, eax
jne 0x404f95
xor esi, esi
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, esi
jne 0x404f2d
add edi, 0x88
push esi
push edi
push str.Couldnt_open_service_manager
jmp 0x404f7e
lea eax, [ebp - 0x104]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push esi
push str.RPCSS
push esi
lea eax, [ebp - 0x104]
push esi
push eax
push esi
push 2
add edi, 0x88
push 0x110
push 0xf01ff
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp eax, esi
jne 0x404f89
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
push edi
push str.Couldnt_create_service
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x404f98
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push ebx
call esi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404f9d
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004048b7
test eax, eax
je 0x405024
xor ebp, ebp
push 0xf003f
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebp
jne 0x404fd3
add esi, 0x88
push ebp
push esi
push str.Couldnt_open_service_manager
jmp 0x404ffa
lea ebx, [esi + 0x88]
push 0x10020
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, ebp
jne 0x404ffd
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
push ebx
push str.Couldnt_open_service
push ebp
jmp 0x405033
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, eax
call esi
push edi
call esi
test ebp, ebp
je 0x405029
push 1
pop eax
jmp 0x40503b
push 0
push ebx
push str.Service_could_not_be_deleted
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x4054aa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
jne 0x4054c4
xor esi, esi
jmp 0x4054f2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.004092a0
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
jne 0x40552f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40551a
call esi
mov esi, eax
jmp 0x4055c4
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x4055c4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x405560
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x405573
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x4055bb
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
jne 0x405577
jmp 0x405542
call esi
jmp 0x4055b9
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov eax, dword [ebp + 8]
cmp byte [esi + eax], bl
je 0x4055ad
lea eax, [esi + 1]
add eax, 3
and al, 0xfc
call fcn.004092a0
lea eax, [esi + 1]
mov edi, esp
push eax
push dword [ebp + 8]
push edi
call fcn.00408e20
add esp, 0xc
mov byte [edi + esi], bl
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push edi
call fcn.0040562b
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esp, [ebp - 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405fe7
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x41b5d0
call fcn.004086bc
sub esp, 0x114
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.004050a9
mov edi, eax
cmp edi, esi
je 0x406031
cmp dword [ebp - 0x10], esi
je 0x40602a
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4060ce
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x4060a2
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x10]
push eax
call fcn.00405fe7
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x40608f
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x406054
cmp dword [ebp - 0x10], esi
je 0x40609d
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x4060ce
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4060b5
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x4060cc
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4060df
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.004092a0
push ebx
push esi
lea eax, [ebp - 0x2014]
push edi
mov esi, ecx
push eax
mov dword [ebp - 0x14], esi
call fcn.00405784
xor edi, edi
cmp eax, edi
jl 0x406297
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.004062a4
pop ecx
test eax, eax
pop ecx
jne 0x40612a
mov eax, 0x80020009
jmp 0x406297
mov ecx, esi
call fcn.0040575c
lea eax, [ebp - 0x1014]
mov ecx, esi
push eax
call fcn.00405784
cmp eax, edi
jl 0x406297
movzx eax, word [ebp - 0xa]
sub eax, 8
je 0x40625f
sub eax, 9
je 0x4061c4
dec eax
dec eax
jne 0x406286
lea eax, [ebp - 0x1014]
test eax, eax
jne 0x40616f
xor ebx, ebx
jmp 0x4061a4
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004092a0
mov ebx, esp
push esi
push ebx
lea eax, [ebp - 0x1014]
push 0xffffffffffffffff
push eax
push edi
push edi
mov word [ebx], di
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x10]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
jmp 0x406277
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 8], eax
jne 0x406200
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.004092a0
mov dword [ebp - 4], esp
push ebx
push edi
push dword [ebp - 4]
call fcn.00408760
add esp, 0xc
cmp dword [ebp - 4], edi
jne 0x40620a
mov eax, 0x80004005
jmp 0x406297
cmp dword [ebp - 8], 0
jle 0x406244
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov al, byte [ebp + edi - 0x1014]
push eax
call fcn.0040632b
pop ecx
mov ecx, edi
push 4
and ecx, 1
shl ecx, 2
mov edx, ecx
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x406210
mov eax, dword [ebp + 8]
push ebx
push dword [ebp - 4]
mov eax, dword [eax]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
jmp 0x406286
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.00405784
cmp eax, edi
jl 0x406297
xor eax, eax
lea esp, [ebp - 0x2020]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x419146
Capabilities:
Create http request

Disassembly:
mov eax, 0x41b858
call fcn.004086bc
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x41917e
call fcn.0041a81e
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x4191a3
push eax
push dword [esi + 4]
call fcn.00419c2d
jmp 0x4191af
push esi
push eax
mov ecx, 0x4264a8
call fcn.004191c0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x41933f
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x41b893
call fcn.004086bc
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004173c7
mov eax, dword [0x422a90]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x4264a8
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.004191c0
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.00413cf0
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.004078d4
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00413ca0
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.00413bf7
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x407420
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46264b
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.00457518
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4074a2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00455467
mov eax, dword [eax]
push 0x4761c0
push eax
call fcn.00448364
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004577a3
test bl, bl
je 0x4074a2
push 0x4761c0
lea ecx, [esp + 0xc]
call fcn.00457b33
push 0x479d10
lea ecx, [esp + 0xc]
call fcn.00457b33
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 0x4074de
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004577a3
jmp 0x4075a9
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 0x407562
lea edx, [esp + 0x7c]
push 0x479d0c
push edx
call fcn.00448364
add esp, 8
test eax, eax
je 0x407562
lea eax, [esp + 0x7c]
push 0x479d08
push eax
call fcn.00448364
add esp, 8
test eax, eax
je 0x407562
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 0x4074f2
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.004577a3
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 0x407da0
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 0x407e02
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 0x407e10
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4626cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4801b0]
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 0x407f48
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x407e76
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004577a3
xor eax, eax
jmp 0x407fbf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004578e0
push esi
lea ecx, [esp + 0xc]
call fcn.00457b6f
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 0x407f9d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push 0x80000000
call fcn.00407da0
test eax, eax
jne 0x407f9d
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.00407da0
test eax, eax
jne 0x407f9d
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.004493a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x407f7c
lea ecx, [esp + 0x14]
push 0x479d20
push ecx
call fcn.00449320
mov esi, eax
add esp, 8
test esi, esi
jne 0x407f7c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x407f7f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00457890
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x407e8e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004577a3
xor eax, eax
jmp 0x407fbf
mov byte [esi], 0
push 0x479d1c
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.004577a3
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