joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a880
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b676
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x48f244]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.CHttpHeader.0
mov dword [edi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0xf
mov byte [edi + 8], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0xf
mov byte [edi + 0x20], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0xf
mov byte [edi + 0x38], 0
lea esi, [edi + 0x50]
mov byte [ebp - 4], 2
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00439065
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40a9a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b6d1
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x48f244]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.CHttpHeader.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0xf
mov byte [edi + 8], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0xf
mov byte [edi + 0x20], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0xf
mov byte [edi + 0x38], 0
lea esi, [edi + 0x50]
mov byte [ebp - 4], 2
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00439065
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
push dword [ebp + 8]
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.0040b620
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40ff10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40ff69
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40ff69
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40ff5a
cmp esi, edx
jae 0x40ff69
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40ff48
cmp esi, edx
jae 0x40ff69
cmp word [esi], 0
je 0x40ff69
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x410410
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2444
call fcn.004391d0
mov eax, dword [0x48f244]
xor eax, esp
mov dword [esp + 0x2440], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp byte [esi + 8], 0
je 0x41061f
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x208
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.00444b80
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
movzx eax, word [esp + 0x22]
push eax
movzx eax, word [esp + 0x24]
push eax
movzx eax, word [esp + 0x26]
push eax
movzx eax, word [esp + 0x28]
push eax
movzx eax, word [esp + 0x2a]
push eax
movzx eax, word [esp + 0x2a]
push eax
movzx eax, word [esp + 0x2c]
push eax
push str.__04d__02d__02d__02d:_02d:_02d._03d____5d__5d_
lea eax, [esp + 0x60]
push 0x104
push eax
call fcn.004106d0
push 0x1000
lea eax, [esp + 0x147c]
push 0
push eax
call fcn.00444b80
add esp, 0x3c
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [esp + 0x1454]
push 0x800
push eax
call fcn.00404450
push dword [eax + 4]
push dword [eax]
call fcn.0044d9c4
add esp, 0x1c
lea eax, [esp + 0x448]
push 0x1000
push 0
push eax
call fcn.00444b80
add esp, 0xc
lea eax, [esp + 0x38]
lea ecx, [esp + 0x448]
push eax
call fcn.00410640
lea eax, [esp + 0x1448]
push eax
lea ecx, [esp + 0x44c]
call fcn.00410640
push 0x4838c8
lea ecx, [esp + 0x44c]
call fcn.00410640
sub esp, 8
lea edx, [esp + 0x450]
lea ecx, [esp + 0x24]
call fcn.004143d0
mov ebx, dword [esp + 0x34]
lea edi, [esp + 0x24]
add esp, 8
cmp dword [esp + 0x30], 0x10
cmovae edi, dword [esp + 0x1c]
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x4105c6
push 0x104
lea eax, [esp + 0x244]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str..log
lea eax, [esp + 0x244]
push 0x104
push eax
call fcn.004617b1
add esp, 0xc
lea eax, [esp + 0x240]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000004
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x4105e5
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x38]
push eax
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [esp + 0x30]
cmp edx, 0x10
jb 0x41061f
mov ecx, dword [esp + 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410615
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410634
push edx
push ecx
call fcn.00439095
add esp, 8
mov ecx, dword [esp + 0x244c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004390b1
mov esp, ebp
pop ebp
ret
call fcn.004480ba
int3
Function at 0x4118c0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46bd90
mov eax, dword fs:[0]
push eax
sub esp, 0x834
mov eax, dword [0x48f244]
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
call fcn.00407b60
mov ecx, eax
test ecx, ecx
je 0x411ac8
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x834], esi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00444b80
add esp, 0xc
lea eax, [ebp - 0x840]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4119bf
mov dword [ebp - 0x83c], eax
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x838], 0x104
push eax
lea eax, [ebp - 0x83c]
push eax
push 0
push str.Path
push dword [ebp - 0x840]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x840]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411997
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x834]
call fcn.0040f890
mov esi, dword [ebp - 0x834]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00444b80
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x420]
add esp, 0xc
push str.360safe.exe
push esi
push eax
call ebx
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x420]
push eax
call edi
test eax, eax
je 0x411a8b
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00444b80
add esp, 0xc
lea eax, [ebp - 0x628]
push str.360leakfixer.exe
push esi
push eax
call ebx
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.00444b80
add esp, 0xc
lea eax, [ebp - 0x830]
push str.QHSafeMain.exe
push esi
push eax
call ebx
lea eax, [ebp - 0x628]
push eax
call edi
test eax, eax
jne 0x411a65
lea eax, [ebp - 0x830]
push eax
call edi
test eax, eax
je 0x411a8b
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x411a84
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 0x2000
jmp 0x411aac
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x411aaa
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
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.004390b1
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407a10
int3
Function at 0x4123a0
Capabilities:
Connect to http server
Create http request
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1700
call fcn.004391d0
mov eax, dword [0x48f244]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x16f4]
push edi
xor bl, bl
call fcn.00411c10
lea eax, [ebp - 0x16f4]
push eax
push esi
call fcn.00413680
test al, al
jne 0x4123ee
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004390b1
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push 0
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_122.0.0.0_Safari_537.36_Edg_122.0.0.0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
test esi, esi
je 0x41251f
push 0
push 0
push 3
lea eax, [ebp - 0x13b4]
push eax
lea eax, [ebp - 0x14b4]
push eax
push dword [ebp - 0x4c]
lea eax, [ebp - 0x16b4]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, eax
mov dword [ebp - 0x16fc], ecx
test ecx, ecx
je 0x41251c
cmp dword [ebp - 0x58], 4
mov edx, 0x80ccb300
push 0
mov eax, 0x804c8200
cmove eax, edx
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x12b4]
push eax
push 0x483848
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x16f8], eax
test eax, eax
je 0x412514
push 0x38
push str.Accept:___r_nContent_Type:application_json_charsetUTF_8
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 7
call fcn.004049f0
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
sub esp, 8
push dword [ebp - 0x10]
push eax
push dword [ebp - 0x16f8]
call fcn.004135b0
mov edx, dword [ebp - 0xc]
test al, al
jne 0x412534
cmp edx, 8
jb 0x4124fc
mov ecx, dword [ebp - 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4124f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41255f
push edx
push ecx
call fcn.00439095
add esp, 8
push dword [ebp - 0x16f8]
xor eax, eax
mov dword [ebp - 0xc], 7
mov word [ebp - 0x20], ax
mov dword [ebp - 0x10], eax
call edi
push dword [ebp - 0x16fc]
call edi
push esi
call edi
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004390b1
mov esp, ebp
pop ebp
ret 4
mov bl, 1
cmp edx, 8
jb 0x4124fc
mov ecx, dword [ebp - 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4124f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4124f2
call fcn.004480ba
int3
Function at 0x413300
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46becd
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x48f244]
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 dword [ebp - 0x3c], ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0x2000
push 0
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x15], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x4134db
nop
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x2000
push ebx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
setne byte [ebp - 0x16]
test eax, eax
je 0x4134cb
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x4134c7
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
cmp edi, 0xf
ja 0x4133d0
push edi
lea eax, [ebp - 0x34]
mov dword [ebp - 0x24], edi
push ebx
push eax
call fcn.00444600
mov byte [ebp + edi - 0x34], 0
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x34]
jmp 0x413459
cmp edi, 0x7fffffff
ja 0x413506
mov esi, edi
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x4133f3
mov esi, closesocket
lea ecx, [esi + 0x24]
jmp 0x413413
cmp esi, 0x16
mov eax, 0x16
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x41342f
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4134fc
push ecx
call fcn.00439065
add esp, 4
test eax, eax
je 0x413501
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x413442
test eax, eax
je 0x413440
push eax
call fcn.00439065
add esp, 4
mov ebx, eax
jmp 0x413442
xor ebx, ebx
push edi
push dword [ebp - 0x1c]
mov dword [ebp - 0x24], edi
push ebx
mov dword [ebp - 0x20], esi
call fcn.00444600
mov byte [ebx + edi], 0
mov dword [ebp - 0x34], ebx
add esp, 0xc
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
cmp esi, 0x10
mov dword [ebp - 4], 0
push edi
cmovae eax, ebx
push eax
call fcn.004045e0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x4134ad
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4134a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413501
push edx
push ecx
call fcn.00439095
add esp, 8
mov eax, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x1c]
cmp byte [eax + 0x28], 0
jne 0x4134cb
cmp byte [ebp - 0x16], 0
je 0x4134cb
mov esi, dword [ebp - 0x40]
jmp 0x413360
mov byte [ebp - 0x15], 1
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, byte [ebp - 0x15]
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.004390b1
mov esp, ebp
pop ebp
ret 8
call fcn.00405680
call fcn.004480ba
call fcn.00405500
int3
Function at 0x413680
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 8
jb 0x41368e
mov ecx, dword [ecx]
push esi
mov esi, dword [ebp + 0xc]
lea eax, [esi + 0x1690]
push eax
push 0
push 0
push ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x4136af
xor al, al
pop esi
pop ebp
ret 8
mov edx, dword [esi + 0x16c4]
mov ecx, edx
push edi
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4136c0
sub ecx, edi
sar ecx, 1
pop edi
je 0x4136e6
push edx
push 0x824
push dword [esi + 0x16bc]
call fcn.004617b1
add esp, 0xc
mov al, 1
pop esi
pop ebp
ret 8
Function at 0x4158d0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x48f244]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x50]
push 0x4c
push 0
push eax
mov esi, ecx
call fcn.00444b80
add esp, 8
mov dword [ebp - 0x60], 0x67452301
mov edx, esi
mov dword [ebp - 0x5c], 0xefcdab89
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
call fcn.00415800
mov esi, dword [ebp - 8]
add esp, 4
mov byte [ebp + esi - 0x48], 0x80
inc esi
cmp esi, 0x38
jbe 0x415957
mov eax, 0x40
sub eax, esi
push eax
lea eax, [ebp - 0x48]
add eax, esi
push 0
push eax
call fcn.00444b80
push 1
lea eax, [ebp - 0x48]
xor esi, esi
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00401000
add esp, 0x18
mov eax, 0x38
sub eax, esi
push eax
lea eax, [ebp - 0x48]
add eax, esi
push 0
push eax
call fcn.00444b80
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x48]
push 1
push eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0xc], ecx
push eax
call fcn.00401000
add esp, 0x18
test edi, edi
je 0x415995
movups xmm0, xmmword [ebp - 0x60]
movups xmmword [edi], xmm0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004390b1
mov esp, ebp
pop ebp
ret
Function at 0x418a20
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c3a0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x48f244]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00439065
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0043b13d
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
lea edi, [eax + 0x14]
mov dword [eax + 0x20], ecx
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
mov dword [eax + 0x34], esi
lea esi, [eax + 8]
mov dword [eax + 0x2c], edx
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov esi, dword [ebp - 0x10]
not ecx
and ecx, 1
mov dword [edi], 0
shl ecx, 2
mov eax, ebx
mov dword [edx], 0
mov edx, ecx
or edx, 2
mov dword [esi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
and al, 2
mov dword [esi + 0x38], 0
mov eax, ebx
cmovne edx, ecx
mov ecx, edx
or ecx, 8
and al, 8
cmove ecx, edx
mov eax, ecx
or eax, 0x10
and bl, 4
cmove eax, ecx
mov dword [esi + 0x3c], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x419ad0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c3a0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x48f244]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00439065
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0043b13d
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
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 0x41b680
Capabilities:
Encode data using xor
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov edx, 1
push ebx
push esi
push edi
xor esi, esi
mov eax, edx
mov dword [ebp + esi*4 - 0x808], edx
and al, 0x80
mov dword [ebp + edx*4 - 0x408], esi
movzx ecx, al
lea eax, [edx + edx]
neg ecx
sbb ecx, ecx
inc esi
and ecx, 0x1b
xor ecx, eax
xor ecx, edx
movzx edx, cl
cmp esi, 0x100
jl 0x41b693
mov esi, 1
mov edx, 0x494670
nop dword [eax]
mov eax, esi
mov dword [edx], esi
and al, 0x80
movzx ecx, al
lea eax, [esi + esi]
neg ecx
sbb ecx, ecx
add edx, 4
and ecx, 0x1b
xor ecx, eax
movzx esi, cl
cmp edx, 0x494698
jl 0x41b6d0
mov eax, 1
mov byte [0x494070], 0x63
mov byte [0x4945d3], 0
mov dword [ebp - 4], eax
nop dword [eax]
mov ecx, dword [ebp + eax*4 - 0x408]
lea eax, [ebp - 0x40c]
shl ecx, 2
sub eax, ecx
mov ebx, dword [eax]
mov ecx, ebx
sar ecx, 7
lea eax, [ebx + ebx]
or ecx, eax
movzx eax, cl
xor ebx, eax
mov ecx, eax
shr ecx, 7
add eax, eax
or ecx, eax
movzx eax, cl
xor ebx, eax
mov ecx, eax
add eax, eax
shr ecx, 7
or ecx, eax
movzx edx, cl
mov ecx, edx
shr ecx, 7
lea eax, [edx + edx]
or ecx, eax
xor ecx, 0x63
movzx eax, cl
xor eax, edx
xor ebx, eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x494070], bl
mov byte [ebx + 0x494570], al
inc eax
mov dword [ebp - 4], eax
cmp eax, 0x100
jl 0x41b710
mov ebx, 0xff
xor esi, esi
mov dword [ebp - 8], ebx
movzx edx, byte [esi + 0x494070]
mov eax, edx
and al, 0x80
movzx ecx, al
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
movzx eax, cl
mov ecx, eax
xor ecx, edx
shl ecx, 8
xor ecx, edx
shl ecx, 8
xor ecx, edx
shl ecx, 8
xor ecx, eax
mov dword [esi*4 + 0x495aa0], ecx
rol ecx, 8
mov dword [esi*4 + 0x4956a0], ecx
rol ecx, 8
mov dword [esi*4 + 0x494aa0], ecx
rol ecx, 8
mov dword [esi*4 + 0x4946a0], ecx
movzx ecx, byte [esi + 0x494570]
test ecx, ecx
je 0x41b83f
mov ecx, dword [ebp + ecx*4 - 0x408]
mov eax, dword [ebp - 0x3d0]
add eax, ecx
cdq
idiv ebx
mov eax, dword [ebp - 0x3e4]
add eax, ecx
mov edi, dword [ebp + edx*4 - 0x808]
cdq
idiv ebx
mov eax, dword [ebp - 0x3d4]
add eax, ecx
mov ebx, dword [ebp + edx*4 - 0x808]
cdq
idiv dword [ebp - 8]
mov eax, dword [ebp + edx*4 - 0x808]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x3dc]
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov eax, dword [ebp + edx*4 - 0x808]
jmp 0x41b848
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ebx
xor eax, eax
shl eax, 8
xor eax, dword [ebp - 4]
shl eax, 8
xor eax, ebx
mov ebx, 0xff
shl eax, 8
xor eax, edi
mov dword [esi*4 + 0x4952a0], eax
rol eax, 8
mov dword [esi*4 + 0x494ea0], eax
rol eax, 8
mov dword [esi*4 + 0x495ea0], eax
rol eax, 8
mov dword [esi*4 + 0x494170], eax
inc esi
cmp esi, 0x100
jl 0x41b785
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret