joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4156f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5e8464]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4157aa
cmp byte [esi + 0x3d], 0
je 0x4157aa
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x415798
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x415760
sub eax, 1
je 0x415764
sub eax, 2
jne 0x415798
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x415781
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0054b005
add esp, 0x10
cmp edi, eax
jne 0x415798
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret
Function at 0x415c50
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f80e
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5e8464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0xf003f
push 0
mov dword [ebp - 0x38], edi
push 0
mov dword [ebp - 0x34], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x415cbb
push 0xf01ff
push 0x5ce3fc
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x415cdf
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [edi], 0
xor eax, eax
mov dword [edi + 0x10], 0
push eax
mov dword [edi + 0x14], 7
mov word [edi], ax
push 0x5ce1c0
jmp 0x415daa
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
push ecx
push eax
movups xmmword [ebp - 0x2c], xmm0
movq qword [ebp - 0x1c], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x415d30
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x30]
call esi
xor eax, eax
mov dword [edi], 0
push eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
push 0x5ce1c0
jmp 0x415daa
mov esi, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 4], 0
push eax
mov dword [edi], 0
mov ecx, edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
push 0x5ce1c0
mov word [edi], ax
call fcn.004065c0
add esi, 0xfffffffe
mov dword [ebp - 0x34], 2
cmp esi, 5
ja case.default.0x415d6f
jmp dword [esi*4 + 0x415dd0]
push 4
push str.ck_W_T
jmp 0x415daa
push 4
push str.ck_WPbk
jmp 0x415daa
push 3
push 0x5d31c8
jmp 0x415daa
push 3
push 0x5d31d0
jmp 0x415daa
push 3
push 0x5d31d8
jmp 0x415daa
push 2
push 0x5d31e0
mov ecx, edi
call fcn.004065c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret 8
Function at 0x415df0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5e8464]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x415e36
push 0xf01ff
push 0x5ce3fc
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x415e4b
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x20]
mov dword [ebp - 8], ebx
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x415ef7
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
jne 0x415e9d
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, 1
call esi
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret 8
cmp eax, 2
je 0x415e36
cmp eax, 3
je 0x415e36
cmp eax, 5
je 0x415e36
cmp eax, 6
je 0x415e36
cmp eax, 1
jne 0x415ec8
cmp ecx, 4
jne 0x415ef7
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
jmp 0x415ef5
cmp eax, 4
je 0x415ed2
cmp eax, 7
jne 0x415ef7
cmp ecx, 1
jne 0x415ede
lea eax, [ebp - 0x20]
push eax
push ecx
jmp 0x415eee
cmp eax, 7
jne 0x415ef7
cmp ecx, 4
jne 0x415ef7
lea eax, [ebp - 0x20]
push eax
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret 8
Function at 0x416070
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f890
mov eax, dword fs:[0]
push eax
sub esp, 0x52c
mov eax, dword [0x5e8464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x538], esi
push 0xb8
lea eax, [ebp - 0x534]
mov dword [ebp - 0x538], esi
push 0
push eax
call fcn.00542b10
add esp, 0xc
cmp dword [edi + 0x14], 0x10
jb 0x4160cb
mov edi, dword [edi]
sub esp, 0xc
lea ecx, [ebp - 0x534]
push edi
call fcn.0041f5d0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x534]
mov eax, dword [ecx + 4]
test byte [ebp + eax - 0x528], 6
je 0x41611e
push 0
mov dword [esi], 0
mov ecx, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
push 0x5cbffc
mov byte [esi], 0
call fcn.00408af0
jmp 0x416206
mov byte [ebp - 0x414], 0
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x46c], 0
mov dword [ebp - 0x47c], 0x67452301
mov dword [ebp - 0x478], 0xefcdab89
mov dword [ebp - 0x474], 0x98badcfe
mov dword [ebp - 0x470], 0x10325476
mov eax, dword [ecx + 4]
test byte [ebp + eax - 0x528], 1
jne 0x4161c0
nop
sub esp, 8
lea eax, [ebp - 0x410]
lea ecx, [ebp - 0x534]
push eax
call fcn.004153d0
cmp dword [ebp - 0x528], 0
jl 0x4161ad
mov eax, dword [ebp - 0x52c]
jg 0x41619a
test eax, eax
je 0x4161ad
push eax
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x47c]
call fcn.004149c0
mov eax, dword [ebp - 0x534]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x528], 1
je 0x416170
lea ecx, [ebp - 0x524]
call fcn.004158d0
test eax, eax
jne 0x4161fa
mov eax, dword [ebp - 0x534]
lea ecx, [ebp - 0x534]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.004070f0
push esi
lea ecx, [ebp - 0x47c]
call fcn.00415190
lea ecx, [ebp - 0x534]
call fcn.00416230
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret
Function at 0x416780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f965
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5e8464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 8]
cmp dword [eax + 0x18], 0
jne 0x4168f3
push 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0
push eax
push dword [ebp + 0xc]
push ecx
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x416912
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
push 7
push 0x5d326c
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], eax
call fcn.00408820
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea esi, [ebp - 0x12]
nop dword [eax]
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x416810
xor eax, eax
mov dword [ebp - 0x70], edx
mov word [ebp - 0x70], ax
mov edx, 7
lea eax, [ebp - 0x12]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], edx
cmp esi, eax
je 0x41685f
sub eax, esi
lea ecx, [ebp - 0x70]
sar eax, 1
push eax
push esi
call fcn.004065c0
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x60]
cmp edx, 8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00408820
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x4168ad
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4168a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416919
push edx
push ecx
call fcn.0053efdc
add esp, 8
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x44]
mov dword [edi + 0x20], 0
cmp edx, 8
jb 0x4168f3
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4168e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416919
push edx
push ecx
call fcn.0053efdc
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret 8
mov eax, 1
jmp 0x4168f5
call fcn.00549186
int3
Function at 0x417200
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56facd
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5e8464]
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 dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0
or esi, 0xffffffff
nop dword [eax]
mov ebx, dword [ebp + 0x1c]
lea ecx, [ebp + 8]
mov edx, dword [ebp + 8]
inc esi
mov edi, dword [ebp + 0x18]
cmp ebx, 8
cmovae ecx, edx
cmp esi, edi
jae 0x417272
mov eax, edi
sub eax, esi
lea esi, [ecx + esi*2]
je 0x417272
cmp word [esi], 0x5c
je 0x41730a
add esi, 2
sub eax, 1
jne 0x417260
or esi, 0xffffffff
cmp esi, 0xffffffff
je 0x4173ab
cmp edi, esi
mov dword [ebp - 0x28], 0
mov ecx, esi
mov dword [ebp - 0x18], 0
cmovb ecx, edi
mov dword [ebp - 0x14], 7
cmp ebx, 8
lea eax, [ebp + 8]
push ecx
cmovae eax, edx
lea ecx, [ebp - 0x28]
push eax
call fcn.004065c0
or dword [ebp - 0x2c], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x417313
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x417240
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4172fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417400
push edx
push ecx
call fcn.0053efdc
add esp, 8
jmp 0x417240
sub esi, ecx
sar esi, 1
jmp 0x417275
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp - 0x14]
test eax, eax
je 0x41736e
cmp edx, 8
jb 0x417240
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41735f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417400
push edx
push ecx
call fcn.0053efdc
add esp, 8
jmp 0x417240
cmp edx, 8
jb 0x4173a1
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417397
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417400
push edx
push ecx
call fcn.0053efdc
add esp, 8
mov ebx, dword [ebp + 0x1c]
xor esi, esi
mov edx, dword [ebp + 8]
jmp 0x4173b0
mov esi, 1
cmp ebx, 8
jb 0x4173e0
lea ebx, [ebx*2 + 2]
mov eax, edx
cmp ebx, 0x1000
jb 0x4173d6
mov edx, dword [edx - 4]
add ebx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417405
push ebx
push edx
call fcn.0053efdc
add esp, 8
mov eax, esi
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.0053ed9c
mov esp, ebp
pop ebp
ret 0x18
call fcn.00549186
call fcn.00549186
int3
Function at 0x418560
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5e8464]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x41866b
mov edi, esi
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x418585
sub edi, ecx
sar edi, 1
cmp edi, 0x104
jge 0x41866b
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00542b10
lea ecx, [ebp - 0x210]
add esp, 0xc
sub ecx, esi
nop
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x4185c0
add edi, edi
cmp edi, 0x20a
jae 0x41867f
xor eax, eax
mov word [ebp + edi - 0x210], ax
add edi, 2
cmp edi, 0x20a
jae 0x41867f
mov word [ebp + edi - 0x210], ax
mov dword [ebp - 0x21e], eax
mov dword [ebp - 0x21a], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x216], eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x228], eax
mov eax, 0x414
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x22c], 3
mov dword [ebp - 0x224], 0
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x41866b
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret 8
call fcn.0053eed1
int3
Function at 0x41ecd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x41edb6
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x41eda5
jg 0x41ed10
test edx, edx
je 0x41eda5
nop dword [eax]
call fcn.004087d0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x41ed64
jg 0x41ed27
test esi, esi
je 0x41ed64
cmp ebx, eax
jg 0x41ed37
jl 0x41ed31
cmp edi, esi
jae 0x41ed37
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.00542c70
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x41ed89
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x41ed9f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x41ed10
jl 0x41ed9f
test edi, edi
jne 0x41ed10
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x41edd8
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x41edda
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x41ee58
jg 0x41eded
test esi, esi
je 0x41ee58
test eax, eax
jl 0x41ee3c
jg 0x41edf7
test ebx, ebx
je 0x41ee3c
cmp edi, eax
jg 0x41ee07
jl 0x41ee01
cmp esi, ebx
jae 0x41ee07
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.00542c70
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x41ee58
jg 0x41ee3f
test esi, esi
je 0x41ee58
jmp 0x41ee3f
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x41ee58
push eax
push esi
push 1
push edx
call fcn.0054b005
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41ee70
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 0x41eea2
jl 0x41ee95
test ecx, ecx
jne 0x41eea2
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 0x41ef62
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.004159c0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x41ef0e
jg 0x41eecd
test esi, esi
je 0x41ef0e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x41eee5
mov eax, dword [esp + 0x10]
jl 0x41eedf
cmp eax, esi
jae 0x41eee5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.00542c70
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 0x41ef2f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x41ef4b
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 0x41eeb4
jl 0x41ef4b
test ecx, ecx
jne 0x41eeb4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x41efa1
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x41efa1
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.00542c70
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], 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
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x41f010
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x41efc7
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x41eff9
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0054b3f4
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x41f024
cmp edi, eax
ja 0x41efd5
test ecx, ecx
je 0x41f010
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0054b3f4
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
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 0x41f390
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5e8464]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x41f3c0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x41f3fc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x41f3fc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x41f4e4
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x41f424
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 0x41f457
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0054b74e
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
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 [edx + 0x1c]
sub eax, 0
je 0x41f4b7
sub eax, 1
je 0x41f4b7
sub eax, 2
jne 0x41f4e4
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.0054b74e
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x41f4d4
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0054b005
add esp, 0x10
cmp edi, eax
jne 0x41f4e4
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x41f3e7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret 4
Function at 0x41fb70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f3e0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5e8464]
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_char__struct_std::char_traits_char__.0
call fcn.0053efac
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.005405f8
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