joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4442a0
Capabilities:
Hide graphical window

Disassembly:
push 0x5c
mov eax, 0x4b74df
call fcn.0047057f
mov edi, ecx
mov dword [ebp - 0x58], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x10], eax
mov dword [eax + 0x4a8], ebx
cmp dword [edi + 4], ebx
jne 0x444323
lea eax, [ebp - 0x68]
push eax
call fcn.00443f02
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0x68]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40000000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x24]
mov ecx, eax
call sym.BearSCInstall.exe_public:_struct_HWND______thiscall_DuiLib::CPaintManagerUI::GetPaintWindow_void_const
mov edi, dword [ebp - 0x58]
mov ecx, edi
push eax
call sym.BearSCInstall.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____char_const___unsigned_long_int__unsigned_long_int__struct_tagRECT__struct_HMENU____
mov esi, dword [edi + 0x10]
mov ecx, esi
call sym.BearSCInstall.exe_public:_int___thiscall_DuiLib::CLabelUI::GetFont_void_const
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov ecx, eax
call sym.BearSCInstall.exe_public:_struct_DuiLib::tagTFontInfo____thiscall_DuiLib::CPaintManagerUI::GetFontInfo_int_
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, eax
mov dword [ebp - 4], ebx
call sym.BearSCInstall.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
lea ecx, [ebp - 0x54]
mov bl, al
call sym.BearSCInstall.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov esi, 0x498
test bl, bl
je 0x444358
mov eax, dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, esi
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.00470529
ret 4
Function at 0x444395
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5073a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call sym.BearSCInstall.exe_public_virtual:_void___thiscall_DuiLib::CControlUI::Move_struct_tagSIZE__bool_
mov ecx, dword [esi + 0x4b0]
test ecx, ecx
je 0x444411
lea eax, [ebp - 0x14]
push eax
call fcn.00443f02
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [esi + 0x4b0]
test eax, eax
je 0x4443ed
push 0
call sym.BearSCInstall.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x444411
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
call sym.BearSCInstall.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00470058
leave
ret 0xc

Function at 0x4444fa
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5073a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0x18]
lea esi, [ebp + 8]
mov ebx, ecx
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call sym.BearSCInstall.exe_public_virtual:_void___thiscall_DuiLib::CControlUI::SetPos_struct_tagRECT__bool_
mov ecx, dword [ebx + 0x4b0]
test ecx, ecx
je 0x44457e
lea eax, [ebp - 0x14]
push eax
call fcn.00443f02
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [ebx + 0x4b0]
test eax, eax
je 0x44455a
push 0
call sym.BearSCInstall.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x44457e
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
call sym.BearSCInstall.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00470058
leave
ret 0x14
Function at 0x44e5a2
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x44e5b0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
shr eax, 4
and al, 1
pop ebp
ret

Function at 0x44e638
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x44e646
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x4503d9
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4503ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4503ff
xor al, al
jmp 0x450413
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x4536a5
Capabilities:
Create directory

Disassembly:
push 0x38
mov eax, 0x4b8798
call fcn.0047054b
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4536c5
mov al, 1
jmp 0x45370c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4536d6
xor al, al
jmp 0x45370c
lea ecx, [ebp - 0x44]
call fcn.00453f96
lea ecx, [ebp - 0x1c]
call fcn.00451836
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.0045412a
test al, al
je 0x453701
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.00470627
pop ecx
mov al, bl
call fcn.00470514
ret

Function at 0x453933
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5073a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [edi]
and dword [edi + 4], 0
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x210]
push eax
call fcn.00451afe
lea eax, [esi - 1]
mov ecx, 0x103
cmp ecx, eax
mov ecx, dword [ebp - 4]
pop edi
sbb al, al
xor ecx, ebp
inc al
pop esi
call fcn.00470058
leave
ret

Function at 0x453b65
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5073a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [edi]
and dword [edi + 4], 0
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x210]
push eax
call fcn.00451afe
lea eax, [esi - 1]
mov ecx, 0x103
cmp ecx, eax
mov ecx, dword [ebp - 4]
pop edi
sbb al, al
xor ecx, ebp
inc al
pop esi
call fcn.00470058
leave
ret
Function at 0x453e1d
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x4546ad
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
pop ebp
ret

Function at 0x4a38e0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a37f4

Function at 0x4a5b23
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a55b3
Function at 0x4b3a90
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4b3ab0
push edi
mov edi, esi
mov ecx, 0x82
rep stosd dword es:[edi], eax
pop edi
pop esi
ret
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b3ab5
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x4b3ae1
cmp word [esi + ecx*2 - 2], 0x5c
je 0x4b3ae1
cmp ecx, 0x102
jge 0x4b3ae1
mov eax, 0x5c
mov word [esi + ecx*2], ax
mov eax, 1
pop esi
ret

Function at 0x4b3d50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5073a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov bl, dl
push 0
push eax
mov edi, ecx
call fcn.004722a0
lea edx, [ebp - 0x108]
add esp, 0xc
mov eax, edx
mov esi, 0x104
sub edi, eax
nop
lea eax, [esi + 0x7ffffefa]
test eax, eax
je 0x4b3da9
mov al, byte [edi + edx]
test al, al
je 0x4b3da9
mov byte [edx], al
inc edx
sub esi, 1
jne 0x4b3d90
lea eax, [edx - 1]
test esi, esi
push str.bss.exe
cmovne eax, edx
lea ecx, [ebp - 0x108]
mov byte [eax], 0
call fcn.00401760
pop edi
pop esi
test bl, bl
lea eax, [ebp - 0x108]
pop ebx
push 5
push 0
je 0x4b3de2
push str._install
push eax
push 0x4e003c
jmp 0x4b3dea
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.00470058
mov esp, ebp
pop ebp
ret
Function at 0x4b4390
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
mov eax, dword [0x5073a8]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
push edi
push 0x124
lea eax, [esp + 0x18]
push 0
push eax
call fcn.004722a0
add esp, 0xc
mov dword [esp + 0x10], 0x128
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4b43f1
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.00470058
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x4b44d8
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x4b44d1
nop dword [eax]
push 0x104
lea eax, [esp + 0x13c]
push 0
push eax
call fcn.004722a0
lea edi, [esp + 0x40]
add esp, 0xc
lea ecx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x4b4430
sub edi, ecx
xor esi, esi
test edi, edi
jle 0x4b445a
nop
movsx eax, byte [esp + esi + 0x34]
push eax
call fcn.0047d6f7
mov byte [esp + esi + 0x13c], al
add esp, 4
inc esi
cmp esi, edi
jl 0x4b4440
mov ecx, 0x4dff28
lea eax, [esp + 0x138]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4b4486
test dl, dl
je 0x4b4482
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4b4486
add eax, 2
add ecx, 2
test dl, dl
jne 0x4b4466
xor eax, eax
jmp 0x4b448b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4b44bd
push dword [esp + 0x18]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4b44bd
push 2
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x4b4410
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x244]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00470058
mov esp, ebp
pop ebp
ret
Function at 0x4b4b50
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, ecx
push edi
push 0x4dfeb4
push 0x69
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4b4c26
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4b4c26
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 0
mov dword [ebp - 8], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [ebp - 8], 0
mov esi, eax
mov dword [ebp - 0xc], esi
je 0x4b4c2f
test esi, esi
je 0x4b4c2f
xor eax, eax
mov ecx, 0x82
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, ebx
call fcn.004b3a90
push 0x4dfec0
mov ecx, ebx
call fcn.004017f0
push 0x4dfeb8
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push ebx
push eax
call fcn.0047cf4a
mov eax, dword [ebp - 4]
xor ecx, ecx
push eax
push esi
test eax, eax
mov edi, 1
push 1
push dword [ebp - 8]
cmove edi, ecx
call fcn.0047dcdc
push dword [ebp - 4]
mov esi, eax
call fcn.0047d0ad
add esp, 0x20
cmp esi, dword [ebp - 0xc]
jne 0x4b4c1b
test edi, edi
jne 0x4b4c2f
mov ecx, 0x82
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b4c40
Capabilities:
Create directory

Disassembly:
push esi
mov esi, ecx
push 0
push esi
call fcn.0047d94f
add esp, 8
cmp eax, 0xffffffff
jne 0x4b4c72
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
test eax, eax
je 0x4b4c72
cmp eax, 0x50
je 0x4b4c72
cmp eax, 0xb7
je 0x4b4c72
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret
Function at 0x40855b
Capabilities:
Compare security identifiers

Disassembly:
push ecx
push esi
mov ecx, edi
xor esi, esi
call fcn.004094aa
test eax, eax
jbe 0x408590
push esi
mov ecx, edi
call fcn.004094c0
add eax, 4
push eax
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
mov ecx, edi
jne 0x408597
inc esi
call fcn.004094aa
cmp esi, eax
jb 0x40856a
xor al, al
pop esi
pop ecx
ret 4
push esi
call fcn.00408522
mov al, 1
jmp 0x408592

Function at 0x409048
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, eax
push edi
mov ecx, esi
call fcn.0049dc60
push eax
push dword [eax + 4]
lea ecx, [ebp - 8]
call fcn.00406739
mov ecx, esi
call fcn.0049dc60
push eax
push dword [eax + 8]
lea ecx, [ebp - 0x10]
call fcn.00406739
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.00427ee1
test al, al
jne 0x4090d7
mov ebx, 0xffff67
lea ecx, [ebp - 8]
call fcn.0041e42d
cmp byte [eax], 0
je 0x4090ac
lea ecx, [ebp - 8]
call fcn.0041e42d
mov eax, dword [eax + 0x24]
and eax, ebx
cmp eax, ebx
je 0x4090db
lea ecx, [ebp - 8]
call fcn.004096a1
mov ecx, esi
call fcn.0049dc60
push eax
push dword [eax + 8]
lea ecx, [ebp - 0x10]
call fcn.00406739
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.00427ee1
test al, al
je 0x40908e
xor al, al
jmp 0x40912d
mov ecx, esi
call fcn.0049dc60
mov esi, eax
mov ecx, esi
xor edi, edi
call fcn.004094aa
test eax, eax
jbe 0x409118
push edi
mov ecx, esi
call fcn.004094c0
add eax, 4
push eax
push 0x521c98
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
mov ecx, esi
jne 0x40911c
inc edi
call fcn.004094aa
cmp edi, eax
jb 0x4090f1
mov al, 1
jmp 0x40912d
push edi
call fcn.004094c0
cmp byte [eax], 0
je 0x4090d7
test dword [eax + 0x24], ebx
setne al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ba2e
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push str.L_DLS_ENCKEY_7F5D6897_81BF_404a_A769_103531002A61
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call fcn.0048dad0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add esp, 0xc
test eax, eax
push 0x10
pop esi
je 0x40ba6d
cmp dword [ebp - 0xc], esi
je 0x40bb00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov dword [ebp - 8], eax
je 0x40ba83
cmp eax, ebx
jne 0x40bb11
push esi
push ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x40baa4
mov dword [ebp - 8], 0xe
jmp 0x40bb11
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00443e36
pop ecx
call fcn.00443e43
imul eax, eax, 0xff
cdq
mov ecx, 0x7fff
idiv ecx
mov ecx, dword [ebp - 4]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, esi
jl 0x40bab1
push dword [ebp - 0xc]
push dword [ebp - 4]
push str.L_DLS_ENCKEY_7F5D6897_81BF_404a_A769_103531002A61
call fcn.0048dc10
add esp, 0xc
test eax, eax
jne 0x40baf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor ebx, ebx
jmp 0x40bb11
push 0xa000002a
call fcn.0042c80d
pop ecx
xor ebx, ebx
push esi
push dword [ebp - 4]
push 0x522378
call fcn.00442550
add esp, 0xc
cmp dword [ebp - 4], ebx
je 0x40bb32
push dword [ebp - 0xc]
push ebx
push dword [ebp - 4]
call fcn.004424d0
add esp, 0xc
push dword [ebp - 4]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebp - 8], ebx
pop edi
pop esi
sete al
pop ebx
leave
ret
Function at 0x40da6c
Capabilities:
Create directory
Delete directory
Delete file

Disassembly:
push 0x18
push 0x50ed00
call fcn.0044769c
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x40dbac
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x40dbac
mov dword [ebx], edi
mov dword [eax], edi
push dword [ebp + 8]
call fcn.00439182
pop ecx
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, edi
jne 0x40dac0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
jmp 0x40dbb3
push esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
lea eax, [eax + eax + 0x800]
push eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
jne 0x40daf6
mov dword [ebp - 0x1c], 0xe
jmp 0x40dbb3
push esi
call edi
cmp word [esi + eax*2 - 2], 0x5c
je 0x40db0d
push 0x4fa6bc
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call edi
lea edi, [esi + eax*2]
and dword [ebp - 0x28], 0
push dword [ebp - 0x28]
push str.dlstmp_d.tmp
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
inc dword [ebp - 0x28]
push esi
call fcn.00491f00
add esp, 0x10
test eax, eax
jne 0x40db17
xor edi, edi
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x40db5f
mov dword [ebp - 0x20], str.CreateFile
jmp 0x40dab2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40db7d
mov dword [ebp - 0x20], str.DeleteFile
jmp 0x40dab2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40db95
mov dword [ebp - 0x20], str.CreateDirectory
jmp 0x40dab2
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40dbb3
mov dword [ebp - 0x20], str.RemoveDirectory
jmp 0x40dab2
mov dword [ebp - 0x1c], 0x57
mov dword [ebp - 4], 0xfffffffe
call fcn.0040dc18
cmp dword [ebp - 0x1c], esi
je 0x40dc38
cmp dword [ebp - 0x20], esi
je 0x40dc38
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call esi
lea eax, [eax + eax + 0x800]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebx], eax
test eax, eax
je 0x40dc31
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push str.Failed_to_verify_store_path_r_n_s_error___lu__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push dword [ebx]
call esi
lea eax, [eax + eax + 4]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x40dc38
mov dword [ebp - 0x1c], 0xe
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebp - 0x1c], eax
sete al
call fcn.004476e1
ret
Function at 0x4174f1
Capabilities:
Write file on windows

Disassembly:
push 0x3c
push 0x50ecd8
call fcn.0044769c
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x417669
cmp dword [ebp + 0xc], edi
je 0x417669
cmp dword [ebp + 0x10], edi
je 0x41765f
cmp dword [esi + 0x10], edi
je 0x417576
cmp dword [esi + 0x28], edi
je 0x417576
push 0x28
push edi
lea eax, [ebp - 0x4c]
push eax
call fcn.004424d0
add esp, 0xc
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 0x14]
lea eax, [ebp - 0x4c]
push eax
mov edx, dword [esi]
mov ecx, ebx
call dword [esi + 0x10]
cmp dword [ebp - 0x1c], edi
je 0x417576
mov dword [esi + 0x24], ebx
mov eax, dword [esi]
sub eax, edi
je 0x41761f
dec eax
je 0x4175de
dec eax
jne 0x417656
mov eax, dword [esi + 4]
cmp eax, edi
je 0x41764c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call sub.ODBC32.dll_SQLPutData
movzx edi, ax
push dword [esi + 4]
push 3
mov ecx, edi
call fcn.00422ed7
pop ecx
pop ecx
mov ax, di
xor ecx, ecx
test di, di
setg cl
lea ecx, [ecx + ecx - 1]
neg ax
sbb eax, eax
and eax, ecx
xor edi, edi
test eax, 0xfffffffe
je 0x417656
mov dword [esi + 0x2c], 0x10d9
jmp 0x417653
mov ecx, dword [esi + 4]
cmp ecx, edi
je 0x41764c
cmp dword [esi + 8], edi
jne 0x4175ed
mov dword [esi + 8], ecx
mov eax, dword [esi + 8]
mov edi, dword [esi + 0xc]
sub edi, eax
add edi, ecx
cmp edi, dword [ebp + 0x10]
jb 0x417601
mov edi, dword [ebp + 0x10]
jmp 0x41760b
mov dword [esi + 0x2c], 0xe
mov dword [esi + 0x24], ebx
push edi
push dword [ebp + 0xc]
push eax
call fcn.00442550
add esp, 0xc
add dword [esi + 8], edi
xor edi, edi
jmp 0x417656
mov eax, dword [esi + 4]
cmp eax, edi
je 0x41764c
cmp eax, 0xffffffff
je 0x41764c
push edi
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x417656
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x2c], eax
jmp 0x417653
mov dword [esi + 0x2c], 6
mov dword [esi + 0x24], ebx
mov eax, dword [ebp + 0x10]
add dword [esi + 0x18], eax
adc dword [esi + 0x1c], edi
mov dword [ebp - 4], edi
call fcn.0041767e
jmp 0x417698
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x5181f4
call fcn.0044c854
add esp, 0xc
jmp 0x4176a8
mov dword [ebp - 4], 0xfffffffe
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.004476e1
ret 0xc
Function at 0x41b991
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [0x5223c8]
push edi
push 0x1e
pop edi
push edi
push 0x4fdf7c
push str.SOFTWARESmartLine_VisionDeviceLockEnterpriseServer
push reloc.OLEAUT32.dll_SysReAllocString
push 0x51ee2c
xor ebp, ebp
xor ebx, ebx
call fcn.0048d3f0
add esp, 0x14
cmp dword [0x51ee2c], ebp
jne 0x41b9cd
mov dword [0x51ee2c], edi
mov eax, 0x3e8
cmp dword [0x51ee2c], eax
jbe 0x41b9df
mov dword [0x51ee2c], eax
push esi
mov dword [0x5223e8], esi
call fcn.0041f52b
pop ecx
call fcn.004a16b0
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x41ba0a
call edi
push eax
push 0xaffe0015
call fcn.0041fe3b
pop ecx
pop ecx
push ebp
push 1
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebp
mov dword [0x5223e4], eax
je 0x41ba39
push ebp
push ebp
push esi
push 0x41d66e
push ebp
push ebp
call fcn.00443185
add esp, 0x18
cmp eax, ebp
mov dword [0x5223ec], eax
jne 0x41ba3d
call edi
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
cmp ebx, ebp
pop esi
pop ebp
sete al
pop ebx
ret