joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402eae
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or al, 9
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004064ef
xor ebx, ebx
cmp eax, ebx
jne 0x402f91
test byte [ebp + 0x10], 2
je 0x402f0f
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x402f76
lea eax, [ebp - 0x214]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x402f4b
test edi, edi
jne 0x402f76
push dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
call fcn.00402eae
test eax, eax
jne 0x402f54
lea eax, [ebp - 0x214]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402f24
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406a76
test eax, eax
jne 0x402f86
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x402f91
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402f91
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x403376
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4033a1
mov ecx, dword [0x429ab8]
push esi
add eax, ecx
push esi
push eax
mov dword [0x420ef4], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.0040347e
cmp eax, esi
jl 0x403478
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.004061f5
test eax, eax
je 0x403468
push dword [ebp + 8]
add dword [0x420ef4], 4
call fcn.0040347e
mov ebx, eax
cmp ebx, esi
jl 0x403476
cmp dword [ebp + 0x10], esi
jne 0x403444
cmp dword [ebp + 8], esi
jle 0x403476
mov esi, 0x414ef0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x403406
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.004061f5
test eax, eax
je 0x403468
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00406224
test eax, eax
je 0x403440
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x420ef4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4033f5
jmp 0x403476
push 0xfffffffffffffffe
jmp 0x40346a
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40344f
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40346d
push 0xfffffffffffffffd
pop eax
jmp 0x403478
mov ebx, dword [ebp - 4]
add dword [0x420ef4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x405c65
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x425f50], 0x44
push eax
xor eax, eax
push 0x425f50
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405ca4
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405d46
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.0040614d
mov edi, eax
cmp edi, 0xffffffff
je 0x405d87
test byte [esp + 0x10], 1
push esi
je 0x405d69
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405d6f
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405d78
xor eax, eax
inc eax
jmp 0x405d89
test byte [esp + 0x10], 4
jne 0x405d87
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x401059
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a004]
jne 0x401063
repz ret
jmp fcn.00401218

Function at 0x4031a3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040207d
and dword [ebp - 4], 0
cmp dword [0x40b668], 0
mov ebx, eax
jne 0x403254
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x403305
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x403305
push eax
call fcn.0040200b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b668], eax
call esi
push eax
call fcn.0040200b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b66c], eax
call esi
push eax
call fcn.0040200b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b670], eax
call esi
push eax
call fcn.0040200b
pop ecx
mov dword [0x40b678], eax
test eax, eax
je 0x403254
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040200b
pop ecx
mov dword [0x40b674], eax
mov eax, dword [0x40b674]
cmp eax, ebx
je 0x4032ac
cmp dword [0x40b678], ebx
je 0x4032ac
push eax
call fcn.00402086
push dword [0x40b678]
mov esi, eax
call fcn.00402086
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4032ac
test edi, edi
je 0x4032ac
call esi
test eax, eax
je 0x4032a3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4032a3
test byte [ebp - 0xc], 1
jne 0x4032ac
or dword [ebp + 0x10], 0x200000
jmp 0x4032e5
mov eax, dword [0x40b66c]
cmp eax, ebx
je 0x4032e5
push eax
call fcn.00402086
pop ecx
test eax, eax
je 0x4032e5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4032e5
mov eax, dword [0x40b670]
cmp eax, ebx
je 0x4032e5
push eax
call fcn.00402086
pop ecx
test eax, eax
je 0x4032e5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b668]
call fcn.00402086
pop ecx
test eax, eax
je 0x403305
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x403307
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40370c
Capabilities:
Contain obfuscated stackstrings
Enumerate pe sections

Disassembly:
adc cl, byte [ebx - 0x24ccefbb]
cmp eax, ebx
je 0x403d17
mov edi, dword [eax + 0x3c]
add edi, eax
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
call fcn.0040351e
mov edi, 0xfcbc778
mov bh, 0x47
push es
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.0040351e
xchg esi, eax
fimul word [ebp + 0x31]
mov ax, word [edi + 6]
cmp ax, bx
ret
jbe 0x403778
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x403772
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x403763
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
stosb byte es:[edi], al
pop eax
Function at 0x403c2e
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x403bf5
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x403c13
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
invalid
ja 0x403c71
mov esp, 0xd78b4077
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x403c58
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x403c61
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x403c6b
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x403c4d
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x403bd7
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x403cbe
dec eax
je 0x403cb5
sub eax, 3
je 0x403cac
mov dword [ebp - 4], 0x40
jmp 0x403cdb
mov dword [ebp - 4], 4
jmp 0x403cc1
mov dword [ebp - 4], 0x20
jmp 0x403cc1
invalid
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x403d0d
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x403c8d
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0040351e
adc esp, edx
or eax, 0x1475ff0c
push 1
push esi
call edi
mov eax, esi
jmp 0x403d19
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4053d6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ecx
push eax
mov eax, dword [ebp - 0x338]
lea eax, [ebp + eax - 0x230]
push eax
call fcn.0040348f
add esp, 0xc
jmp 0x405496

Function at 0x407220
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0x80
push 0
push 0
push 0xfffffe70
push 0xfffffe70
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret

Function at 0x407250
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0x80
push 0
push 0
push 0xfffffe70
push 0xfffffe70
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x68
mov edx, dword [ebp + 8]
push edx
call fcn.00401000
add esp, 8
mov eax, 1
pop ebp
ret
Function at 0x4029a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x43e524]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov esi, edx
test ebx, ebx
jne 0x4029cc
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418bea
mov esp, ebp
pop ebp
ret
push edi
push 0x44
xor edi, edi
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.0041b690
add esp, 0xc
mov dword [ebp - 0x48], 0x44
mov eax, 1
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push edi
push edi
push 0x20
push edi
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x402a32
test esi, esi
je 0x402a1d
movups xmm0, xmmword [ebp - 0x58]
movups xmmword [esi], xmm0
jmp 0x402a2d
push dword [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x54]
call esi
mov edi, 1
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418bea
mov esp, ebp
pop ebp
ret
Function at 0x403230
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x43e524]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
movaps xmmword [esp + 0x20], xmm0
call fcn.00403150
mov eax, dword [esp + 0x14]
movaps xmm0, xmmword [esp + 0x20]
push esi
movq qword [esp + 0x34], xmm0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 1
mov dword [eax + 0x24], 0
mov dword [eax + 0x10], 0
lea eax, [esp + 0x34]
push 0
psrldq xmm0, 8
push eax
movd dword [esp + 0x44], xmm0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push 0
mov dword [ecx + 0x14], eax
lea eax, [esp + 0x38]
push 0
push eax
call esi
push dword [esp + 0x18]
mov edi, dword [esp + 0x18]
push 0
push 0
mov dword [edi + 0x18], eax
lea eax, [esp + 0x3c]
push eax
call esi
mov ecx, dword [edi + 0x14]
mov dword [edi + 0x1c], eax
test ecx, ecx
je 0x4033cd
cmp dword [edi + 0x18], 0
je 0x4033cd
test eax, eax
je 0x4033cd
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x1c]
push 0x2000
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403345
mov dword [edi + 0xc], 0
mov eax, dword [edi]
test eax, eax
jne 0x403362
mov dword [edi + 0xc], eax
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4033de
push eax
jmp 0x4033d6
cmp dword [edi + 0xc], 1
jne 0x403377
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
jmp 0x40334e
push 0x2000
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 4], eax
test eax, eax
jne 0x4033a0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
jmp 0x40334e
cmp dword [edi + 0xc], 0
mov dword [edi + 8], 0x2000
mov dword [edi + 0x10], 1
je 0x4033bb
mov ecx, edi
call fcn.00403400
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [edi + 0x20], 0x1770
jmp 0x403357
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x4033de
push ecx
call fcn.00403b92
add esp, 4
mov ecx, dword [esp + 0x3c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00418bea
mov esp, ebp
pop ebp
ret 0x24
Function at 0x406471
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x4064c4
push esi
push dword [ebp + 8]
call fcn.00406664
mov edi, eax
test edi, edi
jne 0x406494
mov eax, dword [ebp + 0x10]
jmp 0x4064d6
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40648f
mov eax, dword [ebp - 8]
jmp 0x4064d6
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x426db7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00426a77
Function at 0x405b54
Capabilities:
Delete registry key

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x405b5a
call fcn.0041f2d0
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.0040b000
mov edx, dword [esp + 0x28]
lea ecx, [esp + 4]
call fcn.0040b000
push dword [esp]
call fcn.00406183
push dword [esp + 4]
mov edx, 0x4ab374
pop ecx
call fcn.0040b5a0
je 0x405c29
cmp dword [0x52b9e8], 0
je 0x405c0f
mov eax, str.Advapi32.dll
push eax
push 0xffffffff
call fcn.0040eb1f
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x405c0d
mov eax, str.RegDeleteKeyExA
push eax
push dword [esp + 0xc]
call fcn.0040eb79
mov dword [esp + 0xc], eax
push 0
mov ebx, dword [0x52ba00]
or ebx, 0xf003f
push ebx
mov eax, dword [0x52b9c8]
push eax
push dword [0x52b9e4]
push dword [esp + 0x1c]
call fcn.0040ed32
mov dword [esp + 0x10], eax
push dword [esp + 8]
call fcn.0040ea5f
jmp 0x405c24
mov eax, dword [0x52b9c8]
push eax
push dword [0x52b9e4]
call sub.ADVAPI32.dll_RegDeleteKeyW
mov dword [esp + 0x10], eax
jmp 0x405cb2
lea eax, [esp + 0x18]
push eax
push dword [0x52b9e4]
push dword [esp + 0xc]
call sub.ADVAPI32.dll_RegConnectRegistryW
mov dword [esp + 0x14], eax
cmp dword [0x52b9e8], 0
je 0x405c9f
mov eax, str.Advapi32.dll
push eax
push 0xffffffff
call fcn.0040eb1f
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x405c9d
push 0
mov ebx, dword [0x52ba00]
or ebx, 0xf003f
push ebx
mov eax, dword [0x52b9c8]
push eax
push dword [esp + 0x24]
mov eax, str.RegDeleteKeyExA
push eax
push dword [esp + 0x1c]
call fcn.0040ec77
mov dword [esp + 0x10], eax
push dword [esp + 8]
call fcn.0040ea5f
jmp 0x405cb2
mov eax, dword [0x52b9c8]
push eax
push dword [esp + 0x1c]
call sub.ADVAPI32.dll_RegDeleteKeyW
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
and ebx, ebx
jne 0x405cc1
mov eax, 1
jmp 0x405cc3
xor eax, eax
push dword [esp + 4]
call fcn.0041f360
push dword [esp]
call fcn.0041f360
add esp, 0x1c
pop ebx
ret 8
Function at 0x4077bc
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
mov edx, 0xb
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4077c2
call fcn.0041f2d0
push dword [esp + 0x40]
call fcn.0040b610
mov edx, dword [esp + 0x34]
lea ecx, [esp]
call fcn.0040b000
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 4]
call fcn.0040b000
push dword [esp]
call fcn.00406183
lea eax, [esp + 0xc]
push dword [esp + 4]
mov edx, 0x4ab374
pop ecx
call fcn.0040b5a0
je 0x407866
cmp dword [0x52b9e8], 0
je 0x40784a
lea eax, [esp + 0x18]
push eax
mov ebx, dword [0x52ba00]
or ebx, 0xf003f
push ebx
push 0
push dword [0x52b9c8]
push dword [0x52b9e4]
call sub.ADVAPI32.dll_RegOpenKeyExW
mov dword [esp + 0x14], eax
jmp 0x407864
lea eax, [esp + 0x18]
push eax
push dword [0x52b9c8]
push dword [0x52b9e4]
call sub.ADVAPI32.dll_RegOpenKeyW
mov dword [esp + 0x14], eax
jmp 0x4078cb
lea eax, [esp + 0x20]
push eax
push dword [0x52b9e4]
push dword [esp + 0xc]
call sub.ADVAPI32.dll_RegConnectRegistryW
mov dword [esp + 0x1c], eax
cmp dword [0x52b9e8], 0
je 0x4078b3
lea eax, [esp + 0x18]
push eax
mov ebx, dword [0x52ba00]
or ebx, 0xf003f
push ebx
push 0
push dword [0x52b9c8]
push dword [esp + 0x30]
call sub.ADVAPI32.dll_RegOpenKeyExW
mov dword [esp + 0x14], eax
jmp 0x4078cb
lea eax, [esp + 0x18]
push eax
push dword [0x52b9c8]
push dword [esp + 0x28]
call sub.ADVAPI32.dll_RegOpenKeyW
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
and ebx, ebx
jne 0x407970
mov dword [esp + 0x24], 0x400
push edx
call fcn.0041f130
pop edx
push eax
push edx
call fcn.0041f130
pop edx
push eax
push dword [esp + 0x2c]
call fcn.0041cb20
lea eax, [esp + 0xc]
push eax
call fcn.0041f1d0
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x1c]
push eax
push dword [esp + 0x50]
push dword [esp + 0x34]
call sub.ADVAPI32.dll_RegEnumKeyExW
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
and ebx, ebx
jne 0x407962
push edx
call fcn.0041f130
pop edx
push eax
push edx
call fcn.0041f130
pop edx
push eax
push dword [esp + 0x2c]
push dword [esp + 0x14]
call fcn.0041d8a0
lea eax, [esp + 0x2c]
push eax
call fcn.0041f1d0
jmp 0x407970
mov edx, 0x4ab028
lea ecx, [esp + 0x28]
call fcn.0040b008
push dword [esp + 0x18]
call sub.ADVAPI32.dll_RegCloseKey
mov edx, dword [esp + 0x28]
push edx
call fcn.0041f130
pop edx
push eax
push edx
call fcn.0041f170
pop eax
push eax
call fcn.0040b5e0
pop edx
add eax, edx
jmp 0x4079a1
push dword [esp + 4]
call fcn.0041f360
push dword [esp + 8]
call fcn.0041f360
push dword [esp + 0x28]
call fcn.0041f360
push dword [esp]
call fcn.0041f360
add esp, 0x2c
pop ebx
ret 0xc
Function at 0x4096f7
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
push ebx
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4096fe
call fcn.0041f2d0
mov byte [esp], 0
lea eax, [esp + 4]
push eax
push 0x28
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.ADVAPI32.dll_OpenProcessToken
and eax, eax
je 0x4097b8
lea eax, [esp + 8]
lea eax, [esp + 8]
push eax
mov eax, 0x4ac80c
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueW
and eax, eax
je 0x4097af
lea eax, [esp + 0x10]
lea ebp, [esp + 0x10]
mov dword [ebp], 1
lea ebp, [esp + 8]
push dword [ebp]
lea ebp, [esp + 0x14]
push ebp
pop ebp
pop eax
mov dword [ebp + 4], eax
lea ebp, [esp + 8]
push dword [ebp + 4]
lea ebp, [esp + 0x14]
push ebp
pop ebp
pop eax
mov dword [ebp + 8], eax
push ebp
pop ebp
mov dword [ebp + 0xc], 2
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
push 0x10
lea eax, [esp + 0x1c]
push eax
push 0
push dword [esp + 0x18]
call sub.ADVAPI32.dll_AdjustTokenPrivileges
push eax
pop eax
mov byte [esp], al
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
movsx eax, byte [esp]
movsx eax, al
jmp 0x4097c3
add esp, 0x34
pop ebx
pop ebp
ret

Function at 0x40bf33
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x40bf88
push dword [esp + 0x10]
push 0x40beb2
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x52bee0]
test esi, esi
je 0x40bfe1
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x40bf80
cmp byte [esi + 0x10], 0
je 0x40bf80
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x40bf5c
jmp 0x40bfe1
mov esi, dword [0x52bee0]
test esi, esi
je 0x40bfe1
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x40bfda
cmp byte [esi + 0x11], 0
je 0x40bfb6
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x40bfcd
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x52bee0
call fcn.0041f070
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x40bf95
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40c68f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40c6f3
cmp dword [ebp + 0x10], 0x18
push esi
jne 0x40c6b0
call fcn.00486c20
mov esi, eax
push esi
call sub.MSVCRT.dll_strlen
jmp 0x40c6c4
cmp dword [ebp + 0x10], 2
jne 0x40c6bd
call fcn.00486cc0
jmp 0x40c6a6
call sub.MSVCRT.dll_wcslen
add eax, eax
pop ecx
push 0
lea ecx, [ebp + 0xc]
push ecx
push eax
mov eax, dword [ebp + 8]
push esi
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp + 0x10], 0x18
jne 0x40c6e7
push esi
call fcn.00486c10
jmp 0x40c6f3
cmp dword [ebp + 0x10], 2
jne 0x40c6f3
push esi
call fcn.00486cb0
pop esi
pop ebp
ret 0xc

Function at 0x40c856
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x52ca88]
call fcn.0041e79b
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x40c956
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x40c8ac
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x40c8a4
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x40c8ec
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x40c92e
push 0x22
pop edx
cmp cx, dx
je 0x40c8de
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x40c8ce
xor ecx, ecx
cmp word [eax], cx
je 0x40c92e
mov ecx, eax
add eax, 2
jmp 0x40c930
test dx, dx
je 0x40c936
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x40c8de
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x40c924
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x40c92e
cmp cx, dx
je 0x40c921
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x40c911
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x40c8f6
jmp 0x40c8de
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x40c938
xor edx, edx
cmp dword [ebp], ebx
jne 0x40c941
test edi, edi
jne 0x40c95e
test edx, edx
je 0x40c946
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x40c89a
test edi, edi
jne 0x40c96f
mov eax, ebx
jmp 0x40c973
test esi, esi
je 0x40c96f
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x40c973
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret