joyce8/EMBER2024-capa huggingface dataset:
Function at 0x512344
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x31
push 0
push 0
dec ecx
jne 0x51234c
push ebx
push esi
xor eax, eax
push ebp
push 0x512609
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00402af4
test eax, eax
jne 0x512519
xor edx, edx
push ebp
push 0x512501
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x160]
push eax
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
lea edx, [ebp - 0x168]
xor eax, eax
call fcn.00402b54
mov eax, dword [ebp - 0x168]
lea edx, [ebp - 0x164]
call fcn.0040957c
push dword [ebp - 0x164]
push 0x512624
lea eax, [ebp - 0x16c]
call fcn.00512288
push dword [ebp - 0x16c]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404a78
lea edx, [ebp - 8]
xor eax, eax
call fcn.00402b54
push 0x40
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x417d64]
call fcn.0041cb48
mov ebx, eax
push 0xffff
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x417d64]
call fcn.0041cb48
mov esi, eax
push 0
push 0
mov edx, ebx
mov eax, esi
call fcn.0041c8cc
call fcn.00402bb4
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
sub eax, 0x64
sbb edx, 0
call fcn.00403194
cdq
push edx
push eax
mov eax, ebx
call fcn.0041c650
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, ebx
call fcn.0041c630
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00403194
cdq
push edx
push eax
mov edx, ebx
mov eax, esi
call fcn.0041c8cc
mov eax, ebx
call fcn.004038e4
mov eax, esi
call fcn.004038e4
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.00403174
mov dword [ebp - 0x50], 0x44
mov dword [ebp - 0x24], 1
mov word [ebp - 0x20], 1
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x20
push 0xffffffffffffffff
push 0
push 0
push dword [ebp - 0xc]
push 0x512630
lea edx, [ebp - 0x178]
xor eax, eax
call fcn.00402b54
mov eax, dword [ebp - 0x178]
lea edx, [ebp - 0x174]
call fcn.00519f00
push dword [ebp - 0x174]
lea eax, [ebp - 0x170]
mov edx, 3
call fcn.00404a78
mov eax, dword [ebp - 0x170]
call fcn.00404bb8
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x512508
ret
lea edx, [ebp - 0x17c]
mov eax, 1
call fcn.00402b54
mov eax, dword [ebp - 0x17c]
mov edx, 0x512640
call fcn.00404b04
jne 0x5125de
xor eax, eax
push ebp
push 0x5125c6
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x180]
mov eax, 2
call fcn.00402b54
mov eax, dword [ebp - 0x180]
call fcn.00409040
push eax
push 0
push 1
call sub.KERNEL32.DLL_OpenProcess
mov ebx, eax
push 0
push ebx
call sub.KERNEL32.DLL_TerminateProcess
push ebx
call sub.KERNEL32.DLL_CloseHandle
push 0x1f4
call sub.KERNEL32.DLL_Sleep
lea edx, [ebp - 0x188]
mov eax, 3
call fcn.00402b54
mov eax, dword [ebp - 0x188]
lea edx, [ebp - 0x184]
call fcn.005199d8
mov eax, dword [ebp - 0x184]
call fcn.0040941c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5125cd
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x512610
lea eax, [ebp - 0x188]
mov edx, 0xa
call fcn.0040471c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0040471c
ret
Function at 0x512648
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe1c
push ebx
xor eax, eax
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x1d8], eax
mov dword [ebp - 0x1dc], eax
mov dword [ebp - 0x1d4], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5127fd
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1d4]
xor eax, eax
call fcn.00402b54
mov eax, dword [ebp - 0x1d4]
lea ecx, [ebp - 4]
mov edx, 0x512814
call fcn.004094b4
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.00402f08
lea eax, [ebp - 0x1d0]
call fcn.00402ca4
call fcn.00402934
mov edx, 0x512824
lea eax, [ebp - 0x1d0]
call fcn.00404dd4
call fcn.00403398
call fcn.00402934
mov edx, 0x512838
lea eax, [ebp - 0x1d0]
call fcn.00404dd4
call fcn.00403398
call fcn.00402934
push 0x512844
lea edx, [ebp - 0x1dc]
xor eax, eax
call fcn.00402b54
push dword [ebp - 0x1dc]
push 0x512854
lea eax, [ebp - 0x1d8]
mov edx, 3
call fcn.00404a78
mov edx, dword [ebp - 0x1d8]
lea eax, [ebp - 0x1d0]
call fcn.00404dd4
call fcn.00403398
call fcn.00402934
push 0x512860
lea edx, [ebp - 0x1e4]
xor eax, eax
call fcn.00402b54
push dword [ebp - 0x1e4]
push 0x512874
lea eax, [ebp - 0x1e0]
mov edx, 3
call fcn.00404a78
mov edx, dword [ebp - 0x1e0]
lea eax, [ebp - 0x1d0]
call fcn.00404dd4
call fcn.00403398
call fcn.00402934
mov edx, 0x512888
lea eax, [ebp - 0x1d0]
call fcn.00404dd4
call fcn.00403398
call fcn.00402934
lea eax, [ebp - 0x1d0]
call fcn.00402fd0
call fcn.00402934
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404bb8
push eax
push 0
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
mov eax, dword [0x52a83c]
mov eax, dword [eax]
call fcn.0047b1e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x512804
lea eax, [ebp - 0x1e4]
mov edx, 5
call fcn.0040471c
lea eax, [ebp - 4]
call fcn.004046f8
ret
Function at 0x518910
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ecx, eax
xor eax, eax
push ebp
push 0x518b20
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x52a318]
mov eax, dword [eax]
xor edx, edx
push edx
push eax
mov eax, ecx
cdq
cmp edx, dword [esp + 4]
jne 0x518943
cmp eax, dword [esp]
pop edx
pop eax
je 0x518b0a
mov eax, dword [0x52a318]
mov dword [eax], ecx
mov eax, dword [0x52a318]
cmp dword [eax], 0
jne 0x518966
mov eax, 0x518b34
call fcn.00432c5c
mov eax, dword [0x52a430]
push eax
mov eax, dword [0x52a318]
mov eax, dword [eax]
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [0x52a430]
mov eax, dword [eax]
call fcn.004fdd74
mov eax, dword [0x52a430]
mov eax, dword [eax]
push eax
push 0
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
mov edx, dword [0x52a2d4]
mov dword [edx], eax
push 0x40
push 0x1000
push 0x1000
push 0
mov eax, dword [0x52a2d4]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_VirtualAllocEx
mov edx, dword [0x52a690]
mov dword [edx], eax
push 0x40
push 0x1000
push 0x1000
push 0
mov eax, dword [0x52a2d4]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_VirtualAllocEx
mov edx, dword [0x52a454]
mov dword [edx], eax
call fcn.00518688
push 0x40
push 0x1000
push 0x1000
push 0
mov eax, dword [0x52a2d4]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_VirtualAllocEx
mov ebx, eax
mov eax, dword [0x52a76c]
mov dword [eax + 0x34], ebx
mov eax, dword [0x52a76c]
add ebx, 0x200
mov eax, dword [0x52a970]
mov dword [eax + 0x90], ebx
call fcn.005179d4
mov eax, dword [0x52a87c]
cmp dword [eax], 0
jne 0x518a5c
mov eax, dword [0x52a318]
mov eax, dword [eax]
push eax
mov ecx, dword [0x52a430]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x51ebec]
call fcn.0051f400
mov edx, dword [0x52a87c]
mov dword [edx], eax
jmp 0x518ac4
mov eax, dword [0x52a87c]
mov eax, dword [eax]
mov eax, dword [eax + 0x334]
mov edx, dword [0x52a430]
cmp eax, dword [edx]
je 0x518ac4
mov eax, dword [0x52a87c]
mov eax, dword [eax]
mov byte [eax + 0x348], 1
mov eax, dword [0x52a87c]
mov eax, dword [eax]
mov edx, 0x3e8
call fcn.0051ec6c
mov eax, dword [0x52a318]
mov eax, dword [eax]
push eax
mov ecx, dword [0x52a430]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x51ebec]
call fcn.0051f400
mov edx, dword [0x52a87c]
mov dword [edx], eax
jmp 0x518ac4
mov eax, dword [0x52a83c]
mov eax, dword [eax]
call fcn.0047af4c
mov eax, dword [0x52aa40]
cmp byte [eax], 0
je 0x518ab8
push 0x12c
call sub.KERNEL32.DLL_Sleep
xor eax, eax
mov dword [ebp - 4], eax
push 4
lea ecx, [ebp - 4]
mov edx, 0x51f3d4
mov eax, dword [0x52a87c]
mov eax, dword [eax]
call fcn.0051f304
lea eax, [ebp - 8]
call fcn.0051a5b0
mov edx, dword [ebp - 8]
mov eax, dword [0x52aa54]
mov eax, dword [eax]
call fcn.0045b2c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x518b27
lea eax, [ebp - 8]
call fcn.004046f8
ret
Function at 0x518dd4
Capabilities:
Create thread
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
xor eax, eax
push ebp
push 0x518f48
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x52a9c4]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [0x52a768]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [0x52aa54]
mov eax, dword [eax]
mov eax, dword [eax + 0x300]
mov edx, dword [eax]
call dword [edx + 0xd8]
push 0
push 0x518f6c
call sub.user32.dll_EnumWindows
mov eax, dword [0x52a9c4]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
jge 0x518e3f
mov eax, 0x518f5c
call fcn.00432c5c
jmp 0x518f32
lea ecx, [ebp - 4]
mov eax, dword [0x52a9c4]
mov eax, dword [eax]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 4]
call fcn.00409040
call fcn.00518910
call fcn.00518d20
mov eax, dword [0x52aa54]
mov eax, dword [eax]
mov eax, dword [eax + 0x300]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0xd0]
mov eax, dword [0x52aa54]
mov eax, dword [eax]
mov ebx, dword [eax + 0x300]
mov edx, dword [0x52aa54]
mov edx, dword [edx]
mov eax, dword [ebx + 0x124]
call dword [ebx + 0x120]
mov eax, dword [0x52a4b4]
cmp dword [eax], 0
jne 0x518eb8
mov dl, 1
mov eax, dword [0x5107e8]
call fcn.0051090c
mov edx, dword [0x52a4b4]
mov dword [edx], eax
mov eax, dword [0x52aa34]
cmp dword [eax], 0
jne 0x518ed6
mov dl, 1
mov eax, dword [0x510848]
call fcn.00510c74
mov edx, dword [0x52aa34]
mov dword [edx], eax
mov eax, dword [0x52a448]
cmp dword [eax], 0
jne 0x518ef4
mov dl, 1
mov eax, dword [0x5108a8]
call fcn.00510a04
mov edx, dword [0x52a448]
mov dword [edx], eax
mov eax, dword [0x52a994]
cmp dword [eax], 0
jne 0x518f1e
mov eax, dword [0x52a70c]
push eax
push 0
push 0
push 0x516734
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
mov edx, dword [0x52a994]
mov dword [edx], eax
mov eax, dword [0x52aa54]
mov eax, dword [eax]
mov eax, dword [eax + 0x30c]
mov dl, 1
call fcn.0043481c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x518f4f
lea eax, [ebp - 4]
call fcn.004046f8
ret
Function at 0x51b2c4
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor edx, edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 1
je 0x51b2fa
cmp dword [ebp - 8], 1
jne 0x51b2fc
mov dl, 1
mov eax, edx
pop ecx
pop ecx
pop ebp
ret
Function at 0x51ec6c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
call sub.KERNEL32.DLL_GetTickCount
xor edx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
xor eax, eax
push ebp
push 0x51ecee
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x349], 0
je 0x51ecac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51ecfa
call sub.KERNEL32.DLL_GetTickCount
xor edx, edx
sub eax, dword [ebp - 0x18]
sbb edx, dword [ebp - 0x14]
push edx
push eax
mov eax, dword [ebp - 8]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x51eccf
cmp eax, dword [esp]
pop edx
pop eax
jae 0x51ecdd
jmp 0x51ecd3
pop edx
pop eax
jge 0x51ecdd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51ecfa
push 0x64
call sub.KERNEL32.DLL_Sleep
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51ec88
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x51f1e8
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, eax
mov dword [ebx + 0x124], 0x10010
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x128], eax
mov eax, dword [ebx + 0x44]
mov dword [ebx + 0x12c], eax
mov eax, dword [ebx + 0x48]
mov dword [ebx + 0x130], eax
mov eax, dword [ebx + 0x4c]
mov dword [ebx + 0x134], eax
mov dword [ebx + 0x13c], 0xff
mov eax, dword [ebx + 0x330]
call fcn.004058f0
mov edi, eax
dec edi
test edi, edi
jl 0x51f295
inc edi
xor esi, esi
lea ebp, [esi + esi*4]
mov edx, dword [ebx + 0x330]
mov edx, dword [edx + ebp*4 + 4]
mov eax, dword [ebx + 0x33c]
cmp edx, eax
je 0x51f257
test eax, eax
jne 0x51f291
lea eax, [esi + esi*4]
mov edx, dword [ebx + 0x330]
mov eax, dword [edx + eax*4 + 4]
push eax
call sub.KERNEL32.DLL_SuspendThread
lea eax, [ebx + 0x124]
push eax
mov eax, dword [ebx + 0x330]
mov eax, dword [eax + ebp*4 + 4]
push eax
call sub.KERNEL32.DLL_SetThreadContext
mov eax, dword [ebx + 0x330]
mov eax, dword [eax + ebp*4 + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
inc esi
dec edi
jne 0x51f23c
mov al, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x51f304
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x1000
push 0
mov eax, dword [ebx + 0x54]
push eax
call sub.KERNEL32.DLL_VirtualAllocEx
mov esi, eax
push 0x40
push 0x1000
mov eax, dword [ebp + 8]
add eax, 4
push eax
push 0
mov eax, dword [ebx + 0x54]
push eax
call sub.KERNEL32.DLL_VirtualAllocEx
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push 0x32
mov eax, dword [ebp - 4]
push eax
push esi
mov eax, dword [ebx + 0x54]
push eax
call sub.KERNEL32.DLL_WriteProcessMemory
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 8]
push eax
push edi
mov eax, dword [ebx + 0x54]
push eax
call sub.KERNEL32.DLL_WriteProcessMemory
lea eax, [ebp - 0x14]
push eax
push 0
push edi
push esi
push 0
push 0
mov eax, dword [ebx + 0x54]
push eax
call sub.KERNEL32.DLL_CreateRemoteThread
mov dword [ebp - 0x10], eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
push 0x8000
push 0
push esi
mov eax, dword [ebx + 0x54]
push eax
call sub.KERNEL32.DLL_VirtualFreeEx
push 0x8000
push 0
push edi
mov eax, dword [ebx + 0x54]
push eax
call sub.KERNEL32.DLL_VirtualFreeEx
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x51fa00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov eax, 0x51f5b8
call fcn.00406908
xor eax, eax
push ebp
push 0x51fbd3
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00512938
mov eax, dword [0x52a420]
xor edx, edx
mov dword [eax], edx
mov dword [eax + 4], 0x3ffc0000
call fcn.00512344
call fcn.004fe83c
call fcn.0051db8c
mov eax, 0x22b9
call fcn.00403194
inc eax
mov edx, dword [0x52a888]
mov dword [edx], eax
lea edx, [ebp - 0x18]
mov eax, dword [0x52a83c]
mov eax, dword [eax]
call fcn.0047b708
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00409548
mov edx, dword [ebp - 0x14]
mov eax, dword [0x52a66c]
call fcn.0040474c
lea edx, [ebp - 0x1c]
mov eax, 2
call fcn.00402b54
mov eax, dword [ebp - 0x1c]
mov edx, 0x51fbec
call fcn.00404b04
je 0x51fac9
mov eax, dword [0x52a8e4]
push eax
push 0
push 0
push 0x51b304
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
mov edx, dword [0x52a2c0]
mov dword [edx], eax
mov eax, dword [0x52a83c]
mov eax, dword [eax]
call fcn.0047b060
lea edx, [ebp - 0x20]
mov eax, 3
call fcn.00402b54
mov eax, dword [ebp - 0x20]
mov edx, 0x51fc10
call fcn.00404b04
jne 0x51fb02
mov eax, dword [0x52a644]
mov edx, 0x51fc24
call fcn.0040474c
jmp 0x51fb11
mov eax, dword [0x52a644]
mov edx, 0x51fc4c
call fcn.0040474c
mov ecx, dword [0x52a83c]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x50759c]
call fcn.00473898
mov ebx, eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xec]
dec eax
jne 0x51fb91
mov eax, ebx
call fcn.004038e4
mov ecx, dword [0x52aa54]
mov eax, dword [0x52a83c]
mov eax, dword [eax]
mov edx, dword [0x508de4]
call fcn.0047b078
mov ecx, dword [0x52a7c0]
mov eax, dword [0x52a83c]
mov eax, dword [eax]
mov edx, dword [0x506828]
call fcn.0047b078
mov ecx, dword [0x52a588]
mov eax, dword [0x52a83c]
mov eax, dword [eax]
mov edx, dword [0x508840]
call fcn.0047b078
mov eax, dword [0x52a83c]
mov eax, dword [eax]
call fcn.0047b0f8
jmp 0x51fbb8
xor eax, eax
push ebp
push 0x51fbae
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00512648
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51fbb8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51fbda
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.0040471c
ret
Function at 0x402700
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x401276
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x401188
xor esi, esi
mov edx, 0x401dcc
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x50], esi
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov ebx, dword [ebp + 8]
push ebx
call fcn.00402650
mov edi, eax
sub edi, 1
jo 0x40288d
mov dword [ebp - 0x5c], edi
cmp esi, edi
jg 0x402837
mov eax, dword [ebx]
test eax, eax
je 0x40278e
cmp word [eax], 1
jne 0x40278e
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
mov edi, esi
sub edi, edx
cmp edi, ecx
jb 0x402787
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov eax, edi
mov edi, dword [ebp - 0x5c]
jmp 0x402794
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebx]
mov edx, dword [ecx + 0xc]
cmp byte [edx + eax], 0
je 0x402837
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x50], 8
test ecx, ecx
mov dword [ebp - 0x48], eax
je 0x4027d5
cmp word [ecx], 1
jne 0x4027d5
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
mov edi, esi
sub edi, edx
cmp edi, eax
jb 0x4027ce
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov eax, edi
mov edi, dword [ebp - 0x5c]
jmp 0x4027db
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebx]
mov edx, dword [ecx + 0xc]
xor ecx, ecx
mov cl, byte [edx + eax]
lea edx, [ebp - 0x30]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcVarBstrFromAnsi]
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x30]
push eax
lea edx, [ebp - 0x40]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x30]
push eax
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
mov eax, 1
add esp, 0xc
add eax, esi
jo 0x40288d
mov esi, eax
jmp 0x40275f
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
push 0x402877
jmp 0x40286d
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x4028a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x401276
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401198
mov edi, dword [sym.imp.MSVBVM60.DLL_VarPtr]
xor esi, esi
push 0x406114
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x14], esi
call edi
mov dword [0x406154], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x18]
mov ecx, dword [eax]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
je 0x40292b
cmp word [ecx], 1
jne 0x40292b
mov esi, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
neg esi
cmp esi, eax
jb 0x402927
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x18]
mov eax, esi
jmp 0x402934
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0xc]
add ecx, eax
push ecx
call edi
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
lea edx, [ebp - 0x18]
push edx
mov esi, eax
call ebx
mov eax, dword [0x406154]
push 0x40
push esi
push eax
call fcn.00401a1c
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
cmp word [0x406114], 0x5a4d
jne 0x402a77
push 0x406018
call edi
mov ecx, dword [ebp + 8]
mov dword [0x406110], eax
lea eax, [ebp - 0x18]
mov edx, dword [ecx]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4029b5
cmp word [ecx], 1
jne 0x4029b5
mov esi, dword [0x406150]
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
sub esi, edx
cmp esi, eax
jb 0x4029b1
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x18]
mov eax, esi
jmp 0x4029be
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0xc]
add ecx, eax
push ecx
call edi
lea edx, [ebp - 0x18]
mov esi, eax
push edx
call ebx
mov eax, dword [0x406110]
push 0xf8
push esi
push eax
call fcn.00401a1c
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
cmp dword [0x406018], 0x4550
jne 0x402a77
cmp word [0x40601c], 0x8664
jne 0x402a70
mov ecx, 0x80020004
mov eax, 0xa
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x30], ecx
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x60], 0x401dd4
mov dword [ebp - 0x68], 8
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
lea ecx, [ebp - 0x58]
lea edx, [ebp - 0x48]
push ecx
lea eax, [ebp - 0x38]
push edx
push eax
lea ecx, [ebp - 0x28]
push 0
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcMsgBox]
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x38]
push eax
lea edx, [ebp - 0x28]
push ecx
push edx
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x14
push 0x402aa5
jmp 0x402aa4
mov dword [ebp - 0x14], 0xffffffff
push 0x402aa5
jmp 0x402aa4
ret