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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.0049ef0d
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4aba25
xor eax, eax
jmp 0x4abacb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x4aba1e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4aba1e
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004947e1
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x4aba7c
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x4aba6b
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.004aa7cf
push edi
mov ebx, eax
call fcn.0049480c
pop ecx
test ebx, ebx
je 0x4ababe
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.004aae40
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.004aaef2
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x4af4e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x5d198c
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
je 0x4af59c
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4af590
mov esi, dword [ebx + 4]
jmp 0x4af57e
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4af56e
cmp dword [ebp - 0xc], 4
jne 0x4af56e
mov ecx, dword [esi + 4]
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 8], edi
je 0x4af566
or dword [eax + 0x9c], ecx
jmp 0x4af56e
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x4af532
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], edi
add ebx, 8
cmp dword [ebx], edi
jne 0x4af515
pop esi
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret
Function at 0x4af954
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5d26e8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x4af994
push 0x588af8
push 4
push eax
call fcn.004cf19e
push eax
call fcn.004280b0
add esp, 0x10
jmp 0x4af9a6
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4afa14
push edi
call fcn.004d66ae
mov edi, dword [eax]
call fcn.004d66ae
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004ce6b1
add esp, 0x18
mov ebx, eax
call fcn.004d66ae
cmp dword [eax], 0
je 0x4af9f4
call fcn.004d66ae
push dword [eax]
call fcn.00494c6b
pop ecx
jmp 0x4af9fb
call fcn.004d66ae
mov dword [eax], edi
pop edi
cmp ebx, 0xffffffff
je 0x4afa14
cmp ebx, esi
jae 0x4afa14
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x4afa16
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004cdc91
leave
ret

Function at 0x4b0ccb
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x108
lea ebp, [esp - 4]
mov eax, dword [0x5d26e8]
xor eax, ebp
mov dword [ebp + 0x108], eax
push 0x20
mov eax, 0x56a8b7
call fcn.004d62be
mov esi, dword [ebp + 0x114]
mov dword [ebp - 0x24], esi
mov eax, dword [ebp + 0x118]
push eax
lea ecx, [ebp - 0x18]
call fcn.0041ba40
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jne 0x4b0d52
call fcn.0049e6dd
cmp eax, 1
jne 0x4b0d52
lea eax, [ebp - 0x18]
push eax
push str.SoftwareClasses_
lea eax, [ebp - 0x1c]
push eax
call fcn.004240b0
add esp, 0xc
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x18]
call fcn.004207a0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.004022b0
mov dword [ebp - 0x24], getpeername
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
cmp esi, ebx
jne 0x4b0e0e
push 0x104
lea eax, [ebp]
push eax
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
cmp esi, ebx
jne 0x4b0de7
mov byte [ebp - 4], 2
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004087e0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
call fcn.004b0ccb
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, ebx
setne byte [ebp - 0x11]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.004022b0
cmp byte [ebp - 0x11], bl
je 0x4b0dc6
mov byte [ebp - 4], bl
jmp 0x4b0de7
mov dword [ebp - 4], ebx
jmp 0x4b0d6c
cmp esi, 0x103
je 0x4b0df7
cmp esi, 0x3f2
jne 0x4b0e05
push dword [ebp - 0x18]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004022b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x108]
xor ecx, ebp
call fcn.004cdc91
add ebp, 0x10c
leave
ret 8
Function at 0x4b19a3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4b19e9
call fcn.0049ef0d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4b19e9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4b1a2c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4b1a15
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4b1a15
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x48], 0
je 0x4b1a29
mov ecx, dword [esi + 0x48]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4b7535
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x56b06d
call fcn.004d628b
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004087e0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4b7598
call fcn.0049e6dd
cmp eax, 1
jne 0x4b7598
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.004240b0
add esp, 0xc
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp + 0xc]
call fcn.004207a0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004022b0
mov dword [ebp + 8], getpeername
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004022b0
mov eax, esi
call fcn.004d6363
ret 0x10

Function at 0x4b75c2
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x56b06d
call fcn.004d628b
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004087e0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4b7625
call fcn.0049e6dd
cmp eax, 1
jne 0x4b7625
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.004240b0
add esp, 0xc
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp + 0xc]
call fcn.004207a0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004022b0
mov dword [ebp + 8], getpeername
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004022b0
mov eax, esi
call fcn.004d6363
ret 0x14

Function at 0x4b7652
Capabilities:
Delete registry key

Disassembly:
push 0
mov eax, 0x56b06d
call fcn.004d628b
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004087e0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4b76b5
call fcn.0049e6dd
cmp eax, 1
jne 0x4b76b5
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.004240b0
add esp, 0xc
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp + 0xc]
call fcn.004207a0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004022b0
mov dword [ebp + 8], getpeername
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004022b0
mov eax, esi
call fcn.004d6363
ret 8
Function at 0x4b7bf7
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x14
mov eax, 0x56b0d3
call fcn.004d62be
mov edi, ecx
mov dword [ebp - 0x18], edi
lea esi, [edi + 0x1c]
mov dword [ebp - 0x14], esi
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
mov eax, dword [ebp + 8]
cmp eax, ebx
jle 0x4b7d21
cmp eax, dword [edi + 0xc]
jge 0x4b7d21
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x4b7c69
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 8]
jl 0x4b7d09
cmp dword [ebp + 0xc], ebx
je 0x4b7d09
cmp dword [esi + 0xc], ebx
jne 0x4b7cb1
push 4
push dword [edi + 0xc]
call fcn.0049c28c
pop ecx
pop ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4b7cc9
mov dword [ebp - 4], ebx
push 0x10
call fcn.004b78a7
cmp eax, ebx
je 0x4b7c7f
mov dword [eax], vtable.CThreadData.0
jmp 0x4b7c81
xor eax, eax
mov esi, eax
mov dword [ebp - 0x1c], esi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
push esi
lea ecx, [edi + 0x14]
call fcn.004b79c3
jmp 0x4b7c4e
push 2
push 4
push dword [edi + 0xc]
call fcn.0049c28c
pop ecx
pop ecx
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x4b7cdb
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00495520
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 8]
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
push ebx
lea eax, [eax + ecx*4]
push eax
call fcn.004cdca0
add esp, 0xc
mov eax, dword [edi + 0xc]
mov dword [esi + 8], eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp + 8]
cmp dword [esi + 0xc], ebx
je 0x4b7d1c
cmp eax, dword [esi + 8]
jge 0x4b7d1c
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp + 0xc]
mov dword [ecx + eax*4], edx
push dword [ebp - 0x14]
jmp 0x4b7d22
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004d6363
ret 8

Function at 0x4b7dc6
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b7df4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b7e12
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b7d30
jmp 0x4b7e12
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b7e12
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004b7d30
mov eax, edi
test edi, edi
jne 0x4b7dfc
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x5dd5f4]
test ecx, ecx
je 0x4b7ed5
jmp 0x4b7dc5
ret 8
Function at 0x4b7f57
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x5d26e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
test ebx, ebx
jne 0x4b7f7c
call fcn.00495554
test esi, esi
je 0x4b7f77
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0xff
mov edi, eax
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.004cdca0
mov eax, 0x100
add esp, 0xc
cmp edi, eax
ja 0x4b7fd4
push eax
lea eax, [ebp - 0x104]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, edi
jne 0x4b7fd4
push esi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4b7fdc
push esi
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cdc91
leave
ret 8

Function at 0x4b973f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
test edi, edi
je 0x4b9784
push 0
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4b9773
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a2910
cmp dword [ebp + 0xc], edi
je 0x4b9784
push dword [esi + 0xc]
push 0xffffffffffffffff
push 0xd
call fcn.004a28ca
pop edi
pop esi
pop ebp
ret 8

Function at 0x4b98e4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov edi, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4b991a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x4b9919
push dword [edi + 0xc]
call esi
push eax
call fcn.004a2910
pop esi
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop edi
leave
ret

Function at 0x4bf692
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5d26e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push eax
call fcn.004d8713
mov edi, eax
pop ecx
test edi, edi
je 0x4bf73b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, edi
je 0x4bf731
push esi
mov esi, bind
push ebx
push eax
push edi
mov byte [eax], 0
call fcn.004d8cca
pop ecx
pop ecx
lea eax, [ebp - 0x110]
push eax
push edi
push esi
call fcn.004b741b
test eax, eax
jne 0x4bf72f
push 0x105
lea eax, [ebp - 0x10c]
push eax
xor ebx, ebx
push ebx
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x4bf70a
inc ebx
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x4bf72f
push edi
push esi
call fcn.004b7652
push 0x5c
push edi
call fcn.004d2266
pop ecx
pop ecx
test eax, eax
jne 0x4bf6cc
pop ebx
pop esi
push edi
call fcn.004ce2e1
xor eax, eax
pop ecx
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004cdc91
leave
ret 4
Function at 0x4cdc91
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5d26e8]
jne 0x4cdc9b
repz ret
jmp fcn.004da29c

Function at 0x4ecb34
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004d8e53
and dword [ebp - 4], 0
cmp dword [0x5de360], 0
mov ebx, eax
jne 0x4ecbe5
push 0x57c320
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4ecc96
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x59363c
push edi
call esi
test eax, eax
je 0x4ecc96
push eax
call fcn.004d8de1
mov dword [esp], 0x59362c
push edi
mov dword [0x5de360], eax
call esi
push eax
call fcn.004d8de1
mov dword [esp], 0x593618
push edi
mov dword [0x5de364], eax
call esi
push eax
call fcn.004d8de1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5de368], eax
call esi
push eax
call fcn.004d8de1
pop ecx
mov dword [0x5de370], eax
test eax, eax
je 0x4ecbe5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004d8de1
pop ecx
mov dword [0x5de36c], eax
mov eax, dword [0x5de36c]
cmp eax, ebx
je 0x4ecc3d
cmp dword [0x5de370], ebx
je 0x4ecc3d
push eax
call fcn.004d8e5c
push dword [0x5de370]
mov esi, eax
call fcn.004d8e5c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4ecc3d
test edi, edi
je 0x4ecc3d
call esi
test eax, eax
je 0x4ecc34
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4ecc34
test byte [ebp - 0xc], 1
jne 0x4ecc3d
or dword [ebp + 0x10], 0x200000
jmp 0x4ecc76
mov eax, dword [0x5de364]
cmp eax, ebx
je 0x4ecc76
push eax
call fcn.004d8e5c
pop ecx
test eax, eax
je 0x4ecc76
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4ecc76
mov eax, dword [0x5de368]
cmp eax, ebx
je 0x4ecc76
push eax
call fcn.004d8e5c
pop ecx
test eax, eax
je 0x4ecc76
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5de360]
call fcn.004d8e5c
pop ecx
test eax, eax
je 0x4ecc96
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4ecc98
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4fe310
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x56ce33
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5d26e8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov byte [esp + 0x18], 1
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
cmp edi, eax
jne 0x4fe39f
push 0x1f0
push str.C:clt.7.1.0.bld.vc9.nt.sym_srcosclitedbmanosdb.cc
push str._pname_0
call fcn.004fb4d0
add esp, 0xc
push edi
call fcn.004fdc60
add esp, 4
mov dword [esi + 0xc], eax
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0xc

Function at 0x502840
Capabilities:
Get common file path

Disassembly:
sub esp, 0x404
mov eax, dword [0x5d26e8]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [0x5de9d0]
test eax, eax
jne 0x50289e
lea eax, [esp]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
inc eax
push eax
call fcn.00494811
add esp, 4
mov dword [0x5de9d0], eax
lea ecx, [esp]
mov edx, eax
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x502880
mov ecx, dword [0x5de9d0]
push ecx
call fcn.005027b0
mov eax, dword [0x5de9d0]
add esp, 4
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.004cdc91
add esp, 0x404
ret

Function at 0x5028c0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
ret

Function at 0x504510
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x5de9e8]
test eax, eax
jne 0x5045aa
push esi
push str.DB_TAS_PAGE_SIZE
xor esi, esi
call fcn.004d536a
add esp, 4
test eax, eax
je 0x504551
cmp byte [eax], 0
je 0x504551
push eax
call fcn.004ce463
mov esi, eax
add esp, 4
shl esi, 0xa
mov eax, dword [esp + 8]
mov dword [0x5de9e8], eax
cmp esi, 0x1000
je 0x5045a2
cmp esi, 0x2000
je 0x5045a2
cmp esi, 0x4000
je 0x5045a2
cmp esi, 0x8000
je 0x5045a2
cmp esi, 0x10000
je 0x5045a2
cmp esi, 0x20000
je 0x5045a2
cmp esi, 0x40000
je 0x5045a2
cmp esi, 0x80000
je 0x5045a2
cmp esi, 0x100000
jne 0x5045a9
mov eax, esi
mov dword [0x5de9e8], eax
pop esi
add esp, 0x24
ret
Function at 0x505a30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x505a43
or eax, eax
ret
and al, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xffffff6e
add eax, 0x1b6
ret

Function at 0x505b40
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
sub esp, 8
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x505b9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
je 0x505b9a
cmp eax, 0x27
je 0x505b9a
call fcn.004fdec0
push eax
lea ecx, [esp + 4]
push str.WriteFile_failed:__s
push ecx
call fcn.00505a60
add esp, 0xc
push 0x5bf1fc
lea edx, [esp + 4]
push edx
call fcn.004ce295
mov eax, dword [esp + 4]
add esp, 8
ret

Function at 0x505bb0
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
sub esp, 8
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x505c07
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x450
je 0x505c07
call fcn.004fdec0
push eax
lea ecx, [esp + 8]
push str.ReadFile_failed:__s
push ecx
call fcn.00505ad0
add esp, 0xc
push 0x5bf238
lea edx, [esp + 8]
push edx
call fcn.004ce295
mov eax, dword [esp]
add esp, 8
ret