joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48a1d3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x48a1ed
call fcn.00405312
mov esi, dword [eax + 0xc]
push dword [0x5669e0]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x48a20b
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x48a203
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x48a238
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x48a205
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0048a101
mov esi, eax
jmp 0x48a22a

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

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0040f298
call fcn.004030c3
cmp eax, esi
pop esi
jne 0x4d72e6
mov ecx, 0x564ab8
jmp fcn.0041ca3d
ret

Function at 0x4dac6a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4dac82
mov edi, dword [esi + 0xc]
jmp 0x4dacc2
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4dac9b
call fcn.004038ee
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4dacb0
call fcn.004038ee
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4dacc2
call fcn.004038ee
call fcn.00405312
cmp dword [eax + 0x3c], 0
je 0x4dacd7
push edi
mov ecx, ebx
call fcn.004d9a94
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004dab84
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4dacf5
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4dad01
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4f5c49
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x561490]
jne 0x4f5c53
repz ret
jmp fcn.004fcb63
Function at 0x5072d8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x561490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004fc58b
and dword [ebp - 0x14], 0
cmp dword [0x568f84], 0
mov dword [ebp - 0x18], eax
jne 0x50738b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x507433
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5426d8
push ebx
call edi
test eax, eax
je 0x507433
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5426c8
push ebx
mov dword [0x568f84], eax
call edi
push eax
call esi
push 0x5426b4
push ebx
mov dword [0x568f88], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x568f8c], eax
call edi
push eax
call esi
mov dword [0x568f94], eax
test eax, eax
je 0x50738b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x568f90], eax
mov eax, dword [0x568f90]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5073e4
cmp dword [0x568f94], ecx
je 0x5073e4
push eax
call esi
push dword [0x568f94]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5073e4
test ebx, ebx
je 0x5073e4
call edi
test eax, eax
je 0x5073db
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5073db
test byte [ebp - 8], 1
jne 0x5073e4
or dword [ebp + 0x10], 0x200000
jmp 0x507417
mov eax, dword [0x568f88]
cmp eax, dword [ebp - 0x18]
je 0x507417
push eax
call esi
test eax, eax
je 0x507417
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x507417
mov eax, dword [0x568f8c]
cmp eax, dword [ebp - 0x18]
je 0x507417
push eax
call esi
test eax, eax
je 0x507417
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x568f84]
call esi
test eax, eax
je 0x507433
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x507435
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f5c49
leave
ret
Function at 0x41960b
Capabilities:
Terminate process

Disassembly:
call fcn.00419618
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x4011b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4011c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4011dd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4011fe
cmp esi, eax
jae 0x4011d7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4011f0
cmp esi, eax
jae 0x4011d7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4013b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42a398
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x30]
movzx ecx, ah
push ebx
movzx ebx, al
shr eax, 0x10
movzx edx, al
mov eax, dword [esp + 0x38]
push ebp
movzx ebp, ah
push edi
movzx edi, al
shr eax, 0x10
movzx eax, al
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x40], eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x4c]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], 3
jle 0x4014f0
push esi
mov esi, dword [esp + 0x54]
cmp esi, eax
jle 0x4014ef
jmp 0x401430
xor eax, eax
mov edi, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], vtable.CBrush.0
xor edx, edx
mov dh, byte [esp + 0x10]
mov dword [esp + 0x34], eax
movzx eax, bl
mov dl, byte [esp + 0x40]
shl edx, 8
or edx, eax
push edx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x18]
call fcn.00423045
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [eax + 4]
lea edx, [esp + 0x20]
push edx
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov eax, 3
add ecx, eax
add edx, eax
mov dword [esp + 0x20], edx
mov eax, edi
sub eax, ebx
cdq
idiv esi
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x14], vtable.CGdiObject.0
lea edx, [eax + ebx]
lea ebx, [edx + eax*2]
mov eax, ebp
sub eax, ecx
cdq
idiv esi
add ecx, eax
lea edx, [ecx + eax*2]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
sub eax, ecx
mov dword [esp + 0x40], edx
cdq
idiv esi
add ecx, eax
lea edx, [ecx + eax*2]
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edx
call fcn.0042309c
sub esi, 3
test esi, esi
jg 0x40142c
pop esi
mov ecx, dword [esp + 0x28]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 0x1c
Function at 0x403d40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42a658
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00403930
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.004015f0
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x403dd2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x409190
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa8
mov eax, dword [0x437b78]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov dword [esp + 0xac], eax
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x9c
call esi
test eax, eax
jne 0x4091e7
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x94
call esi
test eax, eax
je 0x4092d7
mov eax, dword [esp + 0x18]
dec eax
je 0x409279
dec eax
jne 0x4092d7
mov eax, dword [esp + 0xc]
cmp eax, 5
jne 0x40925d
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x409222
mov eax, 0x208
mov ecx, dword [esp + 0xac]
call fcn.0040e594
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x40923e
mov eax, 0x1fe
mov ecx, dword [esp + 0xac]
call fcn.0040e594
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x4092d7
mov eax, 0x1f4
mov ecx, dword [esp + 0xac]
call fcn.0040e594
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 4
ja 0x4092d7
mov eax, 0x1f3
mov ecx, dword [esp + 0xac]
call fcn.0040e594
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0xc], 4
jne 0x4092d7
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40929f
mov eax, 0x190
mov ecx, dword [esp + 0xac]
call fcn.0040e594
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jne 0x4092bb
mov eax, 0x19a
mov ecx, dword [esp + 0xac]
call fcn.0040e594
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0x5a
jne 0x4092d7
mov eax, 0x1ea
mov ecx, dword [esp + 0xac]
call fcn.0040e594
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xac]
or eax, 0xffffffff
call fcn.0040e594
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409850
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x214
mov eax, dword [0x437b78]
push 0
mov dword [esp + 0x214], eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp]
push eax
push 0x43199c
push 1
push 0
push 0x4319ac
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40995b
mov eax, dword [esp]
mov ecx, dword [eax]
push esi
lea edx, [esp + 8]
push edx
push 0x4319cc
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x40994e
mov edx, dword [esp + 0x21c]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
test eax, eax
jge 0x4098cb
push 0
push 0
push str.SetPath_failed_
call fcn.0042441a
mov edx, dword [esp + 0x224]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x4098ef
push 0
push 0
push str.SetDescription_failed_
call fcn.0042441a
mov ecx, dword [esp + 0x220]
push 0x104
lea eax, [esp + 0x10]
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [esp + 0x228]
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x2c]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push 1
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [edx + 0x18]
mov esi, eax
test esi, esi
jge 0x409944
push 0
push 0
push str.Save_failed_
call fcn.0042441a
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x210]
call fcn.0040e594
add esp, 0x214
ret
Function at 0x4099c0
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push esi
xor esi, esi
cmp eax, esi
je 0x409ac4
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x409ac4
push ebp
xor edx, edx
xor ebp, ebp
cmp eax, esi
push edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0xc], esi
jle 0x409a62
mov eax, dword [esp + 0x24]
add eax, 0xfffffffe
mov dword [esp + 0x10], eax
push ebx
lea esp, [esp]
cmp esi, dword [esp + 0x14]
jge 0x409a61
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov bl, byte [ecx + ebp]
push ebx
call fcn.00409970
add esp, 4
cmp eax, 0x3f
jg 0x409a53
or edx, eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
and eax, 0x80000003
jns 0x409a34
dec eax
or eax, 0xfffffffc
inc eax
jne 0x409a4e
mov eax, edx
mov byte [esi + edi + 2], dl
shr eax, 8
shr edx, 0x10
mov byte [esi + edi], dl
mov byte [esi + edi + 1], al
add esi, 3
xor edx, edx
shl edx, 6
jmp 0x409a58
cmp bl, 0x3d
je 0x409a61
mov eax, dword [esp + 0x20]
inc ebp
cmp ebp, eax
jl 0x409a00
pop ebx
mov eax, dword [esp + 0xc]
and eax, 0x80000003
jns 0x409a72
dec eax
or eax, 0xfffffffc
inc eax
cmp eax, 3
ja case.0x409a77.1
jmp dword [eax*4 + 0x409acc]
pop edi
pop ebp
mov eax, esi
pop esi
add esp, 8
ret
mov ecx, dword [esp + 0x18]
cmp byte [ecx + ebp + 1], 0x3d
jne case.0x409a77.1
shr edx, 0xa
mov byte [esi + edi], dl
pop edi
pop ebp
lea eax, [esi + 1]
pop esi
add esp, 8
ret
mov eax, edx
shr eax, 8
mov byte [esi + edi + 1], al
shr edx, 0x10
mov byte [esi + edi], dl
pop edi
pop ebp
lea eax, [esi + 2]
pop esi
add esp, 8
ret
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 8
ret
xor eax, eax
pop esi
add esp, 8
ret
Function at 0x409ae0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, dword [esp + 8]
test ebp, ebp
je 0x409c18
mov edx, dword [esp + 0xc]
test edx, edx
je 0x409c18
push esi
mov esi, dword [esp + 0x14]
push edi
xor edi, edi
xor eax, eax
add edx, 0xfffffffd
js 0x409b7c
push ebx
lea esp, [esp]
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffffc
cmp eax, ecx
jg 0x409b7b
movzx ebx, byte [edi + ebp + 2]
xor ecx, ecx
mov ch, byte [edi + ebp]
add edi, 3
add eax, 4
mov cl, byte [edi + ebp - 2]
shl ecx, 8
or ecx, ebx
mov ebx, ecx
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi - 1], bl
shr ecx, 6
mov ebx, ecx
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
shr ecx, 6
mov byte [eax + esi - 2], bl
mov ebx, ecx
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
shr ecx, 6
and ecx, 0x3f
cmp edi, edx
mov byte [eax + esi - 3], bl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi - 4], cl
jle 0x409b10
pop ebx
mov ecx, dword [esp + 0x14]
cmp ecx, edi
jne 0x409b95
mov edx, dword [esp + 0x1c]
dec edx
cmp eax, edx
jge 0x409b91
mov byte [eax + esi], 0
pop edi
pop esi
pop ebp
ret
sub ecx, edi
cmp ecx, 1
jne 0x409bb7
movzx ecx, byte [edi + ebp]
mov dl, 0x3d
mov byte [eax + esi + 3], dl
mov byte [eax + esi + 2], dl
mov edx, ecx
and edx, 3
shl edx, 4
shr ecx, 2
jmp 0x409be5
cmp ecx, 2
jne 0x409c12
xor ecx, ecx
mov ch, byte [edi + ebp]
mov cl, byte [edi + ebp + 1]
mov byte [eax + esi + 3], 0x3d
mov edx, ecx
and edx, 0xf
mov dl, byte [edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
shr ecx, 4
mov byte [eax + esi + 2], dl
mov edx, ecx
and edx, 0x3f
shr ecx, 6
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and ecx, 0x3f
mov byte [eax + esi + 1], dl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [esp + 0x1c]
mov byte [eax + esi], cl
lea ecx, [eax + 4]
dec edx
cmp ecx, edx
jge 0x409c0c
mov byte [eax + esi + 4], 0
pop edi
pop esi
mov eax, ecx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x409c60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42ae88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [0x437b78]
push ebx
push esi
xor esi, esi
mov dword [esp + 0x4c], eax
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], vtable.CFont.0
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x70]
push 0x42d23c
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x64], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], 0x1f4
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
call fcn.004275d8
mov esi, dword [esp + 0x64]
mov eax, dword [esi]
push 0xc0c0c0
mov ecx, esi
call dword [eax + 0x30]
mov edx, dword [esi]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call dword [edx + 0x28]
push 1
mov ecx, esi
call fcn.00422930
mov ebx, dword [esp + 0x6c]
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
mov edi, dword [esp + 0x68]
mov edx, dword [esi]
push 0x2010
push edi
push ecx
push eax
mov ecx, esi
call dword [edx + 0x68]
mov ecx, dword [esp + 0x74]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov ecx, dword [edi]
mov eax, dword [edi + 4]
dec ecx
mov dword [edi], ecx
dec eax
mov dword [edi + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi]
push 0x2010
push edi
push ecx
push eax
mov ecx, esi
call dword [edx + 0x68]
lea ecx, [esp + 0xc]
mov dword [esp + 0x5c], 0xffffffff
mov dword [esp + 0xc], vtable.CGdiObject.0
call fcn.0042309c
mov ecx, dword [esp + 0x54]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x48]
pop ebx
call fcn.0040e594
add esp, 0x54
ret

Function at 0x40a6d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42afb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push 0x104
mov dword [esp + 0xc], 0
call fcn.0041f599
add esp, 4
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x17
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov ecx, dword [esp + 8]
push esi
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push esi
lea ecx, [esp + 8]
call fcn.004018d0
mov eax, dword [esp + 4]
add eax, 0xfffffff0
push eax
mov dword [esp + 0x18], 0
call fcn.004015f0
mov esi, dword [esp + 0x20]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x14], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a76c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40a780
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42afb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push 0x104
mov dword [esp + 0xc], 0
call fcn.0041f599
add esp, 4
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov ecx, dword [esp + 8]
push esi
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push esi
lea ecx, [esp + 8]
call fcn.004018d0
mov eax, dword [esp + 4]
add eax, 0xfffffff0
push eax
mov dword [esp + 0x18], 0
call fcn.004015f0
mov esi, dword [esp + 0x20]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x14], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a81c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x40a8a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42afd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push 0x105
mov dword [esp + 8], 0
call fcn.0041f599
add esp, 4
mov esi, eax
push 0x105
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
lea ecx, [esp + 8]
call fcn.004018d0
mov eax, dword [esp + 4]
add eax, 0xfffffff0
push eax
mov dword [esp + 0x14], 0
call fcn.004015f0
mov esi, dword [esp + 0x1c]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x10], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a92b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40a940
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42afd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push 0x105
mov dword [esp + 8], 0
call fcn.0041f599
add esp, 4
mov esi, eax
push 0x105
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
lea ecx, [esp + 8]
call fcn.004018d0
mov eax, dword [esp + 4]
add eax, 0xfffffff0
push eax
mov dword [esp + 0x14], 0
call fcn.004015f0
mov esi, dword [esp + 0x1c]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x10], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a9cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40ac20
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42afb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push 0x105
mov dword [esp + 0xc], 0
call fcn.0041f599
add esp, 4
mov esi, eax
push esi
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
lea ecx, [esp + 0xc]
call fcn.004018d0
push 1
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0
call fcn.004037d0
mov eax, dword [eax]
push 0x42d034
push eax
call fcn.0040edb6
add esp, 8
test eax, eax
je 0x40aca2
mov ecx, dword [esp + 8]
mov eax, dword [ecx - 0xc]
test eax, eax
jle 0x40aca2
mov bl, 1
jmp 0x40aca4
xor bl, bl
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40acc2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x40acd6
push 1
push 0x42d034
lea ecx, [esp + 0x10]
call fcn.00403a10
push esi
call fcn.0041f594
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.004015f0
mov esi, dword [esp + 0x28]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
add esp, 8
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ad1b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret