joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409428
Capabilities:
Set file attributes

Disassembly:
mov edx, 0x40c7a2
mov eax, 0x41b23c
call fcn.0040695c
mov dword [0x41b224], eax
test eax, eax
jne 0x409491
push 0
push 0x41b23c
call sub.KERNEL32.DLL_SetFileAttributesA
mov edx, 0x40c7a2
mov eax, 0x41b23c
call fcn.0040695c
mov dword [0x41b224], eax
test eax, eax
jne 0x409491
mov eax, 0x40ccb8
mov edx, 9
call fcn.0040666c
push 0x41b23c
mov eax, 0x6e
call fcn.00402874
push eax
call fcn.00402e2c
add esp, 8
mov eax, 1
ret
xor eax, eax
ret

Function at 0x409620
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
cmp dword [0x40eb00], 0
jg 0x40963e
dec dword [0x40eb00]
xor eax, eax
mov dword [0x41b138], eax
or eax, 0xffffffff
pop esi
pop ebx
ret
cmp dword [0x41b138], 0
jg 0x409693
push dword [0x41b154]
mov ecx, 0x2000
mov edx, 1
mov eax, dword [0x41b130]
call fcn.00406a08
mov dword [0x41b138], eax
test eax, eax
jne 0x409678
xor edx, edx
or eax, 0xffffffff
mov dword [0x41b138], edx
pop esi
pop ebx
ret
add dword [0x41b15c], 0x2000
mov edx, dword [0x41b130]
mov dword [0x41b134], edx
call fcn.004094e4
mov ecx, dword [0x40f124]
test byte [ecx + 0x14], 1
je 0x4096ca
mov esi, dword [0x41b138]
mov ebx, dword [0x41b134]
jmp 0x4096c1
call fcn.0040a890
xor byte [ebx], al
mov al, byte [ebx]
and eax, 0xff
call fcn.0040a8b4
inc ebx
mov edx, esi
add esi, 0xffffffff
test edx, edx
jne 0x4096ad
dec dword [0x41b138]
mov ecx, dword [0x41b134]
inc dword [0x41b134]
xor eax, eax
mov al, byte [ecx]
pop esi
pop ebx
ret

Function at 0x409794
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x4097a3
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x40a7d6
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov ebx, eax
mov eax, edx
call fcn.0040a920
mov eax, esp
mov ecx, 0xc
mov edx, ebx
call fcn.00406a8c
xor ebx, ebx
call fcn.0040a890
xor byte [esp + ebx], al
mov al, byte [esp + ebx]
and eax, 0xff
call fcn.0040a8b4
inc ebx
cmp ebx, 0xc
jl 0x40a7f4
mov edx, dword [0x40f124]
xor eax, eax
mov al, byte [esp + 0xb]
test byte [edx + 0x14], 2
je 0x40a82d
movzx ecx, word [0x41b182]
sar ecx, 8
jmp 0x40a839
mov ecx, dword [0x41b188]
shr ecx, 0x18
movzx ecx, cx
movzx eax, ax
cmp ecx, eax
je 0x40a845
or eax, 0xffffffff
jmp 0x40a888
mov edx, dword [0x41b138]
cmp edx, dword [0x40eb00]
jle 0x40a85b
mov ebx, dword [0x40eb00]
jmp 0x40a861
mov ebx, dword [0x41b138]
mov esi, dword [0x41b134]
jmp 0x40a87d
call fcn.0040a890
xor byte [esi], al
mov al, byte [esi]
and eax, 0xff
call fcn.0040a8b4
inc esi
mov edx, ebx
add ebx, 0xffffffff
test edx, edx
jne 0x40a869
xor eax, eax
add esp, 0xc
pop esi
pop ebx
ret
Function at 0x40a8b4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, dword [0x41b348]
push ebx
mov ecx, edx
mov ebx, dword [0x41b128]
xor ecx, eax
and ecx, 0xff
shr edx, 8
mov ecx, dword [ebx + ecx*4]
xor ecx, edx
mov dword [0x41b348], ecx
and ecx, 0xff
add dword [0x41b34c], ecx
imul edx, dword [0x41b34c], 0x8088405
inc edx
mov dword [0x41b34c], edx
shr edx, 0x18
mov ecx, dword [0x41b350]
xor edx, ecx
mov ebx, dword [0x41b128]
and edx, 0xff
shr ecx, 8
mov edx, dword [ebx + edx*4]
xor edx, ecx
mov dword [0x41b350], edx
pop ebx
ret

Function at 0x40aafc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
test esi, esi
jne 0x40ab10
xor eax, eax
jmp 0x40ac08
call fcn.0040aaf4
xor ebx, 0xffffffff
cmp edi, 8
jb 0x40abe5
xor edx, edx
sub edi, 8
mov dl, byte [esi]
inc esi
xor edx, ebx
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
cmp edi, 8
mov ebx, ecx
jae 0x40ab21
test edi, edi
je 0x40ac03
xor edx, edx
mov dl, byte [esi]
inc esi
xor edx, ebx
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
dec edi
mov ebx, ecx
jne 0x40abe9
mov eax, ebx
xor eax, 0xffffffff
pop edi
pop esi
pop ebx
ret
Function at 0x401070
Capabilities:
Create process on windows
Delete file

Disassembly:
push 0
call fcn.004019f0
call 0x401070
call fcn.004010f4
call fcn.00401478
push 0
call sub.kernel32.dll_ExitProcess
lea ecx, [ecx]
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
push 1
push 5
call fcn.00401774
test eax, eax
je 0x4010ee
mov dword [ebp - 4], eax
xor esi, esi
jmp 0x4010a5
mov ecx, dword [0x403354]
inc ecx
push ecx
push 5
call fcn.00401774
or eax, eax
je 0x4010a3
cmp eax, dword [ebp - 4]
jne 0x4010a5
jmp 0x4010ee
mov esi, eax
lea eax, [esi + 9]
push dword [esi + 1]
push eax
push str.c:_regpatch.reg
call fcn.00401994
test eax, eax
je 0x4010e2
mov edi, 0x403150
mov byte [edi], 0
push str.regedit.exe__s
push edi
call sub.kernel32.dll_lstrcatA
push str.c:_regpatch.reg
push edi
call sub.kernel32.dll_lstrcatA
push 0
push edi
call sub.kernel32.dll_WinExec
push str.c:_regpatch.reg
call sub.kernel32.dll_DeleteFileA
jmp 0x40108b
popal
leave
ret
Function at 0x4013e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ecx
push edx
push esi
push edi
push dword [ebp + 8]
call fcn.00401960
cmp eax, 0xffffffff
je 0x401469
mov dword [ebp - 4], eax
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x401463
mov dword [ebp - 0xc], eax
push 4
push 0x1000
push dword [ebp - 4]
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
push dword [ebp - 0xc]
call sub.kernel32.dll_ReadFile
add esi, dword [esi + 0x3c]
mov eax, dword [esi + 0x34]
mov ebx, dword [esi + 0x50]
push eax
push ebx
push dword [ebp - 0xc]
call sub.kernel32.dll_CloseHandle
push 0x4000
push dword [ebp - 4]
push esi
call sub.kernel32.dll_VirtualFree
pop ebx
pop eax
jmp 0x40146d
xor eax, eax
xor ebx, ebx
jmp 0x40146d
xor eax, eax
xor ebx, ebx
pop edi
pop esi
pop edx
pop ecx
leave
ret 4
Function at 0x4017a8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov dword [ebp - 4], 0
push 0xa
push dword [ebp + 8]
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x4017c8
jmp 0x4017e8
push eax
push eax
push 0
call sub.kernel32.dll_SizeofResource
mov dword [0x403350], eax
pop eax
push eax
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x4017e5
jmp 0x4017e8
mov dword [ebp - 4], eax
popal
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x4017f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
pushal
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x401870
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 2
push 0
push eax
call sub.kernel32.dll_CreateFileMappingA
or eax, eax
je 0x401868
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 4
push eax
call sub.kernel32.dll_MapViewOfFile
or eax, eax
je 0x401860
mov dword [ebp - 0xc], eax
push 0
push dword [ebp - 4]
call sub.kernel32.dll_GetFileSize
push dword [ebp - 0xc]
push eax
call section..text
mov dword [ebp - 0x10], eax
push dword [ebp - 0xc]
call sub.kernel32.dll_UnmapViewOfFile
push dword [ebp - 8]
call sub.kernel32.dll_CloseHandle
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
popal
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x401994
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x4019bf
xor eax, eax
leave
ret 0xc
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_FlushFileBuffers
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
leave
ret 0xc

Function at 0x4019f0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
pushal
cmp dword [ebp + 8], 0
jne 0x401a30
push 0
call sub.kernel32.dll_GetModuleHandleA
lea esi, [ebp - 0x200]
push 0x200
push esi
push eax
call sub.kernel32.dll_GetModuleFileNameA
push esi
call sub.kernel32.dll_lstrlenA
push esi
add esi, eax
jmp 0x401a25
dec esi
cmp byte [esi], 0x5c
jne 0x401a24
mov byte [esi], 0
pop esi
jmp 0x401a33
mov esi, dword [ebp + 8]
push esi
call sub.kernel32.dll_SetCurrentDirectoryA
popal
leave
ret 4
Function at 0x401340
Capabilities:
Encode data using xor

Disassembly:
push 0x401694
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
inc eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax - 0x22c7e99e], dl
push esp
xor byte [edx - 0x4a], al
pushfd
pushal
test byte [edx], cl
sbb byte [esp + eax*2], bl
add byte [eax], al
add byte [eax], al
add byte [ecx], al
add byte [eax], al
add byte [edi + 0x6e], ch
sub dword [0x7551450a], ecx
imul esp, dword [ebx + 0x6b], 0x736552
or dl, byte [eax + 0x75]
bound ebp, qword [ecx + ebp*2 + 0x63]
add byte [eax], al
add byte [eax], al
dec esp
xor dword [eax], eax
add al, 0x83
sar dword [ebp - 0x65], cl
fstp qword [edi]
mov edi, 0x581bad4c
js 0x40136d
mov byte [0x23f1a568], al
adc byte [esi], dh
daa
mov dword [0x7bb04753], eax
adc eax, dword [ebx + 0x3adbb226]
cmp cl, byte [edi - 0x53]
xor ebx, dword [ecx - 0x48ee309a]
or al, 0
stosb byte es:[edi], al
add byte [eax - 0x2d], ah
xchg ebx, eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
sbb eax, dword [edx]
add byte [eax], al
mov byte [ecx], al
add byte [eax], al
add byte [esi], al
add byte [edi + 0x69], dl
outsb dx, byte [esi]
outsd dx, dword fs:[esi]
ja 0x4013fb
or eax, 0x119010a
add byte [edx], al
and al, byte [ecx]
and eax, dword [esi + 1]
add byte [eax], al
insb byte es:[edi], dx
je 0x40140d
add byte [esi], bh
add dword [eax], eax
add byte [eax], al
add byte [ecx], al
add byte [ecx], al
add byte [eax], dl
adc byte [eax], dl
add byte [ecx], al
add byte [eax + eax], al
sub byte [ecx], al
add byte [eax], al
push ss
add byte [eax], al
add byte [eax], ch
add byte [eax], al
add byte [eax], dl
add byte [eax], al
add byte [eax], ah
add byte [eax], al
add byte [ecx], al
add byte [eax + eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
fisubr word [eax]
add byte [eax], al
add bh, bh
add byte [eax], al
invalid
Function at 0x493020
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x32000]
push edi
jmp 0x49303a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x493041
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x493030
mov eax, 1
add ebx, ebx
jne 0x493053
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x493064
jne 0x493083
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x493083
dec eax
add ebx, ebx
jne 0x493070
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x493048
add ebx, ebx
jne 0x49307f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4930d5
xor ecx, ecx
sub eax, 3
jb 0x49309b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x49310a
sar eax, 1
mov ebp, eax
jmp 0x4930a6
add ebx, ebx
jne 0x4930a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x493074
inc ecx
add ebx, ebx
jne 0x4930b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x493074
add ebx, ebx
jne 0x4930c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4930b6
jne 0x4930d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4930b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4930f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4930e6
jmp 0x493036
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4930f4
add edi, ecx
jmp 0x493036
pop esi
mov edi, esi
mov ecx, 0xe64
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x493112
cmp byte [edi], 0x16
jne 0x493112
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x493117
lea edi, [esi + 0x90000]
mov eax, dword [edi]
or eax, eax
je 0x493186
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x96de4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x96ec0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x493144
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x96ec4]
or eax, eax
je 0x493180
mov dword [ebx], eax
add ebx, 4
jmp 0x493161
call dword [esi + 0x96ed4]
mov ebp, dword [esi + 0x96ec8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4931ba
sub esp, 0xffffff80
jmp 0x403667
Function at 0x401340
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 0x401359
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401394
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401390
lea ebx, [ebx]
cmp esi, eax
jae 0x401394
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401380
cmp esi, eax
jb 0x40139a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4014d0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x4014e6
push 0x80004005
call fcn.00401190
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x401510
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x401528
push 0x80004005
call fcn.00401190
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x401535
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x401900
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x41be98]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x40196e
test ecx, ecx
je 0x401960
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x40197c
test ecx, ecx
je 0x401a21
push ecx
jmp 0x401a1b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x4019ee
jmp 0x4019b0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.00401900
mov edi, eax
test edi, edi
jne 0x401a3d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x4019b0
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401a05
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401a21
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040e46c
add esp, 0x21c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401a4c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x401a23
Function at 0x401a90
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x6d4
mov eax, dword [0x41be98]
xor eax, esp
mov dword [esp + 0x6d0], eax
push esi
push edi
mov esi, ecx
call dword [0x41be78]
mov edi, dword [0x41c00c]
push 0x104
lea eax, [esp + 0x4d4]
push eax
push edi
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x401af0
call fcn.00401430
pop edi
pop esi
mov ecx, dword [esp + 0x6d0]
xor ecx, esp
call fcn.0040e46c
add esp, 0x6d4
ret
cmp eax, 0x104
jne 0x401b1c
lea ecx, [esp + 8]
call fcn.00401680
pop edi
mov eax, 0x8007007a
pop esi
mov ecx, dword [esp + 0x6d0]
xor ecx, esp
call fcn.0040e46c
add esp, 0x6d4
ret
test edi, edi
je 0x401b35
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp edi, eax
je 0x401b35
lea edx, [esp + 0x4d0]
jmp 0x401b8d
lea ecx, [esp + 0x4d0]
push ecx
lea edx, [esp + 0x2ca]
push 0x105
mov edi, 0x22
push edx
mov word [esp + 0x2d0], di
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
push eax
call fcn.004011b0
add esp, 0x10
lea eax, [esp + 0x2c4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov word [esp + eax*2 + 0x2c4], di
mov word [esp + eax*2 + 0x2c6], 0
lea edx, [esp + 0x2c4]
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
push edx
push str.Module
push esi
call eax
mov edi, eax
test edi, edi
jl 0x401c60
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
lea edx, [esp + 0x4d0]
push edx
push str.Module_Raw
push esi
call eax
mov edi, eax
test edi, edi
jl 0x401c60
lea ecx, [esp + 0xc]
push ecx
push 0x41beb4
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov edi, eax
test edi, edi
jl 0x401c60
mov eax, dword [esp + 0xc]
mov edx, dword [esi]
mov ecx, dword [edx + 0xc]
push eax
push str.MODULEGUID
push esi
call ecx
mov edx, dword [esp + 0xc]
push edx
mov edi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test edi, edi
jl 0x401c60
push 0x2000
push 0x2b4
lea eax, [esp + 0x18]
push eax
push 0
lea ecx, [esp + 0x4e0]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
jne 0x401c38
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
push str.InprocServer32
push str.MODULETYPE
push esi
call eax
jmp 0x401c4a
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc]
push str.LocalServer32
push str.MODULETYPE
push esi
call edx
mov edi, eax
test edi, edi
jl 0x401c60
mov ecx, dword [0x41beb0]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push esi
call edx
mov edi, eax
lea ecx, [esp + 8]
call fcn.00401680
mov ecx, dword [esp + 0x6d8]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0040e46c
add esp, 0x6d4
ret
Function at 0x4063e0
Capabilities:
Extract resource via kernel32 functions
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x41bf78]
push ebx
push esi
push edi
push 5
push 0x65
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ecx, dword [0x41bf78]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esi]
push 0
push edx
push 0
push eax
mov eax, dword [0x41bf78]
push eax
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
push 0x80
push 0x1c2
push 0x258
push 0xc8
push 0x12c
mov esi, eax
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edi, dword [sym.imp.USER32.dll_IsWindow]
mov ebx, dword [sym.imp.USER32.dll_PostQuitMessage]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
nop
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4064cb
cmp dword [ebp - 0x18], 0x12
je 0x4064dd
lea edx, [ebp - 0x1c]
push edx
push esi
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x4064bf
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
call edi
test eax, eax
jne 0x406480
push eax
call ebx
jmp 0x406480
push esi
call edi
test eax, eax
jne 0x4064d5
push eax
call ebx
call dword [sym.imp.USER32.dll_WaitMessage]
jmp 0x406480
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4064f0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 1
push edi
mov edi, ecx
jne 0x406550
push esi
push str.539EF437_26DA_422B_A844_BA6712C9AA56
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x40651f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40653a
mov eax, dword [edi + 4]
push 1
push eax
call dword [sym.imp.USER32.dll_KillTimer]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test esi, esi
je 0x406545
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 1
pop edi
pop ebp
ret 4
mov eax, 1
pop edi
pop ebp
ret 4