joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445224
Capabilities:
Shutdown system

Disassembly:
push 8
mov eax, 0x46d581
call fcn.0046b3ad
mov ebx, edx
mov edi, ecx
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 0x10], 0x13
test edi, edi
je 0x445260
cmp edi, 1
je 0x445260
cmp edi, 2
je 0x445260
cmp edi, 3
je 0x445260
mov esi, 0x80070057
jmp 0x4452ec
push ecx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.00445a93
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
js 0x4452ec
test edi, edi
je 0x4452ac
cmp edi, 1
je 0x4452ac
cmp edi, 2
je 0x445289
cmp edi, 3
jne 0x4452f3
xor eax, eax
cmp edi, 2
setne al
inc eax
push eax
call dword [sym.imp.ntdll.dll_NtShutdownSystem]
lea edx, [ebp - 0x10]
mov ecx, eax
call fcn.00444977
mov esi, dword [ebp - 0x10]
test eax, eax
je 0x4452ec
jmp 0x4452f3
test ebx, ebx
jne 0x4452b5
mov ebx, 0x80030002
mov ecx, 0x412770
test edi, edi
je 0x4452c3
mov ecx, 0x41279c
xor eax, eax
test edi, edi
push ebx
sete al
push eax
push 1
push 0
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
test eax, eax
jne 0x4452f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00417d89
mov esi, eax
mov ecx, esi
call fcn.0041802b
mov ecx, esi
call fcn.00418048
lea ecx, [ebp - 0x14]
call fcn.00446c06
lea ecx, [ebp - 0x14]
call fcn.00446c06
mov eax, esi
call fcn.0046b380
ret

Function at 0x445f1c
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], edx
mov esi, edi
mov dword [ebp - 8], edi
mov ebx, ecx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x445f4e
xor ecx, ecx
mov ebx, edi
call fcn.0041802b
jmp 0x445fed
dec ebx
je 0x445f76
dec ebx
je 0x445f6f
dec ebx
je 0x445f68
dec ebx
je 0x445f61
mov esi, 0x412800
jmp 0x445f7b
mov esi, 0x4127f4
jmp 0x445f7b
mov esi, 0x4127e4
jmp 0x445f7b
mov esi, 0x4127d8
jmp 0x445f7b
mov esi, 0x4127cc
lea ecx, [ebp - 8]
call fcn.00446cfc
mov edi, dword [ebp - 8]
push dword [ebp - 0xc]
push esi
test eax, eax
js 0x445fb9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push edi
lea eax, [ebp - 4]
push 0x412810
push eax
call fcn.0041473e
mov ebx, eax
add esp, 0x18
test ebx, ebx
jns 0x445fe3
mov ecx, ebx
call fcn.0041802b
mov esi, dword [ebp - 4]
jmp 0x445fed
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [ebp - 4]
push 0x412850
push eax
call fcn.0041473e
mov ebx, eax
add esp, 0x14
test ebx, ebx
jns 0x445fe3
mov ecx, ebx
call fcn.0041802b
mov edi, dword [ebp - 8]
jmp 0x445fb4
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, ebx
call fcn.00418048
test esi, esi
je 0x445fff
mov ecx, esi
call fcn.00417eee
test edi, edi
je 0x44600a
mov ecx, edi
call fcn.00417eee
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x447827
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x470008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov ebx, 0x206
push ebx
push eax
mov word [ebp - 0x20c], ax
mov edi, edx
lea eax, [ebp - 0x20a]
mov esi, ecx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push ebx
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x20c]
mov ebx, 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4478a6
cmp eax, ebx
ja 0x4478a6
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4478bc
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x4478bc
xor eax, eax
jmp 0x4478f4
lea eax, [ebp - 0x414]
push eax
push 0
push 0x412bf4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4478b8
lea eax, [ebp - 0x414]
mov edx, esi
push eax
mov ecx, edi
call fcn.004142e1
xor ecx, ecx
test eax, eax
setns cl
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450290
mov esp, ebp
pop ebp
ret
Function at 0x44790a
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x34
push 0x46f690
call fcn.00450ac4
mov eax, edx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
xor edi, edi
mov dword [ebp - 0x30], edi
or dword [ebp - 0x2c], 0xffffffff
or dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], edi
push edi
push 0x100
push 2
push edi
push edi
push 0xc0000000
push eax
mov esi, dword [0x472ecc]
mov ecx, esi
call dword [0x473450]
call esi
mov ebx, eax
mov dword [ebp - 0x2c], ebx
cmp ebx, 0xffffffff
je 0x4479eb
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x447981
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], edi
push edi
push edi
neg esi
sbb esi, esi
lea eax, [ebp - 0x3c]
and esi, eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov esi, dword [0x472ed4]
mov ecx, esi
call dword [0x473450]
call esi
test eax, eax
je 0x4479eb
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x4479eb
push edi
push eax
push dword [ebp - 0x24]
push 2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4479eb
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.00447a32
test edi, edi
je 0x447a22
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x447a0d
mov eax, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x447a19
mov eax, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x447a22
mov dword [eax], ebx
mov eax, edi
call fcn.00450b0c
ret 0xc
Function at 0x448616
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
push 0x46f760
call fcn.00450c3c
xor edi, edi
mov ebx, edi
mov dword [ebp - 0x20], ebx
push dword [0x47006c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x44876c
push 0x472e64
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], edi
cmp dword [0x472eac], esi
jne 0x448689
push 4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x472eac], eax
test eax, eax
je 0x448711
mov ecx, edi
mov dword [0x472eb0], ecx
mov dword [0x472ea0], 1
jmp 0x4486c9
mov ecx, dword [0x472eb0]
mov eax, dword [0x472ea0]
cmp ecx, eax
jne 0x4486c9
lea eax, [eax*4 + 4]
push eax
push dword [0x472eac]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x448711
mov dword [0x472eac], eax
inc dword [0x472ea0]
mov ecx, dword [0x472eb0]
mov eax, dword [0x472eac]
mov dword [eax + ecx*4], edi
push 0x8010
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x448711
lea eax, [esi + 0x10]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x8000
push esi
push dword [0x47006c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x448711
xor ebx, ebx
inc ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.00448740
test ebx, ebx
je 0x448741
mov ecx, dword [0x472eb0]
mov eax, dword [0x472eac]
mov dword [eax + ecx*4], esi
inc ecx
mov dword [0x472eb0], ecx
jmp 0x44875f
push edi
push dword [0x47006c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, edi
push 0x472e64
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
call fcn.00450c81
ret

Function at 0x4488b8
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x470070]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4488f1
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4488f1
mov eax, dword [eax]
mov eax, dword [eax + ecx*4 - 4]
test eax, eax
je 0x4488f1
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4488f1
mov eax, dword [eax + 8]
mov eax, dword [eax + ecx*4 - 4]
test eax, eax
je 0x4488f1
mov eax, dword [eax]
test eax, eax
jne 0x4488f6
mov eax, 0x4128cc
ret
Function at 0x4489ac
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x470008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
mov esi, ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x448a1e
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x448a0b
mov ebx, dword [ebp - 0x14]
jmp 0x448a13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x448a26
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00450290
mov esp, ebp
pop ebp
ret
Function at 0x4495ce
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x470008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x472f08], 0
jne 0x4497ca
push ebx
xor ebx, ebx
mov dword [0x472f08], 1
mov dword [0x472f04], ebx
cmp dword [0x472618], ebx
je 0x449627
mov dword [0x472618], ebx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
sbb eax, eax
neg eax
mov dword [0x472eec], eax
jmp 0x44962c
mov eax, dword [0x472eec]
mov dword [0x472ee4], 0x448f10
test eax, eax
je 0x4496b0
push 0x408c20
mov dword [0x472ee0], 0x4493d0
mov dword [0x472f0c], 0x449440
mov dword [0x472f00], 0x4494c0
mov dword [0x472ee8], 0x449190
mov dword [0x472edc], 0x449530
mov dword [0x472ecc], 0x449550
mov dword [0x472ef0], 0x449570
mov dword [0x472ed8], 0x449590
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x449700
push 0x412e54
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x449700
mov dword [0x472ee4], eax
jmp 0x449700
mov dword [0x472ee0], 0x448f20
mov dword [0x472f0c], 0x448fe0
mov dword [0x472f00], 0x4490c0
mov dword [0x472ee8], 0x449190
mov dword [0x472edc], 0x4491b0
mov dword [0x472ecc], 0x449230
mov dword [0x472ef0], 0x4492c0
mov dword [0x472ed8], 0x449350
push 0x103
lea eax, [ebp - 0x107]
mov dword [0x472ec8], 0x448db0
push ebx
push eax
mov dword [0x472efc], 0x448de0
mov dword [0x472ed0], 0x448e00
mov dword [0x472f10], 0x448e30
mov dword [0x472f14], 0x448e60
mov dword [0x472f18], 0x448e80
mov dword [0x472ef4], 0x448ed0
mov dword [0x472ef8], 0x4495b0
mov byte [ebp - 0x108], bl
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0x412e70
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x4497bf
push ebx
push ebx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
test eax, eax
jne 0x4497ac
push ebx
mov dword [0x472ed4], 0x448f00
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4497c9
push 0x412e90
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x472ed4], eax
jmp 0x4497c9
mov dword [0x472ed4], 0x448f00
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.00450290
mov esp, ebp
pop ebp
ret
Function at 0x450280
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x46fbe0
call fcn.00450ac4
and dword [ebp - 0x24], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov edi, dword [eax + 4]
xor esi, esi
mov edx, 0x472f38
mov ecx, edi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x450085
cmp eax, edi
jne 0x450097
mov esi, ebx
cmp dword [0x472f3c], ebx
jne 0x4500a4
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4500d3
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x45006e
cmp dword [0x472f3c], 0
jne 0x4500cd
mov dword [0x472f3c], ebx
push 0x401050
push 0x401044
call fcn.00450224
pop ecx
pop ecx
test eax, eax
je 0x4500d3
jmp 0x45020d
mov dword [0x4729c4], ebx
cmp dword [0x472f3c], ebx
jne 0x4500f6
push 0x401040
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x472f3c], 2
test esi, esi
jne 0x450103
xor eax, eax
mov ecx, 0x472f38
xchg dword [ecx], eax
cmp dword [0x472f48], 0
je 0x450131
push 0x472f48
call fcn.004508f0
pop ecx
test eax, eax
je 0x450131
push 0
push 2
push 0
mov esi, dword [0x472f48]
mov ecx, esi
call dword [0x473450]
call esi
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov ecx, dword [eax]
test ecx, ecx
je 0x45020d
mov dword [ebp - 0x20], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x24]
movzx eax, word [ecx]
cmp ax, si
ja 0x4501a1
test ax, ax
je 0x45015a
test edx, edx
jne 0x4501a1
movzx eax, word [ecx]
test ax, ax
je 0x45016f
cmp ax, si
ja 0x45016f
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x45015a
test byte [ebp - 0x40], 1
je 0x45017b
movzx eax, word [ebp - 0x3c]
jmp 0x45017e
push 0xa
pop eax
push eax
push ecx
push 0
push 0x400000
call main
mov dword [0x4729c0], eax
cmp dword [0x4729d8], 0
jne 0x4501e9
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0x22
jne 0x4501b2
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x24], edx
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x450149
cmp dword [0x4729c4], 0
jne 0x4501fd
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x4729c0]
mov dword [ebp - 4], 0xfffffffe
jmp 0x450219
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00450b0c
ret
call fcn.004509f8
jmp 0x450038

Function at 0x4507df
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x46fc88
call fcn.00450c3c
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x45083f
cmp eax, 0xffffffff
je 0x45083f
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x450838
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x450838
cmp edx, 0x10000000
jae 0x450838
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x450835
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00450c81
ret 4
Function at 0x4508a0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4508de
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4508d6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4508e0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4508c6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4509c0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4509d6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4509f1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x466082
Capabilities:
Parse credit card information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x470008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
xor ecx, ecx
push edi
mov edi, edx
mov dword [ebp - 8], ecx
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 8], ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x14]
mov dword [edi + 4], eax
mov eax, dword [ebx + 0x1c]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ecx
mov eax, dword [ebx + 0x10]
cmp dword [ebx + 0x14], eax
jb 0x4660d5
mov dword [edi + 4], eax
xor eax, eax
mov dword [edi], 3
jmp 0x4661a0
push esi
mov esi, dword [ebx + 0x18]
mov ecx, esi
call dword [0x473450]
mov ecx, dword [ebp - 0xc]
jmp 0x46618a
cmp ecx, 0x61
jb 0x4660f3
cmp ecx, 0x7a
jbe 0x466170
lea eax, [ecx - 0x41]
cmp eax, 0x19
jbe 0x466170
lea eax, [ecx - 0x30]
cmp eax, 9
jbe 0x466170
cmp ecx, 0x2f
ja 0x466139
cmp ecx, 0x28
jae 0x466176
cmp ecx, 0xa
je 0x466176
cmp ecx, 0xd
je 0x466176
cmp ecx, 0x1f
jbe 0x466157
cmp ecx, 0x21
jbe 0x466176
cmp ecx, 0x22
jbe 0x466157
cmp ecx, 0x25
jbe 0x466176
cmp ecx, 0x27
jne 0x466157
cmp dword [ebx + 0x24], 0xa
sete al
jmp 0x466172
cmp ecx, 0x3a
jb 0x466157
cmp ecx, 0x3b
jbe 0x466176
cmp ecx, 0x3d
je 0x466176
cmp ecx, 0x3e
jbe 0x466157
cmp ecx, 0x40
jbe 0x466176
cmp ecx, 0x5f
je 0x466176
mov eax, dword [ebp - 0xc]
mov dword [edi], 0xc
sub eax, dword [ebx + 0x14]
mov dword [edi + 8], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x10], eax
xor eax, eax
jmp 0x46619f
mov al, 1
test al, al
je 0x466157
mov esi, dword [ebx + 0x18]
mov ecx, esi
inc dword [ebp - 8]
mov dword [ebp - 0xc], edx
call dword [0x473450]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call esi
mov ecx, eax
mov dword [ebp - 0x14], edx
cmp ecx, 0xffffffff
jne 0x4660e9
mov eax, edx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00450290
mov esp, ebp
pop ebp
ret
Function at 0x403fe1
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push dword [ebp + 8]
push 0
xor eax, eax
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
nop
nop
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40404b
cmp dword [ebp - 8], 0
je 0x40404b
mov eax, 1
jmp 0x404050
mov eax, 0
test eax, eax
je 0x404132
mov dword [ebp - 0xc], 0x2b4
push dword [ebp - 0xc]
push 0x40
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
nop
nop
mov dword [ebp - 0x10], eax
push 0
xor eax, eax
call dword [sym.imp.ole32.dll_CoInitialize]
nop
nop
push 0x80000301
push 0
push 8
push 0x80000301
push 0
push 0x200
push 2
mov ebx, 0xc8
call fcn.0040b3f0
add esp, 0x1c
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
nop
nop
mov dword [ebp - 4], eax
xor eax, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
nop
nop
cmp dword [ebp - 4], 0
je 0x404118
fild dword [ebp - 0x10]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x44b45c]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.0040113f
push eax
call fcn.00403c1f
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x404114
push ebx
call fcn.0040a7d0
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.SHELL32.dll_ILFree]
nop
nop
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40414c
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040a7ca
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x404151
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x404162
push ebx
call fcn.0040a7d0
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x406c58
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x406c9f
cmp ebx, 0x20
je 0x406c9f
cmp ebx, 0xffffffe0
je 0x406c9f
jne 0x406ca8
add eax, 1
cmp esi, eax
je 0x406cb5
jne 0x406c84
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x406cb9
jne 0x406c80
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0x406ccd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x406d8e
test ecx, ecx
je 0x406d8e
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x406d8e
test ebx, ebx
je 0x406d8e
mov ebx, eax
add ebx, edx
je 0x406d8e
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x406d8e
cmp dword [edx + eax + 0x14], 0
je 0x406d8e
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x406d8e
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x406d7e
test dl, dl
je 0x406d7a
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x406d7e
add edi, 2
add esi, 2
test dl, dl
jne 0x406d5e
xor eax, eax
jmp 0x406d83
sbb eax, eax
or eax, 1
test eax, eax
je 0x406d9a
inc ebp
cmp ebp, dword [esp + 4]
jb 0x406d4b
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8