joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b8fd
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x15c
cmp dword [0x522288], 0
mov word [ebp - 0x13a], 0x3a3f
mov byte [ebp - 0x138], 0
jne 0x42b930
mov dword [esp], str.Process_search_thread_is_not_started_
call fcn.0043d9e0
jmp 0x42b970
cmp dword [0x5210f4], 0
jne 0x42b956
mov dword [esp + 8], 0x34b
mov dword [esp + 4], str.process.c
mov dword [esp], str.blocking_process.hLock___NULL
call dword [0x491228]
mov dword [esp + 4], 4
mov dword [esp], 0x10
call sub.msvcrt.dll_calloc
mov ebx, eax
test eax, eax
jne 0x42b977
xor eax, eax
jmp 0x42bb09
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004082ed
mov dword [esp + 8], 0x104
mov edi, eax
lea eax, [ebp - 0x11c]
mov dword [esp + 4], eax
lea eax, [edi + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_QueryDosDeviceA]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x42b9bd
lea eax, [ebp - 0x11c]
mov esi, 1
call fcn.0042a28c
mov dword [ebx], eax
mov dword [esp], edi
lea edi, [ebp - 0x137]
call sub.msvcrt.dll_free
mov dword [esp + 4], edi
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0040a050
mov ecx, edi
mov al, byte [ecx]
test al, al
je 0x42ba4a
mov byte [ebp - 0x13a], al
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x14c], ecx
mov dword [esp + 4], eax
lea eax, [ebp - 0x13a]
mov dword [esp + 8], 0x104
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_QueryDosDeviceA]
mov ecx, dword [ebp - 0x14c]
sub esp, 0xc
test eax, eax
jne 0x42ba21
inc ecx
mov edi, esi
jmp 0x42ba46
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x14c], ecx
lea edi, [esi + 1]
call fcn.0042a28c
mov ecx, dword [ebp - 0x14c]
lea esi, [ebx + esi*4]
mov dword [esi], eax
inc ecx
cmp edi, 0x10
je 0x42ba4c
mov esi, edi
jmp 0x42b9dc
mov edi, esi
mov dword [esp + 4], 0x7d0
mov eax, dword [0x5210f4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
push esi
mov esi, eax
test eax, eax
je 0x42ba83
mov dword [esp], str.Could_not_obtain_process_search_lock
call fcn.0043d9e0
mov dword [esp], ebx
call sub.msvcrt.dll_free
jmp 0x42b970
cmp dword [0x5210f0], 0
jne 0x42badf
mov eax, dword [0x5210f0]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [0x5210f8]
inc dword [0x5210e4]
mov dword [0x5210f0], ebx
mov dword [0x5210ec], edi
mov dword [0x5210e0], 1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
push ecx
test eax, eax
jne 0x42bafa
call fcn.0043df77
mov dword [esp], str.Could_not_signal_start_event_to_process_search:__s
mov dword [esp + 4], eax
call fcn.0043d9e0
jmp 0x42bafa
mov eax, dword [0x5210f0]
cmp esi, dword [0x5210ec]
jae 0x42ba8c
mov eax, dword [eax + esi*4]
inc esi
mov dword [esp], eax
call sub.msvcrt.dll_free
jmp 0x42badf
mov eax, dword [0x5210f4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
push edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x42c57c
Capabilities:
Parse credit card information

Disassembly:
push ebp
xor eax, eax
xor edx, edx
mov ebp, esp
push edi
push esi
push ebx
push ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], 1
mov cl, byte [esi + edx]
test cl, cl
je 0x42c767
cmp eax, 0x1d
je 0x42c767
cmp cl, 0x3f
je 0x42c623
jg 0x42c5e4
cmp cl, 0x2b
je 0x42c616
jg 0x42c5ce
cmp cl, 0x24
je 0x42c609
cmp cl, 0x2a
jne 0x42c74b
mov byte [eax*8 + 0x522320], 5
jmp 0x42c75a
cmp cl, 0x2e
jne 0x42c74b
mov byte [eax*8 + 0x522320], 1
jmp 0x42c75a
cmp cl, 0x5c
je 0x42c630
cmp cl, 0x5e
je 0x42c5fc
cmp cl, 0x5b
je 0x42c6bf
jmp 0x42c74b
mov byte [eax*8 + 0x522320], 2
jmp 0x42c75a
mov byte [eax*8 + 0x522320], 3
jmp 0x42c75a
mov byte [eax*8 + 0x522320], 6
jmp 0x42c75a
mov byte [eax*8 + 0x522320], 4
jmp 0x42c75a
lea edi, [edx + 1]
lea ebx, [esi + edi]
mov cl, byte [ebx]
test cl, cl
je 0x42c75a
mov edx, edi
cmp cl, 0x64
je 0x42c67c
jg 0x42c665
cmp cl, 0x53
je 0x42c6a3
cmp cl, 0x57
je 0x42c689
cmp cl, 0x44
jne 0x42c6b0
mov byte [eax*8 + 0x522320], 0xb
jmp 0x42c75a
cmp cl, 0x73
je 0x42c696
cmp cl, 0x77
jne 0x42c6b0
mov byte [eax*8 + 0x522320], 0xc
jmp 0x42c75a
mov byte [eax*8 + 0x522320], 0xa
jmp 0x42c75a
mov byte [eax*8 + 0x522320], 0xd
jmp 0x42c75a
mov byte [eax*8 + 0x522320], 0xe
jmp 0x42c75a
mov byte [eax*8 + 0x522320], 0xf
jmp 0x42c75a
mov byte [eax*8 + 0x522320], 7
mov cl, byte [ebx]
jmp 0x42c753
cmp byte [esi + edx + 1], 0x5e
jne 0x42c6d8
mov byte [eax*8 + 0x522320], 9
cmp byte [esi + edx + 2], 0
je 0x42c6fc
inc edx
jmp 0x42c6e0
mov byte [eax*8 + 0x522320], 8
mov ecx, dword [ebp - 0x10]
mov edi, edx
inc edx
mov bl, byte [esi + edx]
cmp bl, 0x5d
je 0x42c727
test bl, bl
je 0x42c727
cmp bl, 0x5c
jne 0x42c714
cmp ecx, 0x26
jle 0x42c700
xor eax, eax
jmp 0x42c774
cmp byte [esi + edi + 2], 0
je 0x42c6fc
mov byte [ecx + 0x5222e0], 0x5c
lea edx, [edi + 2]
inc ecx
jmp 0x42c719
cmp ecx, 0x27
jg 0x42c6fc
mov bl, byte [esi + edx]
mov edi, edx
inc ecx
mov byte [ecx + 0x5222df], bl
jmp 0x42c6e5
cmp ecx, 0x27
jg 0x42c6fc
mov ebx, dword [ebp - 0x10]
lea edi, [ecx + 1]
mov byte [ecx + 0x5222e0], 0
mov dword [ebp - 0x10], edi
add ebx, 0x5222e0
mov dword [eax*8 + 0x522324], ebx
jmp 0x42c75a
mov byte [eax*8 + 0x522320], 7
mov byte [eax*8 + 0x522324], cl
cmp byte [esi + edx], 0
je 0x42c6fc
inc edx
inc eax
jmp 0x42c591
mov byte [eax*8 + 0x522320], 0
mov eax, 0x522320
pop edx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x42df6a
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
call fcn.0042d0e3
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp word [eax], 0x22
mov ebx, eax
jne 0x42dfad
mov dword [esp], eax
call sub.msvcrt.dll_wcslen
cmp word [ebx + eax*2 - 2], 0x22
jne 0x42dfad
mov dword [esp], ebx
call sub.msvcrt.dll_wcslen
mov word [ebx + eax*2 - 2], 0
lea eax, [ebx + 2]
mov dword [esp], eax
jmp 0x42dfb0
mov dword [esp], ebx
call esi
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov dword [esp], edi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, esi
push ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x42e0ab
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x2c
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push edx
call edi
test esi, esi
je 0x42e15e
mov dword [esp + 4], 2
mov dword [esp], esi
call sub.msvcrt.dll_calloc
mov dword [ebp - 0x1c], eax
call edi
cmp dword [ebp - 0x1c], 0
je 0x42e159
mov dword [esp + 8], esi
mov eax, dword [ebp - 0x1c]
xor esi, esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ebx, eax
sub esp, 0xc
call edi
test ebx, ebx
je 0x42e134
mov eax, dword [ebp - 0x1c]
call fcn.0042dfd9
mov esi, eax
call edi
test esi, esi
je 0x42e12d
mov dword [esp], esi
call sub.msvcrt.dll_strlen
lea ebx, [eax + 2]
call edi
jmp 0x42e134
mov eax, 0xe
xor ebx, ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_free
test esi, esi
mov eax, dword [ebp - 0x20]
je 0x42e160
mov dword [ebp - 0x1c], eax
mov dword [esp], esi
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x1c]
jmp 0x42e160
mov eax, 0xe
xor ebx, ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x42ed0d
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
mov esi, eax
lea eax, [ebp - 0x1c]
push ebx
xor ebx, ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x2001d
mov dword [esp + 8], edi
mov dword [esp + 4], 0x4a228d
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
jne 0x42edac
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edi, eax
push ecx
mov ebx, eax
push ecx
and edi, 0xfffffffd
je 0x42ed96
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, str.Key_is_not_empty
push edx
cmp ebx, 5
je 0x42ed82
call fcn.0043df77
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], str.Failed_to_delete_registry_key_HKCUSoftware_s:__s
call fcn.0043d9e0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
xor eax, eax
test edi, edi
sete al
jmp 0x42edae
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x42eec9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x28], eax
mov eax, 0x523c40
call fcn.0042d0e3
mov dword [ebp - 0x1c], eax
mov eax, 0x4a22c9
call fcn.0042d0e3
mov dword [esp + 4], 2
mov dword [esp], 0x104
mov edi, eax
call sub.msvcrt.dll_calloc
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
mov esi, eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
mov ebx, eax
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
sub esp, 0x10
mov dword [ebp - 0x24], eax
call eax
test ebx, ebx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
je 0x42ef7d
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x10], edx
mov dword [esp + 4], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0x104
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp], 0xfde9
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
sub esp, 0x20
mov ebx, eax
test eax, eax
jne 0x42ef7d
mov eax, dword [ebp - 0x24]
call eax
mov dword [ebp - 0x20], eax
test esi, esi
je 0x42ef89
mov dword [esp], esi
call sub.msvcrt.dll_free
test edi, edi
je 0x42ef95
mov dword [esp], edi
call sub.msvcrt.dll_free
cmp dword [ebp - 0x1c], 0
je 0x42efa6
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x42efbd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ecx, 0x82
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x220]
mov esi, eax
xor eax, eax
push ebx
lea ebx, [ebp - 0x220]
sub esp, 0x24c
rep stosd dword es:[edi], eax
mov dword [esp + 8], edx
xor eax, eax
xor edx, edx
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
sub esp, 0x10
mov dword [ebp - 0x22c], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor ecx, ecx
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 0x10], esi
mov edi, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 4], ebx
mov dword [esp + 0x14], 0x104
mov dword [esp + 0xc], 0xffffffff
mov dword [esp], 0xfde9
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
sub esp, 0x20
mov dword [esp], edi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push esi
mov eax, dword [ebp - 0x22c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x42f691
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
xor edx, edx
push ebx
mov ebx, eax
sub esp, 0x4c
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [esp + 4], 0x5c
mov dword [esp], eax
call sub.msvcrt.dll_strchr
test eax, eax
je 0x42f6d9
mov dword [esp + 8], 0x91
mov dword [esp + 4], 0x4a22f6
mov dword [esp], 0x4a230c
call dword [0x491228]
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], 0x2001d
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
je 0x42f70d
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x42f781
lea eax, [ebp - 0x1c]
mov dword [esp + 0x14], 7
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4a234a
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
sub esp, 0x24
test eax, eax
je 0x42f759
xor ebx, ebx
mov dword [ebp - 0x20], ebx
jmp 0x42f781
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub esp, 0x18
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x42f792
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x42f7a3
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x42f827
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ecx, 0x41
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x11c]
mov esi, eax
xor eax, eax
push ebx
mov ebx, edx
sub esp, 0x15c
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x124], 0xffffffff
rep stosd dword es:[edi], eax
xor ecx, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x12c], ecx
mov ecx, edx
rep stosb byte es:[edi], al
mov dword [ebp - 0x120], edx
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov edi, eax
test edi, edi
je 0x42f8f3
cmp byte [ebx + edi], 0x5c
je 0x42f885
dec edi
jmp 0x42f878
cmp edi, 0x103
ja 0x42f9e3
inc eax
mov ecx, ebx
mov edx, 0x104
mov dword [esp], eax
lea eax, [ebp - 0x11c]
call fcn.0042cf04
lea eax, [ebp - 0x12c]
mov byte [ebp + edi - 0x11c], 0
inc edi
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 8], eax
lea eax, [ebp - 0x11c]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
je 0x42f982
xor eax, eax
mov dword [ebp - 0x12c], eax
jmp 0x42f9bb
lea eax, [ebp - 0x130]
mov dword [esp + 0xc], 0x2001d
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4a228d
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
je 0x42f930
xor eax, eax
mov dword [ebp - 0x130], eax
jmp 0x42f9bb
lea eax, [ebp - 0x128]
xor esi, esi
mov dword [esp + 0x14], 7
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x12c]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4a2366
mov eax, dword [ebp - 0x130]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
sub esp, 0x24
test eax, eax
jne 0x42f8e6
lea eax, [ebp - 0x120]
xor ecx, ecx
add ebx, edi
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], ecx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x124]
mov dword [esp + 0xc], eax
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x12c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x42f9cf
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x42f9e3
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x42fc4c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
push ebx
mov ebx, ecx
sub esp, 0x3c
mov byte [edx], 0
mov dword [ebp - 0x1c], eax
mov dword [esp], ecx
mov dword [esp + 4], 2
call sub.msvcrt.dll_calloc
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov esi, eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [ebp - 0x24], eax
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
sub esp, 0xc
mov dword [ebp - 0x20], eax
call eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
test edx, edx
je 0x42fcdf
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
mov dword [esp], 0xfde9
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
sub esp, 0x20
test eax, eax
jne 0x42fcdf
mov eax, dword [ebp - 0x20]
call eax
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x42fceb
mov dword [esp], esi
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x1c]
mov byte [edi + ebx - 1], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x43ae7d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x11c]
push ebx
sub esp, 0x16c
mov dword [ebp - 0x144], ecx
mov ecx, 0x41
mov dword [ebp - 0x140], eax
xor eax, eax
rep stosd dword es:[edi], eax
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x124], 0xffffffff
mov dword [ebp - 0x120], 4
mov dword [eax], ecx
mov dword [esp], edx
call sub.msvcrt.dll_strlen
mov ebx, eax
test ebx, ebx
je 0x43af80
mov esi, dword [ebp - 0x13c]
cmp byte [esi + ebx], 0x5c
je 0x43aef7
dec ebx
jmp 0x43aee0
cmp ebx, 0x103
ja 0x43b07f
lea edx, [eax + 1]
mov ecx, 0x104
mov esi, dword [ebp - 0x13c]
lea edi, [ebp - 0x11c]
cmp edx, ecx
cmovbe ecx, edx
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x103
cmovae eax, ecx
mov byte [ebp + eax - 0x11c], 0
lea eax, [ebp - 0x12c]
mov byte [ebp + ebx - 0x11c], 0
inc ebx
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 8], eax
lea eax, [ebp - 0x11c]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x140]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
je 0x43b015
xor eax, eax
mov dword [ebp - 0x12c], eax
jmp 0x43b057
lea eax, [ebp - 0x130]
mov dword [esp + 0xc], 0x2001d
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4a5141
mov eax, dword [ebp - 0x140]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
je 0x43afc3
xor eax, eax
mov dword [ebp - 0x130], eax
jmp 0x43b057
lea eax, [ebp - 0x128]
xor edi, edi
xor esi, esi
mov dword [esp + 0x14], 7
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x12c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edi
mov dword [esp + 8], edi
mov dword [esp + 4], 0x4a514a
mov eax, dword [ebp - 0x130]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
sub esp, 0x24
test eax, eax
jne 0x43af73
lea eax, [ebp - 0x120]
xor ecx, ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x144]
mov dword [esp + 8], ecx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x124]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x13c]
add eax, ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x12c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x43b06b
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x43b07f
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x43c01b
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test ebx, ebx
je 0x43c05b
xor edx, edx
mov dword [ebx + 8], eax
mov dword [ebx + 4], edx
mov dword [esp + 4], 4
mov dword [esp], eax
call sub.msvcrt.dll_calloc
mov dword [ebx], eax
test eax, eax
jne 0x43c05b
mov dword [ebp + 8], str.Could_not_allocate_string_array
add esp, 0x14
pop ebx
pop ebp
jmp fcn.0043d9e0
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x43ce72
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x40
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [0x522ecc]
test eax, eax
je 0x43cef3
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], str.DisableLGP
call fcn.00426ea9
mov ebx, eax
test eax, eax
je 0x43cf0b
xor esi, esi
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], esi
call sub.msvcrt.dll_strtol
mov dword [esp], ebx
mov esi, eax
call sub.msvcrt.dll_free
test esi, esi
je 0x43cf0b
mov eax, dword [0x525ba0]
mov dword [esp + 0xc], str.LPG_handling_disabled__per_settings
jmp 0x43cf49
lea ecx, [ebp - 0x20]
mov edx, str.DisableLGP
mov eax, 0x80000001
call fcn.0043ae7d
cmp dword [ebp - 0x20], 0
jmp 0x43cee2
xor ecx, ecx
xor ebx, ebx
lea eax, [ebp - 0x1c]
mov dword [esp + 8], 0x43a815
mov dword [esp + 4], ebx
mov dword [esp], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
sub esp, 0x18
mov ebx, eax
test eax, eax
jne 0x43cfa2
mov eax, dword [0x525ba0]
mov dword [esp + 0xc], str.SetLGP:_Unable_to_start_thread
mov edx, 0xffc
mov dword [esp + 8], 0xffffffff
sub edx, eax
add eax, 0x524ba0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__snprintf_s]
mov byte [0x525b9b], 0
mov dword [esp], 0x524ba0
call sub.msvcrt.dll_strlen
lea edx, [eax + 2]
mov byte [eax + 0x524ba0], 0xd
mov dword [0x525ba0], edx
mov byte [eax + 0x524ba1], 0xa
mov byte [eax + 0x524ba2], 0
xor eax, eax
jmp 0x43d055
mov dword [esp + 4], 0x1388
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push edx
push edx
test eax, eax
je 0x43d038
mov eax, dword [0x525ba0]
mov edx, 0xffc
mov dword [esp + 0xc], str.SetLGP:_Killing_stuck_thread_
mov dword [esp + 8], 0xffffffff
sub edx, eax
add eax, 0x524ba0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__snprintf_s]
mov byte [0x525b9b], 0
mov dword [esp], 0x524ba0
call sub.msvcrt.dll_strlen
xor ecx, ecx
lea edx, [eax + 2]
mov byte [eax + 0x524ba0], 0xd
mov dword [0x525ba0], edx
mov byte [eax + 0x524ba1], 0xa
mov byte [eax + 0x524ba2], 0
mov dword [esp + 4], ecx
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push esi
push esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
jmp 0x43cf9b
lea eax, [ebp - 0x24]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
push edx
push edx
test eax, eax
je 0x43cf9b
mov eax, dword [ebp - 0x24]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret