joyce8/EMBER2024-capa huggingface dataset:
Function at 0x62b46c
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xfffffdfc
mov ebx, eax
mov dword [esp], pe_nt_image_headers32
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x62b49d
mov eax, ebx
lea edx, [esp + 4]
mov ecx, pe_nt_image_headers32
call fcn.0040a83c
jmp 0x62b4a4
mov eax, ebx
call fcn.00409c60
add esp, 0x204
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x4012d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
xor al, al
test edi, edi
mov dword [esi], 0
je 0x401357
mov edx, dword [ebx + 4]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 4]
push eax
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push edi
push edx
call ebp
test eax, eax
jne 0x401354
cmp dword [esp + 8], 1
jne 0x401354
mov eax, dword [esp + 4]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MFC80U.DLL_Ordinal_265
add esp, 4
lea ecx, [esp + 4]
push ecx
push eax
push 0
push 0
mov dword [esi], eax
mov edx, dword [ebx + 4]
push edi
push edx
call ebp
test eax, eax
jne 0x401343
mov al, 1
pop ebp
add esp, 8
ret
mov eax, dword [esi]
push eax
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
mov dword [esi], 0
xor al, al
pop ebp
add esp, 8
ret

Function at 0x401a10
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x40bf93
mov eax, dword fs:[0]
push eax
mov eax, 0xfa18
call fcn.0040b9d0
mov eax, dword [0x414018]
xor eax, esp
mov dword [esp + 0xfa14], eax
mov eax, dword [0x414018]
xor eax, esp
push eax
lea eax, [esp + 0xfa1c]
mov dword fs:[0], eax
mov ecx, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea eax, [esp + 8]
push eax
mov dword [esp + 0xfa28], 0
push edi
mov dword [esp + 0x14], 1
call sub.VERSION.dll_GetFileVersionInfoSizeW
lea ecx, [esp + 8]
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x401ae2
lea edx, [esp + 0x18]
push edx
push 0xfa00
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x401ae2
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 8]
push ecx
push 0x40e7c4
lea edx, [esp + 0x24]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401ae2
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x10]
movzx ecx, word [ecx + 0x16]
push ecx
movzx edx, ax
push edx
shr eax, 0x10
push eax
push str._d._d_d
push esi
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
add esp, 0x14
mov eax, esi
mov ecx, dword [esp + 0xfa1c]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0xfa14]
xor ecx, esp
call fcn.0040b277
add esp, 0xfa24
ret
Function at 0x401e10
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40cdb1
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x414018]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push str.SoftwareAutodeskHardcopy
xor edi, edi
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x28]
xor bl, bl
mov dword [esp + 0x28], vtable.AcRegistryAccess.0
mov dword [esp + 0x2c], edi
call dword [0x40ebd0]
mov dword [esp + 0x30], edi
cmp dword [esp + 0x24], edi
jne 0x401e7b
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
push 0x400
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
call dword [sym.imp.MFC80U.DLL_Ordinal_2460]
mov edx, dword [esp + 0x24]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push edi
push edi
push edi
push edi
lea ecx, [esp + 0x2c]
push ecx
push eax
push edi
push edx
mov dword [esp + 0x3c], 0x400
call ebp
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
mov esi, eax
call dword [sym.imp.MFC80U.DLL_Ordinal_5398]
test esi, esi
jne 0x401f1c
add edi, 1
test bl, bl
jne 0x401f1c
mov ecx, dword [esp + 0x18]
call fcn.00401b10
push 0x400
lea ecx, [esp + 0x1c]
mov bl, al
call dword [sym.imp.MFC80U.DLL_Ordinal_2460]
mov edx, dword [esp + 0x24]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
push eax
push edi
push edx
mov dword [esp + 0x3c], 0x400
call ebp
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
mov esi, eax
call dword [sym.imp.MFC80U.DLL_Ordinal_5398]
test esi, esi
je 0x401ecb
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, dword [esp + 0x24]
test eax, eax
mov dword [esp + 0x20], vtable.AcRegistryAccess.0
je 0x401f3d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x403440
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x403567
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push eax
call ebx
test eax, eax
jne 0x403567
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x403567
push 0
lea ecx, [esp + 0x14]
push ecx
push 2
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], 2
jne 0x403557
mov ax, word [esp + 0xc]
cmp ax, 0xfeff
jne 0x4034b6
mov dword [esi + 8], 3
pop esi
mov al, 1
pop ebx
add esp, 0xc
ret
cmp ax, 0xfffe
jne 0x4034cb
mov dword [esi + 8], 4
pop esi
mov al, 1
pop ebx
add esp, 0xc
ret
cmp ax, 0xbbef
jne 0x4034fd
lea eax, [esp + 0xb]
push eax
mov edx, 1
mov eax, esi
call fcn.004032c0
cmp eax, 1
jne 0x403557
cmp byte [esp + 0xb], 0xbf
jne 0x403557
mov dword [esi + 8], 2
pop esi
mov al, al
pop ebx
add esp, 0xc
ret
test ax, ax
jne 0x403557
lea ecx, [esp + 0x10]
push ecx
mov edx, 2
mov eax, esi
call fcn.004032c0
cmp eax, 2
jne 0x403557
mov ax, word [esp + 0xc]
test ax, ax
jne 0x40353b
cmp dword [esp + 0x10], 0xfffe
jne 0x403557
mov dword [esi + 8], 6
pop esi
mov al, 1
pop ebx
add esp, 0xc
ret
cmp ax, 0xfeff
jne 0x403557
cmp dword [esp + 0x10], 0
jne 0x403557
mov dword [esi + 8], 5
pop esi
mov al, 1
pop ebx
add esp, 0xc
ret
mov esi, dword [esi]
cmp esi, 0xffffffff
je 0x403567
push 0
push 0
push 0
push esi
call ebx
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
Function at 0x403570
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
mov eax, dword [0x414018]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
mov ebp, dword [esp + 0x28]
push esi
xor esi, esi
mov word [ebx], si
mov eax, dword [ebp]
cmp eax, 0xffffffff
push edi
mov byte [esp + 0x14], 0
je 0x4035b7
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea ecx, [esp + 0x14]
push ecx
push 1
lea edx, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x24], esi
call edi
cmp dword [esp + 0x10], esi
jg 0x4035cd
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0040b277
add esp, 0x20
ret 4
mov al, byte [esp + 0x14]
cmp al, 0x7f
jbe 0x403666
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x14]
push eax
push esi
mov byte [esp + 0x19], 0
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByteEx]
mov esi, eax
test esi, esi
je 0x40362d
mov ebp, dword [ebp]
cmp ebp, 0xffffffff
mov byte [esp + 0xf], 0
je 0x4035b7
push 0
lea ecx, [esp + 0x20]
push ecx
push 1
lea edx, [esp + 0x1b]
push edx
push ebp
mov dword [esp + 0x30], 0
call edi
cmp dword [esp + 0x1c], 0
jle 0x4035b7
mov al, byte [esp + 0xf]
mov byte [esp + 0x11], al
xor edx, edx
test esi, esi
setne dl
push 1
lea ecx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x18]
add edx, 1
push edx
push eax
push 8
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, 1
movzx eax, word [esp + 0x18]
je 0x40372b
mov eax, 0x3f
jmp 0x40372b
cmp al, 0xd
jne 0x4036bf
mov word [ebx], 0xd
cmp byte [ebp + 0xd], 0
je 0x40372e
lea ecx, [esp + 0xf]
push ecx
mov edx, 1
mov eax, ebp
mov byte [esp + 0x13], 0
call fcn.004032c0
test eax, eax
jle 0x40372e
cmp byte [esp + 0xf], 0xa
je 0x4036b8
mov ebp, dword [ebp]
cmp ebp, 0xffffffff
je 0x40372e
push 1
push esi
push 0xffffffffffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40372e
mov word [ebx], 0xa
jmp 0x40372e
cmp al, 0x5c
jne 0x403727
cmp byte [ebp + 0xc], 0
je 0x403727
xor eax, eax
lea edx, [esp + 0x21]
mov dword [esp + 0x21], eax
mov word [esp + 0x25], ax
mov byte [esp + 0x27], al
push edx
mov edx, 6
mov eax, ebp
mov byte [esp + 0x24], 0x5c
call fcn.004032c0
lea esi, [esp + 0x20]
mov edi, eax
call fcn.00409fe0
test al, al
je 0x403706
mov edi, ebx
call fcn.0040a050
jmp 0x40372e
test edi, edi
jle 0x403720
mov ebp, dword [ebp]
cmp ebp, 0xffffffff
je 0x403720
push 1
push 0
neg edi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov word [ebx], 0x5c
jmp 0x40372e
movzx ax, al
mov word [ebx], ax
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
xor ecx, esp
mov al, 1
call fcn.0040b277
add esp, 0x20
ret 4
Function at 0x403750
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [edi]
cmp eax, 0xffffffff
push ebp
mov byte [esp + 7], 0
je 0x403786
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x10]
push ecx
push 1
lea edx, [esp + 0x13]
push edx
push eax
mov dword [esp + 0x20], 0
call ebp
cmp dword [esp + 0xc], 0
jg 0x40378f
xor al, al
pop ebp
add esp, 0xc
ret 4
mov cl, byte [esp + 7]
cmp cl, 0x7f
ja 0x4037ac
movzx ax, cl
mov ecx, dword [esp + 0x14]
mov word [ecx], ax
mov al, 1
pop ebp
add esp, 0xc
ret 4
mov dl, cl
and dl, 0xe0
cmp dl, 0xc0
push esi
jne 0x4037be
mov esi, 2
jmp 0x4037dc
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x4037cd
mov esi, 3
jmp 0x4037dc
mov dl, cl
and dl, 0xf8
cmp dl, 0xf0
jne 0x403848
mov esi, 4
xor eax, eax
mov word [esp + 0xd], ax
mov byte [esp + 0xf], al
mov eax, dword [edi]
cmp eax, 0xffffffff
mov byte [esp + 0xc], cl
jne 0x4037f6
or eax, eax
jmp 0x403815
push 0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esi - 1]
push edx
lea ecx, [esp + 0x19]
push ecx
push eax
mov dword [esp + 0x24], 0
call ebp
mov eax, dword [esp + 0x10]
lea edx, [esi - 1]
cmp eax, edx
jl 0x403848
mov eax, dword [esp + 0x18]
push 1
push eax
push esi
lea ecx, [esp + 0x18]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
sub eax, 1
neg eax
sbb eax, eax
pop esi
add eax, 1
pop ebp
add esp, 0xc
ret 4
pop esi
xor al, al
pop ebp
add esp, 0xc
ret 4

Function at 0x403860
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
xor ecx, ecx
mov word [edi], cx
mov eax, dword [esi]
cmp eax, 0xffffffff
mov dword [esp], ecx
je 0x403891
push ecx
mov dword [esp + 8], ecx
lea ecx, [esp + 8]
push ecx
push 2
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 4], 2
jge 0x403897
xor al, al
add esp, 8
ret
cmp dword [esi + 8], 4
jne 0x4038b1
mov ax, word [esp]
rol ax, 8
movzx eax, ax
mov word [edi], ax
mov al, 1
add esp, 8
ret
mov eax, dword [esp]
mov word [edi], ax
mov al, 1
add esp, 8
ret

Function at 0x4038e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov edx, dword [esi + 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0xc]
push eax
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push str.SubFolderSearch
push edx
mov dword [esp + 0x1c], 0
call edi
test eax, eax
jne 0x40393a
cmp dword [esp + 8], 4
jne 0x40393a
mov edx, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0
push 0
push str.SubFolderSearch
push edx
call edi
test eax, eax
je 0x40393a
xor eax, eax
pop edi
add esp, 0xc
ret
mov eax, dword [esp + 4]
pop edi
add esp, 0xc
ret
Function at 0x403b40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40be6d
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x414018]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea edi, [esi + 4]
mov ecx, edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ebx, [esi + 8]
mov ecx, ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ebp, [esi + 0xc]
mov ecx, ebp
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov eax, dword [esp + 0x28]
push eax
mov ecx, esi
mov byte [esp + 0x20], 3
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
mov edx, dword [esp + 0x30]
push edx
mov ecx, ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
mov eax, dword [esp + 0x34]
push eax
mov ecx, ebp
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x14
Function at 0x404ed0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x844
mov eax, dword [0x414018]
xor eax, esp
mov dword [esp + 0x840], eax
push esi
push 2
push 0xffffffffffffffff
mov esi, ecx
mov eax, dword [esi + 0x388]
push 0x100c
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x404f6b
push eax
lea ecx, [esi + 0x368]
call sub.MFC80U.DLL_Ordinal_2860
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
lea ecx, [esp + 0x44]
call fcn.00402a90
mov edx, dword [esi + 0x20]
lea eax, [esp + 0x40]
mov dword [esp + 0x14], eax
xor eax, eax
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0xc
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 0x40efc0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [esp + 0x844]
pop esi
xor ecx, esp
call fcn.0040b277
mov esp, ebp
pop ebp
ret
Function at 0x406400
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40c971
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebp
push esi
push edi
mov eax, dword [0x414018]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
push str.SoftwareAutodeskAutodesk_Digital_Signatures
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_287]
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00403990
mov byte [esp + 0x30], 1
cmp dword [esp + 0x20], 0
je 0x40657b
mov edx, dword [edi + 0x2e0]
push 2
push 0xffffffffffffffff
push 0x100c
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
je 0x4064c5
push eax
lea ecx, [edi + 0x2c0]
call sub.MFC80U.DLL_Ordinal_2860
mov edx, dword [eax + 0xc]
mov eax, edx
lea ebp, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4064a0
mov ecx, dword [esp + 0x20]
sub eax, ebp
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edx
push 1
push 0
push str.LastCertificate
push ecx
call esi
mov edx, dword [edi + 0x488]
mov eax, edx
lea ebp, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4064d0
mov ecx, dword [esp + 0x20]
sub eax, ebp
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edx
push 1
push 0
push str.LastAddDirectory
push ecx
call esi
mov ecx, dword [edi + 0x480]
mov eax, ecx
lea edx, [eax + 2]
mov bp, word [eax]
add eax, 2
test bp, bp
jne 0x406500
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x20]
push edx
push ecx
push 1
push 0
push str.LastSearchFolder
push eax
call esi
mov ecx, dword [edi + 0x484]
mov eax, ecx
lea ebp, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x406530
sub eax, ebp
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x20]
push edx
push ecx
push 1
push 0
push str.LastSearchName
push eax
call esi
mov eax, dword [esp + 0x20]
xor ecx, ecx
cmp byte [edi + 0x490], cl
push 4
lea edx, [esp + 0x1c]
push edx
push 4
setne cl
push 0
push str.SubFolderSearch
push eax
mov dword [esp + 0x30], ecx
call esi
mov eax, dword [0x4146a0]
test eax, eax
je 0x40658c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [0x414780]
xor esi, esi
cmp dword [eax - 0xc], esi
je 0x4065c6
xor eax, eax
lea ebx, [ebx]
mov eax, dword [eax + 0x414788]
test eax, eax
je 0x4065b2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
add esi, 1
mov eax, esi
shl eax, 5
mov ecx, dword [eax + 0x414780]
cmp dword [ecx - 0xc], 0
jne 0x4065a0
mov ecx, edi
call sub.MFC80U.DLL_Ordinal_4206
mov eax, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x1c], vtable.AcRegistryAccess.0
je 0x4065ec
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x20], 0
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret
Function at 0x408dc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40c848
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x414018]
xor eax, esp
mov dword [esp + 0x810], eax
push esi
mov eax, dword [0x414018]
xor eax, esp
push eax
lea eax, [esp + 0x820]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov dword [esp + 0x828], 0
cmp byte [esi + 0x224], 0
jne 0x408e27
cmp byte [esi + 0x225], 0
je 0x408e37
lea eax, [esp + 0xc]
push eax
lea ecx, [esi + 0x1c4]
call sub.MFC80U.DLL_Ordinal_3756
mov ecx, dword [esp + 0xc]
push ecx
xor edx, edx
lea ecx, [esp + 0x18]
call fcn.00402a90
cmp byte [esi + 0x224], 0
jne 0x408e59
cmp byte [esi + 0x225], 0
je 0x408e7c
cmp word [esp + 0x14], 0
je 0x408e7c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408e7c
and al, 0x10
cmp al, 0x10
sete al
test al, al
jne 0x408ec4
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
push 0x7c
lea ecx, [esp + 0x14]
mov byte [esp + 0x82c], 1
call dword [sym.imp.MFC80U.DLL_Ordinal_4026]
mov eax, dword [esp + 0x10]
push 0x30
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_4098
lea ecx, [esi + 0x1c4]
call sub.MFC80U.DLL_Ordinal_5829
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
jmp 0x408f35
lea edx, [esi + 0x218]
push edx
lea ecx, [esi + 0x1c4]
call sub.MFC80U.DLL_Ordinal_3756
cmp byte [esi + 0x226], 0
jne 0x408efb
cmp byte [esi + 0x227], 0
jne 0x408efb
push str..dwg
lea ecx, [esi + 0x220]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
jmp 0x408f0d
lea eax, [esi + 0x220]
push eax
lea ecx, [esi + 0xc8]
call sub.MFC80U.DLL_Ordinal_3756
mov ecx, dword [esi + 0x190]
push 0
push 0
push 0xf0
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
setne dl
mov ecx, esi
mov byte [esi + 0x21c], dl
call sub.MFC80U.DLL_Ordinal_4729
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, dword [esp + 0x820]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x810]
xor ecx, esp
call fcn.0040b277
mov esp, ebp
pop ebp
ret
Function at 0x4093c0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x40c7f8
mov eax, dword fs:[0]
push eax
mov eax, 0x1a64
call fcn.0040b9d0
mov eax, dword [0x414018]
xor eax, esp
mov dword [esp + 0x1a60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x414018]
xor eax, esp
push eax
lea eax, [esp + 0x1a78]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1a8c]
mov edi, dword [esp + 0x1a88]
mov ebp, dword [esp + 0x1a94]
push edi
mov edx, esi
lea ecx, [esp + 0x828]
mov dword [esp + 0x20], esi
call fcn.00402a90
lea eax, [esp + 0x1824]
push eax
lea ecx, [esp + 0x828]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4094e4
jmp 0x409450
cmp word [esp + 0x1850], 0x2e
je 0x4094c6
push edi
lea edx, [esp + 0x1854]
lea ecx, [esp + 0x28]
call fcn.00402a90
lea esi, [esp + 0x18]
lea eax, [esp + 0x24]
call fcn.00403270
mov edx, esi
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x1a84], 0
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
mov byte [esp + 0x1a80], 1
mov ecx, dword [ebp + 8]
push eax
push ecx
mov ecx, ebp
call sub.MFC80U.DLL_Ordinal_5711
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, esi
mov dword [esp + 0x1a80], 0xffffffff
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x1824]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x409450
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [esp + 0x1a90], 0
je 0x409577
push edi
mov edx, 0x40f240
lea ecx, [esp + 0x28]
call fcn.00402a90
lea ecx, [esp + 0x1824]
push ecx
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x409577
jmp 0x409520
test byte [esp + 0x1824], 0x10
je 0x40955d
cmp word [esp + 0x1850], 0x2e
je 0x40955d
push edi
lea edx, [esp + 0x1854]
lea ecx, [esp + 0x1028]
call fcn.00402a90
push ebp
push 1
lea eax, [esp + 0x102c]
push esi
push eax
call fcn.004093c0
add esp, 0x10
lea ecx, [esp + 0x1824]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x409520
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x1a78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1a60]
xor ecx, esp
call fcn.0040b277
add esp, 0x1a70
ret
Function at 0x40a94e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a9a6
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x40efd6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a999
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40a9a8
xor eax, eax
pop esi
leave
ret 4

Function at 0x40b277
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x414018]
jne 0x40b281
repz ret
jmp fcn.0040b728