joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443020
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4758e8
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48a2c4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [esp + 0x24]
xor ebp, ebp
cmp eax, ebp
jne 0x443064
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0x28], ebp
je 0x44304e
xor ebx, ebx
mov dword [esp + 0x24], ebx
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocString
push eax
mov dword [esp + 0x38], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x443109
call fcn.0040d150
cmp eax, ebp
jne 0x4430f3
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.004461da
mov esi, eax
add esp, 4
test esi, esi
je 0x4430e8
push edi
push esi
lea ecx, [esp + 0x2c]
call fcn.00442410
test eax, eax
jne 0x4430df
push edi
push esi
mov byte [esi + edi], al
call fcn.00442290
mov ecx, dword [esp + 0x30]
push ecx
push edi
push esi
call fcn.00442fe0
add esp, 0x14
mov ebp, eax
push esi
call fcn.00448106
add esp, 4
test ebx, ebx
je 0x4430f3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ebx, eax
mov dword [esp + 0x24], ebx
jmp 0x443099

Function at 0x444360
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x475998
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x48a2c4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CSplitWindow.0
cmp dword [esi + 0x30], 0
lea edi, [esi + 0x30]
mov dword [esp + 0x18], 0
je 0x4443b2
call fcn.0041acc0
test eax, eax
je 0x4443b2
mov ecx, dword [eax]
mov edx, dword [ecx + 0x58]
push edi
push eax
call edx
mov esi, dword [esi + 0x14]
mov dword [esp + 0x18], 0xffffffff
test esi, esi
je 0x4443c7
push esi
call fcn.00445c7c
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x444940
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push eax
mov dword [esi + 0x24], 0
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x444964
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop esi
ret
Function at 0x444974
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, ecx
test eax, eax
jne 0x4449b1
cmp dword [esi + 0x24], eax
je 0x44498c
mov eax, dword [esi + 4]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov edx, dword [esi + 4]
push 0
push 0x1388
push 1
push edx
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
pop esi
ret 0x10
cmp eax, 1
jne 0x4449cd
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 0x10
Function at 0x444ef0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x475a73
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x48a2c4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
mov dword [esi], vtable.CTTipExamin.0
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov ecx, dword [0x488014]
mov dword [esp + 0x18], edi
mov dword [esi + 0x38], ecx
mov byte [esp + 0x18], 1
mov dword [esi + 0x24], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x3c], 0xa
mov dword [esi + 0x40], 0x258
mov dword [esi + 0x44], 0x190
mov dword [esi + 0x48], 0xe0ffff
call fcn.00414500
cmp eax, edi
je 0x444f8b
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x84]
call eax
jmp 0x444f8d
xor eax, eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x4454d0
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
sub esp, 0x20c
mov eax, dword [0x48a2c4]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
push esi
mov esi, ecx
test eax, eax
jne 0x44550a
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00447157
add esp, 0x20c
ret 4
push edi
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x478264
push 0x104
lea ecx, [esp + 0x10]
push ecx
call fcn.00412670
push str.deepscanBAPI.dll
push 0x104
lea edx, [esp + 0x10]
push edx
call fcn.00412670
lea eax, [esp + 8]
push eax
call fcn.004131a0
add esp, 4
test eax, eax
jne 0x44557f
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x445590
push 1
lea edx, [esp + 0xc]
push 0x488f08
push edx
call fcn.00414330
add esp, 0xc
xor eax, eax
jmp 0x445636
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x445597
xor eax, eax
jmp 0x445636
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebp
push str.InitEngine
push edi
mov ebp, 1
call ebx
mov dword [esi + 4], eax
test eax, eax
jne 0x4455b5
xor ebp, ebp
push str.SetupInstall
push edi
call ebx
mov dword [esi + 8], eax
test eax, eax
jne 0x4455c6
xor ebp, ebp
push str.DsGetFileLockType
push edi
call ebx
mov dword [esi + 0xc], eax
test eax, eax
jne 0x4455d7
xor ebp, ebp
push str.DsFileUnlock
push edi
call ebx
mov dword [esi + 0x10], eax
test eax, eax
jne 0x4455e8
xor ebp, ebp
push str.DsSetTargetAccess
push edi
call ebx
xor ebx, ebx
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x44560f
cmp ebp, ebx
je 0x44560f
mov ecx, dword [esi + 4]
call ecx
test eax, eax
je 0x44560f
mov edx, dword [esi + 8]
call edx
test eax, eax
jne 0x445629
push edi
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x445634
mov eax, 1
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x210]
pop edi
pop esi
xor ecx, esp
call fcn.00447157
add esp, 0x20c
ret 4
Function at 0x445d33
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x48beb0], 0
push esi
jne 0x445ca1
call fcn.00445bb5
test eax, eax
je 0x445ce4
mov eax, dword [0x48beb0]
cmp eax, 1
jne 0x445cc2
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x445ce4
pop esi
ret
push eax
call dword [0x48beb8]
test eax, eax
jne 0x445d2c
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x445ce8
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x48beb0]
call dword [0x48beb8]
mov edi, eax
test edi, edi
je 0x445d0d
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x445d29
mov edi, esi
add esi, 0xff0
push edi
push dword [0x48beb0]
call dword [0x48beb4]
add edi, 0x10
cmp edi, esi
jb 0x445d15
mov eax, edi
pop edi
pop esi
ret
jmp 0x445c8e

Function at 0x447157
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48a2c4]
jne 0x447161
repz ret
jmp fcn.0044a8ce

Function at 0x46361b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0044c5f3
and dword [ebp - 4], 0
cmp dword [0x48ca34], 0
mov ebx, eax
jne 0x4636cc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x46377d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x46377d
push eax
call fcn.0044c581
mov dword [esp], 0x47f3b8
push edi
mov dword [0x48ca34], eax
call esi
push eax
call fcn.0044c581
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x48ca38], eax
call esi
push eax
call fcn.0044c581
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x48ca3c], eax
call esi
push eax
call fcn.0044c581
pop ecx
mov dword [0x48ca44], eax
test eax, eax
je 0x4636cc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044c581
pop ecx
mov dword [0x48ca40], eax
mov eax, dword [0x48ca40]
cmp eax, ebx
je 0x463724
cmp dword [0x48ca44], ebx
je 0x463724
push eax
call fcn.0044c5fc
push dword [0x48ca44]
mov esi, eax
call fcn.0044c5fc
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x463724
test edi, edi
je 0x463724
call esi
test eax, eax
je 0x46371b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x46371b
test byte [ebp - 0xc], 1
jne 0x463724
or dword [ebp + 0x10], 0x200000
jmp 0x46375d
mov eax, dword [0x48ca38]
cmp eax, ebx
je 0x46375d
push eax
call fcn.0044c5fc
pop ecx
test eax, eax
je 0x46375d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x46375d
mov eax, dword [0x48ca3c]
cmp eax, ebx
je 0x46375d
push eax
call fcn.0044c5fc
pop ecx
test eax, eax
je 0x46375d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48ca34]
call fcn.0044c5fc
pop ecx
test eax, eax
je 0x46377d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x46377f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401a7e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ad14c]
jne 0x401a88
repz ret
jmp fcn.004025b5

Function at 0x40b18e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ad14c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004043e4
and dword [ebp - 0x14], 0
cmp dword [0x4af7d8], 0
mov dword [ebp - 0x18], eax
jne 0x40b241
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40b2e9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40b2e9
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4af7d8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4af7dc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4af7e0], eax
call edi
push eax
call esi
mov dword [0x4af7e8], eax
test eax, eax
je 0x40b241
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4af7e4], eax
mov eax, dword [0x4af7e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40b29a
cmp dword [0x4af7e8], ecx
je 0x40b29a
push eax
call esi
push dword [0x4af7e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40b29a
test ebx, ebx
je 0x40b29a
call edi
test eax, eax
je 0x40b291
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40b291
test byte [ebp - 8], 1
jne 0x40b29a
or dword [ebp + 0x10], 0x200000
jmp 0x40b2cd
mov eax, dword [0x4af7dc]
cmp eax, dword [ebp - 0x18]
je 0x40b2cd
push eax
call esi
test eax, eax
je 0x40b2cd
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b2cd
mov eax, dword [0x4af7e0]
cmp eax, dword [ebp - 0x18]
je 0x40b2cd
push eax
call esi
test eax, eax
je 0x40b2cd
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4af7d8]
call esi
test eax, eax
je 0x40b2e9
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40b2eb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401a7e
leave
ret
Function at 0x4a6230
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x4ad14c]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push edi
mov dword [esp + 0xc], eax
cmp dword [ebp + 0xc], esi
jle 0x4a630b
mov edi, dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [ebp + 0xc], 0x2d
jne 0x4a6298
push 0
push str.lavufixajedapinenaliketuxuzikow_yopipocefibitonehaduyufatavub_jizosuxamuludofu_zamovipezafamid_muhayaju
call edi
push str.xicerijanudivudo
push str.xidicukapixifoga
push str.tidawudawujerusenohohicazoguvikehetadafeviwocubivicasadiyoz
push str.beziwuwiyufopidisaxewodozunabuvizikupajidagakiwubiwahixukecuzidufowilayobayaxihelazepixikuhejim
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
call fcn.004a6180
mov ecx, dword [esp + 0xc]
xor byte [ecx + esi], al
cmp dword [ebp + 0xc], 0xf
jne 0x4a6301
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor eax, eax
push eax
lea edx, [esp + 0x24]
push edx
push 0x4ab028
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov word [esp + 0x2a], ax
xor ecx, ecx
lea eax, [esp + 0x1c]
push eax
push ecx
push ecx
mov word [esp + 0x28], cx
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0x4ab02c
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x4a626b
cmp dword [ebp + 0xc], 0x2d
jne 0x4a6325
mov dword [0x4b08d0], 0xa62e7790
mov dword [0x4b08d4], 0xffffffff
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401a7e
mov esp, ebp
pop ebp
ret
Function at 0x4a66f0
Capabilities:
Access the windows event log
Manipulate console buffer
Set file attributes

Disassembly:
sub esp, 0x14
mov eax, dword [0x4b08c4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
push esi
mov dword [esp + 0x10], 0x1540b5
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xcc1
jne 0x4a672c
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov eax, dword [0x4b08c4]
mov dword [0x4b052c], 0x8e468c60
cmp eax, 0x3dc
jne 0x4a678b
push 0
push 0x4ab1a8
call ebx
xor eax, eax
lea edx, [esp + 0x18]
push edx
push eax
push eax
push eax
push eax
mov dword [esp + 0x24], eax
call ebp
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
push esi
push 0
push 0
push edi
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_AccessCheckByType]
push str.guyojolegulob
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
mov eax, dword [0x4b08c4]
dec dword [esp + 0x14]
jne 0x4a6718
mov edi, dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
xor esi, esi
mov ebp, 0xec58acac
or ebx, 0xffffffff
cmp eax, 0x997
jne 0x4a67b3
push 0
push 0
call edi
mov eax, dword [0x4b08c4]
cmp esi, 0x846373
jne 0x4a67ca
mov eax, dword [0x4aead0]
add eax, 0xa231
mov dword [0x4b08c4], eax
cmp eax, 0x141
jne 0x4a67dd
mov dword [0x4afd18], ebp
mov dword [0x4afd1c], ebx
inc esi
cmp esi, 0x123c962
jl 0x4a67a1
call fcn.004a6380
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 0x10
Function at 0x40281c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a004]
jne 0x402826
repz ret
jmp fcn.00402a2b

Function at 0x40488b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004037d3
and dword [ebp - 0x14], 0
cmp dword [0x44b84c], 0
mov dword [ebp - 0x18], eax
jne 0x40493e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4049e6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4049e6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44b84c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44b850], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44b854], eax
call edi
push eax
call esi
mov dword [0x44b85c], eax
test eax, eax
je 0x40493e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44b858], eax
mov eax, dword [0x44b858]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404997
cmp dword [0x44b85c], ecx
je 0x404997
push eax
call esi
push dword [0x44b85c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404997
test ebx, ebx
je 0x404997
call edi
test eax, eax
je 0x40498e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40498e
test byte [ebp - 8], 1
jne 0x404997
or dword [ebp + 0x10], 0x200000
jmp 0x4049ca
mov eax, dword [0x44b850]
cmp eax, dword [ebp - 0x18]
je 0x4049ca
push eax
call esi
test eax, eax
je 0x4049ca
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4049ca
mov eax, dword [0x44b854]
cmp eax, dword [ebp - 0x18]
je 0x4049ca
push eax
call esi
test eax, eax
je 0x4049ca
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44b84c]
call esi
test eax, eax
je 0x4049e6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4049e8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040281c
leave
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x412b40
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor edx, edx
mov dword [ebp - 4], edx
xor edx, edx
push ebp
push 0x412bd7
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, eax
mov dl, 1
mov eax, dword [sym.imp.adortl60.bpl__Adodb_TADOQuery_]
call sub.adortl60.bpl__Adodb_TADOQuery__bctr_qqrp18Classes_TComponent
mov ebx, eax
call sub.VEDatasets.bpl__Vedataset_Connection_qqrv
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x268]
lea eax, [ebp - 4]
push eax
call sub.VEDatasets.bpl__Vedataset_FirmaNo_qqrv
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
call sub.VEDatasets.bpl__Vedataset_DonemNo_qqrv
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0x14]
mov ecx, 1
mov eax, 0x412bf0
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
mov eax, dword [ebp - 4]
push eax
mov eax, ebx
call sub.adortl60.bpl__Adodb_TADOQuery_GetSQL_qqrv
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_Open_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412bde
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret

Function at 0x41f998
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41f9f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__Sysutils_FileExists_qqrx17System_AnsiString
test al, al
je 0x41f9e2
push 3
push 0x41fa04
push 0x41fa04
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
push 0x41fa08
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f9ff
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret
Function at 0x40130f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x416008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, edx
mov dword [ebp - 0x214], eax
push edi
mov edi, dword [0x417470]
test esi, esi
je 0x401432
xor eax, eax
cmp word [esi], ax
je 0x401432
push 4
push 0x414084
push esi
call fcn.00405194
add esp, 0xc
test eax, eax
jne 0x401363
add esi, 8
push 2
push 0x414090
push esi
call fcn.00405194
add esp, 0xc
test eax, eax
jne 0x40137a
add esi, 4
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00402fb0
push 0x104
push esi
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0040529c
lea eax, [ebp - 0x210]
push 0x2e
push eax
call fcn.00402d2b
mov esi, eax
add esp, 0x24
test esi, esi
je 0x4013eb
xor eax, eax
mov word [esi], ax
inc esi
add esi, 1
je 0x4013eb
push str.HTML
push esi
call fcn.00405001
pop ecx
pop ecx
test eax, eax
je 0x4013eb
push 0x4140a4
push esi
call fcn.00405001
pop ecx
pop ecx
test eax, eax
je 0x4013eb
push esi
jmp 0x4013ed
push 0x17
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x401432
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401432
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp - 0x214]
mov dword [ecx], eax
test eax, eax
je 0x401432
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebx], eax
test eax, eax
je 0x401432
mov al, 1
jmp 0x401434
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401a11
leave
ret

Function at 0x404da7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404de6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404de6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404de6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404de6
cmp dword [ecx + 0x74], 0xe
jbe 0x404de6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret