joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f170
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
je 0x43f247
mov ecx, dword [esi + 0x3c]
mov eax, ecx
mov ebx, dword [ebp + 0xc]
test ecx, ecx
je 0x43f1a8
cmp dword [esi + 0x40], ebx
jae 0x43f1a8
push ecx
call fcn.0047cf7f
add esp, 4
mov dword [esi + 0x3c], 0
xor eax, eax
test eax, eax
jne 0x43f1be
lea eax, [ebx + ebx]
push eax
call fcn.0047d896
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
push ebx
push edi
push eax
call fcn.0047e880
xor edx, edx
add esp, 0xc
mov dword [ebp + 8], edx
test ebx, ebx
je 0x43f244
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x30]
mov bl, byte [edx + eax]
mov edx, dword [esi + 0x38]
mov edi, edx
movsx eax, bl
and edi, 0xfffd
xor eax, ecx
or edi, 2
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x4f8050]
xor eax, ecx
mov ecx, edi
mov dword [esi + 0x30], eax
xor ecx, 1
movzx eax, al
add eax, dword [esi + 0x34]
imul eax, eax, 0x8088405
imul ecx, edi
inc eax
mov dword [esi + 0x34], eax
shr eax, 0x18
xor eax, edx
shr ecx, 8
movzx eax, al
xor cl, bl
shr edx, 8
xor edx, dword [eax*4 + 0x4f8050]
mov dword [esi + 0x38], edx
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x3c]
mov byte [edx + eax], cl
inc edx
mov dword [ebp + 8], edx
cmp edx, dword [ebp + 0xc]
jb 0x43f1d2
mov edi, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x43f285
mov edx, dword [esi + 0x24]
mov ebx, dword [ebp + 0xc]
lea eax, [edx + ebx]
cmp eax, dword [esi + 0x28]
jb 0x43f26c
pop edi
mov dword [esi + 0x14], 0x30000
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
push ebx
add ecx, edx
push edi
push ecx
call fcn.0047e880
add esp, 0xc
mov eax, ebx
add dword [esi + 0x24], ebx
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x43f2a7
push 0
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
Function at 0x43f870
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x84]
test edx, edx
je 0x43f8d3
mov ecx, dword [edi + 0x8c]
mov ebx, dword [edi + 0x88]
cmp ecx, ebx
jae 0x43f91b
mov esi, dword [ebp + 8]
lea eax, [ecx + edx]
sub ebx, ecx
cmp ebx, dword [ebp + 0xc]
cmova ebx, dword [ebp + 0xc]
push ebx
push eax
push esi
call fcn.0047e880
mov ecx, dword [edi + 0x78]
mov edx, esi
add dword [edi + 0x8c], ebx
add dword [edi + 0x74], ebx
push ebx
call fcn.0043e8f0
add esp, 0x10
mov dword [edi + 0x78], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x43f914
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 4]
push 0
push ecx
push dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43f91b
mov esi, dword [ebp - 4]
mov edx, ebx
mov ecx, dword [edi + 0x78]
add dword [edi + 0x74], esi
push esi
call fcn.0043e8f0
add esp, 4
mov dword [edi + 0x78], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0x14], 0x1000000
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4434a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4434ab
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x443567
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8710]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8710]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8710]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8710]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8710]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8710]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8710]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8710]
sub edi, 1
jne 0x4434c0
pop edi
test esi, esi
je 0x44358a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8710]
sub esi, 1
jne 0x443570
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x4435a0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x4f8710]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8710]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x444090
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edx
mov ebx, esi
mov dword [ebp - 8], esi
imul ebx, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x4440d8
push 0
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4440ca
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [ebp - 4]
call fcn.0047e880
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x444110
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov edi, 1
cmp byte [esi], 0
je 0x44414b
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x444146
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x444178
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x44415c
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call fcn.0047e880
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x44418c
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x444183
cmp byte [esi + 8], 0
je 0x444183
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x445890
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov dword [ebp - 8], ebx
cmp dword [ebx], 0
jne 0x445a3a
cmp dword [ebx + 4], 0xffffffff
jne 0x445a3a
push edi
lea edi, [ebx + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4458c7
sub ecx, edx
sar ecx, 1
movzx eax, word [ebx + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x445903
cmp eax, 0x2f
je 0x445903
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4458f0
mov eax, dword [0x4f4828]
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
push esi
cmp edi, 1
jne 0x44592e
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x445949
pop esi
pop edi
mov eax, 0x2000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 2
je 0x445946
cmp edi, 3
je 0x445946
pop esi
pop edi
mov eax, 0x10000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
xor ebx, ebx
xor al, al
mov byte [ebp - 1], al
mov byte [ebp + 0x13], bl
cmp edi, 1
je 0x44598f
cmp edi, 2
jne 0x4459ab
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x445989
pop esi
pop edi
mov eax, 0x200
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [ebp + 0x13], 1
jmp 0x445995
mov ebx, esi
mov byte [ebp + 0x13], 0
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 1], al
push 0x20
call fcn.0047cf41
add esp, 4
mov esi, eax
cmp edi, 1
je 0x4459e6
cmp edi, 2
je 0x4459e6
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov word [esi], 0x100
mov byte [esi + 0x10], 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0xc], 0
jmp 0x445a17
mov al, byte [ebp + 0x13]
mov byte [esi + 0x10], al
mov al, byte [ebp - 1]
mov byte [esi], 1
mov byte [esi + 1], al
mov dword [esi + 4], ebx
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
test al, al
je 0x445a17
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
mov ecx, esi
call fcn.00444510
mov ecx, dword [ebp - 8]
mov edx, 0x200
pop esi
pop edi
pop ebx
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
cmove ecx, edx
mov eax, ecx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x1000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x446240
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x50d080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
test esi, esi
je 0x446272
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x446272
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x44635c
push edi
mov edi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x446291
cmp dx, 0x5c
jne 0x446293
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x446285
cmp edi, ebx
je 0x4462de
sub edi, ebx
lea eax, [ebp - 0x414]
and edi, 0xfffffffe
push edi
push ebx
push eax
call fcn.0047e880
add esp, 0xc
cmp edi, 0x208
jae 0x44636c
xor eax, eax
lea edx, [ebp - 0x414]
mov ecx, esi
mov word [ebp + edi - 0x414], ax
call fcn.00446240
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x446303
lea ecx, [ebp - 0x20c]
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x4462f3
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x446305
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x446320
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x44635c
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047cf84
mov esp, ebp
pop ebp
ret
call fcn.0047d9c0
int3
Function at 0x456ef0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [edx + 0x14]
push ebx
movzx ebx, word [edx + 6]
add eax, 0x18
push esi
add eax, edx
xor esi, esi
push edi
mov edi, ecx
test ebx, ebx
je 0x456f28
nop dword [eax + eax]
mov edx, dword [eax + 0xc]
cmp edi, edx
jb 0x456f20
mov ecx, dword [eax + 8]
add ecx, edx
cmp edi, ecx
jb 0x456f2f
inc esi
add eax, 0x28
cmp esi, ebx
jb 0x456f10
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov eax, dword [eax + 0x14]
sub eax, edx
add eax, edi
add eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x456f40
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push dword [ebp + 8]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 4], edi
cmp edi, 0xffffffff
je 0x45702b
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 8], eax
test eax, eax
je 0x457024
push esi
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x45701a
mov eax, 0x5a4d
cmp ax, word [esi]
jne 0x457013
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x457010
push dword [ebp + 0xc]
mov edx, edi
mov ecx, esi
call fcn.004573c0
add esp, 4
test al, al
je 0x456fd3
mov bl, 1
jmp 0x457010
mov ecx, dword [edi + 0x88]
test ecx, ecx
je 0x457010
push esi
mov edx, edi
call fcn.00456ef0
mov edx, dword [ebp + 0xc]
mov ecx, edi
add edx, 0x18
push edx
push 0x69
push 0x4feca4
push 0
push eax
push eax
mov edx, esi
call fcn.00457040
add esp, 0x1c
movzx ebx, bl
test al, al
mov ecx, 1
cmovne ebx, ecx
mov edi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4573c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, word [edx + 0x14]
push ebx
movzx ebx, word [edx + 6]
push esi
lea esi, [edx + 0x18]
mov dword [ebp - 0xc], ecx
add esi, eax
xor cl, cl
push edi
xor eax, eax
mov byte [ebp - 1], cl
xor edi, edi
test ebx, ebx
je 0x45741e
nop word [eax + eax]
push esi
push str..rsrc
call fcn.004af963
add esp, 8
test eax, eax
je 0x457413
inc edi
add esi, 0x28
cmp edi, ebx
jb 0x4573f0
mov cl, byte [ebp - 1]
xor esi, esi
xor eax, eax
jmp 0x457420
mov eax, dword [esi + 0x14]
mov esi, dword [esi + 8]
mov cl, byte [ebp - 1]
jmp 0x457420
xor esi, esi
mov ebx, dword [ebp - 0xc]
add ebx, eax
je 0x45751f
lea eax, [esi - 2]
push 2
add eax, ebx
push eax
push 0x4fecb4
call fcn.004b0030
add esp, 0xc
test eax, eax
jne 0x457515
cmp dword [esi + ebx - 6], 1
jne 0x457515
mov eax, dword [esi + ebx - 0xe]
lea edi, [esi - 0xa]
mov ecx, dword [edi + ebx]
sub edi, 8
mov esi, dword [ebp + 8]
mov dword [ebp - 8], eax
mov edx, dword [edi + ebx]
sub edi, ecx
test byte [esi + 0x24], 1
mov dword [ebp - 0xc], edx
je 0x4574a3
add esi, 0x18
push esi
push ecx
mov ecx, esi
call fcn.00417a50
mov ecx, dword [esi]
mov eax, dword [esi + 4]
cmp ecx, eax
je 0x45749d
sub eax, ecx
push eax
lea eax, [edi + ebx]
push eax
push ecx
call fcn.0047e880
add esp, 0xc
mov byte [ebp - 1], 1
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
sub edi, eax
test byte [esi + 0x24], 4
je 0x4574dd
add esi, 0xc
push esi
push eax
mov ecx, esi
call fcn.00417a50
mov ecx, dword [esi]
mov eax, dword [esi + 4]
cmp ecx, eax
je 0x4574da
sub eax, ecx
push eax
lea eax, [edi + ebx]
push eax
push ecx
call fcn.0047e880
mov esi, dword [ebp + 8]
mov al, 1
add esp, 0xc
mov byte [ebp - 1], al
jmp 0x4574e0
mov esi, dword [ebp + 8]
mov al, byte [ebp - 1]
test byte [esi + 0x24], 2
je 0x457521
push esi
push dword [ebp - 0xc]
mov ecx, esi
call fcn.00417a50
mov ecx, dword [esi]
mov eax, dword [esi + 4]
cmp ecx, eax
je 0x457515
sub edi, dword [ebp - 0xc]
sub eax, ecx
push eax
add edi, ebx
push edi
push ecx
call fcn.0047e880
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, cl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45dc6f
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push 0x18
mov eax, 0x4deb84
call fcn.0047cfcc
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov esi, dword [ebp + 8]
push 0x1c
push esi
mov dword [ebp - 4], ebx
call fcn.004168f0
mov edi, str.SpreadsheetToolsempty.xls
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x14], 3
call fcn.0048a11d
add esp, 0xc
mov ecx, esi
push eax
push edi
call fcn.00409280
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x45dcb9
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45dd7b
call fcn.00460dc2
mov edi, eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
push str.RT_ZIPPED_DATA
push 0x7f
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x45dd38
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x45dd38
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45dd38
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x45dd38
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push eax
push edi
mov ecx, eax
call fcn.00417a50
push edi
push ebx
push dword [ebp - 0x24]
call fcn.0047e880
add esp, 0xc
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
je 0x45dd73
lea ecx, [ebp - 0xd]
call fcn.00429230
cmp dword [esi + 0x14], 8
mov eax, esi
mov byte [ebp - 4], 2
jb 0x45dd56
mov eax, dword [esi]
push 0
push eax
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0xd]
sub eax, dword [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.00429640
lea ecx, [ebp - 0xd]
call fcn.00429240
lea ecx, [ebp - 0x24]
call fcn.00407c60
mov eax, esi
call fcn.0047cf95
ret
Function at 0x45e11d
Capabilities:
Delete registry key

Disassembly:
push 0xa8
mov eax, 0x4dec42
call fcn.0047d000
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x90]
xor ebx, ebx
inc ebx
call fcn.0042a7b0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x90]
call fcn.0042b1e0
test eax, eax
je 0x45e285
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], bl
push eax
lea ecx, [ebp - 0x28]
call fcn.004102d0
mov esi, str.ExcelResiliencyDisabledItems
push esi
call fcn.0048a11d
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00409280
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0xb4]
push closesocket
push eax
call fcn.0040ea80
mov eax, dword [ebp - 0xb4]
xor esi, esi
test eax, eax
cmovne esi, ebx
mov byte [ebp - 4], 2
je 0x45e1c1
push eax
call dword [ebp - 0xa8]
mov byte [ebp - 4], bl
test esi, esi
jne 0x45e229
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
call fcn.004102d0
push str.ExcelResiliencyStartupItems
call fcn.0048a11d
pop ecx
push eax
push str.ExcelResiliencyStartupItems
lea ecx, [ebp - 0x28]
call fcn.00409280
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0xb4]
push closesocket
push eax
call fcn.0040ea80
mov eax, dword [ebp - 0xb4]
test eax, eax
cmovne esi, ebx
mov byte [ebp - 4], 3
je 0x45e222
push eax
call dword [ebp - 0xa8]
mov byte [ebp - 4], bl
test esi, esi
je 0x45e27d
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
call fcn.004102d0
mov esi, str.ExcelResiliency
push esi
call fcn.0048a11d
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00409280
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
je 0x45e27d
mov esi, str.Data_can_not_be_removed_from_Registry.
push esi
call fcn.0048a11d
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00410170
xor ebx, ebx
lea ecx, [ebp - 0x28]
call fcn.00410420
lea ecx, [ebp - 0x90]
call fcn.0042ace0
mov eax, ebx
call fcn.0047cfaa
ret
Function at 0x45e359
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x74
mov eax, 0x4decaf
call fcn.0047d000
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
call fcn.00460dc2
push 0x4e4564
mov esi, eax
push 0x7d
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x45e497
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x68], eax
test eax, eax
je 0x45e497
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45e497
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x45e497
lea ecx, [ebp - 0x80]
call fcn.0042fa40
mov esi, dword [ebp - 0x68]
mov dword [ebp - 4], ebx
test esi, esi
je 0x45e48f
lea eax, [ebp - 0x80]
push eax
push esi
mov ecx, eax
call fcn.00417a50
push esi
push edi
push dword [ebp - 0x80]
call fcn.0047e880
add esp, 0xc
lea ecx, [ebp - 0x4c]
call fcn.00433960
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x4c]
call fcn.00433cc0
test eax, eax
je 0x45e487
mov esi, dword [ebp - 0x6c]
lea ecx, [ebp - 0x80]
push esi
call fcn.004303f0
push esi
lea ecx, [ebp - 0x30]
call fcn.00401910
mov byte [ebp - 4], 2
cmp byte [esi + 4], bl
jne 0x45e47d
push ebx
lea ecx, [ebp - 0x30]
call fcn.00403640
test al, al
jne 0x45e47d
cmp dword [ebp - 0x18], ebx
je 0x45e47f
push dword [ebp - 0x70]
lea eax, [ebp - 0x64]
push eax
call fcn.00460c4c
pop ecx
pop ecx
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x45e459
mov ecx, dword [ecx]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x1010
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call fcn.00460bf6
add esp, 0xc
lea ecx, [ebp - 0x64]
call fcn.00410420
jmp 0x45e47f
mov bl, 1
lea ecx, [ebp - 0x30]
call fcn.00401970
lea ecx, [ebp - 0x4c]
call fcn.004339f0
lea ecx, [ebp - 0x80]
call fcn.0042fa60
mov al, bl
call fcn.0047cfaa
ret