joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cdea
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
test ebx, ebx
je 0x40cf5c
lea ecx, [ebx + 0xa00]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
sar eax, 2
cmp dword [ebp + 0xc], eax
jae 0x40cf5c
push esi
push dword [ebp + 0xc]
call fcn.0040d339
mov esi, dword [eax]
cmp dword [esi + 8], edi
je 0x40ce2b
cmp dword [esi + 0xc], edi
jne 0x40ce40
push dword [ebp + 0xc]
push ebx
call fcn.0040c7cf
push dword [ebp + 0xc]
push ebx
call fcn.0040cda4
add esp, 0x10
push esi
call fcn.004160d0
pop ecx
test eax, eax
jne 0x40ce53
push 0xfffffffffffffffc
pop edi
jmp 0x40cf2f
mov eax, dword [ebx + 0xa18]
mov dword [esi], eax
inc dword [ebx + 0xa18]
cmp dword [esi + 0x20], edi
je 0x40ce6f
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [esi + 0x34], edi
je 0x40ce7d
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0xa000
lea eax, [esi + 0x254]
mov dword [esi + 0x38], edi
push edi
push eax
call fcn.00425c30
add esp, 0xc
lea eax, [ebp - 0x20]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push edi
push edi
push 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0x1388
mov eax, 0xa000
mov dword [ebp - 4], edi
push eax
push eax
push 0xff
push 6
push 0x40000003
push ebx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov ecx, eax
mov dword [esi + 4], ecx
cmp ecx, 0xffffffff
jne 0x40cef3
mov dword [esi + 4], edi
push 0xffffffffffffffcb
jmp 0x40cf23
lea eax, [esi + 0x10]
push eax
push ecx
jmp 0x40cf17
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x40cf3f
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
lea eax, [esi + 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x40cefa
push 0xffffffffffffffca
pop edi
push esi
call fcn.00416634
pop ecx
test edi, edi
jns 0x40cf3a
push dword [ebp + 0xc]
push ebx
call fcn.0040c65e
pop ecx
pop ecx
mov eax, edi
pop esi
jmp 0x40cf5f
cmp eax, 0x217
je 0x40cf51
cmp eax, 0x3e5
je 0x40cf24
push 0xffffffffffffffc9
jmp 0x40cf23
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x40cf24
or eax, 0xffffffff
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e09f
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x46b880]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], esi
cmp dword [0x46ca80], edi
jne 0x40e13a
push 0x20a
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.00425c30
add esp, 0xc
mov dword [0x46ca80], 1
lea eax, [ebp - 0x210]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.0040e09f
pop ecx
pop ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0042d385
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.0040e09f
add esp, 0x14
push esi
push edi
push ebx
call fcn.00409c81
mov ebx, eax
lea eax, [ebx*2 + 0xe]
push eax
call fcn.0042d6fb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e17c
push dword [ebp - 0x214]
xor eax, eax
push edi
push dword [ebp - 0x218]
mov dword [esi + ebx*2 + 0xa], eax
lea eax, [esi + 0xa]
push ebx
push eax
call fcn.00408fe1
add esp, 0x14
mov edi, eax
test edi, edi
cmovs edi, ebx
add edi, 5
mov ebx, edi
test esi, esi
je 0x40e1c3
push dword [0x46b230]
push 0x44e3d8
push 5
push esi
call fcn.00408fc5
add esp, 0x10
test edi, edi
jle 0x40e1bc
push 0xa
pop eax
cmp word [esi + edi*2 - 2], ax
je 0x40e1bc
mov word [esi + edi*2], ax
lea ebx, [edi + 1]
xor eax, eax
mov word [esi + edi*2 + 2], ax
push esi
call fcn.0042d6f6
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423dc5
mov esp, ebp
pop ebp
ret
Function at 0x40e275
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push 0x268
mov eax, 0x44c158
call fcn.00423e41
push 0x20a
xor ebx, ebx
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.00425c30
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x238], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
je 0x40e33a
lea ecx, [ebp - 0x238]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x40e33a
inc ebx
cmp dword [ebp - 0x238], 1
jle 0x40e331
mov esi, dword [edi + ebx*4]
push esi
call fcn.0042d325
pop ecx
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.00408729
mov esi, 0x44e3fc
push esi
call fcn.0042d325
pop ecx
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.00408729
inc ebx
cmp ebx, dword [ebp - 0x238]
jl 0x40e2f8
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor ebx, ebx
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x274]
push ebx
push eax
call fcn.00425c30
add esp, 0xc
mov dword [ebp - 0x274], esi
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x274]
push eax
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x268], str.runas
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x258], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [ebp - 0x234]
mov esi, eax
call fcn.004086f1
mov eax, esi
call fcn.00423deb
ret
Function at 0x40e4ef
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x46b880]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x444], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ebx, ebx
mov esi, eax
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x40e66e
push 0x22c
lea eax, [ebp - 0x438]
push ebx
push eax
call fcn.00425c30
add esp, 0xc
mov dword [ebp - 0x438], 0x22c
lea eax, [ebp - 0x438]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0x438], 0x22c
cmp esi, dword [ebp - 0x430]
je 0x40e587
lea eax, [ebp - 0x438]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40e557
test edi, edi
je 0x40e66e
jmp 0x40e667
push dword [ebp - 0x420]
push ebx
push 0x100410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x208
mov ebx, eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00425c30
add esp, 0xc
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40e5fa
push str.GetProcessImageFileNameW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x43c], eax
test eax, eax
je 0x40e5f3
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push ebx
mov ecx, eax
call dword [0x44d42c]
call dword [ebp - 0x43c]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp word [ebp - 0x20c], 0
jne 0x40e640
lea eax, [ebp - 0x448]
push eax
push 4
lea eax, [ebp - 0x440]
push eax
push ebx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40e636
push 0x208
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x440]
push ebx
call sub.PSAPI.DLL_GetModuleFileNameExW
cmp word [ebp - 0x20c], 0
je 0x40e667
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004281a3
lea esi, [eax + 2]
push esi
call fcn.0042d325
mov ecx, dword [ebp - 0x444]
add esp, 0xc
push eax
push esi
call fcn.004092cf
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423dc5
mov esp, ebp
pop ebp
ret
Function at 0x40ef8f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x44c1c3
call fcn.00423eaf
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40f00c
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40f00c
call fcn.0040df36
mov esi, eax
jmp 0x40f105
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x40f02f
call fcn.0040df36
jmp 0x40f0f8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x40f025
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x40f062
mov esi, 0x8007000e
jmp 0x40f0fa
push 2
push eax
mov byte [ebp - 4], 2
call fcn.0040d61e
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x40f085
push eax
lea ecx, [ebp - 0x418]
call fcn.0040dd82
jmp 0x40f0a7
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x40f0a7
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x40f058
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x40f025
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040ee54
mov esi, eax
test edi, edi
je 0x40f105
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40f11e
lea ecx, [ebp - 0x418]
call fcn.0040e462
mov eax, esi
call fcn.00423dfc
ret 0x10
Function at 0x410035
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x46b880]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x410060
xor eax, eax
jmp 0x4100b0
push esi
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
test eax, eax
jne 0x41005c
push reloc.WS2_32.dll_bind
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423dc5
mov esp, ebp
pop ebp
ret
Function at 0x411c30
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x411c52
test al, 1
je 0x411c52
and eax, 0xfffffffe
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop ebp
ret

Function at 0x411cb0
Capabilities:
Enumerate files on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x300
mov eax, dword [0x46b880]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2f0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2ec], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2fc], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x2f8], eax
xor edi, edi
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2f4], ecx
mov dword [ebp - 0x300], eax
test ecx, ecx
jne 0x411d08
or eax, 0xffffffff
jmp 0x411e54
push ebx
lea eax, [ebp - 0x2e8]
push eax
push str.part_obj_
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x411e51
push esi
push 0x80
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.00425c30
lea eax, [ebp - 0x2bc]
push 0x8000
push eax
call fcn.0042fdf3
mov esi, eax
add esp, 0x14
test esi, esi
js 0x411e26
push 0x80
lea eax, [ebp - 0x98]
push eax
push esi
call fcn.0043ceb5
add esp, 0xc
cmp eax, 0x80
jne 0x411e3e
lea eax, [ebp - 0x98]
push eax
call sym.FortiClientInstaller.exe_FCP_verify_object_hdr
pop ecx
test eax, eax
je 0x411d9d
test esi, esi
jle 0x411e26
push esi
call fcn.0043c528
pop ecx
jmp 0x411e26
push dword [ebp - 0x2ec]
lea eax, [ebp - 0x18]
push dword [ebp - 0x2f0]
push 0x12
push eax
lea eax, [ebp - 0x98]
push eax
call sym.FortiClientInstaller.exe_FCP_break_obj_header
push 0x11
push dword [ebp - 0x2f4]
lea eax, [ebp - 0x18]
push eax
call fcn.0042f390
add esp, 0x20
test eax, eax
jne 0x411e17
mov ecx, dword [ebp - 0x2f8]
xor edi, edi
inc edi
test ecx, ecx
je 0x411de5
mov eax, dword [ebp - 0x68]
mov dword [ecx], eax
mov eax, dword [ebp - 0x2fc]
test eax, eax
je 0x411dfe
push 0xa
lea ecx, [ebp - 0x7b]
push ecx
push eax
call fcn.0042f410
add esp, 0xc
mov eax, dword [ebp - 0x300]
test eax, eax
je 0x411e17
lea ecx, [ebp - 0x2bc]
push ecx
push eax
call fcn.0042d303
pop ecx
pop ecx
test esi, esi
jle 0x411e22
push esi
call fcn.0043c528
pop ecx
test edi, edi
jne 0x411e49
lea eax, [ebp - 0x2e8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x411d27
jmp 0x411e49
test esi, esi
jle 0x411e49
push esi
call fcn.0043c528
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00423dc5
mov esp, ebp
pop ebp
ret
Function at 0x412150
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x46b880]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
or esi, 0xffffffff
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x41220f
lea ecx, [eax + 0x280]
cmp dword [ecx], 0
mov dword [ebp - 0x30], ecx
jne 0x41220f
push ebx
sub eax, 0xffffff80
push 0
push eax
call fcn.0042fdf3
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
js 0x41220e
push edi
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.00430ab8
push dword [ebp - 0x14]
call fcn.0042d6fb
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4121f7
push dword [ebp - 0x14]
push edi
push ebx
call fcn.0043ceb5
add esp, 0xc
cmp eax, dword [ebp - 0x14]
jne 0x4121f7
mov eax, dword [ebp - 0x2c]
push 0
add eax, 0x284
push eax
push dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x14]
push edi
call sym.FortiClientInstaller.exe_FCP_unpack_obj
add esp, 0x14
test eax, eax
je 0x4121f5
mov eax, dword [ebp - 0x30]
and dword [eax], 0
mov eax, dword [ebp - 0x2c]
and dword [eax], 0
jmp 0x4121f7
xor esi, esi
test ebx, ebx
jle 0x412202
push ebx
call fcn.0043c528
pop ecx
test edi, edi
je 0x41220d
push edi
call fcn.0042d6f6
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00423dc5
mov esp, ebp
pop ebp
ret

Function at 0x412cc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x400c
call fcn.00423f50
mov eax, dword [0x46b880]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x4008], eax
mov dword [ebp - 0x400c], esi
push edi
test eax, eax
je 0x412dcf
test esi, esi
je 0x412dcf
mov edi, dword [esi + 0x294]
test edi, edi
je 0x412d1d
push 1
push esi
mov ecx, edi
call dword [0x44d42c]
call edi
mov eax, dword [ebp - 0x4008]
pop ecx
pop ecx
mov ecx, dword [esi + 0x288]
test ecx, ecx
je 0x412d40
mov edx, dword [esi + 0x28c]
test edx, edx
je 0x412d40
push edx
push ecx
push eax
call fcn.00413296
add esp, 0xc
mov ebx, eax
jmp 0x412db2
lea eax, [esi + 0x80]
push 0
push eax
call fcn.0042fdf3
mov edi, eax
pop ecx
pop ecx
test edi, edi
js 0x412dcf
push 0x4000
lea eax, [ebp - 0x4004]
push eax
push edi
call fcn.0043ceb5
add esp, 0xc
test eax, eax
jle 0x412dab
mov esi, dword [ebp - 0x4008]
push eax
lea eax, [ebp - 0x4004]
push eax
push esi
call fcn.00413296
mov ebx, eax
add esp, 0xc
test ebx, ebx
jle 0x412da5
push 0x4000
lea eax, [ebp - 0x4004]
push eax
push edi
call fcn.0043ceb5
add esp, 0xc
test eax, eax
jg 0x412d75
mov esi, dword [ebp - 0x400c]
push edi
call fcn.0043c528
pop ecx
mov edi, dword [esi + 0x294]
test edi, edi
je 0x412dcb
push 0
push esi
mov ecx, edi
call dword [0x44d42c]
call edi
pop ecx
pop ecx
mov eax, ebx
jmp 0x412dd2
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423dc5
mov esp, ebp
pop ebp
ret
Function at 0x412f84
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x46b880]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x412fa1
or eax, 0xffffffff
jmp 0x412fdb
push ebx
lea ebx, [esi + 0x288]
mov eax, 0x80
cmp dword [ebx], 0
push edi
lea edi, [esi + 0x28c]
je 0x412fea
cmp dword [edi], eax
jbe 0x412fea
push eax
push dword [ebx]
push esi
call fcn.00425130
push esi
call sym.FortiClientInstaller.exe_FCP_verify_object_hdr
add esp, 0x10
test eax, eax
js 0x4130bf
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00423dc5
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp dword [esi + 0x280], eax
je 0x41308a
cmp dword [esi + 0x284], eax
jbe 0x41308a
lea eax, [ebp - 0x1c]
push str.00000000000000000000
push eax
call fcn.0042f290
push 0
call fcn.00430eff
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.00430d04
push eax
push str._y_m_d_H_M
lea eax, [ebp - 0x12]
push 0xc
push eax
call fcn.00430e65
add esp, 0x20
lea eax, [ebp - 0x1c]
push edi
push ebx
push eax
push esi
call sym.FortiClientInstaller.exe_FCP_get_object_desc
pop ecx
push eax
push esi
push dword [esi + 0x284]
push dword [esi + 0x280]
call sym.FortiClientInstaller.exe_FCP_pack_obj
add esp, 0x1c
test eax, eax
jns 0x413070
and dword [esi + 0x288], 0
and dword [esi + 0x28c], 0
jmp 0x4130bf
mov ebx, 0x80
push ebx
push dword [esi + 0x288]
push esi
call fcn.00425130
add esp, 0xc
jmp 0x412fd7
push eax
lea eax, [esi + 0x80]
push eax
call fcn.0042fdf3
mov edi, eax
pop ecx
pop ecx
test edi, edi
js 0x4130bf
mov ebx, 0x80
push ebx
push esi
push edi
call fcn.0043ceb5
push edi
mov esi, eax
call fcn.0043c528
add esp, 0x10
cmp esi, ebx
je 0x412fd7
or eax, 0xffffffff
jmp 0x412fd9
Function at 0x413e80
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x413e93
or eax, 0xffffffff
jmp 0x413f13
cmp dword [ebp + 8], 0
jl 0x413e8b
push edi
push esi
call fcn.0042d325
lea eax, [eax*2 + 0x100]
push eax
call fcn.0042d6fb
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x413eba
or eax, 0xffffffff
jmp 0x413f12
push esi
call fcn.0042d325
lea eax, [eax*2 + 0x100]
push eax
push 0
push edi
call fcn.00425c30
add esp, 0x10
push dword [ebp + 0x10]
push esi
push str.POST__fdsupdate_HTTP_1.1_r_nUser_Agent:_Mozilla_4.0__compatible__FCT_6.0.6__Windows_NT_5.1__r_nHost:__S_r_nCache_Control:_no_cache_r_nContent_Length:__d_r_n_r_n
push esi
call fcn.0042d325
pop ecx
lea eax, [eax*2 + 0x100]
push eax
push edi
call fcn.00414147
add esp, 0x14
push 0
push edi
call fcn.0042ddf0
pop ecx
push eax
push edi
push dword [ebp + 8]
call sub.WS2_32.dll_send
push edi
mov esi, eax
call fcn.0042d6f6
pop ecx
mov eax, esi
pop edi
pop esi
pop ebp
ret

Function at 0x413f20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
or dword [ebp - 4], 0xffffffff
push ebx
push esi
push edi
xor ebx, ebx
push 0x800
mov edi, ebx
call fcn.0042d6fb
mov esi, eax
pop ecx
test esi, esi
jne 0x413f49
or eax, 0xffffffff
jmp 0x413ff2
push 0x800
push ebx
push esi
call fcn.00425c30
add esp, 0xc
push ebx
push 1
lea eax, [esi + edi]
push eax
push dword [ebp + 8]
call sub.WS2_32.dll_recv
cmp eax, 1
jne 0x413fb5
inc edi
lea eax, [esi - 2]
add eax, edi
mov dword [ebp - 8], eax
cmp edi, 4
jl 0x413f94
push 4
add eax, 0xfffffffe
push str._r_n_r_n
push eax
call fcn.0042f390
add esp, 0xc
test eax, eax
je 0x413fb5
mov eax, dword [ebp - 8]
cmp edi, 2
jl 0x413fad
push 2
push 0x44f600
push eax
call fcn.0042f390
add esp, 0xc
test eax, eax
je 0x413fb5
cmp edi, 0x7ff
jl 0x413f58
mov byte [esi + edi], bl
cmp byte [esi], 0x20
jle 0x413fc4
inc ebx
cmp byte [esi + ebx], 0x20
jg 0x413fbd
cmp byte [esi + ebx], 0
je 0x413fe8
mov al, byte [esi + ebx + 1]
cmp al, 0x32
je 0x413fd6
cmp al, 0x20
jne 0x413fe8
cmp al, 0x20
jne 0x413fe1
cmp byte [esi + ebx + 2], 0x32
jne 0x413fe8
mov dword [ebp - 4], 1
push esi
call fcn.0042d6f6
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4140b0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x46b880]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x46ca84], 0
jne 0x4140f5
push str.Initializing..._n
push 0
call fcn.00414163
pop ecx
pop ecx
lea eax, [ebp - 0x194]
mov dword [0x46ca84], 1
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00423dc5
mov esp, ebp
pop ebp
ret
Function at 0x414da8
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x40], 0
jne 0x414e93
push 0x44fda4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x40], eax
test eax, eax
jne 0x414dc9
pop esi
ret
push str.CryptCATAdminAcquireContext
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WinVerifyTrust
push dword [esi + 0x40]
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTHelperGetProvSignerFromChain
push dword [esi + 0x40]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTHelperProvDataFromStateData
push dword [esi + 0x40]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminReleaseContext
push dword [esi + 0x40]
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminReleaseCatalogContext
push dword [esi + 0x40]
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATCatalogInfoFromContext
push dword [esi + 0x40]
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminEnumCatalogFromHash
push dword [esi + 0x40]
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push dword [esi + 0x40]
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IsCatalogFile
push dword [esi + 0x40]
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTHelperGetProvCertFromChain
push dword [esi + 0x40]
mov dword [esi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTHelperCertFindIssuerCertificate
push dword [esi + 0x40]
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x38], eax
xor eax, eax
cmp dword [esi + 0x10], eax
pop esi
setne al
ret