joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47c640
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x47c6e3
test eax, eax
jbe 0x47c6e3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x47c6e3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x47c68e
xor esi, esi
jmp 0x47c694
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x47c6bf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00408080
add esi, eax
push esi
mov ebx, esi
call fcn.00408080
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x47c6a0
pop ebp
test edi, edi
pop edi
jne 0x47c6e3
test ebx, ebx
je 0x47c6e3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00483480
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x47c845
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x47c95d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47c95d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00494fef
mov esi, eax
test esi, esi
je 0x47c95d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x47c95d
mov ecx, esi
call fcn.0047c7d0
cmp edi, eax
jge 0x47c95d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x47c8e3
mov dword [esp + 0x34], 1
jmp 0x47c93e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x47c95d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0047bd90
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x495992
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4959ca
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004939e0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004939b8
jmp 0x4959d6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49720a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49724c
call fcn.0049d743
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49724c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x497243
xor eax, eax
jmp 0x497254
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049725a
pop edi
pop esi
pop ebx
ret 4

Function at 0x49dc73
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49dca1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49dcbf
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049dbd9
jmp 0x49dcbf
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49dcbf
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049dbd9
test edi, edi
mov eax, edi
jne 0x49dca9
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4a04e4
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x4a050c
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x4a051d
push 2
call edi
test ax, ax
jge 0x4a051d
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.00494fc8
cmp dword [esi + 0x30], ebx
jne 0x4a05f7
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.00494fc8
cmp eax, dword [esp + 0x34]
jne 0x4a05f7
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4a0593
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x4a05d8
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x4a05f7
cmp eax, 0x205
je 0x4a05f7
cmp eax, 0x201
je 0x4a05f7
cmp eax, 0x204
je 0x4a05f7
cmp eax, ebx
jne 0x4a05be
cmp dword [esp + 0x1c], 0x1b
je 0x4a05f7
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x56fc7c]
jbe 0x4a05ed
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4a0550
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
mov ecx, 0x2c0e1fd0
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
mov ecx, 0x216455d7
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x572c80
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
push eax
call sub.ws2_32.dll_connect
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x438860
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22000]
push edi
or ebp, 0xffffffff
jmp 0x438882
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x438889
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x438878
mov eax, 1
add ebx, ebx
jne 0x43889b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x438890
jne 0x4388ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x438890
xor ecx, ecx
sub eax, 3
jb 0x4388c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x438932
mov ebp, eax
add ebx, ebx
jne 0x4388cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4388d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4388fc
inc ecx
add ebx, ebx
jne 0x4388e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4388dd
jne 0x4388f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4388dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43891c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43890d
jmp 0x43887e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43891c
add edi, ecx
jmp 0x43887e
pop esi
mov edi, esi
mov ecx, 0xe0e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43893a
cmp byte [edi], 0xa
jne 0x43893a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x43893f
lea edi, [esi + 0x36000]
mov eax, dword [edi]
or eax, eax
je 0x4389b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3820c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x382ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43896c
mov ecx, edi
jns 0x43899b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x382b0]
or eax, eax
je 0x4389b1
mov dword [ebx], eax
add ebx, 4
jmp 0x438989
call dword [esi + 0x382b4]
popal
jmp 0x41be59
Function at 0x416430
Capabilities:
Check if file exists
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x70
mov edi, ecx
mov eax, dword [0x540010]
xor eax, ebp
mov dword [esp + 0x68], eax
xor eax, eax
push eax
push eax
push ecx
push 0x416ad0
push eax
push eax
call fcn.004ef68e
add esp, 0x18
mov esi, eax
cmp dword [edi + 0x3c], eax
je 0x4164a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [edi + 0x3c]
inc eax
cmp eax, 2
jb 0x41648c
call fcn.00492150
push dword [edi + 0x3c]
call fcn.0047b600
add esp, 4
mov dword [edi + 0x3c], 0
lea eax, [esi + 1]
cmp eax, 2
jb 0x41649c
mov dword [edi + 0x3c], esi
call fcn.00492150
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [edi + 0x3c]
inc esi
cmp esi, 1
ja 0x416504
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [esp + 4]
push eax
push ebx
call fcn.0050e3e0
add esp, 8
lea edi, [esp + 0x10]
mov ecx, edi
push ebx
push 0xa1
push str.InitializeThread
push 1
call fcn.00455540
lea ecx, [esp + 0x4c]
push 0x521a46
push str.Failed_to_create_thread_for_async_install_tasks
call fcn.004147c0
mov ecx, edi
call fcn.00455590
cmp byte [ebx + 0xb], 0
jns 0x416504
push dword [esp + 4]
call fcn.004dfb35
add esp, 4
test esi, 0xfffffffe
setne bl
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.004e0685
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41e090
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [0x540010]
xor eax, ebp
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
je 0x41e137
lea esi, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.0041e1b0
movzx eax, byte [esi + 0xb]
mov edx, dword [esi]
mov ecx, eax
test al, al
jns 0x41e0cd
mov ecx, dword [ebp - 0x18]
mov esi, edx
mov dword [ebp - 0x28], edx
lea edx, [esi + ecx*2]
mov edi, edx
cmp ecx, 8
jl 0x41e105
mov dword [ebp - 0x20], eax
lea eax, [esi + ecx*2]
add eax, 0xfffffffe
mov edi, esi
mov dword [ebp - 0x24], eax
mov ebx, ecx
add ebx, 0xfffffff9
mov ecx, eax
sub ecx, edi
cmp word [edi], 0x2d
je 0x41e13b
add edi, 2
add ecx, 0xfffffffe
dec ebx
jne 0x41e0f1
mov edi, edx
mov eax, dword [ebp - 0x20]
cmp edi, edx
setne bl
sub edi, esi
cmp edi, 0xfffffffe
setne bh
test al, al
jns 0x41e121
push dword [ebp - 0x28]
call fcn.004dfb35
add esp, 4
and bl, bh
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0685
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov bl, 1
jmp 0x41e123
test edi, edi
je 0x41e100
cmp word [edi + 2], 0x2d
jne 0x41e169
cmp word [edi + 4], 0x73
jne 0x41e169
cmp word [edi + 6], 0x69
jne 0x41e169
cmp word [edi + 8], 0x6c
jne 0x41e169
cmp word [edi + 0xa], 0x65
jne 0x41e169
cmp word [edi + 0xc], 0x6e
je 0x41e17c
add edi, 2
sar ecx, 1
cmp ecx, 7
mov eax, dword [ebp - 0x24]
jg 0x41e0e8
jmp 0x41e100
cmp word [edi + 0xe], 0x74
jne 0x41e169
jmp 0x41e102
Function at 0x438db0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [0x540010]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
cmp byte [eax + 0xb], 0
jns 0x438dcf
mov eax, dword [eax]
sub esp, 0x1c
movaps xmm0, xmmword [0x5229a0]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor ebx, ebx
cmp eax, 0xffffffff
je 0x438e3e
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
movzx eax, byte [edi + 0xb]
mov ecx, edi
test al, al
jns 0x438e15
mov eax, dword [edi + 4]
mov ecx, dword [edi]
lea edx, [ebp - 0x14]
push ebx
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x438e3a
mov eax, dword [ebp - 0x14]
movzx ecx, byte [edi + 0xb]
test cl, cl
jns 0x438e35
mov ecx, dword [edi + 4]
cmp eax, ecx
sete bl
test esi, esi
je 0x438e45
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0685
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x438e60
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x540010]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
cmp byte [eax + 0xb], 0
jns 0x438e7f
mov eax, dword [eax]
mov edi, dword [ebp + 8]
sub esp, 0x1c
movaps xmm0, xmmword [0x524290]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x438f95
xor esi, esi
push esi
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
test eax, eax
je 0x438fcd
js 0x438fd4
mov ebx, eax
push eax
call fcn.004dfb05
add esp, 4
mov esi, eax
add eax, ebx
mov dword [ebp - 0x28], eax
xor eax, eax
mov ecx, esi
add ecx, eax
je 0x438fbe
mov byte [ecx], 0
inc eax
cmp ebx, eax
jne 0x438eeb
xor eax, eax
lea ecx, [ebp - 0x20]
mov dword [ecx], eax
push eax
push ecx
push ebx
push esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x438f69
cmp ebx, dword [ebp - 0x20]
jne 0x438f69
cmp ebx, 0x7ffffff8
jae 0x438fe3
cmp ebx, 0xa
jbe 0x438f51
mov edi, ebx
or edi, 7
inc edi
push edi
call fcn.004dfb05
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
or edi, 0x80000000
mov dword [ecx + 8], edi
mov edi, dword [ebp + 8]
mov dword [edi + 4], ebx
jmp 0x438f56
mov byte [edi + 0xb], bl
mov eax, edi
xor ecx, ecx
mov dl, byte [esi + ecx]
mov byte [eax + ecx], dl
inc ecx
cmp ebx, ecx
jne 0x438f58
mov byte [eax + ecx], 0
jmp 0x438f77
xorps xmm0, xmm0
movsd qword [edi], xmm0
mov dword [edi + 8], 0
test esi, esi
je 0x438f8c
mov eax, dword [ebp - 0x28]
dec eax
cmp ebx, eax
ja 0x438fdc
push esi
call fcn.004dfb35
add esp, 4
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x438fa3
jmp 0x438faa
xorps xmm0, xmm0
movsd qword [edi], xmm0
mov dword [edi + 8], 0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0685
mov eax, edi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
push 0x521354
call fcn.0044d640
push str....._third_partylibc_srcinclude_vector:1393:_assertion___n___size___failed:_vector___index_out_of_bounds_n
jmp 0x438fc3
lea ecx, [ebp - 0x1c]
call fcn.00416ce0
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
jmp 0x438fc3
mov ecx, edi
call fcn.004147a0
int3
Function at 0x453e30
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x214
mov esi, ecx
mov eax, dword [0x540010]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x212]
push 0x202
push 0xff
push edi
call fcn.004e3a90
add esp, 0xc
lea eax, [ebp - 0x218]
mov dword [eax], 0x101
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x453ed0
mov dword [ebp - 0x21c], eax
mov ecx, esi
push 0xa
push str.UICreated_
call fcn.00478c70
push edi
call fcn.004fbc1b
add esp, 4
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
js 0x453eec
mov edx, 4
mov ebx, eax
mov ecx, edx
sub ecx, ebx
cmp ecx, edi
jae 0x453efa
mov eax, edi
sub eax, edx
add eax, ebx
mov ecx, esi
lea esi, [ebp - 0x212]
push esi
push edi
push 0
push ebx
push ebx
push eax
push edx
call fcn.00478770
mov eax, dword [ebp - 0x21c]
test eax, eax
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0685
mov eax, ebx
add esp, 0x214
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, 0x7fffffff
and edx, dword [esi + 8]
dec edx
mov ebx, dword [esi + 4]
jmp 0x453ea7
mov ecx, eax
test edi, edi
mov eax, dword [ebp - 0x21c]
je 0x453ed0
mov eax, esi
test cl, cl
jns 0x453f0e
mov eax, dword [esi]
mov dword [ebp - 0x220], eax
lea eax, [eax + ebx*2]
lea ecx, [eax + edi*2]
lea edx, [ebp - 0x212]
cmp ecx, edx
seta cl
cmp eax, edx
ja 0x453f2d
test cl, cl
jne 0x453f66
lea ecx, [edi + edi]
push ecx
push edx
push eax
call fcn.004e3510
add esp, 0xc
add ebx, edi
cmp byte [esi + 0xb], 0
js 0x453f61
mov eax, ebx
and al, 0x7f
mov byte [esi + 0xb], al
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
mov word [ecx + ebx*2], 0
jmp 0x453ed0
mov dword [esi + 4], ebx
jmp 0x453f4a
push str....._third_partylibc_srcinclude__stringchar_traits.h:322:_assertion__std::__is_pointer_in_range___s1____s1____n____s2__failed:_char_traits::copy:_source_and_destination_ranges_overlap_n
push 0x521354
call fcn.0044d640
int3
Function at 0x47ad80
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x540010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x545990]
mov ecx, dword [0x543ad4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x47adcd
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0685
mov eax, 0x54598c
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x545990
call fcn.004dfba7
add esp, 4
cmp dword [0x545990], 0xffffffff
jne 0x47adb3
lea edi, [ebp - 0x128]
xor esi, esi
push 0x118
push esi
push edi
call fcn.004e3a90
add esp, 0xc
mov dword [edi - 4], 0x11c
lea edi, [ebp - 0x12c]
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ebx, [ebp - 0x130]
mov dword [ebx], esi
push ebx
push esi
push esi
push dword [edi + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
push 0x54
call fcn.004dfb05
add esp, 4
mov esi, eax
mov ebx, dword [ebx]
mov eax, dword [0x5459c0]
mov ecx, dword [0x543ad4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x47ae76
mov ecx, esi
push ebx
push 0x54599c
push edi
call fcn.0047af80
mov dword [0x54598c], esi
push 0x545990
call fcn.004dfc1d
add esp, 4
jmp 0x47adb3
push 0x5459c0
call fcn.004dfba7
add esp, 4
cmp dword [0x5459c0], 0xffffffff
jne 0x47ae50
xorps xmm0, xmm0
movups xmmword [0x5459ac], xmm0
movups xmmword [0x54599c], xmm0
mov dword [0x5459bc], 0
push 0x54599c
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x5459c0
call fcn.004dfc1d
add esp, 4
jmp 0x47ae50

Function at 0x47aee0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5459c0]
mov ecx, dword [0x543ad4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x47af11
movzx eax, word [0x54599c]
cmp eax, 9
jne 0x47af5c
xor eax, eax
inc eax
pop ebp
ret
push 0x5459c0
call fcn.004dfba7
add esp, 4
cmp dword [0x5459c0], 0xffffffff
jne 0x47af00
xorps xmm0, xmm0
movups xmmword [0x5459ac], xmm0
movups xmmword [0x54599c], xmm0
mov dword [0x5459bc], 0
push 0x54599c
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x5459c0
call fcn.004dfc1d
add esp, 4
jmp 0x47af00
test eax, eax
je 0x47af0f
cmp eax, 6
jne 0x47af6c
mov eax, 2
jmp 0x47af0f
cmp eax, 0xc
jne 0x47af78
mov eax, 3
jmp 0x47af0f
mov eax, 4
jmp 0x47af0f

Function at 0x47b850
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
sete al
add esp, 0x18
pop ebp
ret 4
Function at 0x47d690
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov dword [esp + 8], ecx
mov eax, dword [0x540010]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x30]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x10]
push 0x42
push str.file_win.cc
push str.Read
push esi
call fcn.00492120
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.00486fa0
xor ebx, ebx
dec ebx
cmp dword [ebp + 0xc], 0
js 0x47d777
mov edi, dword [ebp + 0x14]
test edi, edi
js 0x47d777
mov ebx, dword [ebp + 8]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
call fcn.004ddab0
test al, al
je 0x47d729
lea ecx, [esp + 0x28]
push 0
push edi
push dword [esp + 0x10]
push str.File::Read
call fcn.004ac8f0
pxor xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
lea eax, [esp + 0xc]
mov dword [eax], 0xffffffff
push esi
push eax
push edi
push dword [ebp + 0x10]
mov eax, dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47d797
mov ebx, dword [esp + 0xc]
test ebx, ebx
js 0x47d7a9
lea ecx, [esp + 0x28]
call fcn.004ac880
lea ecx, [esp + 0x30]
call fcn.00487010
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.004e0685
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
jmp 0x47d76e
int3

Function at 0x47d7b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, ecx
mov eax, dword [0x540010]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x10]
push 0x97
push str.file_win.cc
push str.WriteAtCurrentPos
push ebx
call fcn.00492120
add esp, 0x10
mov ecx, edi
push 0
push ebx
mov ebx, dword [ebp + 0xc]
call fcn.00486fa0
test ebx, ebx
js 0x47d882
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.004ddab0
test al, al
je 0x47d837
lea ecx, [esp + 0x10]
push 0
push ebx
push esi
push str.File::WriteAtCurrentPos
call fcn.004ac8f0
lea edi, [esp + 0xc]
mov dword [edi], 0xffffffff
push 0
push edi
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [edi]
lea ecx, [esp + 0x10]
call fcn.004ac880
lea ecx, [esp + 0x20]
call fcn.00487010
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.004e0685
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor esi, esi
dec esi
jmp 0x47d862