joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d40
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5257e0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5c87f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x10]
push 0x535230
push 0x535214
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
nop
nop
nop
inc eax
dec ebx
dec eax
inc ebx
mov eax, dword [esi + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
movzx ecx, word [eax + 0x14]
lea edx, [ecx + eax + 0x18]
push 0x5685d0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0x50
call fcn.0050ef27
mov dword [ebp - 0x10], esp
inc eax
dec ebx
dec eax
inc ebx
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
movzx eax, word [edx + 6]
cmp dword [ebp - 0x18], eax
jge 0x401e9f
cmp dword [esi + 0x10], 0
jne 0x401e23
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ecx + 0x38]
test ebx, ebx
jle 0x401e91
mov edx, dword [esi + 0xc]
add edx, dword [ebp - 0x1c]
push 4
push 0x1000
push ebx
push edx
call edi
push ebx
push 0
push eax
mov dword [esi + 8], eax
call fcn.0050f2f0
inc dword [ebp - 0x18]
add esp, 0xc
add esi, 0x28
mov dword [ebp - 0x14], esi
jmp 0x401dd2
inc eax
dec ebx
dec eax
inc ebx
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
add ecx, dword [ebp - 0x1c]
push 4
push 0x1000
push eax
push ecx
call edi
push 0x5685d0
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], 0x55
call fcn.0050ef27
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
add edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
push ecx
push edx
push eax
call fcn.0050ef80
add esp, 0xc
mov dword [ebp - 4], 1
mov eax, 0x401e7e
ret
inc dword [ebp - 0x18]
add esi, 0x28
mov dword [ebp - 0x14], esi
jmp 0x401dd2
mov eax, 0x401ea5
ret
Function at 0x401fe0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525820
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5c87f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x535278
push 0x535214
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
nop
nop
nop
nop
nop
push 0x535268
push 0x535214
call esi
push eax
call edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
movzx ecx, word [eax + 0x14]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x18], edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0x5685d0
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x40
call fcn.0050ef27
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
xor edx, edx
xor ebx, ebx
cmp dx, word [ecx + 6]
jae 0x402143
mov esi, dword [ebp - 0x18]
add esi, 0x24
jmp 0x402090
mov eax, dword [esi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
and ecx, 1
and edx, 1
shr eax, 0x1f
nop
nop
nop
nop
test dword [esi], 0x2000000
je 0x4020c6
mov eax, dword [esi - 0x14]
mov ecx, dword [esi - 0x1c]
push 0x4000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x402131
nop
nop
nop
nop
nop
test dword [esi], 0x4000000
lea edx, [edx + ecx*2]
lea eax, [eax + edx*2]
mov edx, dword [eax*4 + 0x5c393c]
je 0x4020e6
or edx, 0x200
nop
nop
nop
nop
nop
nop
mov eax, dword [esi - 0x14]
test eax, eax
jne 0x40210a
mov ecx, dword [esi]
test cl, 0x40
je 0x402101
mov ecx, dword [edi]
mov eax, dword [ecx + 0x20]
jmp 0x40210a
test cl, cl
jns 0x40210a
mov eax, dword [edi]
mov eax, dword [eax + 0x24]
nop
nop
nop
nop
nop
nop
test eax, eax
je 0x402131
mov eax, dword [esi - 0x1c]
lea ecx, [ebp + 8]
push ecx
push edx
mov edx, dword [esi - 0x14]
push edx
push eax
call dword [ebp - 0x1c]
test eax, eax
jne 0x402131
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [edi]
movzx edx, word [ecx + 6]
inc ebx
add esi, 0x28
cmp ebx, edx
jl 0x402090
mov eax, 0x402149
ret
Function at 0x402270
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525860
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5c87f8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
push 0x5685d0
lea ecx, [ebp - 0x58]
push ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x58], 0x45
call fcn.0050ef27
mov dword [ebp - 0x10], esp
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x34]
xor ebx, ebx
push eax
mov dword [ebp - 0x24], 0x61427349
mov dword [ebp - 0x20], 0x61655264
mov dword [ebp - 0x1c], 0x72745064
mov byte [ebp - 0x18], bl
mov dword [ebp - 0x34], 0x4e52454b
mov dword [ebp - 0x30], 0x32334c45
mov dword [ebp - 0x2c], 0x6c6c642e
mov byte [ebp - 0x28], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x54], eax
nop
nop
nop
nop
nop
nop
mov edi, dword [ebp - 0x48]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x3c], ecx
nop
nop
nop
nop
nop
nop
mov eax, dword [edi]
cmp dword [eax + 0x84], ebx
jbe 0x402371
mov esi, dword [eax + 0x80]
add esi, ecx
mov dword [ebp - 0x44], esi
mov edi, edi
push 0x14
push esi
call dword [ebp - 0x54]
test eax, eax
jne 0x402371
cmp dword [esi + 0xc], eax
je 0x402371
inc eax
dec ebx
dec eax
inc ebx
mov ecx, dword [esi + 0xc]
add ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov dword [ebp - 0x50], ebx
cmp ebx, 0xffffffff
jne 0x402377
mov dword [ebp - 0x38], 0
mov eax, 0x402487
ret
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 8]
lea eax, [edx*4 + 4]
push eax
push ecx
call fcn.00401ec0
add esp, 8
mov dword [edi + 8], eax
test eax, eax
je 0x40236a
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 8]
mov dword [eax + edx*4], ebx
inc dword [edi + 0xc]
mov ecx, dword [esi]
test ecx, ecx
je 0x4023d0
add ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], ecx
inc eax
dec ebx
dec eax
inc ebx
mov esi, dword [esi + 0x10]
add esi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x50]
mov dword [ebp - 0x40], esi
jmp 0x4023e0
mov ecx, dword [ebp - 0x3c]
add ecx, dword [esi + 0x10]
mov esi, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x4c], ecx
mov edi, edi
mov eax, dword [ecx]
test eax, eax
je 0x402442
jns 0x4023f0
and eax, 0xffff
push eax
jmp 0x4023fd
nop
nop
nop
nop
mov ecx, dword [ecx]
add ecx, dword [ebp - 0x3c]
add ecx, 2
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5685d0
lea edx, [ebp - 0x5c]
push edx
mov dword [esi], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x5c], 0x42
call fcn.0050ef27
mov eax, dword [ebp - 0x40]
cmp dword [eax], 0
jne 0x402460
inc eax
dec ebx
dec eax
inc ebx
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 1
mov eax, 0x40243f
ret
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebp - 0x38], 0
je 0x402371
add dword [ebp - 0x44], 0x14
mov esi, dword [ebp - 0x44]
jmp 0x402340
mov dword [ebp - 4], 1
mov eax, 0x40246d
ret
Function at 0x402610
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5258b0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5c87f8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x535224
push 0x535214
mov dword [ebp - 0x3c], eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov dword [ebp - 0x38], eax
nop
nop
nop
inc eax
dec ebx
dec eax
inc ebx
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x30]
xor ebx, ebx
push edx
mov dword [ebp - 0x30], 0x4e52454b
mov dword [ebp - 0x2c], 0x32334c45
mov dword [ebp - 0x28], 0x6c6c642e
mov byte [ebp - 0x24], bl
mov dword [ebp - 0x20], 0x74726956
mov dword [ebp - 0x1c], 0x466c6175
mov dword [ebp - 0x18], 0x656572
call esi
push eax
call edi
push str.GetProcessHeap
push 0x535284
mov dword [ebp - 0x44], eax
call esi
push eax
call edi
mov dword [ebp - 0x34], eax
nop
nop
nop
nop
nop
nop
nop
nop
push 0x5685d0
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x40], 0x44
call fcn.0050ef27
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x40276d
cmp dword [esi + 0x10], 0
je 0x402708
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x28]
add ecx, dword [esi + 4]
inc eax
dec ebx
dec eax
inc ebx
mov edx, dword [esi + 4]
push 0
push 0
push edx
call ecx
mov dword [esi + 0x10], 0
nop
nop
nop
cmp dword [esi + 8], 0
je 0x402747
xor edi, edi
cmp dword [esi + 0xc], edi
jle 0x402737
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, edi
mov eax, dword [esi + 8]
cmp dword [eax + edi*4], 0xffffffff
lea eax, [eax + edi*4]
je 0x402731
mov ecx, dword [eax]
push ecx
call ebx
inc edi
cmp edi, dword [esi + 0xc]
jl 0x402720
inc eax
dec ebx
dec eax
inc ebx
mov edx, dword [esi + 8]
push edx
call fcn.00401c50
add esp, 4
inc eax
dec ebx
dec eax
inc ebx
mov eax, dword [esi + 4]
test eax, eax
je 0x40275d
push 0x8000
push 0
push eax
call dword [ebp - 0x44]
nop
nop
nop
nop
nop
nop
push esi
push 0
call dword [ebp - 0x34]
push eax
call dword [ebp - 0x38]
mov eax, 0x402773
ret
Function at 0x4094c1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.00421899
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4094ee
xor eax, eax
jmp 0x409595
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x4094e7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4094e7
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00403943
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x409546
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 2
cmp eax, edx
jl 0x409534
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.0040816b
push edi
mov ebx, eax
call fcn.00403972
pop ecx
test ebx, ebx
je 0x409588
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.004087d4
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00408888
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x40fe0d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40fe54
call fcn.00421899
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40fe54
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40fe70
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040f912
mov esi, eax
test edi, edi
je 0x40fe6e
test ebx, ebx
je 0x40fe6e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x410d49
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x52875f
call fcn.0050f93f
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x410d6e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x410dc0
call fcn.004152d2
push eax
lea ecx, [ebp - 0x10]
call fcn.004014b0
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00511523
push eax
call fcn.00403d1e
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401360
mov eax, esi
call fcn.0050fa17
ret 8
Function at 0x419183
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00421899
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4191bc
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00418dc5
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x41921a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x41923e
cmp dword [edi + 0x74], 0
jne 0x41923e
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00421899
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004191db
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x419e59
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x419ea1
call fcn.00421899
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x419ea1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x419ee4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x419ecd
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x419ecd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x419ee1
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42a395
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x527725
call fcn.0050f93f
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040f73d
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x42a3f7
call fcn.0042115c
cmp eax, 1
jne 0x42a3f7
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0041812d
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00407a82
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401360
mov dword [ebp + 8], SysReAllocString
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401360
mov eax, esi
call fcn.0050fa17
ret 0x10

Function at 0x42a420
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x527725
call fcn.0050f93f
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040f73d
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x42a482
call fcn.0042115c
cmp eax, 1
jne 0x42a482
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0041812d
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00407a82
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401360
mov dword [ebp + 8], SysReAllocString
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401360
mov eax, esi
call fcn.0050fa17
ret 0x14

Function at 0x42f7a7
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x42f7e5
push 0x535214
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x42f7f3
push str.MoveFileTransactedA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42f7f3
push dword [esi]
push 2
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x42f7f5
cmp dword [esi + 4], 0
je 0x42f7f3
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileA]
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x466fd1
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004ea310
call fcn.004212ca
cmp dword [eax + 0x14], 0
jne 0x466fee
mov ecx, esi
pop esi
jmp fcn.00466ad6
pop esi
ret

Function at 0x46a590
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0049c2dc
call fcn.004212ca
cmp dword [eax + 0x14], 0
jne 0x46a5ad
mov ecx, esi
pop esi
jmp fcn.00469f63
pop esi
ret

Function at 0x47766f
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0047732e
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4776b9
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040dd3f
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405e3e
jmp 0x4776c4
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041fcef
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4776ca
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.004105f2
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x477707
call fcn.0047732e
mov dword [esi + 0xc], 1
jmp 0x47770c
call fcn.0047732e
cmp dword [esi], 0
je 0x477755
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x47772d
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040dd3f
jmp 0x47773f
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401590
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405e3e
jmp 0x477779
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x477779
push dword [esi]
push dword [ebp + 8]
call fcn.0041fcef
pop esi
pop ebp
ret 0xc
Function at 0x4a1f97
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4a1fb1
call fcn.00421899
mov esi, dword [eax + 0xc]
push dword [0x5cdb7c]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4a1fcf
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4a1fc7
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4a1ffc
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4a1fc9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004a1ec3
mov esi, eax
jmp 0x4a1fee

Function at 0x4f3a3f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4f3a57
mov edi, dword [esi + 0xc]
jmp 0x4f3a97
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4f3a70
call fcn.0041400b
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4f3a85
call fcn.0041400b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4f3a97
call fcn.0041400b
call fcn.00421899
cmp dword [eax + 0x3c], 0
je 0x4f3aac
push edi
mov ecx, ebx
call fcn.004f2905
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004f3959
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4f3aca
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4f3ad6
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x50eb70
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5c87f8]
jne 0x50eb7a
repz ret
jmp fcn.005167cc
Function at 0x521a45
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c87f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.005161c1
and dword [ebp - 0x14], 0
cmp dword [0x5d007c], 0
mov dword [ebp - 0x18], eax
jne 0x521af8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x521ba0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x521ba0
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x55d474
push ebx
mov dword [0x5d007c], eax
call edi
push eax
call esi
push 0x55d460
push ebx
mov dword [0x5d0080], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5d0084], eax
call edi
push eax
call esi
mov dword [0x5d008c], eax
test eax, eax
je 0x521af8
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5d0088], eax
mov eax, dword [0x5d0088]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x521b51
cmp dword [0x5d008c], ecx
je 0x521b51
push eax
call esi
push dword [0x5d008c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x521b51
test ebx, ebx
je 0x521b51
call edi
test eax, eax
je 0x521b48
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x521b48
test byte [ebp - 8], 1
jne 0x521b51
or dword [ebp + 0x10], 0x200000
jmp 0x521b84
mov eax, dword [0x5d0080]
cmp eax, dword [ebp - 0x18]
je 0x521b84
push eax
call esi
test eax, eax
je 0x521b84
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x521b84
mov eax, dword [0x5d0084]
cmp eax, dword [ebp - 0x18]
je 0x521b84
push eax
call esi
test eax, eax
je 0x521b84
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5d007c]
call esi
test eax, eax
je 0x521ba0
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x521ba2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050eb70
leave
ret