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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
xor edi, edi
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x10010d56
cmp dword [esi + 0x6af90], 3
jb 0x10010bc8
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
movzx ecx, byte [edx + esi + 0x1af72]
shl eax, 5
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
and edx, 0x7fff
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
test ebx, ebx
je 0x10010c05
mov eax, dword [esi + 0x6af84]
sub eax, ebx
cmp eax, 0x7efa
ja 0x10010c05
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x10010bef
mov dword [esi + 0x6afa0], eax
mov edx, ebx
mov ecx, esi
call fcn.10010830
mov ecx, dword [esi + 0x6af90]
mov edi, eax
cmp edi, ecx
cmova edi, ecx
mov ecx, esi
cmp edi, 3
jb 0x10010cd6
mov edx, dword [esi + 0x6af84]
sub edx, dword [esi + 0x6af88]
lea eax, [edi - 3]
push eax
call fcn.1000fff0
sub dword [esi + 0x6af90], edi
add esp, 4
mov dword [ebp - 4], eax
cmp edi, dword [esi + 0x6af98]
ja 0x10010c9d
cmp dword [esi + 0x6af90], 3
jb 0x10010c9d
dec edi
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
movzx ecx, byte [esi + edx + 0x1af72]
shl eax, 5
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
and edx, 0x7fff
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
dec edi
jne 0x10010c43
mov eax, dword [ebp - 4]
jmp 0x10010cf5
add dword [esi + 0x6af84], edi
mov eax, dword [esi + 0x6af84]
xor edi, edi
movzx ecx, byte [eax + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [eax + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [ebp - 4]
jmp 0x10010cfb
mov eax, dword [esi + 0x6af84]
xor edx, edx
movzx eax, byte [eax + esi + 0x1af70]
push eax
call fcn.1000fff0
add esp, 4
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
test eax, eax
je 0x10010d36
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x10010d13
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x10010d15
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
push 0
push eax
mov ecx, esi
call fcn.1000fe40
mov eax, dword [esi + 0x6af84]
add esp, 8
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x10010d49
mov ecx, esi
call fcn.100109f0
cmp dword [esi + 0x6af90], 0
jne 0x10010b73
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x10010d6a
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x10010d6c
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
push 1
push eax
mov ecx, esi
call fcn.1000fe40
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10011aa0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x10011aab
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x10011b75
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x10033b28]
movzx eax, byte [edx + 1]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x10033b28]
movzx eax, byte [edx + 2]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x10033b28]
movzx eax, byte [edx + 3]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x10033b28]
movzx eax, byte [edx + 4]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x10033b28]
movzx eax, byte [edx + 5]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x10033b28]
movzx eax, byte [edx + 6]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x10033b28]
movzx eax, byte [edx + 7]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x10033b28]
add edx, 8
sub esi, 8
dec edi
jne 0x10011ac0
pop edi
test esi, esi
je 0x10011b9a
lea esp, [esp]
movzx eax, byte [edx]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x10033b28]
lea edx, [edx + 1]
dec esi
jne 0x10011b80
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x10012060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1003867c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
cmp dword [esi + 0x18], 0
mov dword [ebp - 0x10], ecx
je 0x1001214d
mov eax, dword [esi + 0x20]
push ebx
mov ebx, dword [esi + 0x1c]
push edi
mov edi, dword [ebp + 0xc]
add ebx, edi
cmp ebx, eax
jb 0x10012124
add eax, eax
push 0
cmp eax, ebx
cmova ebx, eax
push ebx
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 8], eax
test eax, eax
je 0x100120d9
push ebx
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x100120f1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, 0x300
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001520a
mov esp, ebp
pop ebp
ret 8
push dword [esi + 0x20]
push dword [esi + 0x18]
push eax
call fcn.10017090
add esp, 0xc
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x20], ebx
mov dword [esi + 4], eax
push edi
push ecx
mov ecx, dword [esi + 0x1c]
add ecx, dword [esi + 0x18]
push ecx
call fcn.10017090
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001520a
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
test eax, eax
je 0x1001217f
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp + 0xc]
mov dword [ebp - 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001520a
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov dword [esi + 0xc], 0x1000000
xor ecx, ebp
xor eax, eax
pop esi
call fcn.1001520a
mov esp, ebp
pop ebp
ret 8
Function at 0x10012580
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1003867c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x64]
test edx, edx
je 0x100125ed
mov ecx, dword [edi + 0x6c]
mov esi, dword [edi + 0x68]
cmp ecx, esi
jae 0x1001263c
sub esi, ecx
cmp esi, dword [ebp + 0xc]
lea eax, [ecx + edx]
cmova esi, dword [ebp + 0xc]
push esi
push eax
push ebx
call fcn.10017090
mov ecx, dword [edi + 0x58]
add dword [edi + 0x6c], esi
add dword [edi + 0x54], esi
push esi
mov edx, ebx
call fcn.10011aa0
add esp, 0x10
mov dword [edi + 0x58], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001520a
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x10012635
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001263c
mov esi, dword [ebp - 8]
mov ecx, dword [edi + 0x58]
add dword [edi + 0x54], esi
push esi
mov edx, ebx
call fcn.10011aa0
add esp, 4
mov dword [edi + 0x58], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001520a
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0xc], 0x1000000
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1001520a
mov esp, ebp
pop ebp
ret 8
Function at 0x100245fe
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1003867c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.10019a2d
mov dword [ebp - 0x14], eax
cmp dword [0x1003a68c], edi
jne 0x100246ef
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x1002467c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x100247cf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x100247cf
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100247cf
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x1003a68c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x1003a690], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x1003a694], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1003a69c], eax
test eax, eax
je 0x100246ec
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1003a698], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10024714
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10024707
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x10024729
push 4
pop eax
jmp 0x100247d1
cmp dword [ebp - 0x14], edi
je 0x10024729
push dword [0x1003a68c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1002470e
mov eax, dword [0x1003a698]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x10024787
cmp dword [0x1003a69c], esi
je 0x10024787
push eax
call ebx
push dword [0x1003a69c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10024787
test eax, eax
je 0x10024787
call ecx
test eax, eax
je 0x1002477c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1002477c
test byte [ebp - 8], 1
jne 0x10024787
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x100247b7
mov eax, dword [0x1003a690]
cmp eax, esi
je 0x100247b4
push eax
call ebx
test eax, eax
je 0x100247b4
call eax
mov edi, eax
test edi, edi
je 0x100247b4
mov eax, dword [0x1003a694]
cmp eax, esi
je 0x100247b4
push eax
call ebx
test eax, eax
je 0x100247b4
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x1003a68c]
call ebx
test eax, eax
je 0x100247cf
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x100247d1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001520a
leave
ret
Function at 0x41eb3b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041fe40
cmp byte [0x453898], 0
je 0x41ebca
cmp word [0x45389a], 0
je 0x41ebca
push esi
push 0x800
lea eax, [ebp - 0x1008]
push eax
push 0x45389a
call fcn.0041d6d4
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareWinRAR_SFX
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41ebc9
push dword [ebp + 8]
call fcn.00424e13
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 4

Function at 0x41ebce
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0041fe40
push esi
push dword [ebp + 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.00411688
mov esi, eax
test esi, esi
je 0x41ec26
movzx ecx, word [esi]
push ecx
jmp 0x41ec11
add esi, 2
movzx eax, word [esi]
push eax
call fcn.004117a4
test al, al
jne 0x41ec0a
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
leave
ret 4

Function at 0x429c7e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lcall 0xc635, 0x9b45c633
inc ebp
pushfd
xor al, 0xc6
inc ebp
popfd
and dh, al
inc ebp
sahf
sub eax, 0x119f45c6

Function at 0x429f0e
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x429f5d
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
dec eax
or byte [ebx], al
ror byte [ecx - 0x35c4f7b3], 1
dec eax
or byte [ebx], al
ror byte [ecx - 0x35c4f7b3], 1
jae 0x429f58
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x429f42
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x429f4a
cmp edx, ebx
jne 0x42a098
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x429f19
add eax, dword [eax + 4]
jmp 0x429f06
mov dword [ebp + 0xc], ebx
jmp 0x429f68
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x429f80
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x429f9e
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
invalid
mov ch, 0x54
Function at 0x42a514
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
mov byte [ebp - 0x505], 0x1c
lea eax, [ebp - 0x514]
push eax
call fcn.004298b9
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0042986e
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.004298a9
lea ecx, [edx - 0x63]
mov edx, 0x10468
add byte [ebp - 0x3337b], cl
call dword [eax - 1]
jne 0x42a572
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x42a59d
push 0xc6fffffc
test dword [edx + edi*8 - 0x7cfe0001], edi
mov ebp, 0xfffffc68
add byte [edi + edx - 0x7d], dh
mov ebp, 0xfffffc68
add byte [edi], cl
test ah, dl
add dword [eax], eax
add byte [ebx + 0xf010c7d], al
test dl, cl
add dword [eax], eax
add byte [ebx + 0xf080c7d], al
test dword [eax - 0x7fffffff], ecx
movsd dword es:[edi], dword [esi]
dec eax
stc
invalid
cmp dword [ebp - 0x398], 0
je 0x42a767
cmp dword [ebp + 0xc], 1
je 0x42a767
cmp dword [ebp + 0xc], 8
jne 0x42a72f
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0

Function at 0x42a5b5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1

Function at 0x433180
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4331ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4331ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x422550
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x4012c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x4012a8
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x2c]
xor esi, esi
rep stosd dword es:[edi], eax
mov ecx, 7
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x84], esi
call fcn.004037c0
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov ebx, eax
call edi
lea eax, [ebp - 0x6c]
push eax
push 0x28
push ebx
call fcn.00403724
mov ebx, eax
call edi
xor ecx, ecx
cmp ebx, esi
setne cl
neg ecx
test cx, cx
je 0x42264c
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x74]
push edx
push 0x403de0
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push esi
call fcn.00403774
mov ebx, eax
call edi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x4c]
lea edx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x6c]
push edx
lea eax, [ebp - 0x2c]
push 0x1c
push eax
push esi
push ecx
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x20], 2
call fcn.004036d8
mov esi, eax
call edi
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x84], 3
call dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
push 0x42267c
jmp 0x42265d
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x50]
call esi
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea ecx, [ebp - 0x64]
call esi
lea ecx, [ebp - 0x70]
call esi
ret

Function at 0x403161
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x403161
lcall 0x5de5, 0x8b10c483
jmp loc.00791034

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x3f34300
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.03f3438f
jae 0x3f3430e
xor ecx, ecx
call fcn.03f3438f
jae 0x3f3433d
xor eax, eax
call fcn.03f3438f
jae 0x3f3434d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.03f3438f
adc al, al
jae 0x3f3432f
jne 0x3f34379
stosb byte es:[edi], al
jmp 0x3f34311
call fcn.03f3439b
sub ecx, ebx
jne 0x3f34356
call fcn.03f34399
jmp 0x3f34375
lodsb al, byte [esi]
shr eax, 1
je 0x3f34383
adc ecx, ecx
jmp 0x3f34372
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.03f34399
cmp eax, 0x7d00
jae 0x3f34372
cmp ah, 5
jae 0x3f34373
cmp eax, 0x7f
ja 0x3f34374
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3f34311
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x4041ee
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x40420f
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x404206
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x4041fe
mov eax, ebx
leave
ret

Function at 0x404235
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0xc]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 8]
mov eax, dword [esi]
add eax, dword [ebp + 8]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 8]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 8]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 8]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 8]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x404294
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x4042c1
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x4042b0
xor ecx, eax
xor edx, ebx
dec edi
jne 0x4042a1
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x4042e7
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x404288
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 8]
pop ecx
pop edx
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x404b27
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword ds:[ebp - 0x20], 0xff8bff8b
mov dword ds:[ebp - 0x14], 0xff8bff8b
mov dword ds:[ebp - 0x1c], 0xff8bff8b
push 0x7fc
push dword [ebp - 0x20]
call fcn.004041b4
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 4]
mov ebx, eax
pop ecx
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x404d06
push dword [ebp - 4]
call fcn.00404198
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404bf7
jmp 0x404d06
push dword [ebp - 4]
call fcn.00404198
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [ebp - 4], eax
jne 0x404c4b
lea eax, [ebp - 4]
push eax
call fcn.00404b0d
mov dword [ebp - 0x28], eax
push 0
push 4
push dword [ebp - 0x28]
push dword [ebp - 4]
push 0xffffffff
push dword [ebp - 0x14]
call fcn.004043bf
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x404c4b
mov eax, 1
jmp 0x404c4d
xor eax, eax
test eax, eax
je 0x404cfb
push ebx
push esi
push edx
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0x3c]
mov eax, dword [eax]
add eax, ebx
lea eax, [eax + 0x78]
mov eax, dword [eax]
lea esi, [eax + ebx]
mov dword [ebp - 0x10], esi
lea edx, [esi + 0x20]
mov edx, dword [edx]
add edx, ebx
mov edx, dword [edx]
add edx, ebx
mov dword [ebp - 0x18], edx
lea eax, [esi + 0x18]
mov eax, dword [eax]
dec eax
mov dword [ebp - 4], eax
pop ebx
pop esi
pop edx
push dword [ebp - 4]
lea eax, [ebp - 4]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x404cf3
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [ebp - 0x1c]
call fcn.0040492a
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x404ce2
push edi
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
lea eax, [eax + 0x1c]
mov eax, dword [eax]
add eax, dword [ebp + 8]
lea eax, [eax + edi*4]
mov eax, dword [eax]
add eax, dword [ebp + 8]
pop edi
leave
ret 8
push dword [ebp - 0xc]
call fcn.00404ae6
add dword [ebp - 8], eax
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x404c95
add esp, 0xc
jmp 0x404d06
pop ebx
pop ecx
pop edx
add ecx, 4
jmp 0x404bd0
add esp, 0xc
mov edi, edi
mov edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, 0
jmp 0x404d27
mov esp, ebp
pop ebp
ret 8