joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c27a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov ebx, ecx
lea edi, [ebp - 0x4c]
push 9
pop ecx
xor eax, eax
mov dword [ebp - 8], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 6
xor edx, edx
lea edi, [ebp - 0x24]
pop ecx
xor eax, eax
mov dword [ebp - 0x28], edx
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x28]
mov dword [ebx + 8], edx
push eax
push edx
jmp 0x40c34d
cmp dword [ebp - 0x18], 0x1000
jne 0x40c33e
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 4]
add ebx, 0xc
mov dword [ebp - 4], edi
push eax
mov ecx, ebx
call fcn.0040caef
mov esi, eax
cmp esi, dword [ebx]
je 0x40c2e2
cmp edi, dword [esi + 0x10]
jae 0x40c31b
mov ecx, ebx
call fcn.0040cfee
mov edx, eax
lea edi, [edx + 0x10]
mov word [edx + 0xc], 0
test edi, edi
je 0x40c30a
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [edi], ecx
add edi, 4
push 7
pop ecx
rep stosd dword es:[edi], eax
lea edi, [edx + 0x10]
push edx
push edi
push esi
lea eax, [ebp - 0xc]
mov ecx, ebx
push eax
call fcn.0040ce81
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
lea edi, [esi + 0x14]
push 7
pop ecx
lea esi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
test byte [ebp - 0x14], 0x70
je 0x40c33e
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov eax, ecx
div dword [ebp - 0x48]
add dword [ebx + 8], eax
jmp 0x40c341
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
add eax, ecx
lea ecx, [ebp - 0x28]
push 0x1c
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp eax, 0x1c
je 0x40c2ba
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40f55c
Capabilities:
Create pipe

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x84], edi
je 0x40f571
xor al, al
jmp 0x40f603
push ebx
push edi
xor ebx, ebx
mov dword [esi + 0x84], 2
inc ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x44], eax
test eax, eax
je 0x40f5fc
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x9c], eax
test eax, eax
je 0x40f5fc
push 4
push 0xffffffffffffffff
push esi
push 0x40fcee
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x40f5fc
lea eax, [esi + 0x20]
cmp dword [eax + 0x14], 8
jb 0x40f5c7
mov eax, dword [eax]
push dword [esi + 0x38]
push edi
push 0x40
push 0x40
push ebx
push 6
push 0x40080003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
je 0x40f5fc
push dword [esi + 0x9c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x40f600
mov dword [esi + 0x84], ebx
xor al, al
jmp 0x40f602
mov al, bl
pop ebx
pop edi
pop esi
ret
Function at 0x40f700
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 0x2c
push ebx
mov dword [ebp - 8], ebx
lea esi, [edi + 0xa0]
push esi
call fcn.004169b0
add esp, 0xc
lea eax, [edi + 0x8c]
push eax
lea eax, [ebp - 8]
push eax
push 0x2c
push esi
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
mov byte [ebp - 1], al
test al, al
jne 0x40f766
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov al, byte [ebp - 1]
test al, al
jne 0x40f766
cmp ebx, 0x3e5
je 0x40f766
push 0xa
mov ecx, edi
call fcn.0040f99f
jmp 0x40f770
mov dword [edi + 0x84], 5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411273
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [esp + 0x13]
mov byte [esp + 0x13], 0
push eax
push 0x411339
mov edi, ecx
call dword [sym.imp.USER32.dll_EnumWindows]
call fcn.004013ad
push eax
lea ecx, [esp + 0x18]
call fcn.00401698
push dword [ebp + 0xc]
lea eax, [esp + 0x18]
push dword [ebp + 8]
push str._s_s.dmp
push eax
call fcn.004076f7
lea ecx, [esp + 0x24]
call fcn.00408292
mov bl, byte [esp + 0x23]
lea eax, [esp + 0x24]
mov dl, byte [edi]
mov cl, bl
push 0
push eax
call fcn.00411cad
add esp, 0x18
cmp byte [edi + 1], 0
je 0x411324
push dword [ebp + 0xc]
lea eax, [esp + 0x18]
push dword [ebp + 8]
push str._s_s_full.dmp
push eax
call fcn.004076f7
add esp, 0x10
lea ecx, [esp + 0x14]
call fcn.00408292
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.00407b76
test al, al
je 0x411328
mov dl, byte [edi]
lea eax, [esp + 0x14]
push 0
push eax
mov cl, bl
call fcn.00411cad
pop ecx
pop ecx
jmp 0x411328
mov esi, dword [esp + 0x14]
lea ecx, [esi - 0x10]
call fcn.004019b6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x411648
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x14], edx
push edi
mov byte [ebp - 1], cl
mov dword [ebp - 0x10], ebx
call fcn.0041200e
call fcn.004013ad
push eax
cmp byte [ebp - 1], bl
je 0x4116ab
lea ecx, [ebp - 0x10]
call fcn.00401698
lea eax, [ebp - 0x10]
push eax
xor eax, eax
lea ecx, [ebp - 8]
inc eax
push eax
push str.CheckPointCrashReports
mov dword [ebp - 0xc], eax
call fcn.004047d9
push 0x26
mov edx, eax
pop ecx
call fcn.00411f6d
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.004019b6
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
jmp 0x4116e8
lea ecx, [ebp - 8]
call fcn.00401698
lea eax, [ebp - 8]
push eax
push 1
push str.CheckPointCrashReports
lea ecx, [ebp - 0x10]
call fcn.004047d9
push 0x1c
mov edx, eax
pop ecx
call fcn.00411f6d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.004019b6
mov edi, dword [ebp - 8]
push 2
pop eax
mov dword [ebp - 0xc], eax
mov eax, edi
lea ecx, [eax - 0x10]
call fcn.004015f7
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], esi
test al, 2
je 0x41170e
and eax, 0xfffffffd
lea ecx, [edi - 0x10]
mov dword [ebp - 0xc], eax
call fcn.004019b6
mov eax, dword [ebp - 0xc]
test al, 1
je 0x41171d
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.004019b6
cmp byte [ebp - 1], bl
je 0x41173d
cmp dword [esi - 0xc], ebx
je 0x411742
lea ecx, [ebp - 8]
call fcn.004114c8
mov esi, dword [ebp - 8]
test eax, eax
jns 0x41173d
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [esi - 0xc], ebx
jne 0x41176d
lea ecx, [ebp - 0x10]
call fcn.00404a01
push eax
lea ecx, [ebp - 8]
call fcn.0040164a
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.004019b6
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], ebx
jne 0x41176d
mov ebx, 0x8004fffc
jmp 0x41177f
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x41177f
lea ecx, [ebp - 8]
push ecx
mov ecx, eax
call fcn.0040164a
lea ecx, [esi - 0x10]
call fcn.004019b6
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411b50
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
mov ebx, ecx
movzx ecx, byte [0x440c48]
neg ecx
mov dword [ebp - 0xc], ebx
push esi
sbb ecx, ecx
push edi
and ecx, 0x440f30
je 0x411ba0
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x24], ecx
call fcn.0040571b
push dword [ebx]
or dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push str._StartProcessWithNoExceptionHandler___s_
push eax
mov dword [ebp - 0x18], 8
call fcn.004019d8
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.004082eb
push 0x43ba54
lea ecx, [ebp - 8]
call fcn.004047d9
push str.GOOGLE_UPDATE_NO_CRASH_HANDLER
lea ecx, [ebp - 4]
call fcn.004047d9
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040e81e
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004019b6
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.004019b6
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x411c74
lea eax, [ebp - 0x20]
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.0040e8cf
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov esi, dword [ebp - 0x20]
cmp esi, dword [ebp - 0x1c]
je 0x411c74
push 0x40
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x80], 0x44
push ebx
push eax
call fcn.004169b0
xor eax, eax
mov dword [ebp - 0x34], ebx
mov ecx, dword [ebp - 0xc]
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push esi
push 0x400
push ebx
push ebx
push ebx
call fcn.00407604
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x411c74
push dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x30]
call esi
jmp 0x411c7b
call fcn.00407b39
mov ebx, eax
lea ecx, [ebp - 0x20]
call fcn.0040a815
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
push eax
push dword [eax]
lea eax, [ebp - 0xc]
push eax
call fcn.0040a9ca
push 0x18
push 1
push dword [ebp - 0x14]
call fcn.00402bbb
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412285
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43f014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x200
xor ebx, ebx
lea eax, [ebp - 0x204]
push ebx
push eax
call fcn.004169b0
add esp, 0xc
mov dword [ebp - 0x20c], 0x100
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push 3
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x4122ee
push ecx
mov edx, 0x43ba58
lea ecx, [ebp - 0x204]
call fcn.00407187
pop ecx
test al, al
je 0x4122ee
mov al, 1
jmp 0x412333
push esi
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], ebx
push eax
push 0x64
push ebx
call dword [sym.imp.NETAPI32.dll_NetWkstaGetInfo]
mov esi, dword [ebp - 0x208]
test eax, eax
jne 0x412329
cmp dword [esi + 8], ebx
je 0x412329
push str.google
push dword [esi + 8]
call fcn.00421cac
pop ecx
pop ecx
test eax, eax
jne 0x412329
mov bl, 1
push esi
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov al, bl
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041686e
mov esp, ebp
pop ebp
ret

Function at 0x4124be
Capabilities:
Identify system language via api

Disassembly:
push esi
mov esi, ecx
push edi
test dl, dl
je 0x4124ce
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
jmp 0x4124d4
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
xor edx, edx
movzx edi, ax
mov ecx, 0x409
push ebx
mov ebx, edx
mov eax, ecx
cmp di, ax
je 0x4124fc
inc ebx
imul eax, ebx, 0x1a
movzx eax, word [eax + 0x438340]
test ax, ax
jne 0x4124e3
mov edi, ecx
jmp 0x4124ff
movzx edi, di
pop ebx
cmp cx, di
je 0x41251c
inc edx
imul eax, edx, 0x1a
movzx ecx, word [eax + 0x438340]
test cx, cx
jne 0x412500
push 0x436e98
jmp 0x412525
imul eax, edx, 0x1a
add eax, 0x438342
push eax
mov ecx, esi
call fcn.004047d9
pop edi
mov eax, esi
pop esi
ret

Function at 0x4125d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
call fcn.004013ad
push eax
lea ecx, [ebp - 4]
call fcn.00401698
push dword [esi]
lea eax, [ebp - 4]
push str.__s__r_n
push eax
call fcn.00407721
mov esi, dword [ebp + 8]
add esp, 0xc
mov ecx, dword [esi]
mov eax, dword [ecx]
mov dword [ebp + 8], eax
cmp eax, ecx
je 0x412631
push dword [eax + 0x14]
push dword [eax + 0x10]
lea eax, [ebp - 4]
push str._s_s_r_n
push eax
call fcn.00407721
add esp, 0x10
lea ecx, [ebp + 8]
call fcn.00402374
mov eax, dword [ebp + 8]
cmp eax, dword [esi]
jne 0x41260b
mov esi, dword [ebp - 4]
lea ecx, [ebp - 8]
xor edi, edi
push edi
mov dword [ebp - 8], edi
mov eax, dword [esi - 0xc]
push ecx
add eax, eax
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x412657
call fcn.00407b39
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.004019b6
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412aa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
mov byte [ebp - 1], cl
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call fcn.00412668
test eax, eax
js 0x412bbb
mov ebx, dword [ebp - 0x20]
cmp dword [ebp - 0x24], ebx
je 0x412bbb
call fcn.0041200e
cmp byte [ebp - 1], 0
mov eax, str.HKLMSoftwareCheckPointUpdate_
jne 0x412ae8
mov eax, str.HKCUSoftwareCheckPointUpdate_
push eax
lea ecx, [ebp - 8]
call fcn.004047d9
push 0x43be28
lea ecx, [ebp - 0xc]
call fcn.004047d9
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 8]
lea ecx, [ebp - 0x10]
call fcn.0040215a
pop ecx
push eax
lea ecx, [ebp - 8]
call fcn.0040164a
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.004019b6
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.004019b6
mov esi, dword [ebp - 8]
mov ecx, esi
call fcn.00406c26
test al, al
jne 0x412b49
mov cl, byte [ebp - 1]
mov dl, 1
call fcn.00412bcf
mov edi, eax
jmp 0x412bad
push 1
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x439760
mov dword [ebp - 0x14], edi
call fcn.004067ae
mov edi, eax
test edi, edi
js 0x412b9e
mov eax, dword [ebp - 0x24]
xor edi, edi
sub ebx, eax
sar ebx, 2
test ebx, ebx
je 0x412b92
push 0
push 0
push 0
push 0
push dword [eax + edi*4]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x412bb7
mov eax, dword [ebp - 0x24]
inc edi
cmp edi, ebx
jb 0x412b72
mov cl, byte [ebp - 1]
xor dl, dl
call fcn.00412bcf
mov edi, eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x439760
call fcn.0040669a
lea ecx, [esi - 0x10]
call fcn.004019b6
jmp 0x412bbe
xor edi, edi
jmp 0x412b9e
xor edi, edi
inc edi
lea ecx, [ebp - 0x24]
call fcn.00407d2f
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412d6a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x43f014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, cl
push esi
push edi
test bl, bl
je 0x412d96
call fcn.00413c26
test al, al
je 0x412d96
mov eax, 0x80004005
jmp 0x412ef1
xor esi, esi
mov dword [ebp - 0x24], 0x43a050
lea edx, [ebp - 0x24]
mov dword [ebp - 0x20], esi
mov cl, bl
call fcn.00412922
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
call dword [eax + 4]
mov dword [ebp - 0x1c], 0x439760
mov dword [ebp - 0x18], esi
call fcn.0041200e
mov eax, str.HKLMSoftwareCheckPointUpdate_
test bl, bl
jne 0x412dd2
mov eax, str.HKCUSoftwareCheckPointUpdate_
push esi
push ecx
push 0xf003f
push ecx
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040671e
mov edi, eax
test edi, edi
js 0x412ecf
push esi
push esi
push esi
push esi
push 0x43be28
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412e0b
mov edi, esi
jmp 0x412ecf
call fcn.004013ad
push eax
lea ecx, [ebp - 0x28]
call fcn.00401698
xor eax, eax
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
js 0x412e55
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x2c]
call fcn.004020de
push eax
lea ecx, [ebp - 0x28]
call fcn.0040164a
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.004019b6
mov eax, esi
test eax, eax
mov esi, dword [ebp - 0x28]
js 0x412ec5
xor edi, edi
lea ecx, [ebp - 0x1c]
inc edi
push edi
push esi
push 0x43be28
call fcn.00406bc0
test eax, eax
js 0x412ec5
mov ecx, 0x43faa8
call fcn.00409076
lea ecx, [ebp - 0x1c]
call fcn.00412d11
xor eax, eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call fcn.00412668
test eax, eax
js 0x412ebb
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
je 0x412ebb
sub esp, 0xc
lea eax, [ebp - 0x10]
mov ecx, esp
push eax
call fcn.00413066
mov cl, bl
call fcn.00412985
add esp, 0xc
mov edi, eax
lea ecx, [ebp - 0x10]
call fcn.00407d2f
jmp 0x412ec7
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.004019b6
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x439760
call fcn.0040669a
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
call dword [eax + 8]
lea ecx, [ebp - 0x24]
call fcn.004064ff
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041686e
mov esp, ebp
pop ebp
ret
Function at 0x413dea
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x44115c
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 8]
push 0x44115c
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
and dword [esi + 0x18], 0
and dword [esi + 0x1c], 0
mov dword [ebp + 8], eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 8], 0
jne 0x413e2c
test ebx, ebx
je 0x413e8a
lea ebx, [edi + 0x1c]
mov ecx, edi
push ebx
push str.Counts
call fcn.00413dc1
test al, al
je 0x413e8a
push dword [esi + 4]
lea ecx, [ebp - 4]
call fcn.00407571
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x10]
xor edi, edi
mov edx, esi
push eax
mov ecx, ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call fcn.004140b9
mov eax, dword [ebp + 8]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
adc dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
pop ecx
push 8
push eax
push 3
push edi
push esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esi - 0x10]
call fcn.004019b6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x413e93
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x43f014]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x44115c
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 8
pop ecx
lea eax, [esi + 0x18]
push 0x20
mov esi, eax
lea edi, [esp + 0x34]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004169b0
add esp, 0xc
push 0x44115c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x30], 0
je 0x413fc4
lea edi, [ebx + 0x28]
mov ecx, ebx
push edi
push str.Timings
call fcn.00413dc1
test al, al
je 0x413fc4
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push dword [eax + 4]
call fcn.00407571
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov edx, esi
mov ecx, edi
call fcn.00414107
pop ecx
test al, al
jne 0x413f44
push 0x20
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00428a20
add esp, 0xc
jmp 0x413fa8
mov eax, dword [esp + 0x30]
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
adc dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x44]
cmp ecx, dword [esp + 0x24]
jg 0x413f72
mov eax, dword [esp + 0x40]
jl 0x413f7a
cmp eax, dword [esp + 0x20]
jb 0x413f7a
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
cmp dword [esp + 0x2c], ecx
jg 0x413f98
mov eax, dword [esp + 0x48]
jl 0x413fa0
cmp dword [esp + 0x28], eax
jb 0x413fa0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
push 0x20
lea eax, [esp + 0x14]
push eax
push 3
push 0
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esi - 0x10]
call fcn.004019b6
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041686e
mov esp, ebp
pop ebp
ret 4

Function at 0x4140b9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 8
pop esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4140f2
cmp dword [ebp - 8], 3
jne 0x4140f2
test eax, eax
jne 0x4140f2
cmp dword [ebp - 4], esi
jne 0x4140f2
mov al, 1
jmp 0x414102
push esi
push 0
push dword [ebp + 8]
call fcn.004169b0
add esp, 0xc
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x414107
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0x20
pop esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414140
cmp dword [ebp - 8], 3
jne 0x414140
test eax, eax
jne 0x414140
cmp dword [ebp - 4], esi
jne 0x414140
mov al, 1
jmp 0x414150
push esi
push 0
push dword [ebp + 8]
call fcn.004169b0
add esp, 0xc
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x415501
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push esi
mov esi, ecx
sub esp, 0xc
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 0x40]
push eax
lea eax, [esi + 0x3c]
push eax
lea eax, [esi + 0x38]
push eax
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push ecx
lea ecx, [ebp - 0x88]
call fcn.004153be
lea ecx, [ebp - 0x30]
call fcn.0040f2ff
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
push 0x2c
mov eax, ecx
push eax
push 0x2c
lea eax, [ebp - 0x88]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x4155c4
cmp dword [ebp - 0x30], 2
jne 0x4155c4
cmp dword [ebp - 0x2c], 0
je 0x4155c4
cmp dword [ebp - 0x10], 0
je 0x4155c4
cmp dword [ebp - 0xc], 0
je 0x4155c4
cmp dword [ebp - 8], 0
je 0x4155c4
lea ecx, [ebp - 0x5c]
call fcn.0040f2ff
push 0
lea eax, [ebp - 4]
mov dword [ebp - 0x5c], 3
push eax
push 0x2c
mov eax, ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4155c4
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x34], eax
mov al, 1
jmp 0x4155c6
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4