joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405c48
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405c67
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405c6d
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405c9c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a3cc]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405ce1
test edi, edi
jne 0x405ca7
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405cdb
Function at 0x405d43
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x422ac0], 0x4c554e
mov edi, 0x400
mov ebp, 0x422ac0
je 0x405d8f
push 1
push 0
push esi
call fcn.00405c6d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405eae
cmp eax, edi
jg 0x405eae
mov esi, 0x422ec0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405eae
cmp eax, edi
jg 0x405eae
push esi
push ebp
push str._s_s_r_n
push 0x4226c0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x424734]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004060f6
push 4
push 0xc0000000
push esi
call fcn.00405c6d
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405eae
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405ea7
push edi
push esi
push ebp
call fcn.00405ce5
test eax, eax
je 0x405ea7
push str._Rename__r_n
push esi
call fcn.00405bd2
test eax, eax
jne 0x405e45
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405e7a
add eax, 0xa
push 0x40a3d0
push eax
call fcn.00405bd2
mov ebp, eax
test ebp, ebp
je 0x405e76
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405e67
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405e61
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405e7c
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4226c0
push eax
call fcn.00405c28
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405d14
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx

Function at 0x405eb3
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405ed6
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405d43
pop ecx
pop ecx
inc dword [0x4247d0]
ret 8

Function at 0x405fbb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x400
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405f5a
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x40602a
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x3ff], 0
test edi, edi
pop edi
jne 0x40602a
cmp dword [ebp + 0xc], 1
je 0x40602d
cmp dword [ebp + 0xc], 2
je 0x40602d
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x4063fe
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406422
xor eax, eax
test eax, eax
je 0x406434
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406434
xor ecx, ecx
jmp 0x406437
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x406523
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232c4], 0
push esi
jne 0x40655a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406534
mov dword [ecx*4 + 0x4232c0], eax
inc ecx
cmp ecx, 0x100
jl 0x40652f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40658b
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4232c0]
xor eax, esi
inc ecx
dec edx
jne 0x40656d
pop edi
not eax
pop esi
ret 0xc

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x3a074aa2
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0xcc974db
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x5901b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00590140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00590140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00590140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00590140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x590bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x590c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x5a287c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x590c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x590c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
mov ecx, 0x6eab6335
nop
nop
nop
nop
nop
test eax, eax
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x2f47179a
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x3dd562e7
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x60a541fb
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401250
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
cmp dword [0x8c9660], 0x594
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
jne 0x401291
push 0
lea ecx, [ebp - 0x424]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push str.nivaxosiwawarejasu
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov eax, dword [0x4aa3ac]
mov edx, dword [0x4aa3a8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], edx
call fcn.00401240
mov ebx, dword [ebp - 0xc]
mov ecx, dword [0x4aa3b0]
mov edx, dword [0x4aa3b4]
add ebx, 0x23f
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x14], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov ecx, dword [0x8c9660]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x401323
push 0
lea eax, [ebp - 0x824]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
push 0
call dword [sym.imp.KERNEL32.dll_RequestDeviceWakeup]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
mov eax, dword [ebp - 4]
mov ecx, dword [0x8c9660]
add eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x40133d
mov dword [0x8c8bfc], 0xedeb2e40
jmp 0x40134f
cmp ecx, 0x3eb
jne 0x40134f
mov dword [0x8c85b0], 0
lea ecx, [ebx + edi]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0xc]
mov edx, edi
shr edx, cl
mov dword [0x8c8bf8], 0xf4ea3dee
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov edx, dword [ebp - 8]
shl edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x20]
lea eax, [ebx + ecx]
xor dword [ebp - 4], eax
cmp dword [0x8c9660], 0x121
jne 0x4013c1
push str.samexoze
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
xor eax, esi
sub edi, eax
add ebx, 0x61c88647
sub dword [ebp - 0x14], 1
mov dword [ebp - 4], eax
jne 0x4012d3
cmp dword [0x8c9660], 0xa6d
mov esi, dword [ebp + 8]
mov dword [esi], edi
jne 0x401405
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40384b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a9158]
jne 0x403855
repz ret
jmp fcn.004094cc

Function at 0x4096b8
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.004047ca
and dword [ebp - 4], 0
cmp dword [0x4ab30c], 0
mov ebx, eax
jne 0x409769
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40981a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40981a
push eax
call fcn.00404758
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4ab30c], eax
call esi
push eax
call fcn.00404758
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4ab310], eax
call esi
push eax
call fcn.00404758
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4ab314], eax
call esi
push eax
call fcn.00404758
pop ecx
mov dword [0x4ab31c], eax
test eax, eax
je 0x409769
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404758
pop ecx
mov dword [0x4ab318], eax
mov eax, dword [0x4ab318]
cmp eax, ebx
je 0x4097c1
cmp dword [0x4ab31c], ebx
je 0x4097c1
push eax
call fcn.004047d3
push dword [0x4ab31c]
mov esi, eax
call fcn.004047d3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4097c1
test edi, edi
je 0x4097c1
call esi
test eax, eax
je 0x4097b8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4097b8
test byte [ebp - 0xc], 1
jne 0x4097c1
or dword [ebp + 0x10], 0x200000
jmp 0x4097fa
mov eax, dword [0x4ab310]
cmp eax, ebx
je 0x4097fa
push eax
call fcn.004047d3
pop ecx
test eax, eax
je 0x4097fa
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4097fa
mov eax, dword [0x4ab314]
cmp eax, ebx
je 0x4097fa
push eax
call fcn.004047d3
pop ecx
test eax, eax
je 0x4097fa
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4ab30c]
call fcn.004047d3
pop ecx
test eax, eax
je 0x40981a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40981c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40529a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x440f3c]
jne 0x4052a4
repz ret
jmp fcn.00409092

Function at 0x40bb2c
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.00406cf4
and dword [ebp - 4], 0
cmp dword [0x442850], 0
mov ebx, eax
jne 0x40bbdd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40bc8e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40bc8e
push eax
call fcn.00406c82
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x442850], eax
call esi
push eax
call fcn.00406c82
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x442854], eax
call esi
push eax
call fcn.00406c82
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x442858], eax
call esi
push eax
call fcn.00406c82
pop ecx
mov dword [0x442860], eax
test eax, eax
je 0x40bbdd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406c82
pop ecx
mov dword [0x44285c], eax
mov eax, dword [0x44285c]
cmp eax, ebx
je 0x40bc35
cmp dword [0x442860], ebx
je 0x40bc35
push eax
call fcn.00406cfd
push dword [0x442860]
mov esi, eax
call fcn.00406cfd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40bc35
test edi, edi
je 0x40bc35
call esi
test eax, eax
je 0x40bc2c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40bc2c
test byte [ebp - 0xc], 1
jne 0x40bc35
or dword [ebp + 0x10], 0x200000
jmp 0x40bc6e
mov eax, dword [0x442854]
cmp eax, ebx
je 0x40bc6e
push eax
call fcn.00406cfd
pop ecx
test eax, eax
je 0x40bc6e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40bc6e
mov eax, dword [0x442858]
cmp eax, ebx
je 0x40bc6e
push eax
call fcn.00406cfd
pop ecx
test eax, eax
je 0x40bc6e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x442850]
call fcn.00406cfd
pop ecx
test eax, eax
je 0x40bc8e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40bc90
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410200
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
imul edx
dec edi
dec edi
rcr edx, 0xb
rcl esi, 0x92
not edi
bswap esi
not eax
rcl esi, 0xea
sbb edx, 0x76
sub edi, 0x59
and edx, 0x19
mov ebx, 0x74
inc edi
not eax
rcl edi, 0x76
neg eax
imul ebx
add ebx, 0xfb
not edx
dec esi
neg edx
mov ebx, 0xa0
or edi, 0xf1
neg ebx
dec ebx
dec esi
and edi, 0xc2
and edi, 0xf6
sbb eax, 0x81
inc edx
dec eax
not ebx
rcr ebx, 0x2f
not edi
rcl ebx, 0xf6
bswap edx
imul esi
add edi, 0xcb
not edi
sub edx, 0x27
add eax, 0x52
dec esi
rcr edi, 0x4c
rcl edi, 0x8b
neg ebx
not eax
and esi, 0x9e
dec eax
imul ebx
xor ecx, ecx
xor edi, edi
rol eax, 0x3c
bswap edx
bswap edx
or ebx, 0xea
dec esi
inc ebx
not esi
neg ebx
mov esi, 0x9c
inc esi
not esi
inc edx
inc esi
not eax
inc esi
sub edx, 0xc8
not esi
add edx, 0xaf
bswap esi
rcl esi, 0xfc
sub edi, 0x49
add ebx, 0x63
bswap ebx
ror ebx, 0x58
ror ebx, 0x54
mov edx, 0xae
or eax, 0xe1
ror edi, 0xb9
imul edx
mov ebx, 0x56
neg eax
inc edx
not esi
add eax, 0xf3
not edi
bswap edx
mov edi, 0xb0
imul ebx
or esi, 0x7b
dec ebx
rcr eax, 0xb3
rcl esi, 0x95
inc eax
neg edi
imul edx
bswap eax
rol eax, 0xa4
not ebx
rol edi, 0xf7
imul eax
mov ecx, dword [ebp + 0xc]
rcr eax, 0xcc
imul eax
not ebx
not edi
rol ebx, 0x1b
imul ebx
bswap edx
bswap edx
sub eax, 0xc0
add edi, 0x23
neg ebx
not edi
add edi, 0x7b
and ebx, 0x3e
rcl edi, 0x59
dec edi
ror edi, 0x76
sub edx, 0xc7
neg edx
and eax, 0x40
not edx
neg ebx
imul eax
bswap eax
and edx, 0xe8
inc edx
sub eax, 0x88
inc eax
ror eax, 0x49
not eax
ror edx, 0x67
imul edi
add eax, 0x6e
bswap eax
bswap ebx
bswap esi
neg esi
rcr esi, 5
rol edi, 0x68
bswap edi
dec ebx
neg edx
imul eax
imul edi
sub ebx, 0x16
rcl esi, 0x30
dec edx
rcl eax, 0x4f
not eax
sbb edx, 7
mov edi, dword [ebp + 8]
mov esi, eax
mov esi, eax
xor eax, esi
not byte [edi]
xor ebx, ebx
mov esi, esi
xor ebx, esi
mov ebx, esi
mov esi, esi
mov esi, ebx
xor esi, ebx
mov eax, esi
mov esi, ebx
add byte [edi], 0x48
mov esi, eax
xor ebx, esi
mov ebx, ebx
xor ebx, esi
mov eax, esi
mov eax, eax
mov ebx, esi
xor ebx, ebx
mov ebx, ebx
sub byte [edi], 0x97
xor ebx, ebx
mov ebx, ebx
mov eax, eax
xor ebx, ebx
mov ebx, ebx
mov eax, ebx
mov eax, esi
xor eax, esi
mov ebx, ebx
imul byte [edi]
inc edi
loop 0x4103a1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x405a82
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x47e084]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 4]
push ecx
push dword [edi]
xor esi, esi
or eax, 0x2001f
lea ebx, [esp + 0x18]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.00405cf2
mov ebx, eax
cmp ebx, esi
je 0x405ae4
cmp dword [esp + 0x10], esi
je 0x405ae0
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x405b5a
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x405b02
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.00405a82
mov dword [esp + 0x24], eax
cmp eax, esi
jne 0x405b71
lea eax, [esp + 0x28]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x44]
push eax
push esi
push dword [esp + 0x2c]
mov dword [esp + 0x3c], 0x100
call ebx
test eax, eax
je 0x405aec
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x10], esi
je 0x405b3d
push dword [esp + 0x10]
call ebx
mov dword [esp + 0x10], esi
push dword [esp + 0x20]
mov dword [esp + 0x18], esi
call fcn.00405a14
mov edi, eax
cmp dword [esp + 0x10], esi
je 0x405b58
push dword [esp + 0x10]
call ebx
mov eax, edi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004121cb
mov esp, ebp
pop ebp
ret 4
cmp dword [esp + 0x10], esi
je 0x405b81
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
jmp 0x405b5a
Function at 0x4087ad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x45b6d6
call fcn.00454ee6
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov edi, edx
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x408805
call fcn.00407570
mov esi, eax
jmp 0x40890f
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x40881e
call fcn.00407570
jmp 0x408901
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x408814
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x40885b
mov esi, 0x8007000e
jmp 0x408903
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, esi
ja 0x408870
cmp eax, 0xffffffff
jbe 0x40887a
push 0x80070216
call fcn.0040631e
cmp eax, 0x400
jbe 0x4088a7
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.004079e6
jmp 0x4088b3
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], esi
je 0x408851
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x408814
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x42c]
call fcn.0040864d
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x408928
lea eax, [ebp - 0x418]
call fcn.00407567
mov eax, esi
call fcn.00454f42
ret 0xc