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

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [section..cdata]
push edi
mov dword [ebp + 0x2a4], eax
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0xc0000409
lea eax, [ebp + 0x2ac]
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov eax, dword [eax]
mov dword [ebp + 0x90], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp + 0x9c], eax
push ss
pop dword [ebp + 0xa0]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.300063f9
pop edi
add ebp, 0x2a8
leave
ret
cmp ecx, dword [section..cdata]
jne 0x300062d1
ret
Function at 0x40699c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00406988
add esp, 0x208
pop ebx
ret

Function at 0x408eb4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x408eed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00404dd4
jmp 0x408ef6
mov eax, ebx
mov edx, esi
call fcn.00404c98
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408f00
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x408f22
movzx eax, word [esp]
jmp 0x408f24
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4096ac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4097d1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004094c0
mov esi, eax
mov eax, dword [0x412c30]
cmp byte [eax], 0
je 0x409779
mov eax, dword [0x412b6c]
call fcn.0040317c
call fcn.00402f6c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x409688]
call fcn.00405ad8
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4097ec
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4097b5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x412b4c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x415b48]
call fcn.00405b90
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4097d8
lea eax, [ebp - 4]
mov edx, dword [0x409688]
call fcn.00405ae4
ret
Function at 0x40e180
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0040e134
test al, al
jne 0x40e1a1
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x40e1ed
xor eax, eax
push ebp
push 0x40e1dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404d24
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e1e4
lea eax, [ebp - 0xc]
call fcn.0040e170
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e42c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40e434
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x40e521
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0040b9fc
mov edx, dword [ebp - 8]
mov ecx, 0x40e53c
xor eax, eax
call fcn.0040e310
push 0
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x40e4ef
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x40e44e
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x36
call fcn.0040df38
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00407ee8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0040bf84
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x68
call fcn.0040df08
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x406d5c]
call fcn.00409824
call fcn.00403f88
jmp 0x40e44e
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00404c98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e528
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404c90
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404c90
ret

Function at 0x40e550
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x412c80]
cmp dword [eax], 2
jne 0x40e5b8
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x40e573
xor eax, eax
jmp 0x40e5c7
lea eax, [esp + 8]
push eax
push 0x40e5cc
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x40e5b8
xor eax, eax
jmp 0x40e5c7
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret
Function at 0x40e5f4
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x40e64e
inc esi
xor edi, edi
cmp edi, 1
jne 0x40e61a
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep_1
jmp 0x40e628
cmp edi, 1
jle 0x40e628
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep_1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040e180
test eax, eax
jne 0x40e64e
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x40e64e
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x40e64e
inc edi
dec esi
jne 0x40e60a
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x40e658
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40e67c
mov eax, dword [ebp - 4]
jmp 0x40e67f
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret

Function at 0x40e684
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x40e6d1
xor ebx, ebx
jmp 0x40e6c6
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.00407bdc
test eax, eax
jne 0x40e6c5
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x40e77b
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x40e6a7
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x40e6dd
je 0x40e6e6
jmp 0x40e6ef
call fcn.0040bcb4
mov esi, eax
jmp 0x40e6f1
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x40e6f1
xor esi, esi
test si, si
je 0x40e77b
xor ebx, ebx
jmp 0x40e717
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x40e716
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x40e77b
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x40e6fe
xor ebx, ebx
jmp 0x40e770
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov edx, esi
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x40e76f
mov eax, esi
and ax, 0x3ff
cmp ax, 4
jne 0x40e764
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.0040e658
push eax
mov eax, esi
call fcn.0040e658
pop edx
cmp edx, eax
jne 0x40e76f
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x40e77b
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x40e726
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x40eb68
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ec3d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40ec58
push ebx
push 0x40ec68
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040513c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403250
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x40ebe8
mov al, 0x6a
call fcn.0040e788
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040eb3c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40ebf1
call fcn.0040eb3c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ec44
lea eax, [ebp - 4]
call fcn.00404c88
ret

Function at 0x40ed58
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ee23
jmp 0x40ee17
cmp dword [esi + 0x10], 0x1000
jne 0x40ee03
test byte [esi + 0x15], 1
jne 0x40ee03
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x40edb4
cmp ebp, 2
je 0x40edb4
cmp ebp, 0x10
je 0x40edb4
cmp ebp, 0x20
jne 0x40edd0
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40edd0
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x40ede1
mov eax, dword [esi]
add eax, ebx
call fcn.0040ed50
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x40edd4
cmp byte [esp + 4], 0
je 0x40ee03
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ee23
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x40ed89
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x441e10
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x401f26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], 0x401848
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x2c], edi
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
push edi
call dword [sym.imp.MSVBVM60.DLL___vbaCyI2]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
mov eax, dword [0x4693e4]
push eax
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaUbound]
mov ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
mov dword [ebp - 0x3c], eax
xor ebx, ebx
mov ecx, dword [0x4693e4]
cmp bx, word [ebp - 0x3c]
jg 0x441fa7
cmp ecx, edi
je 0x441eb9
cmp word [ecx], 1
jne 0x441eb9
movsx esi, bx
sub esi, dword [ecx + 0x14]
cmp esi, dword [ecx + 0x10]
jb 0x441eab
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [0x4693e4]
lea eax, [esi*8]
sub eax, esi
shl eax, 2
jmp 0x441ec5
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [0x4693e4]
mov edx, dword [ecx + 0xc]
add edx, eax
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
cmp eax, dword [edx + 4]
jg 0x441ee2
jl 0x441edd
mov eax, dword [esi]
cmp eax, dword [edx]
jae 0x441ee2
mov edi, 1
test ecx, ecx
je 0x441f14
cmp word [ecx], 1
jne 0x441f14
movsx esi, bx
sub esi, dword [ecx + 0x14]
cmp esi, dword [ecx + 0x10]
jb 0x441f03
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [0x4693e4]
lea eax, [esi*8]
sub eax, esi
shl eax, 2
mov esi, dword [ebp + 8]
jmp 0x441f20
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [0x4693e4]
mov edx, dword [ecx + 0xc]
lea eax, [edx + eax + 8]
mov edx, dword [esi + 4]
cmp edx, dword [eax + 4]
jl 0x441f3e
jg 0x441f37
mov edx, dword [esi]
cmp edx, dword [eax]
jbe 0x441f3e
mov eax, 1
jmp 0x441f40
xor eax, eax
or edi, eax
je 0x441f5b
mov eax, 1
add ax, bx
jo 0x441ff8
mov ebx, eax
xor edi, edi
jmp 0x441e80
test ecx, ecx
je 0x441f8a
cmp word [ecx], 1
jne 0x441f8a
movsx esi, bx
sub esi, dword [ecx + 0x14]
cmp esi, dword [ecx + 0x10]
jb 0x441f7c
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [0x4693e4]
lea eax, [esi*8]
sub eax, esi
shl eax, 2
jmp 0x441f96
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [0x4693e4]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ecx + eax + 0x14]
mov dword [ebp - 0x24], edx
mov eax, dword [ecx + eax + 0x18]
mov dword [ebp - 0x20], eax
call dword [sym.imp.MSVBVM60.DLL_rtcErrObj]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov edx, dword [eax]
push eax
call dword [edx + 0x48]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
push 0x441fdf
jmp 0x441fde
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
Function at 0x458a70
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x401f26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401bf0
sub esp, 0x10
mov ecx, 0x400c
mov ebx, esp
mov eax, 0x469204
sub esp, 0x10
mov esi, 8
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x34]
mov edx, 0x40b674
xor edi, edi
mov dword [ebx + 4], ecx
mov ecx, esp
push 2
push 0x40b678
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], edi
mov word [0x46919a], di
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x44]
mov dword [ecx], esi
mov dword [ecx + 4], eax
mov eax, dword [0x46902c]
push eax
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x3c]
mov dword [ecx + 0xc], edx
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaLateMemCallLd]
add esp, 0x30
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
cmp word [0x469114], di
jne 0x458b9f
mov edx, dword [0x469110]
push edx
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaUbound]
mov ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
mov ecx, dword [0x469110]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x64], eax
cmp di, word [ebp - 0x64]
jg 0x458b9f
test ecx, ecx
je 0x458b75
cmp word [ecx], 1
jne 0x458b75
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
movsx esi, di
sub esi, edx
cmp esi, eax
jb 0x458b6c
call ebx
mov ecx, dword [0x469110]
lea eax, [esi*4]
jmp 0x458b7d
call ebx
mov ecx, dword [0x469110]
mov edx, dword [ecx + 0xc]
mov esi, dword [ebp - 0x14]
cmp dword [edx + eax], esi
jne 0x458b91
mov word [0x46919a], 0xffff
mov eax, 1
add ax, di
jo 0x458bc2
mov edi, eax
jmp 0x458b45
push 0x458bb1
jmp 0x458bb0
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x45de00
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x401f26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], 0x401d30
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov ax, word [0x4690bc]
mov word [ebp - 0x34], ax
xor edi, edi
mov ecx, dword [0x4690b8]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
cmp di, word [ebp - 0x34]
jg 0x45df60
cmp ecx, esi
je 0x45de99
cmp word [ecx], 1
jne 0x45de99
movsx esi, di
sub esi, dword [ecx + 0x14]
cmp esi, dword [ecx + 0x10]
jb 0x45de8a
call ebx
mov ecx, dword [0x4690b8]
lea eax, [esi + esi*2]
lea eax, [eax + eax*8]
shl eax, 1
sub eax, esi
shl eax, 4
jmp 0x45dea1
call ebx
mov ecx, dword [0x4690b8]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ecx + eax + 4]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
test eax, eax
mov ecx, dword [0x4690b8]
jne 0x45defe
test ecx, ecx
je 0x45dee9
cmp word [ecx], 1
jne 0x45dee9
movsx esi, di
sub esi, dword [ecx + 0x14]
cmp esi, dword [ecx + 0x10]
jb 0x45deda
call ebx
mov ecx, dword [0x4690b8]
lea eax, [esi + esi*2]
lea eax, [eax + eax*8]
shl eax, 1
sub eax, esi
shl eax, 4
jmp 0x45def1
call ebx
mov ecx, dword [0x4690b8]
mov edx, dword [ecx + 0xc]
mov si, word [ebp + 0xc]
cmp word [edx + eax], si
je 0x45df15
mov eax, 1
add ax, di
jo 0x45df95
mov edi, eax
xor esi, esi
jmp 0x45de63
test ecx, ecx
je 0x45df41
cmp word [ecx], 1
jne 0x45df41
movsx esi, di
sub esi, dword [ecx + 0x14]
cmp esi, dword [ecx + 0x10]
jb 0x45df32
call ebx
mov ecx, dword [0x4690b8]
lea eax, [esi + esi*2]
lea eax, [eax + eax*8]
shl eax, 1
sub eax, esi
shl eax, 4
jmp 0x45df49
call ebx
mov ecx, dword [0x4690b8]
mov ecx, dword [ecx + 0xc]
add ecx, eax
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0x4080bc
call dword [sym.imp.MSVBVM60.DLL___vbaRecAssign]
jmp 0x45df69
mov dword [ebp - 0x20], 1
jmp 0x45df69
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
push 0x45df7e
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
Function at 0x4010a0
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 1
test eax, eax
je 0x4010c3
push 0x80
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ebp
ret

Function at 0x4010d0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404780
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x3d8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], 0x10
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x3e4]
push ecx
call fcn.00402a30
add esp, 8
lea edx, [ebp - 0x3e4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax + 1]
cmp ecx, 0x3a
jne 0x40115b
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movsx edx, byte [ecx]
test edx, edx
je 0x40115b
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x40115b
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4011cd
mov edx, dword [ebp - 0x14]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x4011c2
mov ecx, dword [ebp - 0x14]
mov byte [ecx], 0
lea edx, [ebp - 0x3e4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4011ad
push 0
lea eax, [ebp - 0x3e4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4011ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4011ab
xor al, al
jmp 0x4011ed
jmp 0x4011bc
mov ecx, dword [ebp - 0x18]
and ecx, 0x10
cmp ecx, 0x10
je 0x4011bc
xor al, al
jmp 0x4011ed
mov edx, dword [ebp - 0x14]
mov byte [edx], 0x5c
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x40115b
jmp 0x4011e4
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4017b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
jb 0x4017eb
mov eax, dword [ebp + 0xc]
push eax
call fcn.00402ae0
add esp, 4
and eax, 0xff
test eax, eax
jne 0x4017f9
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [ebp + 0xc]
push eax
call fcn.00402ef0
add esp, 4
push str._DaeOD
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004023c0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401839
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
push 0x5c
mov eax, dword [ebp - 4]
push eax
call fcn.00402380
add esp, 8
mov byte [eax], 0
mov esp, ebp
pop ebp
ret

Function at 0x401930
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
jmp 0x401948
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x100
jge 0x4019a2
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 0
jmp 0x401969
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jge 0x401993
mov eax, dword [ebp - 4]
and eax, 1
test eax, eax
je 0x401989
mov ecx, dword [ebp - 4]
shr ecx, 1
xor ecx, 0xedb88320
mov dword [ebp - 4], ecx
jmp 0x401991
mov edx, dword [ebp - 4]
shr edx, 1
mov dword [ebp - 4], edx
jmp 0x401960
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [eax*4 + 0x42ecc8], ecx
jmp 0x40193f
mov esp, ebp
pop ebp
ret