joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52cfe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65c2a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
test eax, eax
jne 0x52d013
push 0x80004003
call fcn.0060f000
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push eax
mov eax, dword [ecx + 0x68]
call eax
test eax, eax
jne 0x52d128
mov eax, dword [ebp - 0x1c]
cmp word [eax], 0
je 0x52d128
push ebx
push esi
push edi
push eax
lea ecx, [ebp - 0x18]
call fcn.00404700
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x52d064
cmp dword [esi + 4], 0
jne 0x52d05c
mov ecx, dword [esi]
push ecx
call fcn.0060f270
mov dword [esi + 4], eax
mov edx, dword [esi + 4]
mov dword [ebp - 0x10], edx
jmp 0x52d06b
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52d071
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
sub eax, edx
mov edi, eax
push edi
push 0
mov dword [ebp - 0x14], edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x10]
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push ecx
call fcn.0052c430
add esp, 0x10
cmp byte [ebp + 0x10], 0
je 0x52d0ba
mov edx, dword [ebp - 0x14]
push 0
push edx
push esi
call fcn.005bd2f0
add esp, 0xc
mov eax, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 0x14]
push 0
lea ecx, [ebp - 0x20]
push ecx
push edx
mov edi, eax
push esi
push edi
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00407570
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
test eax, eax
je 0x52d126
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x52d13b
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x52d13b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52d161
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x532530
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
test ecx, ecx
je 0x532544
lea esi, [ecx - 0x54]
mov dword [ebp - 4], esi
jmp 0x53254e
mov dword [ebp - 4], 0
mov esi, dword [ebp - 4]
cmp dword [ebp + 0x14], 0
mov ecx, dword [esi + 4]
mov dword [ebp - 8], 1
je 0x532613
mov eax, dword [ebp + 8]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, dword [ebp + 0xc]
mov esi, eax
mov eax, dword [ebx]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or edx, eax
mov dword [ebp - 0xc], 0xffffffff
jge 0x53259e
push esi
mov ecx, ebx
call fcn.00401400
mov eax, dword [ebx]
test esi, esi
js 0x532609
cmp esi, dword [eax - 8]
jg 0x532609
mov dword [eax - 0xc], esi
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + esi*2], dx
test eax, eax
je 0x5325f7
lea ecx, [esi + 1]
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [ebx]
mov dword [ebp - 0xc], eax
test edx, edx
jne 0x5325d1
xor eax, eax
jmp 0x5325e7
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5325d6
sub eax, edi
sar eax, 1
js 0x532609
cmp eax, dword [edx - 8]
jg 0x532609
mov dword [edx - 0xc], eax
mov edx, dword [ebx]
xor ecx, ecx
mov word [edx + eax*2], cx
pop edi
cmp dword [ebp - 0xc], esi
jge 0x53265f
mov esi, dword [ebp - 4]
mov dword [ebp - 8], 0
jmp 0x53262b
push 0x80070057
call fcn.004011d0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x53268d
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
add esi, 0x54
je 0x53263d
lea eax, [esi - 0x54]
jmp 0x53263f
xor eax, eax
mov edx, dword [ebp + 8]
mov eax, dword [eax + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp dword [ebp + 0x18], 0
je 0x53268d
mov ecx, dword [ebx]
mov edx, dword [ecx - 0xc]
cmp edx, dword [ebp + 0x1c]
jle 0x53268d
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp + 8]
push edx
add ecx, 0x54
push eax
call fcn.00521290
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x533df0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi + 0x5c], 0
je 0x533e2e
call fcn.005338a0
test eax, eax
je 0x533e35
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x533ae0
push 0
push 0
call fcn.00615455
add esp, 0x18
mov dword [esi + 0x78], eax
test eax, eax
je 0x533e2e
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x80]
test eax, eax
je 0x533e2e
mov ecx, dword [eax]
push edi
lea edx, [ebp - 8]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esi + 0x80]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x80]
mov edx, dword [eax]
push 0
mov edx, dword [edx + 0x20]
mov edi, ecx
neg edi
push edi
mov edi, dword [ebp - 8]
push edi
push ecx
mov ecx, dword [esi + 0x38]
push 0
push ecx
mov ecx, dword [esi + 0x34]
push ecx
mov ecx, dword [esi + 0x60]
push 0
push 0
push ecx
push eax
call edx
pop edi
test eax, eax
jne 0x533e2e
push eax
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x534900
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [0x716738]
push ebx
push esi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x5349cb
mov eax, dword [0x716738]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x5349cb
mov ecx, dword [0x716738]
push edi
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x5349b9
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x5349b2
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x5349b2
push edi
push eax
push ecx
call fcn.00610e50
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 4]
push edi
push esi
call fcn.00534590
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x536810
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65d216
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
xor ecx, ecx
mov dword [ebp - 4], ecx
lea eax, [esi + 0x30]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], cl
mov eax, dword [eax]
sub eax, 0x10
or edi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x536860
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
lea eax, [esi + 0x2c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], edi
mov eax, dword [eax]
sub eax, 0x10
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
pop edi
pop esi
jg 0x536889
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x5368a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65d246
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov eax, 0xff000000
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
push edi
lea edi, [esi + 0x2c]
mov ecx, 0x700724
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 1
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
lea edi, [esi + 0x30]
mov ecx, 0x700724
mov dword [ebp - 0x14], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 3
fldz
fst dword [esi + 0x40]
fst dword [esi + 0x3c]
fst dword [esi + 0x48]
fstp dword [esi + 0x44]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x5407b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x662dbe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, ecx
xor ecx, ecx
lea edx, [eax + 8]
mov dword [eax + 4], ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
mov dword [edx + 0xc], ecx
mov dword [ebp - 4], 1
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [ebp - 4], 2
mov edx, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [eax + 0x20], edx
mov dword [ebp - 4], 4
mov edx, 3
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x54], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
movzx ecx, dl
and ecx, 1
or ecx, 6
mov dword [eax + 0x50], edx
mov dword [eax + 0x58], edx
mov dword [eax + 0x60], edx
mov dword [eax + 0x5c], ecx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x5408e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6410d0
push eax
mov eax, 0x1040
mov dword fs:[0], esp
call fcn.00612380
push ebx
mov dword [ebp - 0x24], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x540923
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp + 8]
call fcn.00401370
mov eax, dword [ebp + 8]
push esi
push edi
push 0x67ae18
push eax
call fcn.00614a04
mov esi, eax
add esp, 8
mov edi, 0x10
test esi, esi
je 0x540abe
push esi
push 1
lea ecx, [ebp - 0x34]
push edi
push ecx
call fcn.00614929
add esp, 0x10
test eax, eax
je 0x540ab5
cmp dword [ebp - 0x30], ebx
jbe 0x540ab5
push esi
call fcn.00619939
mov edx, dword [ebp - 0x30]
add esp, 4
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x540aa5
mov ecx, dword [ebp - 0x30]
push esi
push 1
push ecx
push eax
call fcn.00614929
add esp, 0x10
test eax, eax
je 0x5409e9
mov edx, dword [ebp - 0x2c]
add edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x104c]
push edx
push 0x400
push ecx
call fcn.00611c28
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x84c]
push edx
push 0x400
push ecx
call fcn.00611c28
lea edx, [ebp - 0x84c]
push edx
lea eax, [ebp - 0x104c]
push eax
push 0x67af80
call fcn.00615742
add esp, 0x24
push esi
push 1
lea ecx, [ebp - 0x20]
push 8
push ecx
call fcn.00614929
add esp, 0x10
test eax, eax
je 0x540aa2
mov eax, dword [ebp - 0x20]
cmp eax, 0xc
jne 0x540a60
cmp dword [ebp - 0x1c], 0
lea edi, [eax - 0xb]
jbe 0x540aa2
lea edx, [ebp - 0x18]
push edx
push esi
call fcn.0061630b
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x44], eax
add eax, edx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x40], ecx
push eax
adc ecx, 0
push esi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x14], ecx
call fcn.00616481
add esp, 0x10
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0x140
call fcn.00540550
inc ebx
jmp 0x540a89
cmp eax, 0xd
je 0x540a6a
cmp eax, 0xe
jne 0x540a89
cmp edi, 0xf
jge 0x540a84
cmp edi, 1
jne 0x540a84
push esi
push edi
lea edx, [ebp - 0x4c]
push 8
push edx
call fcn.00614929
add esp, 0x10
mov edi, 0xf
push esi
push 1
lea eax, [ebp - 0x20]
push 8
push eax
call fcn.00614929
add esp, 0x10
test eax, eax
jne 0x540a02
mov eax, dword [ebp - 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call fcn.0061466b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
pop esi
test edx, edx
jg 0x540ae6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x542920
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
mov eax, dword [esi + 0x138]
cmp dword [eax - 4], 1
push edi
jle 0x542945
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esi + 0x138]
call fcn.00401370
mov edi, dword [esi + 0x138]
push 0x67ae18
push edi
call fcn.00614a04
mov ecx, dword [ebp + 8]
mov edi, eax
mov eax, dword [esi + 0x130]
add esp, 8
mov dword [ebp - 4], 0
cmp ecx, eax
jg 0x542a51
test ecx, ecx
jle 0x542a51
test eax, eax
jle 0x542a51
test edi, edi
je 0x542a51
lea eax, [ecx - 1]
cmp eax, dword [esi + 0x144]
jb 0x5429a0
push 0x80070057
call fcn.004011d0
shl eax, 4
add eax, dword [esi + 0x140]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x10], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [eax + 0xc]
lea eax, [ebp - 0x14]
push eax
push edi
mov dword [ebp - 8], edx
call fcn.00616481
mov eax, dword [ebp - 0xc]
add esp, 8
test eax, eax
je 0x542a48
push ebx
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x542a47
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x542a39
mov ecx, dword [ebp - 0xc]
push edi
push 1
push ecx
push eax
call fcn.00614929
add esp, 0x10
test eax, eax
jle 0x542a39
lea edx, [ebp + 8]
push edx
push 0
push ebx
mov dword [ebp + 8], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x542a39
mov eax, dword [ebp + 8]
push eax
lea ecx, [esi + 0x24]
call fcn.005425b0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
push edi
call fcn.0061466b
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x542df0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x652e58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [ebp + 0x10]
shr eax, 0x10
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x542e39
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov dword [ebp + 0x14], ebx
xor edi, edi
mov dword [ebp - 4], edi
push ebx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x542fa4
push esi
push 0x30
lea edx, [ebp - 0x40]
push 0
push edx
call fcn.006100a0
push pe_nt_image_headers32
lea eax, [ebp - 0x150]
push 0
push eax
mov dword [ebp - 0x40], 0x30
call fcn.006100a0
add esp, 0x18
lea ecx, [ebp - 0x154]
push ecx
mov dword [ebp - 0x154], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x542eb4
mov eax, dword [ebp - 0x150]
cmp eax, 5
jae 0x542ebb
cmp eax, 4
jne 0x542eb4
cmp dword [ebp - 0x14c], 0x5a
jae 0x542ebb
mov dword [ebp - 0x40], 0x2c
lea eax, [ebp - 0x40]
push eax
push 1
push edi
lea edx, [ebp - 0x21c]
push ebx
mov dword [ebp - 0x18], 0x64
mov dword [ebp - 0x3c], 0x3f
mov dword [ebp - 0x1c], edx
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test dword [ebp - 0x38], 0x100
jne 0x542f93
push 0x10
call fcn.00611c8b
mov esi, eax
add esp, 4
test esi, esi
je 0x542f93
mov eax, dword [ebp - 0x38]
or eax, 0x100
mov dword [ebp - 0x38], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp - 0x34]
mov dword [esi + 8], ecx
mov eax, dword [ebp - 0x30]
sub eax, 0x9cae
je 0x542f40
dec eax
je 0x542f37
dec eax
je 0x542f2e
mov dword [esi + 0xc], 0xffffffff
jmp 0x542f47
mov dword [esi + 0xc], 0x1d
jmp 0x542f47
mov dword [esi + 0xc], 0x1c
jmp 0x542f47
mov dword [esi + 0xc], 0x1b
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005fb5ce
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x542f82
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x40]
push edx
push 1
push edi
push ebx
mov dword [ebp - 0x20], esi
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
push ebx
inc edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp edi, eax
jl 0x542e56
pop esi
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x10]
push eax
add ecx, 0x20
mov dword [ebp + 0x10], ebx
call fcn.00594900
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x544d70
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x652e58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [ebp + 0x10]
shr eax, 0x10
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x544db9
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov dword [ebp + 0x14], ebx
xor edi, edi
mov dword [ebp - 4], edi
push ebx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x544f09
push esi
push 0x30
lea edx, [ebp - 0x40]
push 0
push edx
call fcn.006100a0
push pe_nt_image_headers32
lea eax, [ebp - 0x150]
push 0
push eax
mov dword [ebp - 0x40], 0x30
call fcn.006100a0
add esp, 0x18
lea ecx, [ebp - 0x154]
push ecx
mov dword [ebp - 0x154], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x544e34
mov eax, dword [ebp - 0x150]
cmp eax, 5
jae 0x544e3b
cmp eax, 4
jne 0x544e34
cmp dword [ebp - 0x14c], 0x5a
jae 0x544e3b
mov dword [ebp - 0x40], 0x2c
lea eax, [ebp - 0x40]
push eax
push 1
push edi
lea edx, [ebp - 0x21c]
push ebx
mov dword [ebp - 0x18], 0x64
mov dword [ebp - 0x3c], 0x3f
mov dword [ebp - 0x1c], edx
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test dword [ebp - 0x38], 0x100
jne 0x544ef8
push 0x10
call fcn.00611c8b
mov esi, eax
add esp, 4
test esi, esi
je 0x544ef8
mov eax, dword [ebp - 0x38]
or eax, 0x100
mov dword [ebp - 0x38], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp - 0x34]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x544ea0
add ecx, 0xfffffd94
jmp 0x544ea2
xor ecx, ecx
push esi
lea edx, [ebp - 0x40]
push edx
call fcn.00544160
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005fb5ce
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x544ee7
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x40]
push edx
push 1
push edi
push ebx
mov dword [ebp - 0x20], esi
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
push ebx
inc edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp edi, eax
jl 0x544dd6
pop esi
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x10]
push eax
add ecx, 0x20
mov dword [ebp + 0x10], ebx
call fcn.00594900
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x54b920
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6442b8
push eax
mov dword fs:[0], esp
sub esp, 0xc
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x54ba70
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
push str._Default_
push eax
call fcn.00619bee
add esp, 8
test eax, eax
jne 0x54b964
mov dword [ebp - 0x18], edi
jmp 0x54b982
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
or eax, ecx
jge 0x54b97d
push edi
mov ecx, esi
call fcn.00405120
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x14]
push ebx
push ecx
call fcn.0054b1e0
mov ecx, dword [ebp + 0x10]
mov ebx, eax
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x10]
push eax
push ebx
push ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call fcn.0054b570
mov edi, dword [ebp - 0x10]
add esp, 0x14
test edi, edi
je 0x54b9dd
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x54b9dd
mov edx, dword [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push edi
push ebx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
mov ebx, eax
call fcn.00611a0b
add esp, 4
test ebx, ebx
je 0x54ba6e
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
add eax, 0x10
mov dword [ebp + 8], eax
mov ecx, 1
mov dword [ebp - 4], ecx
mov eax, dword [esi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
or eax, ecx
jge 0x54ba24
push 0
mov ecx, esi
call fcn.00405120
mov esi, dword [esi]
push esi
lea ecx, [ebp + 8]
push str.couldnt_set_value__s
push ecx
call fcn.00405ab0
mov esi, dword [ebp + 8]
add esp, 0xc
push 0
push str.Import_error_
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 4], 0xffffffff
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x54ba6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ebx
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x54f440
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x640e98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
push esi
mov ecx, 0x700724
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
push 0
push 0x258
call fcn.00403bf0
add esp, 8
test eax, eax
je 0x54f49a
push 0x258
push eax
lea ecx, [ebp - 0x10]
call fcn.00405a10
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], 1
push 1
push 0
push 0
push esi
push 0x67b65c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], 0xffffffff
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop esi
test edx, edx
jg 0x54f4d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x550080
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push ecx
push 0x550030
push 0
push 0
call fcn.00615455
add esp, 0x18
mov esp, ebp
pop ebp
ret