joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439b3b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.004408b0
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004312a2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x439b7d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x439cf4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00440660
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x45dfc8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0043ad5a
mov ecx, dword [esi*4 + 0x45dfc8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x439ced
cmp eax, dword [edi + ecx + 0x24]
jne 0x439ced
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x439ced
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043ad5a
add esp, 0x14
cmp edx, esi
jl 0x439ced
jg 0x439c48
cmp eax, esi
jb 0x439ced
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x439ced
jl 0x439c6a
cmp dword [ebp - 0x1008], eax
ja 0x439ced
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x439c8f
cmp ebx, esi
je 0x439cd4
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x439cd4
mov al, byte [ecx]
cmp al, 0xd
jne 0x439cb5
lea eax, [edi - 1]
cmp ecx, eax
jae 0x439cc1
cmp byte [ecx + 1], 0xa
jne 0x439cc1
inc ecx
jmp 0x439cc1
movzx eax, al
movsx eax, byte [eax + 0x45c828]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x439c9b
cmp edx, ebx
jne 0x439c9b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x439cf2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041b32c
leave
ret
Function at 0x43a141
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x43a15b
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x43a172
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x43a1ca
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.004356ec
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x43a1ca
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x43a1ca
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x43a1ca
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x43a1c4
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x43a1c6
xor bl, bl
mov al, bl
jmp 0x43a1cc
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x43a1e6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x45dfc8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43a228
cmp byte [ebx], 0xa
jne 0x43a228
or byte [edi + eax + 0x28], 4
jmp 0x43a22d
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x43a330
mov cl, byte [eax]
cmp cl, 0x1a
je 0x43a30b
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x43a25c
mov eax, dword [ebp - 8]
jmp 0x43a27c
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x43a298
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x43a276
add eax, 2
mov cl, 0xa
jmp 0x43a279
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x43a23e
jmp 0x43a330
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43a306
cmp dword [ebp - 0x10], 0
je 0x43a306
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x45dfc8]
test byte [eax + edi + 0x28], 0x48
je 0x43a2e5
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x43a2d5
mov byte [esi], 0xa
jmp 0x43a32f
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x45dfc8]
mov byte [eax + edi + 0x2a], cl
jmp 0x43a32f
cmp byte [ebp - 1], 0xa
jne 0x43a2ef
cmp esi, ebx
je 0x43a2d0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043ad78
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43a330
mov byte [esi], 0xd
jmp 0x43a32f
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x45dfc8]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x43a32d
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x43a330
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43a339
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x45dfc8]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x43a37d
push 0xa
pop esi
cmp word [ebx], si
jne 0x43a37d
or byte [eax + edi + 0x28], 4
jmp 0x43a382
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x43a4ed
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x43a4c5
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x43a3cf
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x43a3f9
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x43a418
push 0xa
pop ebx
cmp word [edx], bx
jne 0x43a3e6
push ebx
add eax, 4
pop edx
jmp 0x43a3ee
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x43a394
jmp 0x43a4ed
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43a4c0
cmp dword [ebp - 0x14], 0
je 0x43a4c0
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x45dfc8]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x43a49c
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x43a464
mov word [esi], ax
jmp 0x43a4ea
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x45dfc8]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x45dfc8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x45dfc8]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x43a4ea
cmp word [ebp - 4], ax
jne 0x43a4a6
cmp esi, ebx
je 0x43a45c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0043ad78
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x43a4ed
push 0xd
pop eax
jmp 0x43a45c
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x45dfc8]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x43a4e7
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x43a4ed
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43ec55
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0043ebd1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x43edc4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x43edc4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x43ed79
jg 0x43ecb1
test eax, eax
je 0x43ed6f
push 1
push 0x1000
call fcn.00431770
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43ecd4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x43ed66
push 0x8000
push ebx
call fcn.0042b449
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x43ecfd
jg 0x43ecf8
cmp ecx, 0x1000
jb 0x43ecfd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004391b4
add esp, 0x10
cmp eax, 0xffffffff
je 0x43ed42
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x43ecf8
jl 0x43ed29
test ecx, ecx
jne 0x43ecea
push dword [ebp - 0xc]
push ebx
call fcn.0042b449
push esi
call fcn.0042ffe0
add esp, 0xc
xor ebx, ebx
jmp 0x43edd2
cmp byte [edi + 0x24], 0
je 0x43ed59
cmp dword [edi + 0x20], 5
jne 0x43ed59
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x43ed64
mov ebx, dword [edi + 0x18]
jmp 0x43ed66
xor ebx, ebx
push esi
call fcn.0042ffe0
pop ecx
jmp 0x43edd2
test ecx, ecx
jg 0x43ed3b
jl 0x43ed79
test eax, eax
jae 0x43ed3b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043ad78
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43ed99
cmp byte [edi + 0x1c], 0
je 0x43ed3b
jmp 0x43edca
push ebx
call fcn.004356ec
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43ed3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x43edd2
cmp byte [edi + 0x1c], 0
je 0x43edcf
mov ebx, dword [edi + 0x18]
jmp 0x43edd2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0043ad78
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x440470
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x4e3114]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x38], 0
je 0x412c57
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x412c5e
mov al, 1
jmp 0x412d51
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x48], edx
call fcn.00418de0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x3c]
call dword [0x4b5234]
mov ecx, dword [ebp - 0x30]
call dword [ebp - 0x3c]
mov dword [ebp - 0x4c], eax
call fcn.00418de0
mov dword [ebp - 0x50], eax
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.00418e60
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x412cb3
xor al, al
jmp 0x412d51
mov dword [ebp - 0x58], 0x20
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x40
push ecx
mov ecx, dword [ebp - 0x54]
call fcn.0041fdb0
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x412cf5
cmp dword [ebp - 0x34], 1
je 0x412cfc
cmp dword [ebp - 0x34], 3
je 0x412d4b
jmp 0x412d4f
mov edx, dword [ebp - 0x30]
mov byte [edx + 0x3d], 0
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
sub eax, ecx
mov dword [ebp - 0x38], eax
je 0x412d2b
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
push 1
lea edx, [ebp - 0x28]
push edx
call fcn.0048e068
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x412d2b
xor al, al
jmp 0x412d51
mov eax, dword [ebp - 0x30]
movzx ecx, byte [eax + 0x3d]
test ecx, ecx
jne 0x412d3f
mov dword [ebp - 0x40], 1
jmp 0x412d46
mov dword [ebp - 0x40], 0
mov al, byte [ebp - 0x40]
jmp 0x412d51
mov al, 1
jmp 0x412d51
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bb2e
mov esp, ebp
pop ebp
ret
Function at 0x412d60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4e3114]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x38], 0
je 0x412d87
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3e]
test edx, edx
jne 0x412d8e
mov al, 1
jmp 0x412e85
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x4c], edx
call fcn.00418dd0
mov word [ebp - 0x32], ax
movzx eax, word [ebp - 0x32]
push eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x44]
call dword [0x4b5234]
mov ecx, dword [ebp - 0x30]
call dword [ebp - 0x44]
mov word [ebp - 0x34], ax
call fcn.00418dd0
mov word [ebp - 0x36], ax
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x36]
push eax
call fcn.00418e30
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x412de7
xor al, al
jmp 0x412e85
mov dword [ebp - 0x54], 0x20
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x40
push ecx
mov ecx, dword [ebp - 0x50]
call fcn.0041fdb0
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x412e29
cmp dword [ebp - 0x3c], 1
je 0x412e30
cmp dword [ebp - 0x3c], 3
je 0x412e7f
jmp 0x412e83
mov edx, dword [ebp - 0x30]
mov byte [edx + 0x3e], 0
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
sub eax, ecx
mov dword [ebp - 0x40], eax
je 0x412e5f
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
push 1
lea edx, [ebp - 0x28]
push edx
call fcn.0048e068
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x412e5f
xor al, al
jmp 0x412e85
mov eax, dword [ebp - 0x30]
movzx ecx, byte [eax + 0x3e]
test ecx, ecx
jne 0x412e73
mov dword [ebp - 0x48], 1
jmp 0x412e7a
mov dword [ebp - 0x48], 0
mov al, byte [ebp - 0x48]
jmp 0x412e85
mov al, 1
jmp 0x412e85
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bb2e
mov esp, ebp
pop ebp
ret
Function at 0x41da20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4e3114]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x38], ecx
call fcn.00418de0
mov dword [ebp - 0x50], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x50]
push ecx
call fcn.00418e60
add esp, 8
movzx edx, al
test edx, edx
je 0x41da64
lea eax, [ebp + 8]
push eax
call fcn.0041d800
add esp, 4
jmp 0x41dbf9
mov ecx, dword [ebp - 0x38]
call fcn.0041e1b0
test eax, eax
je 0x41daaa
mov ecx, dword [ebp - 0x38]
call fcn.0041e1b0
mov esi, eax
mov ecx, dword [ebp - 0x38]
call fcn.00418df0
cmp esi, eax
jae 0x41daaa
lea ecx, [ebp + 8]
push ecx
call fcn.0041f550
add esp, 4
mov byte [ebp - 0x39], al
mov ecx, dword [ebp - 0x38]
call fcn.00415560
mov dl, byte [ebp - 0x39]
mov byte [eax], dl
mov eax, dword [ebp + 8]
jmp 0x41dbf9
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x4c], 0
jne 0x41dabd
call fcn.00418de0
jmp 0x41dbf9
mov ecx, dword [ebp - 0x38]
call fcn.00415b70
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + 0x38], 0
jne 0x41db16
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x4c]
mov dword [ebp - 0x54], eax
lea ecx, [ebp + 8]
push ecx
call fcn.0041f550
add esp, 4
mov byte [ebp - 0x3a], al
mov edx, dword [ebp - 0x54]
push edx
movzx eax, byte [ebp - 0x3a]
push eax
call fcn.004039b0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x41db06
mov edx, dword [ebp + 8]
mov dword [ebp - 0x48], edx
jmp 0x41db0e
call fcn.00418de0
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
jmp 0x41dbf9
mov dword [ebp - 0x5c], 0x20
lea eax, [ebp + 8]
push eax
call fcn.0041f550
add esp, 4
mov byte [ebp - 0x2a], al
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x58], edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x29]
push ecx
lea edx, [ebp - 0x2a]
push edx
mov eax, dword [ebp - 0x38]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x58]
call fcn.0041d9d0
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jl 0x41dbf4
cmp dword [ebp - 0x40], 1
jle 0x41db77
cmp dword [ebp - 0x40], 3
je 0x41dbc4
jmp 0x41dbf4
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x44], ecx
je 0x41dba9
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x44]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.0048e068
add esp, 0x10
cmp dword [ebp - 0x44], eax
je 0x41dba9
call fcn.00418de0
jmp 0x41dbf9
mov ecx, dword [ebp - 0x38]
mov byte [ecx + 0x3d], 1
lea edx, [ebp - 0x2a]
cmp dword [ebp - 0x34], edx
je 0x41dbbd
mov eax, dword [ebp + 8]
jmp 0x41dbf9
call fcn.00418de0
jmp 0x41dbf9
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, byte [ebp - 0x2a]
push edx
call fcn.004039b0
add esp, 8
movzx eax, al
test eax, eax
je 0x41dbe7
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x4c], ecx
jmp 0x41dbef
call fcn.00418de0
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
jmp 0x41dbf9
call fcn.00418de0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bb2e
mov esp, ebp
pop ebp
ret 4
Function at 0x41dc10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x4e3114]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x38], ecx
call fcn.00418dd0
mov word [ebp - 0x3e], ax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x3e]
push ecx
call fcn.00418e30
add esp, 8
movzx edx, al
test edx, edx
je 0x41dc55
lea eax, [ebp + 8]
push eax
call fcn.0041d7a0
add esp, 4
jmp 0x41ddfc
mov ecx, dword [ebp - 0x38]
call fcn.0041e1b0
test eax, eax
je 0x41dc9f
mov ecx, dword [ebp - 0x38]
call fcn.0041e1b0
mov esi, eax
mov ecx, dword [ebp - 0x38]
call fcn.00418e10
cmp esi, eax
jae 0x41dc9f
lea ecx, [ebp + 8]
push ecx
call fcn.0041f540
add esp, 4
mov word [ebp - 0x40], ax
mov ecx, dword [ebp - 0x38]
call fcn.004155b0
mov dx, word [ebp - 0x40]
mov word [eax], dx
mov ax, word [ebp + 8]
jmp 0x41ddfc
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x4c], 0
jne 0x41dcb2
call fcn.00418dd0
jmp 0x41ddfc
mov ecx, dword [ebp - 0x38]
call fcn.00415bb0
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + 0x38], 0
jne 0x41dd10
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x4c]
mov dword [ebp - 0x50], eax
lea ecx, [ebp + 8]
push ecx
call fcn.0041f540
add esp, 4
mov word [ebp - 0x42], ax
mov edx, dword [ebp - 0x50]
push edx
movzx eax, word [ebp - 0x42]
push eax
call fcn.004039f0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x41dcfe
mov dx, word [ebp + 8]
mov word [ebp - 0x3a], dx
jmp 0x41dd07
call fcn.00418dd0
mov word [ebp - 0x3a], ax
mov ax, word [ebp - 0x3a]
jmp 0x41ddfc
mov dword [ebp - 0x58], 0x20
lea eax, [ebp + 8]
push eax
call fcn.0041f540
add esp, 4
mov word [ebp - 0x2c], ax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x54], edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2a]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x38]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x54]
call fcn.0041d9d0
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jl 0x41ddf7
cmp dword [ebp - 0x48], 1
jle 0x41dd75
cmp dword [ebp - 0x48], 3
je 0x41ddc3
jmp 0x41ddf7
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x4c], ecx
je 0x41dda7
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.0048e068
add esp, 0x10
cmp dword [ebp - 0x4c], eax
je 0x41dda7
call fcn.00418dd0
jmp 0x41ddfc
mov ecx, dword [ebp - 0x38]
mov byte [ecx + 0x3e], 1
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x34], edx
je 0x41ddbc
mov ax, word [ebp + 8]
jmp 0x41ddfc
call fcn.00418dd0
jmp 0x41ddfc
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, word [ebp - 0x2c]
push edx
call fcn.004039f0
add esp, 8
movzx eax, al
test eax, eax
je 0x41dde8
mov cx, word [ebp + 8]
mov word [ebp - 0x3c], cx
jmp 0x41ddf1
call fcn.00418dd0
mov word [ebp - 0x3c], ax
mov ax, word [ebp - 0x3c]
jmp 0x41ddfc
call fcn.00418dd0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bb2e
mov esp, ebp
pop ebp
ret 4