joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433a25
Capabilities:
Encode data using xor

Disassembly:
push 0x30
mov eax, 0x435dc5
call fcn.004195d6
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0x1c], esi
jne 0x433a5f
push 0x43cf78
call fcn.00404de1
push esi
push 1
lea ecx, [ebp + 8]
call fcn.0040515a
mov eax, edi
jmp 0x433af7
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.0040513b
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x3c], eax
dec eax
lea esi, [ebp - 0x2c]
call fcn.00405531
xor edi, edi
lea eax, [ebp + 8]
call fcn.0040429f
movzx eax, byte [eax]
push ebx
push eax
call fcn.004339ec
cmp dword [ebp - 0x3c], ebx
pop ecx
pop ecx
mov dword [ebp - 0x30], ebx
jle 0x433ad2
mov edi, dword [ebp - 0x30]
lea eax, [ebp + 8]
call fcn.0040429f
movzx eax, byte [eax]
mov al, byte [eax + 0x453f50]
xor al, byte [ebp - 0x30]
lea edi, [ebp - 0x2c]
mov byte [ebp - 0x38], al
push dword [ebp - 0x38]
call fcn.00405596
inc dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x3c]
jl 0x433aa2
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
push eax
call fcn.004050a2
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0040515a
push 0
push ebx
lea ecx, [ebp + 8]
call fcn.0040515a
mov eax, dword [ebp - 0x34]
call fcn.00419659
ret

Function at 0x433afd
Capabilities:
Encode data using xor

Disassembly:
push 0x2c
mov eax, 0x435dfa
call fcn.004195d6
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], edi
cmp dword [ebp + 0x1c], edi
jne 0x433b37
push 0x43cf78
call fcn.00404de1
push edi
push 1
lea ecx, [ebp + 8]
call fcn.0040515a
mov eax, esi
jmp 0x433bde
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.0040513b
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x34], eax
inc eax
lea esi, [ebp - 0x2c]
call fcn.00405531
call fcn.0042cad9
mov byte [ebp - 0x30], al
movzx eax, al
push edi
push eax
call fcn.004339ec
pop ecx
pop ecx
push dword [ebp - 0x30]
mov edi, esi
call fcn.00405596
mov esi, dword [ebp - 0x34]
and dword [ebp - 0x30], 0
test esi, esi
jle 0x433bb9
mov edi, dword [ebp - 0x30]
lea eax, [ebp + 8]
call fcn.0040429f
mov cl, byte [ebp - 0x30]
movzx eax, byte [eax]
inc cl
movzx ecx, cl
xor ecx, eax
mov al, byte [ecx + 0x453f50]
mov byte [ebp - 0x34], al
push dword [ebp - 0x34]
lea edi, [ebp - 0x2c]
call fcn.00405596
inc dword [ebp - 0x30]
cmp dword [ebp - 0x30], esi
jl 0x433b85
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x2c]
push eax
call fcn.004050a2
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0040515a
push 0
push ebx
lea ecx, [ebp + 8]
call fcn.0040515a
mov eax, dword [ebp - 0x38]
call fcn.00419659
ret
Function at 0x433cfb
Capabilities:
Create process on windows

Disassembly:
push 0x9c
mov eax, 0x4362c6
call fcn.0041956d
mov esi, ecx
mov ecx, dword [esi + 0x68]
mov eax, dword [esi + 0x30]
lea eax, [ecx + eax + 4]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041677e
pop ecx
mov ebx, eax
push 0x22
pop eax
mov word [ebx], ax
cmp dword [esi + 0x6c], 8
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x18], ebx
jb 0x433d44
mov ecx, dword [esi + 0x58]
jmp 0x433d47
lea ecx, [esi + 0x58]
add eax, eax
push eax
push ecx
lea eax, [ebx + 2]
push eax
call fcn.0041b180
mov eax, dword [esi + 0x68]
add esp, 0xc
push 0x22
pop ecx
mov word [ebx + eax*2 + 2], cx
mov eax, dword [esi + 0x68]
push 0x20
pop ecx
mov word [ebx + eax*2 + 4], cx
cmp dword [esi + 0x34], 8
jb 0x433d78
mov ecx, dword [esi + 0x20]
jmp 0x433d7b
lea ecx, [esi + 0x20]
mov eax, dword [esi + 0x68]
push ecx
lea eax, [ebx + eax*2 + 6]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 0x44
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.0041ca00
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
cmp dword [esi + 0x88], 8
stosd dword es:[edi], eax
push 0xa
stosd dword es:[edi], eax
pop eax
mov dword [ebp - 0x44], 1
mov word [ebp - 0x40], ax
mov dword [ebp - 0x70], 0x44
mov byte [ebp - 0xd], 1
jb 0x433dca
mov eax, dword [esi + 0x74]
jmp 0x433dcd
lea eax, [esi + 0x74]
cmp dword [esi + 0x6c], 8
jb 0x433dd8
mov ecx, dword [esi + 0x58]
jmp 0x433ddb
lea ecx, [esi + 0x58]
lea edx, [ebp - 0x28]
push edx
lea edx, [ebp - 0x70]
push edx
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x433e5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x8c]
push eax
lea ebx, [ebp - 0x14]
call fcn.00401ac1
pop ecx
push eax
lea eax, [ebp - 0xa8]
push str.launch_error_
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040169a
add esp, 0xc
add esi, 0x8c
push esi
mov byte [ebp - 4], 1
call fcn.0040105d
push ebx
push 1
lea esi, [ebp - 0xa8]
call fcn.00401255
push ebx
push 1
lea esi, [ebp - 0x8c]
call fcn.00401255
mov byte [ebp - 0xd], bl
mov ebx, dword [ebp - 0x18]
push ebx
call fcn.00417b9f
pop ecx
push 0xffffffffffffffff
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x28]
call esi
mov al, byte [ebp - 0xd]
call fcn.00419645
ret
Function at 0x3001e8bf
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
jne 0x3001e8e3
xor eax, eax
jmp 0x3001e92b
cmp dword [ebp - 4], 2
jne 0x3001e8df
push esi
mov esi, dword [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jb 0x3001e928
cmp word [esi], 0x43
jne 0x3001e928
cmp word [esi + 2], 0x4e
jne 0x3001e928
cmp word [esi + 4], 0x3d
jne 0x3001e928
push dword [ebp + 0xc]
add esi, 6
push dword [ebp + 8]
push esi
call fcn.300327f0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
inc eax
jmp 0x3001e92a
xor eax, eax
pop esi
pop edi
leave
ret 8
Function at 0x3001f5ad
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x81
push dword [0x30078430]
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push 1
push 0x80
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 4]
push eax
push 0x30001470
push 0x15
xor esi, esi
push esi
push 0x30001480
mov dword [ebp - 4], esi
call fcn.300414fd
test eax, eax
mov ebx, 0x300773e8
jl 0x3001f684
cmp dword [ebp - 4], esi
je 0x3001f684
push 0x3ea
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
sub esp, 0x10
mov edi, esp
mov word [ebp - 0x18], 3
mov dword [ebp - 0x10], 0x1e
lea esi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
mov edi, esp
mov esi, 0x300014a0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 0xfffffffffffffffc
push dword [ebp - 8]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x18]
push 0x824
push ebx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
sub esp, 0x10
mov edi, esp
mov esi, 0x30001490
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
push 0xfffffffffffffffc
push dword [ebp - 8]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [0x3007aad0]
push 0x300015d8
push 0x30001590
push 0x824
push ebx
call fcn.3001f579
add esp, 0x14
push 0
push 0x103
push 0xc5
push 0x3e8
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x3001fd4a
Capabilities:
Identify system language via api
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x3001dedc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov dword [0x3007844c], eax
call dword [sym.imp.KERNEL32.dll_GetACP]
mov esi, dword [ebp + 8]
xor edi, edi
cmp si, di
mov dword [0x30078450], eax
je 0x3001fd8e
push esi
call fcn.3001fc48
test eax, eax
jne 0x3001fe9b
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
push esi
call fcn.3001fc48
test eax, eax
jne 0x3001fe9b
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
push esi
call fcn.3001fc48
test eax, eax
jne 0x3001fe9b
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx esi, ax
push esi
call fcn.3001fc48
test eax, eax
jne 0x3001fe9b
movzx esi, word [0x3007844c]
push esi
call fcn.3001fc48
test eax, eax
jne 0x3001fe9b
mov esi, 0x409
push esi
call fcn.3001fc48
test eax, eax
jne 0x3001fe9b
lea eax, [ebp - 0x80]
push eax
push 1
push edi
push 0x30001688
push 0x80000002
mov dword [ebp - 0x80], edi
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x3001fed6
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x88]
push eax
push edi
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp - 0x80]
mov dword [ebp - 0x90], 0xa
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], 0x64
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc ebx
cmp eax, edi
jne 0x3001fed6
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x84], edi
call fcn.30032e2d
push dword [ebp - 0x84]
movzx esi, word [ebp - 0x84]
call fcn.3001fc48
test eax, eax
je 0x3001fe1f
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x3007844c]
cmp si, ax
je 0x3001fea8
movzx eax, si
push esi
mov dword [0x3007aad0], eax
mov word [0x30078448], si
call fcn.3003601e
mov byte [0x30078444], al
movzx eax, word [0x30078448]
push eax
call fcn.30036003
mov dword [0x30078440], eax
xor eax, eax
inc eax
jmp 0x3001fee6
cmp dword [ebp - 0x80], edi
je 0x3001fee4
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30040fc0
leave
ret 4

Function at 0x3001fef7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x30001738
push 0x80000001
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x3001ff43
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0x30001714
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x300204fd
Capabilities:
Set thread local storage value

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
cmp ecx, edx
jb 0x3002051e
mov eax, dword [eax + 8]
cmp ecx, eax
jb 0x3002051e
cmp edx, eax
jb 0x3002051e
add eax, 0x10000
cmp eax, ecx
jae 0x30020549
mov eax, dword [0x3004650c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
push 0x35636561
call fcn.30022f03
push 0
push 0
push 1
push 0xe0000001
call dword [sym.imp.KERNEL32.dll_RaiseException]
ret

Function at 0x30020833
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x3007ab08], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x30020877
call ebx
test eax, eax
jns 0x3002086d
push 0x30001890
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x30001884
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x3007ab04], eax
mov dword [0x3007ab08], 1
mov eax, dword [0x3007ab04]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x30020893
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x300208c3
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x300208b9
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x300208ae
push dword [eax + 0xc]
call dword [eax + 8]
jmp 0x300208b3
push dword [eax + 4]
call dword [eax]
test eax, eax
je 0x300208c2
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc
Function at 0x30023bd6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
cmp ebx, edi
jne 0x30023bee
xor eax, eax
jmp 0x30023cdb
push esi
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x30023bfe
cmp dword [0x3007ab3c], edi
je 0x30023c0f
cmp dword [0x3007bb54], edi
mov dword [ebp - 4], edi
je 0x30023c16
test byte [ebx + 0xc], 0x10
jne 0x30023c16
xor eax, eax
jmp 0x30023cda
lea ecx, [ebp + 0xb]
mov dword [ebp + 8], edi
mov dword [ebp - 8], edi
call fcn.300233e1
neg esi
sbb esi, esi
and esi, 2
push edi
mov dword [ebp - 0xc], esi
push esi
jmp 0x30023c94
mov eax, dword [ebx]
cmp eax, edi
je 0x30023c41
push eax
call fcn.30032cd0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x30023c4d
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push edi
push edi
push edi
push edi
push dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], edi
mov esi, eax
je 0x30023c6a
push dword [ebp - 4]
call fcn.3002054a
push esi
call fcn.30022fff
test eax, eax
pop ecx
je 0x30023caf
push 0x796d7468
push edi
call fcn.30022f42
push dword [ebp + 8]
mov ecx, 0x3007ab48
call fcn.3002357f
push edi
push dword [ebp - 0xc]
mov dword [ebp + 8], edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebx + 8]
call fcn.30023641
mov esi, eax
add esp, 0x14
cmp esi, edi
je 0x30023c32
jmp 0x30023cbc
push dword [ebp + 8]
mov ecx, 0x3007ab48
call fcn.300234fd
xor eax, eax
cmp esi, edi
sete al
cmp dword [0x3007ab44], edi
mov esi, eax
je 0x30023cd8
push 0x3007aab8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x3002407d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x30024093
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push esi
lea ecx, [ebp + 0xc]
push ecx
push 0
push dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 2
pop ebx
cmp dword [ebp - 4], ebx
mov edi, eax
jae 0x300240c5
cmp dword [ebp + 0xc], 1
je 0x300240c3
cmp dword [ebp + 0xc], ebx
jne 0x300240c5
mov edi, ebx
push edi
call fcn.30022fff
test eax, eax
pop ecx
je 0x300240eb
push 0x796d746b
push 0
call fcn.30022f42
push dword [ebp + 8]
mov ecx, 0x3007ab48
call fcn.3002357f
jmp 0x3002414a
test edi, edi
jne 0x3002413d
cmp dword [ebp + 0xc], ebx
je 0x300240fa
cmp dword [ebp + 0xc], 1
jne 0x30024105
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2 - 2], 0
cmp dword [ebp + 0xc], ebx
je 0x3002410f
cmp byte [ebp + 0x1c], bl
jne 0x30024128
mov eax, dword [ebp + 0x18]
shr eax, 1
push eax
push esi
call fcn.30023056
test eax, eax
pop ecx
pop ecx
jne 0x30024128
mov edi, 0xea
jmp 0x3002413d
movzx eax, byte [ebp + 0x1c]
push eax
push dword [ebp + 0xc]
call fcn.3002302c
test eax, eax
pop ecx
pop ecx
jne 0x3002413d
mov edi, ebx
push dword [ebp + 8]
mov ecx, 0x3007ab48
call fcn.300234fd
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x30024151
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
jne 0x3002416c
mov eax, 0xa0
jmp 0x300242b9
mov eax, dword [ebx]
cmp eax, esi
mov dword [ebp - 0xc], esi
je 0x3002417e
push eax
call fcn.30032cd0
mov dword [ebp - 0xc], eax
mov dword [ebp + 8], esi
push edi
cmp dword [ebp + 8], esi
jne 0x30024198
cmp dword [0x3007ab3c], esi
je 0x300241a6
mov dword [ebp - 0x10], 2
jmp 0x300241b3
cmp dword [ebp + 8], 1
jne 0x300241a6
cmp dword [0x3007bb54], esi
je 0x300241b0
test byte [ebx + 0xc], 0x10
je 0x30024278
mov dword [ebp - 0x10], esi
lea ecx, [ebp + 0x13]
call fcn.300233e1
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
push esi
jmp 0x30024218
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov esi, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x300241d8
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push ecx
push 0
push dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
push edi
call fcn.30022fff
test eax, eax
pop ecx
je 0x30024234
push 0x796d746c
xor edi, edi
push edi
call fcn.30022f42
push esi
mov ecx, 0x3007ab48
call fcn.3002357f
mov dword [ebp - 8], edi
push edi
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebx + 8]
call fcn.30023641
add esp, 0x14
test eax, eax
je 0x300241c4
jmp 0x30024263
push esi
mov ecx, 0x3007ab48
call fcn.300234fd
test edi, edi
jne 0x30024263
movzx eax, word [ebx + 0xc]
mov ecx, eax
and ecx, 0xf
cmp dword [ebp - 0x18], ecx
je 0x300242bf
cmp dword [ebp - 0x18], 3
jne 0x30024263
cmp dword [ebp - 4], 4
jne 0x30024263
and al, 0xf
cmp al, 4
je 0x300242bf
xor esi, esi
cmp dword [0x3007ab44], esi
je 0x30024278
push 0x3007aab8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc dword [ebp + 8]
cmp dword [ebp + 8], 2
jl 0x30024182
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.300230f2
add esp, 0x10
mov edi, eax
cmp dword [ebp - 0xc], 0
je 0x300242ae
push dword [ebp - 0xc]
call fcn.3002054a
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x3007ab44], 0
je 0x300242a0
push 0x3007aab8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x300242a0
Function at 0x300245cb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
jne 0x300245e3
xor eax, eax
jmp 0x3002475a
mov eax, dword [esi]
cmp eax, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
je 0x300245fb
push eax
call fcn.30032cd0
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], ebx
push edi
or edi, 0xffffffff
cmp dword [ebp - 8], ebx
jne 0x30024618
cmp dword [0x3007ab3c], ebx
je 0x30024626
mov dword [ebp - 0x1c], 2
jmp 0x30024633
cmp dword [ebp - 8], 1
jne 0x30024626
cmp dword [0x3007bb54], ebx
je 0x30024630
test byte [esi + 0xc], 0x10
je 0x300246f4
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp + 0xb]
mov dword [ebp - 0x10], ebx
call fcn.300233e1
push ebx
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 8]
jmp 0x300246bc
mov eax, dword [ebp - 0xc]
cmp eax, ebx
mov esi, dword [ebp - 0x10]
jne 0x3002465b
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], 2
mov edi, eax
jae 0x30024686
cmp dword [ebp - 0x14], 1
je 0x30024683
cmp dword [ebp - 0x14], 2
jne 0x30024686
push 2
pop edi
push edi
call fcn.30022fff
test eax, eax
pop ecx
je 0x300246cf
push 0x796d746f
push ebx
call fcn.30022f42
push esi
mov ecx, 0x3007ab48
call fcn.3002357f
push ebx
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.30023641
mov edi, eax
add esp, 0x14
cmp edi, ebx
je 0x3002464f
jmp 0x300246de
push esi
mov ecx, 0x3007ab48
call fcn.300234fd
cmp edi, ebx
je 0x30024703
cmp dword [0x3007ab44], ebx
je 0x300246f1
push 0x3007aab8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp + 8]
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
jl 0x300245ff
jmp 0x30024716
cmp dword [0x3007ab44], ebx
je 0x3002471a
push 0x3007aab8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, ebx
jne 0x3002473a
cmp dword [ebp - 0x14], 2
je 0x3002472c
mov eax, dword [ebp + 8]
mov al, byte [eax + 0xc]
and al, 0xf
cmp al, 2
jne 0x3002473a
push dword [ebp - 4]
call fcn.30023220
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 0x18], ebx
je 0x30024747
push dword [ebp - 0x18]
call fcn.3002054a
cmp edi, ebx
pop edi
je 0x30024757
push dword [ebp + 8]
call fcn.3002323b
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 4
Function at 0x300248eb
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x3001dedc]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x3002498c
cmp dword [ebp - 0x90], 2
mov edx, dword [ebp - 0x98]
mov dword [0x3007aad8], edx
jne 0x30024980
mov eax, dword [ebp - 0x9c]
cmp eax, 5
mov cx, word [ebp - 0xc]
mov dword [0x3007aad4], eax
mov word [0x3007aadc], cx
jne 0x3002496a
xor eax, eax
inc eax
cmp edx, eax
jb 0x3002498c
test cx, cx
mov dword [0x3007aae0], eax
ja 0x3002495e
cmp edx, eax
jbe 0x30024963
mov dword [0x3007aae4], eax
cmp cx, ax
jbe 0x3002498c
jmp 0x30024979
jbe 0x3002498c
xor eax, eax
inc eax
mov dword [0x3007aae0], eax
mov dword [0x3007aae4], eax
mov dword [0x3007aae8], eax
jmp 0x3002498c
push 0
push 0x77617376
call fcn.30022f03
push 0x56
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
neg eax
xor ecx, ebp
mov dword [0x30046048], eax
call fcn.30040fc0
leave
ret

Function at 0x30024b5f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x3001dedc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x3007adcc], 0
je 0x30024b82
mov eax, dword [0x3007adc8]
jmp 0x30024c01
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0xa0]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
je 0x30024bbe
test byte [ebp - 8], 0x10
je 0x30024bbe
xor eax, eax
inc eax
jmp 0x30024bf1
mov ecx, dword [0x3007aad4]
xor eax, eax
cmp ecx, 5
mov dword [0x3007adc8], eax
jg 0x30024bda
jne 0x30024bf6
cmp dword [0x3007aad8], eax
jbe 0x30024bf6
lea eax, [ebp - 0xa0]
push eax
call esi
test eax, eax
je 0x30024bef
test word [ebp - 8], 0x100
jne 0x30024bb9
xor eax, eax
mov dword [0x3007adc8], eax
mov dword [0x3007adcc], 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.30040fc0
leave
ret

Function at 0x3002574b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x30025791
push edi
push esi
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call fcn.30036d83
mov edi, eax
cmp edi, 0xffffffff
je 0x30025790
push esi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
ret