joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4192d7
Capabilities:
Acquire debug privileges

Disassembly:
push 0
push str.SeDebugPrivilege
call fcn.004191ff
test eax, eax
pop ecx
pop ecx
setne al
ret

Function at 0x4192eb
Capabilities:
Acquire debug privileges

Disassembly:
push 1
push str.SeDebugPrivilege
call fcn.004191ff
test eax, eax
pop ecx
pop ecx
setne al
ret

Function at 0x41933d
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x4193fc
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
push esi
push esi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push esi
push dword [ebp + 8]
mov ebx, 0x46ce48
mov dword [0x46d86c], eax
push 0x419300
push 0x452410
push ebx
call fcn.0040cc28
push 0x46ce40
push ebx
call fcn.0040c715
add esp, 0x20
test eax, eax
mov eax, dword [0x46ce40]
jne 0x4193ce
test eax, eax
je 0x4193ce
push 0xffffffffffffffff
push dword [0x46d85c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
push 0x419330
push ebx
call fcn.0040d210
mov eax, dword [0x46ce40]
add esp, 0xc
mov dword [0x46d868], edi
cmp dword [0x46d868], esi
jne 0x4193f4
test eax, eax
je 0x4193f4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x46ce40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x46ce40], esi
mov eax, dword [0x46d86c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41957f
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 1
push 0x400
push 0x46d890
call fcn.004098bc
add esp, 0xc
mov dword [0x46e890], eax
xor edi, edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
mov esi, eax
push esi
push 0x4194e0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x46d888], eax
test eax, eax
jne 0x4195ca
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, edi
pop edi
mov eax, esi
pop esi
ret

Function at 0x41972d
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x46b880]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x104
lea eax, [ebp - 0x20c]
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x4197a6
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push 0x452498
push 0x452478
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
je 0x41979f
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00423dc5
mov esp, ebp
pop ebp
ret
Function at 0x41982d
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x41989e
push edi
push 0xf01ff
push 0x4524c0
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x419896
or dword [ebp - 0x1c], 0xffffffff
xor eax, eax
inc eax
mov dword [ebp - 4], 0x1f4
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
push eax
push 2
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4198a4
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push bind
push esi
call sub.WTSAPI32.dll_WTSWaitSystemEvent
cmp eax, 0x47f
je 0x4198d9
push 0x3e8
push dword [0x46d888]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4198e6
push esi
push dword [0x46d888]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x46d888], esi
cmp dword [0x46e898], esi
je 0x4198ff
push esi
mov ecx, 0x46e898
call fcn.0041949e
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x419904
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x46b880]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x41998a
push esi
push 0xf01ff
push 0x452478
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x419982
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x41996c
cmp dword [ebp - 0x24], 1
je 0x41996c
lea eax, [ebp - 0x28]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
dec eax
neg eax
push esi
sbb al, al
lea ebx, [eax + 1]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
xor ecx, ebp
pop ebx
call fcn.00423dc5
mov esp, ebp
pop ebp
ret

Function at 0x419bea
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x419c0d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 5
neg eax
sbb eax, eax
inc eax
pop ebp
ret
Function at 0x41da61
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x46b880]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push eax
mov ebx, 0x104
mov edi, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp - 0x20c]
push eax
push str._s_s
push ebx
push edi
call fcn.00408fc5
push 0x453b04
push edi
call fcn.0042f1e7
mov ecx, dword [ebp - 4]
add esp, 0x1c
mov dword [edi + 0x208], eax
xor ecx, ebp
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.00423dc5
mov esp, ebp
pop ebp
ret 4

Function at 0x41e007
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 [0x46ece8], edi
jne 0x41e0a2
push 0x20a
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.00425c30
add esp, 0xc
mov dword [0x46ece8], 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.0041e007
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.0041e007
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 0x41e0e4
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 0x41e12b
push dword [0x46b550]
push 0x44e3d8
push 5
push esi
call fcn.00408fc5
add esp, 0x10
test edi, edi
jle 0x41e124
push 0xa
pop eax
cmp word [esi + edi*2 - 2], ax
je 0x41e124
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 0x41e730
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x46b880]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x6b
xor ebx, ebx
mov ecx, 0x46ecf0
push ebx
call fcn.00420c82
push 0x105
lea eax, [ebp - 0x10c]
push ebx
push eax
call fcn.00425c30
add esp, 0xc
lea ecx, [ebp - 0x10c]
cmp dword [0x46b248], 8
mov eax, 0x46b234
cmovae eax, dword [0x46b234]
push ebx
push ebx
push 0x104
push ecx
push 0xffffffffffffffff
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x10c]
mov byte [ebp - 9], bl
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x41e7fc
mov eax, dword [0x46f398]
mov ecx, 0x108
sub eax, dword [0x46f390]
mov edi, 0x46f390
cdq
idiv ecx
cmp eax, 0xa
jae 0x41e7d2
push 0xa
mov ecx, edi
call fcn.0041f0cd
movzx eax, word [0x46ca20]
push edi
push eax
push dword [esi + 0xc]
push ebx
call fcn.0041d377
add esp, 0x10
pop edi
pop esi
pop ebx
test eax, eax
je 0x41e7fc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423dc5
mov esp, ebp
pop ebp
ret
push 0x467f7c
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 0x6c
push eax
call fcn.0042600d
int3

Function at 0x41ec05
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call fcn.0042150b
push dword [esi + 0x478]
lea edi, [esi + 4]
push 1
push 0x80
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
push 3
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebx
mov ecx, edi
call fcn.0041dd6f
lea eax, [esi + 0x64]
mov dword [esi + 0x98], ebx
push eax
mov dword [esi + 0x94], ebx
mov dword [esi + 0x9c], ebx
call sym.FortiClientInstaller.exe_FCP_init_response
pop ecx
cmp dword [esi + 0x20], ebx
jne 0x41ecfa
mov eax, dword [edi]
lea ecx, [esi + 0xb8]
push 0x28
mov dword [esi + 0xbc], eax
mov eax, dword [esi + 0x474]
pop ebx
mov dword [ecx], 0x3bc
mov dword [esi + 0xc0], 0x7b
mov dword [esi + 0xc4], 3
mov dword [esi + 0xc8], 0x807b
mov dword [esi + 0xcc], eax
push ecx
jmp 0x41ecc3
mov eax, ebx
dec ebx
test eax, eax
je 0x41ecd1
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esi + 0xb8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
test eax, eax
je 0x41ecaa
jmp 0x41ece3
push 0
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0xcd
push dword [0x46f618]
call dword [sym.imp.USER32.dll_LoadMenuW]
mov dword [esi + 0x47c], eax
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
ret 0x10
Function at 0x41f1b4
Capabilities:
Get graphical window text

Disassembly:
push 0x21c
mov eax, 0x44c7d5
call fcn.00423e41
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x214], 7
xor eax, eax
mov dword [ebp - 0x218], ebx
mov word [ebp - 0x228], ax
push dword [ebp + 8]
lea eax, [ebp - 0x228]
mov dword [ebp - 4], ebx
push dword [edi + 0x60]
push eax
call fcn.0041ead3
add esp, 0xc
push 0xc9
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x100
lea ecx, [ebp - 0x210]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [ebp - 0x214], 8
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0042d2c3
pop ecx
pop ecx
test eax, eax
je 0x41f282
cmp dword [ebp - 0x214], 8
lea esi, [ebp - 0x228]
push 0xc9
push dword [edi + 4]
cmovae esi, dword [ebp - 0x228]
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0xc9
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push ebx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov esi, 0xca
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41f2b6
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push dword [ebp + 8]
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x228]
call fcn.004086f1
call fcn.00423deb
ret 4

Function at 0x420118
Capabilities:
Create directory
Query environment variable
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x46b880]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00425c30
add esp, 0xc
push 0x43
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
lea eax, [ebp - 0x20c]
push 0x104
je 0x4201ac
push str.c:FortiClient_temp_
push eax
call fcn.0042d385
lea eax, [ebp - 0x20c]
push eax
call fcn.00431193
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call fcn.0042d325
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, 0x46b554
push eax
call fcn.004092cf
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423dc5
mov esp, ebp
pop ebp
ret
push eax
push str._temp_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x20c]
push 6
push eax
call fcn.0042f53f
pop ecx
pop ecx
test eax, eax
je 0x420172
xor eax, eax
jmp 0x42019e
Function at 0x420b67
Capabilities:
Monitor local ipv4 address changes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x46b880]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
push esi
push edi
lea edi, [ebp - 0x34]
mov esi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x48]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi + 0x698]
xor edi, edi
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x69c]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
mov dword [ebp - 0x18], edi
call sub.IPHLPAPI.DLL_NotifyAddrChange
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.IPHLPAPI.DLL_NotifyRouteChange
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x420c39
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x420c39
mov ecx, dword [esi + 0x694]
test ecx, ecx
je 0x420c39
mov dword [ebp - 0x10], edx
mov ebx, 0x112a880
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
push ebx
push edi
lea eax, [ebp - 0x10]
push eax
push 3
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
jbe 0x420c18
cmp eax, 2
je 0x420c44
cmp eax, 0x102
je 0x420c44
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x420bea
or dword [ebp - 0x1c], 0xffffffff
lea eax, [ebp - 0x20]
push edi
push edi
push edi
push edi
push eax
push dword [esi + 0x694]
mov dword [ebp - 0x20], 0xfa0a1f00
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
jmp 0x420bea
push 0x112a880
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x14], edi
je 0x420c52
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CancelIo]
cmp dword [ebp - 0x18], edi
je 0x420c60
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov eax, dword [esi + 0x694]
pop edi
pop esi
pop ebx
test eax, eax
je 0x420c74
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423dc5
mov esp, ebp
pop ebp
ret

Function at 0x4210c2
Capabilities:
Create thread

Disassembly:
push esi
xor eax, eax
mov esi, ecx
push eax
push eax
push eax
push 0x41f320
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x94], eax
pop esi
ret

Function at 0x4210df
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xa0]
mov dword [esi + 0x98], 1
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x2c], 1
je 0x42111e
cmp dword [esi + 0x2c], 3
je 0x42111e
push 0xffffffffffffffff
push dword [esi + 0x94]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [esi + 0x64]
push eax
call fcn.00420ae5
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
ret
Function at 0x42118c
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 0x1c
mov eax, 0x44ca04
call fcn.00423e41
lea eax, [ebp - 0x18]
xor edi, edi
push eax
push 0x458448
xor ebx, ebx
inc edi
push edi
push ebx
push 0x458438
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4212b7
push str.rootMicrosoftSqlServerComputerManagement
lea ecx, [ebp - 0x28]
call fcn.00421141
mov eax, dword [eax]
mov dword [ebp - 4], ebx
test eax, eax
je 0x4211de
mov ecx, dword [eax]
jmp 0x4211e0
mov ecx, ebx
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push edx
push ebx
push ebx
mov esi, dword [eax]
push ebx
push ebx
push ebx
push ebx
push ecx
mov ecx, dword [esi + 0xc]
push eax
call dword [0x44d42c]
call dword [esi + 0xc]
or dword [ebp - 4], 0xffffffff
mov esi, eax
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x42120f
call fcn.00408588
test esi, esi
js 0x4212b7
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x4212b7
push str.select__from_SqlServiceAdvancedProperty_where_SQLServiceType__1
lea ecx, [ebp - 0x20]
call fcn.00408124
mov esi, eax
push 0x44dcec
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], edi
call fcn.00408124
mov ecx, dword [esi]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x42125f
mov edx, dword [ecx]
jmp 0x421261
mov edx, ebx
mov eax, dword [eax]
test eax, eax
je 0x42126b
mov ecx, dword [eax]
jmp 0x42126d
mov ecx, ebx
mov eax, dword [ebp - 0x14]
lea edi, [ebp - 0x24]
push edi
push ebx
push 0x30
mov esi, dword [eax]
push edx
push ecx
push eax
mov ecx, dword [esi + 0x50]
call dword [0x44d42c]
call dword [esi + 0x50]
mov ecx, dword [ebp - 0x1c]
mov esi, eax
test ecx, ecx
je 0x421299
call fcn.00408588
mov dword [ebp - 0x1c], ebx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4212ac
call fcn.00408588
mov dword [ebp - 0x20], ebx
push 1
test esi, esi
movzx ebx, bl
pop ecx
cmovns ebx, ecx
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4212ce
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x44d42c]
call esi
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4212e5
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x44d42c]
call esi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4212fc
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x44d42c]
call esi
mov al, bl
call fcn.00423deb
ret
Function at 0x42146c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetACP]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [edi], 0x409
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov dword [edi], eax
call fcn.0041418f
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.softwareFortinetFortiClientFA_UI
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4214e6
cmp dword [ebp - 4], esi
je 0x4214e6
lea eax, [ebp - 8]
push eax
push str.LCID
push dword [ebp - 4]
call fcn.00418cd2
add esp, 0xc
test al, al
je 0x4214dd
mov eax, dword [ebp - 8]
test eax, eax
je 0x4214dd
mov dword [edi], eax
push dword [ebp - 4]
call fcn.00418c57
pop ecx
mov eax, dword [edi]
cmp dword [esi*8 + 0x455158], eax
je 0x4214f9
inc esi
cmp esi, 3
jb 0x4214e8
jmp 0x421500
mov eax, dword [esi*8 + 0x45515c]
mov dword [edi], eax
xor eax, eax
pop edi
inc eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4289e2
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x4586dc
push 0x4586d4
push str.FlsAlloc
push 0
call fcn.0042895b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x428a14
push dword [ebp + 8]
mov ecx, esi
call fcn.00421944
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x428a56
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x4586ec
push 0x4586e4
push str.FlsGetValue
push 2
call fcn.0042895b
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x428a87
mov ecx, esi
call fcn.00421944
call esi
jmp 0x428a8d
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x428a90
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x4586f4
push 0x4586ec
push str.FlsSetValue
push 3
call fcn.0042895b
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x428ac4
mov ecx, esi
call fcn.00421944
call esi
jmp 0x428aca
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x43505a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x30], eax
mov eax, dword [str.KERNEL32.dll]
push ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, dword [0x46b054]
sub esp, 0xc
mov dword [ebp - 0x2c], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call esi
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
call ebx
sub esp, 0xc
mov dword [ebp - 0x34], eax
mov dword [esp + 8], 0x104
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [0x46b030]
sub esp, 0xc
cmp dword [edi], 0
je 0x435122
mov ecx, dword [ebp - 0x34]
mov dword [esp], ecx
call fcn.00435004
mov dword [esp], eax
mov ecx, eax
call fcn.0043502c
cmp byte [edi], al
je 0x43510c
cmp byte [edi + 1], al
jne 0x435206
mov dword [esp], ecx
call fcn.00435040
cmp dword [edi + 4], eax
je 0x435122
cmp dword [edi + 8], eax
jne 0x435206
mov edx, dword [0x46b054]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x34], edx
call esi
mov edx, dword [ebp - 0x34]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], edx
call ebx
xor edx, edx
sub esp, 0xc
mov ecx, dword [str.VirtualProtect]
mov ecx, dword [ecx + edx]
mov dword [eax + edx], ecx
add edx, 4
cmp edx, 0x20
jne 0x43514d
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push edx
push edx
test eax, eax
je 0x435206
mov ebx, dword [0x46b018]
lea edi, [ebp - 0x1c]
mov dword [esp + 4], 0x6000
mov eax, dword [0x46b03c]
mov dword [ebp - 0x2c], edi
mov dword [esp + 0xc], edi
mov dword [esp], ebx
mov dword [esp + 8], eax
call esi
mov edx, dword [0x46b05c]
mov eax, 8
add edx, dword [ebp - 0x30]
sub esp, 0x10
mov ecx, dword [edx + 4]
mov edi, dword [edx + eax]
add edi, ecx
mov dword [ebx + eax], edi
add eax, 4
cmp eax, 0x6000
jne 0x4351b7
mov eax, dword [0x46b04c]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], ebx
mov dword [esp + 4], 0x6000
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
call esi
mov eax, dword [0x46b058]
mov edx, dword [0x46b058]
sub esp, 0x10
add eax, dword [ebx + 0xc]
add eax, ebx
add ebx, edx
mov dword [esp], ebx
call eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4404cd
Capabilities:
Read file on windows

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

Function at 0x4404d8
Capabilities:
Read file on windows

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

Function at 0x445963
Capabilities:
Set environment variable

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