joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453060
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4d000]
push edi
jmp 0x45307a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x453081
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x453070
mov eax, 1
add ebx, ebx
jne 0x453093
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x453088
jne 0x4530a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x453088
xor ecx, ecx
sub eax, 3
jb 0x4530b8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45312a
mov ebp, eax
add ebx, ebx
jne 0x4530c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4530d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4530f4
inc ecx
add ebx, ebx
jne 0x4530e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4530d5
jne 0x4530f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4530d5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x453114
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x453105
jmp 0x453076
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x453114
add edi, ecx
jmp 0x453076
pop esi
mov edi, esi
mov ecx, 0x263
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x453132
cmp byte [edi], 6
jne 0x453132
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x453137
lea edi, [esi + 0x51000]
mov eax, dword [edi]
or eax, eax
je 0x4531af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5b018]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5b0d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x453164
mov ecx, edi
jns 0x453193
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5b0d8]
or eax, eax
je 0x4531a9
mov dword [ebx], eax
add ebx, 4
jmp 0x453181
call dword [esi + 0x5b0d4]
mov ebp, dword [esi + 0x5b0dc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4531e3
sub esp, 0xffffff80
jmp 0x4032a0
Function at 0x8ef594
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8ef59a
pop ebp
sub ebp, 6
sub ebp, 0x4ef594
jmp 0x8ef5f8
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
jmp 0x8ef601
mov eax, 0x4ef594
add eax, ebp
add eax, 0x93
mov ecx, 0x5cb
mov edx, 0xd2967f1b
xor byte [eax], dl
inc eax
dec ecx
jne 0x8ef618
jmp 0x8ef62b
nop
salc
nop
xchg edx, eax
daa
sbb ebx, dword [ebx]
sbb ebx, dword [edx + 0x1b1be3da]
sbb ebx, dword [eax]
salc
mov dword [0x1b1b1b1d], eax
mov eax, dword [0x1b1b1b33]
sbb ebx, dword [ebx]
sbb esp, dword [ecx + 0x1b1b1b33]
in al, dx
stc
sbb bl, dl
nop
lcall 0xde18, 0x1b1b1b17
dec ebx
dec ebx
jae 0x8ef5f0
xor al, 0x16
sbb esi, dword [ebx + 0xf]
fstp qword [edx + 0x1b]
sbb dh, byte [edi]
aas
jae 0x8ef677
push edi
sbb byte [eax], bh
push ds
sbb ebx, dword [ebx]
sbb esi, edx
xor dword [ebx], ebx
sbb ebx, dword [ebx]
dec esi
xchg esi, eax
ja 0x8ef6b2
sbb edx, dword [eax + 0x1b1b139e]
sbb ebx, dword [ebx]
sbb edx, dword [eax + 0x1b1b178e]
sbb edx, dword [eax + 0x1b1b0b96]
sbb ebx, edx
sbb dword [edx], ebp
sbb dword [eax + 0x14521fd9], ebx
sahf
out dx, eax
in al, 0xe4
in al, 0x46
fst dword [edi]
sbb edx, dword [eax + 0x1b1f3f97]
sbb ebx, dword [ebx]
jae 0x8ef63d
xor al, 0x16
sbb esi, dword [ebx + 0xf]
fstp qword [edx + 0x1b]
sbb dh, byte [edi]
aas
dec edx
push ds
sbb ebx, dword [ebx]
sbb esi, edx
push eax
sbb dword [ebx], ebx
sbb ecx, dword [esi + 0x4f]
inc esi
in al, 0x6e
pop ss
in al, 0x6e
adc esi, ebx
sbb ebx, dword gs:[ebx]
sbb edx, dword [eax + 0x1b1b13a6]
sbb ebx, dword [edx + 0x67de4fea]
jb 0x8ef66d
ljmp 0xd228:0x7267de4f
Function at 0x405130
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x228
mov eax, dword [0x4809c0]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x22c]
push ebx
push ebp
push esi
push edi
push 0x2c
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], 0
call fcn.0040f625
mov esi, dword [esp + 0x24c]
mov ebx, eax
mov edi, dword [esp + 0x248]
add esp, 4
xor ecx, ecx
mov dword [ebx], ebx
mov dword [ebx + 4], ebx
mov dword [ebx + 8], ebx
mov word [ebx + 0xc], 0x101
mov dword [esp + 0x14], ebx
nop dword [eax]
mov eax, ecx
mov byte [esp + ecx + 0x34], cl
cdq
idiv esi
mov al, byte [edx + edi]
mov byte [esp + ecx + 0x134], al
inc ecx
cmp ecx, 0x100
jl 0x405190
xor esi, esi
xor edi, edi
mov dl, byte [esp + esi + 0x34]
movzx eax, byte [esp + esi + 0x134]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x4051d3
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x34]
mov byte [esp + esi + 0x34], al
inc esi
mov byte [esp + edi + 0x34], dl
cmp esi, 0x100
jl 0x4051b0
mov ebp, dword [esp + 0x240]
xor edx, edx
xor edi, edi
xor esi, esi
test ebp, ebp
jle 0x4052e0
nop dword [eax]
inc edx
and edx, 0x800000ff
jns 0x405211
dec edx
or edx, 0xffffff00
inc edx
mov cl, byte [esp + edx + 0x34]
movzx eax, cl
add edi, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
and edi, 0x800000ff
jns 0x405232
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x34]
push 0x431638
mov byte [esp + edx + 0x38], al
push 0x482908
mov dword [esp + 0x30], edi
mov byte [esp + edi + 0x3c], cl
call fcn.004018a0
mov ebx, eax
add esp, 8
mov ecx, dword [ebx]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + ebx + 0x30]
mov edi, dword [ecx + 4]
mov ecx, edi
mov dword [esp + 0x30], edi
mov edx, dword [edi]
call dword [edx + 4]
lea eax, [esp + 0x2c]
push eax
call fcn.00402790
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
call dword [edx + 0x30]
movzx eax, ax
mov dword [esp + 0x10], eax
test edi, edi
je 0x4052a5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x4052a1
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [esp + 0x10]
push eax
mov ecx, ebx
call fcn.0040ab40
mov ecx, ebx
call fcn.004091b0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
movzx eax, byte [esp + edx + 0x34]
add eax, dword [esp + 0x20]
movzx eax, al
mov al, byte [esp + eax + 0x34]
xor byte [esi + ecx], al
inc esi
cmp esi, ebp
jl 0x405200
mov ebx, dword [esp + 0x14]
push dword [ebx + 4]
lea eax, [esp + 0x18]
push eax
mov ecx, eax
call fcn.00401c80
push 0x2c
push dword [esp + 0x18]
call fcn.0040f655
mov ecx, dword [esp + 0x23c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040f96e
add esp, 0x228
ret
Function at 0x40b760
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x14]
test eax, eax
jg 0x40b781
jl 0x40b777
test esi, esi
jne 0x40b781
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ecx
ret 0xc
cmp dword [ebx + 0x38], 0
push ebp
push edi
mov edi, esi
je 0x40b834
mov ebp, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
nop dword [eax]
mov ecx, ebx
call fcn.00406560
mov esi, eax
mov eax, edx
mov dword [esp + 0x10], eax
test eax, eax
jl 0x40b7f1
jg 0x40b7b9
test esi, esi
je 0x40b7f1
cmp ebp, eax
jg 0x40b7c9
jl 0x40b7c3
cmp edi, esi
jae 0x40b7c9
mov esi, edi
mov dword [esp + 0x10], ebp
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push dword [esp + 0x20]
call fcn.004108d0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
sub edi, esi
sbb ebp, dword [esp + 0x10]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x18]
jmp 0x40b810
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x40b820
mov eax, dword [esp + 0x18]
add edi, 0xffffffff
mov esi, 1
adc ebp, 0xffffffff
mov byte [eax], cl
add eax, esi
mov dword [esp + 0x18], eax
test ebp, ebp
jg 0x40b7a0
jl 0x40b820
test edi, edi
jne 0x40b7a0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, edi
pop edi
sbb edx, ebp
pop ebp
pop esi
pop ebx
pop ecx
ret 0xc
mov eax, dword [ebx + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, dword [eax]
test edx, edx
je 0x40b879
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
test eax, eax
je 0x40b880
mov edi, dword [esp + 0x1c]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ebp
call fcn.004108d0
mov eax, dword [ebx + 0x2c]
add ebp, esi
sub edi, esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x40b880
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
je 0x40b8e9
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40b8aa
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 [esp + 0x10]
mov eax, dword [eax]
mov dword [eax], edx
cmp edi, 0xfff
jbe 0x40b8d4
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call fcn.00418b7f
add esp, 0x10
add ebp, eax
sub edi, eax
cmp eax, 0xfff
jne 0x40b8e9
cmp edi, eax
ja 0x40b8b2
test edi, edi
je 0x40b8e9
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call fcn.00418b7f
add esp, 0x10
sub edi, eax
mov edx, dword [esp + 0x20]
sub esi, edi
pop edi
pop ebp
mov eax, esi
sbb edx, 0
pop esi
pop ebx
pop ecx
ret 0xc

Function at 0x40ffb8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40fff7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40fff7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40fff7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40fff7
cmp dword [ecx + 0x74], 0xe
jbe 0x40fff7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x420fbd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x435964
push 0x43595c
push str.FlsAlloc
push 0x1e
call fcn.00420dea
mov esi, eax
add esp, 0x10
test esi, esi
je 0x420ff1
push dword [ebp + 8]
mov ecx, esi
call dword [0x431194]
call esi
jmp 0x420ff7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42103b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x435974
push 0x43596c
push str.FlsGetValue
push 0x20
call fcn.00420dea
mov esi, eax
add esp, 0x10
test esi, esi
je 0x421072
push dword [ebp + 8]
mov ecx, esi
call dword [0x431194]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x422954
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004225f6

Function at 0x42295f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00422785

Function at 0x422d59
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00410330
mov eax, dword [0x4809c0]
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.00421659
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x422d9b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x422ef7
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042fc80
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 + 0x483278]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00423f29
mov ecx, dword [esi*4 + 0x483278]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x422ef0
cmp eax, dword [edi + ecx + 0x24]
jne 0x422ef0
push 0
lea eax, [ebp - 0x1014]
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 0x422ef0
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00423f29
add esp, 0x14
test edx, edx
jl 0x422ef0
jg 0x422e66
test eax, eax
jb 0x422ef0
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x422ef0
jl 0x422e80
cmp dword [ebp - 0x1008], eax
ja 0x422ef0
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x422e9e
test ebx, ebx
je 0x422ed7
cmp ecx, edi
jae 0x422ed7
mov al, byte [ecx]
cmp al, 0xd
jne 0x422eb8
lea eax, [edi - 1]
cmp ecx, eax
jae 0x422ec4
cmp byte [ecx + 1], 0xa
jne 0x422ec4
inc ecx
jmp 0x422ec4
movzx eax, al
movsx eax, byte [eax + 0x480c90]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x422e9e
cmp edx, ebx
jne 0x422e9e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x422ef5
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040f96e
leave
ret
Function at 0x4233c7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x483278]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x423407
cmp byte [ebx], 0xa
jne 0x423407
or byte [eax + edi + 0x28], 4
jmp 0x42340c
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42350a
mov al, byte [edx]
cmp al, 0x1a
je 0x4234ec
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x42343b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x423460
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x42346a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x42341d
jmp 0x42350a
push 0
lea eax, [ebp - 0xc]
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 0x4234e7
cmp dword [ebp - 0xc], 0
je 0x4234e7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x483278]
test byte [eax + edi + 0x28], 0x48
je 0x4234c1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4234ac
mov byte [esi], dl
jmp 0x4234bd
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x483278]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42350a
cmp byte [ebp - 1], 0xa
jne 0x4234d0
cmp esi, ebx
jne 0x4234d0
mov byte [esi], 0xa
jmp 0x423509
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00423f47
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42350a
mov byte [esi], 0xd
jmp 0x423509
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x483278]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x423506
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42350a
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x423513
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x483278]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x423556
cmp word [esi], dx
jne 0x423556
or byte [edi + eax + 0x28], 4
jmp 0x42355b
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4236ae
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x42368e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x42359d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4235d3
cmp eax, edx
jae 0x4235df
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x423575
jmp 0x4236ae
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 0x42368a
cmp dword [ebp - 0x14], 0
je 0x42368a
mov eax, dword [ebx*4 + 0x483278]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x423662
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x42362b
mov word [esi], cx
jmp 0x42365e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x483278]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x483278]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x483278]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4236ae
pop ebx
cmp word [ebp - 4], bx
jne 0x423673
cmp esi, dword [ebp + 0xc]
jne 0x423673
mov word [esi], bx
jmp 0x4236ab
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00423f47
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4236ae
push 0xd
jmp 0x4236a7
mov ecx, dword [ebx*4 + 0x483278]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4236a5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4236ae
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42760e
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 0x4276ab
push ebx
push esi
call fcn.004275d7
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.0042625c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x427658
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4276aa
push edi
push eax
call fcn.00424126
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x427678
call fcn.0042060c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4276a9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042625c
add esp, 0x20
test eax, eax
jne 0x427697
push edi
call fcn.0042060c
jmp 0x42769f
push ebx
call fcn.0042060c
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 0x42e685
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]
push dword [ebp + 0xc]
push ebx
call fcn.0042e601
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42e7fd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42e7fd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42e7ac
jg 0x42e6de
test eax, eax
je 0x42e7a2
push 1
push 0x1000
call fcn.004205af
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x42e704
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x42e799
push 0x8000
push ebx
call fcn.0041d6c7
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42e730
jg 0x42e72b
cmp ecx, 0x1000
jb 0x42e730
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004223f6
add esp, 0x10
cmp eax, 0xffffffff
je 0x42e775
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 0x42e72b
jl 0x42e75c
test ecx, ecx
jne 0x42e71d
push dword [ebp - 0xc]
push ebx
call fcn.0041d6c7
push esi
call fcn.0042060c
add esp, 0xc
xor edi, edi
jmp 0x42e80e
cmp byte [edi + 0x24], 0
je 0x42e78c
cmp dword [edi + 0x20], 5
jne 0x42e78c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x42e797
mov edi, dword [edi + 0x18]
jmp 0x42e799
xor edi, edi
push esi
call fcn.0042060c
pop ecx
jmp 0x42e80e
test ecx, ecx
jg 0x42e76e
jl 0x42e7ac
test eax, eax
jae 0x42e76e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00423f47
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42e7cf
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42e76e
jmp 0x42e806
push ebx
call fcn.00427e00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42e76e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x42e80e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42e80b
mov edi, dword [edi + 0x18]
jmp 0x42e80e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00423f47
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42fb60
Capabilities:
Parse pe header

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