joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c42d4
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x4c433f
push 0x3d
push dword [ebp + 8]
call fcn.004afc2d
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x4c433f
cmp dword [ebp + 8], esi
je 0x4c433f
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x559310]
cmp eax, dword [0x559314]
jne 0x4c4325
mov edi, eax
call fcn.004c4273
mov dword [0x559310], eax
cmp eax, ebx
jne 0x4c437e
cmp dword [ebp + 0xc], ebx
je 0x4c4347
cmp dword [0x559318], ebx
je 0x4c4347
call fcn.004c087b
test eax, eax
je 0x4c437e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x4c4482
push 4
call fcn.004aeac7
cmp eax, ebx
pop ecx
mov dword [0x559310], eax
je 0x4c433f
mov dword [eax], ebx
cmp dword [0x559318], ebx
jne 0x4c437e
push 4
call fcn.004aeac7
cmp eax, ebx
pop ecx
mov dword [0x559318], eax
je 0x4c433f
mov dword [eax], ebx
mov ebx, dword [0x559310]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.004c4226
mov edi, eax
test edi, edi
pop ecx
jl 0x4c43d7
cmp dword [ebx], 0
je 0x4c43d7
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004aead9
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4c43bf
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x4c440d
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x4c43b6
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.004b12e2
test eax, eax
pop ecx
pop ecx
je 0x4c440d
jmp 0x4c4408
cmp dword [ebp - 4], 0
jne 0x4c447b
test edi, edi
jge 0x4c43e7
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.004b12e2
test eax, eax
pop ecx
pop ecx
je 0x4c433f
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x559310], eax
cmp dword [ebp + 0xc], 0
je 0x4c4464
push dword [ebp + 8]
call fcn.004af4f0
inc eax
inc eax
push eax
call fcn.004aeac7
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4c4464
push dword [ebp + 8]
push esi
call fcn.004af6d0
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4c445d
or dword [ebp - 8], 0xffffffff
push esi
call fcn.004aead9
pop ecx
cmp dword [ebp - 4], 0
je 0x4c4473
push dword [ebp + 8]
call fcn.004aead9
pop ecx
mov eax, dword [ebp - 8]
jmp 0x4c4342
push esi
call fcn.004aead9
pop ecx
xor eax, eax
jmp 0x4c4342
Function at 0x4c4489
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x55977c], ebx
push esi
push edi
jne 0x4c4509
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4c4544
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x540080
push edi
call esi
test eax, eax
mov dword [0x55977c], eax
je 0x4c4544
push 0x540070
push edi
call esi
push 0x54005c
push edi
mov dword [0x559780], eax
call esi
cmp dword [0x5592f0], 2
mov dword [0x559784], eax
jne 0x4c4509
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x55978c], eax
je 0x4c4509
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x559788], eax
mov eax, dword [0x559788]
test eax, eax
je 0x4c454e
call eax
test eax, eax
je 0x4c4535
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x55978c]
test eax, eax
je 0x4c4535
test byte [ebp - 8], 1
jne 0x4c454e
cmp dword [0x5592fc], 4
jb 0x4c4548
or byte [ebp + 0x12], 0x20
jmp 0x4c456d
xor eax, eax
jmp 0x4c457d
or byte [ebp + 0x12], 4
jmp 0x4c456d
mov eax, dword [0x559780]
test eax, eax
je 0x4c456d
call eax
mov ebx, eax
test ebx, ebx
je 0x4c456d
mov eax, dword [0x559784]
test eax, eax
je 0x4c456d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x55977c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c4fb2
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x5400b0
call fcn.004b4160
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x55979c], edi
jne 0x4c4ff6
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4c4fe1
mov dword [0x55979c], ebx
jmp 0x4c4ff6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4c4ff6
mov dword [0x55979c], 2
mov eax, dword [0x55979c]
cmp eax, ebx
jne 0x4c5016
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x4c50d9
cmp eax, 2
je 0x4c501f
cmp eax, edi
jne 0x4c5047
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x4c5032
mov eax, dword [0x559604]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x24], eax
cmp eax, edi
jne 0x4c504e
xor eax, eax
jmp 0x4c50d9
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004aeb50
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4c5081
cmp esi, edi
jne 0x4c5097
push dword [ebp - 0x24]
call fcn.004aeac7
pop ecx
mov esi, eax
cmp esi, edi
je 0x4c5047
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x24]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4c50ca
cmp dword [ebp + 0x14], edi
jne 0x4c50b4
push edi
push edi
jmp 0x4c50ba
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], edi
je 0x4c50d6
push esi
call fcn.004aead9
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004b419b
ret
Function at 0x4c50e2
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x5400c0
call fcn.004b4160
xor esi, esi
cmp dword [0x5597a0], esi
jne 0x4c5126
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4c5111
mov dword [0x5597a0], edi
jmp 0x4c5126
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4c5126
mov dword [0x5597a0], 2
mov eax, dword [0x5597a0]
cmp eax, 2
je 0x4c5207
cmp eax, esi
je 0x4c5207
cmp eax, 1
jne 0x4c516b
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4c5154
mov eax, dword [0x559604]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x4c5172
xor eax, eax
jmp 0x4c5219
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004aeb50
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4c51a8
cmp edi, esi
jne 0x4c51c3
lea eax, [ebx + ebx]
push eax
call fcn.004aeac7
pop ecx
mov edi, eax
cmp edi, esi
je 0x4c516b
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4c51f6
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4c51e0
push esi
push esi
jmp 0x4c51e6
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x4c5202
push edi
call fcn.004aead9
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4c5219
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.004b419b
ret
Function at 0x4d13e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x501239
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
mov eax, dword [ebp + 0x1c]
push ebx
push esi
push edi
push eax
mov esi, ecx
push 0
mov dword [esp + 0x14], esi
call fcn.004dc1d0
mov dword [esp + 0xb4], 0
mov dword [esi], vtable.CFileDialog.0
call fcn.004d41f0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x78], eax
mov ebx, dword [ebp + 0x20]
test ebx, ebx
mov byte [esp + 0xb4], 1
jne 0x4d147f
xor eax, eax
mov ecx, 0x25
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x20], 2
jne 0x4d147a
cmp dword [esp + 0x14], 5
mov ebx, 0x58
jae 0x4d147f
mov ebx, 0x4c
push ebx
call fcn.004aeac7
add esp, 4
test eax, eax
mov dword [esi + 0x70], eax
jne 0x4d1494
call fcn.004d0fa0
mov edi, dword [esi + 0x70]
xor eax, eax
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov dword [esi + 0x74], eax
neg eax
sbb eax, eax
add eax, 0x7005
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x70]
mov byte [esi + 0x7c], 0
mov byte [esi + 0xbc], 0
mov dword [esi + 0x1c0], 0
mov dword [eax], ebx
mov edx, dword [esi + 0x70]
lea ecx, [esi + 0x7c]
lea edi, [esi + 0xbc]
mov dword [edx + 0x1c], edi
mov eax, dword [esi + 0x70]
mov dword [eax + 0x20], 0x104
mov edx, dword [esi + 0x70]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x3c], eax
mov edx, dword [esi + 0x70]
mov dword [edx + 0x24], ecx
mov eax, dword [esi + 0x70]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x28], 0x40
mov eax, dword [esi + 0x70]
mov ebx, dword [eax + 0x34]
mov edx, ecx
or edx, 0x80020
or ebx, edx
test cl, 0x40
mov dword [eax + 0x34], ebx
je 0x4d152c
mov eax, dword [esi + 0x70]
and dword [eax + 0x34], 0xff7fffff
call fcn.004f0b90
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 0x70]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x10]
test eax, eax
mov edx, dword [esi + 0x70]
mov dword [edx + 0x44], 0x4d1dd0
je 0x4d1558
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x4d15cc
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d1564
sub eax, edi
push eax
lea edi, [esi + 0x78]
push edx
mov ecx, edi
call fcn.0040165c
mov eax, dword [edi]
mov ebx, dword [eax - 4]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, ebx
or ecx, edx
jge 0x4d1598
push 0
mov ecx, edi
call fcn.0040153a
mov edi, dword [edi]
push 0x7c
push edi
call fcn.004afc2d
add esp, 8
test eax, eax
je 0x4d15c3
lea esp, [esp]
mov byte [eax], 0
inc eax
push 0x7c
push eax
call fcn.004afc2d
add esp, 8
test eax, eax
jne 0x4d15b0
mov edx, dword [esi + 0x70]
mov eax, dword [esi + 0x78]
mov dword [edx + 0xc], eax
mov ecx, dword [esp + 0xac]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4d54f0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x500a38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x4d5536
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x1c]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
call fcn.004d41f0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 4], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
lea edx, [esp + 4]
push edx
mov dword [esp + 0x14], 0
call dword [eax + 0x8c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 4]
mov esi, dword [esp + 0x18]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov dword [esp + 0x10], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d55a5
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 8

Function at 0x4d5830
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
push esi
mov esi, ecx
jne 0x4d583f
pop esi
ret 8
mov edx, dword [esp + 8]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d586a
mov esi, dword [esi + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004de420
mov eax, dword [esp + 0xc]
pop esi
ret 8

Function at 0x4d5880
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
mov esi, ecx
je 0x4d58ca
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0x14]
push eax
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4d58b7
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004de420
cmp dword [esp + 0x10], edi
je 0x4d58ca
mov eax, dword [esi + 0xc]
push eax
push 0xffffffffffffffff
push 0xd
call fcn.004de3b0
pop edi
pop esi
ret 8

Function at 0x4d5a44
Capabilities:
Clear file content

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
mov eax, dword [esi]
push 0
push ecx
push edx
mov ecx, esi
call dword [eax + 0x28]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4d5a74
mov esi, dword [esi + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004de420
pop esi
ret 8
Function at 0x4d5a80
Capabilities:
Get file size

Disassembly:
sub esp, 8
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x4d5abb
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x4d5ab7
mov esi, dword [esi + 0xc]
push esi
call edi
push eax
call fcn.004de420
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
pop edi
pop esi
add esp, 8
ret

Function at 0x4d5d70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [esp + 0xc]
push eax
push 0x504b14
push 0x80000000
mov dword [esp + 0x18], 0
xor esi, esi
call edi
test eax, eax
jne 0x4d5e5d
mov edx, dword [esp + 0x18]
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
push edx
push eax
call edi
test eax, eax
jne 0x4d5e52
mov edx, dword [esp + 8]
lea ecx, [esp + 0x18]
push ecx
push str.InProcServer32
push edx
mov dword [esp + 0x24], eax
call edi
test eax, eax
jne 0x4d5e47
mov esi, dword [esp + 0x1c]
push 0x104
mov ecx, esi
call fcn.00401619
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
push 0
push 0x504b37
push eax
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esi]
test edx, edx
mov edi, eax
jne 0x4d5e15
xor ecx, ecx
jmp 0x4d5e2a
mov ecx, edx
push ebp
lea ebp, [ecx + 1]
jmp 0x4d5e20
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d5e20
sub ecx, ebp
pop ebp
xor eax, eax
test edi, edi
mov dword [edx - 0xc], ecx
mov edx, dword [esi]
sete al
mov byte [ecx + edx], 0
mov ecx, dword [esp + 0x18]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret 8
Function at 0x4d5f00
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x500afb
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebx
mov ebx, dword [esp + 0x164]
push esi
mov esi, dword [esp + 0x164]
lea eax, [esp + 0xc]
push eax
push esi
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x4d5f55
push 0x104
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
jmp 0x4d603d
push edi
call fcn.004d41f0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x168], 0
call fcn.004d5e70
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x4d6012
push eax
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x4d5fd5
lea eax, [edi - 0x10]
mov dword [esp + 0x160], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d5fd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x4d603c
test byte [esp + 0xc], 2
jne 0x4d5fe3
push esi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [esp + 0xc], 4
jne 0x4d6012
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4d6012
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [edi - 0x10]
mov dword [esp + 0x160], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d6037
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
pop edi
mov ecx, dword [esp + 0x154]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 8
Function at 0x4d6310
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x500b43
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], vtable.CFile.0
call fcn.004d41f0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0xc], eax
push 0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
mov dword [esi + 4], 0xffffffff
call fcn.004a1c60
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
lea eax, [esp + 8]
push eax
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x30], 1
call fcn.004d6060
test eax, eax
jne 0x4d6398
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call fcn.004de3b0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x24], 0
mov dword [esp + 8], vtable.CFileException.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d63c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8

Function at 0x4d6680
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push ebx
push esi
push edi
call dword [0x54f110]
mov edi, dword [ebp + 0xc]
push 0x800
push 0x160
lea ecx, [ebp - 0x168]
push ecx
mov ebx, eax
mov eax, dword [ebp + 0x10]
push 0
push edi
mov byte [eax], 0
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x4d67aa
test dword [ebp - 0x160], 0x10000
je 0x4d67aa
lea edx, [ebp - 4]
push edx
push 0x531cc8
push 0
push 0x531cd8
lea ecx, [ebp + 0x10]
call fcn.004d6630
test eax, eax
jl 0x4d67aa
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x540ed0
push eax
call dword [ecx]
test eax, eax
jl 0x4d67a1
test edi, edi
jne 0x4d6710
xor eax, eax
jmp 0x4d6733
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.004aeb50
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.0040109d
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push 0
push eax
push ecx
call dword [edx + 0x14]
test eax, eax
jl 0x4d6798
mov eax, dword [ebp + 8]
test eax, eax
je 0x4d674d
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push 2
push eax
push ecx
call dword [edx + 0x4c]
test eax, eax
jl 0x4d6798
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 0
push 0
push edx
mov edx, dword [ebp + 0x10]
push edx
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, 1
lea esp, [ebp - 0x174]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
push eax
call dword [edx + 8]
xor eax, eax
lea esp, [ebp - 0x174]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4d9c90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x500c88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], edi
call fcn.004dd130
lea ecx, [esp + 0x38]
call fcn.004dcd50
xor ebx, ebx
mov dword [esp + 0x38], vtable.CWnd.0
mov dword [esp + 0x64], vtable.CWnd::XAccessible.0
mov dword [esp + 0x68], vtable.CWnd::XAccessibleServer.0
mov dword [esp + 0x54], ebx
mov byte [esp + 0x58], bl
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov eax, dword [edi + 0x1c]
push eax
mov dword [esp + 0x94], ebx
call dword [sym.imp.USER32.dll_GetTopWindow]
mov esi, eax
cmp esi, ebx
je 0x4d9dfd
push ebp
mov ebp, dword [esp + 0xa0]
push esi
mov dword [esp + 0x5c], esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
movzx ecx, ax
lea edx, [esp + 0x3c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], edx
call fcn.004f0bc0
mov eax, dword [eax + 0x14]
cmp eax, ebx
je 0x4d9d7c
push esi
lea ecx, [eax + 0x1c]
call fcn.004d3c20
cmp eax, ebx
je 0x4d9d7c
push ebx
lea ecx, [esp + 0x18]
push ecx
push 0xbd11ffff
push ebx
mov ecx, eax
call fcn.004dcf30
test eax, eax
jne 0x4d9de9
mov eax, dword [esp + 0x18]
push ebx
lea edx, [esp + 0x18]
push edx
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.004dcf30
test eax, eax
jne 0x4d9de9
cmp ebp, ebx
mov edi, ebp
je 0x4d9dd3
mov ecx, dword [esp + 0x58]
push ebx
push ebx
push 0x87
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test ah, 0x20
je 0x4d9dd1
lea ecx, [esp + 0x3c]
call fcn.004d4cf0
and eax, 0xf
cmp eax, 3
je 0x4d9dd1
cmp eax, 6
je 0x4d9dd1
cmp eax, 7
je 0x4d9dd1
cmp eax, 9
jne 0x4d9dd3
xor edi, edi
mov edx, dword [esp + 0x9c]
push edi
push edx
lea ecx, [esp + 0x1c]
call fcn.004dd160
mov edi, dword [esp + 0x10]
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
cmp esi, ebx
jne 0x4d9d32
pop ebp
lea ecx, [esp + 0x38]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x90], 0xffffffff
call fcn.004d9760
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x88
ret 8

Function at 0x4db8a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
xor edi, edi
xor esi, esi
test ebp, ebp
mov dword [esp + 0x10], ecx
je 0x4db8ed
call fcn.004f0b90
mov ebx, dword [eax + 0xc]
push 0xf0
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4db8ed
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4db8e4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [esp + 0x10]
push edi
call fcn.004da560
test edi, edi
mov ebx, eax
je 0x4db908
test esi, esi
je 0x4db908
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret 4