joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a81b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
or dword [ebp - 0x14], 0xffffffff
and dword [ebp - 0x40], 0
mov dword [ebp - 8], 0x4000
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0
push 0
push 2
call fcn.0044b981
test eax, eax
je 0x44a856
jmp 0x44a9f7
push dword [ebp - 8]
push 0x40
call dword [0x40804c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x44a86f
jmp 0x44a9f7
mov dword [ebp - 0x3c], 0x74654e57
mov dword [ebp - 0x38], 0x6d756e45
mov dword [ebp - 0x34], 0x6f736552
mov dword [ebp - 0x30], 0x65637275
mov dword [ebp - 0x2c], 0x41
lea eax, [ebp - 0x3c]
push eax
push 0x408d0c
call dword [0x4080dc]
push eax
call dword [0x4080d0]
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
push 0
push dword [ebp - 0xc]
call fcn.0044b951
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x44a9ce
and dword [ebp - 0x44], 0
jmp 0x44a8e6
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x14]
jae 0x44a9cc
mov eax, dword [ebp - 0x44]
shl eax, 5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax + 0xc]
and eax, 1
je 0x44a9a6
or dword [ebp - 0x154], 0xffffffff
mov eax, dword [ebp - 0x44]
shl eax, 5
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 0x14]
push 0x408d14
lea eax, [ebp - 0x150]
push eax
call dword [fcn.00408218]
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x150]
push eax
call dword [fcn.004080a0]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0xffffffff
je 0x44a9a6
push dword [ebp - 0x154]
call dword [fcn.004080e8]
lea eax, [ebp - 0x150]
push eax
call dword [0x4080f0]
mov eax, dword [ebp - 0x44]
shl eax, 5
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 0x14]
push 0x408968
lea eax, [ebp - 0x150]
push eax
call dword [fcn.00408218]
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
call fcn.00449118
mov eax, dword [ebp - 0x44]
shl eax, 5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax + 0xc]
and eax, 2
je 0x44a9c7
mov eax, dword [ebp - 0x44]
shl eax, 5
add eax, dword [ebp - 0xc]
push eax
call fcn.0044a81b
jmp 0x44a8df
jmp 0x44a9d9
cmp dword [ebp - 0x40], 0x103
je 0x44a9d9
jmp 0x44a9e6
cmp dword [ebp - 0x40], 0x103
jne 0x44a8ab
push dword [ebp - 0xc]
call dword [0x408050]
push dword [ebp - 4]
call fcn.0044b97b
leave
ret 4
Function at 0x406890
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x81153b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x404b6c
call fcn.004074f1
push 4
mov dword [esp + 0x18], 0
call fcn.004084e8
mov edi, eax
add esp, 4
test edi, edi
je 0x406904
push ebx
call fcn.004073c9
mov dword [edi], eax
call fcn.00407188
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.004074b2
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4068f8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.004074da
pop ebx
jmp 0x406906
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408f61
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x8157a0]
jne 0x408f6b
repz ret
jmp fcn.0040da6c
Function at 0x4124b2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x8157a0]
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.0040c050
and dword [ebp - 0x14], 0
cmp dword [0x81aa94], 0
mov dword [ebp - 0x18], eax
jne 0x412565
push 0x403a84
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41260d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403a78
push ebx
call edi
test eax, eax
je 0x41260d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403a68
push ebx
mov dword [0x81aa94], eax
call edi
push eax
call esi
push 0x403a54
push ebx
mov dword [0x81aa98], eax
call edi
push eax
call esi
push 0x403a38
push ebx
mov dword [0x81aa9c], eax
call edi
push eax
call esi
mov dword [0x81aaa4], eax
test eax, eax
je 0x412565
push 0x403a20
push ebx
call edi
push eax
call esi
mov dword [0x81aaa0], eax
mov eax, dword [0x81aaa0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4125be
cmp dword [0x81aaa4], ecx
je 0x4125be
push eax
call esi
push dword [0x81aaa4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4125be
test ebx, ebx
je 0x4125be
call edi
test eax, eax
je 0x4125b5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4125b5
test byte [ebp - 8], 1
jne 0x4125be
or dword [ebp + 0x10], 0x200000
jmp 0x4125f1
mov eax, dword [0x81aa98]
cmp eax, dword [ebp - 0x18]
je 0x4125f1
push eax
call esi
test eax, eax
je 0x4125f1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4125f1
mov eax, dword [0x81aa9c]
cmp eax, dword [ebp - 0x18]
je 0x4125f1
push eax
call esi
test eax, eax
je 0x4125f1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x81aa94]
call esi
test eax, eax
je 0x41260d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41260f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408f61
leave
ret
Function at 0x80f190
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0xc0c
cmp dword [0xb9e82c], 0x37
jne 0x80f229
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
push 0
lea eax, [esp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0x4042a4
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov ecx, dword [0xb9f820]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x81f87c]
mov byte [ecx + esi], al
add esp, 0xc0c
ret
Function at 0x80f4a0
Capabilities:
Accept command line arguments
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0xb9e82c]
sub esp, 0x684
push ebx
push ebp
push esi
mov esi, dword [0x81f87c]
push edi
shr eax, 3
xor edi, edi
cmp eax, edi
jbe 0x80f69f
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
jmp 0x80f4d6
mov esi, dword [esp + 0x20]
xor edi, edi
cmp dword [0xb9e82c], 0x1c
jne 0x80f4ed
lea eax, [esp + 0x38]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [0x816708]
mov ebx, dword [0x816710]
mov ebp, dword [0x816714]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x81670c]
mov dword [esp + 0x18], eax
mov esi, 0xc6ef3720
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 0x20
jmp 0x80f536
mov eax, dword [esp + 0x18]
xor edi, edi
mov edx, eax
shr edx, 5
add edx, ebp
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x1c], edx
add ecx, ebx
lea edx, [esi + eax]
xor ecx, edx
mov dword [esp + 0x10], ecx
mov dword [0xb9e79c], edi
mov eax, dword [esp + 0x1c]
add dword [0xb9e79c], eax
mov eax, dword [0xb9e79c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x34]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
shl edx, 4
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x30]
add dword [esp + 0x10], eax
cmp dword [0xb9e82c], 0x1be
mov eax, dword [esp + 0x14]
lea edi, [esi + eax]
jne 0x80f5cd
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, dword [esp + 0x14]
shr eax, 5
add eax, dword [esp + 0x2c]
cmp dword [0xb9e82c], 0x979
mov dword [0xb9e7a0], 0xff6b3619
mov dword [0xb9e7a4], 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x80f617
push 0
lea ecx, [esp + 0x294]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
lea edx, [esp + 0x40]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
xor dword [esp + 0x10], edi
mov eax, dword [esp + 0x1c]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x18], eax
mov eax, dword [0xb9e82c]
cmp eax, 0x93
je 0x80f63d
add esi, 0x61c88647
dec dword [esp + 0x28]
jne 0x80f530
cmp eax, 0x8d4
jne 0x80f654
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esi], eax
mov dword [esi + 4], ecx
cmp dword [0xb9e82c], 0x17
jne 0x80f68e
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea edx, [esp + 0x40]
push edx
push 0x404250
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add esi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x20], esi
jne 0x80f4d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x684
ret
Function at 0x403280
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451f19
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x46c2f0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x260], 0x46ec38
mov dword [0x46ec74], 0xf
mov dword [0x46ec70], 0
mov byte [0x46ec60], 0
mov dword [ebp - 4], 0
push 0x46ec3c
mov dword [0x46ec54], 0x465dbc
mov dword [0x46ec58], 0x465dc4
mov dword [0x46ec5c], 0x465dcc
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x208
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.004386a0
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x224]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403340
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x403390
lea edi, [ecx + ecx]
mov eax, edi
call fcn.00435bc0
mov esi, esp
mov dword [ebp - 0x10], esp
test esi, esi
je 0x403390
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x224]
mov byte [esi], 0
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x403392
xor esi, esi
mov dword [ebp - 0x228], 0xf
mov dword [ebp - 0x22c], 0
mov byte [ebp - 0x23c], 0
cmp byte [esi], 0
jne 0x4033b6
xor ecx, ecx
jmp 0x4033c9
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4033c0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x23c]
call fcn.004021d0
push 0xb
push str.chatpptlog
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 2
call fcn.004024f0
cmp dword [ebp - 0x228], 0x10
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push eax
call fcn.0044172d
mov ecx, str.chatpptloguninstall.log
lea edx, [ebp - 0x23c]
test ebx, ebx
mov eax, str.chatpptlogsetup.log
cmovne eax, ecx
lea ecx, [ebp - 0x254]
push eax
call fcn.00403690
add esp, 8
mov esi, 0x46ec60
mov ecx, esi
push eax
call fcn.004035e0
lea ecx, [ebp - 0x254]
call fcn.004020d0
cmp dword [0x46ec74], 0x10
push 0x465e14
cmovae esi, dword [0x46ec60]
push esi
call fcn.0043e314
add esp, 8
mov dword [0x46ec38], eax
test eax, eax
jne 0x403482
push 0x46a7f4
lea eax, [ebp - 0x258]
mov dword [ebp - 0x258], 0x465e18
push eax
call fcn.004391f2
lea ecx, [ebp - 0x23c]
call fcn.004020d0
mov eax, 0x46ec38
lea esp, [ebp - 0x274]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0043503f
mov esp, ebp
pop ebp
ret 4
Function at 0x4034e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451f58
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x46c2f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [esi], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jne 0x403535
xor ecx, ecx
jmp 0x403549
mov ecx, esi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403540
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004021d0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x1c]
cmovae eax, esi
cmp byte [eax + edi - 1], 0xa
je 0x403588
push 0xa
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402400
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x2c]
push dword [ebx]
lea eax, [edi + 1]
cmp edx, 0x10
push eax
lea ecx, [ebp - 0x2c]
cmovae ecx, esi
push 1
push ecx
call fcn.004416d5
push dword [ebx]
call fcn.00441444
add esp, 0x14
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x2c]
call fcn.004020d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043503f
mov esp, ebp
pop ebp
ret 4
Function at 0x403bf0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452010
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x46c2f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
cmp word [edx], ax
je 0x403c4f
mov eax, edx
lea esi, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403c40
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x5c]
call fcn.00401430
push 1
sub esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.00403f20
mov esi, eax
cmp esi, 0xffffffff
jne 0x403c7b
xor esi, esi
jmp 0x403d1b
push esi
push 0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401c90
push 0xffffffffffffffff
lea eax, [esi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401c90
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.00403980
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
neg eax
sbb esi, esi
mov eax, dword [ebp - 0x18]
inc esi
cmp eax, 8
jb 0x403cde
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004013d0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
cmp eax, 8
jb 0x403d07
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.004013d0
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov ecx, dword [ebp - 0x48]
cmp ecx, 8
jb 0x403d30
inc ecx
push ecx
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x5c]
call fcn.004013d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043503f
mov esp, ebp
pop ebp
ret 4
Function at 0x403d50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45204b
mov eax, dword fs:[0]
push eax
mov eax, 0x1028
call fcn.00435f70
mov eax, dword [0x46c2f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1010]
mov edi, dword [ebp + 0xc]
push 0x1000
push 0
push eax
mov dword [ebp - 0x102c], 0x800
call fcn.004386a0
xor eax, eax
mov dword [ebp - 0x1014], 7
mov dword [ebp - 0x1018], 0
mov word [ebp - 0x1028], ax
add esp, 8
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1028]
push eax
push esi
lea eax, [ebp - 0x1030]
push eax
call fcn.004037b0
test eax, eax
je 0x403e56
cmp dword [ebp - 0x1014], 8
lea ecx, [ebp - 0x102c]
push ecx
lea ecx, [ebp - 0x1010]
push ecx
lea ecx, [ebp - 0x1034]
push ecx
lea eax, [ebp - 0x1028]
cmovae eax, dword [ebp - 0x1028]
push 0
push eax
push dword [ebp - 0x1030]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403e56
cmp word [ebp - 0x1010], ax
jne 0x403e28
xor ecx, ecx
jmp 0x403e40
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403e31
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x1010]
mov ecx, edi
push eax
call fcn.00401430
mov esi, 1
jmp 0x403e58
xor esi, esi
mov ecx, dword [ebp - 0x1014]
cmp ecx, 8
jb 0x403e76
inc ecx
push ecx
push dword [ebp - 0x1028]
lea ecx, [ebp - 0x1028]
call fcn.004013d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043503f
mov esp, ebp
pop ebp
ret 8

Function at 0x404130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404149
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 0x404186
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x404182
nop word [eax + eax]
cmp esi, edx
jae 0x404186
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x404170
cmp esi, edx
jb 0x40418d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404220
Capabilities:
Create process on windows
Self delete
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x46c2f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4661cc]
movq xmm0, qword [0x4661c4]
mov dword [ebp - 0xc], eax
movzx eax, word [0x4661d0]
mov word [ebp - 8], ax
mov eax, dword [0x4661ec]
movq qword [ebp - 0x14], xmm0
movups xmm0, xmmword [str.__echo_off_n_del___1__n_del___0]
push esi
mov dword [ebp - 0x1c], eax
movzx eax, word [0x4661f0]
push edi
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x14]
movups xmmword [ebp - 0x34], xmm0
push 0x466224
movq xmm0, qword [0x4661e4]
push eax
movq qword [ebp - 0x24], xmm0
call fcn.0043e314
mov esi, eax
add esp, 8
test esi, esi
je 0x4042aa
lea eax, [ebp - 0x34]
push eax
push esi
call fcn.00403fa0
push esi
call fcn.0043b41d
add esp, 0xc
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
call fcn.004438ad
push 0
push dword [eax]
push 5
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
call fcn.004438ad
push dword [eax]
lea eax, [ebp - 0x138]
push str.__s_
push eax
call fcn.00401f30
lea ecx, [ebp - 0x138]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404302
sub ecx, edx
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jg 0x404346
lea eax, [edi + edi]
call fcn.00435bc0
mov esi, esp
test esi, esi
je 0x404346
push edi
push esi
xor eax, eax
push 0xffffffffffffffff
mov word [esi], ax
lea eax, [ebp - 0x138]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x404348
xor eax, eax
push 0
push 0
push eax
push str.DeleteBat.bat
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x404370
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x46c2f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, 8
mov edi, ecx
call fcn.00435f70
mov ebx, esp
test ebx, ebx
je 0x4043ba
push 0
push 0
push 6
push ebx
push 0xffffffffffffffff
push 0x46675c
push 0
push 3
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
neg esi
sbb esi, esi
and esi, ebx
jmp 0x4043bc
xor esi, esi
test edi, edi
je 0x404412
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4043c5
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 8], eax
cmp eax, 0x3fffffff
jg 0x404412
add eax, eax
call fcn.00435bc0
mov ebx, esp
test ebx, ebx
je 0x404412
mov ecx, dword [ebp - 8]
push 0
push 0
mov byte [ebx], 0
lea eax, [ecx + ecx]
push eax
push ebx
push 0xffffffffffffffff
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, ebx
jmp 0x404414
xor eax, eax
push esi
push eax
push str.RunShellExecute_path
push 0
call fcn.004030f0
add esp, 0x10
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4044af
test edi, edi
je 0x404487
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404440
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x404487
add ebx, ebx
mov eax, ebx
call fcn.00435bc0
mov esi, esp
test esi, esi
je 0x404487
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x404489
xor eax, eax
push eax
push 0x466278
push 0
call fcn.004030f0
add esp, 0xc
xor eax, eax
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043503f
mov esp, ebp
pop ebp
ret
push 0x38
lea eax, [ebp - 0x40]
mov dword [ebp - 0x44], 0x3c
push 0
push eax
call fcn.004386a0
add esp, 0xc
mov dword [ebp - 0x40], 0x440
lea eax, [ebp - 0x44]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], str.runas
push eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], 0x46675c
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x404573
test edi, edi
je 0x40452b
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404511
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x40452f
xor esi, esi
jmp 0x404546
add esi, esi
mov eax, esi
call fcn.00435bc0
mov ecx, esp
mov edx, edi
push 3
push esi
call fcn.004030b0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.path
push 2
call fcn.004030f0
add esp, 0x10
xor eax, eax
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043503f
mov esp, ebp
pop ebp
ret
mov eax, 1
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043503f
mov esp, ebp
pop ebp
ret