joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468340
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
xor ecx, ecx
mov edx, 2
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a7559
add esp, 4
mov edi, eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, dword [ebp + 8]
push edi
mov dword [esi], 0
call fcn.004a27e0
push eax
push edi
call fcn.004a29e0
push edi
mov dword [esi], eax
call fcn.004a71f6
add esp, 0x10
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x468ed0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x52dd40], 0
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebp - 0x6c], ebx
jne 0x468f11
push 5
push 0x52dd40
push 0xe
mov eax, 0x2e
push 0x400
mov word [0x52dd40], ax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movsd xmm0, qword [ebp + 0xc]
lea eax, [ebp - 0x68]
sub esp, 8
movsd qword [esp], xmm0
push 0x4e5158
push eax
call fcn.0041a890
mov di, word [0x52dd40]
lea edx, [ebp - 0x68]
add esp, 0x10
nop dword [eax]
movzx eax, word [edx]
cmp eax, 0x30
je 0x468f4d
cmp ax, di
jne 0x468f52
add edx, 2
jmp 0x468f40
test ax, ax
je 0x468f7c
push esi
mov esi, dword [ebp + 0x14]
nop dword [eax + eax]
test esi, esi
jle 0x468f7b
movzx eax, word [edx]
lea ecx, [esi - 1]
add edx, 2
cmp ax, di
cmove ecx, esi
mov esi, ecx
cmp word [edx], 0
jne 0x468f60
pop esi
xor eax, eax
mov word [edx], ax
lea eax, [ebp - 0x68]
push eax
call fcn.004a27e0
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.004a29e0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov dword [ebx], eax
xor ecx, ebp
mov eax, ebx
pop edi
pop ebx
call fcn.004a71aa
mov esp, ebp
pop ebp
ret
Function at 0x469130
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x34]
push edi
mov edi, dword [ebp + 0xc]
xorps xmm0, xmm0
push 5
push eax
push 0x11
push esi
movq qword [ebp - 0x10], xmm0
mov word [ebp - 8], 0
movq qword [ebp - 0x1c], xmm0
mov word [ebp - 0x14], 0
movq qword [ebp - 0x28], xmm0
mov word [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 5
lea eax, [ebp - 0x40]
push eax
push 0x12
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 5
lea eax, [ebp - 0x10]
push eax
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 5
lea eax, [ebp - 0x1c]
push eax
push 0xf
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 5
lea eax, [ebp - 0x28]
push eax
push 0xe
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 5
lea eax, [ebp - 0x4c]
push eax
push 0x1010
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x34]
push eax
call fcn.004b60f4
mov dword [edi], eax
lea eax, [ebp - 0x40]
push eax
call fcn.004b60f4
mov dword [edi + 4], eax
lea eax, [ebp - 0x10]
push eax
call fcn.004b60f4
mov dword [edi + 8], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004bde6c
mov dword [edi + 0x10], eax
lea eax, [ebp - 0x28]
push eax
call fcn.004bde6c
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004b60f4
mov ecx, dword [ebp - 4]
add esp, 0x18
mov dword [edi + 0x14], eax
xor ecx, ebp
pop edi
pop esi
call fcn.004a71aa
mov esp, ebp
pop ebp
ret
Function at 0x4692a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test esi, esi
jne 0x4692cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x469390
push 0
push 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 0x400
push esi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
jne 0x4693a0
push ebx
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4ee4c0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004bad7a
add esp, 0xc
lea eax, [ebp - 0x20c]
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0
push 0
mov ebx, eax
lea eax, [ebp - 0x210]
push eax
push 0x400
push esi
push ebx
push 0x900
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x469384
push 0x4e6308
mov ecx, edi
call fcn.004a2650
push dword [ebp - 0x210]
mov ecx, edi
call fcn.004a2650
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x46938f
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret
push 0x4e6308
mov ecx, edi
call fcn.004a2650
push dword [ebp - 0x210]
mov ecx, edi
call fcn.004a2650
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a71aa
mov esp, ebp
pop ebp
ret

Function at 0x4693e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
push 0
push 0xe
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
mov edx, 2
lea esi, [eax + 1]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a7559
add esp, 4
mov edi, eax
push edi
push esi
push 0xd
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [ebp + 8]
push edi
mov dword [esi], 0
call fcn.004a27e0
push eax
push edi
call fcn.004a29e0
push edi
mov dword [esi], eax
call fcn.004a71f6
add esp, 0x10
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x469bd0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], 0
push eax
push 8
mov word [ebp - 8], 0x500
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x19], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 2
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 0x10]
call fcn.004b4722
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push ebx
push 2
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x469ca4
push edi
xor edi, edi
cmp edi, dword [ebx]
jae 0x469c9f
push esi
lea esi, [ebx + 8]
push dword [esi - 4]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x469c94
mov eax, dword [esi]
test eax, 0xffffffef
setne cl
test al, 4
setne al
test al, cl
jne 0x469c9c
inc edi
add esi, 8
cmp edi, dword [ebx]
jb 0x469c71
cmp edi, dword [ebx]
pop esi
setne byte [ebp - 0x19]
pop edi
push ebx
call fcn.004b4707
add esp, 4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x19]
xor ecx, ebp
pop ebx
call fcn.004a71aa
mov esp, ebp
pop ebp
ret
Function at 0x46b220
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6f2d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x517b80]
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 ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0
push 0
push 3
push 0
push 0
push accept
push ecx
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46b332
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46b32b
cmp dword [ebp - 0x14], 4
jne 0x46b32b
push dword [ebp - 0x18]
call fcn.004a2950
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x46b2d2
mov ecx, esi
call fcn.004a28d0
jmp 0x46b2d4
xor eax, eax
push 0
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46b319
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jne 0x46b319
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], esi
test esi, esi
je 0x46b305
mov ecx, esi
call fcn.004a26e0
mov dword [ebp - 4], 1
test esi, esi
je 0x46b338
mov ecx, esi
call fcn.004a2a20
jmp 0x46b338
mov dword [ebp - 4], 2
test esi, esi
je 0x46b32b
mov ecx, esi
call fcn.004a2a20
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
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.004a71aa
mov esp, ebp
pop ebp
ret

Function at 0x46b390
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6f6d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x517b80]
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 eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push ecx
push 0
push 0
push 0
push eax
mov dword [ebp - 0x18], edi
push ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
call fcn.004a2950
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x46b407
mov ecx, esi
call fcn.004a28d0
jmp 0x46b409
xor eax, eax
lea ecx, [ebp - 0x14]
push ecx
push eax
push 0
push 0
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46b436
mov dword [edi], esi
test esi, esi
je 0x46b42d
mov ecx, esi
call fcn.004a26e0
mov dword [ebp - 4], 1
jmp 0x46b443
mov dword [edi], 0
mov dword [ebp - 4], 2
test esi, esi
je 0x46b44e
mov ecx, esi
call fcn.004a2a20
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.004a71aa
mov esp, ebp
pop ebp
ret
Function at 0x46bd80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d706d
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
test esi, esi
jne 0x46bdcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x46beb5
push 0
push 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push eax
push 0x400
push esi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
jne 0x46be8e
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4ee4c0
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004bad7a
add esp, 0xc
lea eax, [ebp - 0x218]
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0
push 0
mov edi, eax
lea eax, [ebp - 0x21c]
push eax
push 0x400
push esi
push edi
push 0x900
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x46be81
push 0x4e6308
lea ecx, [ebp + 8]
call fcn.004a2650
push dword [ebp - 0x21c]
lea ecx, [ebp + 8]
call fcn.004a2650
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x46beb5
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x46beb5
push 0x4e6308
lea ecx, [ebp + 8]
call fcn.004a2650
push dword [ebp - 0x21c]
lea ecx, [ebp + 8]
call fcn.004a2650
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp + 8]
call fcn.004a2380
push 0x10
push 0x4e4e40
push eax
push dword [0x52e3c4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x46bee4
call fcn.004a2a20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret
Function at 0x46d3b0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46d3fa
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi]
mov dword [ebp - 8], 0
test ecx, ecx
je 0x46d40e
call fcn.00477430
jmp 0x46d410
xor eax, eax
push ebx
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46d47a
cmp dword [ebp - 8], 4
jne 0x46d47a
mov ecx, dword [edi]
mov ebx, dword [ebp - 0xc]
test ecx, ecx
je 0x46d441
call fcn.004a28d0
jmp 0x46d443
xor eax, eax
push 0
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46d47a
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jne 0x46d47a
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004a71aa
mov esp, ebp
pop ebp
ret
Function at 0x46e030
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d728d
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0x517480
call fcn.0041f120
add esp, 8
test eax, eax
jne 0x46e082
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x46e111
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push 0
push eax
call fcn.0041ebd0
add esp, 8
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0
test eax, eax
je 0x46e0ff
mov eax, dword [eax]
test eax, eax
je 0x46e0ff
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x46e0ff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x46e0c1
mov eax, dword [eax]
jmp 0x46e0c3
xor eax, eax
push 0x517480
push esi
push eax
call fcn.0041ee40
mov esi, eax
add esp, 0xc
test esi, esi
je 0x46e12b
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x46e0e3
mov eax, dword [ecx]
jmp 0x46e0e5
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp esi, 0x800704d6
jne 0x46e0f8
push 4
jmp 0x46e0f9
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x14]
call fcn.00402fd0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x46e13f
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
jmp 0x46e107
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
jmp 0x46e107
Function at 0x48e300
Capabilities:
Get memory capacity
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x52e838
call fcn.00490a20
push dword [0x52dfe8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
push 0
call fcn.0046f710
add esp, 8
cmp byte [0x52e19c], 0
jne 0x48e39f
push 0x38
lea eax, [ebp - 0x244]
mov dword [ebp - 0x24c], 0x40
push 0
push eax
mov dword [ebp - 0x248], 0
call fcn.004aa220
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x4f6880
push eax
call fcn.00402dc0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x10
push 0x4e4e40
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x499750
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [0x52e8b8]
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x238], ecx
test esi, esi
jne 0x499910
mov dword [ebp - 0x230], 0x4f785c
mov dword [ebp - 0x22c], 0x4999a0
mov dword [ebp - 0x228], 0x4f7868
mov dword [ebp - 0x224], 0x499d70
mov dword [ebp - 0x220], 0x4f7874
mov dword [ebp - 0x21c], 0x499950
cmp dword [0x52e8b4], esi
jne 0x499904
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4998ee
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.004be1bd
push 0x4f7884
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.004be217
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x499846
push 0x4f785c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x49989a
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.004be1bd
push 0x4f788c
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.004be217
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4998ed
push 0x4f785c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4998e6
xor esi, esi
lea eax, [ebp - 0x230]
push dword [eax + esi*8]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + esi*8 - 0x22c], eax
test eax, eax
je 0x4998e6
inc esi
lea eax, [ebp - 0x230]
cmp esi, 3
jl 0x4998a2
mov eax, dword [ebp - 0x22c]
mov dword [0x517b60], eax
mov eax, dword [ebp - 0x224]
mov dword [0x517b68], eax
mov eax, dword [ebp - 0x21c]
mov dword [0x517b70], eax
jmp 0x4998ed
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x238]
mov dword [0x52e8b4], 1
mov esi, dword [0x517b68]
mov dword [0x52e8b8], esi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push ecx
push dword [ebp + 0x14]
mov ecx, esi
push eax
push dword [ebp + 0xc]
push ebx
call dword [0x4dc8a4]
call esi
mov esi, eax
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a71aa
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x49f290
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x28]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0xc]
mov edi, dword [esi + 0x3c8]
neg eax
cdq
mov ebx, eax
mov eax, edx
and eax, dword [esi + 0x25c]
and ebx, dword [esi + 0x258]
mov dword [ebp - 0x2c], eax
cmp dword [esi + 0x3cc], eax
jb 0x49f2ff
ja 0x49f2dc
cmp edi, ebx
jb 0x49f2ff
sub edi, ebx
push edi
push ebx
push eax
push 4
push dword [esi + 0x3c4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x558], eax
test eax, eax
jne 0x49f312
mov dword [esi + 0x55c], eax
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x258]
sub eax, ebx
add eax, dword [esi + 0x258]
sub ecx, ebx
mov dword [esi + 0x55c], eax
mov eax, dword [esi + 0x25c]
sbb eax, dword [ebp - 0x2c]
xor edx, edx
cmp edx, eax
jb 0x49f2ff
ja 0x49f33d
cmp edi, ecx
jb 0x49f2ff
lfence
sub ebx, dword [esi + 0x258]
lea ecx, [esi + 0x4f0]
add edi, ebx
push edi
push dword [esi + 0x55c]
call fcn.00482860
mov ecx, dword [esi + 0x260]
xor edx, edx
sub ecx, dword [esi + 0x258]
mov eax, dword [esi + 0x264]
sbb eax, dword [esi + 0x25c]
mov dword [ebp - 0x2c], edx
cmp edx, eax
jb 0x49f2ff
ja 0x49f385
cmp edi, ecx
jb 0x49f2ff
lfence
mov ecx, dword [esi + 0x258]
mov eax, ecx
mov edx, dword [esi + 0x260]
sub eax, edx
sub edx, ecx
add eax, edi
add edx, dword [esi + 0x55c]
lea ecx, [esi + 0x4b8]
push eax
push edx
call fcn.0041d300
mov edx, dword [esi + 0x268]
mov ecx, edx
mov ebx, dword [esi + 0x258]
sub ecx, ebx
mov eax, dword [esi + 0x26c]
sbb eax, dword [esi + 0x25c]
cmp dword [ebp - 0x2c], eax
jb 0x49f2ff
ja 0x49f3de
cmp edi, ecx
jb 0x49f2ff
mov eax, dword [esi + 0x55c]
lea ecx, [esi + 0x524]
sub eax, ebx
add eax, edx
push eax
call fcn.00450340
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a71aa
mov esp, ebp
pop ebp
ret