joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a190
Capabilities:
Get file size
Read file on windows
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x10
push ebp
xor ebp, ebp
push esi
mov esi, dword [esp + 0x1c]
xor eax, eax
cmp esi, ebp
setne al
mov dword [esp + 8], ebp
mov dword [esp + 0xc], reloc.OLEAUT32.dll_VariantClear
cmp eax, ebp
je 0x40a305
push ebx
push edi
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebp
push 0x80
push 3
push ebp
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov esi, eax
cmp esi, ebp
je 0x40a2d1
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov edi, eax
cmp ecx, edi
sbb esi, esi
neg esi
je 0x40a2d1
lea edx, [edi + 1]
push edx
call dword [sym.imp.msvcrt.dll_malloc]
mov ebp, eax
xor eax, eax
add esp, 4
test ebp, ebp
setne al
mov esi, eax
test esi, esi
je 0x40a2d1
push 0
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a241
cmp dword [esp + 0x18], edi
je 0x40a248
xor esi, esi
jmp 0x40a2d1
push edi
call dword [sym.imp.msvcrt.dll_malloc]
xor edx, edx
add esp, 4
test eax, eax
setne dl
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edi
mov esi, edx
test esi, esi
je 0x40a2d1
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push eax
push ecx
push edi
push ebp
push 1
call fcn.0040aba0
xor edx, edx
add esp, 0x14
test eax, eax
setge dl
mov dword [esp + 0x14], eax
mov esi, edx
test esi, esi
je 0x40a2d1
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x20]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a2c8
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x24]
jne 0x40a2c8
mov esi, 1
jmp 0x40a2ca
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp ebx, 0xffffffff
je 0x40a2dd
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
mov edi, dword [sym.imp.msvcrt.dll_free]
je 0x40a2ed
push ebp
call edi
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40a2fb
push eax
call edi
add esp, 4
test esi, esi
mov eax, dword [esp + 0x14]
pop edi
pop ebx
jne 0x40a30a
mov eax, reloc.OLEAUT32.dll_VariantClear
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x40a7e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
xor eax, eax
push ebx
push ebp
mov dword [esp + 0x15], eax
push esi
mov esi, dword [esp + 0x28]
test esi, esi
mov dword [esp + 0x1d], eax
mov word [esp + 0x21], ax
push edi
mov ebp, reloc.OLEAUT32.dll_VariantClear
mov byte [esp + 0x1c], 0
mov byte [esp + 0x27], al
je 0x40a9b7
mov edi, dword [esp + 0x38]
test edi, edi
je 0x40a9b7
mov ebx, dword [esp + 0x3c]
test ebx, ebx
je 0x40a9b7
mov edx, dword [esp + 0x30]
mov ecx, edx
and ecx, 7
jbe 0x40a83c
mov eax, 8
sub eax, ecx
jmp 0x40a83e
xor eax, eax
lea ecx, [eax + edx + 0xc]
cmp dword [ebx], ecx
jb 0x40a9b7
mov ecx, dword [esi]
mov eax, 0x42302c
cmp ecx, dword [eax]
mov dword [esp + 0x10], 1
jne 0x40a87c
mov ecx, edx
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]
pop edi
pop esi
pop ebp
mov dword [ebx], edx
mov eax, 1
pop ebx
add esp, 0x18
ret
mov ecx, dword [0x429400]
mov eax, 0x4f5045
mov ebx, edi
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov eax, 0xfffffff4
sub eax, edi
mov dword [ebx + 8], edx
mov dword [esp + 0x14], 0xc
lea ebx, [edi + 0xc]
mov dword [esp + 0x18], eax
jmp 0x40a8b0
add eax, ebx
cmp eax, edx
jae 0x40a9ad
mov ecx, edx
sub ecx, eax
cmp ecx, 8
jb 0x40a8d1
mov ecx, dword [eax + esi]
mov dword [ebx], ecx
mov edx, dword [eax + esi + 4]
mov dword [ebx + 4], edx
jmp 0x40a8ea
add esi, eax
mov eax, ecx
xor edx, edx
mov edi, ebx
mov dword [edi], edx
shr ecx, 2
mov dword [edi + 4], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, 0x54
xor eax, eax
mov edi, edi
mov dl, byte [ebx + eax]
xor dl, cl
mov byte [ebx + eax], dl
inc eax
cmp eax, 8
mov cl, dl
jb 0x40a8f0
mov eax, dword [0x429400]
sub eax, 0
je 0x40a96b
dec eax
je 0x40a95c
dec eax
jne 0x40a9a8
mov eax, dword [0x42a6bc]
test eax, eax
jne 0x40a941
mov ecx, dword [esp + 0x34]
push 0x42a520
push ecx
call fcn.004071d0
add esp, 8
test eax, eax
mov dword [esp + 0x10], eax
je 0x40a97d
mov dword [0x42a6bc], 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40a97d
push ebx
push ebx
push 0x42a520
call fcn.0040c8d0
add esp, 0xc
xor ebp, ebp
jmp 0x40a981
mov edx, dword [esp + 0x34]
push 8
push ebx
push edx
call fcn.004081f0
jmp 0x40a978
mov eax, dword [esp + 0x34]
push 8
push ebx
push eax
call fcn.00409260
add esp, 0xc
mov ebp, eax
test ebp, ebp
jl 0x40a9ad
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add edx, 8
add ebx, 8
test eax, eax
mov dword [esp + 0x14], edx
je 0x40a9ad
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
jmp 0x40a8b0
mov ebp, reloc.OLEAUT32.dll_VariantClear
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
mov dword [ecx], edx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x40a9d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
xor ecx, ecx
cmp ebx, ecx
push edi
mov edi, dword [esp + 0x38]
mov esi, reloc.OLEAUT32.dll_VariantClear
je 0x40aa0e
cmp edi, ecx
je 0x40aa0e
mov eax, dword [esp + 0x3c]
cmp eax, ecx
je 0x40aa0e
mov edx, dword [esp + 0x30]
mov ebp, dword [eax]
add edx, 0xfffffff4
cmp ebp, edx
jb 0x40aa0e
mov ebp, 1
mov dword [esp + 0x10], ebp
jmp 0x40aa14
mov dword [esp + 0x10], ecx
mov ebp, ecx
cmp ebp, ecx
mov eax, ebx
mov edx, dword [eax]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
je 0x40aa72
lea ecx, [esp + 0x1c]
push 0x42302c
push ecx
call dword [sym.imp.msvcrt.dll__stricmp]
add esp, 8
test eax, eax
je 0x40aa72
mov eax, dword [esp + 0x30]
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov eax, 1
pop ebx
add esp, 0x18
ret
test ebp, ebp
je 0x40ab88
mov ebp, dword [esp + 0x34]
mov eax, 0xc
sub eax, edi
mov dword [esp + 0x18], eax
jmp 0x40aa93
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
add eax, edi
cmp eax, ecx
jae 0x40ab5e
mov edx, dword [eax + ebx]
mov dword [edi], edx
mov eax, dword [eax + ebx + 4]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x20]
sub eax, 0
je 0x40ab12
dec eax
je 0x40ab07
dec eax
je 0x40aac3
mov esi, reloc.OLEAUT32.dll_VariantClear
jmp 0x40ab20
mov eax, dword [0x42a85c]
test eax, eax
jne 0x40aaec
push 0x42a6c0
push ebp
call fcn.004071d0
add esp, 8
test eax, eax
mov dword [esp + 0x10], eax
je 0x40ab20
mov dword [0x42a85c], 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40ab20
push edi
push edi
push 0x42a6c0
call fcn.0040c940
add esp, 0xc
xor esi, esi
jmp 0x40ab20
push 8
push edi
push ebp
call fcn.00408290
jmp 0x40ab1b
push 8
push edi
push ebp
call fcn.004092f0
add esp, 0xc
mov esi, eax
mov dl, 0x54
xor eax, eax
mov cl, byte [edi + eax]
mov bl, cl
xor bl, dl
mov byte [edi + eax], bl
inc eax
cmp eax, 8
mov dl, cl
jb 0x40ab24
test esi, esi
jl 0x40ab5e
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add edx, 8
add edi, 8
test eax, eax
mov dword [esp + 0x14], edx
jne 0x40aa8b
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40ab88
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jbe 0x40ab82
mov edx, dword [esp + 0x3c]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword [edx], ecx
pop ebx
add esp, 0x18
ret
mov ecx, dword [esp + 0x3c]
mov dword [ecx], eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x412280
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
jmp fcn.00410b60
Function at 0x4125a0
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ecx
mov ecx, dword [esp + 8]
mov edx, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [ecx]
mov ecx, eax
shr ecx, 4
xor ecx, edx
and ecx, 0xf0f0f0f
xor edx, ecx
shl ecx, 4
xor eax, ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, edx
and ecx, 0xffff
xor edx, ecx
shl ecx, 0x10
xor eax, ecx
mov ecx, edx
shr ecx, 2
xor ecx, eax
and ecx, 0x33333333
xor eax, ecx
shl ecx, 2
xor edx, ecx
mov ecx, edx
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor eax, ecx
shl ecx, 8
xor edx, ecx
mov ecx, edx
add edx, edx
shr ecx, 0x1f
or ecx, edx
mov edx, ecx
xor edx, eax
and edx, 0xaaaaaaaa
xor eax, edx
xor ecx, edx
mov edx, eax
shr edx, 0x1f
add eax, eax
or edx, eax
mov dword [esp + 0x10], 8
mov ebx, dword [edi]
mov eax, ecx
shl eax, 0x1c
mov esi, ecx
shr esi, 4
or eax, esi
xor eax, ebx
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
mov ebp, dword [ebx*4 + 0x429718]
mov esi, eax
shr esi, 0x18
and esi, 0x3f
mov esi, dword [esi*4 + 0x429518]
or esi, ebp
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or esi, dword [ebx*4 + 0x429918]
and eax, 0x3f
mov ebx, dword [eax*4 + 0x429b18]
mov eax, dword [edi + 4]
or esi, ebx
xor eax, ecx
add edi, 4
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x429618]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x429818]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x429a18]
and eax, 0x3f
or ebx, dword [eax*4 + 0x429c18]
or ebx, esi
xor edx, ebx
mov ebx, dword [edi + 4]
add edi, 4
mov eax, edx
shl eax, 0x1c
mov esi, edx
shr esi, 4
or eax, esi
xor eax, ebx
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
mov ebp, dword [ebx*4 + 0x429718]
mov esi, eax
shr esi, 0x18
and esi, 0x3f
mov esi, dword [esi*4 + 0x429518]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or esi, ebp
mov ebp, dword [ebx*4 + 0x429918]
and eax, 0x3f
mov ebx, dword [eax*4 + 0x429b18]
mov eax, dword [edi + 4]
add edi, 4
or esi, ebp
or esi, ebx
xor eax, edx
mov ebx, eax
shr ebx, 0x18
mov ebp, eax
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x429618]
shr ebp, 0x10
and ebp, 0x3f
add edi, 4
or ebx, dword [ebp*4 + 0x429818]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x429a18]
and eax, 0x3f
mov ebp, dword [eax*4 + 0x429c18]
mov eax, dword [esp + 0x10]
or ebx, ebp
or ebx, esi
xor ecx, ebx
dec eax
mov dword [esp + 0x10], eax
jne 0x412628
mov eax, ecx
shr ecx, 1
shl eax, 0x1f
or eax, ecx
mov ecx, eax
xor ecx, edx
and ecx, 0xaaaaaaaa
xor edx, ecx
xor eax, ecx
mov ecx, edx
shr edx, 1
shl ecx, 0x1f
or ecx, edx
mov edx, ecx
shr edx, 8
xor edx, eax
and edx, 0xff00ff
xor eax, edx
shl edx, 8
xor ecx, edx
mov edx, ecx
shr edx, 2
xor edx, eax
and edx, 0x33333333
xor eax, edx
shl edx, 2
xor ecx, edx
mov edx, eax
shr edx, 0x10
xor edx, ecx
and edx, 0xffff
xor ecx, edx
shl edx, 0x10
xor eax, edx
mov edx, eax
shr edx, 4
xor edx, ecx
and edx, 0xf0f0f0f
mov esi, edx
shl esi, 4
xor esi, eax
mov eax, dword [esp + 0x18]
pop edi
mov dword [eax], esi
pop esi
xor edx, ecx
pop ebp
mov dword [eax + 4], edx
pop ebx
pop ecx
ret
Function at 0x413650
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push ebp
push esi
xor eax, eax
xor esi, esi
xor bl, bl
xor ebp, ebp
cmp ecx, 0x7fffffff
push edi
jb 0x41367d
mov ecx, dword [esp + 0x14]
lea edi, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x413670
sub ecx, edi
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x24]
test edx, edx
je 0x41368f
mov esi, dword [edx]
mov bl, byte [edx]
and esi, 3
and bl, 0xfc
mov ecx, dword [esp + 0x18]
test ecx, ecx
jbe 0x413757
mov edi, dword [esp + 0x1c]
nop
cmp eax, dword [esp + 0x20]
jae 0x413757
mov ecx, dword [esp + 0x14]
mov cl, byte [ecx + ebp]
cmp cl, 0x2b
je 0x41370c
cmp cl, 0x2f
je 0x413708
cmp cl, 0x3d
je 0x413704
cmp cl, 0x30
jl 0x41374a
cmp cl, 0x39
jg 0x4136e6
add cl, 4
cmp cl, 0xff
je 0x41374a
test esi, esi
jne 0x413710
shl cl, 2
mov bl, cl
mov esi, 1
jmp 0x41374a
cmp cl, 0x41
jl 0x41374a
cmp cl, 0x5a
jg 0x4136f5
sub cl, 0x41
jmp 0x4136d1
cmp cl, 0x61
jl 0x41374a
cmp cl, 0x7a
jg 0x41374a
sub cl, 0x47
jmp 0x4136d1
xor esi, esi
jmp 0x41374a
mov cl, 0x3f
jmp 0x4136d6
mov cl, 0x3e
jmp 0x4136d6
mov edx, esi
dec edx
je 0x413731
dec edx
je 0x413720
or cl, bl
mov dl, cl
xor esi, esi
jmp 0x413742
mov dl, cl
shr dl, 2
or dl, bl
shl cl, 6
mov esi, 3
jmp 0x413740
mov dl, cl
shr dl, 4
or dl, bl
shl cl, 4
mov esi, 2
mov bl, cl
mov byte [eax + edi], dl
mov edx, dword [esp + 0x24]
inc eax
mov ecx, dword [esp + 0x18]
inc ebp
cmp ebp, ecx
jb 0x4136a0
test edx, edx
je 0x413762
movzx ecx, bl
or ecx, esi
mov dword [edx], ecx
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x41376c
mov dword [ecx], ebp
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x413c20
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ecx, dword [ebp]
push esi
mov esi, dword [ebp + 0x2c]
push edi
lea eax, [esp + 0x14]
push eax
push 0
push ecx
call fcn.004146c0
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
mov edx, ecx
sub edx, esi
lea eax, [edx + ebp + 0x18]
mov edx, dword [esp + 0x28]
add esp, 0xc
cmp edx, esi
ja 0x413c87
sub esi, edx
test edx, edx
mov dword [ebp + 0x2c], esi
je 0x413d23
mov esi, ebx
mov ecx, edi
sub esi, ecx
lea ecx, [ecx]
mov cl, byte [edi]
mov bl, byte [eax]
xor bl, cl
mov byte [eax], bl
mov cl, bl
mov byte [esi + edi], cl
inc edi
inc eax
dec edx
jne 0x413c70
pop edi
pop esi
pop ebp
pop ebx
ret
sub edx, esi
test esi, esi
mov dword [esp + 0x1c], edx
je 0x413ca4
mov cl, byte [edi]
xor byte [eax], cl
mov cl, byte [eax]
inc ebx
mov byte [ebx - 1], cl
inc edi
inc eax
dec esi
jne 0x413c91
mov ecx, dword [esp + 0x14]
cmp edx, ecx
jbe 0x413ce9
push ecx
lea eax, [ebp + 4]
push eax
lea esi, [ebp + 0x18]
push esi
call fcn.00415a40
mov edx, dword [ebp]
push esi
push esi
push edx
call fcn.00414670
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
add esp, 0x18
sub eax, ecx
mov edx, ecx
mov dword [esp + 0x1c], eax
mov al, byte [edi]
xor byte [esi], al
mov al, byte [esi]
inc ebx
mov byte [ebx - 1], al
inc edi
inc esi
dec edx
jne 0x413cd4
cmp dword [esp + 0x1c], ecx
ja 0x413ca8
push ecx
lea ecx, [ebp + 4]
push ecx
lea esi, [ebp + 0x18]
push esi
call fcn.00415a40
mov edx, dword [ebp]
push esi
push esi
push edx
call fcn.00414670
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
add esp, 0x18
sub eax, ecx
mov dword [ebp + 0x2c], eax
mov dl, byte [edi]
mov al, byte [esi]
xor al, dl
mov byte [esi], al
inc ebx
mov byte [ebx - 1], al
inc edi
inc esi
dec ecx
jne 0x413d12
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x413d30
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ecx, dword [esi]
mov ebp, dword [esi + 0x2c]
push edi
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
push 0
push ecx
call fcn.004146c0
mov edx, dword [esp + 0x1c]
sub edx, ebp
lea esi, [edx + esi + 0x18]
mov edx, dword [esp + 0x2c]
add esp, 0xc
cmp edx, ebp
ja 0x413d96
mov eax, dword [esp + 0x18]
sub ebp, edx
test edx, edx
mov dword [eax + 0x2c], ebp
je 0x413e49
mov eax, edi
sub ebx, eax
lea ecx, [ecx]
mov al, byte [edi]
mov cl, byte [esi]
mov byte [esi], al
xor al, cl
inc esi
mov byte [ebx + edi], al
inc edi
dec edx
jne 0x413d80
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
sub edx, ebp
test ebp, ebp
mov dword [esp + 0x20], edx
je 0x413db1
mov al, byte [edi]
mov cl, byte [esi]
mov byte [esi], al
xor al, cl
inc ebx
mov byte [ebx - 1], al
inc esi
inc edi
dec ebp
jne 0x413da0
cmp edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
jbe 0x413e0b
jmp 0x413dc0
push 8
lea eax, [ebp + 4]
push eax
lea esi, [ebp + 0x18]
push esi
call fcn.00415a40
mov ecx, dword [ebp]
push esi
push esi
push ecx
call fcn.00414670
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
add esp, 0x18
sub eax, edx
mov dword [esp + 0x20], eax
jmp 0x413df0
mov al, byte [edi]
mov cl, byte [esi]
mov byte [esi], al
xor al, cl
inc ebx
mov byte [ebx - 1], al
inc esi
inc edi
dec edx
jne 0x413df0
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x20], edx
ja 0x413dc0
mov eax, dword [esp + 0x10]
push eax
lea ecx, [ebp + 4]
push ecx
lea esi, [ebp + 0x18]
push esi
call fcn.00415a40
mov edx, dword [ebp]
push esi
push esi
push edx
call fcn.00414670
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
add esp, 0x18
sub eax, edx
mov dword [ebp + 0x2c], eax
mov al, byte [edi]
mov cl, byte [esi]
mov byte [esi], al
xor al, cl
inc ebx
mov byte [ebx - 1], al
inc esi
inc edi
dec edx
jne 0x413e38
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x413f80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov ecx, dword [edi + 0x14]
push ebp
push esi
lea eax, [esp + 0xc]
push eax
push 0
push ecx
call fcn.004146c0
mov edx, dword [esp + 0x20]
mov esi, dword [edi + 0x14]
push ebx
push edx
push esi
mov dword [esp + 0x20], esi
call fcn.00414630
add esp, 0x18
xor eax, eax
xor ebp, ebp
test ebx, ebx
jbe 0x413fe3
lea esi, [edi + 0x2c]
mov ecx, dword [esp + 0x14]
mov dl, byte [ecx + ebp]
xor byte [esi + eax], dl
mov ecx, dword [esp + 0xc]
inc eax
cmp eax, ecx
jne 0x413fda
mov eax, dword [esp + 8]
push esi
push esi
push eax
call fcn.00414670
add esp, 0xc
xor eax, eax
inc ebp
cmp ebp, ebx
jb 0x413fb6
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0xc]
cmp eax, ecx
jae 0x413ff9
jmp 0x413ff0
xor byte [edi + eax + 0x2c], bl
inc eax
cmp eax, ecx
jb 0x413ff0
lea eax, [edi + 0x2c]
push eax
push eax
push esi
call fcn.00414670
add esp, 0xc
pop esi
mov dword [edi + 0x40], 0
pop ebp
add esp, 8
ret
Function at 0x414e10
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 8]
push ebx
xor ebx, ebx
xor ecx, ecx
cmp eax, 2
jne 0x414ecb
push esi
push 0x404
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x414ec0
mov eax, dword [esp + 0xc]
push eax
call fcn.0040ead0
add esp, 4
push 0x400
push esi
mov dword [esi + 0x400], eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x414e63
mov word [esi], 0x2e
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414e68
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
push edi
je 0x414e92
mov edi, esi
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x414e80
mov cx, word [0x426278]
mov word [edi], cx
mov edi, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x414e95
mov edx, dword [str.randseed.rnd]
mov dword [edi], edx
mov eax, dword [0x42626c]
mov dword [edi + 4], eax
mov ecx, dword [0x426270]
mov dword [edi + 8], ecx
mov dl, byte [0x426274]
mov byte [edi + 0xc], dl
pop edi
mov eax, dword [esp + 0x14]
mov dword [eax], esi
pop esi
mov eax, ebx
pop ebx
ret
mov edx, dword [esp + 0x10]
mov eax, 0xffffd120
mov dword [edx], ecx
pop ebx
ret

Function at 0x414ee0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
xor ebp, ebp
xor eax, eax
test ebx, ebx
je 0x414ef0
mov dword [ebx], eax
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jbe 0x414f2c
mov ecx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 8]
push eax
push edi
push 1
push ecx
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, edi
je 0x414f1c
mov ebp, 0xffffd12c
mov edx, dword [esi]
mov ecx, dword [esi + 4]
add edx, eax
adc ecx, 0
mov dword [esi], edx
mov dword [esi + 4], ecx
pop esi
test ebx, ebx
pop edi
je 0x414f33
mov dword [ebx], eax
mov eax, ebp
pop ebp
pop ebx
ret

Function at 0x414f40
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0x10]
xor ebx, ebx
test edi, edi
jbe 0x414f7f
mov ecx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 8]
push eax
push edi
push 1
push ecx
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp eax, edi
je 0x414f6f
mov ebx, 0xffffd12b
mov ecx, dword [esi]
add ecx, eax
mov eax, dword [esi + 4]
adc eax, 0
mov dword [esi], ecx
mov dword [esi + 4], eax
pop esi
pop edi
mov eax, ebx
pop ebx
ret
Function at 0x41e242
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x4275b8
call fcn.0041e730
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x400000], 0x5a4d
jne 0x41e296
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x41e296
movzx ecx, word [eax + 0x400018]
cmp ecx, 0x10b
je 0x41e2ae
cmp ecx, 0x20b
je 0x41e29b
mov dword [ebp - 0x1c], ebx
jmp 0x41e2c5
cmp dword [eax + 0x400084], 0xe
jbe 0x41e296
xor ecx, ecx
cmp dword [eax + 0x4000f8], ebx
jmp 0x41e2bf
cmp dword [eax + 0x400074], 0xe
jbe 0x41e296
xor ecx, ecx
cmp dword [eax + 0x4000e8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x42b114], edi
mov dword [0x42b118], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x42ad74]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x42ad70]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x42b110], eax
call fcn.0041e72c
cmp dword [0x429e90], ebx
jne 0x41e322
push fcn.0041e72c
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0041e71a
push 0x420270
push 0x42026c
call sub.msvcrt.dll__initterm
mov eax, dword [0x42ad6c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x42ad68]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x420268
push 0x42025c
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x41e3ad
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x41e38d
cmp cl, 0x22
jne 0x41e37e
cmp byte [eax], 0x22
jne 0x41e396
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x41e3a1
cmp cl, 0x20
jbe 0x41e392
test byte [ebp - 0x54], 1
je 0x41e3b8
movzx ecx, word [ebp - 0x50]
jmp 0x41e3bb
cmp byte [eax], 0x20
jbe 0x41e396
inc eax
mov dword [ebp - 0x20], eax
jmp 0x41e3ad
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call fcn.00406460
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x41e3d9
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x41e415
mov eax, esi
jmp 0x41e429
call fcn.0041e76b
ret

Function at 0x41e7f6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x429e98]
jne 0x41e807
test ecx, 0xffff0000
jne 0x41e807
ret
jmp fcn.0041e80c