joyce8/EMBER2024-capa huggingface dataset:
Function at 0xac77c
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0xac99f
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0xac7a9
cmp dword [ebp - 4], 0
jg 0xac7b0
mov bl, 3
jmp 0xac989
mov eax, dword [ebp - 4]
mov ecx, 3
cdq
idiv ecx
test edx, edx
jne 0xac7ce
mov eax, dword [ebp - 4]
mov ecx, 3
cdq
idiv ecx
mov ebx, eax
jmp 0xac7dc
mov eax, dword [ebp - 4]
mov ecx, 3
cdq
idiv ecx
mov ebx, eax
inc ebx
mov edx, ebx
shl edx, 2
mov eax, edi
call fcn.00094688
dec ebx
test ebx, ebx
jl 0xac973
inc ebx
mov dword [ebp - 0xc], ebx
xor ebx, ebx
lea eax, [ebx + ebx*2]
add eax, 3
cmp eax, dword [ebp - 4]
jg 0xac886
lea eax, [ebx + ebx*2]
movzx eax, byte [esi + eax]
shr eax, 2
mov al, byte [eax + 0xc6f6c]
mov byte [ebp - 5], al
lea eax, [ebx + ebx*2]
mov al, byte [esi + eax]
shl eax, 4
and al, 0x30
lea edx, [ebx + ebx*2]
inc edx
movzx edx, byte [esi + edx]
shr edx, 4
or al, dl
and eax, 0xff
mov al, byte [eax + 0xc6f6c]
mov byte [ebp - 6], al
lea eax, [ebx + ebx*2]
inc eax
mov al, byte [esi + eax]
shl eax, 2
and al, 0x3c
lea edx, [ebx + ebx*2]
add edx, 2
movzx edx, byte [esi + edx]
shr edx, 6
or al, dl
and eax, 0xff
mov al, byte [eax + 0xc6f6c]
mov byte [ebp - 7], al
lea eax, [ebx + ebx*2]
add eax, 2
mov al, byte [esi + eax]
and al, 0x3f
and eax, 0xff
mov al, byte [eax + 0xc6f6c]
mov byte [ebp - 8], al
jmp 0xac91e
lea eax, [ebx + ebx*2]
add eax, 2
cmp eax, dword [ebp - 4]
jg 0xac8ea
lea eax, [ebx + ebx*2]
movzx eax, byte [esi + eax]
shr eax, 2
mov al, byte [eax + 0xc6f6c]
mov byte [ebp - 5], al
lea eax, [ebx + ebx*2]
mov al, byte [esi + eax]
shl eax, 4
and al, 0x30
lea edx, [ebx + ebx*2]
inc edx
movzx edx, byte [esi + edx]
shr edx, 4
or al, dl
and eax, 0xff
mov al, byte [eax + 0xc6f6c]
mov byte [ebp - 6], al
lea eax, [ebx + ebx*2]
inc eax
mov al, byte [esi + eax]
shl eax, 2
and al, 0x3c
and eax, 0xff
mov al, byte [eax + 0xc6f6c]
mov byte [ebp - 7], al
mov byte [ebp - 8], 0x3d
jmp 0xac91e
lea eax, [ebx + ebx*2]
movzx eax, byte [esi + eax]
shr eax, 2
mov al, byte [eax + 0xc6f6c]
mov byte [ebp - 5], al
lea eax, [ebx + ebx*2]
mov al, byte [esi + eax]
shl eax, 4
and al, 0x30
and eax, 0xff
mov al, byte [eax + 0xc6f6c]
mov byte [ebp - 6], al
mov byte [ebp - 7], 0x3d
mov byte [ebp - 8], 0x3d
mov eax, edi
call fcn.0009459c
mov edx, ebx
shl edx, 2
mov cl, byte [ebp - 5]
mov byte [eax + edx], cl
mov eax, edi
call fcn.0009459c
mov edx, ebx
shl edx, 2
mov cl, byte [ebp - 6]
mov byte [eax + edx + 1], cl
mov eax, edi
call fcn.0009459c
mov edx, ebx
shl edx, 2
mov cl, byte [ebp - 7]
mov byte [eax + edx + 2], cl
mov eax, edi
call fcn.0009459c
mov edx, ebx
shl edx, 2
mov cl, byte [ebp - 8]
mov byte [eax + edx + 3], cl
inc ebx
dec dword [ebp - 0xc]
jne 0xac7f7
lea edx, [ebp - 0x10]
mov eax, dword [edi]
call fcn.00096e48
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.000940c8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xac9a6
lea eax, [ebp - 0x10]
call fcn.00094074
ret
Function at 0xad958
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
lea ebx, [ebp - 0x14]
xor eax, eax
push ebp
push 0xadb11
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x3fffffff
call fcn.00092c54
mov edi, eax
add edi, 0x12e499d
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
mov ecx, edi
mov edx, dword [ebp - 0xc]
call fcn.000ad3e0
mov eax, dword [ebp - 0x10]
call fcn.000951b4
add eax, 0x48
push eax
mov eax, esi
mov ecx, 1
mov edx, dword [0x95d70]
call fcn.00095390
add esp, 4
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebp - 0x10]
call fcn.000951b4
add eax, 0x48
mov edx, dword [ebx]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
call fcn.000951b4
add edi, 0x48
add eax, edi
mov edx, dword [ebx]
mov dword [edx + 8], eax
mov eax, dword [ebx]
mov eax, dword [eax]
mov edx, dword [ebx]
add eax, dword [edx + 8]
mov ecx, 7
cdq
idiv ecx
lea ecx, [eax + eax*2]
mov eax, dword [ebx]
mov dword [eax + 4], ecx
add ecx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [eax + 0x18], ecx
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add eax, dword [ebp + 0xc]
mov edx, dword [ebx]
mov dword [edx + 0x14], eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add eax, 0x989680
mov edx, dword [ebx]
mov dword [edx + 0x1c], eax
call fcn.000acce8
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0009ab7c
push edx
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov ecx, dword [ebx]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
mov eax, 0x3fffffff
call fcn.00092c54
mov edx, dword [ebx]
add eax, dword [edx + 4]
cdq
mov ecx, dword [ebx]
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x10]
call fcn.000951b4
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov eax, dword [esi]
add eax, 0x48
call fcn.0009b55c
mov eax, 0x3fffffff
call fcn.00092c54
mov edx, dword [ebx]
add eax, dword [edx + 4]
cdq
mov ecx, dword [ebx]
add dword [ecx + 0x40], eax
adc dword [ecx + 0x44], edx
mov eax, 0x3fffffff
call fcn.00092c54
mov edx, dword [ebx]
add eax, dword [edx + 4]
cdq
mov ecx, dword [ebx]
add dword [ecx + 0x38], eax
adc dword [ecx + 0x3c], edx
mov eax, 0x3fffffff
call fcn.00092c54
mov edx, dword [ebx]
add eax, dword [edx + 4]
cdq
mov ecx, dword [ebx]
add dword [ecx + 0x30], eax
adc dword [ecx + 0x34], edx
mov eax, 0x3fffffff
call fcn.00092c54
mov edx, dword [ebx]
add eax, dword [edx + 4]
cdq
mov ecx, dword [ebx]
add dword [ecx + 0x28], eax
adc dword [ecx + 0x2c], edx
mov eax, 0x3fffffff
call fcn.00092c54
mov edx, dword [ebx]
add dword [edx + 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xadb18
lea eax, [ebp - 0x10]
mov edx, dword [0x95d70]
call fcn.0009539c
ret
Function at 0xaf5c8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0xaf6f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, ebx
call fcn.000940c8
mov eax, dword [esi]
call fcn.00094344
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0xaf6e2
mov eax, edi
shr eax, 0x18
mov byte [ebp - 0x10], al
mov eax, edi
shr eax, 0x10
mov byte [ebp - 0xf], al
mov eax, edi
shr eax, 8
mov byte [ebp - 0xe], al
mov eax, edi
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 4]
dec eax
cmp eax, 0
jl 0xaf6ce
mov dword [ebp - 8], eax
mov eax, esi
call fcn.0009459c
mov edx, dword [esi]
mov dl, byte [edx]
mov cl, byte [ebp - 0xf]
add dl, cl
mov byte [eax], dl
mov edi, dword [ebp - 0xc]
sub edi, 2
jl 0xaf67a
inc edi
mov ebx, 2
mov eax, esi
call fcn.0009459c
mov edx, dword [esi]
mov dl, byte [edx + ebx - 2]
mov ecx, dword [esi]
mov cl, byte [ecx + ebx - 1]
add dl, cl
mov cl, byte [ebp - 0xd]
xor dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
dec edi
jne 0xaf658
mov eax, esi
call fcn.0009459c
mov edx, dword [ebp - 0xc]
mov ecx, dword [esi]
mov ebx, dword [ebp - 0xc]
mov cl, byte [ecx + ebx - 1]
mov bl, byte [ebp - 0x10]
add cl, bl
mov byte [eax + edx - 1], cl
mov ebx, dword [ebp - 0xc]
dec ebx
cmp ebx, 1
jl 0xaf6c1
mov eax, esi
call fcn.0009459c
mov edx, dword [esi]
mov dl, byte [edx + ebx]
mov ecx, dword [esi]
mov cl, byte [ecx + ebx - 1]
add dl, cl
mov cl, byte [ebp - 0xe]
xor dl, cl
mov byte [eax + ebx - 1], dl
dec ebx
test ebx, ebx
jne 0xaf69f
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xffffffff
jne 0xaf638
lea edx, [ebp - 0x14]
mov eax, dword [esi]
call fcn.000acc98
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.000940c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xaf6ff
lea eax, [ebp - 0x14]
call fcn.00094074
ret
Function at 0xaf708
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
mov esi, dword [ebp + 8]
mov edx, esi
mov eax, edi
call fcn.000acca0
mov eax, dword [esi]
call fcn.00094344
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0xaf7f4
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 0x10], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xf], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xe], al
mov byte [ebp - 0xd], bl
mov eax, dword [ebp - 4]
dec eax
cmp eax, 0
jl 0xaf7f4
mov dword [ebp - 8], eax
mov edi, dword [ebp - 0xc]
dec edi
test edi, edi
jle 0xaf78f
mov ebx, 1
mov eax, esi
call fcn.0009459c
mov edx, dword [esi]
mov dl, byte [edx + ebx - 1]
xor dl, byte [ebp - 0xe]
mov ecx, dword [esi]
mov cl, byte [ecx + ebx]
sub dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
dec edi
jne 0xaf770
mov eax, esi
call fcn.0009459c
mov edx, dword [ebp - 0xc]
mov ecx, dword [esi]
mov ebx, dword [ebp - 0xc]
mov cl, byte [ecx + ebx - 1]
mov bl, byte [ebp - 0x10]
sub cl, bl
mov byte [eax + edx - 1], cl
mov ebx, dword [ebp - 0xc]
cmp ebx, 2
jl 0xaf7d5
mov eax, esi
call fcn.0009459c
mov edx, dword [esi]
mov dl, byte [edx + ebx - 1]
xor dl, byte [ebp - 0xd]
mov ecx, dword [esi]
mov cl, byte [ecx + ebx - 2]
sub dl, cl
mov byte [eax + ebx - 1], dl
dec ebx
cmp ebx, 1
jne 0xaf7b3
mov eax, esi
call fcn.0009459c
mov edx, dword [esi]
mov dl, byte [edx]
mov cl, byte [ebp - 0xf]
sub dl, cl
mov byte [eax], dl
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xffffffff
jne 0xaf763
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4153d6
Capabilities:
Parse pe header

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

Function at 0x424254
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x438338
push 0x438330
push str.FlsAlloc
push 0x1f
call fcn.00424113
mov esi, eax
add esp, 0x10
test esi, esi
je 0x424288
push dword [ebp + 8]
mov ecx, esi
call dword [0x433130]
call esi
jmp 0x42428e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4242d2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x438348
push 0x438340
push str.FlsGetValue
push 0x21
call fcn.00424113
mov esi, eax
add esp, 0x10
test esi, esi
je 0x424309
push dword [ebp + 8]
mov ecx, esi
call dword [0x433130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x424311
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x438350
push 0x438348
push str.FlsSetValue
push 0x22
call fcn.00424113
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42434b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x433130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4282bd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00414d30
mov eax, dword [0x4c9944]
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.00424753
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4282ff
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42845b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004326d0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x9cec78]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00427ed5
mov ecx, dword [esi*4 + 0x9cec78]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x428454
cmp eax, dword [ecx + edi + 0x24]
jne 0x428454
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x428454
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00427ed5
add esp, 0x14
test edx, edx
jl 0x428454
jg 0x4283ca
test eax, eax
jb 0x428454
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x428454
jl 0x4283e4
cmp dword [ebp - 0x1008], eax
ja 0x428454
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x428402
test ebx, ebx
je 0x42843b
cmp ecx, edi
jae 0x42843b
mov al, byte [ecx]
cmp al, 0xd
jne 0x42841c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x428428
cmp byte [ecx + 1], 0xa
jne 0x428428
inc ecx
jmp 0x428428
movzx eax, al
movsx eax, byte [eax + 0x4ca0e0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x428402
cmp edx, ebx
jne 0x428402
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x428459
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00414d1e
leave
ret
Function at 0x42a723
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42a7c0
push ebx
push esi
call fcn.0042a6ec
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0042a680
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42a76d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42a7bf
push edi
push eax
call fcn.00424eca
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42a78d
call fcn.00423fa4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42a7be
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042a680
add esp, 0x20
test eax, eax
jne 0x42a7ac
push edi
call fcn.00423fa4
jmp 0x42a7b4
push ebx
call fcn.00423fa4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x42d837
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x9cec78]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42d877
cmp byte [ebx], 0xa
jne 0x42d877
or byte [edi + eax + 0x28], 4
jmp 0x42d87c
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x42d97b
mov dl, byte [eax]
cmp dl, 0x1a
je 0x42d95e
inc eax
cmp dl, 0xd
je 0x42d8a8
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x42d8ce
cmp eax, ecx
jae 0x42d8dc
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x42d890
jmp 0x42d97b
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 0x42d959
cmp dword [ebp - 0x10], 0
je 0x42d959
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x9cec78]
test byte [eax + edi + 0x28], 0x48
je 0x42d933
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42d91e
mov byte [esi], dl
jmp 0x42d92f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x9cec78]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42d97b
cmp byte [ebp - 1], 0xa
jne 0x42d942
cmp esi, ebx
jne 0x42d942
mov byte [esi], 0xa
jmp 0x42d97a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00427ef3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42d97b
mov byte [esi], 0xd
jmp 0x42d97a
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x9cec78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42d978
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42d97b
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42d984
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x9cec78]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42d9ca
cmp word [ebx], dx
jne 0x42d9ca
or byte [eax + edi + 0x28], 4
jmp 0x42d9cf
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x42db32
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x42db12
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x42da10
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42da46
cmp eax, edx
jae 0x42da54
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x42d9eb
jmp 0x42db32
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42db0d
cmp dword [ebp - 0x18], 0
je 0x42db0d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x9cec78]
test byte [eax + edi + 0x28], 0x48
je 0x42dae3
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x42daa7
mov word [esi], cx
jmp 0x42dade
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x9cec78]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x9cec78]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x9cec78]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x42db32
pop eax
cmp word [ebp - 4], ax
jne 0x42daf3
cmp esi, ebx
jne 0x42daf3
mov word [esi], ax
jmp 0x42db2f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00427ef3
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x42db32
push 0xd
pop eax
jmp 0x42daee
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x9cec78]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x42db2c
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x42db32
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4311e5
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.00431161
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x431354
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x431354
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x431309
jg 0x431241
test eax, eax
je 0x4312ff
push 1
push 0x1000
call fcn.00423f47
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x431264
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4312f6
push 0x8000
push ebx
call fcn.00422fb2
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x43128d
jg 0x431288
cmp ecx, 0x1000
jb 0x43128d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00426e89
add esp, 0x10
cmp eax, 0xffffffff
je 0x4312d2
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 0x431288
jl 0x4312b9
test ecx, ecx
jne 0x43127a
push dword [ebp - 0xc]
push ebx
call fcn.00422fb2
push esi
call fcn.00423fa4
add esp, 0xc
xor ebx, ebx
jmp 0x431362
cmp byte [edi + 0x24], 0
je 0x4312e9
cmp dword [edi + 0x20], 5
jne 0x4312e9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4312f4
mov ebx, dword [edi + 0x18]
jmp 0x4312f6
xor ebx, ebx
push esi
call fcn.00423fa4
pop ecx
jmp 0x431362
test ecx, ecx
jg 0x4312cb
jl 0x431309
test eax, eax
jae 0x4312cb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00427ef3
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x431329
cmp byte [edi + 0x1c], 0
je 0x4312cb
jmp 0x43135a
push ebx
call fcn.0042af17
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4312cb
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 0x431362
cmp byte [edi + 0x1c], 0
je 0x43135f
mov ebx, dword [edi + 0x18]
jmp 0x431362
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00427ef3
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x432470
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43249d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43249d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret