joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c690
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
mov dword [ebp - 8], ecx
mov ecx, 0x46c660
push edi
call fcn.0047eb80
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x46c6c0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x80], 0x44
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x7c], 0
push eax
mov eax, dword [ebp - 8]
xorps xmm0, xmm0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
movdqu xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x50], 0xa
movdqu xmmword [ebp - 0x60], xmm0
mov dword [ebp - 4], 0x11c1
movdqu xmmword [ebp - 0x4c], xmm0
push eax
mov dword [0x56fe68], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x46c7ad
push 2
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x38]
push eax
call esi
test eax, eax
je 0x46c778
lea ebx, [ebx]
cmp dword [ebp - 0x34], 0x12
je 0x46c827
lea eax, [ebp - 0x38]
push eax
call edi
lea eax, [ebp - 0x38]
push eax
call ebx
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x38]
push eax
call esi
test eax, eax
jne 0x46c750
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x46c79b
cmp dword [0x56fe68], 0
jne 0x46c79b
cmp dword [ebp - 4], 0x103
je 0x46c730
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x56fe68], 0
jne 0x46c7c8
push 0x4c8850
call fcn.004857d0
add esp, 4
jmp 0x46c6c0
xor ecx, ecx
lea ebx, [ebx]
cmp dword [ecx*4 + 0x575ae0], 0x46c660
je 0x46c7f0
inc ecx
cmp ecx, 0x100
jl 0x46c7d0
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xff
sub eax, ecx
shl eax, 2
push eax
lea eax, [ecx*4 + 0x575ae4]
push eax
lea eax, [ecx*4 + 0x575ae0]
push eax
call fcn.004939f0
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [0x575edc], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x30]
call fcn.0049501f
int3
Function at 0x47e110
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4d3100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
push 0x1ff
push 0x4c3c36
push esi
mov dword [ebp - 0x208], 0
or edi, 0xffffffff
mov dword [ebp - 0x20c], 0x200
call fcn.00495450
add esp, 0xc
mov byte [esi + 0x1fe], 0
lea eax, [ebp - 0x208]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionMCI_Extensions
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47e1ce
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push ebx
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x47e1ce
cmp dword [ebp - 0x210], 1
jne 0x47e1ce
push 0x1ff
lea eax, [ebp - 0x204]
push eax
push esi
call fcn.00495450
add esp, 0xc
mov byte [esi + 0x1fe], 0
xor edi, edi
mov eax, dword [ebp - 0x208]
test eax, eax
je 0x47e1df
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493955
mov esp, ebp
pop ebp
ret

Function at 0x47e200
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0xf003f
push 0
push 0x4c3c36
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionMCI_Extensions
push 0x80000002
or esi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x47e267
mov edx, dword [ebp + 0xc]
mov ecx, edx
push edi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47e242
sub ecx, edi
lea eax, [ecx + 1]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
pop edi
sbb eax, eax
and esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x47e275
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47e280
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4d3100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x414], eax
mov edx, dword [ebp + 0x14]
mov esi, ecx
mov eax, dword [ebp + 0xc]
or ebx, 0xffffffff
mov ecx, dword [ebp + 0x10]
push edx
push eax
push ecx
mov dword [ebp - 0x40c], ecx
mov dword [ebp - 0x410], edx
mov dword [ebp - 0x408], 0
mov dword [ebp - 0x418], 0x200
call fcn.00495450
mov eax, dword [ebp - 0x40c]
dec eax
add eax, dword [ebp - 0x410]
push edi
push esi
mov dword [ebp - 0x41c], eax
mov byte [eax], 0
lea eax, [ebp - 0x404]
push str.Software_s_s
push eax
call fcn.00493964
add esp, 0x1c
lea eax, [ebp - 0x408]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x404]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47e383
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push dword [ebp - 0x414]
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x47e383
cmp dword [ebp - 0x420], 1
jne 0x47e383
push dword [ebp - 0x410]
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x40c]
call fcn.00495450
mov eax, dword [ebp - 0x41c]
add esp, 0xc
xor ebx, ebx
mov byte [eax], 0
mov ecx, dword [ebp - 0x408]
test ecx, ecx
je 0x47e394
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493955
mov esp, ebp
pop ebp
ret

Function at 0x47e3b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x4d3100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x204]
push esi
push edi
mov edi, dword [ebp + 0xc]
or esi, 0xffffffff
push edx
push ecx
push str.Software_s_s
push eax
mov dword [ebp - 0x208], 0
call fcn.00493964
add esp, 0x10
lea eax, [ebp - 0x208]
push 0
push eax
push 0
push 0xf003f
push 0
push 0x4c3c36
push 0
lea eax, [ebp - 0x204]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x47e448
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47e423
sub ecx, edx
lea eax, [ecx + 1]
push eax
push edi
push 1
push 0
push ebx
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
and esi, eax
mov eax, dword [ebp - 0x208]
test eax, eax
je 0x47e473
test esi, esi
jne 0x47e468
cmp dword [ebp + 0x10], esi
je 0x47e468
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp - 0x208]
test eax, eax
je 0x47e473
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493955
mov esp, ebp
pop ebp
ret
Function at 0x47e560
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0xf003f
mov ebx, edx
mov dword [ebp - 0xc], 0
push 0
mov esi, ecx
mov dword [ebp - 0x18], ebx
push ebx
push esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47e6b0
push eax
push eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x47e6b0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x47e6bf
mov esi, dword [ebp - 8]
inc esi
mov dword [ebp - 0x10], 1
mov dword [ebp - 8], esi
imul esi, eax
lea eax, [esi + 0x20]
push eax
call fcn.00497cab
mov edi, eax
add esp, 4
test edi, edi
jne 0x47e60e
push 0x10
push str.malloc
push 0x4c9a90
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x47e6a2
push esi
push 0
push edi
call fcn.0049cbc0
mov eax, dword [ebp - 0xc]
add esp, 0xc
xor esi, esi
test eax, eax
je 0x47e66c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea esp, [esp]
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ecx
push eax
mov eax, esi
imul eax, ecx
add eax, edi
push eax
push esi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x47e664
cmp eax, 0x103
je 0x47e664
cmp eax, 0xea
jne 0x47e693
mov eax, dword [ebp - 0xc]
inc esi
cmp esi, eax
jb 0x47e630
xor esi, esi
test eax, eax
je 0x47e68c
mov ecx, dword [ebp - 4]
mov edx, esi
imul edx, dword [ebp - 8]
add edx, edi
call fcn.0047e560
test eax, eax
je 0x47e693
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x47e672
mov dword [ebp - 0x10], 0
push edi
call fcn.00494034
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x47e6b9
mov eax, dword [ebp - 4]
test eax, eax
je 0x47e6b0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x47e6b0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47e6e0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push edi
push eax
push 0xf003f
push 0
push str.Software
push 0x80000001
mov edi, edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
call esi
test eax, eax
je 0x47e72f
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0x47e727
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x47e727
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
test eax, eax
jne 0x47e727
cmp dword [ebp - 0xc], eax
jne 0x47e78e
cmp dword [ebp - 0x10], eax
jne 0x47e78e
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x47e727
mov eax, dword [ebp - 4]
test eax, eax
je 0x47e79c
push eax
call esi
test eax, eax
jne 0x47e727
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x47e850
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4d3100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x410], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edi, edx
mov ecx, dword [ebp + 0x10]
or ebx, 0xffffffff
push 0x104
push eax
push ecx
mov dword [ebp - 0x40c], ecx
mov dword [ebp - 0x408], 0
mov dword [ebp - 0x414], 0x200
call fcn.00495450
mov eax, dword [ebp - 0x40c]
push edi
push esi
push str.Software_s_s
mov byte [eax + 0x103], 0
lea eax, [ebp - 0x404]
push eax
call fcn.00493964
add esp, 0x1c
lea eax, [ebp - 0x408]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x404]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47e943
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push dword [ebp - 0x410]
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x47e943
cmp dword [ebp - 0x418], 1
jne 0x47e943
mov ebx, dword [ebp - 0x40c]
lea eax, [ebp - 0x204]
push 0x104
push eax
push ebx
call fcn.00495450
add esp, 0xc
mov byte [ebx + 0x103], 0
xor ebx, ebx
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x47e954
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493955
mov esp, ebp
pop ebp
ret
Function at 0x47e970
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push edi
push eax
push 0xf003f
push 0
push str.Software
push 0x80000002
mov edi, edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
call esi
test eax, eax
je 0x47e9bf
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0x47e9b7
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x47e9b7
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
test eax, eax
jne 0x47e9b7
cmp dword [ebp - 0xc], eax
jne 0x47ea1e
cmp dword [ebp - 0x10], eax
jne 0x47ea1e
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x47e9b7
mov eax, dword [ebp - 4]
test eax, eax
je 0x47ea2c
push eax
call esi
test eax, eax
jne 0x47e9b7
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x480240
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4d3100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ecx
push 0x104
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x103
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push 0
push 0
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00494895
add esp, 0x14
xor eax, eax
mov cl, byte [ebp + eax - 0x20c]
lea eax, [eax + 1]
mov byte [ebp + eax - 0x109], cl
test cl, cl
jne 0x4802a0
lea edx, [ebp - 0x208]
mov esi, edx
lea ecx, [ecx]
mov al, byte [edx]
inc edx
test al, al
jne 0x4802c0
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4802d0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x108]
pop edi
lea edx, [ecx + 1]
pop esi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4802f1
sub ecx, edx
cmp byte [ebp + ecx - 0x109], 0x5c
jne 0x480314
dec ecx
cmp ecx, 0x104
jae 0x480334
mov byte [ebp + ecx - 0x108], al
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.00493955
mov esp, ebp
pop ebp
ret
call fcn.004946f4
int3
Function at 0x480340
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4d3100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [edx]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x21c], ebx
push esi
push edi
test al, 6
jne 0x480491
test al, 0x10
je 0x480483
lea ebx, [edx + 0x24]
mov ecx, ebx
lea esi, [ecx + 1]
jmp 0x480380
mov al, byte [ecx]
inc ecx
test al, al
jne 0x480380
sub ecx, esi
cmp byte [ecx + edx + 0x23], 0x2e
je 0x480491
mov ecx, ebx
call fcn.004826b0
mov edx, str.debuginfo
mov ecx, ebx
call fcn.00482800
test eax, eax
je 0x480491
mov edx, 0x4c99dc
mov ecx, ebx
call fcn.00482800
test eax, eax
je 0x480491
mov edx, str.backup
mov ecx, ebx
call fcn.00482a10
test eax, eax
jne 0x480491
lea eax, [ebp - 0x110]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edi, [ebp - 0x110]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4803f0
mov ax, word [0x4c3b10]
mov esi, ebx
mov word [edi], ax
mov cl, byte [ebx]
inc ebx
test cl, cl
jne 0x480405
lea edi, [ebp - 0x110]
sub ebx, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x480415
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x110]
dec edi
mov cl, byte [edi + 1]
lea edi, [edi + 1]
test cl, cl
jne 0x480432
lea edx, [ebp - 0x110]
mov word [edi], ax
lea ecx, [ebp - 0x218]
call fcn.00480240
test eax, eax
jne 0x480491
mov edx, dword [ebp - 0x21c]
lea ecx, [ebp - 0x110]
call fcn.004804b0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493955
mov esp, ebp
pop ebp
ret
push ecx
add edx, 0x24
mov ecx, ebx
call fcn.0047fe50
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493955
mov esp, ebp
pop ebp
ret
Function at 0x484510
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
mov eax, dword [0x4d3100]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x108]
mov dword [ebp - 0x1b8], edx
push eax
push 0x103
mov dword [ebp - 0x1ac], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [0x53c0e8]
xor edi, edi
mov dword [0x585f5c], 0
mov dword [ebp - 0x1b0], edi
lea eax, [eax + eax*2]
cmp dword [eax*4 + 0x4c5160], 0xffffffff
je 0x4846a0
push ebx
push esi
lea esp, [esp]
push 0x9c
xor ebx, ebx
lea eax, [ebp - 0x1a4]
mov esi, 0x2710
push ebx
push eax
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1b4], esi
call fcn.0049cbc0
add esp, 0xc
lea eax, [ebp - 0x1a4]
push eax
push ebx
push ebx
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
test eax, eax
je 0x48466d
nop
cmp dword [ebp - 0x13c], 0xf
jb 0x484630
mov esi, dword [ebp - 0x138]
xor edx, edx
mov edi, dword [ebp - 0x134]
imul eax, esi, 0x64
div edi
mov ecx, eax
xor eax, eax
cmp ecx, 0x87
jle 0x4845e2
cmp ecx, 0xaf
setge al
inc eax
mov ecx, dword [0x53c0e8]
mov edx, dword [ebp - 0x1b0]
lea edx, [edx + ecx*2]
add edx, ecx
cmp eax, dword [edx*4 + 0x4c5160]
jne 0x48462a
cmp esi, dword [ebp - 0x1ac]
jl 0x48462a
cmp edi, dword [ebp - 0x1b8]
jl 0x48462a
cmp esi, dword [ebp - 0x1a8]
jg 0x48462a
cmp edi, dword [ebp - 0x1b4]
jg 0x48462a
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1b4], edi
jmp 0x484630
mov esi, dword [ebp - 0x1a8]
push 0x9c
lea eax, [ebp - 0x1a4]
inc ebx
push 0
push eax
call fcn.0049cbc0
add esp, 0xc
lea eax, [ebp - 0x1a4]
push eax
push ebx
push 0
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
test eax, eax
jne 0x4845b0
cmp esi, 0x2710
jne 0x48468e
mov edi, dword [ebp - 0x1b0]
mov eax, dword [0x53c0e8]
inc edi
mov dword [ebp - 0x1b0], edi
lea ecx, [edi + eax*2]
add ecx, eax
cmp dword [ecx*4 + 0x4c5160], 0xffffffff
jne 0x484570
jmp 0x48469e
mov dword [ebp - 0x1ac], esi
mov dword [0x585f5c], 1
pop esi
pop ebx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1ac]
xor ecx, ebp
pop edi
call fcn.00493955
mov esp, ebp
pop ebp
ret
Function at 0x4846d0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
mov eax, dword [0x4d3100]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x108]
mov dword [ebp - 0x1ac], edx
push eax
push 0x103
mov dword [ebp - 0x1b8], ecx
mov dword [0x585f5c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [0x53c0e8]
xor edi, edi
mov dword [ebp - 0x1b0], edi
lea eax, [eax + eax*2]
cmp dword [eax*4 + 0x4c5190], 0xffffffff
je 0x484865
push ebx
push esi
lea esp, [esp]
push 0x9c
xor ebx, ebx
mov dword [ebp - 0x1b4], 0x2710
lea eax, [ebp - 0x1a4]
mov esi, 0x2710
push ebx
push eax
mov dword [ebp - 0x1a8], esi
call fcn.0049cbc0
add esp, 0xc
lea eax, [ebp - 0x1a4]
push eax
push ebx
push ebx
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
test eax, eax
je 0x484832
cmp dword [ebp - 0x13c], 0xf
jb 0x4847f5
mov esi, dword [ebp - 0x138]
xor edx, edx
mov edi, dword [ebp - 0x134]
imul eax, esi, 0x64
div edi
mov ecx, eax
xor eax, eax
cmp ecx, 0x87
jle 0x4847a5
cmp ecx, 0xaf
setge al
inc eax
mov ecx, dword [0x53c0e8]
mov edx, dword [ebp - 0x1b0]
lea edx, [edx + ecx*2]
add edx, ecx
cmp eax, dword [edx*4 + 0x4c5190]
jne 0x4847ef
cmp esi, dword [ebp - 0x1b8]
jl 0x4847ef
cmp edi, dword [ebp - 0x1ac]
jl 0x4847ef
cmp esi, dword [ebp - 0x1b4]
jg 0x4847ef
cmp edi, dword [ebp - 0x1a8]
jg 0x4847ef
mov dword [ebp - 0x1b4], esi
mov esi, edi
mov dword [ebp - 0x1a8], esi
jmp 0x4847f5
mov esi, dword [ebp - 0x1a8]
push 0x9c
lea eax, [ebp - 0x1a4]
inc ebx
push 0
push eax
call fcn.0049cbc0
add esp, 0xc
lea eax, [ebp - 0x1a4]
push eax
push ebx
push 0
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
test eax, eax
jne 0x484773
cmp esi, 0x2710
jne 0x484853
mov edi, dword [ebp - 0x1b0]
mov eax, dword [0x53c0e8]
inc edi
mov dword [ebp - 0x1b0], edi
lea ecx, [edi + eax*2]
add ecx, eax
cmp dword [ecx*4 + 0x4c5190], 0xffffffff
jne 0x484730
jmp 0x484863
mov dword [ebp - 0x1ac], esi
mov dword [0x585f5c], 1
pop esi
pop ebx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1ac]
xor ecx, ebp
pop edi
call fcn.00493955
mov esp, ebp
pop ebp
ret
Function at 0x484890
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, dword [0x4d3100]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x108]
mov dword [ebp - 0x1ac], 0x400
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [0x53c0e8]
xor edi, edi
mov dword [0x585f5c], 0
mov dword [ebp - 0x1b0], edi
lea eax, [eax + eax*2]
cmp dword [eax*4 + 0x4c5130], 0xffffffff
je 0x484a1d
push ebx
push esi
lea ebx, [ebx]
push 0x9c
xor ebx, ebx
lea eax, [ebp - 0x1a4]
mov esi, 0x64
push ebx
push eax
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1b4], esi
call fcn.0049cbc0
add esp, 0xc
lea eax, [ebp - 0x1a4]
push eax
push ebx
push ebx
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
test eax, eax
je 0x4849ea
nop
cmp dword [ebp - 0x13c], 0xf
jb 0x4849b0
mov esi, dword [ebp - 0x138]
xor edx, edx
mov edi, dword [ebp - 0x134]
imul eax, esi, 0x64
div edi
mov ecx, eax
xor eax, eax
cmp ecx, 0x87
jle 0x484962
cmp ecx, 0xaf
setge al
inc eax
mov ecx, dword [0x53c0e8]
mov edx, dword [ebp - 0x1b0]
lea edx, [edx + ecx*2]
add edx, ecx
cmp eax, dword [edx*4 + 0x4c5130]
jne 0x4849aa
cmp esi, 0x400
jl 0x4849aa
cmp edi, 0x240
jl 0x4849aa
cmp esi, dword [ebp - 0x1a8]
jl 0x4849aa
cmp edi, dword [ebp - 0x1b4]
jl 0x4849aa
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1b4], edi
jmp 0x4849b0
mov esi, dword [ebp - 0x1a8]
push 0x9c
lea eax, [ebp - 0x1a4]
inc ebx
push 0
push eax
call fcn.0049cbc0
add esp, 0xc
lea eax, [ebp - 0x1a4]
push eax
push ebx
push 0
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
test eax, eax
jne 0x484930
cmp esi, 0x64
jne 0x484a0b
mov edi, dword [ebp - 0x1b0]
mov eax, dword [0x53c0e8]
inc edi
mov dword [ebp - 0x1b0], edi
lea ecx, [edi + eax*2]
add ecx, eax
cmp dword [ecx*4 + 0x4c5130], 0xffffffff
jne 0x4848f0
jmp 0x484a1b
mov dword [ebp - 0x1ac], esi
mov dword [0x585f5c], 1
pop esi
pop ebx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1ac]
xor ecx, ebp
pop edi
call fcn.00493955
mov esp, ebp
pop ebp
ret