joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415c4b
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4251c8
call fcn.0040b010
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x42cedc], edi
jne 0x415c8f
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x415c7a
mov dword [0x42cedc], ebx
jmp 0x415c8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x415c8f
mov dword [0x42cedc], 2
mov eax, dword [0x42cedc]
cmp eax, ebx
jne 0x415caf
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x415d72
cmp eax, 2
je 0x415cb8
cmp eax, edi
jne 0x415ce0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x415ccb
mov eax, dword [0x42cd70]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x415ce7
xor eax, eax
jmp 0x415d72
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00409080
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x415d1a
cmp esi, edi
jne 0x415d30
push dword [ebp - 0x20]
call fcn.00408d80
pop ecx
mov esi, eax
cmp esi, edi
je 0x415ce0
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x415d63
cmp dword [ebp + 0x14], edi
jne 0x415d4d
push edi
push edi
jmp 0x415d53
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x415d6f
push esi
call fcn.00408c68
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0040b04b
ret
Function at 0x415d7b
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4251d8
call fcn.0040b010
xor esi, esi
cmp dword [0x42cee0], esi
jne 0x415dbf
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x415daa
mov dword [0x42cee0], edi
jmp 0x415dbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x415dbf
mov dword [0x42cee0], 2
mov eax, dword [0x42cee0]
cmp eax, 2
je 0x415ea0
cmp eax, esi
je 0x415ea0
cmp eax, 1
jne 0x415e04
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x415ded
mov eax, dword [0x42cd70]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x415e0b
xor eax, eax
jmp 0x415eb2
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00409080
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x415e41
cmp edi, esi
jne 0x415e5c
lea eax, [ebx + ebx]
push eax
call fcn.00408d80
pop ecx
mov edi, eax
cmp edi, esi
je 0x415e04
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x415e8f
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x415e79
push esi
push esi
jmp 0x415e7f
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x415e9b
push edi
call fcn.00408c68
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x415eb2
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0040b04b
ret
Function at 0x417a5f
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00409080
mov eax, dword [0x429960]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0040ef43
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x417b92
push 2
push esi
push dword [ebp + 8]
call fcn.0040ef43
add esp, 0xc
cmp eax, ebx
je 0x417b92
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x417b32
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0040ad30
push 0x8000
push dword [ebp + 8]
call fcn.00417ba0
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x417ae8
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0040e838
add esp, 0xc
cmp eax, 0xffffffff
je 0x417b08
sub edi, eax
test edi, edi
jg 0x417ae0
jmp 0x417b20
call fcn.0040bbc3
cmp dword [eax], 5
jne 0x417b1d
call fcn.0040bbba
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00417ba0
pop ecx
pop ecx
jmp 0x417b7a
jge 0x417b7a
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040ef43
push dword [ebp + 8]
call fcn.00413dc7
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x417b7a
call fcn.0040bbba
mov dword [eax], 0xd
call fcn.0040bbc3
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0040ef43
add esp, 0xc
mov eax, esi
pop edi
jmp 0x417b94
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0040ab1e
leave
ret
Function at 0x418a8c
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x1c
xor ebx, ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
mov esi, ecx
call fcn.0040ad30
add esp, 0xc
call fcn.0041e751
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
call edi
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
je 0x418b5c
cmp dword [ebp - 8], ebx
je 0x418b57
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x41895e
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.0040aca1
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x418b66
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call edi
test byte [ebp + 8], 4
je 0x418b2f
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x418b49
push 0xffffffffffffffff
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x28]
call edi
mov dword [esi + 0x28], ebx
jmp 0x418b61
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x418b68
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x418b66
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x418b6f
Capabilities:
Resume thread

Disassembly:
mov eax, 0x420197
call fcn.0040abbc
push ecx
push esi
push 0x40
call fcn.004181fa
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor esi, esi
cmp ecx, esi
mov dword [ebp - 4], esi
je 0x418b9e
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041dc9a
mov esi, eax
push dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x14]
or dword [ebp - 4], 0xffffffff
or eax, 4
push eax
mov ecx, esi
call fcn.00418a8c
test eax, eax
jne 0x418bc5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
xor eax, eax
jmp 0x418be2
push dword [ebp + 0x10]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test byte [ebp + 0x18], 4
jne 0x418be0
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x41ccc9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x429960]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x41cd18
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x41cd18
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x41cd24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0040ab1e
leave
ret 8

Function at 0x41d818
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x429960]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x41d865
push dword [ebp + 8]
call fcn.0041f64a
mov esi, eax
test esi, esi
je 0x41d88d
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_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x41d88d
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x422dac
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0040ab1e
leave
ret 0xc

Function at 0x41dd37
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x429960]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x41dd95
push 0x422004
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0040ad90
add esp, 0x10
cmp eax, 0xffffffff
je 0x41dda9
cmp eax, esi
jae 0x41dda9
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x41ddab
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x41dd60
jmp 0x41ddac
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.0040ab1e
leave
ret
Function at 0x41ddcc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x429960]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x41de6e
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], 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 - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x41df70
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x41df1e
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41df71
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41df13
cmp dword [ebp - 0x24], 1
jne 0x41df13
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x422008
push eax
call fcn.0040ade7
add esp, 0xc
cmp eax, 1
jne 0x41df13
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], 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 - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41df71
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x41df71
lea ecx, [ebp - 0x18]
push ecx
push 0x41ddb6
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x41df71
movzx eax, word [ebp - 0x18]
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 - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x41df97
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.0041dd37
cmp eax, ebx
pop ecx
pop ecx
jne 0x41df99
inc edi
cmp edi, esi
jl 0x41df80
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0040ab1e
leave
ret 4
Function at 0x41dfa8
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, 0x429348
je 0x41e064
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41e04c
mov esi, dword [ebx + 4]
jmp 0x41e046
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_RegQueryValueExA]
test eax, eax
jne 0x41e036
cmp dword [ebp - 0xc], 4
jne 0x41e036
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x41e02e
or dword [eax + 0x9c], ecx
jmp 0x41e036
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 0x41dffa
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x41dfdd
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x41e8fe
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x41e933
cmp edi, dword [esi + 0xc]
jge 0x41e933
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41e933
cmp edi, dword [eax + 8]
jge 0x41e933
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x41e935
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x41ea39
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 0x41ea6d
jmp fcn.00417c85
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x41eade
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x41ebd7
cmp eax, dword [edi + 0xc]
jge 0x41ebd7
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x41eb2f
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x41ebc0
cmp dword [ebp + 0xc], ebx
je 0x41ebc0
jmp 0x41eb59
push 0x10
call fcn.0041e7ca
cmp eax, ebx
je 0x41eb45
mov ecx, eax
call fcn.0041ea30
mov esi, eax
jmp 0x41eb47
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x41eb70
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x41eb80
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x41eb92
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00417c85
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.0040ad30
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 ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x41ebd2
cmp ecx, dword [esi + 8]
jge 0x41ebd2
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x41ebd8
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41f695
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x42032c
call fcn.0040abbc
sub esp, 0x11c
mov eax, dword [0x429960]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x41f78e
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x41f762
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00407b2b
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.0041f695
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00407785
test bl, bl
jne 0x41f762
or dword [ebp - 4], 0xffffffff
jmp 0x41f6d3
cmp esi, 0x103
je 0x41f772
cmp esi, 0x3f2
jne 0x41f782
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.0040ab1e
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10570058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x105701a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1057007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1057006a
add dl, dl
jne 0x10570089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105700dc
xor eax, eax
add dl, dl
jne 0x10570096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1057017d
add dl, dl
jne 0x105700a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105700b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105700bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105700c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x105700d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10570075
mov eax, 1
add dl, dl
jne 0x105700ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105700f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105700e1
sub eax, ebx
mov ebx, 1
jne 0x10570128
mov ecx, 1
add dl, dl
jne 0x1057010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10570119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10570105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10570075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1057013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1057014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10570136
cmp eax, 0x7d00
jae 0x1057016d
cmp eax, 0x500
jb 0x10570168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10570075
cmp eax, 0x7f
ja 0x10570170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10570075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1057019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10570075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10