joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403fb0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b6c8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5acf20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
test edx, edx
je 0x4040b4
cmp byte [edx], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jne 0x404001
xor ecx, ecx
jmp 0x40400f
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404006
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00404f50
mov edi, dword [ebp - 0x18]
mov dword [ebp - 4], 0
lea ecx, [edi - 1]
cmp edi, ecx
ja 0x404034
push str.invalid_string_position
call fcn.00548d6f
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp byte [eax + ecx], 0x5c
je 0x404054
push 0x5c
push 1
lea ecx, [ebp - 0x28]
call fcn.00404bb0
mov edi, dword [ebp - 0x18]
xor esi, esi
test edi, edi
jle 0x4040a3
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp byte [eax + esi], 0x5c
jne 0x40409e
push esi
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00405b60
cmp dword [eax + 0x14], 0x10
jb 0x404088
mov eax, dword [eax]
push 0
push eax
call ebx
cmp dword [ebp - 0x2c], 0x10
jb 0x40409e
push dword [ebp - 0x40]
call fcn.00406027
add esp, 4
inc esi
cmp esi, edi
jl 0x404060
cmp dword [ebp - 0x14], 0x10
jb 0x4040b4
push dword [ebp - 0x28]
call fcn.00406027
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052c2cf
mov esp, ebp
pop ebp
ret

Function at 0x40a963
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x40a9a8
call fcn.00413c9d
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40a9a8
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40a9c4
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041555f
mov ebx, eax
test edi, edi
je 0x40a9c2
test esi, esi
je 0x40a9c2
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40f67c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00413c9d
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40f6b3
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0040f6d4
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x411b24
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54bd20
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.0052c730
mov eax, dword [0x5acf20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 0x10]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x101c], edx
mov dword [ebp - 0x1028], ebx
cmp dword [ecx + 0x58], ebx
je 0x411c58
push ebx
push eax
call fcn.00411ca7
mov ebx, eax
test ebx, ebx
jne 0x411b8c
push esi
jmp 0x411c80
call fcn.00407757
push eax
lea ecx, [ebp - 0x1014]
call fcn.00401e40
xor ecx, ecx
lea eax, [ebp - 0x1018]
push eax
push ecx
lea eax, [ebp - 0x1020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x101c]
mov dword [ebp - 0x1020], ecx
push ebx
mov dword [ebp - 0x1018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x1024], eax
test eax, eax
jne 0x411c17
push dword [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
call fcn.00406d2d
lea ecx, [ebp - 0x1018]
push ecx
push eax
lea eax, [ebp - 0x1020]
push eax
push 0
push dword [ebp - 0x101c]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x1024], eax
call fcn.0040ce21
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1024], 0
jne 0x411c45
mov esi, dword [ebp - 0x1014]
add esi, 0xfffffff0
push esi
call fcn.00402710
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.004041b0
jmp 0x411c87
push esi
mov ecx, edi
call fcn.0040624b
mov ecx, dword [ebp - 0x1014]
lea ecx, [ecx - 0x10]
jmp 0x411c3e
test esi, esi
jne 0x411c61
mov esi, 0x55bce0
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x1010]
push 0x1000
push ecx
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, edi
call fcn.0040624b
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052c2cf
mov esp, ebp
pop ebp
ret 0x10
Function at 0x418e40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x5acf20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x418ed2
test esi, esi
je 0x418ed2
push esi
call fcn.0052d1b0
push 0xff
mov ebx, eax
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x103]
push 0
push eax
call fcn.0052cdb0
mov eax, 0x100
add esp, 0x10
cmp ebx, eax
ja 0x418eb7
push eax
lea eax, [ebp - 0x104]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
jne 0x418eb7
push esi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x418ebf
push esi
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052c2cf
mov esp, ebp
pop ebp
ret 8
call fcn.00406084
int3
Function at 0x41e670
Capabilities:
Get disk information

Disassembly:
push 0x158
mov eax, 0x54ca75
call fcn.0052d103
mov esi, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0xc]
test esi, esi
mov edi, dword [ebp + 0x10]
setne al
mov dword [ebp - 0x158], esi
test eax, eax
jne 0x41e69e
call fcn.00406084
xor eax, eax
test ebx, ebx
setne al
test eax, eax
je 0x41e699
lea eax, [ebp - 0x154]
push eax
push esi
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x41e6e6
push 0xffffffffffffffff
push ebx
push 0x104
push esi
call fcn.0052d083
push eax
call fcn.0040605a
add esp, 0x14
push ebx
push edi
call fcn.0041e643
xor eax, eax
jmp 0x41e807
cmp eax, 0x104
jb 0x41e703
test edi, edi
je 0x41e6df
push ebx
lea ecx, [edi + 0x10]
mov dword [edi + 8], 3
call fcn.00406e8a
jmp 0x41e6df
call fcn.00407757
push eax
lea ecx, [ebp - 0x15c]
call fcn.00401e40
and dword [ebp - 4], 0
lea eax, [ebp - 0x15c]
push eax
push esi
call fcn.0041e019
mov esi, dword [ebp - 0x15c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x41e7fc
xor ecx, ecx
lea eax, [ebp - 0x160]
push ecx
push ecx
push eax
lea eax, [ebp - 0x164]
push eax
push ecx
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x41e76e
push ebx
push edi
call fcn.0041e643
lea ecx, [esi - 0x10]
call fcn.004041b0
jmp 0x41e6df
mov eax, dword [ebp - 0x160]
test al, 2
jne 0x41e78a
push dword [ebp - 0x158]
call dword [sym.imp.USER32.dll_CharUpperA]
mov eax, dword [ebp - 0x160]
test al, 4
jne 0x41e7fc
lea eax, [ebp - 0x150]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x41e7fc
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x154]
test eax, eax
je 0x41e75a
cmp eax, dword [ebp - 0x158]
jbe 0x41e75a
lea eax, [ebp - 0x124]
push eax
call fcn.0052d1b0
mov edx, dword [ebp - 0x154]
sub edx, dword [ebp - 0x158]
pop ecx
add eax, edx
mov ecx, 0x104
cmp eax, ecx
jge 0x41e80f
lea eax, [ebp - 0x124]
sub ecx, edx
push eax
push ecx
push dword [ebp - 0x154]
call fcn.0053033e
push eax
call fcn.0040605a
add esp, 0x10
lea ecx, [esi - 0x10]
call fcn.004041b0
xor eax, eax
inc eax
call fcn.0052d0b2
ret 0xc
test edi, edi
je 0x41e761
push ebx
lea ecx, [edi + 0x10]
mov dword [edi + 8], 3
call fcn.00406e8a
jmp 0x41e761
Function at 0x427422
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0040828a
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x42745e
call fcn.00427641
mov dword [esi + 0xc], 1
jmp 0x427463
call fcn.00427641
cmp dword [esi], 0
je 0x4274ac
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x427486
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0040aaa7
jmp 0x427497
push 0xff
mov ecx, esi
call fcn.00406d2d
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040ce21
jmp 0x4274d0
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x4274d0
push dword [esi]
push dword [ebp - 4]
call fcn.00418e40
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x427596
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00427641
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4275de
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040aaa7
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040ce21
jmp 0x4275e9
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00418e40
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x427685
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x5acf20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
push eax
mov dword [ebp - 0x48], esi
call fcn.00427641
cmp dword [edi], 0
mov ebx, eax
mov dword [edi + 0xc], 1
je 0x4276f6
mov esi, dword [ebp + 0x18]
lea eax, [ebp - 0x44]
push 0x40
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push esi
push dword [ebp - 0x48]
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.005319ff
add esp, 0x10
cmp eax, 1
je 0x427744
push 0xffffffffffffffff
push 0
push dword [ebp + 0x14]
call fcn.004126b6
mov ecx, edi
call fcn.004275ef
jmp 0x427744
call fcn.0052d36a
mov edi, dword [eax]
call fcn.0052d36a
and dword [eax], 0
lea eax, [ebp + 0x18]
push eax
push esi
push 0x3f
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.0052f19b
add esp, 0x14
call fcn.0052d36a
cmp dword [eax], 0
je 0x427733
call fcn.0052d36a
push dword [eax]
call fcn.00406889
pop ecx
jmp 0x42773a
call fcn.0052d36a
mov dword [eax], edi
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.00418e40
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052c2cf
mov esp, ebp
pop ebp
ret
Function at 0x429842
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x5acf20]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x429897
xor eax, eax
test esi, esi
sete al
or eax, 0x4000
push eax
push 0x160
lea eax, [ebp - 0x26c]
push eax
push 0
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0052c2cf
mov esp, ebp
pop ebp
ret 4
Function at 0x4299fb
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x71c
mov eax, dword [0x5acf20]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
test edx, edx
je 0x429c1a
test esi, esi
je 0x429c1a
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x45c], ebx
mov dword [ebp - 0x458], ebx
mov dword [ebp - 0x454], ebx
mov dword [ebp - 0x450], ebx
mov dword [ebp - 0x44c], ebx
mov dword [ebp - 0x448], ebx
mov dword [ebp - 0x334], ebx
mov dword [ebp - 0x330], ebx
mov dword [ebp - 0x32c], ebx
mov dword [ebp - 0x328], ebx
mov dword [ebp - 0x324], ebx
mov dword [ebp - 0x320], ebx
sub eax, ebx
je 0x429beb
dec eax
je 0x429a8d
dec eax
je 0x429b53
dec eax
jne 0x429c05
mov edi, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp - 0x108]
push eax
push dword [edx + 4]
call edi
test eax, eax
je 0x429be6
push ebx
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00426560
test eax, eax
je 0x429be6
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 4]
call edi
test eax, eax
je 0x429b4b
push ebx
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00426560
test eax, eax
je 0x429b4b
cmp dword [ebp + 0x10], 1
jne 0x429bab
test byte [ebp - 0x43c], 0x10
jne 0x429be6
test byte [ebp - 0x314], 0x10
jne 0x429b4b
mov ecx, dword [ebp - 0x318]
mov eax, dword [ebp - 0x31c]
cmp dword [ebp - 0x440], ecx
ja 0x429b4b
jb 0x429be6
cmp dword [ebp - 0x444], eax
jb 0x429be6
cmp dword [ebp - 0x440], ecx
jb 0x429c05
ja 0x429b4b
cmp dword [ebp - 0x444], eax
jbe 0x429c05
xor ebx, ebx
inc ebx
jmp 0x429c05
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea eax, [ebp - 0x71c]
push 0x408
push 0x160
push eax
push ebx
push dword [edx + 4]
call edi
test eax, eax
je 0x429c05
push 0x408
push 0x160
lea eax, [ebp - 0x5bc]
push eax
push ebx
push dword [esi + 4]
call edi
test eax, eax
je 0x429c05
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x60c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ebx, eax
jmp 0x429c05
push dword [ebp - 0x328]
lea ecx, [ebp - 0x454]
push dword [ebp - 0x32c]
call fcn.00429122
test al, al
jne 0x429be6
push dword [ebp - 0x328]
lea ecx, [ebp - 0x454]
push dword [ebp - 0x32c]
call fcn.00429141
xor ebx, ebx
test al, al
setne bl
jmp 0x429c05
or ebx, 0xffffffff
jmp 0x429c05
push dword [esi + 8]
mov eax, dword [edx]
push dword [edx + 8]
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test eax, eax
jns 0x429c02
xor eax, eax
jmp 0x429c07
movsx ebx, ax
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052c2cf
mov esp, ebp
pop ebp
ret 0xc
call fcn.00406084
int3
Function at 0x475424
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x475472
push esi
mov ebx, 0x811c9dc5
xor edi, edi
call fcn.0052d1b0
xor edx, edx
mov dword [ebp + 8], 0xa
pop ecx
mov ecx, eax
div dword [ebp + 8]
inc eax
test ecx, ecx
je 0x475467
mov edx, ecx
movsx ecx, byte [edi + esi]
add edi, eax
imul ebx, ebx, 0x1000193
xor ebx, ecx
cmp edi, edx
jb 0x475455
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00406084
int3

Function at 0x4d0e2b
Capabilities:
Get file system object information

Disassembly:
push 0x270
mov eax, 0x555be4
call fcn.0052d103
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00402710
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x278], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x278]
push 0
push 0x55db6c
call fcn.00410e9e
cmp eax, 0xffffffff
jne 0x4d0edf
push 0
push 0x55bfb8
lea ecx, [ebp - 0x278]
call fcn.00410e9e
cmp eax, 0xffffffff
jne 0x4d0edf
push 0
push 0x55dae0
lea ecx, [ebp - 0x278]
call fcn.00410e9e
cmp eax, 0xffffffff
jne 0x4d0edf
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00402710
pop ecx
lea edi, [eax + 0x10]
mov dword [ebp - 0x27c], edi
xor ecx, ecx
mov byte [ebp - 4], 1
push ecx
lea eax, [ebp - 0x114]
push eax
push 0x104
push ecx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x4d0ebb
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
lea ecx, [edi - 0x10]
mov ebx, eax
call fcn.004041b0
jmp 0x4d0f0e
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x278]
call fcn.00406e8a
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 0
call fcn.004041b0
mov esi, dword [ebp - 0x278]
push 0x105
push 0x160
lea eax, [ebp - 0x274]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x4d0f05
mov ebx, dword [ebp - 0x274]
jmp 0x4d0f0e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.004041b0
mov eax, ebx
call fcn.0052d0b2
ret
Function at 0x4f4844
Capabilities:
Get common file path

Disassembly:
push 0x120
mov eax, 0x5577b5
call fcn.0052d103
mov ebx, ecx
mov dword [ebp - 0x12c], ebx
call fcn.00511df6
push 0x1c4
call fcn.00405ff1
pop ecx
mov dword [ebp - 0x128], eax
and dword [ebp - 4], 0
test eax, eax
je 0x4f4887
push 0
push dword [ebx + 0x60]
mov ecx, eax
call fcn.00512423
jmp 0x4f4889
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
push eax
call fcn.00511271
call fcn.00413c9d
mov esi, 0x104
mov eax, dword [eax + 4]
mov ebx, dword [eax + 0x8c]
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x114]
push eax
call fcn.0052d1b0
mov edi, eax
pop ecx
mov byte [ebp + edi - 0x114], 0x5c
inc edi
cmp edi, esi
jae 0x4f4aa6
xor eax, eax
mov byte [ebp + edi - 0x114], 0
mov dword [ebp - 0x128], eax
test ebx, ebx
je 0x4f4aa0
xor esi, esi
mov dword [ebp - 0x120], esi
cmp dword [ebx + 4], eax
jle 0x4f4aa0
call fcn.00407757
push eax
lea ecx, [ebp - 0x118]
call fcn.00401e40
mov eax, dword [ebx]
xor ecx, ecx
inc ecx
push ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x114]
push edi
push ecx
push esi
lea ecx, [ebp - 0x118]
push ecx
mov ecx, ebx
call dword [eax + 0xc]
test eax, eax
je 0x4f4a7e
push 0x56d3b4
mov esi, 0x56d3b8
lea ecx, [ebp - 0x118]
push esi
call fcn.00444078
push esi
push 0x564654
lea ecx, [ebp - 0x118]
call fcn.00444078
push esi
push 0x56d3b4
lea ecx, [ebp - 0x118]
call fcn.00444078
call fcn.00407757
push eax
lea ecx, [ebp - 0x124]
call fcn.00401e40
mov eax, dword [ebp - 0x128]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x4f49aa
push dword [ebp - 0x118]
lea eax, [ebp - 0x124]
push str.10__s
push eax
call fcn.0040a9cd
add esp, 0xc
jmp 0x4f49dc
jge 0x4f49ca
push dword [ebp - 0x118]
inc eax
push eax
lea eax, [ebp - 0x124]
push str._d__s
push eax
call fcn.0040a9cd
add esp, 0x10
jmp 0x4f49dc
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x124]
call fcn.004076b7
push 0x1c4
call fcn.00405ff1
pop ecx
mov dword [ebp - 0x11c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4f4a06
mov ecx, eax
call fcn.0049f288
mov ecx, eax
mov dword [ebp - 0x11c], eax
jmp 0x4f4a0e
xor ecx, ecx
mov dword [ebp - 0x11c], ecx
mov eax, dword [ecx]
mov esi, dword [ebp - 0x124]
push esi
mov byte [ebp - 4], 2
call dword [eax + 0xb4]
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x120]
add eax, 0xe110
push eax
mov edx, dword [ecx]
call dword [edx + 0xb0]
push dword [ebp - 0x120]
mov ecx, ebx
call fcn.0041249b
mov ecx, dword [ebp - 0x11c]
push dword [eax]
mov edx, dword [ecx]
call dword [edx + 0xc8]
mov ecx, dword [ebp - 0x11c]
push ecx
mov ecx, dword [ebp - 0x12c]
call fcn.00511271
inc dword [ebp - 0x128]
lea ecx, [esi - 0x10]
call fcn.004041b0
mov esi, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x118]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.004041b0
inc esi
mov dword [ebp - 0x120], esi
cmp esi, dword [ebx + 4]
jl 0x4f48ff
call fcn.0052d0b2
ret
call fcn.005304ea
int3
Function at 0x54221b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5acf20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00537ab4
mov dword [ebp - 0x14], eax
cmp dword [0x5b8e58], esi
jne 0x54230e
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x54229b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5423ee
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5423ee
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5423ee
push eax
call ebx
push 0x5894a4
push edi
mov dword [0x5b8e58], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5894b4
push edi
mov dword [0x5b8e5c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5b8e60], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5b8e68], eax
test eax, eax
je 0x54230b
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5b8e64], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x542333
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x542326
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x542348
push 4
pop eax
jmp 0x5423f0
cmp dword [ebp - 0x14], esi
je 0x542348
push dword [0x5b8e58]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x54232d
mov eax, dword [0x5b8e64]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5423a6
cmp dword [0x5b8e68], edi
je 0x5423a6
push eax
call ebx
push dword [0x5b8e68]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5423a6
test eax, eax
je 0x5423a6
call ecx
test eax, eax
je 0x54239b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x54239b
test byte [ebp - 8], 1
jne 0x5423a6
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5423d6
mov eax, dword [0x5b8e5c]
cmp eax, edi
je 0x5423d3
push eax
call ebx
test eax, eax
je 0x5423d3
call eax
mov esi, eax
test esi, esi
je 0x5423d3
mov eax, dword [0x5b8e60]
cmp eax, edi
je 0x5423d3
push eax
call ebx
test eax, eax
je 0x5423d3
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5b8e58]
call ebx
test eax, eax
je 0x5423ee
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5423f0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052c2cf
mov esp, ebp
pop ebp
ret