joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4032fb
Capabilities:
Link many functions at runtime

Disassembly:
mov ebx, ebx
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a310]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push ebx
mov dword [ebp - 0x1c], eax
call fcn.00402256
and dword [ebp - 0x14], 0
cmp dword [0x40b43c], 0
mov dword [ebp - 0x18], eax
jne 0x4033ae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403456
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x403456
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40b43c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40b440], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40b444], eax
call edi
push eax
call esi
mov dword [0x40b44c], eax
test eax, eax
je 0x4033ae
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40b448], eax
mov eax, dword [0x40b448]
mov ecx, dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403407
cmp dword [0x40b44c], ecx
je 0x403407
push eax
call edi
push dword [0x40b44c]
mov ebx, eax
call edi
or ebx, ebx
mov esi, eax
je 0x403407
or esi, esi
je 0x403407
call ebx
or eax, eax
je 0x4033fe
lea ecx, [ebp - 0x10]
lea ebx, [ebp - 0x24]
push ebx
push 0xc
push ecx
push 1
push eax
call esi
or eax, eax
je 0x4033fe
test byte [ebp - 8], 1
jne 0x403407
or dword [ebp + 0x10], 0x200000
jmp 0x40343a
mov eax, dword [0x40b440]
cmp eax, dword [ebp - 0x18]
je 0x40343a
push eax
call edi
or eax, eax
je 0x40343a
call eax
mov dword [ebp - 0x14], eax
or eax, eax
je 0x40343a
mov eax, dword [0x40b444]
cmp eax, dword [ebp - 0x18]
je 0x40343a
push eax
call edi
test eax, eax
je 0x40343a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40b43c]
call edi
or eax, eax
je 0x403456
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403458
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
pop edi
call fcn.00403666
leave
ret

Function at 0x403666
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a310]
jne 0x403670
repz ret
jmp fcn.004048d6
Function at 0x4048d6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov edi, edi
add esp, 0xfffffcd8
mov dword [0x40b578], eax
mov dword [0x40b574], ecx
mov dword [0x40b570], edx
mov dword [0x40b56c], ebx
mov dword [0x40b568], esi
mov dword [0x40b564], edi
mov word [0x40b590], ss
mov word [0x40b584], cs
mov word [0x40b560], ds
mov word [0x40b55c], es
mov word [0x40b558], fs
mov word [0x40b554], gs
pushfd
pop dword [0x40b588]
mov eax, dword [ebp]
mov dword [0x40b57c], eax
mov eax, dword [ebp + 4]
mov dword [0x40b580], eax
lea eax, [ebp + 8]
mov dword [0x40b58c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x40b4c8], 0x10001
mov eax, dword [0x40b580]
mov dword [0x40b47c], eax
mov dword [0x40b470], 0xc0000409
mov dword [0x40b474], 1
mov eax, dword [0x40a310]
mov dword [ebp - 0x328], eax
mov eax, dword [0x40a314]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x40b4c0], eax
push 1
call fcn.00404811
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x408080
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x40b4c0], 0
jne 0x4049c8
push 1
call fcn.00404811
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x417b80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
or ebp, 0xffffffff
jmp 0x417ba2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x417ba9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x417b98
mov eax, 1
add ebx, ebx
jne 0x417bbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x417bb0
jne 0x417bcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417bb0
xor ecx, ecx
sub eax, 3
jb 0x417be0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x417c52
mov ebp, eax
add ebx, ebx
jne 0x417beb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x417bf8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x417c1c
inc ecx
add ebx, ebx
jne 0x417c08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x417bfd
jne 0x417c19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417bfd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x417c3c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x417c2d
jmp 0x417b9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x417c3c
add edi, ecx
jmp 0x417b9e
pop esi
mov edi, esi
mov ecx, 0xee
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x417c5a
cmp byte [edi], 9
jne 0x417c5a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x417c5f
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x417cd7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x177c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17844]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x417c8c
mov ecx, edi
jns 0x417cbb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1784c]
or eax, eax
je 0x417cd1
mov dword [ebx], eax
add ebx, 4
jmp 0x417ca9
call dword [esi + 0x17848]
mov ebp, dword [esi + 0x17850]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x417d0b
sub esp, 0xffffff80
jmp 0x407b73
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x1dd2be2
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x47bf1db6
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x402c98
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40500c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402d30
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402d10
xor eax, eax
push ebp
push 0x402d09
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402d4c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402d10
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x40500c]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40500c], ax
mov esp, ebp
pop ebp
ret

Function at 0x403430
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x406034], 0
je 0x403491
cmp word [0x406208], 0xd7b2
jne 0x403459
cmp dword [0x406210], 0
jbe 0x403459
mov eax, 0x406204
call dword [0x406220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4034b8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x405018], 0
jne 0x4034ad
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x401cd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov byte [ebp - 2], 0
mov byte [ebp - 3], 1
mov dword [ebp - 8], 0
jmp 0x401cf3
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 8
jge 0x401d58
movzx ecx, byte [ebp + 0xc]
movzx edx, byte [ebp - 3]
and ecx, edx
mov byte [ebp - 4], cl
movzx eax, byte [ebp - 4]
test eax, eax
je 0x401d4d
mov cl, byte [ebp + 8]
mov byte [ebp - 1], cl
mov dword [ebp - 0xc], 0
jmp 0x401d26
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jge 0x401d40
movzx ecx, byte [ebp - 1]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00401c80
mov byte [ebp - 1], al
jmp 0x401d1d
movzx edx, byte [ebp - 2]
movzx eax, byte [ebp - 1]
xor edx, eax
mov byte [ebp - 2], dl
movzx ecx, byte [ebp + 0xc]
sar ecx, 1
mov byte [ebp + 0xc], cl
jmp 0x401cea
mov al, byte [ebp - 2]
mov esp, ebp
pop ebp
ret 8
Function at 0x406860
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x6fe3a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], ecx
call fcn.004076b0
test eax, eax
je 0x406883
mov al, 1
jmp 0x406917
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4068e7
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
cmp dword [ebp - 0x10], 0
je 0x4068fe
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x14], 0
je 0x40690d
mov dword [ebp - 0x18], 1
jmp 0x406914
mov dword [ebp - 0x18], 0
mov al, byte [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00641b27
mov esp, ebp
pop ebp
ret
Function at 0x406930
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x667d69
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x6fe3a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x234], ecx
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x406b39
push 0x702e80
lea ecx, [ebp - 0x224]
call fcn.00407ad0
mov byte [ebp - 4], 1
push 0x67a918
lea ecx, [ebp + 8]
push ecx
push 0x67a924
lea edx, [ebp - 0x230]
push edx
call fcn.00407fb0
add esp, 0xc
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x21c]
push edx
call fcn.00407f00
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x230]
call fcn.004059a0
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00408080
push 0x67a930
lea ecx, [ebp - 0x21c]
call fcn.004080a0
push 0x67a934
lea ecx, [ebp - 0x21c]
call fcn.004080a0
push 0x702e84
lea ecx, [ebp - 0x21c]
call fcn.00408080
push 0x67a93c
lea ecx, [ebp - 0x21c]
call fcn.004080a0
mov dword [ebp - 0x270], 0x3c
push 0x38
push 0
lea ecx, [ebp - 0x26c]
push ecx
call fcn.00643fe0
add esp, 0xc
mov dword [ebp - 0x264], 0x67a940
lea edx, [ebp - 0x218]
mov dword [ebp - 0x260], edx
lea ecx, [ebp - 0x21c]
call fcn.0042dd70
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x254], 1
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x406adf
mov byte [ebp - 0x21d], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x21c]
call fcn.004059a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.004059a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004059a0
mov al, byte [ebp - 0x21d]
jmp 0x406b55
mov byte [ebp - 0x21e], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x21c]
call fcn.004059a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.004059a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004059a0
mov al, byte [ebp - 0x21e]
jmp 0x406b55
mov byte [ebp - 0x21f], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004059a0
mov al, byte [ebp - 0x21f]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00641b27
mov esp, ebp
pop ebp
ret 4
Function at 0x406b70
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd3c
mov eax, dword [0x6fe3a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0xd38], ecx
push 0x104
lea eax, [ebp - 0x134]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x406c4a
push 0x400
push 0
lea ecx, [ebp - 0x534]
push ecx
call fcn.00643fe0
add esp, 0xc
push 0x800
push 0
lea edx, [ebp - 0xd34]
push edx
call fcn.00643fe0
add esp, 0xc
push 0x400
lea eax, [ebp - 0x534]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0xd3c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x406c4a
mov ecx, 0xa
mov esi, str._d__c_timeout_5__cmd__d__c_del__f__q___s_
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x134]
push ecx
lea edx, [ebp - 0x30]
push edx
push 0x800
lea eax, [ebp - 0xd34]
push eax
call fcn.00409e60
add esp, 0x10
push 0
push 0
lea ecx, [ebp - 0xd34]
push ecx
lea edx, [ebp - 0x534]
push edx
push 0x67a980
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00641b27
mov esp, ebp
pop ebp
ret
Function at 0x4076b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x6fe3a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x118], 0
push 0x110
push 0
lea eax, [ebp - 0x114]
push eax
call fcn.00643fe0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
ja 0x40770f
mov dword [ebp - 0x11c], 1
jmp 0x407719
mov dword [ebp - 0x11c], 0
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00641b27
mov esp, ebp
pop ebp
ret

Function at 0x409170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x409194
xor eax, eax
jmp 0x409214
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4091ab
xor eax, eax
jmp 0x409214
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x4091f7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x4091f7
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x4091ce
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x409203
xor eax, eax
jmp 0x409214
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x409211
xor eax, eax
jmp 0x409214
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40fce0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x6fe3a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x428], ecx
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0x20
ja 0x40ff05
lea edx, [ebp - 0x414]
push edx
push 0x67b2bc
push closesocket
mov ecx, dword [ebp - 0x428]
call fcn.0040ff40
test eax, eax
jne 0x40ff05
push 0x67b2c8
lea eax, [ebp - 0x438]
push eax
call fcn.0040cc30
add esp, 8
mov dword [ebp - 0x434], eax
mov ecx, dword [ebp - 0x434]
call fcn.0042dd70
push eax
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x438]
call fcn.004059a0
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x414]
push eax
push closesocket
mov ecx, dword [ebp - 0x428]
call fcn.0040ff40
test eax, eax
jne 0x40ff05
push 0x67b2f4
lea ecx, [ebp - 0x414]
push ecx
call fcn.00410c70
add esp, 8
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
jne 0x40fe1c
push 0x67b300
lea edx, [ebp - 0x414]
push edx
call fcn.00410c70
add esp, 8
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
jne 0x40fe0f
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp + eax*2 - 0x416]
mov dword [ebp - 0x418], ecx
jmp 0x40fe1a
xor edx, edx
mov eax, dword [ebp - 0x418]
mov word [eax], dx
jmp 0x40fe27
xor ecx, ecx
mov edx, dword [ebp - 0x418]
mov word [edx], cx
push 0x67b308
mov eax, dword [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
call fcn.00409160
mov dword [ebp - 0x43c], eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0
jne 0x40fe76
mov dword [ebp - 0x430], 0
jmp 0x40feee
mov ecx, dword [ebp - 0x420]
push ecx
call fcn.0064b0ab
add esp, 4
add eax, 1
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0x3fffffff
jle 0x40fea6
mov dword [ebp - 0x42c], 0
jmp 0x40fee2
mov eax, dword [ebp - 0x41c]
shl eax, 1
call fcn.00641df0
mov dword [ebp - 0x440], esp
mov edx, dword [ebp - 0x43c]
push edx
mov eax, dword [ebp - 0x41c]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x420]
push ecx
mov edx, dword [ebp - 0x440]
push edx
call fcn.004107d0
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x430], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x430]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp - 0x424]
lea esp, [ebp - 0x440]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00641b27
mov esp, ebp
pop ebp
ret 8
Function at 0x40ff40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x6fe3a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], ecx
lea eax, [ebp - 0x210]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x40ffc6
mov dword [ebp - 0x218], 0x104
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 0
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00641b27
mov esp, ebp
pop ebp
ret 0xc

Function at 0x410220
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6687ab
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x6fe3a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0xb0], 0
jne 0x410319
lea ecx, [ebp - 0x10]
call fcn.0040b500
mov dword [ebp - 4], 0
push 0x104
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00405f70
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00410b50
push 0x67b290
lea ecx, [ebp - 0x28]
push ecx
call fcn.0040cc30
add esp, 8
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
call fcn.00408080
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004059a0
lea ecx, [ebp - 0x10]
call fcn.0042dd70
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x410300
push 0x6a
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x410300
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.USER32.dll_CopyIcon]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0xb0], eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004059a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x410f30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6687d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x6fe3a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
call fcn.004123d0
mov dword [ebp - 0x10], eax
push 0x67b580
movzx eax, word [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x410fb3
xor al, al
jmp 0x411049
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00412cb0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00412dc0
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004129c0
push eax
call fcn.00410c90
add esp, 0x10
push 0x67b588
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0040ca00
add esp, 8
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
call fcn.0042dd70
push eax
call fcn.004254e0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004059a0
mov ecx, dword [ebp + 0xc]
call fcn.00412dc0
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004129c0
push eax
call fcn.00425640
add esp, 8
movzx eax, al
test eax, eax
jne 0x411047
xor al, al
jmp 0x411049
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8