joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406670
Capabilities:
Create thread
Hide graphical window

Disassembly:
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
call dword [sym.imp.USER32.dll_GetInputState]
call fcn.00406260
push 0
push 0
push 0
push 0x406520
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop esi
ret 0x10

Function at 0x407240
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40725b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407292
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40728e
jmp 0x407280
cmp esi, eax
jae 0x407292
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407280
cmp esi, eax
jb 0x407299
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x416362
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 0x4163a9
call fcn.0045980a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4163a9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4163c5
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00415e62
mov esi, eax
test edi, edi
je 0x4163c3
test ebx, ebx
je 0x4163c3
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x418529
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x542b04
call fcn.00527f3b
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x41854e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4185a0
call fcn.0042feed
push eax
lea ecx, [ebp - 0x10]
call fcn.00407700
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.00528045
push eax
call fcn.004074a0
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004052b0
mov eax, esi
call fcn.00528013
ret 8
Function at 0x42cd70
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 0x42cd8a
call fcn.0045980a
mov esi, dword [eax + 0xc]
push dword [0x5a4748]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x42cda8
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 0x42cda0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x42cdd5
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x42cda2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0042cc9e
mov esi, eax
jmp 0x42cdc7

Function at 0x44da41
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 0x44da89
call fcn.0045980a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44da89
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x44dacc
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 0x44dab5
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 0x44dab5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x44dac9
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 0x45141d
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.0045980a
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x451456
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.0045105a
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 0x4514b4
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 0x4514d8
cmp dword [edi + 0x74], 0
jne 0x4514d8
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0045980a
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
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.00451475
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 0x459eae
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x541e17
call fcn.00527f3b
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00408ad0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x459f10
call fcn.004590cd
cmp eax, 1
jne 0x459f10
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00450205
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040c7b2
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004052b0
mov dword [ebp + 8], closesocket
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004052b0
mov eax, esi
call fcn.00528013
ret 0x10

Function at 0x459f39
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x541e17
call fcn.00527f3b
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00408ad0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x459f9b
call fcn.004590cd
cmp eax, 1
jne 0x459f9b
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00450205
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040c7b2
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004052b0
mov dword [ebp + 8], closesocket
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_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004052b0
mov eax, esi
call fcn.00528013
ret 0x14

Function at 0x49f76f
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x49f7ad
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x49f7bb
push str.MoveFileTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49f7bb
push dword [esi]
push 2
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x49f7bd
cmp dword [esi + 4], 0
je 0x49f7bb
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileW]
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x4d2ca3
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 0x4d2cbb
mov edi, dword [esi + 0xc]
jmp 0x4d2cfb
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4d2cd4
call fcn.00451896
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4d2ce9
call fcn.00451896
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4d2cfb
call fcn.00451896
call fcn.0045980a
cmp dword [eax + 0x3c], 0
je 0x4d2d10
push edi
mov ecx, ebx
call fcn.004d1ad5
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004d2bbd
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4d2d2e
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4d2d3a
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 0x4f51fc
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0051d62f
call fcn.0045923b
cmp dword [eax + 0x14], 0
jne 0x4f5219
mov ecx, esi
pop esi
jmp fcn.004f4d01
pop esi
ret

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

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004a8afd
call fcn.0045923b
cmp dword [eax + 0x14], 0
jne 0x4f86a2
mov ecx, esi
pop esi
jmp fcn.004f8058
pop esi
ret

Function at 0x50aa46
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.0050a6ea
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x50aa90
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041435b
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040ec45
jmp 0x50aa9b
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0046658f
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x50aaa1
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.00417dd2
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x50aade
call fcn.0050a6ea
mov dword [esi + 0xc], 1
jmp 0x50aae3
call fcn.0050a6ea
cmp dword [esi], 0
je 0x50ab2c
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x50ab04
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041435b
jmp 0x50ab16
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00407460
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040ec45
jmp 0x50ab50
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x50ab50
push dword [esi]
push dword [ebp + 8]
call fcn.0046658f
pop esi
pop ebp
ret 0xc

Function at 0x5268a0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5a02e4]
jne 0x5268aa
repz ret
jmp fcn.0052cdd4
Function at 0x539198
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5a02e4]
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.0052f675
and dword [ebp - 0x14], 0
cmp dword [0x5a8628], 0
mov dword [ebp - 0x18], eax
jne 0x53924b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x5392f3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x57a3fc
push ebx
call edi
test eax, eax
je 0x5392f3
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x57a3ec
push ebx
mov dword [0x5a8628], eax
call edi
push eax
call esi
push 0x57a3d8
push ebx
mov dword [0x5a862c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5a8630], eax
call edi
push eax
call esi
mov dword [0x5a8638], eax
test eax, eax
je 0x53924b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5a8634], eax
mov eax, dword [0x5a8634]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5392a4
cmp dword [0x5a8638], ecx
je 0x5392a4
push eax
call esi
push dword [0x5a8638]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5392a4
test ebx, ebx
je 0x5392a4
call edi
test eax, eax
je 0x53929b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x53929b
test byte [ebp - 8], 1
jne 0x5392a4
or dword [ebp + 0x10], 0x200000
jmp 0x5392d7
mov eax, dword [0x5a862c]
cmp eax, dword [ebp - 0x18]
je 0x5392d7
push eax
call esi
test eax, eax
je 0x5392d7
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5392d7
mov eax, dword [0x5a8630]
cmp eax, dword [ebp - 0x18]
je 0x5392d7
push eax
call esi
test eax, eax
je 0x5392d7
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5a8628]
call esi
test eax, eax
je 0x5392f3
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x5392f5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005268a0
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x402c00
pop dword [ebp - 0x20]
mov eax, 0xfc0d961c
sub eax, 0xfbcd6a1c
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x695cea00
add dword [ebp - 0x30], 0xe4f55b4b
mov dword [ebp - 0x2c], 0xd2a22ebc
add dword [ebp - 0x2c], 0x5f911d89
mov dword [ebp - 0x28], 0xc2a599f4
add dword [ebp - 0x28], 0x89a6aa3a
mov dword [ebp - 0x24], 0xd212a781
sub dword [ebp - 0x24], 0xd212a781
lea eax, [ebp - 0x30]
push eax
mov eax, 0xfee73c15
sub eax, 0xfea6bb89
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x6ca87be4
sub dword [ebp - 0x30], 0xf836128e
mov dword [ebp - 0x2c], 0xa5cf7659
sub dword [ebp - 0x2c], 0x646314e4
mov dword [ebp - 0x28], 0x24ba6765
sub dword [ebp - 0x28], 0xc14afaf9
mov dword [ebp - 0x24], 0x2c83c7ac
add dword [ebp - 0x24], 0xd37c3854
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x7b0ab1c6
add eax, 0x8535cf0e
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3960e
push 0
call eax
mov ecx, 0xd228ace0
add ecx, 0x2dd7a5e2
xor edi, edi
add edi, eax
mov ebx, 0x411000
add ebx, dword [ebp - 0x20]
mov edx, 0x375bd1b0
add edx, 0x7eedb515
add dword [ebp - 0x1c], 0x3b1d4cf1
mov esi, dword [ebx]
sub dword [ebp - 4], ecx
xor esi, edx
xor dword [ebp - 8], 0xe7e6455
mov dword [edi], esi
add edi, 4
add ebx, 0x3911523e
add ebx, 0xc6eeadc6
loop 0x402d1e
add eax, 0x13ddb
mov ebx, eax
add eax, 0x37b2d8f2
sub eax, 0x37b2d8ed
mov ecx, 0xcefa14d2
add ecx, 0x3145eb2e
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x100259e1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x100259f0
pop dword [ebp - 0x24]
mov eax, 0xafae3a76
add eax, 0x60541f7a
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x5c9e5538
sub dword [ebp - 0x34], 0xe4c0fed
mov dword [ebp - 0x30], 0xc7422614
sub dword [ebp - 0x30], 0x950ed9cf
mov dword [ebp - 0x2c], 0x3ba93b48
sub dword [ebp - 0x2c], 0xef5cf71a
mov dword [ebp - 0x28], 0xc6cecd7d
sub dword [ebp - 0x28], 0xc6cecd7d
lea eax, [ebp - 0x34]
push eax
mov eax, 0xaf10bb5c
sub eax, 0x9f0d6a44
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x189c34b4
add dword [ebp - 0x34], 0x5bd634a2
mov dword [ebp - 0x30], 0x6646a9a1
sub dword [ebp - 0x30], 0x24da482c
mov dword [ebp - 0x2c], 0x9cd69faa
sub dword [ebp - 0x2c], 0x3967333e
mov dword [ebp - 0x28], 0x3a3c7fda
sub dword [ebp - 0x28], 0x3a3c7fda
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x9ca9155d
sub eax, 0x8ca5c3f9
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x386a9
push 0
call eax
mov ecx, 0xb28ba44d
add ecx, 0x4d7498e2
mov esi, eax
mov edi, 0xca71640e
sub edi, 0xba68e00e
add edi, dword [ebp - 0x24]
mov edx, 0x5ac73fe9
add edx, 0xc054089f
xor dword [ebp - 0xc], ebx
mov ebx, dword [edi]
xor dword [ebp - 0xc], 0xae6c480d
sub ebx, edx
xor dword [ebp - 0xc], edi
mov dword [esi], ebx
add dword [ebp - 0x14], edx
add esi, 4
add edi, 4
loop 0x10025b12
add eax, 0xe78f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x11e61c4e
add ecx, 0xfe19e3b2
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x502608
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x5364d0]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [0x5364d0]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
mov dword [esp + 4], 0
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x16]
mov dword [esp + 0x228], 0
push ecx
mov word [esp + 0x18], ax
call fcn.004e8fe0
add esp, 0xc
push 0x104
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x208
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.004e8fe0
add esp, 0xc
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
push ecx
push str.path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.SHELL32.dll_SHChangeNotifyRegister
mov dword [esp + 0x20], 0x208
mov dword [esp + 0x1c], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edx, dword [esp + 0x228]
push edx
lea eax, [esp + 0x10]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push esi
lea ecx, [esp + 0x10]
call fcn.00401640
mov dword [esp + 0x220], 0xffffffff
mov eax, dword [esp + 0x228]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401117
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004e3edb
add esp, 0x220
ret

Function at 0x4011d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4011ed
pop edi
pop ebp
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401224
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401220
lea ebx, [ebx]
cmp esi, eax
jae 0x401224
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x401210
cmp esi, eax
jb 0x40122b
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
pop ebx
ret
Function at 0x402750
Capabilities:
Delete registry key

Disassembly:
sub esp, 0xc
mov eax, dword [0x565304]
push ebx
push ebp
mov ebp, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push esi
mov esi, dword [0x5652ec]
push edi
mov edi, dword [eax]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov ebx, dword [0x565304]
test esi, esi
je 0x402784
cmp esi, dword [0x5652ec]
je 0x402789
call fcn.004e48f7
cmp edi, ebx
je 0x40282c
test esi, esi
jne 0x40281d
call fcn.004e48f7
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x4027aa
call fcn.004e48f7
mov eax, dword [edi + 0xc]
push 0x50ff90
push eax
call fcn.004e4707
add esp, 8
test eax, eax
je 0x402807
test esi, esi
jne 0x402824
call fcn.004e48f7
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x4027d4
call fcn.004e48f7
mov eax, dword [edi + 0xc]
push 0x50ff98
push eax
call fcn.004e4707
add esp, 8
test eax, eax
je 0x402807
test esi, esi
jne 0x402828
call fcn.004e48f7
cmp edi, dword [esi + 0x18]
jne 0x4027fc
call fcn.004e48f7
mov ecx, dword [edi + 0x10]
push ecx
push SHChangeNotifyDeregister
call ebp
lea esi, [esp + 0x10]
call fcn.0047a420
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
jmp 0x402772
mov eax, dword [esi]
jmp 0x4027a0
mov eax, dword [esi]
jmp 0x4027ca
mov esi, dword [esi]
jmp 0x4027f2
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret