joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4193d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x677000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x1c]
xorps xmm0, xmm0
xor ebx, ebx
push str.CNetworkSNMP::SearchDevice__Start
mov esi, ecx
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0xe], 0
mov byte [ebp - 0xd], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], ebx
call fcn.00418730
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esi + 0x78], eax
mov eax, edi
and eax, 1
mov dword [ebp - 0x24], 0x7d0
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0x2710
mov dword [ebp - 0x28], eax
je 0x4194a4
mov eax, dword [esi]
call eax
movq xmm0, qword [ebp - 0x24]
mov ecx, eax
sub esp, 0x10
mov eax, esp
mov dword [esi + 0x68], ecx
movq qword [eax], xmm0
movq xmm0, qword [ebp - 0x1c]
push ecx
mov ecx, esi
movq qword [eax + 8], xmm0
call fcn.00419340
mov byte [ebp - 0xe], al
test al, al
je 0x4194a4
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x419590
push ebx
push ebx
call fcn.005b9c34
add esp, 0x18
mov dword [ebp - 0x14], eax
and edi, 2
je 0x4194f1
mov ecx, dword [esi]
call ecx
movq xmm0, qword [ebp - 0x24]
sub esp, 0x10
mov ecx, esp
push eax
movq qword [ecx], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [ecx + 8], xmm0
mov ecx, esi
mov dword [esi + 0x6c], eax
call fcn.00419340
mov byte [ebp - 0xd], al
test al, al
je 0x4194f1
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x4195f0
push 0
push 0
call fcn.005b9c34
add esp, 0x18
mov ebx, eax
cmp dword [ebp - 0x28], 0
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
je 0x419536
cmp byte [ebp - 0xe], 0
je 0x419522
push 0xffffffffffffffff
push dword [ebp - 0x14]
call eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x38]
mov ecx, esi
push dword [ebp - 0x34]
push dword [esi + 0x68]
call fcn.00419250
push dword [esi + 0x68]
mov eax, dword [esi + 4]
call eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esi + 0x68], 0
test edi, edi
je 0x41956b
cmp byte [ebp - 0xd], 0
je 0x41955c
push 0xffffffffffffffff
push ebx
call eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2c]
mov ecx, esi
push dword [ebp - 0x30]
push dword [esi + 0x6c]
call fcn.00419250
push dword [esi + 0x6c]
mov eax, dword [esi + 4]
call eax
mov dword [esi + 0x6c], 0
push str.CNetworkSNMP::SearchDevice__end
call fcn.00418730
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b7f8f
mov esp, ebp
pop ebp
ret 0x18
Function at 0x41a260
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e40f8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x677000]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [0x74e2fc]
mov ebx, dword [ebp + 0x10]
push edi
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0
call fcn.0041b820
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov esi, 1
cmp eax, 2
jne 0x41a3c0
xorps xmm0, xmm0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push edi
mov dword [ebp - 0x34], 0
movq qword [ebp - 0x28], xmm0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x2c], esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x41a332
push eax
push str.SNMPIPAppointment::getaddrinfo__err:__d
push 0xffffffffffffffff
push 0x1000
push 0x74e818
call fcn.005b8769
add esp, 0x14
push 0x74e818
call fcn.00418730
push dword [ebp - 0x38]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x41a37c
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x18]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, eax
test edx, edx
jne 0x41a34b
xor ecx, ecx
jmp 0x41a359
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a350
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x3c]
call fcn.0041b9e0
push dword [ebp - 0x38]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push ebx
push dword [ebp - 0x3c]
push 0
mov ecx, dword [ebp - 0x40]
call fcn.0041a3d0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x3c]
add edi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41a3a0
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005b7f8f
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
je 0x41a36c
cmp eax, 1
jne 0x41a37c
push ebx
push dword [ebp - 0x3c]
push eax
jmp 0x41a372
Function at 0x41bc90
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, ecx
push str.pu2Open
push dword [edi]
call esi
push str.pu2Close
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.pu2SetIF
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.pu2SetIP
push dword [edi]
mov dword [edi + 0xc], eax
call esi
push str.pu2SetPrinterName
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.pu2SetUrl
push dword [edi]
mov dword [edi + 0x14], eax
call esi
push str.pu2SetTimeout
push dword [edi]
mov dword [edi + 0x18], eax
call esi
push str.pu2SetMasterPortOption
push dword [edi]
mov dword [edi + 0x1c], eax
call esi
push str.pu2Write
push dword [edi]
mov dword [edi + 0x28], eax
call esi
push str.pu2Read
push dword [edi]
mov dword [edi + 0x20], eax
call esi
cmp dword [edi + 4], 0
mov dword [edi + 0x24], eax
je 0x41bd54
cmp dword [edi + 8], 0
je 0x41bd54
cmp dword [edi + 0xc], 0
je 0x41bd54
cmp dword [edi + 0x10], 0
je 0x41bd54
cmp dword [edi + 0x14], 0
je 0x41bd54
cmp dword [edi + 0x18], 0
je 0x41bd54
cmp dword [edi + 0x1c], 0
je 0x41bd54
cmp dword [edi + 0x28], 0
je 0x41bd54
cmp dword [edi + 0x20], 0
je 0x41bd54
test eax, eax
je 0x41bd54
pop edi
mov eax, 1
pop esi
ret
mov ecx, edi
call fcn.0041bd60
pop edi
xor eax, eax
pop esi
ret

Function at 0x41c730
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x677000]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x258]
push eax
push ecx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41c788
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
test byte [ebp - 0x258], 0x10
je 0x41c77c
lea eax, [ebp - 0x258]
push eax
push esi
call edi
test eax, eax
jne 0x41c763
jmp 0x41c781
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.005b7f8f
mov esp, ebp
pop ebp
ret

Function at 0x41c7a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
jne 0x41c7c9
push str.CCommonApis::IfExistDir_param_error
call fcn.00418730
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push edi
call ebx
cmp eax, 1
jne 0x41c7ec
xor eax, eax
pop edi
pop esi
pop ebx
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41c7b3
test al, 0x10
je 0x41c7b3
push str.CCommonApis::EnsureDir_IfExistDir___None
call fcn.00418730
mov eax, 5
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x41c81b
xor esi, esi
lea esp, [esp]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push edi
call ebx
cmp eax, 1
je 0x41c7c3
inc esi
cmp esi, 0x3c
jl 0x41c800
pop edi
pop esi
mov eax, SysReAllocStringLen
pop ebx
ret
Function at 0x41c830
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x677000]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
mov dword [ebp - 0x66c], edx
mov edi, ecx
call fcn.005bb1c0
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.005bb1c0
add esp, 0xc
xor esi, esi
test edi, edi
jne 0x41c8b0
push str.CCommonApis::IfExistDir_param_error
call fcn.00418730
mov eax, SysReAllocStringLen
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b7f8f
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41c89a
test al, 0x10
je 0x41c89a
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x418]
push 0x104
push eax
call fcn.005b9367
add esp, 0x10
lea eax, [ebp - 0x418]
push 0x62c244
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x41c89a
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41c89a
jmp 0x41c910
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.005b9367
add esp, 0x10
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x41ca0a
mov eax, dword [ebp - 0x668]
test al, 0x10
je 0x41c9e3
mov ecx, 0x62c24c
lea eax, [ebp - 0x63c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c986
test dx, dx
je 0x41c982
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c986
add eax, 4
add ecx, 4
test dx, dx
jne 0x41c960
xor eax, eax
jmp 0x41c98b
sbb eax, eax
or eax, 1
test eax, eax
je 0x41ca0f
mov ecx, 0x62c250
lea eax, [ebp - 0x63c]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c9c6
test dx, dx
je 0x41c9c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c9c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41c9a0
xor eax, eax
jmp 0x41c9cb
sbb eax, eax
or eax, 1
test eax, eax
je 0x41ca0f
mov edx, dword [ebp - 0x66c]
inc edx
lea ecx, [ebp - 0x210]
call fcn.0041c830
jmp 0x41ca0f
test al, 1
je 0x41c9f9
push 0x80
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41ca0f
mov esi, SysReAllocStringLen
lea eax, [ebp - 0x668]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41c910
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x66c], 0
jle 0x41ca44
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x41c89a
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b7f8f
mov esp, ebp
pop ebp
ret
Function at 0x41ca60
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x677000]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [sym.imp.WININET.dll_InternetGetConnectedState]
push 0
lea eax, [ebp - 8]
push eax
call edi
cmp eax, 1
jne 0x41ca93
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b7f8f
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
xor esi, esi
lea ecx, [ecx]
push 0x3e8
call ebx
push 0
lea eax, [ebp - 8]
push eax
call edi
cmp eax, 1
je 0x41cacd
inc esi
cmp esi, 4
jl 0x41caa0
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b7f8f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
pop ebx
xor ecx, ebp
mov eax, 1
pop edi
call fcn.005b7f8f
mov esp, ebp
pop ebp
ret

Function at 0x41cb50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x677000]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1ff
lea eax, [ebp - 0x203]
push 0
push eax
mov edi, edx
mov ebx, ecx
mov byte [ebp - 0x204], 0
call fcn.005bb1c0
add esp, 0xc
lea eax, [ebp - 0x208]
push 0
push eax
push 0x1fe
lea eax, [ebp - 0x204]
push eax
push ebx
mov dword [ebp - 0x208], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x41cc23
mov edx, dword [ebp - 0x208]
cmp edx, 2
jbe 0x41cc23
lea ecx, [ebp - 0x204]
call fcn.0041caf0
cmp eax, 2
je 0x41cbd3
cmp eax, 1
jne 0x41cbd6
or dword [edi], 0x10
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push ebx
call edi
mov al, byte [ebp - 0x204]
cmp al, 0xfe
jne 0x41cc0b
cmp byte [ebp - 0x203], 0xff
je 0x41cc18
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b7f8f
mov esp, ebp
pop ebp
ret
cmp al, 0xff
jne 0x41cc21
cmp byte [ebp - 0x203], 0xfe
jne 0x41cc21
push 0
push 0
push 2
push ebx
call edi
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b7f8f
mov esp, ebp
pop ebp
ret
Function at 0x41f260
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x677000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [eax + 0x14], 8
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x14], 0
mov word [ebp - 0xc], cx
mov dword [ebp - 0xa], ecx
mov word [ebp - 6], cx
mov dword [ebp - 0x10], ecx
jb 0x41f297
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x41f2e8
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x10], 8
jb 0x41f2c3
mov esi, dword [esi]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x41f304
cmp edi, 0xea
je 0x41f304
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b7f8f
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.005b7f8f
mov esp, ebp
pop ebp
ret 8

Function at 0x41f320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x677000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [eax + 0x14], 8
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x14], 0
mov word [ebp - 0xc], cx
mov dword [ebp - 0xa], ecx
mov word [ebp - 6], cx
mov dword [ebp - 0x10], ecx
jb 0x41f357
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push 0x20119
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x41f3a8
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x10], 8
jb 0x41f383
mov esi, dword [esi]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x41f3c4
cmp edi, 0xea
je 0x41f3c4
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b7f8f
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.005b7f8f
mov esp, ebp
pop ebp
ret 8
Function at 0x41f3e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x677000]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
mov dword [ebp - 0x814], 0
mov dword [ebp - 0x810], 0
call fcn.005bb1c0
add esp, 0xc
mov dword [ebp - 0x808], 0
push 0
push 0x624ff8
push dword [edi + 0x10]
mov dword [ebp - 0x80c], 0
push ecx
mov ecx, edi
call fcn.00407060
test eax, eax
je 0x41f557
push 0
push 0x624ff8
push dword [esi + 0x10]
push ecx
mov ecx, esi
call fcn.00407060
test eax, eax
je 0x41f557
cmp dword [edi + 0x14], 8
jb 0x41f481
mov edi, dword [edi]
lea eax, [ebp - 0x810]
push eax
push 0x20019
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41f557
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x808], 0x800
jb 0x41f4b5
mov esi, dword [esi]
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x80c]
push eax
push 0
push esi
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x80c]
cmp eax, 1
je 0x41f54b
cmp eax, 7
jne 0x41f51a
mov eax, dword [ebp - 0x808]
xor ecx, ecx
add eax, 0xfffffffe
je 0x41f54b
lea edx, [ecx + 0x7c]
lea esp, [esp]
cmp word [ebp + ecx*2 - 0x804], 0
jne 0x41f513
mov word [ebp + ecx*2 - 0x804], dx
inc ecx
cmp ecx, eax
jb 0x41f500
jmp 0x41f54b
cmp eax, 4
jne 0x41f542
push dword [ebp - 0x804]
lea eax, [ebp - 0x804]
push 0x62623c
push 0xffffffffffffffff
push 0x400
push eax
call fcn.005b8769
add esp, 0x14
jmp 0x41f54b
xor eax, eax
mov word [ebp - 0x804], ax
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
cmp word [ebp - 0x804], ax
jne 0x41f577
xor ecx, ecx
jmp 0x41f58f
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f580
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x804]
push eax
mov ecx, ebx
call fcn.00406400
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.005b7f8f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41f5c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x677000]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
mov dword [ebp - 0x814], 0
mov dword [ebp - 0x810], 0
call fcn.005bb1c0
add esp, 0xc
mov dword [ebp - 0x808], 0
push 0
push 0x624ff8
push dword [edi + 0x10]
mov dword [ebp - 0x80c], 0
push ecx
mov ecx, edi
call fcn.00407060
test eax, eax
je 0x41f737
push 0
push 0x624ff8
push dword [esi + 0x10]
push ecx
mov ecx, esi
call fcn.00407060
test eax, eax
je 0x41f737
cmp dword [edi + 0x14], 8
jb 0x41f661
mov edi, dword [edi]
lea eax, [ebp - 0x810]
push eax
push 0x20119
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41f737
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x808], 0x800
jb 0x41f695
mov esi, dword [esi]
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x80c]
push eax
push 0
push esi
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x80c]
cmp eax, 1
je 0x41f72b
cmp eax, 7
jne 0x41f6fa
mov eax, dword [ebp - 0x808]
xor ecx, ecx
add eax, 0xfffffffe
je 0x41f72b
lea edx, [ecx + 0x7c]
lea esp, [esp]
cmp word [ebp + ecx*2 - 0x804], 0
jne 0x41f6f3
mov word [ebp + ecx*2 - 0x804], dx
inc ecx
cmp ecx, eax
jb 0x41f6e0
jmp 0x41f72b
cmp eax, 4
jne 0x41f722
push dword [ebp - 0x804]
lea eax, [ebp - 0x804]
push 0x62623c
push 0xffffffffffffffff
push 0x400
push eax
call fcn.005b8769
add esp, 0x14
jmp 0x41f72b
xor eax, eax
mov word [ebp - 0x804], ax
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
cmp word [ebp - 0x804], ax
jne 0x41f757
xor ecx, ecx
jmp 0x41f76f
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f760
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x804]
push eax
mov ecx, ebx
call fcn.00406400
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.005b7f8f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41f7a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x677000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
cmp dword [eax + 0x14], 8
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], 0
jb 0x41f7cb
mov eax, dword [eax]
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x41f825
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x41f7fb
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x41f803
mov edi, dword [edi]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
test ebx, ebx
pop edi
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.005b7f8f
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41f840
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x677000]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
mov dword [ebp - 0x808], 0
call fcn.005bb1c0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x41f891
mov eax, dword [edi]
jmp 0x41f893
mov eax, edi
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.005b9367
mov ecx, dword [edi + 0x10]
add esp, 0x10
xor eax, eax
test ecx, ecx
je 0x41f8d8
cmp word [ebp + eax*2 - 0x804], 0x7c
jne 0x41f8d3
cmp eax, 0x400
jae 0x41f988
xor edx, edx
mov word [ebp + eax*2 - 0x804], dx
inc eax
cmp eax, ecx
jb 0x41f8b3
add eax, eax
cmp eax, 0x800
jae 0x41f988
xor ecx, ecx
mov word [ebp + eax - 0x804], cx
add eax, 2
cmp eax, 0x800
jae 0x41f988
cmp dword [esi + 0x14], 8
mov word [ebp + eax - 0x804], cx
jb 0x41f90d
mov esi, dword [esi]
push 0
lea eax, [ebp - 0x808]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x41f96e
cmp dword [ebx + 0x14], 8
mov eax, dword [edi + 0x10]
jb 0x41f940
mov ebx, dword [ebx]
lea eax, [eax*2 + 4]
push eax
lea eax, [ebp - 0x804]
push eax
push 7
push 0
push ebx
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x808]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.005b7f8f
mov esp, ebp
pop ebp
ret 0xc
call fcn.005ba121
int3