joyce8/EMBER2024-capa huggingface dataset:
Function at 0x493e88
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x4d19a0]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x493ecc
cmp word [edx], bx
jne 0x493ecc
or byte [edi + eax + 0x28], 4
jmp 0x493ed1
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x494025
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x494005
cmp ax, word [ebp - 0x10]
je 0x493f0a
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x493ffa
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x493f30
push 0xa
pop ecx
cmp word [eax], cx
jne 0x493f20
push ecx
pop eax
push 4
jmp 0x493f25
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x493ff4
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x493feb
cmp dword [ebp - 0x18], 0
je 0x493feb
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x4d19a0]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x493fb7
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x493f7b
mov word [esi], ax
jmp 0x493faf
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x4d19a0]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x4d19a0]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x4d19a0]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x493ffa
cmp word [ebp - 4], ax
jne 0x493fcc
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x493fcc
mov word [esi], ax
add esi, 2
jmp 0x493ffa
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004764b4
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x493ff7
jmp 0x493fee
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x493eea
jmp 0x494025
mov ecx, dword [ecx*4 + 0x4d19a0]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x49401c
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x494025
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x494b0e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049470e

Function at 0x494b19
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00494891

Function at 0x49b04e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049a7d2

Function at 0x49b059
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049aa11

Function at 0x49b351
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049b21e
Function at 0x401810
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x508]
push edi
lea edi, [esi + 0x508]
mov ecx, edi
call dword [eax + 8]
mov eax, dword [edi + 4]
test eax, eax
je 0x401857
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x401847
push 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], 0
mov eax, dword [esi + 0x4d0]
test eax, eax
je 0x401875
push dword [esi + 4]
push 0x3ea
push 0x1451
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
mov dword [esi + 0x24], 0
pop esi
ret

Function at 0x402710
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e1a4
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x44000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.WebBrowserWrapper.0
mov dword [esi + 4], vtable.WebBrowserWrapper.5.0
mov dword [esi + 8], vtable.WebBrowserWrapper.4.0
mov dword [esi + 0xc], vtable.WebBrowserWrapper.3.0
mov dword [esi + 0x10], vtable.WebBrowserWrapper.2.0
mov dword [esi + 0x14], vtable.WebBrowserWrapper.1.0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x24], 0
push 0
push 0
mov dword [ebp - 4], 0
push 1
push 0
mov dword [esi + 0x34], vtable.SINGLE_THREAD::SingleThread.0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], vtable.IPreProcessHtmlMessage.0
mov dword [esi], vtable.WebBrowserBox.7.0
mov dword [esi + 4], vtable.WebBrowserBox.6.0
mov dword [esi + 8], vtable.WebBrowserBox.5.0
mov dword [esi + 0xc], vtable.WebBrowserBox.4.0
mov dword [esi + 0x10], vtable.WebBrowserBox.3.0
mov dword [esi + 0x14], vtable.WebBrowserBox.2.0
mov dword [esi + 0x34], vtable.WebBrowserBox.1.0
mov dword [esi + 0x48], vtable.WebBrowserBox.0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
lea eax, [esi + 0x70]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x40283c
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
push 8
mov byte [ebp - 4], 4
call fcn.004171b3
mov dword [ebp - 0x14], eax
xorps xmm0, xmm0
push 8
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [esi + 0x30], eax
mov dword [eax], str.showPop
mov eax, dword [esi + 0x30]
mov dword [eax + 4], 4
mov dword [esi + 0x50], 0
movups xmmword [esi + 0x54], xmm0
call fcn.004171b3
mov dword [ebp - 0x14], eax
add esp, 8
mov dword [eax], esi
mov dword [eax + 4], 0
mov dword [esi + 0x88], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402920
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e1e0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x44000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x30]
mov dword [esi], vtable.WebBrowserBox.7.0
mov dword [esi + 4], vtable.WebBrowserBox.6.0
mov dword [esi + 8], vtable.WebBrowserBox.5.0
mov dword [esi + 0xc], vtable.WebBrowserBox.4.0
mov dword [esi + 0x10], vtable.WebBrowserBox.3.0
mov dword [esi + 0x14], vtable.WebBrowserBox.2.0
mov dword [esi + 0x34], vtable.WebBrowserBox.1.0
mov dword [esi + 0x48], vtable.WebBrowserBox.0
test eax, eax
je 0x402996
push 8
push eax
call fcn.004171e6
add esp, 8
mov dword [esi + 0x30], 0
mov eax, dword [esi + 0x88]
test eax, eax
je 0x4029b5
push 8
push eax
call fcn.004171e6
add esp, 8
mov dword [esi + 0x88], 0
mov eax, dword [esi + 0x84]
lea edi, [esi + 0x70]
cmp eax, 8
jb 0x4029cc
inc eax
push eax
push dword [edi]
call fcn.00402680
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x4029e2
mov edi, dword [edi]
xor eax, eax
mov word [edi], ax
mov ecx, dword [esi + 0x64]
test ecx, ecx
je 0x402a12
mov eax, dword [esi + 0x6c]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.00401230
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x402a1f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi + 0x38]
mov dword [esi + 0x34], vtable.SINGLE_THREAD::SingleThread.0
test eax, eax
je 0x402a58
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x402a48
push 0
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x38], 0
mov dword [esi], vtable.WebBrowserWrapper.0
mov dword [esi + 4], vtable.WebBrowserWrapper.5.0
mov dword [esi + 8], vtable.WebBrowserWrapper.4.0
mov dword [esi + 0xc], vtable.WebBrowserWrapper.3.0
mov dword [esi + 0x10], vtable.WebBrowserWrapper.2.0
mov dword [esi + 0x14], vtable.WebBrowserWrapper.1.0
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x402a8e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4042d0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x54]
mov dword [esi], vtable.CPopHelper.1.0
mov dword [esi + 0x24], vtable.CPopHelper.0
push eax
mov dword [esi + 0x38], vtable.CPopServiceProxy.0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov edi, dword [esi + 0x48]
test edi, edi
je 0x40432b
mov ecx, dword [esi + 0x50]
mov eax, 0x6f74ae27
sub ecx, edi
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push edi
call fcn.00405ae0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov eax, dword [esi + 0x28]
mov dword [esi + 0x24], vtable.SINGLE_THREAD::SingleThread.0
test eax, eax
je 0x404364
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x404354
push 0
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x28], 0
mov eax, dword [esi + 0x14]
pop edi
pop esi
test eax, eax
je 0x404373
push eax
call fcn.00416e55
ret
Function at 0x404ad0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
lea ecx, [esi + 0x38]
call fcn.00405770
mov eax, dword [esi + 0x24]
lea ecx, [esi + 0x24]
call dword [eax + 8]
mov eax, dword [esi + 0x28]
test eax, eax
je 0x404b16
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x404b06
push 0
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x28], 0
pop esi
ret
Function at 0x405470
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e4cb
mov eax, dword fs:[0]
push eax
sub esp, 0x858
mov eax, dword [0x44000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x4054ac
mov al, 1
jmp 0x4055ba
call fcn.0040b2d0
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00419740
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x442878
push str._spop.dll
push 0x400
push eax
call fcn.00405070
add esp, 0x10
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4054fd
xor al, al
jmp 0x4055ba
xor eax, eax
mov byte [ebp - 0x860], 0
mov dword [ebp - 0x848], 7
mov dword [ebp - 0x84c], 0
mov word [ebp - 0x85c], ax
mov dword [ebp - 0x830], 7
mov dword [ebp - 0x834], eax
mov word [ebp - 0x844], ax
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], eax
mov word [ebp - 0x82c], ax
lea edx, [ebp - 0x860]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x810]
call fcn.004074b0
test eax, eax
jne 0x4055ab
cmp byte [ebp - 0x860], al
je 0x4055ab
push 0x4380d4
lea ecx, [ebp - 0x82c]
call fcn.00405c40
test eax, eax
je 0x405597
push str.Beijing_Sogou_Technology_Development_Co.__Ltd.
lea ecx, [ebp - 0x82c]
call fcn.00405c40
test eax, eax
jne 0x4055ab
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0xc], eax
mov bl, 1
jmp 0x4055ad
xor bl, bl
lea ecx, [ebp - 0x860]
call fcn.004055e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004171a2
mov esp, ebp
pop ebp
ret
Function at 0x406a10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e6a7
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x44000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0
mov dword [ebx], 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [ebp + 8]
push 0
push 0
push 1
push 0
mov dword [0x441df4], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
mov esi, eax
push esi
push 0x40c8d2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x14
call fcn.004171b3
mov edi, eax
mov dword [ebp + 8], edi
mov dword [ebp - 4], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov byte [ebp - 4], 1
push 0x10
mov dword [edi + 0xc], 2
mov dword [edi + 0x10], 0
call fcn.004171b3
mov esi, eax
mov dword [ebp - 0x10], esi
push 0xe
mov dword [esi], 0x64
mov dword [esi + 4], str.ct.gif
mov dword [esi + 8], 0xe
mov byte [esi + 0xc], 1
call fcn.0041d7ed
push dword [esi + 8]
mov dword [esi + 4], eax
push str.ct.gif
push eax
call fcn.0042d5d0
add esp, 0x18
mov dword [ebp - 0x14], 0x439ce4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esi
mov ecx, edi
push eax
call fcn.0040d486
push 0x10
mov dword [ebp - 4], 0xffffffff
call fcn.004171b3
mov esi, eax
mov dword [ebp + 8], esi
push 0x20
mov dword [esi], 0x64
mov dword [esi + 4], str.PopLuciferStart
mov dword [esi + 8], 0x20
mov byte [esi + 0xc], 1
call fcn.0041d7ed
push dword [esi + 8]
mov dword [esi + 4], eax
push str.PopLuciferStart
push eax
call fcn.0042d5d0
add esp, 0x14
mov dword [ebp - 0x14], str.module
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esi
mov ecx, edi
push eax
call fcn.0040d486
push edi
push dword [edi + 0xc]
push 0x2903
push dword [0x443cb0]
call dword [sym.imp.USER32.dll_SendNotifyMessageW]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4078a4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 4], ebx
je 0x4078b8
xor eax, eax
jmp 0x40790d
mov eax, dword [esi + 0x10]
push edi
mov dword [ebp - 4], eax
lea eax, [esi + 8]
push eax
push ebx
lea eax, [ebp - 8]
mov dword [esi + 0xc], ebx
push eax
push 0x407915
push ebx
push ebx
mov dword [ebp - 8], esi
call fcn.0041e53b
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
mov edi, ebx
mov eax, dword [ebp - 4]
je 0x4078fc
test eax, eax
je 0x4078f9
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 4]
xor edi, edi
inc edi
test eax, eax
je 0x40790a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x407962
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x407999
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40798c
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 4], 0
pop esi
pop ebp
ret 4
Function at 0x407a3b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x82c
mov eax, 0x42e7ac
call fcn.0042d090
mov edi, ecx
mov dword [ebp - 0x834], edi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x830]
mov ebx, dword [ebp + 0xc]
xor esi, esi
push ecx
push 1
push esi
push eax
push edx
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x830], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x830], esi
jne 0x407a97
push esi
mov ecx, edi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], 7
call fcn.004026e0
jmp 0x407ba4
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00419740
and dword [ebp - 0x818], esi
lea ecx, [ebp - 0x828]
add esp, 0xc
mov dword [ebp - 0x814], 7
push 0
call fcn.004026e0
xor ecx, ecx
lea eax, [ebp - 0x834]
push eax
push ecx
lea eax, [ebp - 0x82c]
mov dword [ebp - 4], ecx
push eax
push ecx
push ebx
push dword [ebp - 0x830]
mov dword [ebp - 0x82c], ecx
mov dword [ebp - 0x834], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407b67
cmp dword [ebp - 0x82c], 1
je 0x407b17
cmp dword [ebp - 0x82c], 2
je 0x407b17
cmp dword [ebp - 0x82c], 7
jne 0x407b67
cmp dword [ebp - 0x834], 0x800
jae 0x407b2b
lea esi, [ebp - 0x810]
jmp 0x407b39
push dword [ebp - 0x834]
call fcn.0041747f
pop ecx
mov esi, eax
lea eax, [ebp - 0x834]
push eax
push esi
lea eax, [ebp - 0x82c]
push eax
push 0
push ebx
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407b67
push esi
lea ecx, [ebp - 0x828]
call fcn.00406850
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x407b8b
lea eax, [ebp - 0x810]
cmp esi, eax
je 0x407b8b
push 2
push esi
call fcn.004171e6
pop ecx
pop ecx
lea eax, [ebp - 0x828]
mov ecx, edi
push eax
call fcn.004068a0
lea ecx, [ebp - 0x828]
call fcn.00402610
mov eax, edi
call fcn.0042d04b
ret

Function at 0x407bac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push 1
push edi
push edx
push SysReAllocString
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 4], edi
jne 0x407bd4
xor eax, eax
jmp 0x407c2d
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], edi
push eax
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push edi
push dword [ebp + 8]
mov dword [ebp - 0xc], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407c21
push 4
pop eax
cmp dword [ebp - 8], eax
je 0x407c05
cmp dword [ebp - 8], 5
jne 0x407c21
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x407c32
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push 2
push 0
mov esi, edx
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x407c62
lea eax, [ebp - 4]
mov edx, esi
push eax
call fcn.00407d54
pop ecx
cmp dword [ebp - 4], 0
jne 0x407c6c
xor al, al
jmp 0x407c95
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
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]
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40a812
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push edi
lea eax, [ebp - 8]
mov dword [ebp - 0x14], edx
push eax
xor ebx, ebx
push 0x43a208
mov dword [ebp - 8], ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x40a83e
xor al, al
jmp 0x40a8cb
push esi
push edi
call fcn.0041d7ed
mov esi, eax
mov dword [ebp - 0x10], esi
pop ecx
test esi, esi
je 0x40a899
push esi
push edi
push ebx
push 0x43a208
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40a899
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 0x439870
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40a899
mov esi, dword [ebp - 4]
lea edi, [ebp - 0x48]
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x48], 0xfeef04bd
mov esi, dword [ebp - 0x10]
sete al
mov bl, al
push esi
call fcn.0041aac0
pop ecx
pop esi
test bl, bl
je 0x40a837
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x40]
mov eax, ecx
shr eax, 0x10
mov dword [edx], eax
movzx eax, cx
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 4], eax
mov eax, ecx
shr eax, 0x10
mov dword [edx + 8], eax
movzx eax, cx
mov dword [edx + 0xc], eax
mov al, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ac68
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x27c
mov eax, dword [0x44000c]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push esi
push edi
lea eax, [esp + 0x30]
mov esi, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x40aca6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
jmp 0x40ae26
mov edx, esi
lea ecx, [esp + 0x18]
call fcn.0040a8d1
push 2
pop ecx
cmp dword [esp + 0x28], ecx
jb 0x40ae19
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edi, dword [esp + 0x18]
push 8
pop ebx
cmp esi, ebx
push 0x5c
cmovae eax, edi
pop edx
cmp word [eax], dx
jne 0x40ace9
cmp esi, ebx
lea eax, [esp + 0x18]
cmovae eax, edi
cmp word [eax + 2], dx
je 0x40ad56
cmp esi, ebx
lea eax, [esp + 0x18]
push ecx
cmovae eax, edi
add eax, 2
push 0x439a9c
push eax
call fcn.0041e22e
mov esi, dword [esp + 0x38]
add esp, 0xc
mov edi, dword [esp + 0x18]
test eax, eax
jne 0x40ad51
cmp esi, ebx
lea eax, [esp + 0x18]
cmovae eax, edi
cmp word [eax], 0x61
jb 0x40ad2e
cmp esi, ebx
lea eax, [esp + 0x18]
cmovae eax, edi
cmp word [eax], 0x7a
jbe 0x40ad4c
cmp esi, ebx
lea eax, [esp + 0x18]
cmovae eax, edi
cmp word [eax], 0x41
jb 0x40ad51
cmp esi, ebx
lea eax, [esp + 0x18]
cmovae eax, edi
cmp word [eax], 0x5a
ja 0x40ad51
push 3
pop ecx
jmp 0x40ad53
xor ecx, ecx
push 0x5c
pop edx
xor ebx, ebx
mov dword [esp + 0x10], edx
inc ebx
lea eax, [esp + 0x10]
push ebx
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00407150
mov ecx, eax
mov dword [esp + 0x14], ecx
cmp ecx, 0xffffffff
je 0x40adf5
push 0x5c
pop eax
mov dword [esp + 0x10], eax
cmp esi, 8
lea eax, [esp + 0x18]
cmovae eax, edi
xor edx, edx
push edx
mov word [eax + ecx*2], dx
lea eax, [esp + 0x1c]
cmp dword [esp + 0x30], 8
cmovae eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40adb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40ae19
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x14]
cmovae eax, dword [esp + 0x18]
push 0x5c
pop edx
push ebx
mov word [eax + ecx*2], dx
lea eax, [ecx + 1]
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
call fcn.00407150
mov esi, dword [esp + 0x2c]
mov ecx, eax
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], eax
cmp ecx, 0xffffffff
jne 0x40ad7f
cmp esi, 8
lea eax, [esp + 0x18]
push 0
cmovae eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40ae1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40ae1b
xor bl, bl
lea ecx, [esp + 0x18]
call fcn.00402610
mov al, bl
mov ecx, dword [esp + 0x284]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004171a2
mov esp, ebp
pop ebp
ret