joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ac5
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x423fb0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.vADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402b59
mov esi, dword [sym.imp.vADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402b16
cmp dword [ebp + 0x10], ebx
jne 0x402b4d
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402ac5
test eax, eax
jne 0x402b28
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402afd
push dword [ebp - 4]
call dword [sym.imp.vADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405c20
cmp eax, ebx
je 0x402b60
push ebx
push dword [0x423fb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402b59
push dword [ebp - 4]
call dword [sym.imp.vADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x423fb0], ebx
jne 0x402b56
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.vADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402b56
jmp 0x402b59
Function at 0x402ee7
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402f04
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402f13
mov ebx, 0x40f0c0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402f28
mov ecx, dword [0x423f58]
add ecx, eax
push ecx
call fcn.00403116
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004030e4
test eax, eax
je 0x40308f
test byte [ebp + 0x17], 0x80
je 0x403078
call dword [sym.imp.vKERNEL32.dll_GetTickCount]
mov ecx, 0x40aff0
mov dword [ebp - 0xc], eax
call fcn.00405cfa
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4030da
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402f78
mov esi, dword [ebp + 0x14]
mov edi, 0x40b0c0
push esi
push edi
call fcn.004030e4
test eax, eax
je 0x40308f
sub dword [ebp + 0x14], esi
mov dword [0x40b008], edi
mov dword [0x40b00c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40aff0
mov dword [0x40b010], ebx
mov dword [0x40b014], eax
call fcn.00405d1a
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403070
mov esi, dword [0x40b010]
sub esi, ebx
call dword [sym.imp.vKERNEL32.dll_GetTickCount]
test byte [0x409234], 1
mov edi, eax
je 0x40301a
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402fe7
cmp dword [ebp + 0x14], 0
jne 0x40301a
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.vKERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.vUSER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404cee
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x403065
cmp dword [ebp + 0x10], eax
jne 0x403043
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.vKERNEL32.dll_WriteFile]
test eax, eax
je 0x403074
cmp dword [ebp - 0x10], esi
jne 0x403074
add dword [ebp - 4], esi
jmp 0x403059
sub dword [ebp - 8], esi
add dword [ebp - 4], esi
cmp dword [ebp - 8], 1
mov ebx, dword [0x40b010]
jl 0x4030da
cmp dword [ebp - 0x14], 1
jne 0x402f9b
jmp 0x4030da
cmp dword [ebp + 0x14], eax
jg 0x402f6b
jmp 0x4030da
push 0xfffffffffffffffc
jmp 0x403091
push 0xfffffffffffffffe
jmp 0x403091
test edi, edi
je 0x4030cf
cmp dword [ebp + 0x14], esi
jge 0x403084
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004030e4
test eax, eax
jne 0x4030d7
push 0xfffffffffffffffd
pop eax
jmp 0x4030dd
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40309f
mov esi, dword [ebp + 0x14]
mov edi, 0x40b0c0
push esi
push edi
call fcn.004030e4
test eax, eax
je 0x40308f
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.vKERNEL32.dll_WriteFile]
test eax, eax
je 0x403074
cmp esi, dword [ebp + 0x10]
jne 0x403074
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403094
jmp 0x4030da
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4051a7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x422518], 0x44
push eax
xor eax, eax
push 0x422518
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.vKERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4051e2
push dword [ebp - 0xc]
call dword [sym.imp.vKERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40526c
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.0040550e
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x4052a2
push ebx
call dword [sym.imp.vKERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423f88], eax
jmp 0x405427
mov dword [ebp + 8], ecx
push edi
and dword [ebp + 8], 1
je 0x4052bd
test eax, eax
je 0x4053d2
test cl, 2
je 0x4053d2
mov esi, 0x421518
push ebx
push esi
call fcn.0040593a
cmp dword [ebp + 8], 0
je 0x4052dc
push str..
push esi
call sub.vKERNEL32.dll_lstrcatA
jmp 0x4052e2
push ebx
call fcn.00405474
push 0x409010
push ebx
call sub.vKERNEL32.dll_lstrcatA
push ebx
call sub.vKERNEL32.dll_lstrlenA
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.vKERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4053c8
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405458
cmp byte [eax], 0
je 0x405333
cmp byte [ebp - 0x18], 0
je 0x405333
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405349
mov al, byte [esi + 1]
test al, al
je 0x4053a7
cmp al, 0x2e
jne 0x405349
cmp byte [esi + 2], 0
je 0x4053a7
push esi
push edi
call fcn.0040593a
test byte [ebp - 0x148], 0x10
je 0x40536e
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4053a7
push dword [ebp + 0xc]
push ebx
call fcn.0040526c
jmp 0x4053a7
push ebx
call fcn.004055f2
push ebx
call dword [sym.imp.vKERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40539f
test byte [ebp + 0xc], 4
je 0x405397
push ebx
push 0xfffffffffffffff1
call fcn.00404cee
push 0
push ebx
call fcn.00405688
jmp 0x4053a7
inc dword [0x423f88]
jmp 0x4053a7
push ebx
push 0xfffffffffffffff2
call fcn.00404cee
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.vKERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405311
push dword [ebp - 4]
call dword [sym.imp.vKERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4053d2
and byte [edi - 1], 0
xor esi, esi
pop edi
cmp dword [ebp + 8], esi
je 0x405427
cmp dword [ebp - 8], esi
jne 0x4053e7
inc dword [0x423f88]
jmp 0x405427
push ebx
call fcn.00405be2
test eax, eax
je 0x405427
push ebx
call fcn.0040542d
push ebx
call fcn.004055f2
push ebx
call dword [sym.imp.vKERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40541f
test byte [ebp + 0xc], 4
je 0x4053df
push ebx
push 0xfffffffffffffff1
call fcn.00404cee
push esi
push ebx
call fcn.00405688
jmp 0x405427
push ebx
push 0xffffffffffffffe5
call fcn.00404cee
pop esi
pop ebx
leave
ret 8
Function at 0x40550e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421918
push esi
call fcn.0040593a
push esi
call fcn.004054c1
mov edi, eax
test edi, edi
jne 0x40552f
xor eax, eax
jmp 0x405581
push edi
call fcn.00405b49
test byte [0x423f10], 0x80
je 0x405548
mov al, byte [edi]
test al, al
je 0x40552b
cmp al, 0x5c
je 0x40552b
sub edi, esi
jmp 0x405560
call fcn.00405be2
test eax, eax
je 0x40555a
test byte [eax], 0x10
je 0x40552b
push esi
call fcn.00405474
push esi
call sub.vKERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x40554c
call fcn.0040542d
push esi
call dword [sym.imp.vKERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4055f2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.vKERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40560e
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.vKERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405611
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.vKERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.vKERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405640
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.vKERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.vKERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405684
test edi, edi
jne 0x40564b
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40567e
Function at 0x405688
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405c20
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4056ac
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x4057e5
mov ebx, dword [sym.imp.vKERNEL32.dll_GetShortPathNameA]
mov dword [0x4226a0], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x4226a0
je 0x4056f0
push 1
push 0
push esi
call fcn.00405611
push eax
call dword [sym.imp.vKERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4057eb
cmp eax, edi
jg 0x4057eb
mov esi, 0x422118
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4057eb
cmp eax, edi
jg 0x4057eb
push esi
push ebp
push str._s_s_r_n
push 0x421d18
call dword [sym.imp.vUSER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423f08]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.0040595c
push 4
push 0xc0000000
push esi
call fcn.00405611
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x4057e5
push 0
push ebp
call dword [sym.imp.vKERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.vKERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4057de
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.vKERNEL32.dll_ReadFile]
test eax, eax
je 0x4057de
cmp edi, dword [esp + 0x18]
jne 0x4057de
push str._Rename__r_n
push esi
call fcn.00405586
test eax, eax
jne 0x4057f2
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.0040593a
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421d18
push eax
call fcn.004055d2
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.vKERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.vKERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.vKERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.vKERNEL32.dll_CloseHandle]
inc dword [0x423f90]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409388
push eax
call fcn.00405586
test eax, eax
je 0x4057a9
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405819
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x40580e
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4057ab
Function at 0x405821
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.vADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405892
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.vADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405881
cmp dword [ebp + 0x14], 1
je 0x405883
cmp dword [ebp + 0x14], 2
je 0x405883
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.vADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x40595c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jge 0x40597d
mov ecx, dword [0x4236dc]
lea eax, [edi*4 + 4]
sub ecx, eax
mov edi, dword [ecx]
mov eax, dword [0x423f38]
mov ecx, dword [ebp + 8]
add edi, eax
mov eax, 0x422ea0
sub ecx, eax
mov ebx, eax
cmp ecx, 0x800
jae 0x405b23
mov ebx, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x405b23
mov edx, ebx
sub edx, eax
cmp edx, 0x400
jge 0x405b30
inc edi
cmp cl, 0xfc
jbe 0x405b16
movsx eax, byte [edi + 1]
movsx ecx, byte [edi]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, 0x8000
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], eax
or ecx, edx
or eax, edx
inc edi
mov dword [ebp - 0x10], ecx
inc edi
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 8], eax
jne 0x405ac1
cmp dword [0x423f84], 0
push 2
pop esi
je 0x405a08
push 4
pop esi
mov eax, dword [ebp - 0x14]
test al, al
jns 0x405a3f
mov ecx, eax
and eax, 0x3f
add eax, dword [0x423f38]
and ecx, 0x40
push ecx
push ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405821
cmp byte [ebx], 0
jne 0x405aa8
push dword [ebp - 0xc]
push ebx
call fcn.0040595c
jmp 0x405aa3
cmp eax, 0x25
jne 0x405a52
push 0x400
push ebx
call dword [sym.imp.vKERNEL32.dll_GetSystemDirectoryA]
jmp 0x405aa3
cmp eax, 0x24
jne 0x405a9f
push 0x400
push ebx
call dword [sym.imp.vKERNEL32.dll_GetWindowsDirectoryA]
xor esi, esi
jmp 0x405a9f
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x14]
push dword [0x423f04]
call dword [sym.imp.vSHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405a9c
push ebx
push dword [ebp - 4]
call dword [sym.imp.vSHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp + 0xc], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp + 0xc], 0
jne 0x405aa3
and byte [ebx], 0
test esi, esi
jne 0x405a67
cmp byte [ebx], 0
je 0x405ab9
cmp dword [ebp - 0xc], 0x1a
jne 0x405ab9
push str.MicrosoftInternet_ExplorerQuick_Launch
push ebx
call sub.vKERNEL32.dll_lstrcatA
push ebx
call fcn.00405b49
jmp 0x405b07
cmp byte [ebp + 0xf], 0xfd
jne 0x405af5
cmp esi, 0x1d
jne 0x405ada
push dword [0x423f04]
push ebx
call fcn.00405898
jmp 0x405aeb
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push ebx
call fcn.0040593a
add esi, 0xffffffeb
cmp esi, 7
jae 0x405b07
jmp 0x405ab9
cmp byte [ebp + 0xf], 0xff
jne 0x405b07
or eax, 0xffffffff
sub eax, esi
push eax
push ebx
call fcn.0040595c
push ebx
call sub.vKERNEL32.dll_lstrlenA
add ebx, eax
mov eax, 0x422ea0
jmp 0x405b23
jne 0x405b20
mov cl, byte [edi]
mov byte [ebx], cl
inc ebx
inc edi
jmp 0x405b23
mov byte [ebx], cl
inc ebx
mov cl, byte [edi]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x4059a8
and byte [ebx], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405b45
push eax
push dword [ebp + 8]
call fcn.0040593a
leave
ret 8
Function at 0x405c8c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422aa4], 0
push esi
jne 0x405cc3
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405c9d
mov dword [ecx*4 + 0x422aa0], eax
inc ecx
cmp ecx, 0x100
jl 0x405c98
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405cf4
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422aa0]
xor eax, esi
inc ecx
dec edx
jne 0x405cd6
pop edi
not eax
pop esi
ret 0xc

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x409e70
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4691cb
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.0045dc37
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409ef2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045b9ad
mov eax, dword [eax]
push 0x5171c0
push eax
call fcn.0044e784
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045dec2
test bl, bl
je 0x409ef2
push 0x5171c0
lea ecx, [esp + 0xc]
call fcn.0045e252
push 0x51ad2c
lea ecx, [esp + 0xc]
call fcn.0045e252
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 0x409f2e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045dec2
jmp 0x409ff9
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 0x409fb2
lea edx, [esp + 0x7c]
push 0x51ad28
push edx
call fcn.0044e784
add esp, 8
test eax, eax
je 0x409fb2
lea eax, [esp + 0x7c]
push 0x51ad24
push eax
call fcn.0044e784
add esp, 8
test eax, eax
je 0x409fb2
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 0x409f42
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.0045dec2
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 0x40b250
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 0x40b2b2
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 0x40b2c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46932b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5211e0]
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 0x40b3f8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40b326
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045dec2
xor eax, eax
jmp 0x40b46f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045dfff
push esi
lea ecx, [esp + 0xc]
call fcn.0045e28e
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 0x40b44d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040b250
test eax, eax
jne 0x40b44d
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 accept
mov ecx, edi
call fcn.0040b250
test eax, eax
jne 0x40b44d
lea eax, [esp + 0x14]
push 0x51ad40
push eax
call fcn.0044f7c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b42c
lea ecx, [esp + 0x14]
push 0x51ad3c
push ecx
call fcn.0044f740
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b42c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40b42f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045dfaf
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40b33e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045dec2
xor eax, eax
jmp 0x40b46f
mov byte [esi], 0
push 0x51ad38
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.0045dec2
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