joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b0900
Capabilities:
Read file via mapping

Disassembly:
push edi
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov eax, dword [esi + 4]
cmp edi, eax
je 0x4b0926
test eax, eax
je 0x4b0926
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov dword [esi + 4], edi
test eax, eax
je 0x4b095e
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov eax, dword [esi + 8]
cmp edi, eax
je 0x4b0952
test eax, eax
je 0x4b0952
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
cmp edi, eax
mov dword [esi + 8], edi
setne al
pop edi
ret
xor al, al
pop edi
ret

Function at 0x4b0a30
Capabilities:
Get file size

Disassembly:
mov eax, dword [eax]
sub esp, 0xc
cmp eax, 0xffffffff
je 0x4b0a57
xor ecx, ecx
mov dword [esp], ecx
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 4]
add esp, 0xc
ret
xor eax, eax
xor edx, edx
add esp, 0xc
ret

Function at 0x4b1070
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x6b06f8]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
xor ebx, ebx
push 0xfe
lea ecx, [esi + 0x16]
xor eax, eax
push ebx
push ecx
mov dword [esi], 0x114
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov word [esi + 0x14], ax
call fcn.005783f0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esi + 4], 6
jne 0x4b11a5
cmp dword [esi + 8], 2
jne 0x4b11a5
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 3
push 2
push ebx
push ebx
call edi
push 3
push 1
push edx
push eax
call edi
push 1
push 8
push edx
push eax
call edi
mov ecx, dword [esi + 0xc]
mov edi, eax
mov eax, dword [esi + 8]
mov ebp, edx
mov edx, dword [esi + 4]
push 0xfe
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
mov edx, dword [esi + 0x10]
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x26]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x18], 0x11c
mov dword [esp + 0x28], edx
mov word [esp + 0x2c], ax
call fcn.005783f0
add esp, 0xc
push ebp
xor edx, edx
push edi
mov word [esp + 0x128], dx
push 0xb
lea edx, [esp + 0x18]
xor eax, eax
xor ecx, ecx
mov byte [esp + 0x132], bl
mov byte [esp + 0x133], bl
mov ebx, dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push edx
mov word [esp + 0x132], ax
mov word [esp + 0x134], cx
call ebx
test eax, eax
je 0x4b118b
nop
mov eax, dword [esp + 0x14]
push ebp
mov dword [esi + 8], eax
inc eax
push edi
mov dword [esp + 0x1c], eax
push 0xb
lea eax, [esp + 0x18]
push eax
call ebx
test eax, eax
jne 0x4b1170
pop edi
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0057372c
add esp, 0x120
ret
mov ecx, dword [esp + 0x120]
pop ebx
xor ecx, esp
mov eax, esi
call fcn.0057372c
add esp, 0x120
ret
Function at 0x4cdd80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov dword [esi], 0
jmp 0x4cdd90
mov eax, dword [esi]
mov edx, dword [ebx + 4]
mov ecx, edi
sub ecx, eax
push ecx
add eax, ebp
push eax
push edx
call fcn.0057c076
add esp, 0xc
test eax, eax
jle 0x4cddb0
add dword [esi], eax
cmp dword [esi], edi
jb 0x4cdd90
pop ebp
test eax, eax
jge 0x4cddd2
call fcn.00578d71
mov eax, dword [eax]
push eax
call fcn.00578cc3
push eax
push 0xffffffffffffffff
push ebx
call fcn.004cec30
add esp, 0x10
or eax, 0xffffffff
ret
jne 0x4cdddb
mov dword [ebx + 0x28], 1
xor eax, eax
ret
Function at 0x4e0430
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x4e0480
Capabilities:
Allocate thread local storage

Disassembly:
push ecx
cmp dword [0x6aebb4], 0xffffffff
jne 0x4e0504
test byte [0x6b59d4], 1
jne 0x4e04b3
or dword [0x6b59d4], 1
push 0
mov ecx, 0x6b59d0
call fcn.004dc580
push 0x5cbf50
call fcn.005743a6
add esp, 4
push 0x6b59d0
lea ecx, [esp + 4]
call fcn.004b24b0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x6aebb4], eax
mov eax, dword [esp]
test al, 1
je 0x4e0504
and eax, 0xfffffffe
mov ecx, eax
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4e04e8
add esp, 4
jmp fcn.004dc610
push esi
mov esi, eax
xor edx, edx
mov eax, 1
lock cmpxchg dword [esi], edx
pop esi
cmp eax, 1
je 0x4e0504
add esp, 4
jmp fcn.004dc640
pop ecx
ret
Function at 0x4e0bf0
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 4]
lea eax, [esi + 0x4c]
push eax
lea ecx, [esp + 0x14]
call fcn.004b24b0
cmp byte [esi + 0x53], 0
mov ebx, dword [esp + 0x10]
je 0x4e0c8a
test bl, 1
je 0x4e0c45
and ebx, 0xfffffffe
mov ecx, ebx
and ecx, 0xfffffffe
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4e0c2d
call fcn.004dc610
jmp 0x4e0c45
mov ebp, eax
xor edx, edx
mov eax, 1
lock cmpxchg dword [ebp], edx
cmp eax, 1
je 0x4e0c45
call fcn.004dc640
push 0xffffffffffffffff
mov ecx, edi
call fcn.004e0780
test ebx, ebx
je 0x4e0c8a
test bl, 1
jne 0x4e0c8a
mov ecx, ebx
and ecx, 0xfffffffe
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4e0c6b
call fcn.004dc8f0
jmp 0x4e0c87
mov ebp, eax
mov edx, 1
xor eax, eax
lock cmpxchg dword [ebp], edx
test eax, eax
sete al
test al, al
jne 0x4e0c87
call fcn.004dc670
or ebx, 1
cmp byte [esi + 0x50], 0
jne 0x4e0d72
mov ecx, dword [esi + 0x5c]
lea eax, [esi + 0x68]
push eax
push 4
push edi
push 0x4e0ad0
push ecx
push 0
mov byte [esi + 0x50], 1
mov byte [esi + 0x51], 0
mov byte [esi + 0x52], 0
mov byte [esi + 0x54], 0
mov dword [esi + 0x58], 0
call fcn.005755cb
add esp, 0x18
mov dword [esi + 0x64], eax
test eax, eax
jne 0x4e0cee
call fcn.00578d71
mov edx, dword [eax]
push str.QThread::start:_Failed_to_create_thread
push edx
call fcn.004b1760
add esp, 8
mov byte [esi + 0x50], 0
mov byte [esi + 0x51], 1
jmp 0x4e0d72
mov eax, dword [esp + 0x18]
mov dword [esi + 0x60], eax
cmp eax, 6
ja case.default.0x4e0cfa
jmp dword [eax*4 + 0x4e0db0]
mov eax, 0xfffffff1
jmp 0x4e0d3a
mov eax, 0xfffffffe
jmp 0x4e0d3a
or eax, 0xffffffff
jmp 0x4e0d3a
xor eax, eax
jmp 0x4e0d3a
mov eax, 1
jmp 0x4e0d3a
mov eax, 2
jmp 0x4e0d3a
mov eax, 0xf
jmp 0x4e0d3a
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push eax
mov eax, dword [esi + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x4e0d56
push str.QThread::start:_Failed_to_set_thread_priority
call fcn.004b1680
add esp, 4
mov ecx, dword [esi + 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4e0d72
push str.QThread::start:_Failed_to_resume_new_thread
call fcn.004b1680
add esp, 4
test bl, 1
je 0x4e0da8
and ebx, 0xfffffffe
mov ecx, ebx
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4e0d91
call fcn.004dc610
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov esi, eax
xor edx, edx
mov eax, 1
lock cmpxchg dword [esi], edx
cmp eax, 1
je 0x4e0da8
call fcn.004dc640
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x4e0d26
Capabilities:
Resume thread

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 4]
lea eax, [esi + 0x4c]
push eax
lea ecx, [esp + 0x14]
call fcn.004b24b0
cmp byte [esi + 0x53], 0
mov ebx, dword [esp + 0x10]
je 0x4e0c8a
test bl, 1
je 0x4e0c45
and ebx, 0xfffffffe
mov ecx, ebx
and ecx, 0xfffffffe
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4e0c2d
call fcn.004dc610
jmp 0x4e0c45
mov ebp, eax
xor edx, edx
mov eax, 1
lock cmpxchg dword [ebp], edx
cmp eax, 1
je 0x4e0c45
call fcn.004dc640
push 0xffffffffffffffff
mov ecx, edi
call fcn.004e0780
test ebx, ebx
je 0x4e0c8a
test bl, 1
jne 0x4e0c8a
mov ecx, ebx
and ecx, 0xfffffffe
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4e0c6b
call fcn.004dc8f0
jmp 0x4e0c87
mov ebp, eax
mov edx, 1
xor eax, eax
lock cmpxchg dword [ebp], edx
test eax, eax
sete al
test al, al
jne 0x4e0c87
call fcn.004dc670
or ebx, 1
cmp byte [esi + 0x50], 0
jne 0x4e0d72
mov ecx, dword [esi + 0x5c]
lea eax, [esi + 0x68]
push eax
push 4
push edi
push 0x4e0ad0
push ecx
push 0
mov byte [esi + 0x50], 1
mov byte [esi + 0x51], 0
mov byte [esi + 0x52], 0
mov byte [esi + 0x54], 0
mov dword [esi + 0x58], 0
call fcn.005755cb
add esp, 0x18
mov dword [esi + 0x64], eax
test eax, eax
jne 0x4e0cee
call fcn.00578d71
mov edx, dword [eax]
push str.QThread::start:_Failed_to_create_thread
push edx
call fcn.004b1760
add esp, 8
mov byte [esi + 0x50], 0
mov byte [esi + 0x51], 1
jmp 0x4e0d72
mov eax, dword [esp + 0x18]
mov dword [esi + 0x60], eax
cmp eax, 6
ja case.default.0x4e0cfa
jmp dword [eax*4 + 0x4e0db0]
mov eax, 0xfffffff1
jmp 0x4e0d3a
mov eax, 0xfffffffe
jmp 0x4e0d3a
or eax, 0xffffffff
jmp 0x4e0d3a
xor eax, eax
jmp 0x4e0d3a
mov eax, 1
jmp 0x4e0d3a
mov eax, 2
jmp 0x4e0d3a
mov eax, 0xf
jmp 0x4e0d3a
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push eax
mov eax, dword [esi + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x4e0d56
push str.QThread::start:_Failed_to_set_thread_priority
call fcn.004b1680
add esp, 4
mov ecx, dword [esi + 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4e0d72
push str.QThread::start:_Failed_to_resume_new_thread
call fcn.004b1680
add esp, 4
test bl, 1
je 0x4e0da8
and ebx, 0xfffffffe
mov ecx, ebx
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4e0d91
call fcn.004dc610
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov esi, eax
xor edx, edx
mov eax, 1
lock cmpxchg dword [esi], edx
cmp eax, 1
je 0x4e0da8
call fcn.004dc640
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x4e10d0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0x6b59cc
lea ecx, [esp + 8]
call fcn.004b24b0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x6b59c0]
jne 0x4e113a
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 4]
test al, 1
je 0x4e11c3
and eax, 0xfffffffe
mov ecx, eax
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4e111b
pop esi
add esp, 4
jmp fcn.004dc610
mov esi, eax
xor edx, edx
mov eax, 1
lock cmpxchg dword [esi], edx
cmp eax, 1
je 0x4e11c3
pop esi
add esp, 4
jmp fcn.004dc640
lea eax, [esp + 0xc]
push eax
mov ecx, 0x6aebb8
call fcn.0052c2c0
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x6aebbc
call fcn.0052c2c0
cmp dword [0x6b59c0], 0
jne 0x4e11ad
cmp dword [0x6b59c4], 0
jne 0x4e118c
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x6b59c4
mov ecx, 0x6aebb8
mov dword [0x6b59c4], eax
call fcn.004e0dd0
push 0x6b59c0
push 0
push 0
push 0x4e0e70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [esp + 4]
jmp 0x4e10fd
mov edx, dword [0x6b59c4]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esp + 4]
jmp 0x4e10fd
pop esi
pop ecx
ret
Function at 0x4e11d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 8
call fcn.004e0480
mov eax, dword [0x6aebb4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4e130c
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
push ecx
push 2
mov dword [esp + 0x14], eax
call fcn.004b1c60
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
add esp, 8
test al, al
je 0x4e1258
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 4]
mov esi, dword [eax + 0x74]
mov ecx, dword [0x6aebb4]
push ebp
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
mov byte [eax + 0x50], 1
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
mov byte [edx + 0x51], 0
mov edi, dword [esp + 0x10]
mov ebp, dword [edi + 4]
add edi, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [ebp + 0x64], eax
mov edi, dword [edi]
call ebx
mov dword [edi + 0x68], eax
pop ebp
jmp 0x4e12a6
push 0x48
call fcn.005737a7
add esp, 4
test eax, eax
je 0x4e1273
push 1
mov ecx, eax
call fcn.004da950
mov esi, eax
jmp 0x4e1275
xor esi, esi
mov eax, dword [0x6aebb4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 8
call fcn.005737a7
add esp, 4
test eax, eax
je 0x4e129a
push esi
mov ecx, eax
call fcn.004dabe0
jmp 0x4e129c
xor eax, eax
mov ecx, esi
mov dword [esi + 4], eax
call fcn.004dabb0
mov byte [esi + 0x38], 1
call ebx
mov dword [esi + 8], eax
cmp dword [0x6b5974], 0
jne 0x4e12ca
mov ecx, dword [esi + 4]
pop edi
mov eax, esi
pop esi
mov dword [0x6b5974], ecx
pop ebx
add esp, 8
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], 0xffffffff
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.004e10d0
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 8
ret
Function at 0x4fddf0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x224
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0x1c]
push 0x104
mov ecx, eax
push ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0x104
call edi
mov esi, eax
cmp esi, 0x104
jbe 0x4fde53
cmp esi, dword [esp + 0xc]
mov dword [esp + 8], esi
lea eax, [esp + 0xc]
jl 0x4fde3c
lea eax, [esp + 8]
mov edx, dword [eax]
push edx
push esi
lea ecx, [esp + 0x14]
call fcn.004fdd60
mov eax, dword [esp + 0x14]
push esi
push eax
call edi
mov esi, eax
mov ecx, dword [esp + 0x14]
push esi
push ecx
push ebx
call fcn.004bae70
mov eax, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x1c]
pop edi
pop esi
cmp eax, edx
je 0x4fde79
push eax
call fcn.004be5e0
add esp, 4
mov eax, ebx
add esp, 0x224
ret
Function at 0x500af0
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x78], 0
mov dword [esp + 0x1c], edi
mov dword [edi], vtable.QWinSettingsPrivate.0
je 0x500c71
mov eax, dword [edi + 0x74]
cmp dword [eax + 8], 0
je 0x500c71
lea esi, [eax + 0x10]
mov ecx, esi
call fcn.004fe350
test eax, eax
je 0x500c71
cmp byte [esi + 0xc], 0
jne 0x500c71
mov ecx, esi
call fcn.004fe350
test eax, eax
je 0x500c71
mov dword [esp + 0xc], 0x6ae0d4
mov eax, 0x6ae0d4
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, dword [edi + 0x74]
cmp dword [eax + 8], 0
je 0x500b81
lea esi, [eax + 0x10]
mov ecx, esi
call fcn.004fe350
test eax, eax
je 0x500b81
cmp byte [esi + 0xc], 0
jne 0x500b81
mov ecx, esi
call fcn.004fe350
mov esi, eax
jmp 0x500b83
xor esi, esi
lea ecx, [esp + 0xc]
call fcn.004b9cd0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x500c57
mov edx, dword [edi + 0x74]
mov ecx, dword [edx + 0x18]
mov dword [esp + 8], ecx
mov edx, 1
lock xadd dword [ecx], edx
lea ecx, [esp + 0x14]
push ecx
lea esi, [esp + 0x1c]
call fcn.004fe5e0
mov ecx, eax
call fcn.004b9890
mov ecx, eax
call fcn.00452199
push eax
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x10]
call fcn.004b9890
mov ecx, eax
call fcn.00452199
push eax
push str.QSettings:_Failed_to_delete_key___s_:__s
call fcn.004b1640
mov eax, dword [esp + 0x1c]
add esp, 0xc
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x500c09
mov edx, dword [esp + 0x10]
push edx
call fcn.004be5e0
add esp, 4
mov eax, dword [esp + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x500c23
mov edx, dword [esp + 8]
push edx
call fcn.004b7f30
add esp, 4
mov eax, dword [esp + 0x14]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x500c3d
mov edx, dword [esp + 0x14]
push edx
call fcn.004be5e0
add esp, 4
mov eax, dword [esp + 0x18]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x500c57
mov edx, dword [esp + 0x18]
push edx
call fcn.004b7f30
add esp, 4
mov eax, dword [esp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x500c71
mov edx, dword [esp + 0xc]
push edx
call fcn.004b7f30
add esp, 4
mov eax, dword [edi + 0x74]
lea esi, [edi + 0x74]
push ebp
xor ebp, ebp
cmp dword [eax + 8], ebp
jle 0x500cc8
push ebx
xor ebx, ebx
mov eax, dword [esi]
mov ecx, dword [eax]
cmp ecx, 1
je 0x500c9c
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
push edx
push eax
mov ecx, esi
call fcn.004fe8b0
mov ecx, dword [esi]
mov eax, dword [ebx + ecx + 0x14]
lea edi, [ebx + ecx + 0x10]
test eax, eax
je 0x500cb1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [edi + 4], 0
mov edx, dword [esi]
inc ebp
add ebx, 0x10
cmp ebp, dword [edx + 8]
jl 0x500c82
mov edi, dword [esp + 0x24]
pop ebx
mov eax, dword [esi]
pop ebp
test eax, eax
je 0x500ce2
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x500ce2
mov edx, dword [esi]
push edx
mov ecx, esi
call fcn.004fe860
mov ecx, edi
pop edi
pop esi
add esp, 0x18
jmp fcn.004c25a0
Function at 0x503550
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
xor ebx, ebx
mov dword [edi], ebx
mov eax, dword [esi + 4]
lea ecx, [edi + 4]
mov dword [ecx], eax
mov edx, 1
lock xadd dword [eax], edx
mov eax, dword [esi + 8]
mov dword [ecx + 4], eax
mov edx, 1
lock xadd dword [eax], edx
movzx eax, word [esi + 0xc]
mov word [ecx + 8], ax
mov dx, word [esi + 0xe]
mov word [ecx + 0xa], dx
movzx eax, word [esi + 0x10]
mov word [ecx + 0xc], ax
mov edx, dword [esi + 0x18]
lea eax, [edi + 0x18]
mov dword [eax], edx
mov edx, dword [esi + 0x1c]
mov dword [eax + 4], edx
mov edx, dword [esi + 0x20]
mov dword [eax + 8], edx
mov edx, dword [esi + 0x24]
mov dword [eax + 0xc], edx
mov edx, dword [esi + 0x28]
mov dword [eax + 0x10], edx
mov edx, dword [esi + 0x2c]
mov dword [eax + 0x14], edx
mov edx, dword [esi + 0x30]
mov dword [eax + 0x18], edx
mov edx, dword [esi + 0x34]
mov dword [eax + 0x1c], edx
mov edx, dword [esi + 0x38]
mov dword [eax + 0x20], edx
mov edx, dword [esi + 0x3c]
mov dword [eax + 0x24], edx
mov edx, dword [esi + 0x40]
push eax
push ecx
mov dword [eax + 0x28], edx
call fcn.0052b4e0
add esp, 8
mov dword [edi + 0x48], eax
lea eax, [edi + 0x4c]
lea ecx, [ebx + 8]
push ebp
lea ecx, [ecx]
mov dword [eax], 0x6ae0d4
mov edx, 0x6ae0d4
mov ebp, 1
lock xadd dword [edx], ebp
add eax, 4
sub ecx, 1
jns 0x5035f0
lea eax, [edi + 0x70]
mov ecx, 1
jmp 0x503620
mov dword [eax], 0x6ae0d4
mov edx, 0x6ae0d4
mov ebp, 1
lock xadd dword [edx], ebp
add eax, 4
sub ecx, 1
jns 0x503620
and byte [edi + 0x7c], 0xfe
and dword [edi + 0x78], 0xc0000000
mov cl, byte [esi + 0x7c]
mov al, byte [edi + 0x7c]
xor cl, al
and cl, 2
xor cl, al
mov dword [edi + 0x80], ebx
mov dword [edi + 0x88], ebx
mov dword [edi + 0x8c], ebx
mov byte [edi + 0x7c], cl
lea esi, [edi + 0x90]
mov ebx, 2
pop ebp
mov ecx, esi
call fcn.004f5150
add esi, 4
sub ebx, 1
jns 0x503675
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
Function at 0x511680
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esi + 0x2c]
push edi
lea esp, [esp]
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea edx, [ecx + ebp - 0x106]
mov dword [esp + 0xc], edi
cmp eax, edx
jb 0x511710
mov eax, dword [esi + 0x38]
push ebp
lea ecx, [eax + ebp]
push ecx
push eax
call fcn.005784a0
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], ebp
sub dword [esi + 0x6c], ebp
add esp, 0xc
sub dword [esi + 0x5c], ebp
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x5116df
sub eax, ebp
jmp 0x5116e1
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x5116d0
mov ecx, dword [esi + 0x40]
mov edx, ebp
lea ecx, [ecx + ebp*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x511700
sub eax, ebp
jmp 0x511702
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x5116f1
add edi, ebp
mov dword [esp + 0xc], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x51183f
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [esp + 0xc]
mov ebx, ecx
mov dword [esp + 0x10], eax
cmp ebx, edx
jbe 0x511738
mov ebx, edx
test ebx, ebx
je 0x511789
mov edx, dword [edi + 0x1c]
sub ecx, ebx
mov dword [edi + 4], ecx
mov ecx, dword [edx + 0x18]
cmp ecx, 1
jne 0x51175b
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
push eax
push ecx
call fcn.0052e7d0
jmp 0x51176d
cmp ecx, 2
jne 0x511777
mov edx, dword [edi]
mov eax, dword [edi + 0x30]
push ebx
push edx
push eax
call fcn.0050fa30
mov dword [edi + 0x30], eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [edi]
push ebx
push ecx
push eax
call fcn.005784a0
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x5117b3
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
add edx, eax
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x5117c7
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x511690
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x51183f
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x51180e
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x5117ee
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.005783f0
add esp, 0xc
add ebx, edi
pop edi
pop ebp
mov dword [esi + 0x16c0], ebx
pop ebx
add esp, 8
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x51183f
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x511828
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call fcn.005783f0
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebp
pop ebx
add esp, 8
ret