joyce8/EMBER2024-capa huggingface dataset:
Function at 0x482690
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4c5013
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004b822f
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004bd8c8
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004bede4
test eax, eax
je 0x4827ac
mov ecx, dword [esp + 0x3c]
call fcn.004bd8f5
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x482770
push edi
mov ecx, esi
call fcn.004baf62
mov ecx, esi
call fcn.00482950
cmp dword [esp + 0x38], 1
jne 0x4827a5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004bb09d
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x484990
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4849c3
push esi
call fcn.00492d30
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4849bc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x484a49
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x484a32
mov eax, dword [esi + 8]
test eax, eax
je 0x4849e7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x484a2e
cmp eax, 2
je 0x484a32
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4849da
cmp eax, 3
je 0x484a0d
cmp eax, 1
jne 0x4849da
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4849da
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4849da
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00484a70
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x484a58
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00484a70
add esp, 4
pop esi
ret

Function at 0x4852e0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x485301
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x485301
mov eax, dword [eax + 0x44]
test eax, eax
je 0x485301
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4a1130
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [ecx]
test eax, eax
jne 0x4a113b
pop ecx
ret 8
mov edx, dword [esp + 0xc]
lea ecx, [esp]
push 0
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ecx
ret 8
Function at 0x4b9025
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b905d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b70b2
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b708a
jmp 0x4b9069
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ba71a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ba75c
call fcn.004c01ca
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ba75c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ba753
xor eax, eax
jmp 0x4ba764
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ba76a
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c06fa
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4c0728
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c0746
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c0660
jmp 0x4c0746
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c0746
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c0660
test edi, edi
mov eax, edi
jne 0x4c0730
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x7d6216a0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
call sub.USER32.dll_GetKeyboardLayoutList
mov esi, eax
cmp esi, 2
jb 0x7d621747
push edi
lea eax, [esi*4]
push eax
push 0x40
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x7d62173e
push edi
push esi
call sub.USER32.dll_GetKeyboardLayoutList
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x7d621737
xor esi, esi
test eax, eax
jbe 0x7d621737
mov ebx, dword [sym.imp.API_MS_Win_Core_Localization_L1_1_0.dll_GetLocaleInfoW]
movzx edx, word [edi + esi*4]
push 0x10
lea ecx, [ebp - 0x28]
push ecx
push 0x58
push edx
call ebx
test eax, eax
je 0x7d621714
mov eax, dword [ebp - 0x1c]
and eax, 0xc8000000
cmp eax, 0x88000000
je 0x7d62172d
inc esi
cmp esi, dword [ebp - 8]
jb 0x7d6216f2
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 1
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x7d6235c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x7d627038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
push esi
push edi
mov ecx, 8
mov esi, 0x7d621354
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x30]
mov edi, dword [ecx + 8]
test edi, edi
jne 0x7d623605
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.7d6255d2
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x30]
push edx
push 3
lea eax, [ebp - 0x3c]
push eax
push edi
push 8
mov dword [ebp - 0x3c], 0x10
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], 0
call sub.ntdll.dll_LdrFindResourceEx_U
mov esi, eax
test esi, esi
jl 0x7d62367d
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x28]
push edx
push eax
push edi
call dword [sym.imp.ntdll.dll_LdrAccessResource]
mov esi, eax
test esi, esi
jl 0x7d62367d
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
shr ecx, 1
push ecx
push edx
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.7d623500
test eax, eax
je 0x7d62367d
mov ecx, 0x200e
cmp cx, word [eax]
jne 0x7d62367d
mov edx, ecx
cmp dx, word [eax + 2]
jne 0x7d62367d
push 1
call sub.USER32.dll_SetProcessDefaultLayout
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
setge al
pop edi
xor ecx, ebp
pop esi
call fcn.7d6255d2
mov esp, ebp
pop ebp
ret
Function at 0x7d62a017
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 0x28], 0x50746547
mov dword [ebp - 0x24], 0x41636f72
mov dword [ebp - 0x20], 0x65726464
mov dword [ebp - 0x1c], 0x7373
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
pushal
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
mov edx, eax
mov eax, dword [edx + 0x3c]
lea eax, [eax + edx + 0x78]
mov eax, dword [eax]
mov ecx, dword [edx + eax + 0x18]
mov ebx, dword [edx + eax + 0x20]
add ebx, edx
dec ecx
test ecx, ecx
je 0x7d62a107
lea edi, [ebp - 0x28]
mov esi, dword [ebx + ecx*4]
add esi, edx
push ecx
mov ecx, 0xf
repe cmpsb byte [esi], byte es:[edi]
test ecx, ecx
pop ecx
jne 0x7d62a06e
mov esi, dword [edx + eax + 0x24]
add esi, edx
movzx esi, word [esi + ecx*2]
mov edi, dword [edx + eax + 0x1c]
add edi, edx
mov edi, dword [edi + esi*4]
add edi, edx
mov dword [ebp - 8], edi
popal
mov ecx, dword [ebp - 4]
xor edi, edi
cmp ecx, edi
je 0x7d62a107
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x7d62a107
lea edx, [ebp - 0x18]
push edx
push ecx
mov dword [ebp - 0x18], 0x64616f4c
mov dword [ebp - 0x14], 0x7262694c
mov dword [ebp - 0x10], 0x41797261
mov dword [ebp - 0xc], 0
call eax
nop
nop
cmp eax, edi
je 0x7d62a107
mov edi, eax
call 0x7d62a0e6
nop
pop ebx
mov eax, 0x401bd0
mov ecx, 0x401b66
sub eax, ecx
lea esi, [ebx + eax]
mov cl, byte [esi]
test cl, cl
je 0x7d62a107
lea edx, [esi]
push edx
call edi
nop
add esi, 0x10
jmp 0x7d62a0f6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40693c
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edx, dword [eax + 4]
mov edi, dword [eax]
add edx, edx
mov eax, 0x1505
adc eax, 0xd2850000
jle 0x406964
movzx ecx, byte [esi + edi]
imul eax, eax, 0x21
add eax, ecx
inc esi
cmp esi, edx
jl 0x406956
pop edi
pop esi
pop ebp
ret 4
Function at 0x41ade1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
mov dword [ebp - 4], edx
push esi
push edi
mov edi, dword [ebp + 8]
movzx eax, word [ebx]
movzx eax, ax
mov bh, 0xc0
xor edx, edx
movzx eax, byte [eax + 0x4c2140]
lea ecx, [ebx + eax*2]
call fcn.0041c935
mov esi, eax
mov edx, esi
movzx eax, word [esi]

Function at 0x41b731
Capabilities:
Encode data using base64
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c

Function at 0x41c574
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov eax, 0xff
Function at 0x41c633
Capabilities:
Encrypt data using speck

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, word [ecx]
push ebx
push esi
push edi
movzx eax, byte [eax + 0x4c2140]
Function at 0x4336c9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jae 0x4336f7
add byte [eax + edx - 0x7d], dh
push dword ds:[eax + ecx - 1]
call dword ss:[0xc849c198]
and dword [esi], 0x74
add esi, 4
cmp esi, 0x74fefa58
jne 0x4336b7
pop esi
mov al, 1
pop ebp
ret

Function at 0x43b3cc
Capabilities:
Check for vm using instruction vpcext

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
jne 0x43b420
or byte [ebp - 0x17ea8a37], al
invalid
rcr dword [ecx + 0x303e283], 0xc2

Function at 0x46247f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor esi, esi
mov edi, ecx
push esi
push esi
push 0xed001004
push dword [edi]
call dword [0x49c694]
mov dword [ebp - 8], eax
test eax, eax
jle 0x4624cb
push 2
push esi
push 0xed00102c
push dword [edi]
call dword [0x49c694]
neg eax
mov ecx, edi
push esi
sbb al, al
inc al
mov byte [ebp - 4], al
push esi
xor byte [ebp - 4], dh
call fcn.004623ee
inc esi
cmp esi, dword [ebp - 8]
jl 0x4624a0
pop edi
mov al, 1
pop esi
leave
ret

Function at 0x469691
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [ebx]
push 2
pop edx
mov esi, dword [ecx + edi]
lea eax, [ecx + 4]
mov dword [ebx], eax
xor ecx, ecx
mov dword [ebp + 8], esi
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041fe1e
mov ecx, dword [ebx]
add esi, esi
add ecx, edi
mov edi, eax
push esi
push ecx
push edi
call fcn.00420e33
add dword [ebx], esi
xor eax, eax
mov ecx, dword [ebp + 8]
add esp, 0x10
mov word [esi + edi], ax
test ecx, ecx
jle 0x4696ec
xor word [edi + eax*2], cx
inc eax
cmp eax, ecx
jl 0x4696e3
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x471f6f
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub dword [0x4d06e0], 1
jne 0x471f7d
call fcn.00472059
mov eax, dword [0x4d2ff4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4d2ff4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x471fb5
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
sub dword [0x4d06e0], 1
jne 0x471fc8
call fcn.00472059
mov eax, dword [0x4d2ff4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4d2ff4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jns 0x47200b
fadd qword [0x4c81c0]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x4c8190]
leave
ret
Function at 0x472019
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
mov dword [0x4d2630], ecx
inc esi
mov edx, esi
mov eax, dword [edx*4 + 0x4d262c]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x4d2630], eax
inc edx
cmp edx, 0x270
jl 0x472025
mov dword [0x4d06e0], esi
mov dword [0x4d2ff0], esi
pop esi
ret

Function at 0x472059
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4d2ff0], 0
push esi
push edi
mov esi, 0x4d2630
jne 0x47207c
push 0
call fcn.0042e4fb
pop ecx
mov ecx, eax
call fcn.00472019
mov dword [0x4d06e0], 0x270
mov edx, 0xe3
mov dword [0x4d2ff4], esi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, dword [esi]
shr ecx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi + 0x634]
mov dword [esi], ecx
add esi, 4
sub edx, 1
jne 0x472091
mov eax, dword [esi]
mov dword [ebp - 4], 0xbbed018c
mov edi, dword [esi + 4]
mov ecx, eax
xor ecx, edi
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edi
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edi
xor ecx, dword [esi - 0x38c]
sub dword [ebp - 4], 1
mov dword [esi], ecx
lea esi, [esi + 4]
jne 0x4720cb
mov eax, dword [0x4d2630]
mov ecx, edi
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, edi
shr ecx, 1
neg eax
pop edi
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
leave
ret
Function at 0x410c70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4025e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x70
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401f20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.00404fd8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x64]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00405038
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
setne dl
neg edx
movsx eax, dx
test eax, eax
je 0x410e25
mov dword [ebp - 4], 4
xor ecx, ecx
test ecx, ecx
je 0x410d46
mov dword [ebp - 4], 6
mov dword [ebp - 0x6c], 0x1c
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00405088
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x410e25
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
push 0x404ae4
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
call fcn.004050e8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x74], dx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x74]
test eax, eax
je 0x410e25
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410dc3
mov dword [ebp - 0x8c], 0
jmp 0x410dcf
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x74]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0x5c]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410e06
mov dword [ebp - 0x90], 0
jmp 0x410e12
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
imul ecx, ecx, 0xc
mov dword [ebp + ecx - 0x54], 2
jmp 0x410d14
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404e50
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x410e4d
jmp 0x410e4c
ret

Function at 0x459575
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x459575
lcall 0x5de5, 0x8b10c483
jmp int.00969590
Function at 0x408ce0
Capabilities:
Decompress data using quicklz

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x408dd3
sub esp, 0x30
movsd xmm0, qword [esp + 0x34]
movsd qword [esp], xmm0
call fcn.00408eb0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x14], eax
mov ecx, eax
shr eax, 0x14
and eax, 0x7ff
add eax, 0xfffffc01
mov edx, 0xffffffff
adc edx, 0
shr ecx, 0xf
and ecx, 0x1f
mov ebp, ecx
add ecx, 1
mov esi, dword [esp + 8]
mov dword [esp + 0x10], esi
lea edi, [0x5a5200]
movsd xmm0, qword [edi + ebp*8]
movsd qword [esp + 0x18], xmm0
movsd xmm1, qword [edi + ecx*8]
movsd qword [esp + 0x20], xmm1
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0045f1b0
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x28], xmm0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x14]
shl eax, 5
mov ecx, dword [esp + 0x10]
shr ecx, 0x1b
or ecx, eax
and ecx, 0xfffff
mov dword [esp], ecx
call fcn.0045f230
movsd xmm0, qword [esp + 0x28]
movsd xmm1, qword [esp + 0x18]
addsd xmm0, xmm1
movsd xmm2, qword [esp + 0x20]
subsd xmm2, xmm1
movsd xmm1, qword [esp + 8]
mulsd xmm1, xmm2
movsd xmm2, qword [0x517e34]
mulsd xmm2, xmm1
addsd xmm0, xmm2
movsd qword [esp + 0x3c], xmm0
add esp, 0x30
ret
call fcn.00463e70
jmp fcn.00408ce0
Function at 0x416f80
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x417169
sub esp, 0x18
mov eax, dword [0x60a344]
test eax, eax
jne 0x417152
lea eax, [0x60a330]
mov dword [esp], eax
call fcn.0040a780
mov eax, dword [0x60a334]
test eax, eax
je 0x416fc8
cmp dword [eax + 8], 0xcc
jne 0x41703e
mov eax, dword [0x60a328]
test eax, eax
jne 0x417020
mov dword [esp], 0x1000
mov dword [esp + 4], 0
lea eax, [0x60cc10]
mov dword [esp + 8], eax
call fcn.0040cd80
mov eax, dword [esp + 0xc]
mov dword [0x60a328], eax
mov ecx, dword [0x60a2ec]
mov dword [eax], ecx
mov eax, dword [0x60a328]
mov dword [0x60a2ec], eax
movzx eax, byte [0x60a880]
test al, al
jne 0x417020
xor eax, eax
jmp 0x417146
mov eax, dword [0x60a328]
mov ecx, dword [eax + 4]
mov dword [0x60a328], ecx
mov ecx, dword [0x60a334]
mov dword [eax + 4], ecx
mov dword [0x60a334], eax
mov eax, dword [0x60a334]
mov dword [esp + 0x14], eax
mov ecx, dword [eax + 8]
mov dword [esp + 0x10], ecx
lea edx, [eax + 8]
mov dword [esp], edx
mov dword [esp + 4], 1
call fcn.00402850
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*4]
mov ecx, dword [esp + 0x14]
lea edi, [ecx + eax*4 + 0x10]
mov edx, dword [0x60a560]
lea ebx, [ecx + eax*4 + 0x1c]
lea ebp, [ecx + eax*4 + 0x20]
lea esi, [ecx + eax*4 + 0x14]
test edx, edx
jne 0x417091
mov edx, dword [esp + 0x20]
mov dword [ecx + eax*4 + 0x10], edx
jmp 0x41709e
mov edx, eax
mov eax, dword [esp + 0x20]
call fcn.00465280
mov eax, edx
mov edx, dword [esp + 0x24]
mov dword [ecx + eax*4 + 0x18], edx
mov edx, dword [0x60a560]
test edx, edx
jne 0x4170ca
mov edx, dword [esp + 0x28]
mov dword [ecx + eax*4 + 0x1c], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + eax*4 + 0x20], edx
mov edx, dword [esp + 0x1c]
mov dword [ecx + eax*4 + 0x14], edx
jmp 0x4170eb
mov edi, ebx
mov eax, dword [esp + 0x28]
call fcn.00465280
mov edi, ebp
mov eax, dword [esp + 0x2c]
call fcn.00465280
mov edi, esi
mov eax, dword [esp + 0x1c]
call fcn.00465280
lea eax, [0x60a330]
mov dword [esp], eax
call fcn.0040a980
lea eax, [0x60a32c]
mov dword [esp], eax
mov dword [esp + 4], 8
call fcn.00402380
add esp, 0x18
ret
mov ecx, eax
mov eax, 0xcccccccd
imul ecx
add edx, ecx
sar edx, 2
mov ebx, ecx
sar ecx, 0x1f
sub edx, ecx
lea ecx, [edx + edx*4]
mov edx, ebx
sub ebx, ecx
lea ecx, [0x5a125c]
movzx ebx, byte [ecx + ebx]
lea ebp, [0x60a880]
mov byte [ebp + edx], bl
lea eax, [edx + 1]
cmp eax, 0x80
jl 0x417113
jmp 0x417020
lea eax, [0x509b48]
mov dword [esp], eax
mov dword [esp + 4], 0x18
call fcn.00438c50
nop
call fcn.00463e70
jmp fcn.00416f80