joyce8/EMBER2024-capa huggingface dataset:
Function at 0x479a20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be600
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x511a40]
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.00479940
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 0x479fe0
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 0x4c8418
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x511a40]
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 0x47a129
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 0x47a090
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.0043dec0
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 0x47a117
mov ecx, esi
call fcn.00449e70
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.00449e70
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.004a7b9d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x47b8e0
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 0x47b935
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 [0x511d58]
call ebx
test eax, eax
jle 0x47b92c
mov ecx, dword [ebp - 4]
add esi, eax
mov edx, closesocket
sub edi, eax
jne 0x47b900
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 0x47ee40
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf72e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x511a40]
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.00448ce0
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x47eedd
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.00448ce0
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 0x47f400
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 0x4c9707
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x10014
call fcn.004a8b00
mov eax, dword [0x511a40]
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 0x47f48d
lea edx, [ebp - 0x10018]
mov ecx, esi
call fcn.00473770
jmp 0x47f4b2
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.004a7b9d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x47f4f0
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 0x4c9707
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x10014
call fcn.004a8b00
mov eax, dword [0x511a40]
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 0x47f57d
lea edx, [ebp - 0x10018]
mov ecx, esi
call fcn.00473770
jmp 0x47f5a2
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.004a7b9d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x47f8c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9857
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x511a40]
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 0x47f957
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
jmp 0x47f96a
mov eax, dword [ebp - 0x14]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00439cd0
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.004a7b9d
mov esp, ebp
pop ebp
ret
Function at 0x4800c0
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 0x4c9a52
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x438
mov eax, dword [0x511a40]
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 0x480182
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 0x480265
cmp dword [edi + 0x14], 0xf
jbe 0x4801a8
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 0x480265
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.00439cd0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x440]
cmp esi, eax
je 0x480256
mov ecx, esi
call fcn.00449f00
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.00449f00
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x480276
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.004a7b9d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x480560
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 0x4c9b89
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x268
mov eax, dword [0x511a40]
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.004a9f30
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
dec eax
cmp eax, 0x103
ja 0x48076e
cmp word [ebp - 0x220], 0
lea edi, [ebp - 0x220]
je 0x48076e
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.0043dec0
mov dword [ebp - 4], 1
lea edx, [ebp - 0x25c]
push 0x4fb74c
lea ecx, [ebp - 0x274]
call fcn.0044c0f0
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 0x48070b
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 0x48071a
lea ecx, [ebp - 0x240]
push ecx
push eax
mov ecx, esi
call fcn.0048a830
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x240]
call fcn.00449e70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x274]
call fcn.00449e70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x25c]
call fcn.00449e70
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x480750
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
cmp word [edi], ax
jne 0x480640
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.004a7b9d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x482f40
Capabilities:
Create restart manager session
Enumerate processes that use resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca351
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x511a40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
xor ebx, ebx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x58], ebx
mov ecx, dword [eax]
mov eax, dword [0x517890]
cmp eax, dword [ecx + 4]
jle 0x482fc7
push 0x517890
call fcn.004a7c2c
add esp, 4
cmp dword [0x517890], 0xffffffff
jne 0x482fc7
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [0x5178b8], eax
mov dword [ebp - 4], 0xffffffff
push 0x517890
call fcn.004a7bdb
add esp, 4
mov ecx, 0x42
lea eax, [ebp - 0x54]
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x482fd0
lea eax, [ebp - 0x54]
push eax
push ecx
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x4830cc
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x68]
push eax
push 1
push dword [ebp - 0x58]
call dword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
test eax, eax
jne 0x4830c3
mov dword [ebp - 0x60], eax
mov ecx, 4
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x483021
mov esi, dword [sym.imp.RstrtMgr.DLL_RmGetList]
lea eax, [ebp - 0x60]
push eax
push ecx
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x58]
call esi
cmp eax, 0xea
jne 0x483109
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x483109
mov ecx, 0x29c
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.004947fa
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x483109
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x60]
push eax
push ebx
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x58]
call esi
test eax, eax
jne 0x483100
cmp dword [ebp - 0x64], eax
je 0x483100
mov edx, dword [ebp - 0x5c]
test edx, edx
je 0x4830c1
mov edi, dword [0x5178b8]
mov ecx, ebx
nop dword [eax]
mov esi, dword [ecx]
cmp esi, edi
jne 0x4830ea
inc eax
add ecx, 0x29c
cmp eax, edx
jb 0x4830b0
xor ebx, ebx
push dword [ebp - 0x58]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a7b9d
mov esp, ebp
pop ebp
ret
push ebx
call fcn.0048de31
add esp, 4
push dword [ebp - 0x58]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
mov ebx, esi
jmp 0x4830cc
push ebx
call fcn.0048de31
add esp, 4
push dword [ebp - 0x58]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
xor eax, eax
jmp 0x4830ce
Function at 0x483560
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 0x4ca3f6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
push esi
push edi
mov eax, dword [0x511a40]
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 0x483744
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 0x483644
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
jmp 0x4836d3
sub esi, eax
sar esi, 1
cmp esi, 0x7ffffffe
ja 0x483771
cmp esi, 7
ja 0x48367c
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.004a99b0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x30], ax
jmp 0x4836d0
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x48368f
mov eax, 0x7ffffffe
jmp 0x483696
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.0043df70
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.004a99b0
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 0x48370d
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 0x483719
lea ecx, [ebp - 0x30]
push ecx
push eax
mov ecx, edi
call fcn.0048a5f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00449e70
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 0x483752
mov edx, dword [ebp - 0x18]
add eax, 2
jmp 0x483602
add esi, 2
add eax, 2
mov dword [ebp - 0x14], esi
jmp 0x483602
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.00434ca0
int3
Function at 0x498c13
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00498a84

Function at 0x4990ce
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x4ce8ac
push str.FlsAlloc
push 0x1e
call fcn.00498f3b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x499102
push dword [ebp + 8]
mov ecx, esi
call dword [0x4cc37c]
call esi
jmp 0x499108
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x49914c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x4ce8d0
push str.FlsGetValue
push 0x20
call fcn.00498f3b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x499183
push dword [ebp + 8]
mov ecx, esi
call dword [0x4cc37c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x499aba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004a8b00
mov eax, dword [0x511a40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004953bb
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x499afc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x499c58
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004a8880
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x5162b0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0049a8b5
mov ecx, dword [esi*4 + 0x5162b0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x499c51
cmp eax, dword [edi + ecx + 0x24]
jne 0x499c51
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x499c51
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0049a8b5
add esp, 0x14
test edx, edx
jl 0x499c51
jg 0x499bc7
test eax, eax
jb 0x499c51
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x499c51
jl 0x499be1
cmp dword [ebp - 0x1008], eax
ja 0x499c51
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x499bff
test ebx, ebx
je 0x499c38
cmp ecx, edi
jae 0x499c38
mov al, byte [ecx]
cmp al, 0xd
jne 0x499c19
lea eax, [edi - 1]
cmp ecx, eax
jae 0x499c25
cmp byte [ecx + 1], 0xa
jne 0x499c25
inc ecx
jmp 0x499c25
movzx eax, al
movsx eax, byte [eax + 0x511228]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x499bff
cmp edx, ebx
jne 0x499bff
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x499c56
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004a7b9d
leave
ret