joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40be00
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4193c8
push 0x4181f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0
push 0
push 0x1042
push 0x419
mov esi, dword [ebp + 8]
push esi
mov ebx, dword [sym.imp.USER32.dll_GetParent]
call ebx
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
je 0x40bfa8
lea ecx, [ebp - 0x104]
push ecx
push eax
call fcn.0040bfc0
add esp, 8
test eax, eax
je 0x40bfa8
mov dword [ebp - 4], 0
push 0xc8
lea edx, [ebp - 0xe0]
push edx
push 0x45f
push esi
mov edi, dword [sym.imp.USER32.dll_GetDlgItemTextA]
call edi
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0xe0]
push ecx
call fcn.004018f0
add esp, 8
mov edx, dword [ebp - 0x104]
mov eax, dword [ebp - 0xe4]
mov dword [edx], eax
mov eax, dword [ebp - 0x100]
test eax, eax
je 0x40befb
push 0xc8
lea ecx, [ebp - 0xe0]
push ecx
push 0x460
push esi
call edi
lea edx, [ebp - 0xe4]
push edx
lea eax, [ebp - 0xe0]
push eax
call fcn.004018f0
add esp, 8
mov ecx, dword [ebp - 0xfc]
mov dx, word [ebp - 0xe4]
mov word [ecx], dx
mov eax, dword [ebp - 0xf8]
test eax, eax
je 0x40bf3d
push 0xc8
lea eax, [ebp - 0xe0]
push eax
push 0x464
push esi
call edi
lea ecx, [ebp - 0xe4]
push ecx
lea edx, [ebp - 0xe0]
push edx
call fcn.004018f0
add esp, 8
mov eax, dword [ebp - 0xf4]
mov ecx, dword [ebp - 0xe4]
mov dword [eax], ecx
mov eax, dword [ebp - 0xf0]
test eax, eax
je 0x40bf6f
push 0xc8
lea edx, [ebp - 0xe0]
push edx
push 0x461
push esi
call edi
lea eax, [ebp - 0xe0]
push eax
mov ecx, dword [ebp - 0xec]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 4], 0xffffffff
push esi
call ebx
push eax
call fcn.0040b460
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415470
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
sub esp, 0x360
lea eax, [esp + 0x158]
push esi
push edi
push 0x41e540
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x160]
push str.MiscMetaPuck.exe
push ecx
call esi
lea edx, [esp + 0x5c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x41dec0
call fcn.00401aa0
add esp, 4
push eax
lea eax, [esp + 0x60]
push eax
call esi
lea ecx, [esp + 0x5c]
push 0
push ecx
push 0x41dec0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4154f9
mov edx, dword [esp + 0x36c]
push 0x41d83c
push edx
call fcn.004043a0
add esp, 8
pop edi
pop esi
add esp, 0x360
ret
lea eax, [esp + 0x160]
push 0x41d838
push eax
call esi
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x160]
push ecx
push edx
call esi
lea eax, [esp + 0x160]
push 0x41ccb4
push eax
call esi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0x44
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
push eax
lea eax, [esp + 0x180]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x41557d
mov ecx, dword [esp + 0x36c]
push 0x41d804
push ecx
call fcn.004043a0
add esp, 8
pop edi
pop esi
add esp, 0x360
ret
mov esi, dword [esp + 0x36c]
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push esi
call edi
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
push esi
call edi
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
add esp, 0x360
ret
Function at 0x415890
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4158c2
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push 4
push 0
push edi
mov dword [esi + 0x108], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, eax
test ebp, ebp
jne 0x4158f7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
push 0
push 0
push 0
push 6
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
call ebp
test ebx, ebx
jne 0x415920
push edi
call ebp
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
push ebx
mov dword [esi + 0x104], edi
mov dword [esi + 0x10c], ebx
mov dword [esi + 0x114], ebx
call dword [sym.imp.IMAGEHLP.dll_ImageNtHeader]
test eax, eax
mov dword [esi + 0x118], eax
jne 0x415956
push esi
call fcn.00415a00
add esp, 4
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call fcn.00417610
mov ecx, dword [esi + 0x118]
add esp, 4
test eax, eax
lea edx, [ecx + 0x18]
mov dword [esi + 0x110], eax
mov dword [esi + 0x11c], edx
je 0x41597d
add edx, 0x70
jmp 0x415980
add edx, 0x60
xor eax, eax
mov dword [esi + 0x120], edx
mov ax, word [ecx + 0x14]
mov dword [esi + 0x128], 0
pop edi
lea ecx, [eax + ecx + 0x18]
xor eax, eax
mov dword [esi + 0x124], ecx
pop esi
pop ebp
pop ebx
ret
Function at 0x415a30
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x415a62
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push 2
push 0
push edi
mov dword [esi + 0x108], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, eax
test ebp, ebp
jne 0x415a97
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
call ebp
test ebx, ebx
jne 0x415ac0
push edi
call ebp
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
push ebx
mov dword [esi + 0x104], edi
mov dword [esi + 0x10c], ebx
mov dword [esi + 0x114], ebx
call dword [sym.imp.IMAGEHLP.dll_ImageNtHeader]
test eax, eax
mov dword [esi + 0x118], eax
jne 0x415af6
push esi
call fcn.00415a00
add esp, 4
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call fcn.00417610
mov ecx, dword [esi + 0x118]
add esp, 4
test eax, eax
lea edx, [ecx + 0x18]
mov dword [esi + 0x110], eax
mov dword [esi + 0x11c], edx
je 0x415b1d
add edx, 0x70
jmp 0x415b20
add edx, 0x60
xor eax, eax
mov dword [esi + 0x120], edx
mov ax, word [ecx + 0x14]
mov dword [esi + 0x128], 1
pop edi
lea ecx, [eax + ecx + 0x18]
xor eax, eax
mov dword [esi + 0x124], ecx
pop esi
pop ebp
pop ebx
ret
Function at 0x415ce0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x164
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
call fcn.00415bf0
test eax, eax
jne 0x415d1d
mov eax, dword [esp + 0x178]
push 0x41da24
push eax
call fcn.004043a0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
lea ecx, [esp + 0x24]
push ecx
call fcn.004017b0
mov esi, dword [esp + 0x17c]
add esp, 4
lea eax, [esp + 0x24]
lea edx, [esp + 0x70]
push eax
mov dword [esp + 0x34], 0x41b228
mov dword [esp + 0x5c], 0x1804
mov dword [esp + 0x44], edx
mov byte [esp + 0x74], 0
mov dword [esp + 0x2c], esi
call sub.comdlg32.dll_GetOpenFileNameA
test eax, eax
jne 0x415d6b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
push 0
push 0x80
push 3
push 0
push 1
lea ecx, [esp + 0x84]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x415daf
mov edx, dword [0x41b1a4]
push edx
push esi
call fcn.004043a0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push ebx
call ebp
mov esi, eax
push esi
call fcn.00401a60
mov edi, eax
add esp, 4
test edi, edi
jne 0x415df9
mov eax, dword [0x41b19c]
mov ecx, dword [esp + 0x178]
push eax
push ecx
call fcn.004043a0
mov esi, dword [esp + 0x18]
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
lea edx, [esp + 0x14]
push 0
push edx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
call fcn.00415cc0
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
add ecx, edx
mov edx, dword [0x41dfd8]
push ecx
mov eax, dword [edx + 0x3c]
push eax
call fcn.00415bc0
mov ecx, dword [0x41dfc4]
add esp, 8
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [0x41dfc4]
lea edx, [esp + 0x14]
push 0
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.00401a90
call fcn.00415c20
call fcn.00415cc0
mov edi, eax
push esi
push 0x1000
mov dword [edi + 0x10], esi
call fcn.00415bc0
lea ecx, [esp + 0x7c]
mov dword [edi + 8], eax
push ecx
call fcn.00401aa0
add esp, 0x10
lea edx, [esp + 0x18]
push 9
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], eax
mov ecx, dword [esp + 0x20]
mov dword [edi + 4], ecx
mov edx, dword [0x41dfc4]
push edx
call ebp
push 0x41dec0
mov dword [0x41dfc8], eax
call fcn.00415b50
add esp, 4
test eax, eax
je 0x415ed9
mov eax, dword [esp + 0x178]
push eax
call fcn.0040ffb0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
mov esi, 1
call fcn.00416120
mov ecx, dword [0x41de9c]
push ecx
call fcn.004093d0
mov edx, dword [0x41e138]
push edx
call fcn.00409f70
mov eax, dword [esp + 0x180]
push 0x41da04
push eax
call fcn.004043e0
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
Function at 0x415f30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4194d8
push 0x4181f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x16c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call fcn.0040a1a0
mov ebx, eax
xor esi, esi
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x68]
push eax
call fcn.004017b0
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x178]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx]
mov dword [ebp - 0x178], ecx
mov edx, dword [ebx + 4]
mov dword [ebp - 0x174], edx
lea eax, [ebp - 0x178]
push eax
call fcn.00416450
add esp, 8
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x34], 6
mov dword [ebp - 0x5c], 0x41b228
mov edi, dword [ebp + 8]
mov dword [ebp - 0x64], edi
lea edx, [ebp - 0x68]
push edx
call sub.comdlg32.dll_GetSaveFileNameA
test eax, eax
je 0x4160fe
mov eax, dword [ebx + 0x10]
push eax
call fcn.00401a60
add esp, 4
mov dword [ebp - 0x70], eax
cmp eax, esi
jne 0x416001
mov ecx, dword [0x41b19c]
push ecx
push edi
call fcn.004043a0
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], esi
mov ecx, dword [ebx + 0x10]
mov esi, dword [ebx + 0x14]
add esi, dword [0x41dfcc]
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], 0xffffffff
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x416082
mov ecx, dword [0x41b1a4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004043a0
add esp, 8
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x70]
push ecx
call fcn.00401a90
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x74]
push eax
mov ecx, dword [ebx + 0x10]
push ecx
mov edx, dword [ebp - 0x70]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x41da50
mov eax, dword [ebp + 8]
push eax
call fcn.004043e0
add esp, 8
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x70]
push ecx
call fcn.00401a90
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416370
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4194f8
push 0x4181f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.IMAGEHLP.dll_ImageNtHeader]
xor edx, edx
cmp eax, edx
je 0x41640d
xor ecx, ecx
mov cx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], edx
xor esi, esi
mov si, word [eax + 6]
cmp edx, esi
jae 0x4163d5
mov esi, dword [ecx + 0xc]
mov dword [ecx + 0x14], esi
mov esi, dword [ecx + 8]
mov dword [ecx + 0x10], esi
add ecx, 0x28
mov dword [ebp - 0x20], ecx
inc edx
jmp 0x4163b3
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x1000
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x54], ecx
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416dc0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov esi, 5
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov dword [esp + 0x14], edi
mov eax, dword [ebx + 0x10c]
push eax
call fcn.00416d70
add esp, 4
cmp eax, 0x1000
jb 0x416e0a
push 0x41dbac
push edi
call fcn.004043a0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, dword [ebx + 0x10c]
push ecx
call fcn.00416d70
mov esi, dword [ebx + 0x108]
mov ebp, eax
sub esi, ebp
push esi
mov dword [esp + 0x28], esi
call fcn.00401a60
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x416e42
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0xc
ret
mov edx, dword [ebx + 0x10c]
mov ecx, esi
mov esi, ebp
mov edi, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebp, 0x200
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x118]
xor ecx, ecx
mov dword [eax + 0x54], ebp
mov edx, dword [ebx + 0x118]
mov eax, dword [ebx + 0x124]
cmp word [edx + 6], cx
jbe 0x416ea6
add eax, 0x14
mov edx, dword [eax]
test edx, edx
je 0x416e92
add edx, 0x200
mov dword [eax], edx
mov edx, dword [ebx + 0x118]
xor esi, esi
add eax, 0x28
inc ecx
mov si, word [edx + 6]
cmp ecx, esi
jb 0x416e84
push ebx
call fcn.00415a00
push 1
push ebx
call fcn.00416ce0
add esp, 0xc
mov esi, eax
push 0
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x18]
push 0
push eax
push ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00401a90
push ebx
call fcn.00415890
add esp, 8
test eax, eax
je 0x416f11
mov edx, dword [esp + 0x14]
push edx
call fcn.0040ffb0
add esp, 4
mov eax, 5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [0x41de9c]
push eax
call fcn.004093d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x416f30
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419520
push 0x4181f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov edi, 7
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.IMAGEHLP.dll_ImageNtHeader]
mov ebx, eax
mov dword [ebp - 0x30], ebx
test ebx, ebx
je 0x417072
push esi
call fcn.00417090
add esp, 4
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, 0xffffffff
je 0x417072
push esi
call fcn.00401a60
add esp, 4
mov edx, eax
mov dword [ebp - 0x20], edx
test edx, edx
jne 0x416fb3
mov edi, 2
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
xor eax, eax
mov ax, word [ebx + 0x14]
lea eax, [eax + ebx + 0x18]
mov dword [ebp - 4], 0
mov ecx, dword [ebx + 0x54]
mov esi, dword [ebp + 8]
mov edi, edx
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x24], 0
xor ecx, ecx
mov esi, dword [ebp - 0x30]
mov cx, word [esi + 6]
cmp dword [ebp - 0x24], ecx
jae 0x417028
mov ecx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
add esi, dword [ebp + 8]
mov edi, dword [eax + 0x14]
add edi, edx
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, 0x28
mov dword [ebp - 0x2c], eax
inc dword [ebp - 0x24]
jmp 0x416ff3
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x1c]
mov dword [ecx], edx
xor edi, edi
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x417090
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.IMAGEHLP.dll_ImageNtHeader]
test eax, eax
jne 0x4170a3
or eax, 0xffffffff
ret
mov cx, word [eax + 6]
test cx, cx
jne 0x4170b0
mov eax, dword [eax + 0x54]
ret
push esi
xor esi, esi
mov si, word [eax + 0x14]
xor edx, edx
and ecx, 0xffff
lea eax, [esi + eax + 0x18]
jbe 0x4170e8
mov esi, dword [esp + 8]
push edi
mov edi, ecx
mov ecx, dword [eax + 0x14]
cmp ecx, edx
jbe 0x4170d7
mov edx, ecx
mov esi, eax
add eax, 0x28
dec edi
jne 0x4170cc
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
pop edi
add eax, ecx
pop esi
ret
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
add eax, ecx
pop esi
ret
Function at 0x418150
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.IMAGEHLP.dll_ImageNtHeader]
test eax, eax
jne 0x418160
ret
push ebx
xor ecx, ecx
mov cx, word [eax + 0x14]
xor edx, edx
mov dx, word [eax + 6]
push esi
push edi
or edi, 0xffffffff
test edx, edx
lea ecx, [ecx + eax + 0x18]
jbe 0x418193
push ebp
lea ebx, [ecx + 0x14]
mov ebp, edx
mov esi, dword [ebx]
test esi, esi
je 0x41818c
cmp esi, edi
jae 0x41818c
mov edi, esi
add ebx, 0x28
dec ebp
jne 0x418180
pop ebp
xor esi, esi
dec edx
test edx, edx
mov dword [eax + 0x54], edi
jbe 0x4181b7
mov edx, dword [ecx + 0x34]
mov edi, dword [ecx + 0xc]
sub edx, edi
mov dword [ecx + 8], edx
xor edx, edx
mov dx, word [eax + 6]
add ecx, 0x28
inc esi
dec edx
cmp esi, edx
jb 0x41819d
mov edx, dword [esp + 0x14]
mov ebx, dword [ecx + 0x14]
mov esi, dword [ecx + 8]
sub edx, ebx
mov dword [ecx + 0x10], edx
mov ecx, dword [ecx + 0xc]
test esi, esi
je 0x4181db
add ecx, esi
pop edi
mov dword [eax + 0x50], ecx
pop esi
mov eax, 1
pop ebx
ret
add ecx, edx
pop edi
mov dword [eax + 0x50], ecx
pop esi
mov eax, 1
pop ebx
ret
Function at 0x40aed0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46be8b
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.00460806
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40af52
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045e71d
mov eax, dword [eax]
push 0x4841c0
push eax
call fcn.004509f4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00460a91
test bl, bl
je 0x40af52
push 0x4841c0
lea ecx, [esp + 0xc]
call fcn.00460e21
push 0x487d3c
lea ecx, [esp + 0xc]
call fcn.00460e21
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 0x40af8e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00460a91
jmp 0x40b059
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 0x40b012
lea edx, [esp + 0x7c]
push 0x487d38
push edx
call fcn.004509f4
add esp, 8
test eax, eax
je 0x40b012
lea eax, [esp + 0x7c]
push 0x487d34
push eax
call fcn.004509f4
add esp, 8
test eax, eax
je 0x40b012
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 0x40afa2
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.00460a91
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 0x40b850
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 0x40b8b2
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