joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
imul edx, dword [ebp + 8], 0x13c
mov eax, dword [ecx + 0x2a0]
push ebx
push esi
push edi
xor edi, edi
mov eax, dword [edx + eax + 0x100]
mov esi, eax
shr esi, 2
test al, 3
je 0x405b76
inc esi
shl esi, 2
push esi
call fcn.0040dd96
push esi
mov ebx, eax
push 0
push ebx
call fcn.0040f700
mov eax, esi
add esp, 0x10
cdq
and edx, 3
add edx, eax
xor eax, eax
sar edx, 2
test edx, edx
jle 0x405bff
cmp edx, 8
jb 0x405bf7
mov ecx, edx
and ecx, 0x80000007
jns 0x405bb2
dec ecx
or ecx, 0xfffffff8
inc ecx
mov esi, edx
xorps xmm2, xmm2
sub esi, ecx
xorps xmm1, xmm1
nop dword [eax]
movups xmm0, xmmword [ebx + eax*4]
xorps xmm2, xmm0
movups xmm0, xmmword [ebx + eax*4 + 0x10]
add eax, 8
xorps xmm1, xmm0
cmp eax, esi
jl 0x405bc0
xorps xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
xorps xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
xorps xmm1, xmm0
movd edi, xmm1
cmp eax, edx
jge 0x405bff
xor edi, dword [ebx + eax*4]
inc eax
cmp eax, edx
jl 0x405bf7
push ebx
call fcn.0040db91
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4061d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
call fcn.00405c20
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 8], eax
cmp eax, 0xffffffff
jne 0x40622a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040d81c
mov esp, ebp
pop ebp
ret 4
push 0x110
lea esi, [edi + 0xc]
push 0
push esi
call fcn.0040f700
push str.EyedentityGames_Packing_File_0.1
push pe_nt_image_headers32
push esi
call fcn.00415abf
mov eax, dword [edi + 8]
add esp, 0x18
mov dword [edi + 0x10c], 0xb
mov dword [edi + 0x110], 0
mov dword [edi + 0x114], 0x400
cmp eax, 0xffffffff
je 0x406216
push 0
lea ecx, [ebp - 0x300]
mov dword [ebp - 0x300], 0
push ecx
push 0x110
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call esi
test eax, eax
je 0x406216
push 0x2f0
lea eax, [ebp - 0x2fc]
push 0
push eax
call fcn.0040f700
mov eax, dword [edi + 8]
add esp, 0xc
cmp eax, 0xffffffff
je 0x4062dd
push 0
lea ecx, [ebp - 0x300]
mov dword [ebp - 0x300], 0
push ecx
push 0x2f0
lea ecx, [ebp - 0x2fc]
push ecx
push eax
call esi
mov ecx, dword [ebp - 8]
mov al, 1
mov byte [edi + 4], 0
xor ecx, ebp
pop edi
pop esi
call fcn.0040d81c
mov esp, ebp
pop ebp
ret 4
Function at 0x406300
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 8], 0xffffffff
je 0x406432
push dword [ebp + 8]
call fcn.004065f0
cmp eax, 0xffffffff
je 0x406432
imul esi, eax, 0x13c
add esi, dword [edi + 0x2a0]
je 0x406432
mov eax, dword [edi + 8]
mov ecx, dword [esi + 0x10c]
cmp eax, 0xffffffff
je 0x40636c
push 0
lea edx, [ebp - 8]
mov dword [ebp - 0xc], ecx
push edx
push ecx
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x40636c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esi + 0x100]
call fcn.0040dd96
mov ebx, eax
add esp, 4
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x40639f
push 0
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push ecx
push dword [esi + 0x100]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [esi + 0x104]
push edi
mov dword [ebp - 8], edi
call fcn.0040dd96
add esp, 4
mov dword [ebp + 8], eax
cmp dword [esi + 0x118], 0
je 0x406405
cmp dword [0x430978], 0
jne 0x4063da
push 0x22
push str.D:ProjectDragonNestCommonutilitySingleton.h
push str.s_pObj
call fcn.00408690
add esp, 0xc
mov ecx, dword [esi + 0x100]
sub ecx, 1
je 0x406405
mov eax, ecx
and eax, 0x8000007f
jns 0x4063f3
dec eax
or eax, 0xffffff80
inc eax
mov al, byte [eax + 0x428e18]
xor al, byte [ecx + ebx - 1]
xor byte [ecx + ebx], al
sub ecx, 1
jne 0x4063e5
push dword [esi + 0x100]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 8]
push ebx
call fcn.00408800
add esp, 8
test eax, eax
je 0x40643d
push ebx
call fcn.0040db91
add esp, 4
push dword [ebp + 8]
call fcn.0040db91
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp edi, dword [ebp - 8]
je 0x406459
push 0x234
push str.D:ProjectDragonNestCommonEtFileSystemEtFileSystem.cpp
push str.dwOrigin__dwOriginalSize
call fcn.00408690
add esp, 0xc
push ebx
call fcn.0040db91
add esp, 4
push 0x148
call fcn.0040d8df
add esp, 4
mov ebx, eax
mov dword [ebp - 8], ebx
push 0x13c
lea edi, [ebx + 4]
mov dword [ebx], vtable.CEtFileHandle.0
push 0
push edi
call fcn.0040f700
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebx + 0x140], 0
mov ecx, 0x4f
mov dword [ebx + 0x144], 0
rep movsd dword es:[edi], dword [esi]
pop edi
mov dword [ebx + 0x140], eax
mov eax, ebx
pop esi
mov dword [ebx + 0x144], 0
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4064d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0xffffffff
je 0x4065da
push dword [ebp + 8]
call fcn.004065f0
cmp eax, 0xffffffff
je 0x4065da
imul ebx, eax, 0x13c
add ebx, dword [esi + 0x2a0]
mov dword [ebp - 8], ebx
je 0x4065da
mov eax, dword [esi + 8]
mov ecx, dword [ebx + 0x10c]
cmp eax, 0xffffffff
je 0x40653f
push 0
lea edx, [ebp - 0x10]
mov dword [ebp - 0x14], ecx
push edx
push ecx
push eax
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x40653f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebx + 0x100]
call fcn.0040dd96
mov ecx, dword [esi + 8]
add esp, 4
mov dword [ebp - 0x10], eax
cmp ecx, 0xffffffff
je 0x406573
push 0
lea edx, [ebp + 8]
mov dword [ebp + 8], 0
push edx
push dword [ebx + 0x100]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x148
call fcn.0040d8df
add esp, 4
mov ebx, eax
mov dword [ebp + 8], ebx
push 0x13c
lea edi, [ebx + 4]
mov dword [ebx], vtable.CEtFileHandle.0
push 0
push edi
call fcn.0040f700
mov esi, dword [ebp - 8]
mov ecx, 0x4f
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebx + 0x140], 0
mov dword [ebx + 0x144], 0
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x140], eax
mov eax, ebx
mov dword [ebx + 0x144], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4075e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 8], 0xffffffff
je 0x40775c
cmp byte [edi], 0x5c
jne 0x40761e
push edi
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00415abf
jmp 0x40764b
lea eax, [esi + 0x11c]
push eax
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00415abf
add esp, 0xc
lea eax, [ebp - 0x114]
push edi
push 0x104
push eax
call fcn.00415cad
add esp, 0xc
lea eax, [ebp - 0x114]
mov ecx, esi
push eax
call fcn.004065f0
mov edi, eax
cmp edi, 0xffffffff
je 0x40775c
mov ecx, dword [esi + 0x2a0]
imul ebx, edi, 0x13c
mov dword [ecx + ebx + 0x100], 0
mov eax, dword [esi + 0x2a0]
mov dword [eax + ebx + 0x104], 0
mov ecx, dword [esi + 8]
cmp ecx, 0xffffffff
je 0x4076d1
mov eax, dword [esi + 0x114]
lea edx, [ebp - 0x118]
push 0
add eax, ebx
mov dword [ebp - 0x118], 0
push edx
push eax
push ecx
mov dword [ebp - 0x11c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x11c], eax
cmp eax, 0xffffffff
jne 0x4076d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 8]
cmp ecx, 0xffffffff
je 0x407701
push 0
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0
push eax
mov eax, dword [esi + 0x2a0]
push 0x13c
add eax, ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x407737
push 0
lea ecx, [ebp - 0x118]
xorps xmm0, xmm0
push ecx
push 0
push eax
movlpd qword [ebp - 0x11c], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x11c], eax
cmp eax, 0xffffffff
jne 0x407737
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov ecx, esi
call fcn.00406ee0
push edi
mov ecx, esi
call fcn.00406b00
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040d81c
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d81c
mov esp, ebp
pop ebp
ret 4

Function at 0x408400
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push 0xffff
push 0x430988
call fcn.00401e30
push dword [eax + 4]
push dword [eax]
call fcn.004159fc
add esp, 0x1c
push 0x430988
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esp, ebp
pop ebp
ret
Function at 0x408440
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
lea eax, [ebp - 0x218]
push ebx
push 0x104
push eax
call fcn.00415abf
add esp, 0xc
lea eax, [ebp - 0x218]
push str..
push 0x104
push eax
call fcn.00415cad
add esp, 0xc
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x408545
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
nop dword [eax + eax]
cmp byte [ebp - 0x32c], 0x2e
je 0x408521
push ebx
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.00415abf
add esp, 0xc
lea eax, [ebp - 0x110]
push 0x42c528
push 0x104
push eax
call fcn.00415cad
add esp, 0xc
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.00415cad
add esp, 0xc
test byte [ebp - 0x358], 0x10
je 0x408518
lea ecx, [ebp - 0x110]
call fcn.00408440
jmp 0x408521
lea eax, [ebp - 0x110]
push eax
call edi
lea eax, [ebp - 0x358]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4084b0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d81c
mov esp, ebp
pop ebp
ret
Function at 0x40a3f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov edi, dword [esi + 0x2c]
lea ebx, [esi + 0x38]
mov eax, dword [esi + 0x2c]
mov edx, dword [esi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [esi + 0x74]
add eax, edi
sub edx, dword [esi + 0x6c]
mov dword [ebp - 0xc], edx
cmp dword [esi + 0x6c], eax
jb 0x40a495
mov ecx, dword [ebx]
push edi
lea eax, [ecx + edi]
push eax
push ecx
call fcn.0040f180
mov eax, dword [esi + 0x4c]
add esp, 0xc
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
sub dword [esi + 0x5c], edi
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x44]
mov esi, dword [ebp - 8]
lea ebx, [eax + esi*2]
movzx edx, word [ebx - 2]
lea ebx, [ebx - 2]
mov ecx, edx
xor eax, eax
sub ecx, edi
cmp edx, edi
cmovae eax, ecx
mov word [ebx], ax
sub esi, 1
jne 0x40a447
mov esi, dword [ebp - 4]
mov eax, dword [esi + 0x40]
mov esi, edi
lea ebx, [eax + edi*2]
nop dword [eax]
movzx edx, word [ebx - 2]
lea ebx, [ebx - 2]
mov ecx, edx
xor eax, eax
sub ecx, edi
cmp edx, edi
cmovae eax, ecx
mov word [ebx], ax
sub esi, 1
jne 0x40a470
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
add edx, edi
lea ebx, [esi + 0x38]
mov ecx, dword [esi]
cmp dword [ecx + 4], 0
je 0x40a4ee
push edx
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
add edx, dword [ebx]
call fcn.0040a140
add eax, dword [esi + 0x74]
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [esi + 0x74], eax
cmp eax, 3
jb 0x40a4db
mov eax, dword [ebx]
add eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
movzx edx, byte [eax]
mov dword [esi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
mov eax, dword [ebp - 0xc]
and edx, dword [esi + 0x54]
mov dword [esi + 0x48], edx
cmp eax, 0x106
jae 0x40a4ee
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x40a404
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40baf0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x40bafb
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.0040bb10

Function at 0x40e468
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40e4a7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e4a7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e4a7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40e4a7
cmp dword [ecx + 0x74], 0xe
jbe 0x40e4a7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x419be2
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x419c2d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00419d7d
test al, al
jne 0x419c27
sub edx, 2
cmp edx, edi
jne 0x419c0d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x419c4f
lea eax, [edi + 2]
cmp edx, eax
je 0x419c4f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00419b2e
add esp, 0x10
jmp 0x419d49
push esi
lea ecx, [ebp - 0x255]
call fcn.00419d7d
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x419c92
push dword [ebp - 0x25c]
jmp 0x419c3f
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x419ccf
cmp word [ebp - 0x226], 0
je 0x419cf0
cmp word [ebp - 0x226], ax
jne 0x419ccf
cmp word [ebp - 0x224], 0
je 0x419cf0
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00419b2e
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x419d3c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x419ca9
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x419d24
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x419d49
push 0x41995e
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041ed90
add esp, 0x10
jmp 0x419d19
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d81c
leave
ret
Function at 0x41a885
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41a896
pop esi
ret
push ebx
push edi
push esi
call fcn.0041a84e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00417da5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41a8be
push ebx
push esi
push edi
call fcn.0040f180
add esp, 0xc
push 0
call fcn.00417d6b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x41ac8e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a8d3

Function at 0x41aed4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425584
push 0x42557c
push str.FlsAlloc
push 0x1f
call fcn.0041adb2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41af08
push dword [ebp + 8]
mov ecx, esi
call dword [0x42317c]
call esi
jmp 0x41af0e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41af52
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425594
push 0x42558c
push str.FlsGetValue
push 0x21
call fcn.0041adb2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41af89
push dword [ebp + 8]
mov ecx, esi
call dword [0x42317c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41af91
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42559c
push 0x425594
push str.FlsSetValue
push 0x22
call fcn.0041adb2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41afcb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42317c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x421ee0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x421f0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x421f0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404b10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x404b3c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x404b64
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x404b6a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x404bd2
jg 0x404b81
test esi, esi
je 0x404bd2
test ecx, ecx
jl 0x404bcd
jg 0x404b8b
test eax, eax
je 0x404bcd
cmp edi, ecx
jg 0x404b9f
jl 0x404b95
cmp esi, eax
jae 0x404b9f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x404bd5
mov ecx, dword [ebp + 8]
jmp 0x404bdf
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x404bf9
jg 0x404bdf
test esi, esi
je 0x404bf9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x404bf9
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404c10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x404c3c
jl 0x404c30
test ecx, ecx
jne 0x404c3c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x404c55
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x404ca3
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x404ca9
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x404ca9
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x404d16
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x404cd2
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 [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x404d04
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x404d16
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x404ce0
test edi, edi
je 0x404d16
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
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 0x4050a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4050d0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407d08
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40510c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40510c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407d08
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4051e3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x405134
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x405140
movsx eax, bl
jmp 0x405178
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x4051a2
sub eax, 1
je 0x4051a2
sub eax, 2
jne 0x4051e3
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407d08
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4051c0
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4051e3
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407d08
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407d08
mov esp, ebp
pop ebp
ret 4