joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5e8240
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.007081d0
mov dword [ebp - 0xc], 0
jmp 0x5e825f
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x10]
jge 0x5e827f
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0xc]
movzx eax, byte [edx]
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
cmp eax, edx
jne 0x5e827f
jmp 0x5e8256
mov eax, dword [ebp + 0x10]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x5e8293
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jl 0x5e82b9
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
movzx eax, byte [edx]
test eax, eax
jne 0x5e82b9
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 8]
movzx edx, byte [ecx]
cmp edx, 0xff
jne 0x5e82b9
jmp 0x5e828a
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jge 0x5e82c9
or eax, 0xffffffff
jmp 0x5e8396
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 8]
jle 0x5e82dc
mov eax, dword [ebp - 0xc]
shl eax, 3
jmp 0x5e8396
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0xc]
movzx eax, byte [edx]
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
xor eax, edx
mov byte [ebp - 1], al
movzx eax, byte [ebp - 1]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
sub ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x7e
ja case.0x5e8313.1
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x5e83bc]
jmp dword [eax*4 + 0x5e839c]
mov dword [ebp - 8], 7
jmp 0x5e835e
mov dword [ebp - 8], 6
jmp 0x5e835e
mov dword [ebp - 8], 5
jmp 0x5e835e
mov dword [ebp - 8], 4
jmp 0x5e835e
mov dword [ebp - 8], 3
jmp 0x5e835e
mov dword [ebp - 8], 2
jmp 0x5e835e
mov dword [ebp - 8], 1
jmp 0x5e835e
or eax, 0xffffffff
jmp 0x5e8396
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
movzx eax, byte [ebp - 1]
and edx, eax
jne 0x5e8386
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
movzx eax, byte [ebp - 1]
and edx, eax
movzx ecx, byte [ebp - 1]
cmp edx, ecx
je 0x5e838d
or eax, 0xffffffff
jmp 0x5e8396
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
lea eax, [eax + edx*8]
mov esp, ebp
pop ebp
ret
Function at 0x65ccd0
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xec
call fcn.007081d0
mov eax, dword [0x7d0e44]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xe8], 0
mov eax, dword [ebp + 0x14]
push eax
push str.SHA512
mov ecx, dword [ebp + 8]
push ecx
call fcn.0055aa70
add esp, 0xc
mov dword [ebp - 0xe8], eax
cmp dword [ebp - 0xe8], 0
jne 0x65cd1c
xor eax, eax
jmp 0x65cdfb
push 0
mov edx, dword [ebp - 0xe8]
push edx
push 0
lea eax, [ebp - 0x44]
push eax
push 0x20
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00559ad0
add esp, 0x18
mov dword [ebp - 0xec], eax
mov edx, dword [ebp - 0xe8]
push edx
call fcn.0055aab0
add esp, 4
cmp dword [ebp - 0xec], 0
jne 0x65cd6c
push 0x40
lea eax, [ebp - 0x44]
push eax
call fcn.00401320
add esp, 8
xor eax, eax
jmp 0x65cdfb
mov ecx, 1
imul edx, ecx, 0
movzx eax, byte [ebp + edx - 0x44]
and eax, 0xf8
mov ecx, 1
imul edx, ecx, 0
mov byte [ebp + edx - 0x44], al
mov eax, 1
imul ecx, eax, 0x1f
movzx edx, byte [ebp + ecx - 0x44]
and edx, 0x3f
mov eax, 1
imul ecx, eax, 0x1f
mov byte [ebp + ecx - 0x44], dl
mov edx, 1
imul eax, edx, 0x1f
movzx ecx, byte [ebp + eax - 0x44]
or ecx, 0x40
mov edx, 1
imul eax, edx, 0x1f
mov byte [ebp + eax - 0x44], cl
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0xe4]
push edx
call fcn.0065c750
add esp, 8
lea eax, [ebp - 0xe4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0065c670
add esp, 8
push 0x40
lea edx, [ebp - 0x44]
push edx
call fcn.00401320
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.007081b5
mov esp, ebp
pop ebp
ret
Function at 0x66a770
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14
call fcn.007081d0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x18]
cmp ecx, dword [ebp + 0x14]
jne 0x66a7a8
mov edx, dword [ebp - 8]
movzx eax, byte [edx]
cmp eax, 0x6a
je 0x66a7da
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx]
cmp edx, 0x6b
je 0x66a7da
call fcn.00516cf0
push str.RSA_padding_check_X931
push 0x43
push str.crypto_rsa_rsa_x931.c
call fcn.00516d40
add esp, 0xc
push 0
push 0x89
push 4
call fcn.00516d90
add esp, 0xc
or eax, 0xffffffff
jmp 0x66a917
mov eax, dword [ebp - 8]
movzx ecx, byte [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 0x14], 0x6b
jne 0x66a8b7
mov eax, dword [ebp + 0x14]
sub eax, 3
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x66a811
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0xc]
jge 0x66a877
mov eax, dword [ebp - 8]
mov cl, byte [eax]
mov byte [ebp - 1], cl
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
movzx eax, byte [ebp - 1]
cmp eax, 0xba
jne 0x66a837
jmp 0x66a877
movzx ecx, byte [ebp - 1]
cmp ecx, 0xbb
je 0x66a875
call fcn.00516cf0
push str.RSA_padding_check_X931
push 0x4e
push str.crypto_rsa_rsa_x931.c
call fcn.00516d40
add esp, 0xc
push 0
push 0x8a
push 4
call fcn.00516d90
add esp, 0xc
or eax, 0xffffffff
jmp 0x66a917
jmp 0x66a808
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0x10], 0
jne 0x66a8b5
call fcn.00516cf0
push str.RSA_padding_check_X931
push 0x56
push str.crypto_rsa_rsa_x931.c
call fcn.00516d40
add esp, 0xc
push 0
push 0x8a
push 4
call fcn.00516d90
add esp, 0xc
or eax, 0xffffffff
jmp 0x66a917
jmp 0x66a8c0
mov eax, dword [ebp + 0x14]
sub eax, 2
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
cmp edx, 0xcc
je 0x66a900
call fcn.00516cf0
push str.RSA_padding_check_X931
push 0x5f
push str.crypto_rsa_rsa_x931.c
call fcn.00516d40
add esp, 0xc
push 0
push 0x8b
push 4
call fcn.00516d90
add esp, 0xc
or eax, 0xffffffff
jmp 0x66a917
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x6f0fb0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call fcn.007081d0
push 0x78
push 0
mov eax, dword [ebp + 8]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0
jmp 0x6f0fdf
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 8
jge 0x6f0ffa
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx*4 + 0x7c21c0]
mov dword [eax + edx*4], ecx
jmp 0x6f0fd6
mov esp, ebp
pop ebp
ret
Function at 0x401037
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [0x438608]
mov dword [ebp - 0x28], eax
mov eax, dword [0x43860c]
xor ebx, ebx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
call fcn.00401030
mov eax, dword [0x438610]
add dword [ebp - 0x14], 0x23f
mov dword [ebp - 0x30], eax
mov eax, dword [0x438614]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, edi
shl eax, 4
cmp dword [0x1a291cc], 0xc
mov dword [ebp - 4], eax
jne 0x4010b9
push ebx
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x43c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov eax, dword [0x1a291cc]
cmp eax, 0xfa9
jne 0x4010d5
mov dword [0x1a291c8], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010ed
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [0x1a2911c], ebx
mov eax, dword [ebp - 0x14]
add eax, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [0x1a291c4], 0xf4ea3dee
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 8], eax
sub esi, dword [ebp - 8]
cmp dword [0x1a291cc], 0xc
mov dword [ebp - 4], eax
jne 0x40114e
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add eax, esi
mov dword [ebp - 0x1c], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x14], 0x61c88647
sub edi, eax
dec dword [ebp - 0x20]
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], edi
jne 0x401089
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
pop ebx
leave
ret 4
Function at 0x40693e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4377a0]
jne 0x406948
repz ret
jmp fcn.0040b95e

Function at 0x40b1f2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406a3c
and dword [ebp - 4], 0
cmp dword [0x441698], 0
mov ebx, eax
jne 0x40b2a3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b354
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b354
push eax
call fcn.004069ca
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x441698], eax
call esi
push eax
call fcn.004069ca
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44169c], eax
call esi
push eax
call fcn.004069ca
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4416a0], eax
call esi
push eax
call fcn.004069ca
pop ecx
mov dword [0x4416a8], eax
test eax, eax
je 0x40b2a3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004069ca
pop ecx
mov dword [0x4416a4], eax
mov eax, dword [0x4416a4]
cmp eax, ebx
je 0x40b2fb
cmp dword [0x4416a8], ebx
je 0x40b2fb
push eax
call fcn.00406a45
push dword [0x4416a8]
mov esi, eax
call fcn.00406a45
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b2fb
test edi, edi
je 0x40b2fb
call esi
test eax, eax
je 0x40b2f2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b2f2
test byte [ebp - 0xc], 1
jne 0x40b2fb
or dword [ebp + 0x10], 0x200000
jmp 0x40b334
mov eax, dword [0x44169c]
cmp eax, ebx
je 0x40b334
push eax
call fcn.00406a45
pop ecx
test eax, eax
je 0x40b334
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b334
mov eax, dword [0x4416a0]
cmp eax, ebx
je 0x40b334
push eax
call fcn.00406a45
pop ecx
test eax, eax
je 0x40b334
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x441698]
call fcn.00406a45
pop ecx
test eax, eax
je 0x40b354
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b356
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x489d70
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x8c], 1
jne 0x489dff
xor eax, eax
cmp dword [edi + 0x60], 8
mov word [ebp - 8], ax
mov dword [ebp - 4], eax
lea eax, [edi + 0x4c]
jb 0x489d9b
mov eax, dword [eax]
push str.rb__ccsUTF_8
push eax
lea eax, [ebp - 4]
push eax
call fcn.006894a4
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x489dff
push eax
push 2
lea eax, [ebp - 8]
push 1
push eax
call fcn.00689979
push dword [ebp - 4]
call fcn.00689584
mov cl, byte [ebp - 8]
add esp, 0x14
mov al, byte [ebp - 7]
cmp cl, 0xff
jne 0x489ddc
cmp al, 0xfe
je 0x489dff
cmp al, 0xff
jne 0x489de5
cmp cl, 0xfe
je 0x489dff
mov eax, dword [ebx]
test eax, eax
je 0x489df8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
mov ecx, edi
call fcn.0048b370
cmp dword [edi + 0x60], 8
lea esi, [edi + 0x4c]
jb 0x489e0c
mov eax, dword [esi]
jmp 0x489e0e
mov eax, esi
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x489eac
cmp dword [esi + 0x14], 8
jb 0x489e36
mov esi, dword [esi]
push 0
push 0x80
push 1
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x489e61
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x8c], 1
push 0
jne 0x489e91
mov ecx, 0xfeff
mov word [ebp - 4], cx
lea ecx, [ebp - 8]
push ecx
push 2
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 8]
mov word [ebp - 4], 0xbbef
push ecx
push 3
lea ecx, [ebp - 4]
mov byte [ebp - 2], 0xbf
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x48a460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x48a470
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
sar esi, 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
add esi, esi
push esi
push dword [ebp + 8]
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 4
push 0x782e04
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x48a4d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x48a4e0
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push esi
push dword [ebp + 8]
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 2
push 0x782e0c
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x48fbd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c8e10
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x80236c]
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_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00669aed
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0066bfc4
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 0x492f00
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
push ebx
push esi
lea esi, [eax + 0x4c]
mov dword [ebp - 0xc], eax
xor bl, bl
cmp dword [esi + 0x14], 8
push edi
jb 0x492f1d
mov eax, dword [esi]
jmp 0x492f1f
mov eax, esi
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x492f4a
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x492f69
mov eax, dword [ebp - 0x14]
mov bl, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x492f75
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x492feb
cmp dword [ebp - 4], 0
jl 0x492feb
jg 0x492f91
cmp dword [ebp - 8], 0xa00000
jb 0x492feb
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x68]
lea edi, [ebx + 0x68]
test eax, eax
je 0x492fa5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x14], 8
jb 0x492fad
mov esi, dword [esi]
push 0
push 0x80
push 5
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
test eax, eax
je 0x492fd9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
mov eax, dword [ebx]
mov ecx, ebx
push edi
mov eax, dword [eax]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x493ac0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
test esi, esi
je 0x493b23
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x493b23
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x493af2
pop edi
shr eax, 4
pop esi
and al, 1
pop ebx
pop ebp
ret 4
push esi
call fcn.006a1535
mov edi, eax
push 0x5c
push edi
call fcn.006c7d9a
add esp, 0xc
test eax, eax
je 0x493b41
xor ecx, ecx
mov word [eax], cx
mov ecx, ebx
push edi
call fcn.00493ac0
push edi
test al, al
jne 0x493b2c
call fcn.00694690
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4
call fcn.00694690
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x493b23
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 4
Function at 0x497930
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c91a9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x80236c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x808420
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 5
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x2c]
mov dword [esi], vtable.TiXmlDeclaration.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x808420
mov dword [esi + 0x30], 0x808420
mov dword [esi + 0x34], 0x808420
mov edi, dword [ebp + 8]
mov edx, edi
mov byte [ebp - 4], 3
lea ebx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4979d1
sub edx, ebx
push edx
push edi
call fcn.00497660
mov edi, dword [ebp + 0xc]
mov edx, edi
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4979f0
sub edx, ecx
lea ecx, [esi + 0x30]
push edx
push edi
call fcn.00497660
mov edi, dword [ebp + 0x10]
mov edx, edi
lea ecx, [edx + 1]
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x497a10
sub edx, ecx
lea ecx, [esi + 0x34]
push edx
push edi
call fcn.00497660
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 0xc

Function at 0x497a40
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c91e3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x80236c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x808420
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x808420
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x724a60
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.00497660
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x499070
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c92f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x80236c]
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 edi, ecx
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4990b5
push esi
push esi
push esi
push 2
call fcn.0049ca60
xor al, al
jmp 0x49921f
call fcn.004982a0
push 2
push 0
push esi
mov dword [edi + 8], 0xffffffff
mov dword [edi + 4], 0xffffffff
call fcn.00689d8b
push esi
call fcn.0068a432
push 0
push 0
push esi
mov ebx, eax
call fcn.00689d8b
add esp, 0x1c
test ebx, ebx
jg 0x499101
push 0
push 0
push 0
push 0xd
mov ecx, edi
call fcn.0049ca60
xor al, al
jmp 0x49921f
mov dword [ebp - 0x18], 0x808420
push ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.00497750
lea eax, [ebx + 1]
push eax
call fcn.00669ace
push esi
push 1
push ebx
push eax
mov dword [ebp - 0x1c], eax
mov byte [eax], 0
call fcn.00689979
add esp, 0x14
cmp eax, 1
je 0x49915a
push dword [ebp - 0x1c]
call fcn.00669ad7
add esp, 4
mov ecx, edi
push 0
push 0
push 0
push 2
call fcn.0049ca60
xor bl, bl
jmp 0x499209
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov esi, eax
mov byte [eax + ebx], 0
mov al, byte [eax]
test al, al
je 0x4991c7
nop dword [eax + eax]
cmp al, 0xa
jne 0x499188
mov eax, esi
sub eax, ecx
inc eax
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.00497610
inc esi
mov ecx, esi
jmp 0x4991c1
cmp al, 0xd
jne 0x4991c0
mov eax, esi
sub eax, ecx
test eax, eax
jle 0x49919e
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.00497610
push 1
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0xa
push eax
lea ecx, [ebp - 0x18]
call fcn.00497610
xor eax, eax
cmp byte [esi + 1], 0xa
sete al
inc eax
add esi, eax
mov ecx, esi
jmp 0x4991c1
inc esi
mov al, byte [esi]
test al, al
jne 0x499170
sub esi, ecx
je 0x4991d5
push esi
push ecx
lea ecx, [ebp - 0x18]
call fcn.00497610
push dword [ebp - 0x1c]
call fcn.00669ad7
mov esi, dword [edi]
add esp, 4
mov eax, dword [ebp - 0x18]
add eax, 8
push dword [ebp + 0xc]
mov esi, dword [esi + 0xc]
mov ecx, esi
push 0
push eax
call dword [0x71a5f8]
mov ecx, edi
call esi
cmp byte [edi + 0x2c], 0
je 0x499207
xor bl, bl
jmp 0x499209
mov bl, 1
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x808420
je 0x49921d
push ecx
call fcn.00669ad7
add esp, 4
mov al, bl
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.00669adc
mov esp, ebp
pop ebp
ret 8