joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403bcc
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, 0x409af0
mov edx, 0x8000
mov eax, dword [edi]
call fcn.00403bc4
add eax, 2
call fcn.004023c8
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x403cd5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [edi], 0
jle 0x403cba
push 0
lea eax, [ebp - 4]
push eax
mov edx, 0x8000
mov eax, dword [edi]
call fcn.00403bc4
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x409af4]
push eax
call sub.kernel32.dll_ReadFile_1
mov eax, dword [ebp - 4]
sub dword [edi], eax
mov ax, word [0x409b02]
and ax, 1
cmp ax, 1
jne 0x403c6c
mov esi, dword [ebp - 4]
dec esi
test esi, esi
jl 0x403c6c
inc esi
xor ebx, ebx
call fcn.00405c44
mov edx, dword [ebp - 0xc]
mov dl, byte [edx + ebx]
xor al, dl
mov edx, dword [ebp - 0xc]
mov byte [edx + ebx], al
mov eax, dword [ebp - 0xc]
mov al, byte [eax + ebx]
call fcn.00405b6c
inc ebx
dec esi
jne 0x403c4a
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x409af8]
push eax
call sub.kernel32.dll_WriteFile_1
mov ecx, 0x409adc
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.00403ba0
cmp byte [0x409a96], 0
jne 0x403caa
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jne 0x403caa
xor eax, eax
jmp 0x403cac
mov al, 1
mov byte [0x409a96], al
cmp dword [edi], 0
jg 0x403c08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403cdc
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.004023e0
ret

Function at 0x4040b8
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebx
push esi
movzx eax, word [0x409ac4]
cmp eax, dword [0x409ac8]
jl 0x404137
push 0
push 0x409ac8
mov edx, 0x8000
mov eax, dword [0x409af0]
call fcn.00403bc4
push eax
mov eax, dword [0x409abc]
push eax
mov eax, dword [0x409af4]
push eax
call sub.kernel32.dll_ReadFile_1
mov ax, word [0x409b02]
and ax, 1
cmp ax, 1
jne 0x40412e
mov esi, dword [0x409ac8]
dec esi
test esi, esi
jl 0x40412e
inc esi
xor ebx, ebx
call fcn.00405c44
mov edx, dword [0x409abc]
xor byte [edx + ebx], al
mov eax, dword [0x409abc]
mov al, byte [eax + ebx]
call fcn.00405b6c
inc ebx
dec esi
jne 0x40410f
mov word [0x409ac4], 0
cmp dword [0x409ac8], 0
jne 0x404156
xor eax, eax
mov dword [0x409af0], eax
mov word [0x409ac4], 0
or eax, 0xffffffff
pop esi
pop ebx
ret
movzx eax, word [0x409ac4]
mov edx, dword [0x409abc]
movzx eax, byte [edx + eax]
inc word [0x409ac4]
pop esi
pop ebx
ret
Function at 0x4041c0
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov ebp, esp
mov eax, dword [0x409ab4]
mov dword [ebp], eax
mov ax, word [0x409ab8]
mov word [esp + 4], ax
mov bx, word [0x409acc]
mov si, word [esp + 4]
and si, 7
lea ecx, [esp + 4]
mov edx, ebp
mov eax, esi
call fcn.004041b4
lea ecx, [esp + 4]
mov edx, ebp
mov ax, 0x10
call fcn.00404190
mov si, word [ebp]
and si, 0xffff
lea ecx, [esp + 4]
mov edx, ebp
mov ax, 0x10
call fcn.004041b4
lea ecx, [esp + 4]
mov edx, ebp
mov ax, 0x10
call fcn.00404190
movzx eax, si
mov dx, word [ebp]
not dx
movzx edx, dx
and edx, 0xffff
cmp eax, edx
je 0x40424f
mov word [0x409acc], 0
lea ecx, [esp + 4]
mov edx, ebp
mov ax, 0x10
call fcn.004041b4
test si, si
je 0x4042cd
dec esi
lea ecx, [esp + 4]
mov edx, ebp
mov ax, 8
call fcn.00404190
movzx eax, bx
mov edx, dword [0x409ac0]
mov cl, byte [ebp]
mov byte [edx + eax], cl
inc ebx
cmp bx, 0x8000
jne 0x4042b9
push 0
lea eax, [esp + 0xc]
push eax
movzx edi, bx
push edi
mov eax, dword [0x409ac0]
push eax
mov eax, dword [0x409af8]
push eax
call sub.kernel32.dll_WriteFile_1
mov ecx, 0x409adc
mov edx, edi
mov eax, dword [0x409ac0]
call fcn.00403ba0
xor ebx, ebx
lea ecx, [esp + 4]
mov edx, ebp
mov ax, 8
call fcn.004041b4
test si, si
jne 0x404263
mov word [0x409acc], bx
mov eax, dword [ebp]
mov dword [0x409ab4], eax
mov ax, word [esp + 4]
mov word [0x409ab8], ax
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x405110
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, 0x409ab0
mov word [0x409ac4], 0
xor eax, eax
mov dword [0x409ac8], eax
mov word [0x409acc], 0
mov word [0x409ab8], 0
xor eax, eax
mov dword [0x409ab4], eax
xor ebx, ebx
xor eax, eax
mov dword [0x409abc], eax
xor eax, eax
mov dword [0x409ac0], eax
mov eax, 0x8002
call fcn.004023c8
mov dword [0x409abc], eax
mov eax, 0x8002
call fcn.004023c8
mov dword [0x409ac0], eax
xor eax, eax
push ebp
push 0x405262
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [0x409ad0], eax
xor eax, eax
mov dword [0x409ad4], eax
xor eax, eax
push ebp
push 0x40522c
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [esi], 0
lea eax, [ebp - 4]
call fcn.00405070
cmp bx, word [esi]
jae 0x4051b4
mov bx, word [esi]
cmp dword [ebp - 4], 0
je 0x40519f
cmp word [0x409acc], 0
jbe 0x405222
push 0
lea eax, [ebp - 8]
push eax
movzx eax, word [0x409acc]
push eax
mov eax, dword [0x409ac0]
push eax
mov eax, dword [0x409af8]
push eax
call sub.kernel32.dll_WriteFile_1
mov ecx, 0x409adc
movzx edx, word [0x409acc]
mov eax, dword [0x409ac0]
call fcn.00403ba0
cmp byte [0x409a96], 0
jne 0x405212
movzx eax, word [0x409acc]
cmp eax, dword [ebp - 8]
jne 0x405212
xor eax, eax
jmp 0x405214
mov al, 1
mov byte [0x409a96], al
mov word [0x409acc], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x405236
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405269
mov edx, 0x8001
mov eax, dword [0x409abc]
call fcn.004023e0
mov edx, 0x8001
mov eax, dword [0x409ac0]
call fcn.004023e0
ret

Function at 0x405308
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edx, edx
push ebp
push 0x405395
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
mov dword [0x409afc], eax
push 0
lea eax, [ebp - 4]
push eax
push 0x1e
push 0x409afc
mov eax, dword [0x409af4]
push eax
call sub.kernel32.dll_ReadFile_1
mov eax, dword [0x409afc]
cmp eax, dword [0x409aec]
je 0x405354
cmp eax, 0x50000000
je 0x405354
xor ebx, ebx
jmp 0x405356
mov bl, 1
test bl, bl
je 0x405366
mov eax, dword [0x409b0e]
mov dword [0x409af0], eax
jmp 0x40538b
xor edx, edx
mov dword [0x409af0], edx
cmp eax, 0x8074b50
jne 0x40538b
mov eax, dword [0x409a6c]
add eax, 0x10
xor edx, edx
call fcn.00403cf8
call fcn.00405308
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4053a1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x405b6c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov esi, 0x409ae0
mov edx, dword [esi]
mov eax, ebx
call fcn.00405b50
mov edi, eax
mov dword [esi], edi
and edi, 0xff
add dword [esi + 4], edi
imul ebx, dword [esi + 4], 0x8088405
inc ebx
mov dword [esi + 4], ebx
mov eax, ebx
call fcn.004038ac
call fcn.004038b0
mov edx, dword [esi + 8]
call fcn.00405b50
mov dword [esi + 8], eax
pop edi
pop esi
pop ebx
ret

Function at 0x405c68
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
mov esi, eax
mov eax, dword [ebp + 8]
call fcn.00402f00
xor eax, eax
push ebp
push 0x405d3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
cmp dword [ebp + 8], 0
je 0x405d25
mov eax, dword [ebp + 8]
call fcn.00405bb4
mov al, byte [ebp - 1]
dec eax
test al, al
jb 0x405ce4
inc eax
mov byte [ebp - 7], al
mov bl, 0
call fcn.00405c44
mov edi, ebx
and edi, 0xff
mov edx, edi
xor ecx, ecx
mov cl, byte [ebp - 1]
add edx, ecx
xor al, byte [esi + edx]
mov byte [ebp - 6], al
mov al, byte [ebp - 6]
call fcn.00405b6c
mov al, byte [ebp - 6]
mov byte [esi + edi], al
inc ebx
dec byte [ebp - 7]
jne 0x405cb4
xor eax, eax
mov al, byte [ebp - 1]
mov bl, byte [esi + eax - 1]
mov ax, word [ebp - 4]
and ax, 8
cmp ax, 8
je 0x405d12
mov eax, dword [ebp + 0x10]
call fcn.004038ac
call fcn.004038b0
cmp bl, al
jne 0x405d25
mov byte [ebp - 5], 1
jmp 0x405d25
xor eax, eax
mov al, bl
movzx edx, word [ebp + 0xc]
shr edx, 8
cmp eax, edx
jne 0x405d25
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d42
lea eax, [ebp + 8]
call fcn.00402c38
ret
Function at 0x4062fc
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
push 0
mov eax, dword [0x409af4]
push eax
call sub.kernel32.dll_GetFileSize_1
sub eax, dword [0x409a70]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x10016
jle 0x40632b
mov dword [ebp - 4], 0x10016
cmp dword [ebp - 4], 0x16
jle 0x4064a4
mov eax, dword [ebp - 4]
call fcn.004023c8
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x40649d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dx, 2
mov eax, 0xfffffffc
call fcn.00403cf8
push 0
lea eax, [ebp - 8]
push eax
push 4
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x409af4]
push eax
call sub.kernel32.dll_ReadFile_1
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x52
jne 0x4063aa
mov eax, dword [ebp - 0xc]
cmp byte [eax + 1], 0x53
jne 0x4063aa
mov eax, dword [ebp - 0xc]
cmp byte [eax + 2], 0x46
jne 0x4063aa
mov eax, dword [0x409a70]
sub eax, 0xfc
xor edx, edx
call fcn.00403cf8
mov byte [0x408210], 1
jmp 0x406484
mov eax, dword [ebp - 4]
neg eax
mov dx, 2
call fcn.00403cf8
mov esi, dword [0x409a6c]
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x409af4]
push eax
call sub.kernel32.dll_ReadFile_1
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jne 0x406484
mov ebx, dword [ebp - 4]
sub ebx, 0x16
test ebx, ebx
jl 0x406484
inc ebx
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
cmp byte [edx + eax], 0x50
jne 0x40647a
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
cmp byte [edx + eax + 1], 0x4b
jne 0x40647a
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
cmp byte [edx + eax + 2], 5
jne 0x40647a
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
cmp byte [edx + eax + 3], 6
jne 0x40647a
push 0
mov eax, dword [0x409af4]
push eax
call sub.kernel32.dll_GetFileSize_1
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + edx + 0x15]
shl edx, 8
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
movzx ecx, byte [edi + ecx + 0x14]
add edx, ecx
add edx, esi
add edx, dword [ebp - 8]
add edx, 0x16
cmp eax, edx
jg 0x40647a
mov eax, dword [0x409a70]
sub eax, 0xfc
xor edx, edx
call fcn.00403cf8
mov byte [0x408210], 1
jmp 0x406484
inc dword [ebp - 8]
dec ebx
jne 0x4063f9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4064a4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.004023e0
ret
cmp byte [0x408210], 0
jne 0x4064d2
push 0x10
mov eax, dword [0x4081f8]
push eax
mov eax, dword [0x408200]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov eax, dword [0x409af4]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00403480
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40759c
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
call fcn.00402b7c
call fcn.00403668
call fcn.00406da4
xor eax, eax
push ebp
push 0x407657
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x404
call fcn.004023c8
mov dword [0x409ad8], eax
call fcn.00405b18
call fcn.004064dc
test al, al
je 0x4075f2
push 0x406fe8
mov edx, 0x407668
xor ecx, ecx
mov eax, dword [0x40900c]
call fcn.004038b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40765e
cmp byte [0x409a96], 0
jne 0x40762c
mov eax, dword [0x409af4]
push eax
call sub.kernel32.dll_CloseHandle_1
test eax, eax
jne 0x40762c
push 0x10
mov eax, dword [0x408258]
push eax
mov eax, dword [0x408254]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov eax, dword [0x409aac]
call fcn.00402f10
push eax
call sub.kernel32.dll_DeleteFileA
mov edx, 0x404
mov eax, dword [0x409ad8]
call fcn.004023e0
mov eax, dword [0x409494]
push eax
call sub.kernel32.dll_RemoveDirectoryA
ret

Function at 0x438c9d
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x438a14
sub esi, 0x4900c804
mov edi, edi
call fcn.00438cd7
or edi, edi
sub esi, 0xbaf4b0ed
sub edi, edi
xor dword [ecx], ebx
or esi, edi
inc ecx
add esi, 0x27b4eb8
cmp ecx, edx
jne fcn.00438c9d
add esi, 0x684606b0
mov esi, 0xd91806a6
ret
Function at 0x1b015000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x1b015175
cmp dword [esp + 0x54], 0x40
jne 0x1b015175
cmp word [esp + 0x10], 0x5a4d
jne 0x1b015175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x1b015175
lea eax, [esp + 0x54]
push 0
push eax
push 0xf8
push 0x1b01b960
push esi
call ebx
test eax, eax
je 0x1b015175
cmp dword [esp + 0x54], 0xf8
jne 0x1b015175
cmp dword [0x1b01b960], 0x4550
jne 0x1b015175
mov eax, dword [0x1b01b976]
test ah, 0x20
jne 0x1b015175
mov edx, dword [0x1b01ba80]
xor eax, eax
mov ax, word [0x1b01b966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x1b01ba58], eax
je 0x1b015175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x1b01ba6c], eax
xor eax, eax
mov ax, word [0x1b01b966]
mov edx, dword [0x1b01ba58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x1b015175
cmp dword [esp + 0x54], edi
jne 0x1b015175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x1b01ba80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x1b01b9b4]
cmp edx, eax
ja 0x1b015175
mov edi, dword [0x1b01ba58]
mov ecx, dword [0x1b01b988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x1b015175
xor eax, eax
push 2
mov ax, word [0x1b01b966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x1b015175
cmp dword [edi - 0x20], ebx
ja 0x1b015175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x1b017769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1b01b190
cmp edx, dword [eax]
je 0x1b01778b
add eax, 8
inc ecx
cmp eax, 0x1b01b220
jl 0x1b01777c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1b01b190]
jne 0x1b0178b9
mov eax, dword [0x1b01bbb0]
cmp eax, 1
je 0x1b017893
test eax, eax
jne 0x1b0177bc
cmp dword [0x1b01b0e4], 1
je 0x1b017893
cmp edx, 0xfc
je 0x1b0178b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1b0177f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.1b018670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.1b018490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1b017836
lea eax, [ebp - 0x1a4]
push eax
call fcn.1b018490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1b01a45c
push edi
call fcn.1b018f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.1b018670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.1b018680
lea eax, [ebp - 0xa0]
push 0x1b01a43c
push eax
call fcn.1b018680
push dword [esi + 0x1b01b194]
lea eax, [ebp - 0xa0]
push eax
call fcn.1b018680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1b018e75
add esp, 0x2c
pop edi
jmp 0x1b0178b9
lea eax, [ebp + 8]
lea esi, [esi + 0x1b01b194]
push 0
push eax
push dword [esi]
call fcn.1b018490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x41b8a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x41b8d2
jl 0x41b8c5
test ecx, ecx
jne 0x41b8d2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x41b992
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.004203e0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x41b93e
jg 0x41b8fd
test esi, esi
je 0x41b93e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x41b915
mov eax, dword [esp + 0x10]
jl 0x41b90f
cmp eax, esi
jae 0x41b915
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.00522170
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x41b95f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x41b97b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x41b8e4
jl 0x41b97b
test ecx, ecx
jne 0x41b8e4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
sbb esi, edx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x41b9d0
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x41b9d0
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.00522170
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x41ba39
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x41b9f6
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x41ba24
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00531191
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x41ba39
cmp edi, eax
ja 0x41ba02
test edi, edi
je 0x41ba39
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00531191
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x433100
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
test esi, esi
je 0x43312b
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x433114
pop edi
mov eax, edx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret

Function at 0x446a70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x6794f8]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [eax]
mov edi, dword [0x8c06ec]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov esi, dword [eax]
mov eax, 0x6bca1af3
mov dword [edi + 0x104], esi
mov ecx, dword [0x8c06f4]
mov ebx, dword [ecx + 0x1c]
mov ecx, dword [ecx + 0x20]
sub ecx, ebx
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, esi
jbe 0x446b38
imul eax, esi, 0x98
mov ecx, edi
mov eax, dword [eax + ebx]
mov dword [0x8bc3c8], eax
call fcn.00408a00
push 8
call fcn.004d1379
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
lea ecx, [esp + 0x1c]
push ecx
push 0
push eax
push 0x430520
push 0
push 0
mov dword [eax + 4], 0x417070
call fcn.0052f572
add esp, 0x1c
mov dword [esp + 0x14], eax
test eax, eax
je 0x446b44
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x446b3d
push ecx
push eax
call fcn.004cf823
add esp, 8
test eax, eax
jne 0x446b3d
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d116e
mov esp, ebp
pop ebp
ret 4
call fcn.00420820
push 1
call fcn.004cec97
push 6
mov dword [esp + 0x1c], 0
call fcn.004cec97
int3
Function at 0x448ca0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x8c3e6c], 0
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
jne 0x448d5a
xor ebx, ebx
nop dword [eax]
mov edx, ebx
mov eax, ebx
shr eax, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, eax
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, edx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [ebx*4 + 0x8c3e68], eax
inc ebx
cmp ebx, 0x100
jb 0x448cc0
mov ebx, dword [ebp + 8]
not ebx
mov eax, ebx
test edi, edi
jle 0x448d86
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x8c3e68]
sub edi, 1
jne 0x448d65
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x448db8
nop dword [eax]
cmp cl, 0x23
jne 0x448d9f
cmp byte [esi], cl
jne 0x448d9f
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x8c3e68]
test cl, cl
jne 0x448d90
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x4493f0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x44940e
push 0x30f
push str.D:ProjectsMIDNIGHTLoaderMIDNIGHTLoaderimgui.cpp
push str.filename__file_open_mode
call fcn.00531ca7
add esp, 0xc
mov edx, 0x668788
mov ecx, esi
call fcn.00449250
mov esi, eax
test esi, esi
jne 0x449422
pop esi
ret
push ebx
push edi
push 2
push 0
push esi
call fcn.0053156e
add esp, 0xc
test eax, eax
jne 0x4494c0
push esi
call fcn.00532cdb
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x4494c0
push 0
push 0
push esi
call fcn.0053156e
add esp, 0xc
test eax, eax
jne 0x4494c0
mov eax, dword [0x67c358]
inc dword [eax + 0x314]
mov ecx, dword [eax + 0xc0]
lea eax, [edi + 1]
push eax
call ecx
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4494c0
push esi
push edi
push 1
push ebx
call fcn.00531191
add esp, 0x10
push esi
cmp eax, edi
je 0x4494ae
call fcn.0052f3e6
mov eax, dword [0x67c358]
push ebx
dec dword [eax + 0x314]
mov eax, dword [eax + 0xc4]
call eax
add esp, 8
xor eax, eax
pop edi
pop ebx
pop esi
ret
mov byte [ebx + edi], 0
call fcn.0052f3e6
add esp, 4
mov eax, ebx
pop edi
pop ebx
pop esi
ret
push esi
call fcn.0052f3e6
add esp, 4
xor eax, eax
pop edi
pop ebx
pop esi
ret