joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e7e0
Capabilities:
Create process on windows
Persist via run registry key
Terminate process

Disassembly:
mov eax, 0x1458
call fcn.0041a8f0
lea eax, [esp + 0x458]
push 0x1000
push eax
push str.UninstallString
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallTBUPDD
push 0x80000002
call fcn.0040ae30
add esp, 0x14
test al, al
je 0x40e945
lea ecx, [esp + 0x58]
push 0x400
push ecx
push str.Customisation
push 0
call fcn.00410fa4
lea edx, [esp + 0x58]
push str.Egan
push edx
call fcn.0041ac53
add esp, 8
test eax, eax
jne 0x40e871
mov ecx, dword [0x4326b0]
lea eax, [esp + 0x58]
push 0x400
push eax
push 0x13
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
push 4
lea edx, [esp + 0x5c]
push str.Teamboard_Install
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40e87d
push 4
push 6
call fcn.00406fe0
add esp, 8
push esi
cmp eax, 6
push edi
jne 0x40e93c
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push 0
push 0x200
push 0
push 0
lea eax, [esp + 0x47c]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40e93c
call fcn.00415668
test eax, eax
je 0x40e93c
mov ecx, dword [esp + 0x14]
push ecx
push 1
push 0x100400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
push 0x1f4
push edi
call esi
cmp eax, 0x102
jne 0x40e93c
lea edx, [esp + 8]
push edx
push str.IsV2CleanupNeeded
push 0
call fcn.0041103b
mov eax, dword [esp + 8]
test eax, eax
jne 0x40e91e
call fcn.00407c70
push 1
push str.IsV2CleanupNeeded
push 0
call fcn.004110f4
push str.upddtidy
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call fcn.00413a04
add esp, 0xc
call fcn.00410e6e
jmp 0x40e8e3
push 4
call fcn.00419f80
pop edi
pop esi
add esp, 0x1458
ret
Function at 0x410d4e
Capabilities:
Print debug messages

Disassembly:
push edi
call fcn.00413b07
test eax, eax
je 0x410d5f
call fcn.00416f18
pop edi
ret
mov dword [0x42cce0], 1
call fcn.00416ce5
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test eax, eax
je 0x410da5
call fcn.00416d31
cmp dword [0x432c24], 0
je 0x410da0
cmp dword [0x432c28], 1
jl 0x410d96
push str.TBApiTerminate___Waiting_for_FlushPendingRequests_to_complete_n
call edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x410d7d
call fcn.00416cf2
cmp dword [0x432c28], 1
jl 0x410db5
push str.TBApiTerminate___Complete_n
call edi
pop edi
ret

Function at 0x412db6
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
mov eax, 0x424448
call fcn.0041b410
sub esp, 0x46c
push ebx
push esi
push edi
lea eax, [ebp - 0x374]
push dword [ebp + 8]
push eax
call fcn.0041b320
lea eax, [ebp - 0x374]
push 0x42da88
push eax
call fcn.0041b330
push dword [ebp + 8]
lea eax, [ebp - 0x270]
push eax
call fcn.0041b320
lea eax, [ebp - 0x270]
push str.inst16.dun
push eax
call fcn.0041b330
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x20
lea eax, [ebp - 0x270]
push eax
call edi
mov esi, 0x104
lea eax, [ebp - 0x478]
push esi
push eax
lea eax, [ebp - 0x374]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp - 0x16c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x16c]
push str.command.com__c
push eax
call fcn.0041b330
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x16c]
push eax
call fcn.0041b330
mov esi, 0x42c100
lea eax, [ebp - 0x16c]
push esi
push eax
call fcn.0041b330
push dword [ebp + 0xc]
lea eax, [ebp - 0x16c]
push eax
call fcn.0041b330
lea eax, [ebp - 0x16c]
push esi
push eax
call fcn.0041b330
push dword [ebp + 0x10]
lea eax, [ebp - 0x16c]
push eax
call fcn.0041b330
lea eax, [ebp - 0x16c]
push esi
push eax
call fcn.0041b330
push dword [ebp + 0x14]
lea eax, [ebp - 0x16c]
push eax
call fcn.0041b330
add esp, 0x40
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea eax, [ebp - 0x24]
xor esi, esi
push eax
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x3c], 1
push dword [ebp + 8]
mov word [ebp - 0x38], si
push esi
push 0x200
push esi
push esi
lea eax, [ebp - 0x16c]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea eax, [ebp - 0x270]
lea ecx, [ebp - 0x14]
push eax
call fcn.00413e2e
lea eax, [ebp - 0x14]
mov dword [ebp - 4], esi
push eax
call fcn.00412f66
mov bl, al
pop ecx
neg bl
sbb bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
inc bl
call fcn.00413e8c
test bl, bl
je 0x412f4c
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x270]
lea ecx, [ebp - 0x14]
push eax
call fcn.00413e2e
jmp 0x412f0b
lea eax, [ebp - 0x270]
push eax
call edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x412f66
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov ecx, dword [esp + 4]
call fcn.00413ead
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret
Function at 0x41308a
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
call fcn.00415668
test eax, eax
je 0x413104
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 4]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41310e
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x4130cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push 0x10
push eax
push 0
mov dword [ebp - 0x14], 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x41310e
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
leave
ret
Function at 0x413a5a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x42cd10]
test eax, eax
jge 0x413aa8
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
jne 0x413a9f
cmp dword [ebp - 0x90], 5
jne 0x413a9f
push 1
pop eax
mov dword [0x42cd10], eax
leave
ret
and dword [0x42cd10], 0
xor eax, eax
leave
ret

Function at 0x413aaa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0xc]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x413acd
xor al, al
leave
ret
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x14]
mov dword [ebp - 4], 1
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
pop esi
leave
ret
Function at 0x41531a
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4248e8
call fcn.0041b410
sub esp, 0x18
push ebx
lea ecx, [ebp - 0x1c]
push dword [ebp + 0xc]
call fcn.00413e74
xor ebx, ebx
cmp dword [ebp + 0x1c], ebx
mov dword [ebp - 4], ebx
je 0x415350
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00415540
add esp, 0xc
lea eax, [ebp - 0x24]
push 6
push eax
lea ecx, [ebp - 0x1c]
call fcn.004141f7
push str.TBUPDD
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0041419c
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.00413e8c
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
call fcn.00413ead
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x4153cf
push esi
mov ecx, dword [ebp + 0x10]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 3
push ebx
call fcn.00413ead
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
pop esi
jne 0x4153cf
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00413e8c
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4153ea
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4248fc
call fcn.0041b410
sub esp, 0x10
push esi
lea ecx, [ebp - 0x1c]
push dword [ebp + 0xc]
call fcn.00413e74
xor esi, esi
cmp dword [ebp + 0x18], esi
mov dword [ebp - 4], esi
je 0x415420
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00415540
add esp, 0xc
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
call fcn.00413ead
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x415476
mov ecx, dword [ebp + 0x10]
push edi
lea eax, [ebp + 0x14]
push 4
push eax
push 4
push esi
call fcn.00413ead
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x415476
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00413e8c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x415491
Capabilities:
Set registry value

Disassembly:
mov eax, 0x424910
call fcn.0041b410
sub esp, 0x10
push esi
lea ecx, [ebp - 0x1c]
push dword [ebp + 0xc]
call fcn.00413e74
xor esi, esi
cmp dword [ebp + 0x18], esi
mov dword [ebp - 4], esi
je 0x4154c7
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00415540
add esp, 0xc
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
call fcn.00413ead
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x415525
push edi
push dword [ebp + 0x14]
call fcn.0041af60
pop ecx
inc eax
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 0x14]
push 1
push esi
call fcn.00413ead
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x415525
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00413e8c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4155c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x42e608]
test eax, eax
jge 0x41560e
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
jne 0x415605
cmp dword [ebp - 0x90], 5
jne 0x415605
push 1
pop eax
mov dword [0x42e608], eax
leave
ret
and dword [0x42e608], 0
xor eax, eax
leave
ret

Function at 0x415610
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x42e60c]
test eax, eax
jge 0x415666
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
jne 0x41565d
cmp dword [ebp - 0x90], 5
jne 0x41565d
push 1
pop eax
cmp dword [ebp - 0x8c], eax
jne 0x41565d
mov dword [0x42e60c], eax
leave
ret
and dword [0x42e60c], 0
xor eax, eax
leave
ret

Function at 0x415696
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 1
pop eax
cmp dword [ebp - 0x84], eax
jne 0x4156d3
cmp dword [ebp - 0x8c], 0xa
je 0x4156d5
cmp dword [ebp - 0x8c], 0x5a
je 0x4156d5
xor eax, eax
leave
ret
Function at 0x415718
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x424940
call fcn.0041b410
sub esp, 0x238
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push esi
push eax
xor esi, esi
push 0x20019
push esi
call fcn.00413ead
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x415752
xor eax, eax
jmp 0x415809
mov al, byte [0x432408]
push ebx
push edi
push 0x40
mov byte [ebp - 0x140], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x13f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x3c]
mov edi, 0x104
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push esi
push eax
lea eax, [ebp - 0x140]
mov dword [ebp - 0x10], edi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
xor ebx, ebx
push esi
push esi
push esi
lea eax, [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x244]
mov dword [ebp + 8], edi
push eax
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, esi
jne 0x4157fb
lea eax, [ebp - 0x244]
lea ecx, [ebp - 0x18]
push eax
call fcn.00413e2e
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], esi
call fcn.004164b5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00413e8c
inc ebx
jmp 0x4157ae
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x415a5c
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
xor eax, eax
push eax
push 0xf003f
push eax
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x415a87
call fcn.00414d45
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
ret

Function at 0x415b1d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
lea eax, [ebp - 4]
push esi
push eax
xor esi, esi
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x415b8f
push esi
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 8], 0x104
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, esi
jne 0x415b7a
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00415b1d
pop ecx
pop ecx
jmp 0x415b43
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop esi
leave
ret
Function at 0x416f18
Capabilities:
Print debug messages

Disassembly:
push edi
mov dword [0x42f568], 1
call fcn.00418a07
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test eax, eax
je 0x416f5f
call fcn.00418a75
cmp dword [0x43aa10], 0
je 0x416f5a
cmp dword [0x43aa14], 1
jl 0x416f50
push str.V2TBApiTerminate___Waiting_for_FlushPendingRequests_to_complete_n
call edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x416f37
call fcn.00418a14
cmp dword [0x43aa14], 1
jl 0x416f6f
push str.V2TBApiTerminate___Complete_n
call edi
pop edi
ret

Function at 0x417199
Capabilities:
Print debug messages

Disassembly:
push esi
push dword [esp + 8]
call fcn.0041af60
add eax, 0x20
push eax
call fcn.0041ac37
pop ecx
mov esi, eax
pop ecx
push dword [esp + 0xc]
push dword [esp + 0xc]
push esi
call fcn.00419bfc
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call fcn.00419f48
pop ecx
pop esi
ret

Function at 0x42175e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4321e8
cmp edx, dword [eax]
je 0x421780
add eax, 8
inc ecx
cmp eax, 0x432278
jl 0x421771
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4321e8]
jne 0x4218ae
mov eax, dword [0x43aaa8]
cmp eax, 1
je 0x421888
test eax, eax
jne 0x4217b1
cmp dword [0x42f738], 1
je 0x421888
cmp edx, 0xfc
je 0x4218ae
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4217e8
lea eax, [ebp - 0x1a4]
push 0x426100
push eax
call fcn.0041b320
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041af60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x42182b
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041af60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4260fc
push edi
call fcn.0041ae60
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4260e0
push eax
call fcn.0041b320
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041b330
lea eax, [ebp - 0xa0]
push 0x42a1e0
push eax
call fcn.0041b330
push dword [esi + 0x4321ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041b330
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4260b8
push eax
call fcn.00422d6a
add esp, 0x2c
pop edi
jmp 0x4218ae
lea eax, [ebp + 8]
lea esi, [esi + 0x4321ec]
push 0
push eax
push dword [esi]
call fcn.0041af60
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]
pop esi
leave
ret
Function at 0x405410
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47e81b
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.00473744
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x405492
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00471656
mov eax, dword [eax]
push 0x50cc48
push eax
call fcn.00463a04
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004739cf
test bl, bl
je 0x405492
push 0x50cc48
lea ecx, [esp + 0xc]
call fcn.00473d5f
push 0x50cc54
lea ecx, [esp + 0xc]
call fcn.00473d5f
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 0x4054ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004739cf
jmp 0x405599
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 0x405552
lea edx, [esp + 0x7c]
push 0x50cc50
push edx
call fcn.00463a04
add esp, 8
test eax, eax
je 0x405552
lea eax, [esp + 0x7c]
push 0x50cc4c
push eax
call fcn.00463a04
add esp, 8
test eax, eax
je 0x405552
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 0x4054e2
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.004739cf
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 0x405d90
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 0x405df2
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 0x405e00
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47e89b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x516830]
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 0x405f38
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x405e66
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004739cf
xor eax, eax
jmp 0x405faf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00473b0c
push esi
lea ecx, [esp + 0xc]
call fcn.00473d9b
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 0x405f8d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00405d90
test eax, eax
jne 0x405f8d
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.00405d90
test eax, eax
jne 0x405f8d
lea eax, [esp + 0x14]
push 0x50cc64
push eax
call fcn.00464a80
mov esi, eax
add esp, 8
test esi, esi
jne 0x405f6c
lea ecx, [esp + 0x14]
push 0x50cc60
push ecx
call fcn.00464a00
mov esi, eax
add esp, 8
test esi, esi
jne 0x405f6c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x405f6f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00473abc
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x405e7e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004739cf
xor eax, eax
jmp 0x405faf
mov byte [esi], 0
push 0x50cc5c
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.004739cf
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