joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406106
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x406115
pop dword [ebp - 0x30]
mov eax, 0x5fe82df
add eax, 0xfa41de36
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x6ff230b7
add dword [ebp - 0x40], 0xde601494
mov dword [ebp - 0x3c], 0x53d3766c
add dword [ebp - 0x3c], 0xde5fd5d9
mov dword [ebp - 0x38], 0x6180025
sub dword [ebp - 0x38], 0xb9cbbbf7
mov dword [ebp - 0x34], 0x4c53ad39
sub dword [ebp - 0x34], 0x4c53ad39
lea eax, [ebp - 0x40]
push eax
mov eax, 0x5822f8cd
sub eax, 0x57e277c9
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x72f277f7
sub dword [ebp - 0x40], 0xfe800ea1
mov dword [ebp - 0x3c], 0x93881809
sub dword [ebp - 0x3c], 0x521bb694
mov dword [ebp - 0x38], 0xa47be418
sub dword [ebp - 0x38], 0x410c77ac
mov dword [ebp - 0x34], 0x8cc347a1
add dword [ebp - 0x34], 0x733cb85f
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x34803
push 0
call eax
mov ecx, 0xd304d651
sub ecx, 0xd3049859
mov edi, eax
mov ebx, 0xbedc64ea
sub ebx, 0xbe9760ea
add ebx, dword [ebp - 0x30]
mov edx, 0x45fd6535
sub edx, 0x13ceb2e8
add dword [ebp - 0x18], 0xee25a85c
mov esi, dword [ebx]
mov dword [ebp - 0x20], 0x4e6ee532
sub esi, edx
sub dword [ebp - 8], ebx
mov dword [edi], esi
xor dword [ebp - 0x1c], esi
add edi, 0x3057399
add edi, 0xfcfa8c6b
add ebx, 0x7d068921
add ebx, 0x82f976e3
loop 0x406232
add eax, 0xcbf21e0
add eax, 0xf341c8d3
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x40656f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4318ec], 0
push esi
jne 0x4065a6
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406580
mov dword [ecx*4 + 0x4318e8], eax
inc ecx
cmp ecx, 0x100
jl 0x40657b
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4065d7
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4318e8]
xor eax, esi
inc ecx
dec edx
jne 0x4065b9
pop edi
not eax
pop esi
ret 0xc
Function at 0x1000a894
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x1000a8a3
pop dword [ebp - 0x14]
mov eax, 0x86b499e8
add eax, 0x894c0ebb
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x104e695e
add dword [ebp - 0x24], 0x3e03dbed
mov dword [ebp - 0x20], 0xe76b86cd
sub dword [ebp - 0x20], 0xb5383a88
mov dword [ebp - 0x1c], 0x1e34123c
add dword [ebp - 0x1c], 0x2e1831f2
mov dword [ebp - 0x18], 0x8474ba04
sub dword [ebp - 0x18], 0x8474ba04
lea eax, [ebp - 0x24]
push eax
mov eax, 0xe80d6f20
sub eax, 0xd80bcf18
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xfa70c74c
add dword [ebp - 0x24], 0x7a01a20a
mov dword [ebp - 0x20], 0xedc8cc03
sub dword [ebp - 0x20], 0xac5c6a8e
mov dword [ebp - 0x1c], 0x7e578483
add dword [ebp - 0x1c], 0xe517e7e9
mov dword [ebp - 0x18], 0x7fcf1746
sub dword [ebp - 0x18], 0x7fcf1746
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xca2bf4eb
add eax, 0x45d5ab21
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x37e6c
push 0
call eax
mov ecx, 0x3ea1
mov edi, eax
mov ebx, 0x9ff9bc80
sub ebx, 0x8ff77280
add ebx, dword [ebp - 0x14]
mov edx, 0x2a2852fa
add dword [ebp - 0x10], 0xe761b384
mov esi, dword [ebx]
xor dword [ebp - 0x10], ecx
add esi, edx
add dword [ebp - 8], 0xcab27bea
mov dword [edi], esi
add edi, 0xa60b12ca
sub edi, 0xa60b12c6
add ebx, 0x932acc77
add ebx, 0x6cd5338d
loop 0x1000a9b9
add eax, 0xed57
xor ebx, ebx
add ebx, eax
add eax, 0xe6bd55ce
sub eax, 0xe6bd55c9
mov ecx, 0x86be476
add ecx, 0x7941b8a
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x407b30
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 0x407b51
jl 0x407b47
test esi, esi
jne 0x407b51
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 0x407c04
mov ebp, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
nop dword [eax]
mov ecx, ebx
call fcn.004039f0
mov esi, eax
mov eax, edx
mov dword [esp + 0x10], eax
test eax, eax
jl 0x407bc1
jg 0x407b89
test esi, esi
je 0x407bc1
cmp ebp, eax
jg 0x407b99
jl 0x407b93
cmp edi, esi
jae 0x407b99
mov esi, edi
mov dword [esp + 0x10], ebp
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push dword [esp + 0x20]
call fcn.0040a5c0
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 0x407be0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x407bf0
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 0x407b70
jl 0x407bf0
test edi, edi
jne 0x407b70
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 0x407c49
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
test eax, eax
je 0x407c50
mov edi, dword [esp + 0x1c]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ebp
call fcn.0040a5c0
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 0x407c50
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
je 0x407cb9
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x407c7a
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 0x407ca4
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call fcn.00412884
add esp, 0x10
add ebp, eax
sub edi, eax
cmp eax, 0xfff
jne 0x407cb9
cmp edi, eax
ja 0x407c82
test edi, edi
je 0x407cb9
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call fcn.00412884
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 0x409ca8
Capabilities:
Parse pe header

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

Function at 0x41b239
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42fb10
push 0x42fb08
push str.FlsAlloc
push 0x1e
call fcn.0041b0a6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41b26d
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b188]
call esi
jmp 0x41b273
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41b2b7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42fb20
push 0x42fb18
push str.FlsGetValue
push 0x20
call fcn.0041b0a6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41b2ee
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b188]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41c998
Capabilities:
Read file on windows

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

Function at 0x41cd92
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a020
mov eax, dword [0x46acc0]
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.0041b86c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41cdd4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41cf30
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042a410
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 + 0x46c9c0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041dd89
mov ecx, dword [esi*4 + 0x46c9c0]
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 0x41cf29
cmp eax, dword [edi + ecx + 0x24]
jne 0x41cf29
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 0x41cf29
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041dd89
add esp, 0x14
test edx, edx
jl 0x41cf29
jg 0x41ce9f
test eax, eax
jb 0x41cf29
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41cf29
jl 0x41ceb9
cmp dword [ebp - 0x1008], eax
ja 0x41cf29
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41ced7
test ebx, ebx
je 0x41cf10
cmp ecx, edi
jae 0x41cf10
mov al, byte [ecx]
cmp al, 0xd
jne 0x41cef1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41cefd
cmp byte [ecx + 1], 0xa
jne 0x41cefd
inc ecx
jmp 0x41cefd
movzx eax, al
movsx eax, byte [eax + 0x46af80]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41ced7
cmp edx, ebx
jne 0x41ced7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41cf2e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040954b
leave
ret
Function at 0x41d227
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 + 0x46c9c0]
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 0x41d267
cmp byte [ebx], 0xa
jne 0x41d267
or byte [eax + edi + 0x28], 4
jmp 0x41d26c
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41d36a
mov al, byte [edx]
cmp al, 0x1a
je 0x41d34c
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41d29b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41d2c0
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41d2ca
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 0x41d27d
jmp 0x41d36a
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 0x41d347
cmp dword [ebp - 0xc], 0
je 0x41d347
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x46c9c0]
test byte [eax + edi + 0x28], 0x48
je 0x41d321
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41d30c
mov byte [esi], dl
jmp 0x41d31d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46c9c0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41d36a
cmp byte [ebp - 1], 0xa
jne 0x41d330
cmp esi, ebx
jne 0x41d330
mov byte [esi], 0xa
jmp 0x41d369
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041dda7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41d36a
mov byte [esi], 0xd
jmp 0x41d369
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x46c9c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d366
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d36a
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41d373
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 + 0x46c9c0]
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 0x41d3b6
cmp word [esi], dx
jne 0x41d3b6
or byte [edi + eax + 0x28], 4
jmp 0x41d3bb
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 0x41d50e
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 0x41d4ee
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41d3fd
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41d433
cmp eax, edx
jae 0x41d43f
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 0x41d3d5
jmp 0x41d50e
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 0x41d4ea
cmp dword [ebp - 0x14], 0
je 0x41d4ea
mov eax, dword [ebx*4 + 0x46c9c0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41d4c2
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41d48b
mov word [esi], cx
jmp 0x41d4be
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x46c9c0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x46c9c0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x46c9c0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41d50e
pop ebx
cmp word [ebp - 4], bx
jne 0x41d4d3
cmp esi, dword [ebp + 0xc]
jne 0x41d4d3
mov word [esi], bx
jmp 0x41d50b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041dda7
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41d50e
push 0xd
jmp 0x41d507
mov ecx, dword [ebx*4 + 0x46c9c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d505
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d50e
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 0x4219ca
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 0x421a67
push ebx
push esi
call fcn.00421993
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.0041ee01
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x421a14
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x421a66
push edi
push eax
call fcn.0041df86
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x421a34
call fcn.0041abce
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x421a65
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041ee01
add esp, 0x20
test eax, eax
jne 0x421a53
push edi
call fcn.0041abce
jmp 0x421a5b
push ebx
call fcn.0041abce
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 0x429335
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.004292b1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4294ad
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4294ad
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42945c
jg 0x42938e
test eax, eax
je 0x429452
push 1
push 0x1000
call fcn.0041ab71
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4293b4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x429449
push 0x8000
push ebx
call fcn.00417c83
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 0x4293e0
jg 0x4293db
cmp ecx, 0x1000
jb 0x4293e0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041c609
add esp, 0x10
cmp eax, 0xffffffff
je 0x429425
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 0x4293db
jl 0x42940c
test ecx, ecx
jne 0x4293cd
push dword [ebp - 0xc]
push ebx
call fcn.00417c83
push esi
call fcn.0041abce
add esp, 0xc
xor edi, edi
jmp 0x4294be
cmp byte [edi + 0x24], 0
je 0x42943c
cmp dword [edi + 0x20], 5
jne 0x42943c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x429447
mov edi, dword [edi + 0x18]
jmp 0x429449
xor edi, edi
push esi
call fcn.0041abce
pop ecx
jmp 0x4294be
test ecx, ecx
jg 0x42941e
jl 0x42945c
test eax, eax
jae 0x42941e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041dda7
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42947f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42941e
jmp 0x4294b6
push ebx
call fcn.004221bc
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42941e
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 0x4294be
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4294bb
mov edi, dword [edi + 0x18]
jmp 0x4294be
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041dda7
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42a2a0
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
push edi
push dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0xc], 0x22
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 0x40c]
push eax
xor edi, edi
call ebx
mov esi, eax
movzx eax, word [esi]
test ax, ax
je 0x401117
lea edx, [esi + 2]
push 2
pop ecx
cmp ax, 0x2f
jne 0x401107
add esi, ecx
movzx eax, word [esi]
add edx, ecx
cmp eax, 0x64
jg 0x40108c
je 0x40107e
sub eax, 0x44
je 0x40107e
dec eax
je 0x4010a6
sub eax, 3
je 0x40109a
sub eax, 6
je 0x401091
dec eax
jne 0x401107
mov dword [0x416378], 1
jmp 0x401088
mov dword [0x416380], 1
mov edi, edx
jmp 0x401107
sub eax, 0x65
jmp 0x40105f
and dword [0x41637c], 0
jmp 0x401088
mov dword [0x416384], 1
jmp 0x401088
add esi, ecx
add edx, ecx
cmp word [esi], 0x3a
jne 0x401107
add esi, ecx
add edx, ecx
cmp word [esi], 0x22
mov dword [ebp - 4], edx
push 0x20
jne 0x4010cc
pop eax
mov word [esi], ax
add esi, ecx
add edx, ecx
mov dword [ebp - 4], edx
push 0x22
push esi
call fcn.00406fd1
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4010df
xor eax, eax
mov word [edi], ax
push esi
push 0x416278
call ebx
test edi, edi
je 0x4010f3
push 0x20
pop eax
mov word [edi], ax
jmp 0x4010fe
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [esi + eax*2 - 2]
mov edx, dword [ebp - 4]
push 2
add edi, 2
pop ecx
add esi, ecx
movzx eax, word [esi]
add edx, ecx
test ax, ax
jne 0x40103e
cmp word [0x416278], 0
jne 0x401128
and dword [0x416380], 0
lea eax, [ebp - 0x40c]
push 0x22
push eax
call fcn.00406fd1
xor esi, esi
pop ecx
pop ecx
cmp eax, esi
jne 0x401157
cmp edi, esi
jne 0x4011e9
lea eax, [ebp - 0x40c]
push eax
push dword [ebp + 0xc]
call ebx
jmp 0x4011bb
add eax, 2
cmp word [eax], 0x20
je 0x401154
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.00406ff8
pop ecx
pop ecx
cmp eax, esi
je 0x4011bb
cmp word [eax], si
je 0x4011bb
push eax
push dword [ebp + 0xc]
call ebx
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.00406ff8
pop ecx
pop ecx
cmp eax, esi
je 0x4011bb
cmp word [eax], 0x20
jne 0x4011bb
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.00406ff8
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4011b9
cmp word [esi], 0
je 0x4011b9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x4011b9
push esi
push 0x416070
call ebx
xor esi, esi
mov edi, dword [ebp + 0xc]
cmp word [edi], si
je 0x401231
push edi
call fcn.0040227b
pop ecx
push esi
push esi
push esi
push esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x4011e5
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x401231
xor eax, eax
jmp 0x401234
movzx eax, word [edi]
cmp ax, si
jne 0x40121d
lea eax, [ebp - 0x40c]
push 0x2f
push eax
call fcn.00406fd1
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x40c]
push eax
push dword [ebp + 0xc]
call ebx
push dword [ebp + 0xc]
call fcn.0040227b
pop ecx
jmp 0x4011bb
cmp eax, 0x20
jne 0x40122b
add edi, 2
cmp word [edi], 0x20
je 0x401222
push edi
jmp 0x40114d
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret