joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b42
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40a128
call fcn.004068cc
mov edi, 0x94
mov eax, edi
call fcn.00406a30
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x46d428], ecx
mov eax, dword [esi + 4]
mov dword [0x46d434], eax
mov edx, dword [esi + 8]
mov dword [0x46d438], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x46d42c], esi
cmp ecx, 2
je 0x405ba2
or esi, 0x8000
mov dword [0x46d42c], esi
shl eax, 8
add eax, edx
mov dword [0x46d430], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x405bdd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405bdd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x405bf5
cmp eax, 0x20b
je 0x405be2
mov dword [ebp - 0x1c], esi
jmp 0x405c09
cmp dword [ecx + 0x84], 0xe
jbe 0x405bdd
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x405c03
cmp dword [ecx + 0x74], 0xe
jbe 0x405bdd
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040687b
pop ecx
test eax, eax
jne 0x405c35
cmp dword [0x46d418], 1
jne 0x405c22
call fcn.00406030
push 0x1c
call fcn.00405eb9
push 0xff
call fcn.00405d1e
pop ecx
pop ecx
call fcn.004067d9
mov dword [ebp - 4], esi
call fcn.0040662e
test eax, eax
jge 0x405c4e
push 0x1b
call fcn.00405b1d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x46d9b4], eax
call fcn.0040650c
mov dword [0x46d410], eax
call fcn.0040646a
test eax, eax
jge 0x405c74
push 8
call fcn.00405b1d
pop ecx
call fcn.00406237
test eax, eax
jge 0x405c85
push 9
call fcn.00405b1d
pop ecx
push 1
call fcn.00405d4e
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x405c9b
push eax
call fcn.00405b1d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004061da
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x405cbc
movzx eax, word [ebp - 0x40]
jmp 0x405cbf
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004016a0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x405cdd
push edi
call fcn.00405e79
call fcn.00405e9b
jmp 0x405d0f
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00406907
ret
Function at 0x405db8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x46d468], esi
push edi
jne 0x405dd8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x46d464], esi
mov byte [0x46d460], al
jne 0x405e3e
mov ecx, dword [0x46d9a8]
test ecx, ecx
je 0x405e1f
mov eax, dword [0x46d9a4]
sub eax, 4
cmp eax, ecx
jmp 0x405e18
mov eax, dword [eax]
test eax, eax
je 0x405e0a
call eax
mov eax, dword [0x46d9a4]
sub eax, 4
cmp eax, dword [0x46d9a8]
mov dword [0x46d9a4], eax
jae 0x405e02
mov eax, 0x40c01c
mov esi, 0x40c020
cmp eax, esi
mov edi, eax
jae 0x405e3e
mov eax, dword [edi]
test eax, eax
je 0x405e37
call eax
add edi, 4
cmp edi, esi
jb 0x405e2f
mov eax, 0x40c024
mov esi, 0x40c028
cmp eax, esi
mov edi, eax
jae 0x405e5d
mov eax, dword [edi]
test eax, eax
je 0x405e56
call eax
add edi, 4
cmp edi, esi
jb 0x405e4e
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x405e77
push dword [ebp + 8]
mov dword [0x46d468], 1
call fcn.00405d1e
pop ebp
ret

Function at 0x405eb9
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x46d2c0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x46d190]
je 0x405eee
inc eax
cmp eax, 0x13
jb 0x405edf
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x46d190]
jne 0x406014
mov eax, dword [0x46d418]
cmp eax, 1
je 0x405fec
cmp eax, edx
jne 0x405f1e
cmp dword [0x46d188], 1
je 0x405fec
cmp ecx, 0xfc
je 0x406014
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405f54
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00405990
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00406d60
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x405f88
mov eax, edi
push eax
call fcn.00406d60
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a540
push edi
call fcn.00406c30
add esp, 0x10
push edi
call fcn.00406d60
push dword [esi + 0x46d194]
mov ebx, eax
call fcn.00406d60
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00406a30
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00405990
push edi
push ebx
call fcn.004059a0
push 0x40a520
push ebx
call fcn.004059a0
push dword [esi + 0x46d194]
push ebx
call fcn.004059a0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00406b29
add esp, 0x2c
jmp 0x406014
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x46d194]
push dword [esi]
call fcn.00406d60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00406e1c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x406b29
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x46d584], ebx
push esi
push edi
jne 0x406ba9
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x406be4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x46d584], eax
je 0x406be4
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x46d588], eax
call esi
cmp dword [0x46d428], 2
mov dword [0x46d58c], eax
jne 0x406ba9
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x46d594], eax
je 0x406ba9
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x46d590], eax
mov eax, dword [0x46d590]
test eax, eax
je 0x406bee
call eax
test eax, eax
je 0x406bd5
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x46d594]
test eax, eax
je 0x406bd5
test byte [ebp - 8], 1
jne 0x406bee
cmp dword [0x46d434], 4
jb 0x406be8
or byte [ebp + 0x12], 0x20
jmp 0x406c0d
xor eax, eax
jmp 0x406c1d
or byte [ebp + 0x12], 4
jmp 0x406c0d
mov eax, dword [0x46d588]
test eax, eax
je 0x406c0d
call eax
mov ebx, eax
test ebx, ebx
je 0x406c0d
mov eax, dword [0x46d58c]
test eax, eax
je 0x406c0d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x46d584]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40826e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40829c
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4082a3
cmp ebx, dword [eax + 4]
jae 0x4082a3
xor eax, eax
jmp 0x408493
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4082b4
xor eax, eax
inc eax
jmp 0x408492
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4082ca
cmp ecx, edx
jae 0x40840f
cmp dword [eax + 4], 0
je 0x4082d3
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4082bb
cmp dword [ebp + 8], 0
je 0x4082f5
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40840f
cmp eax, esi
jae 0x40840f
mov eax, dword [0x46d5a0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40831a
cmp dword [esi*4 + 0x46d5a8], edi
je 0x408413
inc esi
cmp esi, eax
jl 0x408308
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40848f
cmp dword [ebp - 8], 0x1000000
jne 0x40848f
test byte [ebp - 0xc], 0xcc
je 0x408398
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40848f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40848f
cmp word [eax + 0x18], 0x10b
jne 0x40848f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40848f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x408398
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x408398
test byte [ecx + 0x27], 0x80
jne 0x40840f
push 1
push 0x46d5e8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4082ac
mov ecx, dword [0x46d5a0]
test ecx, ecx
mov edx, ecx
jle 0x4083cc
lea eax, [ecx*4 + 0x46d5a4]
cmp dword [eax], edi
je 0x4083cc
dec edx
sub eax, 4
test edx, edx
jg 0x4083c0
test edx, edx
jne 0x4083fd
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4083d9
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4083f1
lea eax, [edx*4 + 0x46d5a8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4083df
cmp ecx, 0x10
jge 0x4083fd
inc ecx
mov dword [0x46d5a0], ecx
push 0
push 0x46d5e8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4082ac
xor eax, eax
jmp 0x408492
test esi, esi
jle 0x4082ac
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x46d5e8
call ebx
test eax, eax
jne 0x4082ac
cmp dword [esi*4 + 0x46d5a8], edi
je 0x408469
mov eax, dword [0x46d5a0]
lea esi, [eax - 1]
test esi, esi
jl 0x408457
cmp dword [esi*4 + 0x46d5a8], edi
je 0x408453
dec esi
jns 0x408447
test esi, esi
jge 0x408467
cmp eax, 0x10
jge 0x408462
inc eax
mov dword [0x46d5a0], eax
lea esi, [eax - 1]
jmp 0x408469
je 0x408481
xor ecx, ecx
test esi, esi
jl 0x408481
lea eax, [ecx*4 + 0x46d5a8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40846f
push 0
push 0x46d5e8
call ebx
jmp 0x4082ac
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4092b9
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00406a30
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409354
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x46d428]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x409354
cmp eax, 1
je 0x409375
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409354
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x409321
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x409350
xor eax, eax
inc eax
jmp 0x409394
cmp edi, eax
jae 0x409358
xor eax, eax
jmp 0x409394
cmp eax, esi
jae 0x40935f
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x46d428]
jmp 0x409378
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409d90
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov ebp, esp
xor eax, eax
mov edx, dword fs:[eax + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
movzx ecx, word [edx + 0x26]
xor edi, edi
lodsb al, byte [esi]
cmp al, 0x61
jl 0x409dae
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x409da7
push edx
push edi
mov edx, dword [edx + 0x10]
mov ecx, dword [edx + 0x3c]
mov ecx, dword [ecx + edx + 0x78]
jecxz 0x409e0b
add ecx, edx
push ecx
mov ebx, dword [ecx + 0x20]
add ebx, edx
mov ecx, dword [ecx + 0x18]
jecxz 0x409e0a
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edx
xor edi, edi
lodsb al, byte [esi]
ror edi, 0xd
add edi, eax
cmp al, ah
jne 0x409dd8
add edi, dword [ebp - 8]
cmp edi, dword [ebp + 0x24]
jne 0x409dce
pop eax
mov ebx, dword [eax + 0x24]
add ebx, edx
mov cx, word [ebx + ecx*2]
mov ebx, dword [eax + 0x1c]
add ebx, edx
mov eax, dword [ebx + ecx*4]
add eax, edx
mov dword [esp + 0x24], eax
pop ebx
pop ebx
popal
pop ecx
pop edx
push ecx
jmp eax
pop edi
pop edi
pop edx
mov edx, dword [edx]
jmp 0x409d9e

Function at 0x40a3d0
Capabilities:
Terminate process

Disassembly:
add byte [eax - 0x75], dl
add byte [eax - 0x50], dl
dec ecx
int1
invalid
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x50]
test eax, eax
je 0x40a410
mov edx, dword [ebx + 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test edi, esp
jne 0x40a3aa
push esi
mov esi, dword [0x406198]
call esi
test ecx, eax
lahf
loope 0x40a458
pop ebp
ret 8
mov eax, 0x4e3b
pop ebp
ret 0xc1

Function at 0x40b2d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, dword [edi + 0x51]
push esi
mov esi, dword [ebp + 8]
mov al, byte [esi + 0x2c]
test al, al
add byte [esi + edi*4 - 0x75000000], 0x4e
dec eax
xor edi, dword [ecx + 0x53]
sbb dword [edx], 1
push edi
pop edx
inc ebp
cld
mov dword [ebp + 8], eax
movnti dword [eax + eax + 0x7e8b0000], ebx
cmp al, 0x3b
clc
je 0x13db395
mov ebx, dword [esi + 0x71]
cmp edi, 0xffffffff
jbe 0x40b311
imul ecx, eax, 0xffffffff
jmp 0x40b313
mov edi, 0x45673c7
lea ecx, [ebp - 0x7d]
push 0
push ecx
jae 0x40b36b
add al, 0x8d
dec ebp
sub dword [edx], 0x51
xor dl, byte [ebx + 0x52]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b358
mov eax, dword [ebp - 4]
mov edx, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
add edx, eax
adc ecx, 0x7b
sub edi, eax
add ebx, eax
mov dword [esi - 0x67], edx
in al, dx
dec dword [ecx - 0x3d88ab56]
int1
lahf
or byte [edi - 0x39], bl
inc esi
cmp al, 0
add byte [eax], al
add byte [ebx + 0x5e], bl
sbb ch, ah
pop ebp
ret 0x5504
mov edi, dword [0x403998]
call edi
test eax, eax
jne 0x40b369
mov dword [ebp + 8], eax
jmp 0x40b373
stosd dword es:[edi], eax
xlatb
add eax, 0xf9fc80
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
mov edx, dword [esi + 0x50]
out 0x4e, al
push esp
add edx, eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x50], edx
xor eax, 0xc0cb00d1
mov dword [eax], eax
cmp dword [edx + 7], edi
mov dword [esi + 0x3c], 0xe3ba00dd
mov eax, dword [0x5b5f2e45]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x401100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40111b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401152
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40114e
jmp 0x401140
cmp esi, eax
jae 0x401152
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401140
cmp esi, eax
jb 0x401159
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x403370
Capabilities:
Identify system language via api
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x2001f
xor esi, esi
push str.SOFTWAREConexantSACpl
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.00403260
test eax, eax
jne 0x4033e9
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
push esi
push str.Language
mov edi, 4
push ebx
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4033d0
cmp dword [ebp - 8], edi
jne 0x4033d0
movzx esi, word [ebp - 0xc]
test ebx, ebx
je 0x4033e2
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 0
xor eax, eax
cmp ax, si
jne 0x403412
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx esi, ax
xor ecx, ecx
cmp cx, si
jne 0x403412
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
xor edx, edx
cmp dx, si
jne 0x403412
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
mov eax, esi
shr si, 0xa
movzx ecx, si
and eax, 0x3ff
or esi, 0xffffffff
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
or edi, esi
xor eax, eax
mov ecx, 0x52529e
mov dx, word [ebp - 0xc]
cmp dx, word [ecx - 2]
jne 0x403452
movzx edx, word [ecx]
cmp word [ebp - 8], dx
jne 0x403449
mov esi, eax
jmp 0x403452
xor ebx, ebx
cmp bx, dx
jne 0x403452
mov edi, eax
inc eax
add ecx, 0x14
cmp eax, 0x1d
jl 0x403432
cmp esi, 0xffffffff
je 0x403464
mov eax, esi
jmp 0x403470
mov eax, edi
cmp edi, 0xffffffff
jne 0x403470
mov eax, 7
mov dword [0x56f058], eax
lea eax, [eax + eax*4]
mov ecx, dword [eax*4 + 0x5252a8]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword [0x56f05c], ecx
pop ebx
test eax, eax
je 0x403496
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4034b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push 0x20019
push 0
push esi
push edi
mov dword [ebp - 4], 1
call ebx
test eax, eax
je 0x4034fd
lea ecx, [ebp + 0xc]
push ecx
push 1
push 0
push esi
push edi
call ebx
test eax, eax
je 0x4034fd
xor eax, eax
pop edi
test eax, eax
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x18]
lea edx, [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0x14]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x403524
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
test eax, eax
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x404610
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5749c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.00500800
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call esi
test eax, eax
jne 0x40466a
lea edx, [ebp - 0x120]
push edx
mov dword [ebp - 0x120], 0x114
call esi
cmp dword [ebp - 0x110], 2
pop esi
jne 0x40468d
cmp dword [ebp - 0x11c], 6
jb 0x40468d
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ffd80
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.004ffd80
mov esp, ebp
pop ebp
ret

Function at 0x4046a0
Capabilities:
Check if file exists

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
cmp eax, 2
jne 0x4046ba
push str.One_of_the_files_necessary_to_run_the_application_couldnt_be_found._nThe_SmartAudio_application_needs_to_be_reinstalled.
call fcn.0040ecae
ret
cmp eax, 0x485
jne 0x4046cc
push str.One_of_the_library_files_necessary_to_run_the_application_couldnt_be_found._nThe_SmartAudio_application_needs_to_be_reinstalled.
call fcn.0040ecae
ret
cmp eax, 8
jne 0x4046dc
push str.There_is_not_enough_memory_to_perform_the_specified_action._nThe_SmartAudio_application_will_be_terminated.
call fcn.0040ecae
ret
push str.There_is_an_error_to_run_the_application._nThe_SmartAudio_application_will_be_terminated.
call fcn.0040ecae
ret
Function at 0x404760
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x5749c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x620], ecx
call fcn.00404610
test al, al
je 0x404813
push 0x3c
lea eax, [ebp - 0x66c]
push 0
push eax
call fcn.00500800
add esp, 0xc
lea ecx, [ebp - 0x66c]
push ecx
mov dword [ebp - 0x664], 0
mov dword [ebp - 0x66c], 0x3c
mov dword [ebp - 0x668], 0x540
mov dword [ebp - 0x660], str.open
mov dword [ebp - 0x650], 1
mov dword [ebp - 0x658], ebx
mov dword [ebp - 0x65c], edi
mov dword [ebp - 0x654], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4048b0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ffd80
mov esp, ebp
pop ebp
ret 0xc
push ebx
push edi
push str._s__s
lea edx, [ebp - 0x61c]
push 0x30c
push edx
call fcn.0050087a
add esp, 0x14
cmp eax, 0xffffffff
je 0x4048bb
push 0x44
lea eax, [ebp - 0x674]
push 0
push eax
call fcn.00500800
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x630]
push ecx
lea edx, [ebp - 0x674]
push edx
push esi
push eax
push 0x10
push eax
push eax
push eax
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x62c], eax
mov dword [ebp - 0x628], eax
mov dword [ebp - 0x624], eax
lea eax, [ebp - 0x61c]
push eax
push 0
mov dword [ebp - 0x674], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4048b0
mov ecx, dword [ebp - 0x630]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x62c]
push edx
call esi
jmp 0x4048bb
mov ecx, dword [ebp - 0x620]
call fcn.004046a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.004ffd80
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4049b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push 1
push 0
push esi
push edi
mov byte [ebp - 1], 0
call ebx
test eax, eax
je 0x4049ea
lea ecx, [ebp + 0xc]
push ecx
push 0x101
push 0
push esi
push edi
call ebx
test eax, eax
jne 0x404a24
mov eax, dword [ebp + 0x18]
lea edx, [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0x14]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov bl, 1
test eax, eax
je 0x404a0f
mov bl, byte [ebp - 1]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18