joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4836c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d9c88
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x48380c
cmp byte [ebx + 0x3e], 0
je 0x48380c
mov eax, dword [ebx]
push 0xffff
call dword [eax + 0xc]
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
sete al
test al, al
je 0x483723
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0048c360
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
nop dword [eax + eax]
cmp ecx, 0x10
lea eax, [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x48378e
sub eax, 1
je 0x483792
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x4837e5
xor bl, bl
jmp 0x4837e7
mov byte [ebx + 0x3e], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x10]
cmovae eax, edx
sub esi, eax
je 0x4837c7
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004abe67
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x48378a
cmp byte [ebx + 0x3e], 0
je 0x4837e5
test esi, esi
jne 0x483750
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00497a00
jmp 0x483748
mov bl, 1
cmp ecx, 0x10
jb 0x4837f9
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0049d380
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x483970
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9ca6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov eax, ecx
push esi
push edi
push 8
mov dword [ebp - 0x10], eax
mov dword [eax], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0049fc4a
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004a11ae
mov dword [esi + 4], eax
add esp, 8
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + 8]
mov dword [ecx + 0x34], esi
lea ebx, [ecx + 4]
mov dword [ecx + 0xc], ebx
lea edi, [ecx + 0x14]
mov dword [ecx + 0x1c], edi
lea esi, [ecx + 0x18]
mov dword [ecx + 0x20], esi
lea edx, [ecx + 0x24]
mov dword [ecx + 0x2c], edx
add ecx, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], ecx
mov dword [eax], 0
mov eax, ebx
mov eax, dword [eax + 0x20]
mov dword [eax], 0
mov eax, ebx
mov eax, dword [eax + 0x30]
mov dword [eax], 0
mov eax, ebx
mov eax, dword [eax + 0xc]
mov dword [eax], 0
mov eax, ebx
mov eax, dword [eax + 0x1c]
mov dword [eax], 0
mov eax, ebx
mov eax, dword [eax + 0x2c]
mov dword [eax], 0
mov eax, ebx
mov ebx, dword [ebp - 0x14]
mov dword [eax + 0xc], ebx
mov ebx, eax
mov dword [eax], vtable.std::basic_filebuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [eax + 0x48], 0
mov byte [eax + 0x3e], 0
lea eax, [ebx + 8]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x30], ecx
mov dword [eax], 0
mov eax, dword [ebx + 0x20]
pop edi
pop esi
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [ebx + 0x4c], eax
mov eax, dword [0x515870]
mov dword [ebx + 0x40], eax
mov eax, dword [0x515874]
mov dword [ebx + 0x44], eax
mov eax, ebx
mov dword [ebx + 0x38], 0
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x486d10
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004a4720
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [0x51549c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x486dab
lea eax, [ebp - 0x20c]
push eax
call esi
cmp dword [edi + 0x14], 8
jb 0x486d70
mov eax, dword [edi]
jmp 0x486d72
mov eax, edi
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x486dab
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.0049fa50
mov eax, dword [ebp + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x486df5
lea eax, [ebp - 0x20c]
push eax
call esi
cmp dword [edi + 0x14], 8
jb 0x486dd4
mov eax, dword [edi]
jmp 0x486dd6
mov eax, edi
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x486d91
mov esi, dword [ebp + 8]
xor eax, eax
push 0xffffffffffffffff
push eax
push edi
mov dword [esi + 0x14], 7
mov ecx, esi
mov dword [esi + 0x10], 0
mov word [esi], ax
call fcn.0049f460
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x486f50
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da510
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
mov ebx, ecx
mov dword [ebp - 0x18], ebx
push esi
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.00486ee0
mov dword [ebx], eax
mov dword [ebp - 4], 0
lea edx, [ebp - 0x10]
mov eax, dword [ebp + 0xc]
lea ecx, [ebx + 0xc]
push edx
push ecx
push 0
mov dword [ebx + 8], eax
mov edx, str.SELECT__FROM_Assemblies_WHERE_StrongName_
mov dword [ecx], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [eax]
push 0x80
push 0x2b
call fcn.0045dd00
mov esi, eax
add esp, 0x14
test esi, esi
je 0x487019
mov ecx, dword [ebx + 8]
push dword [ecx]
call fcn.0047ff70
mov edx, eax
mov dword [ebp - 0x34], esi
add esp, 4
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
cmp byte [edx], 0
jne 0x486ff3
xor ecx, ecx
jmp 0x487001
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x486ff8
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.0049d1b0
push 0x509520
lea eax, [ebp - 0x34]
push eax
call fcn.004a46a6
push edi
xor edi, edi
nop dword [eax]
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x487030
movzx eax, word [ecx + 0x8c]
jmp 0x487032
xor eax, eax
cmp edi, eax
jge 0x48710f
push 0
push fcn.0042c500
mov edx, edi
call fcn.0042dc50
mov edx, eax
mov dword [ebp - 0x1c], 0xf
add esp, 8
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
cmp byte [edx], 0
jne 0x487068
xor ecx, ecx
jmp 0x487079
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x487070
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.0049d1b0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.00487ba0
mov esi, eax
cmp esi, dword [ebx]
je 0x4870c6
cmp dword [esi + 0x24], 0x10
lea eax, [esi + 0x10]
lea edx, [eax + 0x10]
jb 0x4870a6
mov eax, dword [eax]
push dword [edx]
cmp dword [ebp - 0x1c], 0x10
lea ecx, [ebp - 0x30]
mov edx, dword [ebp - 0x20]
cmovae ecx, dword [ebp - 0x30]
push eax
call fcn.0048e640
shr eax, 0x1f
add esp, 8
test al, al
je 0x4870ed
lea eax, [ebp - 0x30]
push ecx
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push ecx
mov ecx, ebx
call fcn.00486f10
push eax
add eax, 0x10
mov ecx, ebx
push eax
push esi
lea eax, [ebp - 0x14]
push eax
call fcn.00488110
mov esi, dword [ebp - 0x14]
mov dword [esi + 0x28], edi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jb 0x487109
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.0049d380
inc edi
jmp 0x487020
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x48a570
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9ca6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
push 8
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0049fc4a
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004a11ae
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x10], ecx
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x34], esi
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov ecx, edi
mov eax, dword [edi + 0x20]
push 0
push 0
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
call fcn.0048c5a0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x48c450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d9c88
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x48c58c
cmp byte [ebx + 0x3d], 0
je 0x48c58c
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x48c4a8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0048c360
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x48c50e
sub eax, 1
je 0x48c512
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x48c565
xor bl, bl
jmp 0x48c567
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x10]
cmovae eax, edx
sub esi, eax
je 0x48c547
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004abe67
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x48c50a
cmp byte [ebx + 0x3d], 0
je 0x48c565
test esi, esi
jne 0x48c4d0
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00497a00
jmp 0x48c4cd
mov bl, 1
cmp ecx, 0x10
jb 0x48c579
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0049d380
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x491530
Capabilities:
Encrypt data using rc4 via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4dae28
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [esi], 0
mov dword [esi + 4], 0
cmp dword [edi + 0x14], 8
jb 0x491567
mov edi, dword [edi]
push ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
mov eax, dword [ebp + 8]
push 0
push 0
push 0x8003
push dword [eax]
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4915c3
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4915a0
sub ecx, edx
sar ecx, 1
push 0
lea eax, [ecx + ecx]
push eax
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4915c8
call ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
push 0x800000
mov dword [ebp - 4], 0
push dword [ebp - 0x14]
push 0x6801
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x4915f1
call ebx
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x14]
pop ebx
test eax, eax
je 0x491600
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x491710
Capabilities:
Encrypt data using aes via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4dae28
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [esi], 0
mov dword [esi + 4], 0
cmp dword [edi + 0x14], 8
jb 0x491747
mov edi, dword [edi]
push ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
mov eax, dword [ebp + 8]
push 0
push 0
push 0x8004
push dword [eax]
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4917a3
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x491780
sub ecx, edx
sar ecx, 1
push 0
lea eax, [ecx + ecx]
push eax
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4917a8
call ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
push 1
mov dword [ebp - 4], 0
push dword [ebp - 0x14]
push 0x6610
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x4917ce
call ebx
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x14]
pop ebx
test eax, eax
je 0x4917dd
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x491800
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dae50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 0x18], 0
mov edi, ecx
mov dword [ebp - 0x14], 0
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x49185e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
jmp 0x491861
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 1
test eax, eax
mov eax, dword [ebp - 0x18]
jne 0x4918c4
test eax, eax
je 0x4918c4
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.00491710
cmp dword [ebp - 0x1c], 0
jne 0x4918af
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4918b2
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push ecx
push edi
push 0
push 1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x4918af
mov eax, dword [ebp - 0x20]
mov bl, 1
jmp 0x4918b4
mov eax, dword [ebp - 0x20]
xor bl, bl
test eax, eax
je 0x4918bf
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [ebp - 0x18]
jmp 0x4918c6
xor bl, bl
test eax, eax
je 0x4918d3
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x494ad0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db127
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x250
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x1c], 0
push edi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x494b23
mov eax, dword [esi]
jmp 0x494b25
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
push 0x4dd420
push 1
push ecx
push 0x4dd430
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x494bda
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x14]
push edx
push 0x4dd410
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edi, eax
test edi, edi
js 0x494bc1
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
push edx
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edx, dword [ebp - 0x18]
mov edi, eax
cmp word [edx], 0
jne 0x494b9b
xor ecx, ecx
jmp 0x494baf
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x494ba0
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.0049f900
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x494bd2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test edi, edi
jns 0x494cd5
push 0x104
lea eax, [ebp - 0x258]
push eax
push str._SYSTEMROOT_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor eax, eax
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
cmp word [ebp - 0x258], ax
jne 0x494c12
xor ecx, ecx
jmp 0x494c2f
lea ecx, [ebp - 0x258]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x494c20
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x34]
call fcn.0049f900
push str._system32
lea edx, [ebp - 0x34]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
call fcn.0049edd0
add esp, 4
mov edi, eax
cmp esi, edi
je 0x494c97
cmp dword [esi + 0x14], 8
jb 0x494c70
mov eax, dword [esi + 0x14]
mov ecx, esi
inc eax
push eax
push dword [esi]
call fcn.0049f780
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x494c88
mov eax, dword [esi]
jmp 0x494c8a
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.0049ee40
mov eax, dword [ebp - 0x38]
cmp eax, 8
jb 0x494cac
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.0049f780
xor eax, eax
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x3c], 0
cmp eax, 8
jb 0x494cd5
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.0049f780
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x494ce6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x496730
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push str.Version
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4967a3
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x496771
cmp eax, 2
jne 0x49678d
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x49679d
test ecx, ecx
je 0x496798
test cl, 1
jne 0x49678d
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x49679d
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x499ba0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d9ca6
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0049fc4a
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004a11ae
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x499d10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db5ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0049fc4a
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004a11ae
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov ecx, dword [ebp - 0xc]
mov eax, edi
mov dword [edi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 4
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x49c020
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db7aa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.004a13fd
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
jne 0x49c0cf
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.004a40f8
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x509594
push eax
call fcn.004a46a6
push eax
push esi
call fcn.004a12b1
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4