joyce8/EMBER2024-capa huggingface dataset:
Function at 0x486640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f340
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x238], esi
test eax, eax
je 0x4867b1
test edi, edi
je 0x4867b1
xor ecx, ecx
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], cx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x234]
push ecx
push 0x20019
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48675f
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x23c], 0x208
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x238]
push eax
push 0
push edi
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x486753
cmp dword [ebp - 0x238], 1
jne 0x486753
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x486731
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00404580
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00401900
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4867ca
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4867a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4867a5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049995e
add esp, 8
jmp 0x4867ca
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov eax, esi
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.0049996c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x487b80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a61e5
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4ce4bc]
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 + 8]
lea eax, [ebp - 0x58]
push 1
push eax
mov dword [ebp - 0x5c], esi
call fcn.0048fd50
push str.cfgs_setup.cfg
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
call fcn.00401590
add esp, 0x14
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x487c14
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x487c0a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x487c0a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049995e
add esp, 8
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
mov byte [ebp - 4], 3
call fcn.00404580
push 0x208
mov byte [ebp - 4], 4
call fcn.0049999d
add esp, 4
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov edi, eax
cmovae ecx, dword [ebp - 0x28]
push ecx
push 0x104
push edi
push 0x4a9810
push str.BuildId
push str.Info
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, edi
mov dword [esi], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x487ca2
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.00404580
push edi
call fcn.004999a6
mov edx, dword [ebp - 0x14]
add esp, 4
cmp edx, 8
jb 0x487cf9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x487cef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487d39
push edx
push ecx
call fcn.0049995e
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x487d49
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x487d3f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x487d3f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049995e
add esp, 8
mov eax, esi
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.0049996c
mov esp, ebp
pop ebp
ret 4
Function at 0x488d00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a645d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x4ce2e0], 0xffffffff
jne 0x488e78
lea eax, [ebp - 0x58]
push 1
push eax
call fcn.0048fd50
push str.cfgs_setup.cfg
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
call fcn.00401590
add esp, 0x14
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x488d99
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x488d8f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x488d8f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049995e
add esp, 8
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
mov byte [ebp - 4], 3
call fcn.00404580
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push str.SupportNewLangs
push str.Local
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 0x14]
mov dword [0x4ce2e0], eax
cmp edx, 8
jb 0x488e28
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x488e1e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x488e68
push edx
push ecx
call fcn.0049995e
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x488e78
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x488e6e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x488e6e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049995e
add esp, 8
cmp dword [0x4ce2e0], 1
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049996c
mov esp, ebp
pop ebp
ret
Function at 0x4896a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, edx
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x2c], eax
lea edi, [ecx + 2]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 7
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4896e0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.00404580
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x20]
push ecx
push 0x20219
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 0
cmovae eax, dword [ebp - 0x1c]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x48978b
push dword [ebp - 0x20]
call edi
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x20]
push ecx
push 0x20119
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x48978b
push dword [ebp - 0x20]
call edi
mov esi, 0x80004005
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x4897d9
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4897cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4897cf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [ebp + 0x18]
add eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x20]
mov esi, eax
call edi
test esi, esi
jne 0x489754
mov eax, dword [ebp - 0x24]
cmp eax, 1
je 0x4897cb
cmp eax, 2
jne 0x489754
xor esi, esi
jmp 0x489759
push edx
push ecx
call fcn.0049995e
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0049996c
mov esp, ebp
pop ebp
ret

Function at 0x4899b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4899e4
xor al, al
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 0x14]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4899f2
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [esi + 0x14], 8
lea eax, [eax*2 + 2]
jb 0x489a08
mov esi, dword [esi]
push eax
push esi
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret
Function at 0x489f40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6570
mov eax, dword fs:[0]
push eax
sub esp, 0x328
mov eax, dword [0x4ce4bc]
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 esi, ecx
mov dword [ebp - 0x334], esi
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x489f81
mov eax, dword [eax]
push 0x4b30b4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x48a14a
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push 2
push 0
push ebx
call edi
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 0x10
cmp eax, 0x201
jl 0x48a13c
push 0x202
lea eax, [ebp - 0x214]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 2
push 0xfffffdff
push ebx
call edi
push ebx
push 0x201
lea eax, [ebp - 0x214]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x28
cmp byte [ebp - 0x214], 0x3b
jne 0x48a13c
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0xf
mov byte [ebp - 0x22c], 0
push 0x210
mov dword [ebp - 4], 0
call fcn.0049992e
mov edi, eax
mov dword [ebp - 0x330], eax
mov ecx, 0x80
mov dword [ebp - 0x21c], 0x200
lea esi, [ebp - 0x213]
mov dword [ebp - 0x218], 0x20f
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x200]
mov esi, eax
mov byte [edi], 0
push 0x20
mov dword [ebp - 0x22c], esi
call fcn.0049992e
mov ecx, dword [str.0123456789ABCDEF]
push 0x100
mov dword [ebp - 0x330], eax
mov dword [eax], ecx
mov ecx, dword [0x4b7510]
mov dword [eax + 4], ecx
mov ecx, dword [0x4b7514]
mov dword [eax + 8], ecx
mov ecx, dword [0x4b7518]
mov dword [eax + 0xc], ecx
mov byte [eax + 0x10], 0
lea eax, [ebp - 0x32c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x330]
add esp, 0x14
mov ecx, eax
lea edx, [eax + 0x10]
cmp eax, edx
je 0x48a0e0
jmp 0x48a0d0
movzx eax, byte [ecx]
inc ecx
mov byte [ebp + eax - 0x32c], 1
cmp ecx, edx
jne 0x48a0d0
mov ecx, esi
cmp esi, edi
jae 0x48a102
jmp 0x48a0f0
movzx eax, byte [ecx]
cmp byte [ebp + eax - 0x32c], 0
je 0x48a10e
inc ecx
cmp ecx, edi
jb 0x48a0f0
mov eax, dword [ebp - 0x334]
mov byte [eax + 0x3e], 0
jmp 0x48a11f
sub ecx, esi
cmp ecx, 0xffffffff
je 0x48a102
mov eax, dword [ebp - 0x334]
mov byte [eax + 0x3e], 1
push 0x20
push dword [ebp - 0x330]
call fcn.0049995e
push 0x210
push esi
call fcn.0049995e
add esp, 0x10
jmp 0x48a140
mov byte [esi + 0x3e], 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
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.0049996c
mov esp, ebp
pop ebp
ret
Function at 0x48ade0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a66f1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4d6db4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4d6b10]
cmp eax, dword [ecx + 4]
jg 0x48ae53
jmp 0x48ae34
mov al, byte [ecx]
inc ecx
test al, al
je 0x48af5b
jmp 0x48ae27
mov eax, 0x4d6af8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049996c
mov esp, ebp
pop ebp
ret
push 0x4d6b10
call fcn.00499d2f
add esp, 4
cmp dword [0x4d6b10], 0xffffffff
jne 0x48ae34
mov byte [ebp - 0x34], 0x69
mov byte [ebp - 0x33], 0x6f
mov byte [ebp - 0x32], 0x4e
mov byte [ebp - 0x31], 0x69
mov byte [ebp - 0x30], 0x2c
mov byte [ebp - 0x2f], 0x11
mov byte [ebp - 0x2e], 0x25
mov byte [ebp - 0x2d], 0x4e
mov byte [ebp - 0x2c], 0x7d
mov byte [ebp - 0x2b], 0x2c
mov byte [ebp - 0x2a], 0x11
mov byte [ebp - 0x29], 0x2c
mov byte [ebp - 0x28], 0x54
mov byte [ebp - 0x27], 0x26
mov byte [ebp - 0x26], 0x18
mov byte [ebp - 0x25], 0x68
mov byte [ebp - 0x24], 0x3a
mov byte [ebp - 0x23], 0x18
mov byte [ebp - 0x22], 4
mov byte [ebp - 0x21], 0x3a
mov byte [ebp - 0x20], 0x25
mov byte [ebp - 0x1f], 0x4e
mov byte [ebp - 0x1e], 0x6f
mov byte [ebp - 0x1d], 0x6f
mov byte [ebp - 0x1c], 0x12
mov byte [ebp - 0x1b], 4
mov byte [ebp - 0x1a], 0x3a
mov byte [ebp - 0x19], 0x18
mov byte [ebp - 0x18], 0x7c
mov byte [ebp - 0x17], 4
mov byte [ebp - 0x16], 0x6f
mov byte [ebp - 0x15], 0x25
mov byte [ebp - 0x14], 0
mov al, byte [ebp - 0x34]
mov byte [ebp - 0x13], 0
cmp byte [ebp - 0x13], 0
mov dword [ebp - 4], 0
jne 0x48af32
xor ecx, ecx
mov byte [ebp - 0x13], 1
lea esi, [ecx + 0x7f]
jmp 0x48af10
mov al, byte [ebp + ecx - 0x34]
movsx eax, al
sub eax, 0x6c
imul eax, eax, 0x13
cdq
idiv esi
lea eax, [edx + 0x7f]
cdq
idiv esi
mov byte [ebp + ecx - 0x34], dl
inc ecx
cmp ecx, 0x20
jb 0x48af10
jmp 0x48af32
lea ecx, [ebp - 0x34]
mov dword [0x4d6af8], 0
mov dword [0x4d6b08], 0
lea edx, [ecx + 1]
mov dword [0x4d6b0c], 0xf
jmp 0x48ae27
sub ecx, edx
lea eax, [ebp - 0x34]
push ecx
push eax
mov ecx, 0x4d6af8
call fcn.00413a60
push 0x4a8870
call fcn.00499be7
push 0x4d6b10
call fcn.00499ce5
add esp, 8
jmp 0x48ae34
Function at 0x48e670
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6c3d
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x14], 0
je 0x48e873
push 0x11
xor eax, eax
mov dword [ebp - 0x30], 0
push str.ciphertextversion
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.00404580
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00488ea0
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
call fcn.0048ab00
push eax
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 2
push eax
call fcn.00488c10
mov edx, dword [ebp - 0x34]
add esp, 0x18
cmp edx, 0x10
jb 0x48e745
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48e73b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48e7c5
push edx
push ecx
call fcn.0049995e
add esp, 8
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
cmp edx, 0x10
jb 0x48e787
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48e77d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48e7c5
push edx
push ecx
call fcn.0049995e
add esp, 8
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp edx, 8
jb 0x48e7d5
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48e7cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x48e7cb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049995e
add esp, 8
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
mov ecx, esi
jb 0x48e7e2
mov ecx, dword [esi]
cmp dword [ebp - 0x64], 8
lea eax, [ebp - 0x78]
push ecx
cmovae eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x18]
push 4
push ecx
push 0
push eax
push str.Support
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x48e80e
mov word [edi + 0x3c], 0x101
jmp 0x48e837
cmp dword [esi + 0x14], 8
jb 0x48e816
mov esi, dword [esi]
push esi
push 4
lea eax, [ebp - 0x18]
push eax
push 0
push str.ciphertextversion
push str.Support
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x48e837
mov byte [edi + 0x3d], 1
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x48e873
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48e869
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x48e869
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049995e
add esp, 8
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.0049996c
mov esp, ebp
pop ebp
ret
Function at 0x491180
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4d6db4]
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4d6ba0]
cmp eax, dword [ecx + 4]
jg 0x491311
cmp dword [0x4ce2d8], 0
jne 0x4912ca
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00490fd0
mov edi, eax
add esp, 8
cmp edi, 0x4ce2c8
je 0x491284
mov edx, dword [0x4ce2dc]
cmp edx, 8
jb 0x491226
mov ecx, dword [0x4ce2c8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49121c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4912b1
push edx
push ecx
call fcn.0049995e
add esp, 8
mov dword [0x4ce2d8], 0
xor eax, eax
mov word [0x4ce2c8], ax
mov dword [0x4ce2dc], 7
mov eax, dword [edi]
mov dword [0x4ce2c8], eax
mov eax, dword [edi + 4]
mov dword [0x4ce2cc], eax
mov eax, dword [edi + 8]
mov dword [0x4ce2d0], eax
mov eax, dword [edi + 0xc]
mov dword [0x4ce2d4], eax
mov eax, dword [edi + 0x10]
mov dword [0x4ce2d8], eax
mov eax, dword [edi + 0x14]
mov dword [0x4ce2dc], eax
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov edx, dword [ebp - 8]
pop edi
cmp edx, 8
jb 0x4912c1
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4912b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4912b7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049995e
add esp, 8
cmp dword [0x4ce2d8], 0
je 0x4912ec
mov eax, dword [esi + 4]
push 0x4ce2c8
cmp eax, dword [esi + 8]
je 0x4912e4
mov ecx, eax
call fcn.00401f70
add dword [esi + 4], 0x18
jmp 0x4912ec
push eax
mov ecx, esi
call fcn.0040e020
mov ecx, dword [esi + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [esi]
imul ecx
mov ecx, dword [ebp - 4]
sar edx, 2
xor ecx, ebp
mov eax, edx
shr eax, 0x1f
add eax, edx
pop esi
call fcn.0049996c
mov esp, ebp
pop ebp
ret
push 0x4d6ba0
call fcn.00499d2f
add esp, 4
cmp dword [0x4d6ba0], 0xffffffff
jne 0x4911b4
push 0x4a8ac0
call fcn.00499be7
push 0x4d6ba0
call fcn.00499ce5
add esp, 8
jmp 0x4911b4
Function at 0x492f30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a737e
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4ce4bc]
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 ebx, dword [ebp + 8]
mov dword [ebp - 0x78], 0
test ebx, ebx
je 0x493061
cmp dword [ebx], 0x3c
jne 0x493061
test byte [ebx + 4], 0xc
jne 0x49308b
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x493061
cmp word [eax], 0
je 0x493061
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x493061
cmp word [eax], 0
je 0x493061
push eax
lea ecx, [ebp - 0x28]
call fcn.00401960
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push str..exe
push eax
mov dword [ebp - 0x78], 1
call fcn.00496220
add esp, 8
test al, al
je 0x493004
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
push str.open
push dword [ebx + 0xc]
call esi
add esp, 8
test eax, eax
je 0x492ffe
push str.runas
push dword [ebx + 0xc]
call esi
add esp, 8
test eax, eax
jne 0x493004
mov byte [ebp - 0x71], 1
jmp 0x493008
mov byte [ebp - 0x71], 0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x49304b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x493041
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x493041
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049995e
add esp, 8
cmp byte [ebp - 0x71], 0
mov eax, dword [ebx + 0x10]
push eax
je 0x49307f
call fcn.00493970
add esp, 4
test eax, eax
jne 0x49308b
xor eax, eax
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.0049996c
mov esp, ebp
pop ebp
ret
call fcn.00493d80
add esp, 4
test eax, eax
je 0x493061
mov esi, dword [ebx + 0x14]
lea ecx, [ebp - 0x28]
mov edi, dword [ebx + 0x10]
push str.kSafeRunProcess
call fcn.00401960
push esi
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x70]
call fcn.004918c0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x4930f3
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4930e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4930e9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049995e
add esp, 8
push 2
lea ecx, [ebp - 0x7c]
call fcn.00498ad0
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [ebp - 0x7c]
mov esi, eax
call fcn.00498b70
cmp dword [ebp - 0x60], 0
mov dword [ebp - 4], 4
je 0x493125
push 1
lea ecx, [ebp - 0x70]
call fcn.00495580
lea ecx, [ebp - 0x40]
call fcn.00401bf0
lea ecx, [ebp - 0x58]
call fcn.00401bf0
lea ecx, [ebp - 0x70]
call fcn.00401bf0
mov eax, esi
jmp 0x493063