joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406ad4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
cmp dword [0x40b0cc], 0
je 0x406af4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
jmp 0x406b33
push esi
lea ecx, [ebp - 0x218]
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.004027fd
mov eax, dword [ebp - 4]
push dword [ebp - 0x214]
add eax, eax
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
lea ecx, [ebp - 0x218]
call fcn.004067b4
lea ecx, [ebp - 0x218]
mov esi, eax
call fcn.00402942
mov eax, esi
pop esi
leave
ret 8

Function at 0x406cb0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
cmp dword [0x40b0cc], 0
je 0x406cd3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
jmp 0x406d20
push esi
lea ecx, [ebp - 0x428]
push dword [ebp + 8]
call fcn.004016fd
push dword [ebp + 0xc]
lea ecx, [ebp - 0x214]
call fcn.004016fd
push dword [ebp + 0x10]
push dword [ebp - 0x210]
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.004016db
lea ecx, [ebp - 0x428]
call fcn.004016db
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x406e34
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
cmp dword [0x40b0cc], 0
je 0x406e51
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
jmp 0x406e7c
push esi
lea ecx, [ebp - 0x214]
push dword [ebp + 8]
call fcn.004016fd
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.004016db
mov eax, esi
pop esi
leave
ret 4
Function at 0x1003fbe
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 2
xor ebx, ebx
push ebx
push 0x1001a48
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1004008
push 0x1001a78
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x1003ff9
cmp eax, 2
jne 0x1003ffb
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x100400a
xor al, al
pop ebx
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
or edx, 0xffffffff
cmp ebx, 4
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], ecx
jbe 0x10040ea
push edi
lea edi, [ebx - 5]
shr edi, 2
inc edi
movzx eax, byte [esi]
movzx ecx, dl
xor eax, ecx
shr edx, 8
xor edx, dword [eax*4 + 0x1001ab0]
inc esi
movzx eax, byte [esi]
movzx ecx, dl
xor eax, ecx
shr edx, 8
xor edx, dword [eax*4 + 0x1001ab0]
inc esi
movzx eax, byte [esi]
movzx ecx, dl
xor eax, ecx
shr edx, 8
xor edx, dword [eax*4 + 0x1001ab0]
inc esi
movzx eax, byte [esi]
movzx ecx, dl
xor eax, ecx
shr edx, 8
xor edx, dword [eax*4 + 0x1001ab0]
inc esi
sub ebx, 4
dec edi
jne 0x1004097
pop edi
test ebx, ebx
jbe 0x1004104
movzx eax, byte [esi]
movzx ecx, dl
xor eax, ecx
shr edx, 8
xor edx, dword [eax*4 + 0x1001ab0]
inc esi
dec ebx
jne 0x10040ee
mov eax, dword [ebp - 4]
pop esi
mov dword [eax], edx
pop ebx
leave
ret 8

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

Disassembly:
pushal
nop
nop
mov eax, section..rdata
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x7c451a32
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1bef36a4
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401bb0
Capabilities:
Delete file

Disassembly:
call fcn.00404229
test eax, eax
jne 0x401bc3
push 0x80004005
call fcn.00404110
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
push esi
call eax
mov ecx, dword [esp + 8]
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x401bf3
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop esi
test edx, edx
jg 0x401c14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
ret

Function at 0x401c20
Capabilities:
Delete directory

Disassembly:
call fcn.00404229
test eax, eax
jne 0x401c33
push 0x80004005
call fcn.00404110
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
push esi
call eax
mov ecx, dword [esp + 8]
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x401c63
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop esi
test edx, edx
jg 0x401c84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
ret

Function at 0x401c90
Capabilities:
Delete registry key

Disassembly:
push ecx
call fcn.00404229
test eax, eax
jne 0x401ca4
push 0x80004005
call fcn.00404110
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
push esi
call eax
mov edx, dword [esp + 0xc]
lea ecx, [esp + 4]
push ecx
push edx
mov esi, eax
push reloc.OLEAUT32.dll_SysReAllocString
add esi, 0x10
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x401cdc
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop esi
test edx, edx
jg 0x401d04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401d24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ecx
ret
Function at 0x401d30
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4325f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x441618]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
call fcn.00402190
call fcn.00404229
xor ecx, ecx
xor ebp, ebp
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x401d78
push 0x80004005
call fcn.00404110
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], ebp
mov eax, dword [0x4429b0]
cmp eax, ebp
jle 0x401ed7
test ebp, ebp
jl 0x401f0f
cmp ebp, eax
jge 0x401f0f
mov ecx, dword [0x4429ac]
mov eax, dword [ecx + ebp*8]
lea ecx, [eax - 0x10]
lea esi, [edi - 0x10]
cmp ecx, esi
je 0x401e07
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x401df5
mov edx, dword [ecx]
cmp edx, dword [esi]
jne 0x401df5
push ecx
call fcn.00403e10
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x401dec
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edi, [ebx + 0x10]
mov dword [esp + 0x18], edi
jmp 0x401e07
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00403d60
mov edi, dword [esp + 0x18]
cmp ebp, dword [0x4429b0]
jge 0x401f0f
mov ecx, dword [0x4429ac]
mov eax, dword [ecx + ebp*8 + 4]
dec eax
cmp eax, 5
ja case.default.0x401e27
jmp dword [eax*4 + 0x401f14]
push ecx
mov edx, esp
mov dword [esp + 0x20], esp
lea eax, [esp + 0x1c]
push eax
push 0x44569c
push edx
call fcn.00402f80
add esp, 0xc
call fcn.00401bb0
jmp 0x401ec6
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
lea edx, [esp + 0x1c]
push edx
push 0x44569c
push ecx
call fcn.00402f80
add esp, 0xc
call fcn.004017a0
jmp 0x401ec6
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp case.default.0x401e27
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.00403e10
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.004017a0
jmp 0x401ec6
lea eax, [esp + 0x18]
push eax
mov ecx, 0x4456a0
call fcn.00403e80
jmp case.default.0x401e27
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.00403e10
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00401c90
add esp, 4
mov eax, dword [0x4429b0]
inc ebp
cmp ebp, eax
jl 0x401d99
lea eax, [edi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401efb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
call fcn.004046a5
push ds
inc eax
add byte [edi + 0x1e], cl
inc eax
add byte [eax + 0x1e], dh
inc eax
add byte [ecx + 0x1e], bh
inc eax
add byte [eax - 0x56ffbfe2], bl
push ds
inc eax
add ah, cl
int3
Function at 0x401f30
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 4]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401f94
lea edx, [esp + 0xc]
push edx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x401f89
mov ecx, dword [esp + 4]
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
push ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x1c
ret
Function at 0x401fa0
Capabilities:
Create process on windows
Self delete
Write and execute a file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x432500
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x441618]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
call fcn.00404229
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401fe1
push 0x80004005
call fcn.00404110
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], 0
mov ecx, dword [0x44569c]
push ecx
lea edx, [esp + 0x18]
push str._sdelete.bat
push edx
call fcn.00403cb0
mov eax, dword [esp + 0x20]
add esp, 0xc
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x402126
call fcn.00404229
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402056
push 0x80004005
call fcn.00404110
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push str.delete.bat
push str.yxunists.exe
lea ecx, [esp + 0x20]
push str._echo_off__r_n_del__s_r_ndel__s
push ecx
mov byte [esp + 0x3c], 1
call fcn.00403cb0
mov edi, dword [esp + 0x28]
mov eax, edi
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402090
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
sub eax, edx
sar eax, 1
push eax
push edi
push 0
push 0
call ebx
mov esi, eax
lea edx, [esi + 1]
push edx
call fcn.00404213
mov ebp, eax
mov eax, edi
add esp, 4
lea ecx, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4020d0
push 0
push 0
push esi
push ebp
sub eax, ecx
sar eax, 1
push eax
push edi
push 0
push 0
call ebx
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x24]
push eax
push esi
push ebp
push ecx
mov byte [esi + ebp], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [edi - 0x10]
mov byte [esp + 0x2c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402126
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x44569c]
push 0
push edx
push 0
push str.delete.bat
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402176
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x402710
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x432448
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x441618]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], 1
jle 0x402754
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403fc0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [esp + 0x18]
setne cl
mov esi, ecx
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0041e980
add esp, 8
test eax, eax
jl 0x4027cb
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx - 8]
jg 0x4027cb
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x18]
xor edx, edx
mov word [ecx + eax*2], dx
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4027b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret
push 0x80070057
call fcn.00404110
int3
Function at 0x402c90
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x432590
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x441618]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
call fcn.00404229
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402ccf
push 0x80004005
call fcn.00404110
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 0
call fcn.00404229
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402d01
push 0x80004005
call fcn.00404110
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov byte [esp + 0x20], 1
mov ecx, dword [0x44569c]
mov eax, dword [ecx - 0xc]
dec eax
push eax
lea edx, [esp + 0x18]
push edx
mov ecx, 0x44569c
call fcn.00402ee0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call fcn.00403e80
mov byte [esp + 0x20], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402d64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0xc]
push 0x5c
push esi
call fcn.0041ef6c
add esp, 8
test eax, eax
jne 0x402d7c
or ecx, 0xffffffff
jmp 0x402d82
sub eax, esi
sar eax, 1
mov ecx, eax
mov eax, dword [esi - 0xc]
sub eax, ecx
dec eax
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402e60
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 3
call fcn.00403e80
mov byte [esp + 0x20], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402dcb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0xc]
push esi
lea ecx, [esp + 0x14]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
push ecx
call fcn.00403cb0
mov edi, dword [esp + 0x1c]
add esp, 0xc
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x402dfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [esp + 0x20], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402e28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402e4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x403850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403869
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4038a4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4038a0
lea ebx, [ebx]
cmp esi, eax
jae 0x4038a4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403890
cmp esi, eax
jb 0x4038aa
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x404e4a
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 0x404e92
call fcn.00407c01
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x404e92
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x404ed5
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 0x404ebe
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 0x404ebe
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x404ed2
mov ecx, dword [esi + 0x4c]
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 0x40977d
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x43166c
call fcn.0041f743
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4097a2
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4097e8
lea ecx, [ebp - 0x10]
call fcn.004041a0
mov ecx, dword [esi + 0x50]
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.00404354
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00404160
mov eax, esi
call fcn.0041f81b
ret 8
Function at 0x4199ef
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 0x419a36
call fcn.00407c01
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x419a36
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x419a52
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00419567
mov esi, eax
test edi, edi
je 0x419a50
test ebx, ebx
je 0x419a50
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41dd66
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 + 0x58], ebx
test ebx, 0xffff0000
jne 0x41dd8a
cmp dword [edi + 0x54], 0
jne 0x41dd8a
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00407c01
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.0041dd27
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 0x41e708
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x441618]
jne 0x41e712
repz ret
jmp fcn.004238e2
Function at 0x42a76e
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.004232f1
and dword [ebp - 4], 0
cmp dword [0x445440], 0
mov ebx, eax
jne 0x42a81f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42a8d0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42a8d0
push eax
call fcn.0042327f
mov dword [esp], 0x436cec
push edi
mov dword [0x445440], eax
call esi
push eax
call fcn.0042327f
mov dword [esp], 0x436cd8
push edi
mov dword [0x445444], eax
call esi
push eax
call fcn.0042327f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x445448], eax
call esi
push eax
call fcn.0042327f
pop ecx
mov dword [0x445450], eax
test eax, eax
je 0x42a81f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042327f
pop ecx
mov dword [0x44544c], eax
mov eax, dword [0x44544c]
cmp eax, ebx
je 0x42a877
cmp dword [0x445450], ebx
je 0x42a877
push eax
call fcn.004232fa
push dword [0x445450]
mov esi, eax
call fcn.004232fa
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42a877
test edi, edi
je 0x42a877
call esi
test eax, eax
je 0x42a86e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42a86e
test byte [ebp - 0xc], 1
jne 0x42a877
or dword [ebp + 0x10], 0x200000
jmp 0x42a8b0
mov eax, dword [0x445444]
cmp eax, ebx
je 0x42a8b0
push eax
call fcn.004232fa
pop ecx
test eax, eax
je 0x42a8b0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42a8b0
mov eax, dword [0x445448]
cmp eax, ebx
je 0x42a8b0
push eax
call fcn.004232fa
pop ecx
test eax, eax
je 0x42a8b0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x445440]
call fcn.004232fa
pop ecx
test eax, eax
je 0x42a8d0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42a8d2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret