joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x456d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x620], eax
mov dword [ebp - 0x62c], ecx
mov dword [ebp - 0x624], 0x104
mov dword [ebp - 0x628], 0x104
test ebx, ebx
jne 0x4205ef
test esi, esi
jne 0x4205ef
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
push eax
lea eax, [ebp - 0x518]
push str._sUsers
push eax
call fcn.00404cf0
push dword [ebp - 0x620]
lea eax, [ebp - 0x61c]
push str._sGroups
push eax
call fcn.00404cf0
push 0
push dword [ebp - 0x62c]
lea eax, [ebp - 0x414]
push 0x208
push eax
push dword [ebp - 0x620]
push esi
push ebx
call fcn.0041afd0
push str.TerminateStrings
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.00427b8d
add esp, 0x40
lea eax, [ebp - 0x414]
push eax
push reloc.WS2_32.dll_bind
call fcn.0041b470
mov esi, eax
add esp, 8
mov dword [ebp - 0x620], esi
test esi, esi
jne 0x4206b3
push str.Default
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x414]
push str._s_sTerminateStrings
push eax
call fcn.0041fc70
lea eax, [ebp - 0x414]
push eax
push reloc.WS2_32.dll_bind
call fcn.0041b470
mov esi, eax
mov dword [ebp - 0x620], eax
add esp, 0x18
test esi, esi
je 0x4205dc
xor ebx, ebx
jmp 0x4206c0
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x630]
push eax
push 0
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x62c], eax
test eax, eax
jne 0x4207bf
cmp dword [ebp - 0x628], eax
je 0x4207bf
cmp dword [ebp - 0x624], eax
je 0x4207bf
push 0x20c
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x420791
push dword [ebp - 0x624]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x628]
lea eax, [ebp - 0x108]
push eax
push str.Terminate_String_Data___s__len___d_Value___s__len_d_n
push 2
call fcn.0041a380
lea eax, [ebp - 0x108]
push eax
push 0x104
push esi
call fcn.00427b16
lea eax, [ebp - 0x20c]
push eax
lea eax, [esi + 0x104]
push 0x104
push eax
call fcn.00427b16
add esp, 0x30
test edi, edi
je 0x420785
mov dword [esi + 0x208], edi
jmp 0x42078f
mov dword [esi + 0x208], 0
mov edi, esi
mov eax, dword [ebp - 0x62c]
mov esi, dword [ebp - 0x620]
mov byte [ebp - 0x20c], 0
mov dword [ebp - 0x624], 0x104
mov dword [ebp - 0x628], 0x104
mov byte [ebp - 0x108], 0
inc ebx
test eax, eax
je 0x4206c0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004265fb
mov esp, ebp
pop ebp
ret
Function at 0x421100
Capabilities:
Encrypt data using rc4 prga
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x452ae8
push 0x42c3d0
mov eax, dword fs:[0]
push eax
add esp, 0xffffff90
mov eax, dword [0x456d10]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
cmp dword [ebp + 0xc], 0
jne 0x421145
mov dword [ebp - 0x60], 0x10000
jmp 0x421150
mov eax, dword [ebp + 0xc]
add eax, 0x10000
mov dword [ebp - 0x60], eax
push 0x1c
push 0
lea ecx, [ebp - 0x80]
push ecx
call fcn.0042bf20
add esp, 0xc
jmp 0x42116b
mov edx, dword [ebp - 0x80]
add edx, dword [ebp - 0x74]
mov dword [ebp - 0x60], edx
push 0x1c
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
ja 0x421188
jmp 0x42128d
mov eax, dword [ebp - 0x80]
add eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x60]
jae 0x421198
jmp 0x42128d
cmp dword [ebp - 0x70], 0x1000
jne 0x4211ba
mov ecx, dword [ebp - 0x6c]
and ecx, 0xff
cmp ecx, 1
je 0x4211ba
mov edx, dword [ebp - 0x6c]
and edx, 0x100
je 0x4211bc
jmp 0x421162
mov dword [ebp - 4], 0
push 0
push 0x40
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x4211e9
mov dword [ebp - 4], 0xfffffffe
jmp 0x421162
movzx eax, word [ebp - 0x5c]
cmp eax, 0x5a4d
jne 0x421202
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x74]
ja 0x421202
cmp dword [ebp - 0x20], 0x40
jae 0x42120e
mov dword [ebp - 4], 0xfffffffe
jmp 0x421162
push 0
push 0xf8
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x60]
add eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x42123a
mov dword [ebp - 4], 0xfffffffe
jmp 0x421162
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0x4550
je 0x421251
mov dword [ebp - 4], 0xfffffffe
jmp 0x421162
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x64]
jmp 0x42128f
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret 0xc
Function at 0x422030
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0x1c]
or eax, 4
mov dword [ebp - 8], eax
cmp dword [ebp + 0x34], 0
jne 0x42204e
mov ecx, dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp + 0x34], ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp + 0x28]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp + 0x34]
test eax, eax
jne 0x422081
xor eax, eax
jmp 0x4220f9
mov dword [ebp - 4], 0
cmp dword [ebp + 0x30], 0
je 0x4220a1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x30]
mov dword [ebp + eax*4 - 0x10], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.00422100
test eax, eax
jne 0x4220ca
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x4220f9
cmp dword [ebp + 0x2c], 0
je 0x4220e2
push 0x10
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp + 0x2c]
push eax
call fcn.0042a7d0
add esp, 0xc
mov ecx, dword [ebp + 0x1c]
and ecx, 4
jne 0x4220f4
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov esp, ebp
pop ebp
ret 0x30
Function at 0x43f105
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x456d10]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0042e912
mov dword [ebp - 0x14], eax
cmp dword [0x45a4cc], esi
jne 0x43f1f8
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x43f185
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x43f2d8
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x43f2d8
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43f2d8
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x45a4cc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x45a4d0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x45a4d4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45a4dc], eax
test eax, eax
je 0x43f1f5
push 0x44ddcc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45a4d8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x43f21d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x43f210
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x43f232
push 4
pop eax
jmp 0x43f2da
cmp dword [ebp - 0x14], esi
je 0x43f232
push dword [0x45a4cc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x43f217
mov eax, dword [0x45a4d8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x43f290
cmp dword [0x45a4dc], edi
je 0x43f290
push eax
call ebx
push dword [0x45a4dc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x43f290
test eax, eax
je 0x43f290
call ecx
test eax, eax
je 0x43f285
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 0x43f285
test byte [ebp - 8], 1
jne 0x43f290
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x43f2c0
mov eax, dword [0x45a4d0]
cmp eax, edi
je 0x43f2bd
push eax
call ebx
test eax, eax
je 0x43f2bd
call eax
mov esi, eax
test esi, esi
je 0x43f2bd
mov eax, dword [0x45a4d4]
cmp eax, edi
je 0x43f2bd
push eax
call ebx
test eax, eax
je 0x43f2bd
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x45a4cc]
call ebx
test eax, eax
je 0x43f2d8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x43f2da
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004265fb
mov esp, ebp
pop ebp
ret
Function at 0x409d84
Capabilities:
Encode data using xor

Disassembly:
add al, byte [ecx + 0x419b12c7]
add byte [ecx - 0x7e97db84], cl
invalid
Function at 0x10009e5f
Capabilities:
Set registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x100436e0]
xor eax, esp
mov dword [esp + 0x114], eax
cmp dword [0x10043820], 0
push ebx
mov ebx, dword [esp + 0x134]
push ebp
mov ebp, dword [esp + 0x124]
push esi
mov esi, dword [esp + 0x12c]
push edi
mov edi, dword [esp + 0x13c]
je 0x10009fd9
and dword [esp + 0x10], 0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x10]
jne 0x10009eaa
sub ecx, edx
push 1
sar ecx, 1
lea eax, [ecx + 1]
xor edx, edx
push edx
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x24], eax
add eax, eax
push eax
push edx
push 0x78
lea ecx, [esp + 0x40]
mov dword [esp + 0x28], eax
call sym.EXPSRV.dll___vbaInStr
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
test eax, eax
je 0x10009f88
xor ecx, ecx
push ecx
push ecx
push dword [esp + 0x18]
push eax
push dword [esp + 0x28]
push esi
push ecx
push ecx
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov esi, dword [esp + 0x138]
test esi, esi
je 0x10009fd3
cmp esi, 2
jbe 0x10009f22
cmp esi, 7
jne 0x10009fd3
test ebx, ebx
jne 0x10009f41
xor eax, eax
push eax
push edi
push esi
push dword [esp + 0x140]
push dword [esp + 0x24]
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
jmp 0x10009f8b
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
mov eax, ebx
shr eax, 1
push eax
push edi
push ecx
push ecx
mov dword [esp + 0x38], eax
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
push 1
xor ecx, ecx
push ecx
mov dword [esp + 0x18], eax
lea eax, [esp + 0xb4]
push eax
push ebx
push ecx
push 0x78
lea ecx, [esp + 0x34]
call sym.EXPSRV.dll___vbaInStr
mov ebx, dword [esp + 0x20]
test ebx, ebx
jne 0x10009f98
lea ecx, [esp + 0x1c]
call fcn.100089b8
push 0xe
pop esi
lea ecx, [esp + 0x28]
call fcn.100089b8
mov eax, esi
jmp 0x10009ff1
xor eax, eax
push eax
push eax
push dword [esp + 0x18]
push ebx
push dword [esp + 0x28]
push edi
push eax
push eax
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
push dword [esp + 0x10]
push ebx
push esi
push dword [esp + 0x140]
push dword [esp + 0x24]
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.100089b8
jmp 0x10009f8b
push ebx
jmp 0x10009f29
push ebx
push edi
push dword [esp + 0x140]
push dword [esp + 0x140]
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10029dae
add esp, 0x118
ret 0x18
Function at 0x1000a463
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x88
mov eax, dword [0x100436e0]
xor eax, esp
mov dword [esp + 0x84], eax
cmp dword [0x10043820], 0
push esi
mov esi, dword [esp + 0x94]
push edi
mov edi, dword [esp + 0x94]
je 0x1000a4ff
push ebx
mov ecx, esi
push ebp
lea edx, [ecx + 2]
xor ebx, ebx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1000a499
push 1
sub ecx, edx
push ebx
sar ecx, 1
lea eax, [esp + 0x24]
push eax
lea ebp, [ecx*2 + 2]
push ebp
push ebx
push 0x78
lea ecx, [esp + 0x28]
call sym.EXPSRV.dll___vbaInStr
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x1000a4e1
xor eax, eax
push eax
push eax
push ebp
push ebx
push 0xffffffffffffffff
push esi
push eax
push eax
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1000a4e6
push 0xe
pop esi
jmp 0x1000a4f0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
lea ecx, [esp + 0x10]
call fcn.100089b8
pop ebp
mov eax, esi
pop ebx
jmp 0x1000a507
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
xor ecx, esp
call fcn.10029dae
add esp, 0x88
ret 8

Function at 0x1000a520
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x88
mov eax, dword [0x100436e0]
xor eax, esp
mov dword [esp + 0x84], eax
cmp dword [0x10043820], 0
push ebx
mov ebx, dword [esp + 0x98]
push esi
mov esi, dword [esp + 0x94]
push edi
mov edi, dword [esp + 0xa4]
je 0x1000a5b5
push ebp
push 1
push 0
lea ecx, [esp + 0x24]
push ecx
lea eax, [edi + edi]
push eax
push 0
push 0x78
lea ecx, [esp + 0x28]
call sym.EXPSRV.dll___vbaInStr
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x1000a5a2
lea eax, [edi + edi]
push eax
push ebp
push dword [esp + 0xa8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x1000a5a7
push edi
push ebx
push 0xffffffffffffffff
push ebp
push eax
push eax
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1000a5a7
mov esi, 0x8007000e
lea ecx, [esp + 0x10]
call fcn.100089b8
mov eax, esi
pop ebp
jmp 0x1000a5c5
push edi
push ebx
push dword [esp + 0xa4]
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10029dae
add esp, 0x88
ret 0x10
Function at 0x1000b115
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100436e0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x2a
call dword [sym.imp.user32.dll_GetSystemMetrics]
test eax, eax
je 0x1000b26b
push ebx
mov ebx, 0x105
push ebx
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1000b26a
push 0x1003a274
lea eax, [ebp - 0x10c]
push ebx
push eax
call dword [sym.imp.msvcr100.dll_strcat_s]
add esp, 0xc
test eax, eax
jne 0x1000b26a
mov ebx, dword [sym.imp.kernel32.dll_FreeLibrary]
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_SetErrorMode]
cmp dword [0x10043820], eax
je 0x1000b1d1
push 0x8000
call edi
push str.USER32.DLL
mov esi, eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
push esi
mov dword [0x10043da4], eax
call edi
mov eax, dword [0x10043da4]
test eax, eax
je 0x1000b1d1
push str.SendIMEMessageExA
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x10043d58], eax
test eax, eax
jne 0x1000b1d1
push dword [0x10043da4]
call ebx
and dword [0x10043da4], 0
push 0x8000
call edi
mov esi, eax
push str.IMM32.DLL
lea eax, [ebp - 0x10c]
push eax
push 0x105
lea eax, [ebp - 0x214]
push eax
call sym.EXPSRV.dll___vbaInStr
test eax, eax
je 0x1000b268
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
push esi
mov dword [0x10043d5c], eax
call edi
mov ecx, dword [0x10043d5c]
test ecx, ecx
je 0x1000b268
xor esi, esi
cmp dword [0x1003a068], esi
je 0x1000b268
xor eax, eax
mov edi, 0x1003a068
push dword [eax + 0x1003a06c]
push ecx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov ecx, dword [edi]
mov dword [ecx], eax
test eax, eax
je 0x1000b259
inc esi
mov eax, esi
shl eax, 3
lea edi, [eax + 0x1003a068]
cmp dword [edi], 0
je 0x1000b268
mov ecx, dword [0x10043d5c]
jmp 0x1000b22b
push dword [0x10043d5c]
call ebx
and dword [0x10043d5c], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029dae
leave
ret
Function at 0x100112a5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x100112b4
pop dword [ebp - 0xc]
mov eax, 0x1894c1fc
sub eax, 0x893af48
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xd3e9f25a
add dword [ebp - 0x1c], 0x7a6852f1
mov dword [ebp - 0x18], 0x1428b35a
add dword [ebp - 0x18], 0x1e0a98eb
mov dword [ebp - 0x14], 0xa7c8a111
sub dword [ebp - 0x14], 0x5b7c5ce3
mov dword [ebp - 0x10], 0xbebd2d6f
sub dword [ebp - 0x10], 0xbebd2d6f
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xa86f9358
add eax, 0x6793fe10
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x8f6236cb
add dword [ebp - 0x1c], 0xe510328b
mov dword [ebp - 0x18], 0x3f5e1aac
add dword [ebp - 0x18], 0x20e46c9
mov dword [ebp - 0x14], 0xe8015b84
sub dword [ebp - 0x14], 0x8491ef18
mov dword [ebp - 0x10], 0xbdcac94f
sub dword [ebp - 0x10], 0xbdcac94f
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0xc52f82dd
add eax, 0x4ad40d83
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3a2eb
push 0
call eax
mov ecx, 0x61640dab
sub ecx, 0x6163c281
mov edx, eax
mov edi, 0x2ff34be
add edi, 0xd060342
add edi, dword [ebp - 0xc]
mov esi, 0xf665f1bf
add esi, 0x93c4f66d
sub dword [ebp - 4], 0xbf4e361a
mov ebx, dword [edi]
sub dword [ebp - 4], 0x6bba254a
xor ebx, esi
sub dword [ebp - 8], edi
mov dword [edx], ebx
sub dword [ebp - 8], edx
add edx, 4
add edi, 4
loop 0x100113d6
add eax, 0x11f7b
mov ebx, eax
add eax, 0x238447
add eax, 0xffdc7bbe
mov ecx, 0x937bc45d
add ecx, 0x7c843ba3
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x10016940
Capabilities:
Read file on windows

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.msvcr100.dll__read]
add esp, 0xc
ret 0xc

Function at 0x10017236
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100436e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push 2
push eax
lea eax, [ebp - 0x10c]
push eax
call sym.EXPSRV.dll___vbaInStr
push 2
push esi
lea eax, [ebp - 0x214]
push eax
call sym.EXPSRV.dll___vbaInStr
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.msvcr100.dll_rename]
pop ecx
pop ecx
pop esi
test eax, eax
je 0x100172bb
call dword [sym.imp.msvcr100.dll__errno]
mov eax, dword [eax]
dec eax
dec eax
je 0x100172b2
sub eax, 0xb
je 0x100172ae
sub eax, 4
je 0x100172aa
dec eax
je 0x100172a6
push 5
jmp 0x100172b4
push 0x4a
jmp 0x100172b4
push 0x3a
jmp 0x100172b4
push 0x4b
jmp 0x100172b4
push 0x35
pop eax
push eax
call fcn.1000c0de
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029dae
leave
ret 8
Function at 0x10017979
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x100436e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x35
pop edi
test esi, esi
je 0x100179b4
cmp word [esi], 0
je 0x100179b4
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100179a3
sub ecx, edx
cmp ecx, 0x104
jbe 0x100179ba
push edi
call fcn.1000c0de
push 1
push esi
lea eax, [ebp - 0x10c]
push eax
call sym.EXPSRV.dll___vbaInStr
mov esi, dword [ebp + 0xc]
mov eax, esi
or eax, 0x27
cmp eax, 0x27
je 0x100179dd
push 5
call fcn.1000c0de
test esi, esi
jne 0x100179e6
mov esi, 0x80
push esi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
jne 0x10017a29
mov esi, dword [sym.imp.kernel32.dll_GetLastError]
call esi
cmp eax, 5
je 0x10017a19
call esi
cmp eax, edi
je 0x10017a19
call esi
cmp eax, 0x57
je 0x10017a19
call esi
cmp eax, 0x13
jne 0x10017a1c
push 0x4b
pop edi
movzx eax, di
test eax, eax
je 0x10017a29
push eax
call fcn.1000c0de
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10029dae
leave
ret 8
Function at 0x1001d8c4
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x5c
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [esp + 0x24]
push esi
push eax
call sub.msvcr100.dll_memset
mov eax, dword [esp + 0x78]
add esp, 0xc
mov dword [esp + 0x20], edi
mov dword [esp + 0x4c], 1
mov word [esp + 0x50], ax
cmp ax, 9
jbe 0x1001d8ff
push 5
call fcn.1000c0de
mov eax, dword [esp + 0x68]
push ebx
push ebp
test eax, eax
je 0x1001d91e
cmp word [eax], 8
jne 0x1001d91e
cmp dword [eax + 8], esi
jne 0x1001d91e
push esi
push esi
call dword [sym.imp.oleaut32.dll_SysReAllocStringLen]
jmp 0x1001d924
push eax
call sym.EXPSRV.dll___vbaInStr
mov ebx, eax
test ebx, ebx
jne 0x1001d931
push 5
call fcn.1000c0de
cmp dword [0x10043820], esi
je 0x1001d9af
test ebx, ebx
jne 0x1001d941
mov eax, esi
jmp 0x1001d946
mov eax, dword [ebx - 4]
shr eax, 1
push esi
push esi
push esi
push esi
inc eax
push eax
push ebx
push esi
push esi
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x1001d967
push ebp
call fcn.10008870
mov edi, eax
test edi, edi
jne 0x1001d971
push 0xe
call dword [sym.imp.kernel32.dll_SetLastError]
jmp 0x1001d9c9
test ebx, ebx
jne 0x1001d979
mov eax, esi
jmp 0x1001d97e
mov eax, dword [ebx - 4]
shr eax, 1
push esi
push esi
push ebp
push edi
inc eax
push eax
push ebx
push esi
push esi
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push edi
push esi
call dword [sym.imp.kernel32.dll_CreateProcessA]
push edi
mov esi, eax
call fcn.100088c0
jmp 0x1001d9c9
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push ebx
push esi
call dword [sym.imp.kernel32.dll_CreateProcessW]
mov esi, eax
call dword [sym.imp.kernel32.dll_GetLastError]
push ebx
mov edi, eax
call dword [sym.imp.oleaut32.dll_SysStringLen]
pop ebp
pop ebx
test esi, esi
jne 0x1001da0d
dec edi
dec edi
je 0x1001d9f1
dec edi
je 0x1001d9f8
sub edi, 5
je 0x1001d9ff
sub edi, 6
je 0x1001d9ff
jmp 0x1001da06
push 0x35
call fcn.1000c0de
push 0x4c
call fcn.1000c0de
push 7
call fcn.1000c0de
push 5
call fcn.1000c0de
push 0x2710
push dword [esp + 0x14]
call dword [sym.imp.user32.dll_WaitForInputIdle]
push dword [esp + 0x14]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
push dword [esp + 0x10]
call esi
fild dword [esp + 0x18]
pop edi
pop esi
fstp qword [esp]
fld qword [esp]
add esp, 0x5c
ret 8