joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425a10
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, dword [esp + 0x48]
mov eax, dword [esi + 0x40]
mov ecx, dword [eax]
push edi
push ecx
call fcn.004362f0
movzx ecx, word [esi + 0xe]
movzx edx, byte [esi + 8]
mov ebp, dword [esi + 0x44]
mov dword [esp + 0x20], ecx
movzx ecx, word [esi + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x40]
movzx ebx, word [ecx + 0x1e]
xor ecx, ecx
mov ch, byte [edx + ebp + 5]
mov dword [esp + 0x24], eax
add esp, 4
mov dword [esp + 0x24], edx
mov cl, byte [edx + ebp + 6]
mov edi, ecx
mov ecx, ebx
sub ecx, edi
lea esi, [edi + ebp]
add edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
test esi, esi
jle 0x425af3
mov ecx, dword [esp + 0x1c]
add ecx, ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
jmp 0x425a90
mov ecx, dword [esp + 0x10]
mov edi, edi
mov eax, dword [esp + 0x20]
xor edx, edx
mov dh, byte [ecx]
mov dl, byte [ecx + 1]
mov ecx, edx
mov edx, dword [esp + 0x4c]
lea esi, [ecx + eax]
lea ecx, [esp + 0x28]
push ecx
push esi
push edx
call fcn.00425840
movzx ecx, word [esp + 0x52]
sub ebx, ecx
mov eax, ecx
shr ecx, 2
lea edi, [ebx + ebp]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
sar ecx, 8
mov byte [eax], cl
mov byte [eax + 1], bl
add eax, 2
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
add esp, 0xc
dec eax
mov dword [esp + 0x14], eax
jne 0x425a8a
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, ebx
sar eax, 8
mov byte [edx + ebp + 5], al
mov byte [edx + ebp + 6], bl
mov byte [edx + ebp + 1], 0
mov byte [edx + ebp + 2], 0
mov byte [edx + ebp + 7], 0
lea edx, [ecx + esi*2]
mov ecx, ebx
sub ecx, edx
lea edi, [edx + ebp]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x38
ret
Function at 0x42b2a0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 0x4c]
mov esi, dword [ebx + 0x40]
push 0
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
mov dword [esp + 0x2c], esi
call fcn.00427a30
add esp, 0x14
test eax, eax
jne 0x42b406
movzx eax, word [esi + 0x1e]
movzx edx, byte [ebx + 8]
push ebp
mov ebp, dword [esp + 0xc]
mov ecx, dword [ebp + 0x44]
mov dword [esp + 0xc], ecx
movzx ecx, word [ebx + 0x14]
push edi
movzx edi, word [ebx + 0xe]
lea ecx, [edi + ecx*2]
mov edi, dword [esp + 0x10]
sub ecx, edx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x44]
lea esi, [edx + eax]
mov edx, ecx
mov dword [esp + 0x18], eax
xor eax, eax
mov ah, byte [esi + 5]
shr ecx, 2
push ebx
push ebp
mov al, byte [esi + 6]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
sub ecx, eax
lea esi, [eax + edx]
mov edx, dword [esp + 0x18]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00425e80
mov esi, eax
add esp, 8
test esi, esi
jne 0x42b3f6
movzx ecx, byte [ebx + 2]
shl ecx, 3
mov edx, ecx
shr ecx, 2
lea esi, [ebx + 0x18]
lea edi, [ebp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [ebx + 2]
test al, al
mov byte [ebp + 2], al
je 0x42b37a
mov word [ebp + 0x12], 0
mov eax, dword [ebp + 0x44]
movzx ecx, byte [eax]
and ecx, 0xfffffff7
push ecx
mov esi, ebx
call fcn.00425ff0
movzx eax, byte [ebx + 8]
mov edx, dword [esp + 0x20]
mov ecx, dword [ebx + 0x44]
push edx
lea edx, [eax + ecx + 8]
push edx
call fcn.0041ca20
mov ecx, dword [esp + 0x2c]
mov al, byte [ecx + 0x16]
add esp, 0xc
test al, al
je 0x42b3eb
mov eax, dword [ebx + 0x4c]
push eax
mov eax, dword [ebp + 0x4c]
mov bl, 5
call fcn.00425620
mov esi, eax
add esp, 4
test esi, esi
jne 0x42b3f6
cmp word [ebp + 0x14], ax
jbe 0x42b3eb
lea esp, [esp]
mov eax, esi
mov edi, ebp
call fcn.00425800
call fcn.00425990
test eax, eax
jne 0x42b404
movzx ecx, word [ebp + 0x14]
inc esi
cmp esi, ecx
jl 0x42b3d0
push ebp
call fcn.0042a6d0
add esp, 4
mov esi, eax
mov edx, dword [ebp + 0x48]
push edx
call fcn.00438610
add esp, 4
mov eax, esi
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x43b620
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
mov ecx, dword [esp + 0x64]
push ebx
mov ebx, dword [ecx + 0x20]
test ebx, ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x64]
mov eax, dword [edi]
mov dword [esp + 0x64], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
je 0x43b7f5
movzx edx, byte [ebx + 8]
mov ecx, dword [esp + 0x68]
cmp edx, ecx
jne 0x43b7ea
movzx eax, byte [ebx + 9]
cmp eax, dword [esp + 0x70]
jne 0x43b7ea
mov eax, dword [ebx + 0x1c]
cmp eax, dword [ebx + 0x20]
je 0x43b686
mov edx, dword [esp + 0x64]
mov edx, dword [edx + 8]
cmp eax, dword [edx + 0x2c]
jne 0x43b7ea
cmp ecx, 0x64
jne 0x43b6a7
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x43b6a7
mov esi, dword [esp + 0x6c]
push eax
call fcn.0043b2c0
add esp, 4
test eax, eax
je 0x43b7ea
mov eax, dword [edi + 0x188]
test eax, eax
je 0x43b6c1
cmp ebx, dword [eax + 0x1c]
je 0x43b7ea
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x43b6b1
mov eax, dword [ebx]
mov esi, dword [esp + 0x64]
push 0xffffffffffffffff
push eax
push str.___TRIGGER__s
push esi
call fcn.00417be0
mov ecx, dword [edi + 0xc]
add esp, 0xc
push eax
push 0
push 0
push 0
push 0x14
push ecx
call fcn.0041f380
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
xor edx, edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x90]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x188]
mov dword [esp + 0x34], edx
lea edx, [esp + 0x34]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], eax
mov dword [edi + 0x188], edx
mov eax, dword [ebx]
push eax
lea ecx, [esp + 0x30]
push ecx
push edi
mov dword [esp + 0x64], edi
call fcn.0043d720
mov edx, dword [edi + 0xc]
push edx
call fcn.0041cf90
mov ebp, eax
mov eax, dword [ebx + 0xc]
push eax
push esi
call fcn.00444150
mov ecx, dword [esp + 0x98]
mov esi, eax
mov al, byte [ecx + 0x1e]
add esp, 0x34
test al, al
jne 0x43b829
lea edx, [esp + 0x3c]
push esi
push edx
call fcn.00444d00
add esp, 8
test eax, eax
jne 0x43b829
push 8
push ebp
push esi
push edi
call fcn.00446420
push esi
call fcn.00443700
mov eax, dword [esp + 0x94]
mov ecx, dword [ebx + 0x24]
push eax
push ecx
call fcn.0043b410
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x2c]
push eax
mov dword [edi + 0x188], edx
call fcn.0043d750
mov ecx, dword [edi + 0xc]
push ebp
push ecx
call fcn.0041cfe0
add esp, 0x28
mov ebx, dword [ebx + 0x28]
test ebx, ebx
jne 0x43b650
mov eax, dword [esp + 0x88]
test eax, eax
je 0x43b80a
mov edx, dword [eax]
mov ecx, dword [esp + 0x28]
or edx, ecx
mov dword [eax], edx
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x43b81f
mov ecx, dword [eax]
mov edx, dword [esp + 0x24]
or ecx, edx
mov dword [eax], ecx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret
mov edx, dword [esp + 0x38]
push esi
mov dword [edi + 0x188], edx
call fcn.00443700
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x50
ret
Function at 0x4438c0
Capabilities:
Enumerate pe sections

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x4438cd
xor eax, eax
pop edi
ret
push ebp
mov ebp, dword [esp + 0xc]
push esi
push 0x48
push ebp
call fcn.00420560
mov esi, eax
add esp, 8
test esi, esi
jne 0x4438e8
pop esi
pop ebp
pop edi
ret
mov al, byte [edi + 5]
mov byte [esi + 5], al
mov ecx, dword [edi]
push ecx
push ebp
call fcn.004427d0
mov dword [esi], eax
mov edx, dword [edi + 0xc]
push edx
push ebp
call fcn.004437a0
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
push eax
push ebp
call fcn.00444150
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
push ecx
push ebp
call fcn.004427d0
mov dword [esi + 0x14], eax
mov edx, dword [edi + 0x18]
push edx
push ebp
call fcn.00444150
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
push eax
push ebp
call fcn.004427d0
mov dword [esi + 0x1c], eax
mov cl, byte [edi + 4]
mov byte [esi + 4], cl
mov edx, dword [edi + 0x20]
push edx
push ebp
call fcn.004438c0
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x2c]
push eax
push ebp
call fcn.00444150
mov dword [esi + 0x2c], eax
mov ecx, dword [edi + 0x30]
add esp, 0x40
push ecx
push ebp
call fcn.00444150
mov dword [esi + 0x30], eax
or eax, 0xffffffff
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dl, byte [edi + 6]
mov byte [esi + 6], dl
mov cl, byte [edi + 7]
add esp, 8
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov byte [esi + 7], cl
mov byte [esi + 8], 0
mov byte [esi + 9], 0
mov dword [esi + 0x28], 0
mov eax, esi
pop esi
pop ebp
pop edi
ret
Function at 0x40c790
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44abc0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x248
mov eax, dword [0x47c068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
push 0x14
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x258]
add edx, 0x48
mov dword [ebp - 0x18], 0x208
push str.SoftwareNekoNyan
call fcn.004170e0
add esp, 8
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.0040c080
cmp dword [eax + 0x14], 8
jb 0x40c814
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x220]
push ecx
push 0
push 2
push str.InstallPath
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ecx, dword [ebp - 0x224]
mov edi, eax
cmp ecx, 8
jb 0x40c876
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c86c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c976
push ecx
push edx
call fcn.0042c0bc
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x244]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
cmp ecx, 0x10
jb 0x40c8d4
mov edx, dword [ebp - 0x258]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c8ca
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c976
push ecx
push edx
call fcn.0042c0bc
add esp, 8
test edi, edi
je 0x40c8de
mov byte [esi + 0x18], 0
jmp 0x40c956
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c8e7
sub ecx, edx
mov dword [ebp - 0x228], 0
sar ecx, 1
lea eax, [ebp - 0x220]
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x224], 0
push eax
lea ecx, [ebp - 0x238]
movups xmmword [ebp - 0x238], xmm0
call fcn.00417930
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
movups xmm0, xmmword [ebp - 0x238]
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x228]
movq qword [esi + 0x10], xmm0
mov byte [esi + 0x18], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042c079
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00430a9a
int3
Function at 0x40f730
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x40f817
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 0x40f806
jg 0x40f770
test edx, edx
je 0x40f806
nop dword [eax]
call fcn.00412300
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40f7c3
jg 0x40f787
test esi, esi
je 0x40f7c3
cmp ebx, eax
jg 0x40f797
jl 0x40f791
cmp edi, esi
jae 0x40f797
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
push esi
push dword [esp + 0x14]
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.0042d530
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 0x40f7ea
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x40f800
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x40f770
jl 0x40f800
test edi, edi
jne 0x40f770
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 + 0x20], esi
mov edx, dword [eax]
lea eax, [ecx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
test edx, edx
je 0x40f83f
mov eax, dword [eax]
mov edx, dword [eax]
jmp 0x40f845
xor edx, edx
mov dword [esp + 0x18], eax
mov eax, edx
cdq
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
test edi, edi
jl 0x40f8ad
jg 0x40f85a
test esi, esi
je 0x40f8ad
test edx, edx
jl 0x40f8a8
jg 0x40f864
test eax, eax
je 0x40f8a8
cmp edi, edx
jg 0x40f878
jl 0x40f86e
cmp esi, eax
jae 0x40f878
mov eax, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov ebx, dword [ebp + 8]
push eax
push ebx
push dword [esp + 0x24]
call fcn.0042d530
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x14]
add ebx, edx
mov ecx, dword [esp + 0xc]
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x10]
sub dword [eax], edx
mov eax, dword [ecx + 0x20]
add dword [eax], edx
jmp 0x40f8b0
mov ebx, dword [ebp + 8]
jmp 0x40f8ba
mov ebx, dword [ebp + 8]
test edi, edi
jl 0x40f8d3
jg 0x40f8ba
test esi, esi
je 0x40f8d3
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x40f8d3
push eax
push esi
push 1
push ebx
call fcn.004355e8
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 0x40f8f0
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 0x40f922
jl 0x40f915
test ecx, ecx
jne 0x40f922
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 0x40f9e2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.004023c0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40f98e
jg 0x40f94d
test esi, esi
je 0x40f98e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x40f965
mov eax, dword [esp + 0x10]
jl 0x40f95f
cmp eax, esi
jae 0x40f965
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0042d530
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 0x40f9af
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x40f9cb
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 0x40f934
jl 0x40f9cb
test ecx, ecx
jne 0x40f934
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
sbb esi, edx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x40fa20
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x40fa20
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.0042d530
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x40fa89
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40fa46
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x40fa74
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00436ee0
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x40fa89
cmp edi, eax
ja 0x40fa52
test edi, edi
je 0x40fa89
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00436ee0
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 0x40fe00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x47c068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x40fe30
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c079
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40fe6c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40fe6c
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.0042c079
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x40ff69
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x40fe94
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 0x40fec7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00430b14
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.0042c079
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x25], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
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 edx
sub eax, 0
je 0x40ff29
sub eax, 1
je 0x40ff29
sub eax, 2
jne 0x40ff69
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.00430b14
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.0042c079
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40ff46
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004355e8
add esp, 0x10
cmp edi, eax
jne 0x40ff69
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.0042c079
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.0042c079
mov esp, ebp
pop ebp
ret 4
Function at 0x410290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0x10], ecx
je 0x410367
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test esi, esi
jl 0x410356
jg 0x4102d0
test edx, edx
je 0x410356
nop dword [eax]
call fcn.00412300
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x41031f
jg 0x4102e7
test esi, esi
je 0x41031f
cmp ebx, eax
jg 0x4102f7
jl 0x4102f1
cmp edi, esi
jae 0x4102f7
mov esi, edi
mov dword [esp + 0x14], ebx
mov eax, dword [ecx + 0x20]
push esi
push dword [esp + 0x10]
push dword [eax]
call fcn.0042d530
mov ecx, dword [esp + 0x1c]
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 0x410342
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0xc]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x410350
mov ecx, dword [esp + 0x10]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0xc], esi
test ebx, ebx
jg 0x4102d0
jl 0x410350
test edi, edi
jne 0x4102d0
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 + 0x20], esi
mov edx, dword [eax]
lea eax, [ecx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
test edx, edx
je 0x41038f
mov eax, dword [eax]
mov edx, dword [eax]
jmp 0x410395
xor edx, edx
mov dword [esp + 0x18], eax
mov eax, edx
cdq
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], edx
test edi, edi
jl 0x4103fd
jg 0x4103aa
test esi, esi
je 0x4103fd
test edx, edx
jl 0x4103f8
jg 0x4103b4
test eax, eax
je 0x4103f8
cmp edi, edx
jg 0x4103c8
jl 0x4103be
cmp esi, eax
jae 0x4103c8
mov eax, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], edi
mov ebx, dword [ebp + 8]
push eax
push ebx
push dword [esp + 0x24]
call fcn.0042d530
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x14]
add ebx, edx
mov ecx, dword [esp + 0x10]
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0xc]
sub dword [eax], edx
mov eax, dword [ecx + 0x20]
add dword [eax], edx
jmp 0x410400
mov ebx, dword [ebp + 8]
jmp 0x41040a
mov ebx, dword [ebp + 8]
test edi, edi
jl 0x410423
jg 0x41040a
test esi, esi
je 0x410423
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x410423
push eax
push esi
push 1
push ebx
call fcn.004355e8
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