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

Disassembly:
pop edi
push ebp
pushfd
mov ebp, 0x3f8b011f
xchg dword [esp + ebp - 0x3f8b0117], edi
shr ebp, 0x11
shl bp, 0x77
shr ebp, 6
mov ebp, dword [esp + ebp*2 + 4]
mov dword [esp + 4], edi
jne fcn.101bf588
push ebp
mov ebp, 0xc92c438c
call fcn.100feee7
xchg edx, eax
mov edi, 0x87ee5f85
mov ebx, 0xbd8dd867
fnstcw word [esi]
sbb ebx, dword [ebx]
cmp eax, edx
sti
std
push ecx
fiadd word [ecx + 3]
test dword [eax - 0x2d], 0xd896138d
push 0xa1173575
sub al, 0x72
imul edi, dword [edx - 0x20], 0x68648074
xchg edx, eax
dec ebp
xchg byte [edx], ah
adc dword [eax], eax
add byte [eax], al
mov al, 0x82
into
cmpsd dword [esi], dword es:[edi]
or al, 0x43
mov al, 0x1b
cmp cl, bh
lea esi, [ebx]
xchg dword [ebx - 0x60], esp
mov dh, 0xc3
outsd dx, dword [esi]
jno 0x10281788
push eax
pop edi
sub eax, 0xa0ed2c7
xor dword [edi + 0x22], eax
dec esi
js 0x102817ce
invalid
dec ebp
pop ecx
adc si, word [0xa381fe17]
jecxz 0x1028181a
pop ebx
pop ebp
xchg ebp, eax
jne 0x102817f3
mov bh, 0
inc ecx
jne 0x10281794
pop esi
and ebx, dword [ebx]
mov eax, 0x24b51969
mov ch, 0x91
xchg ecx, eax
jg 0x1028178b
jae 0x10281822
adc eax, 0x447957f4
call edx
push ebx
out 0x73, al
xchg dword [edx], esp
adc dword [eax], eax
add byte [eax], al
mov al, 0x34
cmp dword [ebp - 0x77], ecx
and dl, byte [ecx]
add byte [eax], al
add byte [eax - 0x76b2c6cc], dh
pop edx
dec esp
mov ecx, 0xe52dbf5
sbb ah, byte [ebp + 0x5e4acf83]
or al, 0x39
popfd
pop ecx
add dl, byte [ecx]
sub eax, 0x1226ca63
sbb eax, 0x2c699d0f
test al, 0x5b
ret
popfd
imul ebp, dword [eax + ebp*4], 0x81c3365b
in eax, 2
pop esp
insd dword es:[edi], dx
invalid
in eax, 0xe9
adc eax, 0xf6c09b16
rol ch, 0xcc
mov dword [0x9174d4f5], eax
jecxz 0x102817be
invalid
sub byte [esi + 0x5770f11e], cl
dec edi
wait
sal dword [eax + 0x2e], 1
mov bh, 7
or byte [esi], 0x72
fcmovne st(0), st(6)
retf
Function at 0x401040
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54ee31
mov eax, dword fs:[0]
push eax
sub esp, 0x144
push esi
push edi
mov eax, dword [0x5ab1d0]
xor eax, esp
push eax
lea eax, [esp + 0x150]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.0041c17f
xor edi, edi
push edi
call fcn.0041cc51
push 0xc
call fcn.0041b219
add esp, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x158], edi
cmp eax, edi
je 0x4010bf
mov ecx, eax
call fcn.0041d400
mov edi, eax
push 0x57cd28
mov ecx, esi
mov dword [esp + 0x15c], 0xffffffff
call fcn.0041d58f
push 0
push 0x66
lea ecx, [esp + 0x24]
call fcn.00424041
mov dword [esp + 0x158], 1
lea ecx, [esp + 0xd8]
mov dword [esp + 0x1c], vtable.CKModzLauncherDlg.0
call fcn.00425bfb
mov dword [esp + 0xd8], vtable.CProgressCtrl.0
mov byte [esp + 0x158], 2
call fcn.0042b860
call fcn.0042b860
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esp + 0xd4], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x158], 3
mov dword [esi + 0x20], ecx
call fcn.0041e5b9
test edi, edi
je 0x40115b
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 1
mov ecx, edi
call eax
lea ecx, [esp + 0xd8]
mov dword [esp + 0x158], 4
call fcn.0041ec23
lea ecx, [esp + 0xc8]
mov dword [esp + 0x158], 6
call fcn.00421eab
mov byte [esp + 0x158], 5
lea ecx, [esp + 0xbc]
mov dword [esp + 0xbc], vtable.CBrush.0
call fcn.004016b0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x158], 0xffffffff
call fcn.0041dd88
xor eax, eax
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401830
Capabilities:
Check if file exists
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c4
mov eax, dword [0x5ab1d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x64
lea eax, [ebp - 0x1f8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x1f8]
push ecx
lea edx, [ebp - 0x130]
push str._sSystem32driversetchosts.ics
push edx
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x401895
lea ecx, [ebp - 0x130]
push ecx
call ebx
lea edx, [ebp - 0x1f8]
push edx
lea eax, [ebp - 0x2c0]
push str._sSystem32driversetchosts
push eax
call esi
add esp, 0xc
lea ecx, [ebp - 0x2c0]
push ecx
call edi
test eax, eax
je 0x4018c3
lea edx, [ebp - 0x2c0]
push edx
call ebx
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.0051f8c0
push str.kmodz.net
push str.103.130.217.61
lea ecx, [ebp - 0x68]
push str._s__s
push ecx
call fcn.0051c32b
lea eax, [ebp - 0x68]
add esp, 0x1c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4018f1
push 0
push 0x80
push 1
push 0
push 0
sub eax, edx
push 0x40000000
lea edx, [ebp - 0x130]
push edx
mov edi, eax
mov dword [ebp - 0x2c4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov esi, eax
lea eax, [ebp - 0x2c4]
push eax
push edi
lea ecx, [ebp - 0x68]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051b73f
mov esp, ebp
pop ebp
ret
Function at 0x401960
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e55d
mov eax, dword fs:[0]
push eax
mov eax, 0x2824
call fcn.0051feb0
mov eax, dword [0x5ab1d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2830], edi
mov esi, ecx
mov dword [ebp - 0x282c], ebx
call fcn.00420499
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4019be
push 0x80004005
call fcn.004015c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
push ebx
mov dword [ebp - 0x282c], 1
call dword [sym.imp.WININET.dll_InternetOpenW]
push ebx
push SysReAllocString
push ebx
push ebx
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
lea ecx, [ebp - 0x2828]
push ecx
push 0x2710
lea edx, [ebp - 0x2720]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x2828]
push 3
lea edx, [ebp - 0x2720]
mov byte [ebp + eax - 0x2720], bl
push edx
lea eax, [ebp - 0x2824]
lea ecx, [ebp - 0x2820]
push eax
mov dword [ebp - 0x2824], ecx
call fcn.00403760
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x2824]
cmp edx, ebx
jne 0x401a51
xor eax, eax
jmp 0x401a65
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401a56
sub eax, esi
sar eax, 1
push eax
push edx
mov ecx, edi
call fcn.00404b80
mov eax, dword [ebp - 0x2824]
lea ecx, [ebp - 0x2820]
cmp eax, ecx
je 0x401a87
push eax
call fcn.0051c2f1
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051b73f
mov esp, ebp
pop ebp
ret
Function at 0x4045d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4045eb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404622
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40461e
jmp 0x404610
cmp esi, eax
jae 0x404622
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404610
cmp esi, eax
jb 0x404629
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404d10
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0051feb0
mov eax, dword [0x5ab1d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push edi
push 0xf0000000
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
push 0x5b48c0
mov edi, ecx
call esi
test eax, eax
jne 0x404d84
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x8009000f
jne 0x404d71
push 0
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
push 0x5b48c0
call esi
test eax, eax
jne 0x404d84
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051b73f
mov esp, ebp
pop ebp
ret
push 0x57daf0
push edi
call fcn.0051caa5
mov esi, eax
xor edi, edi
add esp, 8
cmp esi, edi
jne 0x404db2
mov eax, dword [0x5b48c0]
cmp eax, edi
je 0x404dab
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x404edc
mov ecx, dword [0x5b48c0]
xor eax, eax
mov dword [ebp - 0x1018], eax
mov dword [ebp - 0x1014], eax
mov dword [ebp - 0x1010], eax
mov dword [ebp - 0x100c], eax
mov dword [ebp - 0x1008], eax
lea eax, [ebp - 0x1008]
push eax
push edi
push edi
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push esi
call fcn.0051cabc
add esp, 4
test eax, eax
jne 0x404e39
mov edi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push esi
push 0x1000
lea edx, [ebp - 0x1004]
push 1
push edx
call fcn.0051cd56
mov ecx, dword [ebp - 0x1008]
add esp, 0x10
push 0
push eax
lea eax, [ebp - 0x1004]
push eax
push ecx
call edi
push esi
call fcn.0051cabc
add esp, 4
test eax, eax
je 0x404e00
xor edi, edi
mov ecx, dword [ebp - 0x1008]
push edi
lea edx, [ebp - 0x1020]
push edx
lea eax, [ebp - 0x1018]
push eax
push 2
push ecx
mov dword [ebp - 0x1020], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [ebp - 0x1008]
cmp eax, edi
je 0x404e72
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
mov dword [ebp - 0x1008], edi
call fcn.0051cde0
push 0x64
push edi
push ebx
call fcn.0051f8c0
add esp, 0x10
xor esi, esi
lea esp, [esp]
mov dl, byte [ebp + esi - 0x1018]
mov byte [ebp - 0x1019], dl
mov edx, 4
mov al, byte [ebp - 0x1019]
mov cl, dl
shr al, cl
and al, 0xf
cmp al, 0xa
jge 0x404eb6
add al, 0x30
jmp 0x404eb8
add al, 0x57
mov byte [ebx], al
inc ebx
sub edx, 4
jns 0x404ea2
inc esi
cmp esi, 0x10
jl 0x404e90
mov eax, dword [0x5b48c0]
cmp eax, edi
je 0x404ed7
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
mov ecx, dword [ebp - 4]
mov dword [0x5b48c0], edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051b73f
mov esp, ebp
pop ebp
ret
Function at 0x406bc0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54ece0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x5ab1d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x14], esi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [ebp - 4], 2
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x406c0d
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov dword [esi], vtable.KM::SourceTemplate_class_KM::FileStore_.1.0
mov dword [esi + 4], vtable.KM::SourceTemplate_class_KM::FileStore_.0
mov dword [esi + 0x24], 0xffffffff
mov byte [esi + 0x28], bl
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x18], vtable.KM::FileStore.0
mov dword [esi + 0x1c], vtable.KM::FileStore.1.0
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov byte [esi + 0x4c], bl
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051b73f
mov esp, ebp
pop ebp
ret 4

Function at 0x408490
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f0c8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5ab1d0]
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 ebx, dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x57d5e4
mov esi, eax
push 0x81
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x30]
push str.KVIP
push eax
lea esi, [ebp - 0x2c]
call fcn.00406160
push 0x57e2d8
push ebx
call fcn.0051d8ae
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40855f
mov eax, dword [ebp - 0x2c]
mov edi, 0x10
cmp dword [ebp - 0x18], edi
jae 0x40852a
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
push esi
push 1
push ecx
push eax
call fcn.0051d776
push esi
call fcn.0051cde0
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], edi
jb 0x408558
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0041b248
add esp, 4
mov eax, 1
jmp 0x408584
push 0
call fcn.0051cde0
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x408582
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0041b248
add esp, 4
xor eax, eax
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.0051b73f
mov esp, ebp
pop ebp
ret
Function at 0x4099a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
call edx
mov edi, dword [esp + 0x2c]
mov ebp, eax
mov eax, dword [esp + 0x38]
mov ecx, eax
and cl, 3
movzx ecx, cl
neg ecx
sbb ecx, ecx
mov esi, dword [esp + 0x28]
not ecx
and ecx, ebp
mov edx, edi
neg edx
sbb edx, edx
and edx, ebp
mov dword [esp + 0x10], edx
mov edx, eax
and dl, 2
movzx edx, dl
neg edx
sbb edx, edx
not edx
and edx, ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
test al, 8
je 0x409a34
mov eax, dword [esp + 0x34]
mov ebx, eax
sub ebx, ebp
add esi, ebx
mov ebx, eax
sub ebx, ebp
add edi, ebx
mov ebx, dword [esp + 0x30]
sub eax, ebp
add ebx, eax
mov eax, dword [esp + 0x10]
neg eax
neg ecx
neg edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
jmp 0x409a38
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
cmp ecx, ebp
jb 0x409b1b
mov ecx, eax
and ecx, 4
and eax, 1
mov dword [esp + 0x38], ecx
mov dword [esp + 0x20], eax
jmp 0x409a5a
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x409ad2
mov ecx, ebp
shr ecx, 2
xor eax, eax
test ecx, ecx
je 0x409a92
mov edx, edi
mov edi, ebx
sub edx, esi
mov eax, esi
sub edi, esi
mov dword [esp + 0x28], ecx
mov ebx, dword [edx + eax]
xor ebx, dword [eax]
add eax, 4
dec ecx
mov dword [edi + eax - 4], ebx
jne 0x409a77
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add eax, eax
add eax, eax
mov ecx, ebp
sub ecx, eax
je 0x409acc
lea edx, [eax + ebx]
mov dword [esp + 0x30], edx
lea edx, [eax + edi]
add eax, esi
test ecx, ecx
je 0x409acc
mov edi, dword [esp + 0x30]
sub edx, eax
sub edi, eax
mov dword [esp + 0x30], ecx
mov cl, byte [edx + eax]
xor cl, byte [eax]
inc eax
dec dword [esp + 0x30]
mov byte [edi + eax - 1], cl
jne 0x409ab8
mov edi, dword [esp + 0x2c]
push ebx
push 0
push ebx
jmp 0x409ad5
push ebx
push edi
push esi
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp dword [esp + 0x20], 0
je 0x409aeb
inc byte [esi + ebp - 1]
mov eax, dword [esp + 0x34]
add ebx, dword [esp + 0x1c]
add edi, dword [esp + 0x10]
add esi, dword [esp + 0x18]
sub eax, ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], eax
cmp eax, ebp
jae 0x409a56
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x14
ret 0x14
Function at 0x40fa40
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x54d107
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ab1d0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [ebp], 0x57f7c0
mov dword [ebp + 0x68], 0x57f880
mov dword [esp + 0x20], ebx
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
mov dword [ecx + ebp], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov edx, dword [ebp]
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov esi, dword [edx + 4]
add esi, ebp
mov dword [esp + 0x14], 1
call fcn.00410f40
lea edi, [ebp + 0x10]
push esi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], ebx
call fcn.00410c80
mov byte [esi + 0x40], al
cmp dword [esi + 0x38], ebx
jne 0x40fad1
mov eax, dword [esi + 0xc]
or eax, 4
or eax, 4
push ebx
mov ecx, esi
call fcn.00411c00
mov dword [esp + 0x20], 2
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
push edi
mov dword [ecx + ebp], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.00410b50
lea edx, [edi + 8]
mov dword [edi + 0x10], edx
lea ecx, [edi + 0x18]
mov dword [edi + 0x20], ecx
lea edx, [edi + 0x1c]
mov dword [edi + 0x24], edx
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [edi + 0x50], bl
mov byte [edi + 0x49], bl
lea eax, [edi + 0xc]
mov dword [edi + 0x14], eax
lea ecx, [edi + 0x28]
mov dword [edi + 0x30], ecx
lea edx, [edi + 0x2c]
mov dword [edi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [edi + 0x24]
mov dword [eax], ebx
mov ecx, dword [edi + 0x34]
mov dword [ecx], ebx
mov edx, dword [edi + 0x10]
mov dword [edx], ebx
mov eax, dword [edi + 0x20]
mov edx, dword [0x5b5a8c]
mov dword [eax], ebx
mov ecx, dword [edi + 0x30]
mov dword [ecx], ebx
mov dword [edi + 0x54], ebx
mov dword [edi + 0x4c], edx
mov dword [edi + 0x44], ebx
mov eax, ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x40fc80
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x54d088
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5ab1d0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ab1d0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x50]
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x40fcc4
xor eax, eax
jmp 0x40fe76
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x40fced
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x40fced
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x40fe76
cmp dword [edi + 0x54], 0
je 0x40fe73
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x48]
cmp dword [ecx], edx
jne 0x40fd15
mov edx, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
mov dword [ecx], edx
mov ecx, dword [edi + 0x20]
mov dword [ecx], eax
mov edx, dword [edi + 0x30]
sub eax, eax
mov dword [edx], eax
cmp dword [edi + 0x44], 0
jne 0x40fd3b
mov edi, dword [edi + 0x54]
movsx eax, bl
push edi
push eax
call fcn.0051da76
add esp, 8
cmp eax, 0xffffffff
je 0x40fe73
mov eax, ebx
jmp 0x40fe76
lea esi, [esp + 0x20]
mov byte [esp + 0x17], bl
call fcn.004105e0
mov dword [esp + 0x48], 0
lea ebx, [edi + 0x4c]
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x34]
jmp 0x40fd60
mov edx, eax
cmp ebp, 0x10
jae 0x40fd6d
lea edx, [esp + 0x20]
mov eax, edx
add edx, dword [esp + 0x30]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebp, [esp + 0x18]
push ebp
push edx
push eax
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push eax
mov eax, dword [esi + 0x14]
lea edx, [esp + 0x2b]
push edx
push ebx
call eax
test eax, eax
js 0x40fe62
cmp eax, 1
jg 0x40fe11
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov ecx, eax
cmp ebp, 0x10
jae 0x40fdb2
lea ecx, [esp + 0x20]
mov esi, dword [esp + 0x18]
sub esi, ecx
je 0x40fde3
cmp ebp, 0x10
jae 0x40fdc3
lea eax, [esp + 0x20]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0051d776
add esp, 0x10
cmp esi, eax
jne 0x40fe62
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x17]
mov byte [edi + 0x49], 1
cmp dword [esp + 0x1c], edx
jne 0x40fe4b
test esi, esi
jne 0x40fd60
cmp dword [esp + 0x30], 0x20
jae 0x40fe62
push esi
push 8
lea esi, [esp + 0x28]
call fcn.0040b5e0
jmp 0x40fd53
cmp eax, 3
jne 0x40fe62
mov edi, dword [edi + 0x54]
movsx eax, byte [esp + 0x17]
push edi
push eax
call fcn.0051da76
add esp, 8
cmp eax, 0xffffffff
je 0x40fe33
mov esi, dword [esp + 0x50]
jmp 0x40fe36
or esi, 0xffffffff
lea ecx, [esp + 0x20]
mov dword [esp + 0x48], 0xffffffff
call fcn.00403590
mov eax, esi
jmp 0x40fe76
lea ecx, [esp + 0x20]
mov dword [esp + 0x48], 0xffffffff
call fcn.00403590
mov eax, dword [esp + 0x50]
jmp 0x40fe76
lea ecx, [esp + 0x20]
mov dword [esp + 0x48], 0xffffffff
call fcn.00403590
or eax, 0xffffffff
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0051b73f
add esp, 0x38
ret 4
Function at 0x4108b0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x54d058
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5ab1d0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
mov eax, dword [0x5ab1d0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x4109ef
cmp byte [edi + 0x49], 0
je 0x4109ef
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x4109da
lea esi, [esp + 0x14]
call fcn.004105e0
mov dword [esp + 0x3c], 0
lea ebx, [edi + 0x4c]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x28]
mov edx, eax
cmp ebp, 0x10
jae 0x410932
lea edx, [esp + 0x14]
mov eax, edx
add edx, dword [esp + 0x24]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebp, [esp + 0x10]
push ebp
push edx
push eax
mov eax, dword [esi + 0x18]
push ebx
call eax
sub eax, 0
je 0x410966
dec eax
je 0x41096a
sub eax, 2
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [esp + 0x14]
jne 0x4109d5
jmp 0x4109ea
mov byte [edi + 0x49], 0
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
mov ecx, eax
cmp ebp, 0x10
jae 0x41097d
lea ecx, [esp + 0x14]
mov esi, dword [esp + 0x10]
sub esi, ecx
je 0x4109aa
cmp ebp, 0x10
jae 0x41098e
lea eax, [esp + 0x14]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0051d776
add esp, 0x10
cmp esi, eax
jne 0x4109c9
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
cmp byte [edi + 0x49], 0
je 0x4109de
test esi, esi
jne 0x410925
push esi
push 8
lea esi, [esp + 0x1c]
call fcn.0040b5e0
jmp 0x41091d
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00403590
xor al, al
jmp 0x4109f1
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00403590
mov al, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0051b73f
add esp, 0x30
ret