joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402580
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov ebx, eax
mov eax, dword [esp + 0x20]
mov esi, ecx
mov ecx, dword [eax]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esi + 4]
push eax
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x20]
push ecx
push 0
push ebx
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x4026ab
test ebx, ebx
je 0x402657
cmp word [ebx], 0
je 0x402657
cmp byte [esi + 0x128], 0
je 0x4025e9
add esi, 0x18
mov dword [esp + 0x20], esi
jmp 0x4025f0
mov eax, dword [esi + 0x14]
mov dword [esp + 0x20], eax
mov eax, ebp
call fcn.00402980
mov esi, eax
call fcn.00402ad0
mov eax, ebp
call fcn.00402980
push 0x432060
mov esi, eax
push 0x43210c
mov edx, esi
call fcn.004031f0
mov ecx, dword [esp + 0x28]
add ecx, 4
push ecx
push 0x43210c
mov edx, esi
call fcn.004031f0
push 0x42c504
push 0x43210c
mov edx, esi
call fcn.004031f0
push ebx
push 0x43210c
mov edx, esi
call fcn.004031f0
add esp, 0x20
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 0x10
cmp byte [esi + 0x128], 0
lea ebx, [esi + 0x18]
jne 0x402666
mov ebx, dword [esi + 0x14]
mov eax, ebp
call fcn.00402980
mov esi, eax
call fcn.00402ad0
mov eax, ebp
call fcn.00402980
mov esi, eax
push 0x432060
push 0x43210c
mov edx, esi
call fcn.004031f0
add ebx, 4
push ebx
push 0x43210c
mov edx, esi
call fcn.004031f0
add esp, 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 0x10
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x24]
je 0x402745
test ebx, ebx
je 0x4026fd
cmp word [ebx], 0
je 0x4026fd
cmp byte [esi + 0x128], 0
je 0x4026d5
add esi, 0x18
mov dword [esp + 0x20], esi
jmp 0x4026dc
mov eax, dword [esi + 0x14]
mov dword [esp + 0x20], eax
mov eax, ebp
call fcn.00402980
xor edi, edi
mov esi, eax
call fcn.00402ad0
mov eax, ebp
call fcn.00402980
push 0x432070
jmp 0x40260a
cmp byte [esi + 0x128], 0
je 0x40270b
add esi, 0x18
jmp 0x40270e
mov esi, dword [esi + 0x14]
mov eax, ebp
call fcn.00402980
mov edi, eax
push 0x432070
push 0x43210c
mov edx, edi
call fcn.004031f0
add esi, 4
push esi
push 0x43210c
mov edx, edi
call fcn.004031f0
add esp, 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 0x10
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword [eax], edx
mov al, 1
pop ebx
pop ecx
ret 0x10
Function at 0x402760
Capabilities:
Set registry value

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 4
push eax
push 4
mov ebx, ecx
push 0
mov esi, edx
mov ecx, dword [esi + 4]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x40287d
test ebx, ebx
je 0x40282a
cmp word [ebx], 0
je 0x40282a
cmp byte [esi + 0x128], 0
je 0x4027ac
add esi, 0x18
mov dword [esp + 0x14], esi
jmp 0x4027b3
mov edx, dword [esi + 0x14]
mov dword [esp + 0x14], edx
mov eax, ebp
call fcn.00402980
mov esi, eax
call fcn.00402ad0
mov eax, ebp
call fcn.00402980
mov esi, eax
push 0x432088
push 0x43210c
mov edx, esi
call fcn.004031f0
mov eax, dword [esp + 0x1c]
add eax, 4
push eax
push 0x43210c
mov edx, esi
call fcn.004031f0
push 0x4320a0
push 0x43210c
mov edx, esi
call fcn.004031f0
push ebx
push 0x43210c
mov edx, esi
call fcn.004031f0
push 0x4320a8
push 0x43210c
mov edx, esi
call fcn.004031f0
add esp, 0x28
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 4
cmp byte [esi + 0x128], 0
lea ebx, [esi + 0x18]
jne 0x402839
mov ebx, dword [esi + 0x14]
mov eax, ebp
call fcn.00402980
mov esi, eax
call fcn.00402ad0
mov eax, ebp
call fcn.00402980
mov esi, eax
push 0x432088
push 0x43210c
mov edx, esi
call fcn.004031f0
add ebx, 4
push ebx
push 0x43210c
mov edx, esi
call fcn.004031f0
add esp, 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 4
Function at 0x403fd0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x42863b
mov eax, dword fs:[0]
push eax
sub esp, 0x128
push esi
push edi
mov eax, dword [0x438860]
xor eax, esp
push eax
lea eax, [esp + 0x134]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x40400c
mov eax, dword [esi + 8]
push 0x80
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x40402a
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40410c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x11c], 0
mov edi, eax
lea eax, [esi + 0xc]
jne 0x404053
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40410c
shr eax, 4
not al
and al, 1
je 0x40410c
cmp byte [esi + 0x11c], 0
je 0x404081
add esi, 0xc
jmp 0x404084
mov esi, dword [esi + 8]
push 0
push 0
push 0
push 0
push 0
add esi, 4
push esi
lea ecx, [esp + 0x28]
call fcn.00403810
mov eax, ebx
mov dword [esp + 0x13c], 0
call fcn.00402980
mov esi, eax
call fcn.00402ad0
mov eax, ebx
call fcn.00402980
mov esi, eax
push 0x432190
lea eax, [esp + 0x14]
call fcn.00402be0
cmp byte [esp + 0x12c], 0
mov dword [esp + 0x10], vtable.t_str.0
jne 0x4040f2
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
cmp eax, ecx
je 0x4040f2
push eax
call fcn.00411ae3
add esp, 4
xor al, al
mov ecx, dword [esp + 0x134]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x134
ret
mov al, 1
mov ecx, dword [esp + 0x134]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x134
ret
Function at 0x404130
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4285f6
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x438860]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x438860]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x270]
mov esi, ecx
call fcn.00403cd0
test al, al
jne 0x4042fe
lea eax, [esp + 0x138]
call fcn.004037b0
lea ebx, [esp + 0x138]
mov eax, esi
mov dword [esp + 0x268], 1
call fcn.00404380
test al, al
je 0x4041d1
mov eax, ebx
call fcn.00403a20
test al, al
jne 0x4041d1
push 0
push ebp
mov ecx, ebx
call fcn.00404130
test al, al
jne 0x4041d1
mov eax, ebx
call fcn.004039d0
xor al, al
jmp 0x404300
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x4041e0
mov eax, dword [esi + 8]
push 0
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4042b0
cmp byte [esi + 0x11c], al
je 0x404201
add esi, 0xc
jmp 0x404204
mov esi, dword [esi + 8]
push 0
push 0
push 0
push 0
push 0
add esi, 4
push esi
lea ecx, [esp + 0x2c]
call fcn.00403810
mov byte [esp + 0x268], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, ebp
call fcn.00402980
mov esi, eax
call fcn.00402ad0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebp
call fcn.00402980
mov esi, eax
push 0x4321a0
lea eax, [esp + 0x18]
call fcn.00402be0
cmp byte [esp + 0x130], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x14], esi
jne 0x404280
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x404280
push eax
call fcn.00411ae3
add esp, 4
cmp byte [esp + 0x254], 0
mov dword [esp + 0x138], esi
jne 0x4042ac
mov eax, dword [esp + 0x140]
lea edx, [esp + 0x144]
cmp eax, edx
je 0x4042ac
push eax
call fcn.00411ae3
add esp, 4
xor al, al
jmp 0x404300
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x4042bf
mov eax, dword [esi + 8]
lea ecx, [eax + 4]
call fcn.00406c30
mov eax, esi
call fcn.00404480
cmp byte [esp + 0x254], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x4042fe
mov eax, dword [esp + 0x140]
lea ecx, [esp + 0x144]
cmp eax, ecx
je 0x4042fe
push eax
call fcn.00411ae3
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.00411e9c
add esp, 0x258
ret 8
Function at 0x404740
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
push edi
mov byte [esp + 0x13], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x404777
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
push eax
call fcn.00411a19
mov ecx, dword [esp + 0x10]
add esp, 4
mov ebx, eax
push ebx
push ecx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4047f9
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0x42c504
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4047f9
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + 0xa]
mov word [esi], cx
movzx edx, word [eax + 8]
mov word [esi + 2], dx
movzx ecx, word [eax + 0xe]
mov word [esi + 4], cx
movzx edx, word [eax + 0xc]
mov word [esi + 6], dx
test ebp, ebp
je 0x4047f4
movzx ecx, word [eax + 0x12]
mov word [ebp], cx
movzx edx, word [eax + 0x10]
mov word [ebp + 2], dx
movzx ecx, word [eax + 0x16]
mov word [ebp + 4], cx
movzx edx, word [eax + 0x14]
mov word [ebp + 6], dx
mov byte [esp + 0xb], 1
test ebx, ebx
je 0x404806
push ebx
call fcn.00411ae3
add esp, 4
mov al, byte [esp + 0xb]
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x404810
Capabilities:
Get common file path

Disassembly:
sub esp, 0x21c
mov eax, dword [0x438860]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
mov ebp, dword [esp + 0x224]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e]
push ecx
mov word [esp + 0x20], ax
call fcn.00412170
add esp, 0xc
push 0x104
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x404872
xor al, al
pop ebp
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00411e9c
add esp, 0x21c
ret
push esi
push edi
push str.kernel32.dll
lea eax, [esp + 0x20]
push 0x104
push eax
call fcn.004134f2
lea ecx, [esp + 0x18]
push ecx
lea esi, [esp + 0x24]
lea edi, [esp + 0x2c]
call fcn.00404740
add esp, 0x10
pop edi
pop esi
test al, al
je 0x40485a
movzx edx, word [esp + 0xc]
movzx eax, word [esp + 0xe]
movzx ecx, word [esp + 0x10]
mov dword [ebx + 4], edx
mov dword [ebx + 8], eax
xor edx, edx
mov eax, 2
mov dword [ebx], 0x114
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], eax
mov word [ebx + 0x14], dx
test ebp, ebp
je 0x4048fb
movzx ecx, word [esp + 4]
movzx edx, word [esp + 6]
mov dword [ebp + 4], ecx
movzx ecx, word [esp + 8]
mov dword [ebp + 8], edx
xor edx, edx
mov dword [ebp], 0x114
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], eax
mov word [ebp + 0x14], dx
mov ecx, dword [esp + 0x21c]
pop ebp
xor ecx, esp
mov al, 1
call fcn.00411e9c
add esp, 0x21c
ret
Function at 0x405c30
Capabilities:
Set file attributes

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov esi, eax
mov eax, dword [ebp + 0x130]
mov edx, dword [eax + 0x18]
lea edi, [ebp + 0x130]
push esi
push ebx
mov ecx, edi
call edx
test al, al
jne 0x405c81
mov eax, ebx
call fcn.00402980
push 0x432180
push 0x43210c
mov edx, eax
call fcn.004031f0
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
push ebx
mov ecx, edi
call fcn.004064d0
test al, al
je 0x405c5a
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x18]
push ecx
mov dword [ebp + 0x34c], edi
xor edi, edi
push eax
push ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], edi
mov dword [ebp + 8], eax
call fcn.00405980
add esp, 0x14
test al, al
jne 0x405d0e
cmp byte [esi + 0x11c], al
je 0x405cd2
add esi, 0xc
jmp 0x405cd5
mov esi, dword [esi + 8]
mov eax, ebx
call fcn.00402980
mov edi, eax
push 0x4330f0
push 0x43210c
mov edx, edi
call fcn.004031f0
add esi, 4
push esi
push 0x43210c
mov edx, edi
call fcn.004031f0
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push edi
push 0x80
push ebx
push edi
push edx
push eax
mov eax, esi
call fcn.00403a00
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 4], eax
mov edi, 1
cmp eax, 0xffffffff
jne 0x405db3
nop
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x24], eax
cmp eax, 0x20
jne 0x405d6b
cmp edi, 3
jge 0x405df4
cmp byte [ebp + 0x350], 0
je 0x405d88
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x405d88
cmp eax, 5
jne 0x405dc9
cmp edi, 3
jge 0x405df4
push 0x80
mov eax, esi
call fcn.00403a00
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
push 0
push 0x80
push ebx
push 0
push ecx
push edx
mov eax, esi
call fcn.00403a00
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
inc edi
mov dword [ebp + 4], eax
cmp eax, 0xffffffff
je 0x405d40
lea ecx, [ebp + 0xc]
mov eax, esi
call fcn.00403b80
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
test eax, eax
jne 0x405df4
cmp byte [esi + 0x11c], al
je 0x405dda
add esi, 0xc
jmp 0x405ddd
mov esi, dword [esi + 8]
mov eax, dword [esp + 0x20]
push 0x433100
call fcn.00401000
add esi, 4
push esi
jmp 0x405c66
cmp byte [esi + 0x11c], 0
lea ebx, [esi + 0xc]
jne 0x405e03
mov ebx, dword [esi + 8]
mov ebp, dword [esp + 0x20]
mov eax, ebp
call fcn.00402980
mov edi, dword [esp + 0x24]
mov esi, eax
call fcn.00402ad0
mov eax, ebp
call fcn.00402980
mov esi, eax
push 0x4330f0
push 0x43210c
mov edx, esi
call fcn.004031f0
add ebx, 4
push ebx
push 0x43210c
mov edx, esi
call fcn.004031f0
add esp, 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret 0xc
Function at 0x405f30
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push edi
push 0
mov edi, eax
mov esi, ecx
call ebp
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x405fcd
push ebx
lea ebx, [esi + 0x18]
cmp byte [esi + 0x128], al
jne 0x405f78
mov ebx, dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esp + 0x18]
call fcn.00402980
mov esi, eax
call fcn.00402ad0
push 0
call ebp
mov eax, dword [esp + 0x18]
call fcn.00402980
mov esi, eax
push 0x433120
push 0x43210c
mov edx, esi
call fcn.004031f0
add ebx, 4
push ebx
push 0x43210c
mov edx, esi
call fcn.004031f0
add esp, 0x10
pop ebx
pop edi
pop esi
xor al, al
pop ebp
pop ecx
ret 0xc
test edi, edi
je 0x405fd7
mov ecx, dword [esp + 0xc]
mov dword [edi], ecx
pop edi
pop esi
mov al, 1
pop ebp
pop ecx
ret 0xc

Function at 0x4071c0
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407236
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x407205
cmp eax, 2
jne 0x407221
mov eax, dword [esp + 0x14]
test esi, esi
je 0x407230
test eax, eax
je 0x40722b
test al, 1
jne 0x407221
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x407230
pop edi
mov eax, 0xd
pop esi
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc
Function at 0x407820
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x43aef0], 0
push esi
je 0x407914
mov eax, dword [0x43aef8]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
je 0x40787b
cmp dword [eax], 0xd
jbe 0x40787b
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0x34]
test eax, eax
je 0x40787b
push 0
push 0x43b0b4
push 0x43b094
push 0
push eax
call fcn.004279d9
add esp, 0x14
test eax, eax
je 0x40787b
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
test eax, eax
jne 0x407968
cmp dword [0x43aef0], 0
je 0x407914
push 0x43c18c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x43aef0], 0
je 0x4078e2
mov ecx, dword [0x43aef8]
push ecx
call esi
test eax, eax
je 0x4078e2
cmp dword [eax], 0xd
jbe 0x4078e2
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x34]
test eax, eax
je 0x4078e2
push 0
push 0x43b0b4
push 0x43b094
push 0
push eax
call fcn.004279d9
add esp, 0x14
test eax, eax
je 0x4078e2
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
mov esi, eax
test esi, esi
jne 0x407905
push 0x2014
call fcn.00412763
add esp, 4
test eax, eax
je 0x4078fc
mov esi, eax
call fcn.004072c0
jmp 0x4078fe
xor eax, eax
mov esi, eax
call fcn.00407970
push 0x43c18c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
ret
cmp dword [0x44138c], 0
jne 0x407963
push 0x43c18c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, 1
mov esi, 0x441398
test byte [0x441390], al
jne 0x407952
or dword [0x441390], eax
call fcn.004072c0
push 0x428b60
call fcn.00413ce4
add esp, 4
push 0x43c18c
mov dword [0x44138c], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x44138c]
pop esi
ret

Function at 0x407970
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x43aef0], 0
push esi
push edi
mov esi, eax
je 0x4079b9
mov eax, dword [0x43aef8]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call edi
test eax, eax
je 0x4079b9
cmp dword [eax], 0xd
jbe 0x4079b9
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + 0x34]
test ecx, ecx
jne 0x4079e6
push 8
call fcn.00412763
add esp, 4
test eax, eax
je 0x4079be
mov dword [eax + 4], esi
mov dword [eax], vtable.t_visualDataItemPtr_class_t_perfManager_.0
mov esi, eax
jmp 0x4079c0
pop edi
xor al, al
pop esi
ret
xor esi, esi
cmp dword [0x43aef0], 0
je 0x4079ee
mov edx, dword [0x43aef8]
push edx
call edi
test eax, eax
je 0x4079ee
cmp dword [eax], 0xd
jbe 0x4079ee
mov eax, dword [eax + 8]
mov dword [eax + 0x34], esi
pop edi
mov al, 1
pop esi
ret
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push esi
call eax
pop edi
mov al, 1
pop esi
ret

Function at 0x408040
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8
Function at 0x408060
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x408074
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x4080a0
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 4], ecx
test ebp, ebp
jne 0x4080b6
lea eax, [ebp + 0xd]
pop ebp
pop ecx
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4080c3
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8

Function at 0x4087e0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x14
mov eax, dword [0x438860]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
push edi
push 0x400
mov edi, ecx
call fcn.0041152c
add esp, 4
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0x400
push esi
xor ebx, ebx
push 2
push edi
mov byte [esp + 0x28], bl
mov byte [esp + 0x29], bl
mov byte [esp + 0x2a], bl
mov byte [esp + 0x2b], bl
mov byte [esp + 0x2c], bl
mov byte [esp + 0x2d], 5
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x408852
push esi
call fcn.0041190d
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00411e9c
add esp, 0x14
ret
lea ecx, [esp + 0xc]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x408835
xor edi, edi
push ebp
cmp dword [esi], ebx
jbe 0x40889b
mov ebp, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea ebx, [esi + 4]
mov eax, dword [ebx]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call ebp
test eax, eax
jne 0x4088b0
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x408885
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00411e9c
add esp, 0x14
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call fcn.0041190d
mov ecx, dword [esp + 0x24]
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00411e9c
add esp, 0x14
ret
Function at 0x408be0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x438860]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ecx]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ecx + 4]
push edi
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x1c]
push ecx
xor ebx, ebx
or esi, 0x2001f
push esi
push ebx
push edx
push eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x10]
mov edi, eax
cmp edi, ebx
jne 0x408c5f
xor eax, eax
cmp ecx, ebx
je 0x408c47
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
and esi, 0x300
mov edi, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
cmp eax, ebx
je 0x408c83
cmp ecx, ebx
je 0x408c6a
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.00411e9c
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x44]
push edx
push ebx
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
jne 0x408cea
jmp 0x408cb0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.00408be0
mov edi, eax
cmp edi, ebx
jne 0x408d39
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x44]
push eax
push ebx
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
je 0x408cb0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x408cfd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edx
mov dword [esp + 0x18], ebx
call fcn.00407f60
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x408d20
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.00411e9c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x408d48
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x234]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00411e9c
mov esp, ebp
pop ebp
ret 4