joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415f00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4c7650]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x210], 0
mov word [ebp - 0x20c], ax
call fcn.0047d070
add esp, 0xc
push edi
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0x4aa0c0
push 0x4aa1f4
push str.FunShion_Player
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.00405910
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.004799e1
mov esp, ebp
pop ebp
ret

Function at 0x416100
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4c7650]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x210], 0
mov word [ebp - 0x20c], ax
call fcn.0047d070
mov edx, dword [ebp + 8]
add esp, 0xc
push 0
push edx
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, esi
call fcn.00405910
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.004799e1
mov esp, ebp
pop ebp
ret

Function at 0x416430
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49bd62
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4c7650]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x21c], 0
mov eax, dword [0x4c72d4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c72d4
mov dword [ebp - 0x220], esi
call edx
add eax, 0x10
mov dword [esi], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
mov dword [ebp - 4], 0
push ecx
mov dword [ebp - 0x21c], 1
mov word [ebp - 0x218], ax
call fcn.0047d070
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4164f2
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4164d4
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00405810
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004799e1
mov esp, ebp
pop ebp
ret
Function at 0x416630
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c532
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x4c7650]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x11c
lea eax, [ebp - 0x12c]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x130], 0
call fcn.0047d070
add esp, 0xc
push str.error
mov ecx, esi
call fcn.00405910
lea ecx, [ebp - 0x12c]
mov dword [ebp - 4], 0
push ecx
mov dword [ebp - 0x130], 1
mov dword [ebp - 0x12c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x416783
mov eax, dword [ebp - 0x128]
sub eax, 5
je 0x416766
dec eax
jne 0x416777
mov eax, dword [ebp - 0x124]
sub eax, 0
je 0x4166fb
dec eax
je 0x416714
dec eax
mov ecx, esi
jne 0x416779
push str.Win8
jmp 0x41677e
cmp byte [ebp - 0x12], 1
mov ecx, esi
jne 0x41670a
push str.Vista
jmp 0x41670f
push str.other
call fcn.004058c0
cmp byte [ebp - 0x12], 1
jne 0x416777
lea edx, [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x158]
cmp ax, 9
je 0x41673a
cmp ax, 6
jne 0x416750
push str.win7_64
mov ecx, esi
call fcn.004058c0
push eax
mov ecx, esi
call fcn.004051c0
jmp 0x416783
push str.win7_32
mov ecx, esi
call fcn.004058c0
push eax
mov ecx, esi
call fcn.004051c0
jmp 0x416783
mov eax, dword [ebp - 0x124]
sub eax, 0
je 0x416777
dec eax
je 0x41679e
dec eax
jne 0x416783
mov ecx, esi
push str.other
call fcn.004058c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004799e1
mov esp, ebp
pop ebp
ret
push 0x4aa258
mov ecx, esi
jmp 0x41677e
Function at 0x41b0b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49aad8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4c7650]
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 edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x41b1d1
cmp byte [edi + 0x49], bl
je 0x41b1d1
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x41b1c5
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x41b125
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x41b13d
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x41b166
dec eax
je 0x41b16a
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x41b1c0
jmp 0x41b1cc
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x41b17a
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x41b1a3
cmp ebx, 0x10
jae 0x41b189
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0047b8b7
add esp, 0x10
cmp esi, eax
jne 0x41b1bd
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x41b1c9
test esi, esi
jne 0x41b131
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040a3a0
jmp 0x41b12b
lea ecx, [ebp - 0x2c]
call fcn.0040afb0
xor al, al
jmp 0x41b1d3
lea ecx, [ebp - 0x2c]
call fcn.0040afb0
mov al, 1
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.004799e1
mov esp, ebp
pop ebp
ret
Function at 0x41f950
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [eax]
push edi
mov edi, ecx
call fcn.00418520
mov ebx, eax
mov ecx, dword [ebx + 0x28]
sub ecx, dword [ebx + 0x24]
sar ecx, 2
cmp ecx, 6
jb 0x41fa3d
mov eax, dword [ebx + 0x34]
mov dword [ebp - 8], eax
lea esp, [esp]
mov esi, dword [eax]
mov eax, dword [esi + 8]
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41f9a7
add dword [ebx + 0x34], 4
mov edx, dword [ebx + 0x28]
cmp edx, dword [ebx + 0x34]
jne 0x41fa15
mov eax, dword [ebx + 0x24]
mov dword [ebx + 0x34], eax
jmp 0x41fa15
mov eax, dword [edi + 4]
lea ecx, [ebp - 4]
cmp ecx, eax
jae 0x41f9dd
mov ecx, dword [edi]
lea edx, [ebp - 4]
cmp ecx, edx
ja 0x41f9dd
mov esi, edx
sub esi, ecx
sar esi, 2
cmp eax, dword [edi + 8]
jne 0x41f9cd
mov eax, edi
call fcn.0040d9a0
mov eax, dword [edi + 4]
test eax, eax
je 0x41f9f2
mov ecx, dword [edi]
mov edx, dword [ecx + esi*4]
mov dword [eax], edx
jmp 0x41f9f2
cmp eax, dword [edi + 8]
jne 0x41f9e9
mov eax, edi
call fcn.0040d9a0
mov eax, dword [edi + 4]
test eax, eax
je 0x41f9f2
mov dword [eax], esi
add dword [edi + 4], 4
mov eax, dword [edi + 4]
sub eax, dword [edi]
sar eax, 2
cmp eax, 6
jae 0x41fa21
add dword [ebx + 0x34], 4
mov eax, dword [ebx + 0x28]
cmp eax, dword [ebx + 0x34]
jne 0x41fa15
mov ecx, dword [ebx + 0x24]
mov dword [ebx + 0x34], ecx
mov eax, dword [ebx + 0x34]
cmp eax, dword [ebp - 8]
jne 0x41f980
mov eax, dword [edi + 4]
mov edi, dword [edi]
mov edx, eax
sub edx, edi
push 0x420390
sar edx, 2
push edx
push eax
push edi
call fcn.0041fbe0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420b60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d48b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4c7650]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4e2900]
xor edi, edi
mov dword [ebp - 0x10], edi
test eax, eax
jne 0x420bc2
push 0x80
call fcn.0047a58d
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x420bbb
push 1
push eax
call fcn.00418290
jmp 0x420bbd
xor eax, eax
mov dword [0x4e2900], eax
mov esi, dword [eax + 0x24]
mov eax, dword [eax + 0x28]
xor ecx, ecx
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 2
cmp esi, eax
je 0x420cc5
mov bl, 3
lea esp, [esp]
mov eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x420caa
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
cmp dword [edx - 0xc], eax
jle 0x420caa
mov eax, dword [0x4c72d4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c72d4
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [0x4c72d4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c72d4
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], bl
mov eax, dword [esi]
add eax, 0x10
push eax
lea ecx, [ebp - 0x1c]
call fcn.004051c0
mov eax, dword [esi]
add eax, 8
push eax
lea ecx, [ebp - 0x18]
call fcn.004051c0
lea ecx, [ebp - 0x1c]
lea edi, [ebp - 0x2c]
call fcn.00421000
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420c89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420cae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x420cae
inc edi
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x10]
cmp edi, 6
jge 0x420cc2
add esi, 4
cmp esi, dword [ebp - 0x14]
jne 0x420bf0
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
sub eax, ebx
sar eax, 3
sub eax, edi
test eax, eax
jle 0x420ce9
mov esi, ebx
mov edi, eax
lea ecx, [esi + 4]
push esi
call fcn.004167b0
add esp, 4
add esi, 8
dec edi
jne 0x420cd7
test ebx, ebx
je 0x420d07
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
push ecx
mov eax, ebx
call fcn.00421250
add esp, 4
push ebx
call fcn.004799d6
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420d20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d48b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4c7650]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4e2900]
mov edi, 6
mov dword [ebp - 0x10], edi
test eax, eax
jne 0x420d85
push 0x80
call fcn.0047a58d
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x420d7e
push 1
push eax
call fcn.00418290
jmp 0x420d80
xor eax, eax
mov dword [0x4e2900], eax
mov esi, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
xor ecx, ecx
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 2
cmp esi, eax
je 0x420e85
mov bl, 3
lea esp, [esp]
mov eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x420e6a
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
cmp dword [edx - 0xc], eax
jle 0x420e6a
mov eax, dword [0x4c72d4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c72d4
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [0x4c72d4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c72d4
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], bl
mov eax, dword [esi]
add eax, 0x10
push eax
lea ecx, [ebp - 0x1c]
call fcn.004051c0
mov eax, dword [esi]
add eax, 8
push eax
lea ecx, [ebp - 0x18]
call fcn.004051c0
lea ecx, [ebp - 0x1c]
lea edi, [ebp - 0x2c]
call fcn.00421000
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420e49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420e6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x420e6e
inc edi
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x10]
cmp edi, 0xc
jge 0x420ed9
add esi, 4
cmp esi, dword [ebp - 0x14]
jne 0x420db0
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
sub eax, ebx
sar eax, 3
sub eax, edi
test eax, eax
jle 0x420ea9
mov esi, ebx
mov edi, eax
lea ecx, [esi + 4]
push esi
call fcn.004167b0
add esp, 4
add esi, 8
dec edi
jne 0x420e97
test ebx, ebx
je 0x420ec7
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
push edx
mov eax, ebx
call fcn.00421250
add esp, 4
push ebx
call fcn.004799d6
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x420ec7
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
push ecx
mov eax, esi
call fcn.00421250
add esp, 4
push esi
jmp 0x420ebf
Function at 0x420f00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49d44b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4c7650]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x4e2900]
test eax, eax
jne 0x420f6b
push 0x80
call fcn.0047a58d
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 1
test eax, eax
je 0x420f5c
push 1
push eax
call fcn.00418290
jmp 0x420f5e
xor eax, eax
mov dword [esp + 0x20], 0xffffffff
mov dword [0x4e2900], eax
mov esi, dword [eax + 0x14]
mov edi, dword [eax + 0x18]
cmp esi, edi
je 0x420fa4
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jmp 0x420f80
mov eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call ebx
test eax, eax
jne 0x420f9d
mov eax, dword [esi]
lea ecx, [eax + 8]
add eax, 0x10
push eax
call fcn.004167b0
add esp, 4
add esi, 4
cmp esi, edi
jne 0x420f80
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427da0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49e88b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x4c7650]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
fld dword [esi + 0x30]
push 0xc4
fsub qword [0x4b44e0]
fsub qword [0x4b44d8]
fstp dword [esp + 0xc]
fldz
fst dword [esp + 0x10]
fstp dword [esp + 0x14]
fld dword [esp + 0xc]
fstp dword [esp + 0x18]
fld dword [0x4b44c8]
fstp dword [esp + 0x1c]
call fcn.0047a58d
add esp, 4
mov dword [esp + 8], eax
mov dword [esp + 0x28], 0
test eax, eax
je 0x427e25
lea ecx, [esp + 0xc]
push ecx
push eax
call fcn.0042b6d0
jmp 0x427e27
xor eax, eax
mov dword [esp + 0x28], 0xffffffff
mov dword [esi + 0x74], eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x14]
push esi
call eax
mov ecx, dword [esi + 0x74]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [esi + 0x74]
push ecx
mov eax, esi
call fcn.00433440
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42f960
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4c7650]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov edx, dword [edi]
or ecx, 0x2001f
push ecx
xor esi, esi
push eax
push edx
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.0042f8f0
mov ebx, eax
cmp ebx, esi
je 0x42f9da
mov eax, dword [ebp - 0x218]
cmp eax, esi
je 0x42f9c5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004799e1
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x218]
push esi
push esi
push esi
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x20c]
push edx
push esi
push eax
mov dword [ebp - 0x21c], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x42fa5c
mov edi, edi
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x218]
call fcn.0042f960
mov ebx, eax
cmp ebx, esi
jne 0x42f9b4
lea edx, [ebp - 0x228]
push edx
mov edx, dword [ebp - 0x218]
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push esi
push edx
mov dword [ebp - 0x21c], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x42fa10
mov eax, dword [ebp - 0x218]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x42fa75
push eax
call ebx
mov dword [ebp - 0x218], esi
mov eax, dword [ebp - 0x220]
push edi
mov dword [ebp - 0x214], esi
call fcn.0042fb80
mov edi, eax
mov eax, dword [ebp - 0x218]
cmp eax, esi
je 0x42fa96
push eax
call ebx
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004799e1
mov esp, ebp
pop ebp
ret 4
Function at 0x4306b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b516
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4c7650]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
cmp edi, esi
jne 0x430730
call fcn.0042ea50
mov esi, eax
jmp 0x430849
mov eax, dword [ebp - 0x41c]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, esi
jne 0x43074f
call fcn.0042ea50
jmp 0x430840
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
jne 0x43076b
call fcn.0042ea50
jmp 0x430840
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
mov dword [ebp - 0x41c], ebx
cmp eax, ebx
jae 0x43078c
mov esi, 0x8007000e
jmp 0x430842
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, esi
ja 0x4307a1
cmp eax, 0xffffffff
jbe 0x4307ab
push 0x80070216
call fcn.004057f0
cmp eax, 0x400
jbe 0x4307dd
lea ecx, [ebp - 0x418]
push ecx
call fcn.0042f220
jmp 0x4307e9
lea edx, [ebp - 0x414]
mov dword [ebp - 0x418], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x418]
cmp eax, esi
jne 0x430801
mov esi, 0x8007000e
jmp 0x430842
push ebx
push eax
mov eax, dword [ebp - 0x420]
push ebx
push eax
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
jne 0x43081f
call fcn.0042ea50
jmp 0x430840
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x418]
push eax
lea esi, [ebp - 0x42c]
call fcn.00430510
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x414]
cmp dword [ebp - 0x418], ecx
je 0x430862
lea eax, [ebp - 0x418]
call fcn.0042f210
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004799e1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x430db0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x4c7650]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 4]
call fcn.0043d440
mov esi, dword [edi + 0xc]
call fcn.0043d440
mov ecx, edi
call fcn.004310d0
mov ecx, edi
call fcn.004312a0
push 4
call fcn.0047a58d
add esp, 4
test eax, eax
je 0x430e03
mov dword [eax], vtable.CFunCartoon.0
jmp 0x430e05
xor eax, eax
mov dword [edi + 0x20], eax
call fcn.00431490
call fcn.00431560
call fcn.00430eb0
call fcn.00430f70
mov esi, edi
call fcn.00431030
push edi
call fcn.0043c990
push 0x114
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0047d070
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x14], 6
jb 0x430e5f
mov esi, dword [edi + 0xc]
call fcn.0043d670
mov esi, dword [edi + 0xc]
mov edx, dword [esi + 0x2c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push edx
call ebx
test eax, eax
je 0x430e7e
mov eax, dword [esi + 0x2c]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [edi + 4]
mov ecx, dword [edi + 0x2c]
push ecx
call ebx
test eax, eax
je 0x430e97
mov edx, dword [edi + 0x2c]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004799e1
mov esp, ebp
pop ebp
ret