joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d76
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, ebx
push edi
and eax, 4
push esi
mov dword [ebp - 4], eax
call fcn.0040609a
test bl, 8
mov dword [ebp - 8], eax
je 0x405db5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x437808], eax
jmp 0x405f8b
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405dcf
test eax, eax
je 0x405f0d
test bl, 2
je 0x405f0d
mov edi, 0x4302c0
push esi
push edi
call fcn.004065de
cmp dword [ebp + 8], 0
je 0x405dee
push str..
push edi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405df4
push esi
call fcn.00405fde
cmp word [esi], 0
jne 0x405e04
cmp word [0x4302c0], 0x5c
jne 0x405e0f
push 0x40a4e4
push esi
call sub.KERNEL32.dll_lstrcatW
push esi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [esi + eax*2]
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x405f02
cmp word [ebp - 0x22c], 0x2e
jne 0x405e61
cmp word [ebp - 0x22a], 0
je 0x405ee5
cmp word [ebp - 0x22a], 0x2e
jne 0x405e61
cmp word [ebp - 0x228], 0
je 0x405ee5
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.004065de
test byte [ebp - 0x258], 0x10
je 0x405e8c
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405ee5
push dword [ebp + 0xc]
push esi
call fcn.00405d76
jmp 0x405ee5
push esi
push str.Delete:_DeleteFile___s__
call fcn.00406a98
pop ecx
pop ecx
push dword [ebp - 4]
push esi
call fcn.00405d2e
test eax, eax
push esi
jne 0x405ede
cmp dword [ebp - 4], eax
je 0x405eca
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00406a98
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.004056af
push 0
push esi
call fcn.0040647f
jmp 0x405ee5
push str.Delete:_DeleteFile_failed___s__
call fcn.00406a98
inc dword [0x437808]
pop ecx
pop ecx
jmp 0x405ee5
push 0xfffffffffffffff2
call fcn.004056af
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405e31
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405f0d
and word [ebx - 2], 0
xor edi, edi
cmp dword [ebp + 8], edi
je 0x405f8b
cmp dword [ebp - 8], edi
push esi
jne 0x405f2e
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.00406a98
inc dword [0x437808]
pop ecx
pop ecx
jmp 0x405f8b
call fcn.00406ac9
test eax, eax
je 0x405f8b
push esi
call fcn.00405f92
push esi
push str.RMDir:_RemoveDirectory___s__
call fcn.00406a98
mov eax, dword [ebp - 4]
pop ecx
pop ecx
or al, 1
push eax
push esi
call fcn.00405d2e
test eax, eax
push esi
jne 0x405f84
cmp dword [ebp - 4], edi
je 0x405f7d
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00406a98
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.004056af
push edi
push esi
call fcn.0040647f
jmp 0x405f8b
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x405f1f
push 0xffffffffffffffe5
call fcn.004056af
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40609a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x430ac0
push esi
call fcn.004065de
push esi
call fcn.0040603d
mov edi, eax
test edi, edi
jne 0x4060bb
xor eax, eax
jmp 0x406113
push edi
call fcn.00406872
test byte [0x437798], 0x80
je 0x4060d8
mov ax, word [edi]
test ax, ax
je 0x4060b7
cmp ax, 0x5c
je 0x4060b7
sub edi, esi
sar edi, 1
jmp 0x4060f2
call fcn.00406ac9
test eax, eax
je 0x4060ec
test byte [eax], 0x10
je 0x4060b7
push esi
call fcn.00405fde
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x4060de
call fcn.00405f92
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4061ad
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x4061b3
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
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.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x4061e2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40b480]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40b484]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.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 word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406232
test edi, edi
jne 0x4061ef
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x40622c
Function at 0x40630d
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, 0x431958
push 0x40b4a4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x40635b
push 1
push 0
push esi
call fcn.004061b3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x40647a
cmp eax, edi
jg 0x40647a
mov esi, 0x432158
push edi
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x40647a
cmp eax, edi
jg 0x40647a
push esi
push ebx
push str._ls_ls_r_n
push 0x431558
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x437790]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406600
push 4
push 0xc0000000
push esi
call fcn.004061b3
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x40647a
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406473
push edi
push esi
push ebp
call fcn.00406236
test eax, eax
je 0x406473
push str._Rename__r_n
push esi
call fcn.00406118
test eax, eax
jne 0x406411
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406446
add eax, 0xa
push 0x40b488
push eax
call fcn.00406118
mov ebp, eax
test ebp, ebp
je 0x406442
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406433
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x40642d
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406448
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x431558
push eax
call fcn.0040616e
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00406265
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40647f
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4064a2
push dword [esp + 8]
push dword [esp + 8]
call fcn.0040630d
pop ecx
pop ecx
inc dword [0x437810]
ret 8
Function at 0x4064ab
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov word [esi], di
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40651f
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x800
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40650c
cmp dword [ebp + 0x14], 1
je 0x40650f
cmp dword [ebp + 0x14], 2
je 0x40650f
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x7fe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x406af0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406b14
xor eax, eax
test eax, eax
je 0x406b27
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406b27
xor ecx, ecx
jmp 0x406b2a
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a4e4]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406c11
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43295c], 0
push esi
jne 0x406c48
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 0x406c22
mov dword [ecx*4 + 0x432958], eax
inc ecx
cmp ecx, 0x100
jl 0x406c1d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406c79
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 + 0x432958]
xor eax, esi
inc ecx
dec edx
jne 0x406c5b
pop edi
not eax
pop esi
ret 0xc
Function at 0x406061
Capabilities:
Contain obfuscated stackstrings

Disassembly:
je 0x406088
lea eax, [ebp - 0x714]
push eax
call fcn.00404002
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.00403fb7
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x406093
jmp 0x406098
jmp 0x405994

Function at 0x406302
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406325
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406188
pop ecx
pop ecx
inc dword [0x42a310]
ret 8

Function at 0x40640a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x800
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004063a9
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x40647a
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x7fe], 0
test edi, edi
pop edi
jne 0x40647a
cmp dword [ebp + 0xc], 1
je 0x40647e
cmp dword [ebp + 0xc], 2
je 0x40647e
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x4068c1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068e5
xor eax, eax
test eax, eax
je 0x4068f8
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068f8
xor ecx, ecx
jmp 0x4068fb
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a1e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dec], 0
push esi
jne 0x406a55
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 0x406a2f
mov dword [ecx*4 + 0x427de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406a2a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a86
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 + 0x427de8]
xor eax, esi
inc ecx
dec edx
jne 0x406a68
pop edi
not eax
pop esi
ret 0xc

Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x407db7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x407dc6
pop dword [ebp - 0x4c]
mov eax, 0xbb5780bf
sub eax, 0xbb1702f9
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x575c083f
add dword [ebp - 0x5c], 0xf6f63d0c
mov dword [ebp - 0x58], 0xca4ba68e
sub dword [ebp - 0x58], 0x98185a49
mov dword [ebp - 0x54], 0xcc24683f
add dword [ebp - 0x54], 0x8027dbef
mov dword [ebp - 0x50], 0x87e39f02
sub dword [ebp - 0x50], 0x87e39f02
lea eax, [ebp - 0x5c]
push eax
mov eax, 0xb367477c
sub eax, 0xb3267730
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x50190177
sub dword [ebp - 0x5c], 0xdba69821
mov dword [ebp - 0x58], 0x52f0a2f5
sub dword [ebp - 0x58], 0x11844180
mov dword [ebp - 0x54], 0x881092b4
add dword [ebp - 0x54], 0xdb5ed9b8
mov dword [ebp - 0x50], 0xdb9e5fda
add dword [ebp - 0x50], 0x2461a026
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x68a74135
add eax, 0x97998f13
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3acf1
push 0
call eax
mov ecx, 0xa94220f4
sub ecx, 0xa941d386
xor ebx, ebx
add ebx, eax
mov esi, 0x41b000
add esi, dword [ebp - 0x4c]
mov edx, 0xa22d1793
sub edx, 0x749e2d69
mov edi, dword [esi]
mov dword [ebp - 0x28], 0x3a66ea70
sub edi, edx
add dword [ebp - 0x40], esi
mov dword [ebx], edi
xor dword [ebp - 0x44], eax
add ebx, 0xa568a102
sub ebx, 0xa568a0fe
add esi, 4
loop 0x407ee4
add eax, 0xf3ecf9e9
sub eax, 0xf3ebd15e
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

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

Disassembly:
push 0xffffffffffffffff
push 0x48fadb
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.004848c8
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4077b2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00482817
mov eax, dword [eax]
push 0xbf91c0
push eax
call fcn.00474a54
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00484b53
test bl, bl
je 0x4077b2
push 0xbf91c0
lea ecx, [esp + 0xc]
call fcn.00484ee3
push 0xbfcd2c
lea ecx, [esp + 0xc]
call fcn.00484ee3
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 0x4077ee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00484b53
jmp 0x4078b9
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 0x407872
lea edx, [esp + 0x7c]
push 0xbfcd28
push edx
call fcn.00474a54
add esp, 8
test eax, eax
je 0x407872
lea eax, [esp + 0x7c]
push 0xbfcd24
push eax
call fcn.00474a54
add esp, 8
test eax, eax
je 0x407872
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 0x407802
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.00484b53
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 0x4080b0
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 0x408112
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 0x408120
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48fb5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0xc0bd48]
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 0x408258
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x408186
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00484b53
xor eax, eax
jmp 0x4082cf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00484c90
push esi
lea ecx, [esp + 0xc]
call fcn.00484f1f
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 0x4082ad
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.004080b0
test eax, eax
jne 0x4082ad
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.004080b0
test eax, eax
jne 0x4082ad
lea eax, [esp + 0x14]
push 0xbfcd40
push eax
call fcn.00475ad0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40828c
lea ecx, [esp + 0x14]
push 0xbfcd3c
push ecx
call fcn.00475a50
mov esi, eax
add esp, 8
test esi, esi
jne 0x40828c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40828f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00484c40
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40819e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00484b53
xor eax, eax
jmp 0x4082cf
mov byte [esi], 0
push 0xbfcd38
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.00484b53
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