joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ab80
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x50c3e4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x42ad2b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push 0x20
push 2
push eax
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x42ad2b
push esi
mov ecx, edi
xor esi, esi
call fcn.0042a6d0
cmp eax, 3
jne 0x42acb0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
push eax
mov ecx, edi
mov dword [ebp - 0x18], esi
call fcn.0042a440
mov edi, dword [ebp - 0x1c]
test eax, eax
je 0x42ad03
mov esi, dword [ebp - 0x14]
test edi, edi
je 0x42ac42
test esi, esi
je 0x42ac42
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x42ac42
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp - 0x10]
jne 0x42ad03
jmp 0x42ac44
xor esi, esi
test edi, edi
je 0x42ad0e
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x42ad03
mov esi, dword [ebp - 0x14]
push ebx
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x42aca0
test esi, esi
je 0x42aca0
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x42aca0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp - 0x18]
jmp 0x42aca2
xor esi, esi
test ebx, ebx
je 0x42acad
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
jmp 0x42ad03
mov eax, dword [edi]
test eax, eax
je 0x42ad0e
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x42ad0e
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
test edi, edi
je 0x42ad01
test esi, esi
je 0x42ad01
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x42ad01
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp - 0x10]
jmp 0x42ad03
xor esi, esi
test edi, edi
je 0x42ad0e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d444
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.0048d444
mov esp, ebp
pop ebp
ret 4
Function at 0x42b480
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.0042ad40
test al, al
jne 0x42b4a2
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
pop esi
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret
cmp dword [esi], 0
je 0x42b4ed
call fcn.0042ad40
test al, al
je 0x42b4ed
lea eax, [ebp - 8]
mov dword [ebp - 4], 1
push eax
push 4
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push 0x12
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x42b4ed
mov eax, dword [ebp - 4]
cmp eax, 2
je 0x42b4e3
cmp eax, 3
jne 0x42b4ed
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0042ad40
test al, al
je 0x42b492
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42b54d
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push str.EnableLUA
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 8], eax
pop esi
setne al
mov esp, ebp
pop ebp
ret
Function at 0x42c280
Capabilities:
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x50c3e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
call fcn.0042b6c0
test eax, eax
je 0x42c2bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
shl eax, 0x10
or eax, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d444
mov esp, ebp
pop ebp
ret 8
push ebx
push esi
push edi
push 5
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x42c428
cmp edi, 0xffffffff
je 0x42c428
push 0x34
push str.wpscloudsvr
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x42c406
cmp esi, 0xffffffff
je 0x42c406
xor eax, eax
mov ebx, 0x12c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42c38a
nop
test ebx, ebx
jle 0x42c38a
mov eax, dword [ebp - 0x1c]
dec eax
cmp eax, 6
ja case.0x42c344.3
movzx eax, byte [eax + 0x42c46c]
jmp dword [eax*4 + 0x42c460]
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp case.0x42c344.3
push dword [ebp - 0x24]
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x42c3fd
push 0xc8
dec ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x42c330
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 6
test bx, bx
jne 0x42c414
xor eax, eax
mov dword [ebp - 0x24], 0x12c
mov dword [ebp - 0x20], eax
mov ebx, 0x16
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42c414
nop
mov eax, dword [ebp - 0x24]
test eax, eax
jle 0x42c414
cmp dword [ebp - 0x1c], 1
je 0x42c401
dec eax
push 0xc8
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x42c3d0
jmp 0x42c414
xor ebx, ebx
jmp 0x42c398
mov ebx, dword [ebp - 0x14]
jmp 0x42c414
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 8
test esi, esi
je 0x42c438
cmp esi, 0xffffffff
je 0x42c438
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
jmp 0x42c43e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 8
jmp 0x42c43e
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x42c44a
cmp edi, 0xffffffff
je 0x42c44a
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048d444
mov esp, ebp
pop ebp
ret 8
Function at 0x42d100
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x50c3e4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x20], eax
xor esi, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x42d16f
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
cmp ecx, 1
je 0x42d172
cmp esi, edi
ja 0x42d172
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
add eax, 0xa
add esi, eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x42d143
mov ecx, dword [ebp - 0x1c]
xor eax, eax
cmp ecx, 1
mov ecx, dword [ebp - 4]
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.0048d444
mov esp, ebp
pop ebp
ret 8
Function at 0x42d670
Capabilities:
Delete service

Disassembly:
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x42d70b
cmp edi, 0xffffffff
je 0x42d70b
push 0xf01ff
push str.wpscloudsvr
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x42d6e9
cmp esi, 0xffffffff
je 0x42d6e9
push 0x1388
push esi
mov ecx, ebx
call fcn.0042d100
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ecx, eax
test ecx, ecx
jne 0x42d6db
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x430
sete cl
xor eax, eax
mov ebx, 0x50005
test ecx, ecx
cmovne ebx, eax
jmp 0x42d6f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 5
test esi, esi
je 0x42d71b
cmp esi, 0xffffffff
je 0x42d71b
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
jmp 0x42d721
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 5
jmp 0x42d721
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x42d72d
cmp edi, 0xffffffff
je 0x42d72d
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x42d800
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x50c3e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x511418]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
mov esi, dword [ebp + 8]
test eax, eax
je 0x42d837
push 0x3e9
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [0x511418]
inc eax
mov dword [0x511418], eax
call fcn.00442e10
test eax, eax
je 0x42d9b4
mov eax, dword [0x511480]
test al, 1
jne 0x42d86b
or eax, 1
mov dword [0x511480], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [0x51147c], eax
jmp 0x42d870
mov eax, dword [0x51147c]
push edi
push 0xa
push 0x10
push 0x51141c
push eax
call fcn.0049dfd8
push 0xa
push 0x10
push 0x51145c
push esi
call fcn.0049dfd8
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xa
push 0x10
push 0x51143c
push eax
call fcn.0049dfd8
push str.crash_handle
push str.exitsource
mov dword [0x51148c], 1
mov dword [0x511488], 0
mov dword [0x511484], 0xc
call fcn.00435570
push str.crash
push str.exitreason
call fcn.00435570
add esp, 0x20
call fcn.004355d0
mov ecx, 8
lea edi, [ebp - 0x28]
mov esi, str.kcrashdumper.exe
lea eax, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call fcn.00442e10
push eax
push 0x4da8e4
push 0x511490
call fcn.0042d740
call fcn.004430b0
push eax
push 0x51145c
push 0x51143c
push 0x51141c
push 0x511490
push str._s__pid_s__tid_s__exp_s__callfrom1__module_s
push 0x511c90
call fcn.0042d770
add esp, 0x2c
mov dword [0x512d90], 0x44
mov eax, 0xa
mov dword [0x512dbc], 1
mov word [0x512dc0], ax
push 0x512dd4
push 0x512d90
push 0
push 0
push 0
push 1
push 0
push 0
push 0x511c90
push 0x511490
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [0x512de4], eax
pop edi
test eax, eax
je 0x42d9b4
push 0xffffffffffffffff
push dword [0x512dd4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x512dd8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [0x512dd4]
call esi
push 0x3e9
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0048d444
mov esp, ebp
pop ebp
ret
Function at 0x430080
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca490
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x50c3e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ecx + 4]
lea eax, [ebp - 0x3c]
push eax
call fcn.00427750
mov ebx, dword [ebp - 0x38]
xor ecx, ecx
mov eax, ebx
mov dword [ebp - 4], 0
mov edx, 4
mov dword [ebp - 0x34], ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048d478
mov ecx, dword [ebp - 0x3c]
add esp, 4
mov edx, eax
mov dword [ebp - 0x2c], edx
mov esi, dword [ecx]
cmp esi, ecx
je 0x4301e5
mov ebx, edx
jmp 0x430100
lea ecx, [esi + 8]
mov dword [ebx], 0
call fcn.004278f0
test eax, eax
jne 0x4301d1
lea ecx, [esi + 8]
call fcn.004278d0
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4301d1
lea ecx, [esi + 8]
call fcn.004278e0
test eax, eax
jne 0x430280
lea ecx, [esi + 8]
call fcn.00427740
test eax, eax
je 0x430280
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 8]
call fcn.004278b0
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 1
jb 0x43016f
mov eax, dword [eax]
push 0
push 0
push 0
push str._NOTIFY_EXIT_
push eax
call fcn.00437620
mov ecx, eax
call fcn.00437650
mov ecx, eax
call fcn.00430e30
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x4301cc
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4301c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x430291
push edx
push ecx
call fcn.0048d1e5
add esp, 8
mov edi, dword [ebp - 0x30]
mov dword [ebx], edi
mov esi, dword [esi]
add ebx, 4
cmp esi, dword [ebp - 0x3c]
jne 0x430100
mov edx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x34]
push 0x2710
push 1
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor esi, esi
test ebx, ebx
jle 0x430251
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2c]
lea esp, [esp]
mov eax, dword [ecx + esi*4]
test eax, eax
je 0x43024b
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push ecx
push eax
call ebx
test eax, eax
je 0x430240
cmp dword [ebp - 0x30], 0x103
jne 0x430240
mov eax, dword [ebp - 0x2c]
push 0
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x2c]
push dword [eax + esi*4]
call edi
mov ecx, dword [ebp - 0x2c]
inc esi
cmp esi, dword [ebp - 0x34]
jl 0x430210
push dword [ebp - 0x2c]
call fcn.0048d481
add esp, 4
lea ecx, [ebp - 0x3c]
call fcn.004271f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048d444
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x30]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x4301cf
call fcn.00498b39
int3
Function at 0x431f90
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x50c3e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.0048f8b0
add esp, 0xc
mov dword [ebp - 0x210], 0x104
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00403650
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0048d444
mov esp, ebp
pop ebp
ret 4
Function at 0x433f80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4caaa0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x50c3e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x14], eax
lea edi, [eax + 0x2c]
mov eax, dword [edi]
test eax, eax
jne 0x433ffe
push dword [0x50b424]
call fcn.004331a0
add esp, 4
mov ecx, dword [edi]
mov dword [ebp - 4], 0
mov dword [edi], eax
test ecx, ecx
je 0x433fdd
push ecx
mov ecx, edi
call fcn.00433180
mov eax, dword [edi]
mov dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x433ffe
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x14
call fcn.0048d1b5
mov esi, eax
mov dword [ebp - 0x10], eax
add esp, 4
mov dword [ebp - 0x18], esi
xor ecx, ecx
mov dword [ebp - 4], 1
push ecx
mov dword [eax], ecx
push ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
push ecx
mov dword [eax + 0xc], ecx
push ecx
mov dword [eax + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp + 0xc]
mov eax, esi
mov byte [ebp - 4], 2
mov dword [eax + 0x10], ebx
mov dword [eax + 8], ecx
mov eax, dword [edi]
test eax, eax
jne 0x434073
push dword [0x50b424]
call fcn.004331a0
add esp, 4
mov ecx, dword [edi]
mov byte [ebp - 4], 3
mov dword [edi], eax
test ecx, ecx
je 0x43406f
push ecx
mov ecx, edi
call fcn.00433180
mov eax, dword [edi]
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x10]
push edi
push 0
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4340a1
mov eax, dword [ebp + 8]
push eax
push str._ld_not_overlapped
call fcn.0041ebd0
add esp, 8
mov byte [ebp + 0xb], 1
jmp 0x4340ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x434102
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
push str._ld_readfile_failed:__ld
call fcn.0041ebd0
add esp, 0xc
mov byte [ebp + 0xb], 0
test ebx, ebx
je 0x4340da
cmp ebx, 0xffffffff
je 0x4340da
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [ebp + 0xb]
test esi, esi
je 0x4340ec
push 0x14
push esi
call fcn.0048d1e5
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x14]
xor esi, esi
add ecx, 0xc
mov dword [ebp - 0x18], esi
mov dword [ebp + 8], edi
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x434120
mov dword [eax], edi
add dword [ecx + 4], 4
jmp 0x43412a
lea edx, [ebp + 8]
push edx
push eax
call fcn.00407390
mov ecx, dword [ebp - 0x14]
add ecx, 0x18
mov dword [ebp - 0x1c], esi
mov dword [ebp + 8], ebx
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x434148
mov dword [eax], ebx
mov bl, 1
add dword [ecx + 4], 4
jmp 0x4340dd
lea edx, [ebp + 8]
push edx
push eax
call fcn.00407390
mov bl, 1
jmp 0x4340dd
Function at 0x434590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4345c0
xor edi, edi
jmp 0x434602
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
test esi, esi
cmove edi, dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
mov esi, eax
call fcn.0049cbdb
push 0
push edi
push edx
push eax
call fcn.0049e834
fld qword [0x4dadf8]
add esp, 0x14
fcompi st(1)
jbe 0x434656
mov eax, 0x10624dd3
mul esi
shr edx, 6
mov dword [ebp - 0x10], edx
fild dword [ebp - 0x10]
test edx, edx
jns 0x434642
fadd qword [0x4da528]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fcompi st(1)
fstp st(0)
jbe 0x434658
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
fstp st(0)
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x434660
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4346cc
mov esi, dword [ebp + 0x18]
mov dword [ebp - 8], 3
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 3
jne 0x4346cc
mov eax, dword [ebp - 0xc]
push dword [ebp - 4]
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4346e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
call fcn.0049cbdb
add esp, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x434747
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x435660
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cace2
mov eax, dword fs:[0]
push eax
sub esp, 0x830
mov eax, dword [0x50c3e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x83c], esi
mov dword [ebp - 0x834], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [ebp - 0x82c], 0
mov word [esi], cx
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], ecx
mov dword [ebp - 0x834], 1
jb 0x4356d8
mov eax, dword [eax]
lea ecx, [ebp - 0x82c]
push ecx
push 0x20019
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x435818
push 0x800
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.0048f8b0
add esp, 0xc
mov dword [ebp - 0x838], 0x400
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x830], 1
jb 0x43572b
mov edi, dword [edi]
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x830]
push eax
push 0
push edi
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43580c
cmp dword [ebp - 0x830], 1
jne 0x43580c
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x828]
call fcn.00403650
mov edi, eax
cmp esi, edi
je 0x435801
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x4357b9
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4357af
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x435835
mov eax, edx
push ecx
push eax
call fcn.0048d1e5
add esp, 8
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x828]
call fcn.00402320
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048d444
mov esp, ebp
pop ebp
ret
call fcn.00498b39
int3