joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473690
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [edi], 0x61707865
mov dword [edi + 4], 0x3320646e
mov dword [edi + 8], 0x79622d32
mov dword [edi + 0xc], 0x6b206574
movzx edx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi]
shl edx, 8
or edx, eax
mov dword [edi + 0x10], edx
movzx ecx, byte [esi + 7]
movzx eax, byte [esi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 4]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x14], ecx
movzx ecx, byte [esi + 0xb]
movzx eax, byte [esi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 8]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x18], ecx
movzx ecx, byte [esi + 0xf]
movzx eax, byte [esi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xc]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x1c], ecx
movzx ecx, byte [esi + 0x13]
movzx eax, byte [esi + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x10]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x20], ecx
movzx ecx, byte [esi + 0x17]
movzx eax, byte [esi + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x14]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x24], ecx
movzx ecx, byte [esi + 0x1b]
movzx eax, byte [esi + 0x1a]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x18]
mov edx, dword [ebp + 0xc]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x28], ecx
movzx ecx, byte [esi + 0x1f]
movzx eax, byte [esi + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1c]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x30], 0
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x34], 0
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x38], ecx
movzx ecx, byte [edx + 7]
movzx eax, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
mov eax, edi
mov dword [edi + 0x3c], ecx
pop edi
pop esi
pop ebp
ret 8
Function at 0x47b530
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0120
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x512a40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebx], vtable.ATL::CImage.0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov word [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0xffffffff
mov dword [ebx + 0x24], 0xffffffff
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
call fcn.0047b450
mov esi, eax
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [esi + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47baf0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca2e8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x512a40]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x38], esi
xor eax, eax
mov dword [ebp - 0x1c], 0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push edx
mov dword [ebp - 0x1c], 1
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x47bc39
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x18]
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47bba0
sub ecx, edi
sar ecx, 1
mov byte [ebp - 4], 3
xorps xmm0, xmm0
push ecx
push edx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], 0
call fcn.0043e200
mov edi, 5
mov dword [ebp - 0x1c], 5
mov dword [ebp - 0x1c], edi
and edi, 0xfffffffb
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 2
or edi, 2
lea eax, [ebp - 0x34]
mov dword [ebp - 0x1c], edi
cmp esi, eax
je 0x47bc27
mov ecx, esi
call fcn.0044a250
movups xmm0, xmmword [ebp - 0x34]
xor eax, eax
mov word [ebp - 0x34], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
and edi, 0xfffffffd
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.0044a250
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a9ea5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x47d4f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], ecx
xor esi, esi
test edi, edi
je 0x47d545
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov edx, closesocket
nop dword [eax]
push 0
cmp edi, 0x7fffffff
mov eax, edi
cmova eax, edx
push eax
lea eax, [esi + ecx]
push eax
push dword [0x512d00]
call ebx
test eax, eax
jle 0x47d53c
mov ecx, dword [ebp - 4]
add esi, eax
mov edx, closesocket
sub edi, eax
jne 0x47d510
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4809f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c120e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x512a40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
push 0x10
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetUserGeoID]
push 0
push 0
push 0
push 4
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetGeoInfoA]
xorps xmm0, xmm0
mov edi, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
mov ecx, esi
push 0
push edi
mov dword [ebp - 0x10], 1
call fcn.00449080
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x480a8d
mov eax, dword [esi]
push 0
push edi
push eax
push 4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetGeoInfoA]
push 0
lea eax, [edi - 1]
mov ecx, esi
push eax
call fcn.00449080
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x480fb0
Capabilities:
Get session user name

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb5d7
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x10014
call fcn.004aae00
mov eax, dword [0x512a40]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1001c], esi
lea eax, [ebp - 0x1001c]
mov dword [ebp - 0x10024], esi
push eax
lea eax, [ebp - 0x10018]
mov dword [ebp - 0x10020], 0
push eax
mov dword [ebp - 0x1001c], 0x7fff
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x48103d
lea edx, [ebp - 0x10018]
mov ecx, esi
call fcn.004751d0
jmp 0x481062
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10020], 1
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.004a9ea5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x4810a0
Capabilities:
Get hostname

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb5d7
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x10014
call fcn.004aae00
mov eax, dword [0x512a40]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1001c], esi
lea eax, [ebp - 0x1001c]
mov dword [ebp - 0x10024], esi
push eax
lea eax, [ebp - 0x10018]
mov dword [ebp - 0x10020], 0
push eax
mov dword [ebp - 0x1001c], 0x7fff
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x48112d
lea edx, [ebp - 0x10018]
mov ecx, esi
call fcn.004751d0
jmp 0x481152
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10020], 1
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.004a9ea5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x481470
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb727
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x512a40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x120], esi
push eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x11c], 0
push eax
push 0
push 2
push str.ProductName
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push closesocket
mov dword [ebp - 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
test eax, eax
je 0x481507
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
jmp 0x48151a
mov eax, dword [ebp - 0x14]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0044e480
mov dword [ebp - 4], 0
mov dword [ebp - 0x11c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a9ea5
mov esp, ebp
pop ebp
ret
Function at 0x481c70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb922
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x438
mov eax, dword [0x512a40]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x41c], esi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x444], esi
mov dword [ebp - 0x428], 0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x424], 0x400
mov dword [ebp - 0x41c], 0xf003f
mov byte [esi], 0
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 0xf
mov dword [ebp - 0x428], 1
jbe 0x481d32
mov eax, dword [eax]
lea ecx, [ebp - 0x420]
push ecx
push 0x20019
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x481e15
cmp dword [edi + 0x14], 0xf
jbe 0x481d58
mov edi, dword [edi]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0
push edi
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x481e15
mov eax, dword [ebp - 0x424]
lea ecx, [ebp - 0x440]
dec eax
mov dword [ebp - 0x430], 0
push eax
lea eax, [ebp - 0x418]
mov dword [ebp - 0x42c], 0
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x440], xmm0
call fcn.0044e480
mov dword [ebp - 4], 1
lea eax, [ebp - 0x440]
cmp esi, eax
je 0x481e06
mov ecx, esi
call fcn.0044a2e0
movups xmm0, xmmword [ebp - 0x440]
mov byte [ebp - 0x440], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x430]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0xf
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x440]
call fcn.0044a2e0
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x481e26
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a9ea5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x482110
Capabilities:
Get disk information

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cba59
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x268
mov eax, dword [0x512a40]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x228], esi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x224], 0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x220]
push 0x208
push 0
push eax
mov dword [ebp - 0x224], 1
call fcn.004ac230
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
dec eax
cmp eax, 0x103
ja 0x48231e
cmp word [ebp - 0x220], 0
lea edi, [ebp - 0x220]
je 0x48231e
nop dword [eax + eax]
push 2
xorps xmm0, xmm0
mov dword [ebp - 0x24c], 0
push edi
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x248], 0
movups xmmword [ebp - 0x25c], xmm0
call fcn.0043e200
mov dword [ebp - 4], 1
lea edx, [ebp - 0x25c]
push 0x4fc74c
lea ecx, [ebp - 0x274]
call fcn.0044c510
add esp, 4
mov byte [ebp - 4], 2
movups xmm0, xmmword [eax]
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
movups xmmword [ebp - 0x240], xmm0
movq xmm1, qword [eax + 0x10]
movq qword [ebp - 0x230], xmm1
mov byte [ebp - 4], 4
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x4822bb
movups xmmword [eax], xmm0
mov dword [ebp - 0x228], eax
movq qword [eax + 0x10], xmm1
xor eax, eax
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], 7
mov word [ebp - 0x240], ax
mov byte [ebp - 4], 4
add dword [esi + 4], 0x18
jmp 0x4822ca
lea ecx, [ebp - 0x240]
push ecx
push eax
mov ecx, esi
call fcn.0048c320
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x240]
call fcn.0044a250
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x274]
call fcn.0044a250
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x25c]
call fcn.0044a250
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x482300
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
cmp word [edi], ax
jne 0x4821f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a9ea5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x484af0
Capabilities:
Create restart manager session
Enumerate processes that use resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x512a40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x5c], ecx
push edi
mov dword [ebp - 0x4c], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ebx, eax
mov ecx, 0x42
lea eax, [ebp - 0x48]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x484b22
lea eax, [ebp - 0x48]
push eax
push ecx
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x484c10
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x5c]
push eax
push 1
push dword [ebp - 0x4c]
call dword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
test eax, eax
jne 0x484c07
mov dword [ebp - 0x54], esi
lea eax, [ebp - 0x60]
mov dword [ebp - 0x58], esi
mov ecx, 4
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x60], esi
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x484b73
mov esi, dword [sym.imp.RstrtMgr.DLL_RmGetList]
lea eax, [ebp - 0x54]
push eax
push ecx
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x4c]
call esi
cmp eax, 0xea
jne 0x484c37
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x484c37
mov ecx, 0x29c
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.004962ea
mov edi, eax
add esp, 4
test edi, edi
je 0x484c37
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x54]
push eax
push edi
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x4c]
call esi
test eax, eax
jne 0x484c2e
cmp dword [ebp - 0x58], eax
je 0x484c2e
mov edx, dword [ebp - 0x50]
test edx, edx
je 0x484c05
mov ecx, edi
mov esi, dword [ecx]
cmp esi, ebx
jne 0x484c23
inc eax
add ecx, 0x29c
cmp eax, edx
jb 0x484bf4
xor esi, esi
push dword [ebp - 0x4c]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a9ea5
mov esp, ebp
pop ebp
ret
push edi
call fcn.0048f921
add esp, 4
jmp 0x484c07
push edi
call fcn.0048f921
add esp, 4
push dword [ebp - 0x4c]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a9ea5
mov esp, ebp
pop ebp
ret
Function at 0x485050
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc286
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
push esi
push edi
mov eax, dword [0x512a40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x44], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xorps xmm0, xmm0
mov edx, eax
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [ebp - 0x18], edx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x44], 1
mov esi, edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x40], 0xa
cmp word [esi], 0
mov dword [ebp - 0x3c], eax
jne 0x485234
lea eax, [ecx + edx]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
cmp eax, esi
jne 0x485134
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
jmp 0x4851c3
sub esi, eax
sar esi, 1
cmp esi, 0x7ffffffe
ja 0x485261
cmp esi, 7
ja 0x48516c
mov dword [ebp - 0x20], esi
add esi, esi
push esi
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
push eax
call fcn.004abcb0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x30], ax
jmp 0x4851c0
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x48517f
mov eax, 0x7ffffffe
jmp 0x485186
cmp eax, 0xa
cmovb eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0043e2b0
mov edi, eax
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x34]
add esi, esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x18]
push esi
push eax
push edi
mov dword [ebp - 0x30], edi
call fcn.004abcb0
add esp, 0x14
xor eax, eax
mov word [esi + edi], ax
mov edi, dword [ebp - 0x48]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 4], 1
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x4851fd
movups xmm0, xmmword [ebp - 0x30]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [edi + 4], 0x18
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
jmp 0x485209
lea ecx, [ebp - 0x30]
push ecx
push eax
mov ecx, edi
call fcn.0048c0e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0044a250
mov eax, dword [ebp - 0x3c]
add esi, 2
mov ecx, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x38], ecx
cmp word [esi], 0
je 0x485242
mov edx, dword [ebp - 0x18]
add eax, 2
jmp 0x4850f2
add esi, 2
add eax, 2
mov dword [ebp - 0x14], esi
jmp 0x4850f2
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00435030
int3
Function at 0x49a990
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049a801

Function at 0x49ae4b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x4cf8ac
push str.FlsAlloc
push 0x1e
call fcn.0049acb8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x49ae7f
push dword [ebp + 8]
mov ecx, esi
call dword [0x4cd37c]
call esi
jmp 0x49ae85
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x49aec9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x4cf8d0
push str.FlsGetValue
push 0x20
call fcn.0049acb8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x49af00
push dword [ebp + 8]
mov ecx, esi
call dword [0x4cd37c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]