joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2273cc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x2273cee
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x2273cf5
cmp ebx, dword [eax + 4]
jae 0x2273cf5
xor eax, eax
jmp 0x2273ee5
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x2273d06
xor eax, eax
inc eax
jmp 0x2273ee4
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x2273d1c
cmp ecx, edx
jae 0x2273e61
cmp dword [eax + 4], 0
je 0x2273d25
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x2273d0d
cmp dword [ebp + 8], 0
je 0x2273d47
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x2273e61
cmp eax, esi
jae 0x2273e61
mov eax, dword [0x2288b98]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x2273d6c
cmp dword [esi*4 + 0x2288ba0], edi
je 0x2273e65
inc esi
cmp esi, eax
jl 0x2273d5a
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x2273ee1
cmp dword [ebp - 8], 0x1000000
jne 0x2273ee1
test byte [ebp - 0xc], 0xcc
je 0x2273dea
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x2273ee1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x2273ee1
cmp word [eax + 0x18], 0x10b
jne 0x2273ee1
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x2273ee1
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x2273dea
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x2273dea
test byte [ecx + 0x27], 0x80
jne 0x2273e61
push 1
push 0x2288be0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x2273cfe
mov ecx, dword [0x2288b98]
test ecx, ecx
mov edx, ecx
jle 0x2273e1e
lea eax, [ecx*4 + 0x2288b9c]
cmp dword [eax], edi
je 0x2273e1e
dec edx
sub eax, 4
test edx, edx
jg 0x2273e12
test edx, edx
jne 0x2273e4f
push 0xf
pop ebx
cmp ecx, ebx
jg 0x2273e2b
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x2273e43
lea eax, [edx*4 + 0x2288ba0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x2273e31
cmp ecx, 0x10
jge 0x2273e4f
inc ecx
mov dword [0x2288b98], ecx
push 0
push 0x2288be0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x2273cfe
xor eax, eax
jmp 0x2273ee4
test esi, esi
jle 0x2273cfe
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x2288be0
call ebx
test eax, eax
jne 0x2273cfe
cmp dword [esi*4 + 0x2288ba0], edi
je 0x2273ebb
mov eax, dword [0x2288b98]
lea esi, [eax - 1]
test esi, esi
jl 0x2273ea9
cmp dword [esi*4 + 0x2288ba0], edi
je 0x2273ea5
dec esi
jns 0x2273e99
test esi, esi
jge 0x2273eb9
cmp eax, 0x10
jge 0x2273eb4
inc eax
mov dword [0x2288b98], eax
lea esi, [eax - 1]
jmp 0x2273ebb
je 0x2273ed3
xor ecx, ecx
test esi, esi
jl 0x2273ed3
lea eax, [ecx*4 + 0x2288ba0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x2273ec1
push 0
push 0x2288be0
call ebx
jmp 0x2273cfe
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x22745fa
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x22872b0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x227462b
xor eax, eax
jmp 0x22747b4
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x2288c40]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x2274667
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.02275931
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x2274742
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x2274780
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x22746cb
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x22746bc
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x227469c
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x227470b
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x2274714
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x227468d
jmp 0x2274716
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x22747af
cmp dword [ebp - 0x6c], edi
je 0x2274780
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x2274775
call fcn.0226af46
mov dword [eax], 9
call fcn.0226af4f
mov dword [eax], esi
jmp 0x22747aa
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x227476a
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x2274716
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x2274716
push dword [ebp - 0x6c]
call fcn.0226af58
pop ecx
jmp 0x22747aa
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x2274798
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x2274798
xor eax, eax
jmp 0x22747b2
call fcn.0226af46
mov dword [eax], 0x1c
call fcn.0226af4f
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x22747b2
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0226d304
add ebp, 0x3a0
leave
ret
Function at 0x227512f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x2288be8], ebx
push esi
push edi
jne 0x22751af
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x22751ea
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x2288be8], eax
je 0x22751ea
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x2288bec], eax
call esi
cmp dword [0x2288904], 2
mov dword [0x2288bf0], eax
jne 0x22751af
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x2288bf8], eax
je 0x22751af
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x2288bf4], eax
mov eax, dword [0x2288bf4]
test eax, eax
je 0x22751f4
call eax
test eax, eax
je 0x22751db
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x2288bf8]
test eax, eax
je 0x22751db
test byte [ebp - 8], 1
jne 0x22751f4
cmp dword [0x2288910], 4
jb 0x22751ee
or byte [ebp + 0x12], 0x20
jmp 0x2275213
xor eax, eax
jmp 0x2275223
or byte [ebp + 0x12], 4
jmp 0x2275213
mov eax, dword [0x2288bec]
test eax, eax
je 0x2275213
call eax
mov ebx, eax
test ebx, ebx
je 0x2275213
mov eax, dword [0x2288bf0]
test eax, eax
je 0x2275213
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x2288be8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x227623f
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x2276258
or eax, 0xffffffff
jmp 0x22762b9
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x22762b5
push 0x3d
push esi
call fcn.02276588
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x22762b5
cmp esi, eax
je 0x22762b5
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x2288924]
sete cl
cmp eax, dword [0x2288928]
mov dword [ebp - 8], ecx
jne 0x227629b
mov edi, eax
call fcn.022761de
mov dword [0x2288924], eax
cmp eax, ebx
jne 0x22762f4
cmp dword [ebp + 0xc], ebx
je 0x22762bd
cmp dword [0x228892c], ebx
je 0x22762bd
call fcn.02275ba0
test eax, eax
je 0x22762f4
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x22762c6
xor eax, eax
jmp 0x22762b8
push 4
call fcn.0226b115
cmp eax, ebx
pop ecx
mov dword [0x2288924], eax
je 0x22762b5
mov dword [eax], ebx
cmp dword [0x228892c], ebx
jne 0x22762f4
push 4
call fcn.0226b115
cmp eax, ebx
pop ecx
mov dword [0x228892c], eax
je 0x22762b5
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x2288924]
call fcn.02276191
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x2276355
cmp dword [esi], ebx
je 0x2276355
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0226affd
cmp dword [ebp - 8], ebx
pop ecx
jne 0x2276338
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x2276396
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x227632f
mov eax, edi
shl eax, 2
push eax
push dword [0x2288924]
call fcn.0226befd
cmp eax, ebx
pop ecx
pop ecx
je 0x2276396
jmp 0x2276391
cmp dword [ebp - 8], ebx
jne 0x2276401
cmp edi, ebx
jge 0x2276364
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x2288924]
call fcn.0226befd
cmp eax, ebx
pop ecx
pop ecx
je 0x22762b5
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x2288924], eax
cmp dword [ebp + 0xc], ebx
je 0x22763eb
push dword [ebp - 4]
call fcn.0226e200
inc eax
inc eax
push eax
call fcn.0226b115
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x22763eb
push dword [ebp - 4]
push esi
call fcn.0226dfc0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x22763e4
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0226affd
pop ecx
cmp dword [ebp - 8], ebx
je 0x22763f9
push dword [ebp - 4]
call fcn.0226affd
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x22762b8
push dword [ebp - 4]
call fcn.0226affd
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x22762c2
Function at 0x100062d0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x18
push ebx
push esi
mov esi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
push edi
mov ecx, esi
call edx
test eax, eax
jne 0x100062f1
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x18
ret
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 8]
mov edi, dword [esi + 0xc]
mov ebx, dword [esi + 4]
push 0x40
mov edx, ecx
sub edx, eax
sub eax, ecx
add eax, dword [esp + 0x20]
push edx
mov edx, edi
sub edx, ebx
push edx
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
sub eax, edi
add eax, dword [esp + 0x28]
mov ecx, esi
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
push 0
call edx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
call fcn.10006420
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
push 1
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
mov byte [esi + 0x2725], 0
pop esi
mov al, 1
pop ebx
add esp, 0x18
ret

Function at 0x10006390
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x18
push esi
mov esi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
mov ecx, esi
call edx
test eax, eax
jne 0x100063ad
xor al, al
pop esi
add esp, 0x18
ret
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esi]
push 0x40
push ecx
push edx
mov edx, dword [eax + 0x8c]
push 0
push 0
push 0
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
call fcn.10006420
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
push 1
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov byte [esi + 0x2725], 1
mov al, 1
pop esi
add esp, 0x18
ret

Function at 0x10006ad0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10006af8
xor eax, eax
add esp, 0xc
ret
mov eax, dword [esp]
push esi
lea ecx, [esp + 8]
push ecx
push 0
lea edx, [esp + 0x14]
push edx
push 0
push str._OGY8
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x10006ba0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x100318e0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x1004304c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
mov ecx, str.SoftwareMicrosoftWindowsCurrentVersionRun
call fcn.10007bc0
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0
mov edx, dword [esp + 0x10]
push ecx
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x10006c3e
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006c28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret 4
mov edx, dword [0x100448a8]
mov eax, dword [edx + 0xc]
mov ecx, 0x100448a8
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x28]
push str._autorun
push ecx
push str.__s___s
lea edi, [esp + 0x20]
mov byte [esp + 0x2c], 1
call fcn.100083b0
mov esi, dword [esp + 0x20]
mov eax, dword [esi - 0xc]
add esp, 0xc
lea edx, [eax + eax]
mov eax, dword [esp + 0xc]
push edx
push esi
push 1
push 0
push str._OGY8
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0xc]
push ecx
test eax, eax
je 0x10006d07
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [esp + 0x20], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10006cc5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006c28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret 4
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [esp + 0x20], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10006d2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006d56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret 4
Function at 0x10006d70
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
mov ecx, str.SoftwareMicrosoftWindowsCurrentVersionRun
call fcn.10007bc0
mov edx, dword [esp]
lea ecx, [esp + 4]
push ecx
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x10006dc9
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006dc3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
add esp, 8
ret
mov ecx, dword [esp + 4]
push str._OGY8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
mov eax, dword [esp]
je 0x10006df2
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x10006db7
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006e0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
add esp, 8
ret

Function at 0x10006ea0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov esi, eax
mov eax, dword [0x10044c58]
push 0x8a
push eax
call dword [sym.imp.USER32.dll_LoadMenuW]
mov ebx, eax
test ebx, ebx
je 0x10006fc6
push 0
push ebx
call dword [sym.imp.USER32.dll_GetSubMenu]
push 0x400
push 0
push ebx
mov edi, eax
call dword [sym.imp.USER32.dll_RemoveMenu]
mov ebp, dword [sym.imp.USER32.dll_DestroyMenu]
push ebx
call ebp
test edi, edi
je 0x10006fc6
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi]
mov eax, dword [edx + 0x8c]
push 0
mov ecx, esi
call eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
push 0
push ecx
push edx
push 0x102
push edi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
push edi
mov ebx, eax
call ebp
mov eax, ebx
sub eax, 0x9c4a
je 0x10006f85
sub eax, 1
jne 0x10006fc6
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
push 0x104
push 0x100356ec
push 0x100356f4
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
je 0x10006fc6
mov eax, esi
call fcn.10006fd0
mov eax, dword [esi]
mov edx, dword [eax + 0x80]
mov ecx, esi
call edx
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
push 1
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [esi + 0x2724], 0
je 0x10006fbc
mov dword [esi + 0x2374], 0
add esi, 0x2368
push esi
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
Function at 0x1000fe90
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
sub esp, 0x20
push ebx
push edi
push 0xffffffffffffffec
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xfffbffff
or eax, 0x80
cmp dword [0x10046ef8], 1
jne 0x1000fec0
or eax, 8
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
push 0xffffffffffffffec
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edx, dword [esi]
mov eax, dword [edx + 0x8c]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call eax
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
cmp byte [esp + 0x2c], 0
mov ecx, dword [esi + 0x1740]
push 0
je 0x1000ff4a
push 0x32
push 0x32
push 0xffffffffffffff9c
push 0xffffffffffffff9c
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [esi + 0x1800]
mov eax, dword [edx + 0x48]
lea ecx, [esi + 0x1800]
push 1
push 0x10036204
call eax
push 0x7f89
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esi + 0x1818], eax
jmp 0x1000ff62
push 0x1e7
push 0x37f
push 0xc6
push 0x55
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
cmp byte [esi + 0x1938], 0
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
mov edi, 0x49
je 0x1000ff7d
mov edi, 0x4b
jmp 0x1000ff8e
mov edx, dword [esi]
mov eax, dword [edx + 0x8c]
push 0
mov ecx, esi
call eax
push eax
call ebx
xor ecx, ecx
cmp dword [0x10046ef8], 1
jne 0x1000ff9c
or ecx, 0xffffffff
mov eax, dword [esp + 0xc]
sub eax, dword [esp + 0x14]
push edi
add eax, dword [esp + 0x28]
push 0
cdq
sub eax, edx
sar eax, 1
push 0
push eax
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x20]
add eax, dword [esp + 0x30]
cdq
sub eax, edx
mov edx, dword [esi]
sar eax, 1
push eax
mov eax, dword [edx + 0x8c]
push ecx
mov ecx, esi
call eax
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [esi]
mov eax, dword [edx + 0x8c]
push 1
mov ecx, esi
call eax
push eax
call ebx
pop edi
pop ebx
add esp, 0x20
ret 4
Function at 0x10014180
Capabilities:
Accept command line arguments
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1002f0d9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1004304c]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov eax, dword [0x1004304c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push 0
push str._ShowDeskTop
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp eax, dword [ecx]
lea ecx, [esp + 8]
setne bl
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1002dfc6
add esp, 0x2c
ret

Function at 0x10014c30
Capabilities:
Create process on windows

Disassembly:
push edi
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 1
push 0
push 0
push esi
push 0x10036ab0
push 0
call edi
cmp eax, 0x20
jg 0x10014c65
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 0
push esi
push str.iexplore
push 0x10036ab0
push 0
call edi
pop edi
ret