joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5029e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x91c
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
test eax, eax
jne 0x502a10
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret 4
push ebx
push esi
push eax
lea ebx, [edi + 0x124]
push 0x104
push ebx
call fcn.00559feb
add esp, 0xc
lea eax, [edi + 0x20]
push 0x64
push eax
mov ecx, edi
mov dword [ebp - 0x91c], 0
call fcn.00502960
mov esi, eax
cmp esi, 0xffffffff
je 0x502aa2
push 0
lea eax, [ebp - 0x918]
push eax
push 0x808
lea ecx, [ebp - 0x914]
push ecx
push esi
mov dword [ebp - 0x918], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x502aa2
mov edx, dword [ebp - 0x918]
mov eax, ebx
mov byte [ebp + edx - 0x914], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x502a82
push 0
sub eax, edx
lea ecx, [ebp - 0x91c]
push ecx
inc eax
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x502ab7
pop esi
pop ebx
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x914]
push edx
lea eax, [edi + 0x20]
push eax
push 0x5cbe80
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00559bfd
add esp, 0x18
push 0x64
lea ecx, [ebp - 0x108]
push ecx
mov ecx, edi
mov byte [ebp - 5], 0
call fcn.00502960
mov ecx, dword [ebp - 4]
cmp eax, 0xffffffff
pop esi
mov dword [edi + 4], eax
setne al
pop ebx
xor ecx, ebp
pop edi
call fcn.00558b78
mov esp, ebp
pop ebp
ret 4

Function at 0x503340
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
push eax
mov esi, ecx
lea edi, [esi + 0x9d]
push 0x104
push edi
call fcn.00559feb
add esp, 0xc
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0x8000080
push 4
push 0
push 1
push 0x40000000
push edi
mov dword [esi + 8], eax
mov byte [esi + 0x9c], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x5033a0
pop edi
xor al, al
pop esi
pop ebp
ret 4
lea ecx, [ebp + 8]
push ecx
push 0
push esi
push 0x5032a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x503720
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [ecx + 0x14], 0x10
jb 0x50372b
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov eax, 1
jne 0x50373e
mov eax, esi
pop esi
ret
Function at 0x504800
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, ebx
call fcn.00503720
test eax, eax
jne 0x504834
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret 4
push edi
lea eax, [ebp - 0x21]
push eax
mov ecx, esi
mov byte [ebp - 0x21], 0
call fcn.005043c0
mov edi, eax
test edi, edi
jne 0x5048e2
mov ecx, dword [esi + 0x38]
call fcn.00503740
lea ecx, [ebp - 0x20]
push ecx
mov ecx, ebx
call fcn.005038c0
mov edx, 0x10
cmp dword [esi + 0x14], edx
jb 0x50486f
mov ecx, dword [esi]
jmp 0x504871
mov ecx, esi
cmp dword [eax + 0x14], edx
jb 0x504878
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
sete byte [ebp - 0x22]
cmp dword [ebp - 0xc], 0x10
jb 0x504898
mov edx, dword [ebp - 0x20]
push edx
call fcn.00558723
add esp, 4
cmp byte [ebp - 0x22], 0
je 0x5048c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov edi, eax
call fcn.00503720
test eax, eax
je 0x5048c8
push ebx
mov ecx, esi
call fcn.00504520
mov edi, eax
test edi, edi
jne 0x5048c8
push 1
mov ecx, ebx
call fcn.00504130
cmp byte [ebp - 0x21], 0
je 0x5048e0
mov ecx, esi
test edi, edi
je 0x5048db
call fcn.00504900
jmp 0x5048e0
call fcn.005044e0
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00558b78
mov esp, ebp
pop ebp
ret 4

Function at 0x505d80
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x505d8d
xor al, al
pop esi
ret
lea ecx, [esi + 8]
call fcn.00505a20
lea eax, [esi + 0x10]
push eax
push 4
push esi
push 0x505d60
push 0
push 0
call fcn.0055b93d
add esp, 0x18
mov dword [esi + 0xc], eax
test eax, eax
je 0x505d89
mov eax, dword [esi + 4]
test eax, eax
je 0x505dc3
push eax
mov ecx, esi
call fcn.00505c20
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
pop esi
ret
Function at 0x5061b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 4]
lea eax, [esi + 0x28]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x5062b2
push ebx
lea ebx, [edi + 1]
push ebx
call fcn.00541cf1
push ebx
push 0
push eax
mov dword [esi], eax
call fcn.0055aed0
mov edx, dword [esi]
mov eax, dword [ebp - 4]
add esp, 0x10
push edx
push edi
push eax
lea eax, [esi + 0x28]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
pop ebx
test eax, eax
je 0x5062b2
lea ecx, [ebp - 0x38]
push ecx
mov ecx, esi
call fcn.00506080
test eax, eax
je 0x5062b2
mov eax, dword [ebp - 0x30]
mov edx, eax
mov word [esi + 0xa], ax
mov eax, dword [ebp - 0x2c]
shr edx, 0x10
mov ecx, eax
mov word [esi + 0xe], ax
mov eax, dword [ebp - 0x28]
mov word [esi + 8], dx
shr ecx, 0x10
mov edx, eax
mov word [esi + 0x12], ax
mov eax, dword [ebp - 0x24]
mov word [esi + 0xc], cx
mov ecx, eax
shr edx, 0x10
mov word [esi + 0x16], ax
mov eax, dword [ebp - 0x18]
shr ecx, 0x10
mov word [esi + 0x10], dx
mov edx, dword [ebp - 0x1c]
mov word [esi + 0x14], cx
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x230]
mov dword [esi + 0x18], edx
mov edx, dword [ebp - 0x10]
push eax
mov dword [esi + 0x20], ecx
push 0x5d86b4
mov ecx, esi
mov dword [esi + 0x24], edx
call fcn.005060d0
lea ecx, [esi + 0x640]
push ecx
push 0x5d86a4
mov ecx, esi
call fcn.005060d0
lea edx, [esi + 0x438]
push edx
push 0x5d8698
mov ecx, esi
call fcn.005060d0
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x506860
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
push esi
mov esi, edx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
mov dword [ebp - 0x50], 0xc3d2e1f0
cmp ebx, 0x40
jl 0x5068f6
mov eax, ebx
shr eax, 6
mov dword [ebp - 0x4c], eax
neg eax
shl eax, 6
add ebx, eax
push edi
lea ebx, [ebx]
mov esi, dword [ebp - 0x48]
mov ecx, 0x10
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x40
lea eax, [ebp - 0x44]
call fcn.00506830
add dword [ebp - 0x48], 0x40
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x60]
call fcn.00506370
add esp, 4
dec dword [ebp - 0x4c]
jne 0x5068c0
mov esi, dword [ebp - 0x64]
pop edi
push 0x40
lea edx, [ebp - 0x44]
push 0
push edx
call fcn.0055aed0
mov eax, dword [ebp - 0x48]
push ebx
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.005592a0
add esp, 0x18
mov ecx, 0x40
lea eax, [ebp - 0x44]
mov byte [ebp + ebx - 0x44], 0x80
call fcn.00506830
inc ebx
cmp ebx, 0x38
jle 0x506948
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x60]
call fcn.00506370
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.0055aed0
add esp, 0x10
mov ecx, dword [ebp - 0x68]
lea edx, [ecx*8]
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 8], edx
call fcn.00506370
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x58]
mov dword [esi], ecx
mov ecx, dword [ebp - 0x54]
mov dword [esi + 4], edx
mov edx, dword [ebp - 0x50]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
add esp, 4
mov ecx, 0x14
mov eax, esi
mov dword [esi + 0x10], edx
call fcn.00506830
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00558b78
mov esp, ebp
pop ebp
ret
Function at 0x509a90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f6f6
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x62d12c]
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, ecx
cmp dword [esi + 0xcc], 0x10
lea eax, [esi + 0xb8]
jb 0x509ad0
mov eax, dword [eax]
push 0x14
push str.OnClose_i
push eax
push str.CUSBChannel
push 0x2ae
push str.USBChannel.cpp
lea ecx, [ebp - 0xac]
call fcn.004371e0
mov eax, dword [esi + 0x3c]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea edi, [esi + 0x40]
push edi
mov dword [ebp - 0xb8], vtable.CAutoUnlock.0
mov byte [ebp - 0xb4], 1
mov dword [ebp - 0xb0], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x2dc], 4
mov byte [ebp - 4], 1
je 0x509b51
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0xac]
mov dword [ebp - 4], 0xffffffff
call fcn.004372a0
mov eax, 1
jmp 0x509b93
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
lea eax, [esi + 4]
push eax
call edx
lea eax, [ebp - 0xbc]
push eax
push 0
push esi
push 0x509720
push 0
push 0
call fcn.0055b93d
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0xac]
mov dword [ebp - 4], 0xffffffff
call fcn.004372a0
xor eax, eax
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.00558b78
mov esp, ebp
pop ebp
ret

Function at 0x50a3f0
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x50a437
lea ecx, [esi + 0xc]
call fcn.0050a5d0
lea eax, [esi + 0x14]
push eax
push 4
push esi
push 0x50a210
push 0
push 0
call fcn.0055b93d
add esp, 0x18
mov dword [esi + 0x10], eax
test eax, eax
jne 0x50a43b
call fcn.005612bf
mov ecx, dword [eax]
push ecx
push str.Thread::Start_____begin_thread_call_failed__errno_d
push 1
call fcn.00530200
add esp, 0xc
xor al, al
pop esi
ret
mov eax, dword [esi + 4]
test eax, eax
je 0x50a44a
push eax
mov ecx, esi
call fcn.0050a0d0
mov edx, dword [esi + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
pop esi
ret

Function at 0x50aca0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
mov edx, dword [ebx + 0x24]
mov dword [ebx + 0x44], 0
test edx, edx
jne 0x50acbb
xor al, al
pop ebx
pop ebp
ret 8
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
push edi
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x50acc5
mov ecx, dword [ebp + 8]
sub eax, edi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
test eax, eax
je 0x50acf2
mov dword [ebx + 0x44], eax
xor edx, edx
test eax, eax
sete al
pop ebx
pop ebp
ret 8
Function at 0x50c790
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59fb66
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x62d12c]
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 eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov esi, ecx
mov edi, dword [esi + 0x24]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x248], edx
mov dword [esi + 0x44], 0
test edi, edi
jne 0x50c7f3
xor al, al
jmp 0x50c985
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x21a]
push ecx
mov byte [ebp - 0x239], 1
mov word [ebp - 0x21c], ax
call fcn.0055aed0
mov eax, dword [ebp + 8]
add esp, 0xc
push 0x105
lea edx, [ebp - 0x21c]
push edx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x50c842
mov dword [esi + 0x44], eax
mov byte [ebp - 0x239], 0
jmp 0x50c97f
xor ecx, ecx
mov word [ebp - 0x14], cx
test ebx, ebx
je 0x50c86e
mov edi, dword [ebp - 0x248]
test edi, edi
je 0x50c86e
push edi
lea edx, [ebp - 0x21c]
push edx
push ebx
call fcn.005614b1
add esp, 0xc
xor eax, eax
mov word [ebx + edi*2 - 2], ax
cmp dword [ebp - 0x244], 0
je 0x50c97f
cmp dword [ebp - 0x240], 0
jbe 0x50c97f
mov edi, dword [esi + 0x18]
lea edx, [esi + 4]
mov ebx, 8
cmp edi, ebx
jb 0x50c89b
mov eax, dword [edx]
jmp 0x50c89d
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x50c8a0
sub eax, esi
sar eax, 1
dec eax
xor esi, esi
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x24c], esi
lea ecx, [ebp - 0x248]
cmp eax, esi
ja 0x50c8ce
lea ecx, [ebp - 0x24c]
cmp edi, ebx
jb 0x50c8d6
mov eax, dword [edx]
jmp 0x50c8d8
mov eax, edx
mov ecx, dword [ecx]
cmp word [eax + ecx*2], 0x5c
push 0xffffffffffffffff
push edx
jne 0x50c91a
lea edx, [ebp - 0x238]
push edx
call fcn.0050c6b0
add esp, 0xc
mov dword [ebp - 4], esi
cmp dword [eax + 0x14], ebx
jb 0x50c8fd
mov eax, dword [eax]
mov edx, dword [ebp - 0x240]
lea ecx, [ebp - 0x21c]
push ecx
push eax
mov eax, dword [ebp - 0x244]
push str._s_s
push edx
push eax
jmp 0x50c952
lea ecx, [ebp - 0x238]
push ecx
call fcn.0050c6b0
add esp, 0xc
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], ebx
jb 0x50c937
mov eax, dword [eax]
mov ecx, dword [ebp - 0x244]
lea edx, [ebp - 0x21c]
push edx
push eax
mov eax, dword [ebp - 0x240]
push 0x5c0974
push eax
push ecx
call fcn.005613c2
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.004222c0
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x240]
xor edx, edx
mov word [eax + ecx*2 - 2], dx
mov al, byte [ebp - 0x239]
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.00558b78
mov esp, ebp
pop ebp
ret 0x14
Function at 0x50d6b0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
cmp dword [edi + 0x24], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x20c], ecx
mov dword [edi + 0x44], 0
jne 0x50d6fd
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret 0xc
cmp byte [edi + 0x28], 0
je 0x50d70f
push eax
mov ecx, edi
call fcn.0050cdb0
test al, al
je 0x50d6e9
push ebx
push 0x200
lea edx, [ebp - 0x204]
push 0
push edx
call fcn.0055aed0
add esp, 0xc
lea ebx, [ebp - 0x204]
mov dword [ebp - 0x210], 0x200
cmp esi, 0x200
jbe 0x50d758
push esi
call fcn.00541cf1
push esi
mov ebx, eax
push 0
push ebx
call fcn.0055aed0
add esp, 0x10
mov dword [ebp - 0x210], esi
mov edx, dword [ebp - 0x218]
lea eax, [ebp - 0x210]
push eax
mov eax, dword [edi + 0x24]
push ebx
lea ecx, [ebp - 0x214]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x50d78a
mov dword [edi + 0x44], eax
mov byte [ebp - 0x205], 0
jmp 0x50d7d5
mov eax, dword [ebp - 0x214]
cmp eax, 2
jne 0x50d7aa
mov edi, dword [ebp - 0x20c]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x50d7ce
jmp 0x50d7be
cmp eax, 1
je 0x50d7b8
mov byte [ebp - 0x205], 0
jmp 0x50d7d5
mov edi, dword [ebp - 0x20c]
push esi
push ebx
push edi
call fcn.0055d360
add esp, 0xc
mov byte [esi + edi - 1], 0
mov byte [ebp - 0x205], 1
lea ecx, [ebp - 0x204]
cmp ebx, ecx
je 0x50d7e8
push ebx
call fcn.0055a04a
add esp, 4
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x205]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00558b78
mov esp, ebp
pop ebp
ret 0xc
Function at 0x50d810
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, ecx
cmp dword [edi + 0x24], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x408], ebx
mov dword [edi + 0x44], 0
jne 0x50d863
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret 0xc
cmp byte [edi + 0x28], 0
je 0x50d875
push eax
mov ecx, edi
call fcn.0050cea0
test al, al
je 0x50d84f
push esi
push 0x400
lea edx, [ebp - 0x404]
push 0
push edx
call fcn.0055aed0
add ebx, ebx
add esp, 0xc
lea esi, [ebp - 0x404]
mov dword [ebp - 0x40c], 0x400
cmp ebx, 0x400
jbe 0x50d8c8
mov eax, ebx
push eax
mov dword [ebp - 0x40c], eax
call fcn.00541cf1
mov esi, eax
mov eax, dword [ebp - 0x40c]
push eax
push 0
push esi
call fcn.0055aed0
add esp, 0x10
mov eax, dword [ebp - 0x418]
lea ecx, [ebp - 0x40c]
push ecx
mov ecx, dword [edi + 0x24]
push esi
lea edx, [ebp - 0x414]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x50d8f5
mov dword [edi + 0x44], eax
xor bl, bl
jmp 0x50d95c
mov eax, dword [ebp - 0x414]
cmp eax, 2
jne 0x50d933
mov edx, dword [ebp - 0x408]
mov edi, dword [ebp - 0x410]
push edx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x50d95a
mov eax, dword [ebp - 0x408]
push eax
push esi
push edi
call fcn.005614b1
add esp, 0xc
xor ecx, ecx
mov word [ebx + edi - 2], cx
jmp 0x50d95a
cmp eax, 1
je 0x50d93c
xor bl, bl
jmp 0x50d95c
mov edx, dword [ebp - 0x408]
mov edi, dword [ebp - 0x410]
push edx
push esi
push edi
call fcn.005614b1
add esp, 0xc
xor eax, eax
mov word [ebx + edi - 2], ax
mov bl, 1
lea ecx, [ebp - 0x404]
cmp esi, ecx
je 0x50d96f
push esi
call fcn.0055a04a
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
pop edi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00558b78
mov esp, ebp
pop ebp
ret 0xc

Function at 0x50dd90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi + 0x24], 0
mov dword [esi + 0x44], 0
jne 0x50ddaf
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
cmp byte [esi + 0x28], 0
push edi
mov edi, dword [ebp + 8]
je 0x50ddc3
push edi
call fcn.0050cdb0
test al, al
je 0x50ddf1
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x24]
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push edi
push eax
mov dword [ebp + 8], 0
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x50ddfb
mov dword [esi + 0x44], eax
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp - 8], 4
jne 0x50ddf1
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
pop edi
mov dword [ecx], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x50de20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi + 0x24], 0
mov dword [esi + 0x44], 0
jne 0x50de3f
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
cmp byte [esi + 0x28], 0
push edi
mov edi, dword [ebp + 8]
je 0x50de53
push edi
call fcn.0050cea0
test al, al
je 0x50de81
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x24]
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push edi
push eax
mov dword [ebp + 8], 0
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x50de8b
mov dword [esi + 0x44], eax
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp - 8], 4
jne 0x50de81
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
pop edi
mov dword [ecx], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x50e510
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov ebx, ecx
xor edi, edi
cmp dword [ebx + 0x24], edi
je 0x50e5dd
mov eax, dword [ebx + 0x38]
mov ecx, dword [eax + 4]
push esi
push ecx
lea ecx, [ebx + 0x34]
call fcn.0050cfa0
mov eax, dword [ebx + 0x38]
mov dword [eax + 4], eax
mov eax, dword [ebx + 0x38]
mov dword [eax], eax
mov eax, dword [ebx + 0x38]
push 0x100
lea edx, [ebp - 0x107]
mov dword [eax + 8], eax
push edi
push edx
mov dword [ebx + 0x3c], edi
mov byte [ebp - 0x108], 0
call fcn.0055aed0
add esp, 0xc
mov edx, dword [ebx + 0x24]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x108]
push ecx
push edi
push edx
mov dword [ebp - 0x10c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x50e5d2
mov eax, dword [ebp - 0x10c]
push 0
lea ecx, [ebp - 0x108]
push ecx
lea ecx, [ebx + 0x34]
mov byte [ebp + eax - 0x108], 0
call fcn.0050e260
push eax
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebx + 0x34]
call fcn.0050d250
jmp 0x50e5d9
cmp eax, 0xea
jne 0x50e5dc
inc edi
jne 0x50e572
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00558b78
mov esp, ebp
pop ebp
ret
Function at 0x50f320
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a013b
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x62d12c]
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, ecx
cmp dword [esi + 0x24], 0
mov dword [esi + 0x44], 0
jne 0x50f452
push 0
call fcn.0050ef60
test al, al
je 0x50f430
lea eax, [ebp - 0x45c]
push eax
mov ecx, esi
mov dword [ebp - 0x45c], 0
call fcn.0050a8c0
test al, al
je 0x50f429
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x50f39a
mov eax, dword [eax]
mov ecx, dword [esi + 0x20]
push 0
push eax
push ecx
lea ecx, [ebp - 0x458]
call fcn.0050ebe0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x45c]
lea edi, [eax - 1]
test eax, eax
je 0x50f417
test edi, edi
js 0x50f417
xor edx, edx
push 0x3fe
push edx
lea eax, [ebp - 0x40e]
push eax
mov word [ebp - 0x410], dx
call fcn.0055aed0
add esp, 0xc
push 0
push 0
push 0x200
lea ecx, [ebp - 0x410]
push ecx
push edi
mov ecx, esi
call fcn.0050c790
test al, al
je 0x50f414
lea edx, [ebp - 0x410]
push edx
lea ecx, [ebp - 0x458]
call fcn.0050f580
test al, al
je 0x50f417
dec edi
jmp 0x50f3c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x458]
call fcn.0050e450
mov ecx, esi
call fcn.0050b020
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x50f43b
mov eax, dword [eax]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x50f456
cmp eax, 2
je 0x50f456
mov dword [esi + 0x44], eax
xor al, al
jmp 0x50f458
mov al, 1
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.00558b78
mov esp, ebp
pop ebp
ret

Function at 0x512520
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
je 0x51256b
mov eax, edx
push esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x512530
sub eax, esi
sar eax, 1
pop esi
je 0x51256b
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x51256b
cmp eax, 0xffffffff
jne 0x512567
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x512567
cmp eax, 0x21
je 0x512567
cmp eax, 0x24
jne 0x51256b
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x512570
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
je 0x5125ba
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x512580
sub eax, esi
pop esi
je 0x5125ba
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x5125ba
cmp eax, 0xffffffff
jne 0x5125b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x44
je 0x5125b6
cmp eax, 0x20
je 0x5125b6
cmp eax, 0x45
je 0x5125b6
cmp eax, 0x24
jne 0x5125ba
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret