joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5095f0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5db116
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x66d4f4]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2a0]
test edi, edi
mov esi, dword [esp + 0x2a4]
je 0x5097ea
cmp byte [edi], 0
je 0x5097ea
test esi, esi
je 0x5097ea
cmp byte [esi], 0
je 0x5097ea
push 1
push 2
lea ecx, [esp + 0xd4]
call fcn.0040a750
push esi
push 0x60114c
lea eax, [esp + 0xd4]
push edi
push eax
mov dword [esp + 0x2a8], 0
call fcn.00409270
add esp, 8
push eax
call fcn.00409270
add esp, 8
push eax
call fcn.00409270
add esp, 8
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0xd0]
call fcn.00408c00
mov ebx, 0x10
cmp dword [eax + 0x18], ebx
jb 0x5096bf
mov eax, dword [eax + 4]
jmp 0x5096c2
add eax, 4
lea edx, [esp + 0x14c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 0x30]
mov esi, eax
call fcn.0040b640
cmp esi, 0xffffffff
je 0x5097cc
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x5096f0
push 1
call ebp
push 1
push 2
lea ecx, [esp + 0x54]
call fcn.0040a750
lea eax, [esp + 0x178]
push eax
lea ecx, [esp + 0x50]
push edi
push ecx
mov byte [esp + 0x2a4], 1
call fcn.00409270
add esp, 8
push eax
call fcn.00409270
mov edx, dword [esp + 0x154]
and edx, ebx
add esp, 8
cmp dl, bl
je 0x50977f
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x50]
call fcn.00408c00
cmp dword [eax + 0x18], ebx
jb 0x50974d
mov eax, dword [eax + 4]
jmp 0x509750
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x2c], ebx
jb 0x50976a
mov ecx, dword [esp + 0x18]
push ecx
call fcn.005a1b1d
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x98]
mov byte [esp + 0x298], 0
call fcn.00409510
lea edx, [esp + 0x98]
push edx
mov dword [esp + 0x9c], vtable.std::ios_base.0
call fcn.005d9cc4
add esp, 4
lea eax, [esp + 0x14c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x5096f0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0xcc]
mov dword [esp + 0x298], 0xffffffff
call fcn.004094e0
mov eax, 1
jmp 0x5097ec
xor eax, eax
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.005bd2d7
add esp, 0x288
ret
Function at 0x50ba00
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5db52c
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
push esi
mov eax, dword [0x66d4f4]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov esi, dword [esp + 0x134]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x50bb16
test al, 1
je 0x50bb16
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x50bb16
push 1
push 2
lea ecx, [esp + 0x2c]
call fcn.0040a750
mov dword [esp + 0x12c], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x28]
push str.setAttr_false___err
push eax
call fcn.00409270
add esp, 8
mov ecx, eax
call fcn.00419990
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x28]
call fcn.00408c00
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x12c], 1
jb 0x50bab9
mov eax, dword [eax + 4]
jmp 0x50babc
add eax, 4
push eax
push str.BaseLib::CxxDeleteFile
push 0x8ed
push str..common_function.cpp
push 0xf0000000
call fcn.00408f70
mov ecx, eax
call fcn.00512650
cmp dword [esp + 0x20], esi
jb 0x50baf0
mov edx, dword [esp + 0xc]
push edx
call fcn.005a1b1d
add esp, 4
lea ecx, [esp + 0x70]
mov dword [esp + 0x12c], 0xffffffff
call fcn.00409510
lea eax, [esp + 0x70]
mov dword [esp + 0x70], vtable.std::ios_base.0
push eax
jmp 0x50bc23
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x50bb3d
mov eax, 1
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x128
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x50bc2b
push 1
push 2
lea ecx, [esp + 0xac]
call fcn.0040a750
mov dword [esp + 0x12c], 2
call esi
push eax
lea ecx, [esp + 0xa8]
push str.deletefile_false___err
push ecx
call fcn.00409270
add esp, 8
mov ecx, eax
call fcn.00419990
lea edx, [esp + 8]
push edx
lea ecx, [esp + 0xa8]
call fcn.00408c00
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x12c], 3
jb 0x50bbb0
mov eax, dword [eax + 4]
jmp 0x50bbb3
add eax, 4
push eax
push str.BaseLib::CxxDeleteFile
push 0x8f6
push str..common_function.cpp
push 0xf0000000
call fcn.00408f70
mov ecx, eax
call fcn.00512650
cmp dword [esp + 0x20], esi
jb 0x50bbe7
mov eax, dword [esp + 0xc]
push eax
call fcn.005a1b1d
add esp, 4
xor eax, eax
lea ecx, [esp + 0xf0]
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], eax
mov byte [esp + 0xc], al
mov dword [esp + 0x12c], 0xffffffff
call fcn.00409510
lea ecx, [esp + 0xf0]
mov dword [esp + 0xf0], vtable.std::ios_base.0
push ecx
call fcn.005d9cc4
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x128
ret
Function at 0x50c620
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1c]
sub esp, 0x1c
push 0xffffffffffffffff
push 0x5db661
mov eax, dword fs:[0]
push eax
sub esp, 0x104
push ebx
push esi
push edi
mov eax, dword [0x66d4f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x24]
xor esi, esi
cmp eax, esi
je 0x50c859
cmp byte [eax], 0
je 0x50c859
mov ebx, 2
push 0x40000
mov dword [ebp - 4], ebx
call fcn.005a1b18
mov edi, eax
add esp, 4
cmp edi, esi
jne 0x50c719
push 1
push ebx
lea ecx, [ebp - 0x90]
call fcn.0040a750
lea eax, [ebp - 0x90]
push 0x6015b8
push eax
mov byte [ebp - 4], 3
call fcn.00409270
add esp, 8
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x90]
call fcn.00408c00
mov edi, 0x10
cmp dword [eax + 0x18], edi
mov byte [ebp - 4], 4
jb 0x50c6d0
mov esi, dword [eax + 4]
jmp 0x50c6d3
lea esi, [eax + 4]
call fcn.00408f70
push esi
push str.BaseLib::CRC32File
push 0xb29
push str..common_function.cpp
push 0xf0000000
mov ecx, eax
call fcn.00512650
cmp dword [ebp + 0x18], edi
jb 0x50c705
mov edx, dword [ebp + 4]
push edx
call fcn.005a1b1d
add esp, 4
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.00409510
lea eax, [ebp - 0x44]
push eax
jmp 0x50c8e9
mov ecx, dword [ebp + 0x24]
push 0x63b988
push ecx
or ebx, 0xffffffff
call fcn.005bd438
add esp, 8
mov dword [ebp + 0x24], eax
test eax, eax
mov dword [ebp - 4], 8
je 0x50c7b3
push eax
call fcn.005bf210
add esp, 4
test eax, eax
jne 0x50c7b1
jmp 0x50c750
mov edx, dword [ebp + 0x24]
push edx
mov eax, 0x40000
push eax
push 1
push edi
call fcn.005be7ff
add esp, 0x10
test eax, eax
jle 0x50c7a1
push ebx
push eax
push edi
call fcn.00506680
mov ebx, eax
add esi, 1
mov eax, 0x66666667
imul esi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
mov ecx, esi
add esp, 0xc
sub ecx, eax
jne 0x50c7a1
push 1
call fcn.0050f450
add esp, 4
mov edx, dword [ebp + 0x24]
push edx
call fcn.005bf210
add esp, 4
test eax, eax
je 0x50c750
not ebx
push edi
call fcn.005a1b1d
mov eax, dword [ebp + 0x24]
add esp, 4
test eax, eax
je 0x50c7cc
push eax
call fcn.005bd8f3
add esp, 4
mov eax, ebx
jmp 0x50c8fa
push 1
push 2
lea ecx, [ebp - 0x90]
call fcn.0040a750
lea edx, [ebp - 0x90]
push 0x63a684
push edx
mov dword [ebp - 4], esi
call fcn.00409270
add esp, 8
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x90]
call fcn.00408c00
mov edi, 0x10
cmp dword [eax + 0x18], edi
mov byte [ebp - 4], 1
jb 0x50c8a1
mov eax, dword [eax + 4]
jmp 0x50c8a4
add eax, 4
push eax
push str.BaseLib::CRC32File
push 0xb1e
push str..common_function.cpp
push 0xf0000000
call fcn.00408f70
mov ecx, eax
call fcn.00512650
cmp dword [ebp + 0x18], edi
jb 0x50c8d6
mov ecx, dword [ebp + 4]
push ecx
call fcn.005a1b1d
add esp, 4
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
call fcn.00409510
lea edx, [ebp - 0x44]
push edx
mov dword [ebp - 0x44], vtable.std::ios_base.0
call fcn.005d9cc4
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x1c
mov esp, ebp
pop ebp
ret
Function at 0x50f230
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x50f25e
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.005bf2a9
mov dword [eax], esi
or eax, 0xffffffff
pop esi
ret

Function at 0x50f290
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x50f2be
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.005bf2a9
mov dword [eax], esi
or eax, 0xffffffff
pop esi
ret

Function at 0x50f370
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x50f3ad
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.005bf2a9
mov dword [eax], esi
or eax, 0xffffffff
pop esi
ret

Function at 0x50f3b0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x50f3e8
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.005bf2a9
mov dword [eax], esi
or eax, 0xffffffff
pop esi
ret

Function at 0x50f420
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x50f44e
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.005bf2a9
mov dword [eax], esi
or eax, 0xffffffff
pop esi
ret

Function at 0x50f490
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x50f4b5
mov eax, dword [esp + 0xc]
ret
or eax, 0xffffffff
ret
Function at 0x50f4c0
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, dword [esp + 8]
test al, 1
push esi
mov esi, closesocket
je 0x50f4d5
mov esi, 0x40000000
jmp 0x50f4de
test al, 2
je 0x50f4de
mov esi, 0xc0000000
mov ecx, eax
and ecx, 0x500
cmp ecx, 0x500
mov edx, 3
jne 0x50f4fa
mov edx, 1
jmp 0x50f52b
mov ecx, eax
and ecx, 0x300
cmp ecx, 0x300
jne 0x50f511
mov edx, 2
jmp 0x50f52b
test eax, 0x100
je 0x50f51f
mov edx, 4
jmp 0x50f52b
test eax, 0x200
je 0x50f52b
mov edx, 5
xor ecx, ecx
test al, 0x40
je 0x50f536
mov ecx, 0x4000100
test eax, eax
jns 0x50f540
or ecx, 0x80000000
test eax, 0x40000000
je 0x50f54d
or ecx, 0x40000000
test eax, 0x20000000
je 0x50f55a
or ecx, 0x20000000
test eax, 0x10000000
je 0x50f567
or ecx, 0x10000000
test eax, 0x8000000
je 0x50f574
or ecx, 0x8000000
test eax, 0x4000000
je 0x50f581
or ecx, 0x4000000
test eax, 0x2000000
je 0x50f58e
or ecx, 0x2000000
test eax, 0x1000000
je 0x50f59b
or ecx, 0x1000000
mov eax, dword [esp + 0x10]
push 0
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x20]
push edx
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
pop esi
ret

Function at 0x50f5c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push ecx
push ebx
push edi
push edx
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x50f616
push esi
call fcn.005bf2a9
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
call fcn.005bf2a9
cmp dword [eax], 0x2738
pop esi
jne 0x50f613
test bl, 2
je 0x50f613
mov eax, edi
pop edi
pop ebx
ret
or eax, 0xffffffff
pop edi
pop ebx
ret
Function at 0x50f840
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x5dbc16
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x66d4f4]
xor eax, esp
push eax
lea eax, [esp + 0xbc]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor edi, edi
lea esi, [ebp + 0x18]
test esi, esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
je 0x50f88d
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0x14]
xor ecx, ecx
cmp eax, ecx
jbe 0x50f8a8
mov dword [esp + 0x14], eax
mov dword [ebp + 4], ecx
mov dword [ebp + 0x14], ecx
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], ecx
mov edi, eax
cmp esi, ecx
je 0x50f8b3
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jle 0x50fa66
cmp dword [esp + 0xcc], 0
je 0x50fa2e
call sub.KERNEL32.dll_GetCurrentThreadId
xor ecx, ecx
test edi, edi
jle 0x50f8ee
mov edx, dword [esp + 0x18]
cmp dword [edx + ecx*4], eax
je 0x50f8e6
add ecx, 1
cmp ecx, edi
jl 0x50f8d4
jmp 0x50f8ee
cmp ecx, edi
jl 0x50fa2e
xor esi, esi
test edi, edi
jle 0x50fa2e
mov edi, dword [esp + 0xd0]
nop
mov eax, dword [ebx + esi*4]
test eax, eax
je 0x50fa1d
push edi
push eax
mov dword [esp + 0x24], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x50fa04
push 1
push 2
lea ecx, [esp + 0x44]
call fcn.0040a750
push edi
lea eax, [esp + 0x40]
push 0x60193c
push eax
mov dword [esp + 0xd0], 0
call fcn.00409270
add esp, 8
mov ecx, eax
call fcn.00419990
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x40]
call fcn.00408c00
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0xc4], 1
jb 0x50f979
mov eax, dword [eax + 4]
jmp 0x50f97c
add eax, 4
push eax
push str.BaseLib::CTask::Close
push 0xbf
push str..common_task.cpp
push 0xf0000000
call fcn.00408f70
mov ecx, eax
call fcn.00512650
cmp dword [esp + 0x38], 0x10
jb 0x50f9b1
mov edx, dword [esp + 0x24]
push edx
call fcn.005a1b1d
add esp, 4
lea ecx, [esp + 0x88]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
mov dword [esp + 0xc4], 0xffffffff
call fcn.00409510
lea eax, [esp + 0x88]
push eax
mov dword [esp + 0x8c], vtable.std::ios_base.0
call fcn.005d9cc4
mov ecx, dword [ebx + esi*4]
add esp, 4
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebx + esi*4]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x1c]
mov dword [ecx + esi*4], edx
add esi, 1
cmp esi, dword [esp + 0x14]
jl 0x50f900
mov edi, dword [esp + 0x14]
xor esi, esi
test edi, edi
jle 0x50fa53
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ebx, [ebx]
mov eax, dword [ebx + esi*4]
test eax, eax
je 0x50fa4a
push eax
call edi
add esi, 1
cmp esi, dword [esp + 0x14]
jl 0x50fa40
push ebx
call fcn.005a1b1d
mov eax, dword [esp + 0x1c]
push eax
call fcn.005a1b1d
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0xbc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret 8
Function at 0x510110
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov cl, byte [edi]
test cl, cl
mov esi, 0x811c9dc5
mov edx, edi
je 0x510144
mov al, cl
jmp 0x510130
imul esi, esi, 0x1000193
movzx eax, al
add edx, 1
xor esi, eax
mov al, byte [edx]
test al, al
jne 0x510130
xor eax, eax
test cl, cl
mov edx, edi
je 0x510168
lea esp, [esp]
mov edi, eax
shl edi, 5
movzx ecx, cl
sub edi, eax
add edi, ecx
mov cl, byte [edx + 1]
add edx, 1
test cl, cl
mov eax, edi
jne 0x510150
xor eax, esi
and eax, 0xffff
pop edi
xor eax, esi
pop esi
ret

Function at 0x512a50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x1c
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push 0x601a04
push 0x6019f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x512acf
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 5
push esi
mov byte [esp + 0x20], 0x33
mov byte [esp + 0x21], 0xc0
mov byte [esp + 0x22], 0xc2
mov byte [esp + 0x23], 4
mov byte [esp + 0x24], 0
call edi
push 0
push 5
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push eax
push 5
push esi
call edi
pop edi
mov ecx, dword [esp + 0x1c]
pop esi
xor ecx, esp
call fcn.005bd2d7
add esp, 0x1c
ret
Function at 0x514140
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
jle 0x51415b
mov ecx, dword [esp + 4]
mov edi, edi
xor byte [eax + ecx], 2
add eax, 1
cmp eax, edx
jl 0x514150
ret

Function at 0x5141a0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0x63b990
push eax
call fcn.005bd438
mov esi, eax
add esp, 8
test esi, esi
je 0x5141e9
mov edx, dword [esp + 0xc]
mov eax, edx
push edi
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x5141c3
push esi
sub eax, edi
push 1
push eax
push edx
call fcn.005bd6b0
push esi
call fcn.005bd8f3
add esp, 0x14
pop edi
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x5141f0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0x601b94
push eax
call fcn.005bd438
mov esi, eax
add esp, 8
test esi, esi
je 0x51422b
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push esi
push 1
push ecx
push edx
call fcn.005bd6b0
push esi
call fcn.005bd8f3
add esp, 0x14
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x514230
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov eax, ebx
push edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x514240
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x10]
push 0x601b94
push eax
call fcn.005bd438
mov esi, eax
add esp, 8
test esi, esi
je 0x514281
push esi
push 1
push edi
push ebx
call fcn.005bd6b0
push esi
call fcn.005bd8f3
add esp, 0x14
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x514290
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x5142f8
cmp byte [ebx], 0
je 0x5142f8
push esi
mov esi, ebx
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
add esi, 1
test al, al
jne 0x5142a5
sub esi, ecx
push esi
call fcn.005a1b18
push esi
mov edi, eax
push ebx
push edi
call fcn.005c3170
add esp, 0x10
xor eax, eax
test esi, esi
jle 0x5142db
lea esp, [esp]
xor byte [eax + edi], 2
add eax, 1
cmp eax, esi
jl 0x5142d0
mov eax, dword [esp + 0x10]
push esi
push edi
push eax
call fcn.005141f0
push edi
mov esi, eax
call fcn.005a1b1d
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
ret
xor eax, eax
pop ebx
ret
Function at 0x514300
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5dc596
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x66d4f4]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov eax, dword [esp + 0xcc]
mov ebx, dword [esp + 0xc8]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x14], edi
je 0x514446
cmp byte [eax], 0
je 0x514446
push 0x63b988
push eax
call fcn.005bd438
mov esi, eax
add esp, 8
mov dword [esp + 0x14], esi
cmp esi, edi
mov dword [esp + 0xc0], 2
je 0x514424
push 2
push edi
push esi
call fcn.005be8a1
push esi
call fcn.005be152
push edi
push edi
push esi
mov ebp, eax
call fcn.005be8a1
push ebp
call fcn.005a1b18
mov edi, eax
add esp, 0x20
test edi, edi
je 0x514422
push esi
push 1
push ebp
push edi
call fcn.005be7ff
add esp, 0x10
mov dword [esp + 0xb0], 0xf
mov dword [esp + 0xac], 0
mov byte [esp + 0x9c], 0
push ebp
push edi
lea ecx, [esp + 0xa0]
mov byte [esp + 0xc8], 3
call fcn.004078e0
push edi
call fcn.005a1b1d
add esp, 4
lea eax, [esp + 0x98]
push eax
mov ecx, ebx
call fcn.0040b660
lea ecx, [esp + 0x98]
call fcn.0040b640
push esi
call fcn.005bd8f3
add esp, 4
jmp 0x514512
xor edi, edi
push 0x63a990
mov ecx, ebx
call fcn.0040b540
cmp esi, edi
je 0x514512
push esi
call fcn.005bd8f3
add esp, 4
jmp 0x514512
push 1
push 2
lea ecx, [esp + 0x20]
call fcn.0040a750
lea ecx, [esp + 0x18]
push 0x601a6c
push ecx
mov dword [esp + 0xc8], edi
call fcn.00409270
add esp, 8
lea edx, [esp + 0x98]
push edx
lea ecx, [esp + 0x1c]
call fcn.00408c00
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0xc0], 1
jb 0x514494
mov eax, dword [eax + 4]
jmp 0x514497
add eax, 4
push eax
push str.BaseLib::ReadFileToString
push 0x47
push str..common_stdfile.cpp
push 0xf0000000
call fcn.00408f70
mov ecx, eax
call fcn.00512650
cmp dword [esp + 0xb0], esi
jb 0x5144ce
mov eax, dword [esp + 0x9c]
push eax
call fcn.005a1b1d
add esp, 4
lea ecx, [esp + 0x64]
mov dword [esp + 0xc0], 0xffffffff
call fcn.00409510
lea ecx, [esp + 0x64]
push ecx
mov dword [esp + 0x68], vtable.std::ios_base.0
call fcn.005d9cc4
add esp, 4
push edi
mov dword [ebx + 0x18], 0xf
mov dword [ebx + 0x14], edi
push 0x63a990
mov ecx, ebx
mov byte [ebx + 4], 0
call fcn.00408ea0
mov eax, ebx
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.005bd2d7
add esp, 0xb0
ret
Function at 0x515a20
Capabilities:
Get disk information

Disassembly:
sub esp, 0x24
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x20], eax
lea eax, [esp + 4]
push 1
push eax
call fcn.00508a90
mov eax, dword [esp + 0x10]
add esp, 8
cmp dword [esp + 0x1c], 0x10
jae 0x515a4c
lea eax, [esp + 8]
push 0
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push eax
call fcn.005c2417
add esp, 0x14
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x515a97
cmp dword [esp + 0x1c], 0x10
jb 0x515a83
mov eax, dword [esp + 8]
push eax
call fcn.005a1b1d
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005bd2d7
add esp, 0x24
ret
cmp dword [esp + 0x1c], 0x10
jb 0x515aab
mov ecx, dword [esp + 8]
push ecx
call fcn.005a1b1d
add esp, 4
mov ecx, dword [esp + 0x20]
xor ecx, esp
xor eax, eax
call fcn.005bd2d7
add esp, 0x24
ret