joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4adfc4
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ae10e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004ad47c
xor eax, eax
push ebp
push 0x4ae0f1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x4ae029
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4ae029
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x4ae0db
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4ae03c
call fcn.004047a8
jmp 0x4ae0f8
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4ae0db
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4ae0db
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403fc0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x4ae0db
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040d8dc
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x4ae128
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x5297d8]
mov dl, 1
mov eax, dword [0x4ac77c]
call fcn.0040e218
call fcn.004046fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae0f8
mov eax, dword [ebp - 4]
call fcn.004ad488
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae115
lea eax, [ebp - 0x28]
call fcn.00404dc8
ret
Function at 0x4b2bb8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4b2be6
mov eax, ebx
call fcn.004b366c
cmp dword [ebx + 0x40], 0
je 0x4b2bdf
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4b2c57
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4b2c49
cmp dword [ebx + 8], 0
je 0x4b2c08
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4b2c1a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4b2c49
cmp dword [ebx + 8], 0
je 0x4b2bfb
cmp eax, 3
je 0x4b2c2d
dec eax
jne 0x4b2bfb
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4b2bfb
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4b2bfb
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4b2c75
cmp dword [ebx + 0x14], 0xcc
je 0x4b2c75
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004b2c80
pop ebx
ret

Function at 0x4f059c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4f05f6
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004f058c
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004ede7c
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004ed994
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f05fd
lea eax, [ebp - 4]
call fcn.00404dc8
ret
Function at 0x4f90a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x4f90c4
cmp eax, 0
jbe 0x4f91cd
jmp 0x4f90ca
jle 0x4f91cd
mov eax, dword [ebp + 8]
add eax, 0xffffff04
xor ecx, ecx
mov edx, 0xf8
call fcn.004036e4
mov eax, dword [ebp + 8]
lea edx, [eax - 0x13c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov ecx, 0x40
mov esi, dword [eax]
call dword [esi + 0xc]
cmp eax, 0x40
jne 0x4f91cd
mov eax, dword [ebp + 8]
cmp word [eax - 0x13c], 0x5a4d
jne 0x4f91cd
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x100]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
xor ecx, ecx
mov esi, dword [eax]
call dword [esi + 0x14]
mov edx, dword [ebp + 8]
cmp eax, dword [edx - 0x100]
jne 0x4f91cd
mov eax, dword [ebp + 8]
lea edx, [eax - 0xfc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov ecx, 4
mov esi, dword [eax]
call dword [esi + 0xc]
cmp eax, 4
jne 0x4f91cd
mov eax, dword [ebp + 8]
cmp dword [eax - 0xfc], 0x4550
jne 0x4f91cd
mov eax, dword [ebp + 8]
lea edx, [eax - 0xf8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov ecx, 0x14
mov esi, dword [eax]
call dword [esi + 0xc]
cmp eax, 0x14
jne 0x4f91cd
mov eax, dword [ebp + 8]
cmp word [eax - 0xf8], 0x14c
jne 0x4f91cd
mov eax, dword [ebp + 8]
movzx ecx, word [eax - 0xe8]
mov eax, dword [ebp + 8]
lea edx, [eax - 0xe4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp + 8]
movzx edx, word [edx - 0xe8]
cmp eax, edx
jne 0x4f91cd
mov bl, 1
mov eax, ebx
pop esi
pop ebx
pop ebp
ret

Function at 0x4f981c
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor edx, edx
mov eax, dword [ebp + 8]
movzx eax, word [eax - 0xf6]
test ax, ax
jbe 0x4f98fc
mov edx, dword [ebp + 8]
movzx eax, ax
dec eax
test eax, eax
jl 0x4f98fa
inc eax
mov dword [ebp - 4], eax
xor ebx, ebx
mov esi, ebx
add esi, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*8 + 0xc]
xor edx, edx
test eax, 0x20000000
je 0x4f9892
test eax, 0x40000000
je 0x4f987e
test eax, 0x80000000
je 0x4f9879
or edx, 0x40
jmp 0x4f98b9
or edx, 0x20
jmp 0x4f98b9
test eax, 0x80000000
je 0x4f988d
or edx, 0x80
jmp 0x4f98b9
or edx, 0x10
jmp 0x4f98b9
test eax, 0x40000000
je 0x4f98aa
test eax, 0x80000000
je 0x4f98a5
or edx, 4
jmp 0x4f98b9
or edx, 2
jmp 0x4f98b9
test eax, 0x80000000
je 0x4f98b6
or edx, 8
jmp 0x4f98b9
or edx, 1
test eax, 0x4000000
je 0x4f98c6
or edx, 0x200
mov eax, dword [ebp + 8]
add eax, 0xfffffebc
push eax
push edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*8 + 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*8]
push eax
call sub.kernel32.dll_VirtualProtect
inc ebx
dec dword [ebp - 4]
jne 0x4f984c
mov dl, 1
mov eax, edx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4fd6b0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405248
xor eax, eax
push ebp
push 0x4fd72b
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a618
mov eax, dword [ebp - 8]
call fcn.00405258
push eax
call sub.IMAGEHLP.DLL_MakeSureDirectoryPathExists
push 0
mov eax, dword [ebp - 4]
call fcn.00405258
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00405258
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fd732
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404dec
ret
Function at 0x4ff988
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor ebx, ebx
mov byte [ebp - 0x12], 0
xor eax, eax
mov edx, dword [ebp - 0xc]
dec edx
test edx, edx
jl 0x4ffa66
inc edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], 0
cmp eax, dword [ebp + 8]
jge 0x4ffa66
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx]
mov byte [ebp - 0x13], 0xaa
movzx ecx, byte [ebp - 0x10]
add byte [ebp - 0x13], cl
xor dl, byte [ebp - 0x13]
lea ecx, [ebx + 2]
movzx esi, dl
shr esi, cl
mov ecx, esi
or cl, byte [ebp - 0x12]
and cl, 0x3f
mov byte [ebp - 0x11], cl
lea ecx, [ebx + 2]
push ecx
mov ecx, 8
pop esi
sub ecx, esi
movzx edx, dl
shl edx, cl
shr edx, 2
and dl, 0x3f
mov byte [ebp - 0x12], dl
add ebx, 2
cmp ebx, 6
jge 0x4ffa1e
movzx edx, byte [ebp - 0x11]
add dl, 0x3c
mov ecx, dword [ebp - 8]
mov byte [ecx + eax], dl
inc eax
jmp 0x4ffa5a
mov edx, dword [ebp + 8]
dec edx
cmp eax, edx
jge 0x4ffa46
movzx edx, byte [ebp - 0x11]
add dl, 0x3c
mov ecx, dword [ebp - 8]
mov byte [ecx + eax], dl
movzx edx, byte [ebp - 0x12]
add dl, 0x3c
mov ecx, dword [ebp - 8]
mov byte [ecx + eax + 1], dl
add eax, 2
jmp 0x4ffa54
movzx edx, byte [ebp - 0x11]
add dl, 0x3c
mov ecx, dword [ebp - 8]
mov byte [ecx + eax], dl
inc eax
xor ebx, ebx
mov byte [ebp - 0x12], 0
inc dword [ebp - 0x10]
dec dword [ebp - 0x18]
jne 0x4ff9b8
test ebx, ebx
jle 0x4ffa78
movzx edx, byte [ebp - 0x12]
add dl, 0x3c
mov ecx, dword [ebp - 8]
mov byte [ecx + eax], dl
inc eax
mov edx, dword [ebp - 8]
mov byte [edx + eax], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4ffa88
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, 2
xor eax, eax
xor edi, edi
mov byte [ebp - 0xe], 0
mov byte [ebp - 0xd], 0
mov edx, dword [ebp - 0xc]
dec edx
test edx, edx
jl 0x4ffb44
inc edx
mov dword [ebp - 0x14], edx
xor edx, edx
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + edx]
sub ecx, 0x3c
js 0x4ffad8
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + edx]
sub cl, 0x3c
mov byte [ebp - 0xd], cl
jmp 0x4ffadc
xor edi, edi
jmp 0x4ffb44
cmp edi, dword [ebp + 8]
jge 0x4ffb44
lea ecx, [eax + 6]
cmp ecx, 8
jl 0x4ffb20
mov ecx, 6
sub ecx, esi
movzx eax, byte [ebp - 0xd]
and al, 0x3f
movzx eax, al
shr eax, cl
or al, byte [ebp - 0xe]
mov cl, 0xaa
mov ebx, edi
add cl, bl
xor al, cl
mov ecx, dword [ebp - 8]
mov byte [ecx + edi], al
inc edi
xor eax, eax
cmp esi, 6
jge 0x4ffb19
add esi, 2
jmp 0x4ffb20
mov esi, 2
jmp 0x4ffb3a
mov ecx, esi
movzx ebx, byte [ebp - 0xd]
shl bl, cl
and bl, byte [esi + 0x52913a]
mov byte [ebp - 0xe], bl
mov ecx, 8
sub ecx, esi
add eax, ecx
inc edx
dec dword [ebp - 0x14]
jne 0x4ffabd
mov eax, dword [ebp - 8]
mov byte [eax + edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x503c60
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov eax, dword [0x5291a0]
mov eax, dword [eax]
call fcn.00405258
push eax
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
mov dword [ebx + 0x3bc], esi
push 0
push 0
push 0
push 0xf001f
push esi
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
mov dword [ebx + 0x3c0], edi
test edi, edi
je 0x503cb5
mov eax, ebx
call fcn.004599b8
mov edx, dword [ebx + 0x3c0]
mov dword [edx], eax
pop edi
pop esi
pop ebx
ret
Function at 0x401370
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push 0
push 0
push edi
push 0
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x4013dd
push dword [edi]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x4013dd
push 0
push 0
push dword [ebp + 0xc]
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x4013ee
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [esi], eax
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4048a0
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x429004]
xor eax, ebp
mov dword [ebp - 8], eax
movups xmm0, xmmword [edx]
push esi
movups xmm1, xmmword [edx + 0x10]
mov edx, dword [ebp + 8]
mov esi, ecx
movd eax, xmm0
lea ecx, [ebp - 0x16c]
movups xmmword [ebp - 0x18], xmm1
and al, 0xf8
psrldq xmm1, 0xf
movups xmmword [ebp - 0x28], xmm0
mov byte [ebp - 0x28], al
movd eax, xmm1
and al, 0x3f
or al, 0x40
mov byte [ebp - 9], al
call fcn.00401e40
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x20c]
call fcn.00403100
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x1bc]
call fcn.00403480
lea eax, [ebp - 0x1bc]
push eax
lea edx, [ebp - 0x20c]
lea ecx, [ebp - 0x11c]
call fcn.00401400
add esp, 0xc
lea ecx, [ebp - 0x11c]
call fcn.004018d0
lea ecx, [ebp - 0x11c]
call fcn.004019b0
movups xmm0, xmmword [ebp - 0x11c]
lea edx, [ebp - 0x84]
mov ecx, esi
movups xmmword [ebp - 0x84], xmm0
movups xmm0, xmmword [ebp - 0x10c]
movups xmmword [ebp - 0x74], xmm0
movups xmm0, xmmword [ebp - 0xfc]
movups xmmword [ebp - 0x64], xmm0
movups xmm0, xmmword [ebp - 0xec]
movups xmmword [ebp - 0x54], xmm0
movups xmm0, xmmword [ebp - 0xdc]
movups xmmword [ebp - 0x44], xmm0
call fcn.00402140
mov ecx, dword [ebp - 8]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00409fba
mov esp, ebp
pop ebp
ret
Function at 0x4049b0
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e4
mov eax, dword [0x429004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x47c], 0x425388
mov dword [ebp - 0x478], 0x425390
xor esi, esi
mov dword [ebp - 0x474], 0x425398
mov dword [ebp - 0x470], 0x4253a0
mov dword [ebp - 0x46c], 0x4253a8
mov dword [ebp - 0x468], 0x4253b0
mov dword [ebp - 0x464], 0x4253b8
mov dword [ebp - 0x460], 0x4253c0
mov dword [ebp - 0x45c], 0x4253c8
mov dword [ebp - 0x458], 0x4253d0
mov dword [ebp - 0x454], 0x4253d8
mov dword [ebp - 0x450], 0x4253e0
mov dword [ebp - 0x44c], 0x4253e8
mov dword [ebp - 0x448], 0x4253f0
mov dword [ebp - 0x444], 0x4253f8
mov dword [ebp - 0x440], 0x425400
mov dword [ebp - 0x43c], 0x425408
mov dword [ebp - 0x438], 0x425410
mov dword [ebp - 0x434], 0x425418
mov dword [ebp - 0x430], 0x425420
mov dword [ebp - 0x42c], 0x425428
mov dword [ebp - 0x428], 0x425430
mov dword [ebp - 0x424], 0x425438
mov dword [ebp - 0x420], 0x425440
mov dword [ebp - 0x41c], 0x425448
mov dword [ebp - 0x418], 0x425450
mov dword [ebp - 0x410], edi
nop dword [eax]
nop dword [eax + eax]
mov ebx, dword [ebp + esi*4 - 0x47c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jne 0x404afb
mov dword [ebp + edi*4 - 0x4e4], ebx
inc edi
inc esi
cmp esi, 0x1a
jl 0x404ae0
xor eax, eax
push 0x10000
push eax
mov word [ebp - 0x20c], ax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x404c34
push 0x8000
push 0
push esi
call fcn.0040b280
add esp, 0xc
push 0x8000
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov dword [ebp - 0x414], eax
mov ebx, eax
nop dword [eax + eax]
test edi, edi
je 0x404c1d
lea eax, [ebp - 0x410]
push eax
push 0x78
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x404b90
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jne 0x404b90
xor eax, eax
mov word [ebp - 0x20c], ax
jmp 0x404c08
mov ebx, dword [ebp + edi*4 - 0x4e8]
dec edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
test eax, eax
je 0x404bbd
cmp byte [0x42a33c], 0
je 0x404c02
push ebx
push str._t___Mounted___s_n
call fcn.004012f0
add esp, 8
jmp 0x404c02
cmp byte [0x42a33c], 0
je 0x404c02
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push pe_nt_image_headers32
lea ecx, [ebp - 0x40c]
push ecx
push 0x409
push eax
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
lea eax, [ebp - 0x40c]
push eax
push ebx
push str._t____Failed_to_mount__s:__s
call fcn.004012f0
add esp, 0xc
mov ebx, dword [ebp - 0x414]
push 0x8000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x404b50
push ebx
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409fba
mov esp, ebp
pop ebp
ret
Function at 0x404c50
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x429004]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0x4000
push eax
push ecx
push 0x13
push 0
push 2
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.MPR.dll_WNetOpenEnumW]
test eax, eax
jne 0x404d89
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x404d7f
push dword [esp + 0xc]
push 0
push ebx
call fcn.0040b280
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push ebx
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
jne 0x404d6f
nop
xor edi, edi
cmp dword [esp + 0x14], edi
jbe 0x404d52
lea esi, [ebx + 0xc]
nop dword [eax + eax]
cmp dword [ebx + 8], 3
jne 0x404d38
push dword [esi + 8]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x425584
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp byte [0x42a33c], 0
je 0x404d2f
lea eax, [esp + 0x18]
push eax
push 0x425588
call fcn.004012f0
add esp, 8
lea ecx, [esp + 0x18]
call fcn.00404e10
test dword [esi], 2
je 0x404d48
lea ecx, [esi - 0xc]
call fcn.00404c50
inc edi
add esi, 0x20
cmp edi, dword [esp + 0x14]
jb 0x404cf0
lea eax, [esp + 0xc]
push eax
push ebx
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
je 0x404ce0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x10]
call dword [sym.imp.MPR.dll_WNetCloseEnum]
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00409fba
mov esp, ebp
pop ebp
ret
Function at 0x406360
Capabilities:
Create restart manager session
Enumerate processes that use resource
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x429004]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x204]
mov dword [ebp - 0x218], ecx
push eax
push 0
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], 0
push eax
call dword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x406570
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push dword [ebp - 0x208]
call dword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
test eax, eax
jne 0x406570
push edi
mov edi, dword [sym.imp.RstrtMgr.DLL_RmGetList]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x210]
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x208]
call edi
cmp eax, 0xea
jne 0x406553
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x406553
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
imul eax, eax, 0x29c
push esi
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x21c], esi
test esi, esi
je 0x406483
push 0x29c
push 0
push esi
call fcn.0040b280
mov eax, dword [ebp - 0x214]
add esp, 0xc
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x208]
call edi
test eax, eax
je 0x4064a2
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x208]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
pop esi
pop ebx
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409fba
mov esp, ebp
pop ebp
ret
xor ebx, ebx
cmp dword [ebp - 0x20c], ebx
jbe 0x406514
mov edi, esi
nop
mov eax, dword [edi + 0x28c]
cmp eax, 4
je 0x4064ff
cmp eax, 0x3e8
je 0x4064ff
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, esi
je 0x4064ff
push esi
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
je 0x4064ff
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
add edi, 0x29c
cmp ebx, dword [ebp - 0x20c]
jb 0x4064b0
mov esi, dword [ebp - 0x21c]
push 0
push 1
push dword [ebp - 0x208]
call dword [sym.imp.RstrtMgr.DLL_RmShutdown]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x208]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
pop esi
pop ebx
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409fba
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x208]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409fba
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.00409fba
mov esp, ebp
pop ebp
ret
Function at 0x40a7c2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a801
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a801
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a801
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a801
cmp dword [ecx + 0x74], 0xe
jbe 0x40a801
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x412486
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420788
push 0x420780
push str.FlsAlloc
push 0x1f
call fcn.00412345
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4124ba
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f2a4]
call esi
jmp 0x4124c0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x412504
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420798
push 0x420790
push str.FlsGetValue
push 0x21
call fcn.00412345
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41253b
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f2a4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x412543
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4207a0
push 0x420798
push str.FlsSetValue
push 0x22
call fcn.00412345
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41257d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41f2a4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]