joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450dcd
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x22c
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.00439650
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [edi + 4]
cmp eax, dword [0x470198]
je 0x450ed4
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x450e3d
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x450e44
cmp ebx, ebx
jne 0x450e44
xor eax, eax
jmp 0x450ed7
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x450e51
mov byte [esi + 0x20], bl
jmp 0x450e65
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0042e87f
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.0042e87f
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.0042e87f
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x450ec0
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x450ed4
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4515f6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [ebp - 8]
push eax
push 0x467f70
xor ebx, ebx
push 0x80000000
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x4516a1
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call esi
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x45169b
lea eax, [ebp + 8]
push eax
push 0x470218
push dword [ebp - 4]
mov dword [ebp + 8], ebx
call esi
test eax, eax
jne 0x451696
mov ecx, dword [ebp + 0xc]
push 0x104
call fcn.00401ef0
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x467b64
push dword [ebp + 8]
mov dword [ebp - 0xc], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
mov esi, eax
call fcn.0042d064
push dword [ebp + 8]
xor eax, eax
cmp esi, ebx
sete al
mov ebx, eax
call edi
push dword [ebp - 4]
call edi
push dword [ebp - 8]
call edi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x4516eb
Capabilities:
Get disk information

Disassembly:
mov eax, 0x465e0b
call fcn.004395e0
sub esp, 0x25c
mov eax, dword [0x481610]
xor eax, dword [ebp + 4]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x451735
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor eax, eax
jmp 0x4517ca
push ebx
call fcn.0044ff32
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.004516a9
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x4517bc
push esi
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4517bf
test byte [ebp + 8], 2
jne 0x45178a
push edi
call dword [sym.imp.USER32.dll_CharUpperW]
test byte [ebp + 8], 4
jne 0x4517bc
lea eax, [ebp - 0x268]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4517bc
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor esi, esi
inc esi
lea ecx, [ebx - 0x10]
call fcn.004016b0
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop esi
call fcn.004380c0
leave
ret 8

Function at 0x456c62
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x481610]
xor eax, dword [ebp + 4]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov eax, pe_nt_image_headers32
cmp esi, eax
ja 0x456cb4
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jne 0x456cb4
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x456cc0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.004380c0
leave
ret 8
Function at 0x45864a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, ecx
call fcn.0044a2b4
test eax, eax
jne 0x45883a
mov edi, dword [edi + 4]
push ebx
mov ecx, esi
call fcn.0042d095
test byte [esi + 0x7c], 0x20
mov dword [ebp - 0x10], eax
mov ebx, 0x201
jne 0x45868e
cmp edi, ebx
je 0x45868e
cmp edi, 0x202
jne 0x4587e7
cmp edi, 0x200
jb 0x45869e
cmp edi, 0x209
jbe 0x4586b6
cmp edi, 0xa0
jb 0x4587e7
cmp edi, 0xa9
ja 0x4587e7
call fcn.00460a42
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x1c]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x30
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.00439650
mov eax, dword [esi]
add esp, 0xc
lea ecx, [ebp - 0x48]
push ecx
push dword [ebp - 0x14]
mov ecx, esi
push dword [ebp - 0x18]
mov dword [ebp - 0x48], 0x28
call dword [eax + 0x6c]
cmp dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 4], eax
je 0x458714
push dword [ebp - 0x24]
call fcn.004396d2
pop ecx
cmp edi, ebx
jne 0x458727
test byte [ebp - 0x41], 0x80
je 0x458727
mov dword [ebp - 8], 1
jmp 0x458745
and dword [ebp - 8], 0
cmp edi, ebx
je 0x458745
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x458745
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x78]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x4587b1
cmp dword [ebp - 8], 0
jne 0x4587b1
cmp edi, 0x202
jne 0x458771
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0x160]
push 0xc8
push 0xe001
jmp 0x458799
test byte [esi + 0x78], 8
jne 0x4587a2
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x4587a2
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ecx + 0x78]
je 0x4587de
push 0x12c
push 0xe000
mov ecx, esi
call fcn.00457cfb
jmp 0x4587de
push dword [ebp - 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x160]
jmp 0x4587de
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x4587c4
cmp dword [ebp - 8], 0
je 0x4587de
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0x160]
push 0xe001
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x78], eax
mov ecx, esi
call fcn.0044c5b8
test eax, eax
pop ebx
je 0x4587f9
cmp dword [eax + 0x64], 0
jne 0x45883f
cmp dword [ebp - 0x10], 0
je 0x458821
mov edi, dword [ebp - 0x10]
push dword [ebp + 8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + pe_nt_image_headers32]
test eax, eax
jne 0x45883a
mov ecx, edi
call fcn.0044c579
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x4587ff
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45883f
push dword [ebp + 8]
mov ecx, esi
call fcn.0044ad40
jmp 0x458841
xor eax, eax
inc eax
jmp 0x458841
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x4598f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x481610]
xor eax, dword [ebp + 4]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x459940
push dword [ebp + 8]
call fcn.00461acc
mov esi, eax
test esi, esi
je 0x459968
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x459968
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push 0x46eaa4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.004380c0
leave
ret 0xc

Function at 0x459ca2
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x481610]
xor eax, dword [ebp + 4]
push ebx
push esi
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.00459c8b
cmp dword [esi], 0
mov ebx, eax
je 0x459d0e
push edi
mov edi, dword [ebp + 0x18]
push 0x40
lea eax, [ebp - 0x84]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x84]
push eax
call fcn.00439dbb
add esp, 0xc
cmp eax, 1
pop edi
je 0x459d31
push 0xffffffffffffffff
push 0
push dword [ebp + 0x14]
call fcn.004596ea
mov ecx, esi
call fcn.00459a50
jmp 0x459d31
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x84]
push eax
call fcn.00437a66
add esp, 0xc
lea eax, [ebp - 0x84]
push eax
push ebx
call fcn.00456c62
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.004380c0
leave
ret

Function at 0x459dc1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x481610]
xor eax, dword [ebp + 4]
push esi
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.00459c8b
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0044e0a3
cmp dword [esi], 0
lea eax, [ebp - 0x324]
je 0x459e55
push 0x190
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x324]
push 0x470444
push eax
call fcn.00439dbb
add esp, 0xc
cmp eax, 1
je 0x459e3e
push 0xffffffffffffffff
push 0
push 0xf111
call fcn.004596ea
mov ecx, esi
call fcn.00459a50
cmp dword [ebp + 0x1c], 6
mov eax, dword [ebp + 0x10]
jne 0x459e4e
fld qword [ebp + 0x14]
fstp dword [eax]
jmp 0x459e7d
fld qword [ebp + 0x14]
fstp qword [eax]
jmp 0x459e7d
fld qword [ebp + 0x14]
push ecx
push ecx
fstp qword [esp]
push dword [ebp + 0x1c]
push 0x470438
push eax
call fcn.00439838
add esp, 0x14
lea eax, [ebp - 0x324]
push eax
push dword [ebp + 8]
call fcn.00456c62
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.004380c0
leave
ret 0x18
Function at 0x460bce
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x481610]
xor eax, dword [ebp + 4]
cmp dword [ebp + 0xc], 0x800
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
jne 0x460c2b
push 0x46e55c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004380c0
leave
ret
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x460bfa
jmp 0x460c1e
Function at 0x460c51
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x481610]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor ebx, ebx
push 0x46871c
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x460cf6
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 8], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0xc], ecx
call esi
push dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 8], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x24], eax
call esi
mov dword [ebp - 0x20], eax
push 4
xor ebx, ebx
jmp 0x460df8
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x460da6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x460df9
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x460d9b
cmp dword [ebp - 0x14], 1
jne 0x460d9b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x4c]
push 0x46e578
push eax
call fcn.00439dbb
add esp, 0xc
cmp eax, 1
jne 0x460d9b
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 8], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x2c], eax
call esi
push 2
mov dword [ebp - 0x28], eax
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x460df9
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x460df9
lea ecx, [ebp - 8]
push ecx
push 0x460c3f
push 1
push 0x10
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
cmp word [ebp - 8], bx
je 0x460df9
movzx eax, word [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x2c], eax
call esi
mov dword [ebp - 0x28], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x2c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x460e1f
push dword [ebp + edi*4 - 0x2c]
push dword [ebp + 8]
call fcn.00460bce
cmp eax, ebx
pop ecx
pop ecx
jne 0x460e21
inc edi
cmp edi, esi
jl 0x460e08
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.004380c0
leave
ret 4
Function at 0x460e33
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x480a08
je 0x460eef
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x460ed7
mov esi, dword [ebx + 4]
jmp 0x460ed1
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x460ec1
cmp dword [ebp - 0xc], 4
jne 0x460ec1
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x460eb9
or dword [eax + 0x9c], ecx
jmp 0x460ec1
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x460e85
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x460e68
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x4617e4
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x4659aa
call fcn.004395e0
sub esp, 0x210
mov eax, dword [0x481610]
xor eax, dword [ebp + 4]
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x46189f
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, 0xff
jmp 0x461868
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004027b0
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
call fcn.004617e4
mov ecx, dword [ebp - 0x1c]
mov esi, eax
test esi, esi
setne byte [ebp - 0x11]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004016b0
cmp byte [ebp - 0x11], 0
jne 0x46187d
push ebx
lea eax, [ebp - 0x21c]
push eax
push 0
push dword [ebp - 0x18]
call edi
mov esi, eax
test esi, esi
je 0x46182c
cmp esi, 0x103
pop edi
pop ebx
je 0x46188f
cmp esi, 0x3f2
jne 0x46189f
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
mov eax, esi
pop esi
call fcn.004380c0
leave
ret 8
Function at 0x461b7b
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, 0x465a02
call fcn.004395e0
mov eax, 0x2014
call fcn.00438180
mov eax, dword [0x481610]
xor eax, dword [ebp + 4]
push ebx
push edi
xor edi, edi
mov dword [ebp - 0x1c], edi
cmp dword [ecx + 0x50], edi
mov dword [ebp - 0x10], eax
je 0x461c55
push dword [ebp + 0xc]
call fcn.00461acc
cmp eax, edi
mov dword [ebp - 0x14], eax
jne 0x461bc1
push dword [ebp + 0x14]
jmp 0x461c86
push esi
call fcn.0044ff32
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp + 0xc], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp - 0x14]
call esi
cmp eax, edi
mov dword [ebp - 0x18], eax
jne 0x461c26
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
push ecx
shr eax, 1
push eax
lea ecx, [ebp + 0xc]
call fcn.00401ef0
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call esi
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x18], eax
call fcn.0042d064
mov ebx, dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], edi
mov ecx, dword [ebp + 8]
pop esi
jne 0x461c43
lea eax, [ebp + 0xc]
push eax
call fcn.00401ed0
jmp 0x461c4b
push dword [ebp + 0x14]
call fcn.004027b0
lea ecx, [ebx - 0x10]
call fcn.004016b0
jmp 0x461c8e
cmp dword [ebp + 0x14], edi
jne 0x461c61
mov dword [ebp + 0x14], 0x467b64
push dword [ecx + 0x64]
lea eax, [ebp - 0x2020]
push 0x1000
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2020]
push eax
mov ecx, dword [ebp + 8]
call fcn.004027b0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop ebx
call fcn.004380c0
leave
ret 0x10

Function at 0x46225c
Capabilities:
Get thread local storage value

Disassembly:
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x462279
mov ecx, dword [esp + 4]
cmp ecx, dword [eax + 8]
jge 0x462279
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ecx*4]
jmp 0x46227b
xor eax, eax
ret 4

Function at 0x462373
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4623a7
call fcn.00448259
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x46240f
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x46243d
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jl 0x4624d8
cmp dword [esp + 0x14], ebx
je 0x4624d8
jmp 0x46247a
push 0x10
call fcn.00462121
cmp eax, ebx
je 0x462453
mov ecx, eax
call fcn.0046236a
mov esi, eax
jmp 0x462455
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
lea ebx, [edi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
push ebx
mov dword [edi + 0x14], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x462491
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4624a1
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x4624ad
call fcn.00448259
mov eax, dword [esi + 8]
mov ecx, dword [edi + 0xc]
sub ecx, eax
shl ecx, 2
push ecx
mov ecx, dword [esi + 0xc]
lea eax, [ecx + eax*4]
push ebx
push eax
call fcn.00439650
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax + edx*4], ecx
pop ebx
ret 8

Function at 0x4628ff
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x46292e
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
neg eax
sbb eax, eax
inc eax
jmp 0x46297f
push esi
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x46297c
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x46297c
test esi, esi
jne 0x46297c
inc eax
jmp 0x46297e
xor eax, eax
pop esi
pop ebp
ret 0xc