joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45dff0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push edi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x45e0fa
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
lea edx, [esp + 0x18]
push edx
push edi
mov byte [esp + 0x18], 0x89
mov byte [esp + 0x19], 0x50
mov byte [esp + 0x1a], 0x4e
mov byte [esp + 0x1b], 0x47
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45e0f3
cmp dword [esp + 8], 4
jne 0x45e0f3
push ebx
push esi
mov eax, 4
lea edx, [esp + 0xc]
lea esi, [esp + 0x14]
mov ecx, dword [esi]
cmp ecx, dword [edx]
jne 0x45e07f
sub eax, 4
add edx, 4
add esi, 4
cmp eax, 4
jae 0x45e067
test eax, eax
je 0x45e0dc
movzx ebx, byte [edx]
movzx ecx, byte [esi]
sub ecx, ebx
jne 0x45e0ce
sub eax, 1
add edx, 1
add esi, 1
test eax, eax
je 0x45e0dc
movzx ebx, byte [edx]
movzx ecx, byte [esi]
sub ecx, ebx
jne 0x45e0ce
sub eax, 1
add edx, 1
add esi, 1
test eax, eax
je 0x45e0dc
movzx ebx, byte [edx]
movzx ecx, byte [esi]
sub ecx, ebx
jne 0x45e0ce
sub eax, 1
add edx, 1
add esi, 1
test eax, eax
je 0x45e0dc
movzx edx, byte [edx]
movzx ecx, byte [esi]
sub ecx, edx
je 0x45e0dc
test ecx, ecx
mov esi, 1
jg 0x45e0de
or esi, 0xffffffff
jmp 0x45e0de
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test esi, esi
pop esi
pop ebx
sete al
pop edi
add esp, 0xc
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
add esp, 0xc
ret

Function at 0x45e110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push 0x48a894
push eax
push esi
mov byte [esp + 0x10], 0x89
mov byte [esp + 0x11], 0x50
mov byte [esp + 0x12], 0x4e
mov byte [esp + 0x13], 0x47
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x45e144
xor eax, eax
pop esi
pop ecx
ret
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45e13f
push edi
push eax
mov esi, 4
lea edi, [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [eax]
cmp ecx, dword [edi]
jne 0x45e179
sub esi, 4
add edi, 4
add eax, 4
cmp esi, 4
jae 0x45e161
test esi, esi
je 0x45e1e1
movzx ecx, byte [eax]
movzx edx, byte [edi]
sub ecx, edx
jne 0x45e1c8
sub esi, 1
add edi, 1
add eax, 1
test esi, esi
je 0x45e1e1
movzx ecx, byte [eax]
movzx edx, byte [edi]
sub ecx, edx
jne 0x45e1c8
sub esi, 1
add edi, 1
add eax, 1
test esi, esi
je 0x45e1e1
movzx ecx, byte [eax]
movzx edx, byte [edi]
sub ecx, edx
jne 0x45e1c8
sub esi, 1
add edi, 1
add eax, 1
test esi, esi
je 0x45e1e1
movzx ecx, byte [eax]
movzx eax, byte [edi]
sub ecx, eax
je 0x45e1e1
test ecx, ecx
mov eax, 1
jg 0x45e1e3
or eax, 0xffffffff
xor ecx, ecx
test eax, eax
sete cl
pop edi
pop esi
mov eax, ecx
pop ecx
ret
xor eax, eax
xor ecx, ecx
test eax, eax
sete cl
pop edi
pop esi
mov eax, ecx
pop ecx
ret
Function at 0x45e1f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x45e20b
xor eax, eax
pop esi
ret
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45e207
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x45e207
xor ecx, ecx
cmp word [eax + 0xe], 0x20
pop esi
sete cl
mov eax, ecx
ret

Function at 0x45e8f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x47dce8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a15f0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x3c]
push 2
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x45e9be
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45e9be
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x45e9be
mov esi, dword [edi + 8]
imul esi, dword [edi + 4]
add esi, esi
add esi, esi
cmp word [edi + 0xe], 0x20
mov dword [esp + 0x18], 0
jne 0x45ea35
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + 0x28]
cmp eax, ecx
jb 0x45ea35
lea ecx, [esp + 0x1c]
call fcn.0040c649
xor ebp, ebp
push ebp
mov dword [esp + 0x38], ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x20]
call fcn.0040cbc5
push 0x34
call fcn.0041fda8
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x45e9d4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xffffffff
call fcn.0040cc3f
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
push 0x28
push edi
push ebx
call fcn.00446490
add esp, 0xc
push ebp
push ebp
lea edx, [esp + 0x1c]
push edx
push ebp
mov dword [ebx + 0x14], esi
mov eax, dword [esp + 0x30]
push ebx
push eax
mov dword [esp + 0x2c], ebp
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
test ebp, ebp
je 0x45ea1b
mov eax, dword [esp + 0x14]
test eax, eax
je 0x45ea1b
push esi
add edi, 0x28
push edi
push eax
call fcn.00446490
add esp, 0xc
mov dword [esp + 0x18], ebp
push ebx
call fcn.0041f9d6
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xffffffff
call fcn.0040cc3f
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x460190
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x47e181
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4a15f0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esp + 0x14], 2
call fcn.0045f6c0
lea eax, [esi + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esi + 0x44]
mov byte [esp + 0x14], 1
call fcn.0045f1e0
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 0
call fcn.0045f1e0
mov eax, dword [esi + 0x18]
add esi, 8
test eax, eax
mov dword [esp + 0x14], 0xffffffff
mov dword [esi], vtable.CXTPImageManagerResource::CBitmapDC.0
je 0x46020c
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, esi
call fcn.0040cc3f
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x4605e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x47e23f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4a15f0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CXTPImageManagerIcon.0
push 1
mov dword [esp + 0x18], 8
call fcn.0045ff20
lea ecx, [esi + 0x12c]
mov byte [esp + 0x14], 7
call fcn.00460470
lea ecx, [esi + 0x108]
mov byte [esp + 0x14], 6
call fcn.00460470
lea ecx, [esi + 0xe4]
mov byte [esp + 0x14], 5
call fcn.00460470
lea ecx, [esi + 0xc0]
mov byte [esp + 0x14], 4
call fcn.00460470
lea ecx, [esi + 0x9c]
mov byte [esp + 0x14], 3
call fcn.00460470
lea ecx, [esi + 0x78]
mov byte [esp + 0x14], 2
call fcn.00460470
lea ecx, [esi + 0x54]
mov byte [esp + 0x14], 1
call fcn.00460470
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 0
call fcn.00460470
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.004048e1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x461cd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push edi
mov edi, dword [esp + 0xc]
push 0xe
push eax
push edi
call esi
test eax, eax
jne 0x461cf1
pop edi
xor eax, eax
pop esi
ret 0x10
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x461cea
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
push ebp
push eax
call ebx
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push 0
push ebp
push ecx
push 1
push eax
call dword [sym.imp.USER32.dll_LookupIconIdFromDirectoryEx]
movzx edx, ax
push 3
push edx
push edi
call esi
mov esi, eax
test esi, esi
je 0x461d38
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x461d41
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret 0x10
push eax
call ebx
push 0
push ebp
mov ebx, eax
mov eax, dword [esp + 0x24]
push eax
push 0x30000
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
pop ebp
pop ebx
pop edi
pop esi
ret 0x10
Function at 0x461f00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
call fcn.00461c70
mov edi, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x461f22
push 5
push edi
push esi
call ebx
test eax, eax
jne 0x461f38
call fcn.0040c0ba
mov esi, dword [eax + 0xc]
test esi, esi
je 0x461f46
push 5
push edi
push esi
call ebx
test eax, eax
je 0x461f46
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
pop edi
pop esi
pop ebx
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
ret 4

Function at 0x462040
Capabilities:
Enumerate gui resources

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x461f90
push ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
mov ax, word [esp]
pop ecx
ret

Function at 0x4624e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
cmp dword [esp + 4], 0
jne 0x4624ec
xor eax, eax
ret 8
push ebx
push ebp
push esi
push edi
call fcn.00461c70
movzx ebx, word [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 0x17
mov edi, eax
push ebx
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x462526
call fcn.0040c0ba
mov edi, dword [eax + 0xc]
test edi, edi
je 0x46255e
push 0x17
push ebx
push edi
call ebp
mov esi, eax
test esi, esi
je 0x46255e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x46255e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x46255e
mov ecx, dword [esp + 0x14]
lea ebx, [esi + 1]
push ebx
call fcn.00403135
mov edi, eax
test edi, edi
jne 0x462567
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
push ebx
push 0
push edi
call fcn.00421480
push esi
push ebp
push edi
call fcn.00426920
mov ecx, dword [esp + 0x2c]
add esp, 0x18
push 0xffffffffffffffff
call fcn.00403cb1
pop edi
xor eax, eax
test esi, esi
pop esi
pop ebp
setg al
pop ebx
ret 8
Function at 0x462660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x18]
push edi
call fcn.00402bda
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov eax, ebx
shr eax, 4
add eax, 1
movzx ecx, ax
push 6
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x46269d
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x462694
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4626e1
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and ebx, 0xf
jbe 0x4626d6
cmp esi, eax
jae 0x4626e1
sub ebx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4626c6
cmp esi, eax
jae 0x4626e1
movzx ebp, word [esi]
test ebp, ebp
jne 0x4626eb
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4626fb
mov ebx, dword [eax + 4]
jmp 0x4626fd
xor ebx, ebx
push 0
push 0
push 0
push 0
push ebp
lea edi, [esi + 2]
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esp + 0x20]
mov esi, eax
push esi
call fcn.00409ba4
push 0
push 0
push esi
push eax
push ebp
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esp + 0x20]
push esi
call fcn.00403cb1
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x464490
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x47e7b8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a15f0]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [ebp + 8], 0
call fcn.0040cedf
mov esi, dword [esp + 0x50]
test esi, esi
je 0x46452f
mov edi, dword [esp + 0x4c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46452f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x46452f
cmp ebx, 0xa
jb 0x46452f
push 0
push ebx
push eax
lea ecx, [esp + 0x20]
call fcn.004198b5
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
mov dword [esp + 0x48], 0
call fcn.00464300
lea ecx, [esp + 0x14]
mov esi, eax
mov dword [esp + 0x44], 0xffffffff
call fcn.00419c1e
mov eax, esi
jmp 0x464531
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 8
Function at 0x475af6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.0040c0ba
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x475b21
xor eax, eax
jmp 0x475bc5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x475b1a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x475b1a
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00402320
mov edi, eax
xor eax, eax
cmp word [esi + 6], ax
pop ecx
jbe 0x475b76
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x475b65
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.00475737
push edi
mov ebx, eax
call fcn.00402350
test ebx, ebx
pop ecx
je 0x475bb8
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.004759f6
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00475aa8
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4
Function at 0x476ccb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x476d08
cmp dword [ebp + 0x14], edi
je 0x476d08
cmp ecx, edi
jne 0x476d0f
call fcn.00421437
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00425964
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x476d23
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x476d44
cmp ebx, 0xffffffff
je 0x476d33
push ebx
push edi
push ecx
call fcn.00421480
add esp, 0xc
cmp esi, edi
je 0x476cf0
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x476cf0
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x476d60
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x476d67
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x476e58
test word [esi + 0xc], 0x10c
je 0x476dbb
mov eax, dword [esi + 4]
test eax, eax
je 0x476dbb
jl 0x476eb9
cmp ebx, eax
mov edi, ebx
jb 0x476d8c
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x476e60
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004211e4
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x476e50
cmp ebx, dword [ebp - 0xc]
jb 0x476e28
cmp dword [ebp - 0xc], 0
je 0x476de5
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x476dda
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x476de1
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x476df0
mov eax, SysReAllocString
cmp ebx, eax
ja 0x476df0
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x476e8c
push eax
push dword [ebp - 8]
push esi
call fcn.0042e484
pop ecx
push eax
call fcn.00430308
add esp, 0xc
test eax, eax
je 0x476ecb
cmp eax, 0xffffffff
je 0x476eb9
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x476e50
push esi
call fcn.0042e685
cmp eax, 0xffffffff
pop ecx
je 0x476ebd
cmp dword [ebp - 4], 0
je 0x476e8c
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x476d6f
mov eax, dword [ebp + 0x14]
jmp 0x476d0a
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x476e77
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00421480
add esp, 0xc
call fcn.00421437
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x476d00
cmp dword [ebp + 0xc], 0xffffffff
je 0x476ea2
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00421480
add esp, 0xc
call fcn.00421437
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x476d00
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x476d0a
or dword [esi + 0xc], 0x10
jmp 0x476ebd
Function at 0x420eb0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x494c5b
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.00488f99
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x420f32
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048676d
mov eax, dword [eax]
push 0x4cc244
push eax
call fcn.004789e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00489224
test bl, bl
je 0x420f32
push 0x4cc244
lea ecx, [esp + 0xc]
call fcn.004895b4
push 0x4cfdd0
lea ecx, [esp + 0xc]
call fcn.004895b4
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 0x420f6e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00489224
jmp 0x421039
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 0x420ff2
lea edx, [esp + 0x7c]
push 0x4cfdcc
push edx
call fcn.004789e4
add esp, 8
test eax, eax
je 0x420ff2
lea eax, [esp + 0x7c]
push 0x4cfdc8
push eax
call fcn.004789e4
add esp, 8
test eax, eax
je 0x420ff2
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 0x420f82
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.00489224
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 0x421830
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 0x421892
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 0x4218a0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x494cdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4dbef0]
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 0x4219d8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x421906
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00489224
xor eax, eax
jmp 0x421a4f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00489361
push esi
lea ecx, [esp + 0xc]
call fcn.004895f0
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 0x421a2d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00421830
test eax, eax
jne 0x421a2d
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.00421830
test eax, eax
jne 0x421a2d
lea eax, [esp + 0x14]
push 0x4cfde4
push eax
call fcn.00479a20
mov esi, eax
add esp, 8
test esi, esi
jne 0x421a0c
lea ecx, [esp + 0x14]
push 0x4cfde0
push ecx
call fcn.004799a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x421a0c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x421a0f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00489311
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x42191e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00489224
xor eax, eax
jmp 0x421a4f
mov byte [esi], 0
push 0x4cfddc
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.00489224
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