joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c2e3d
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov edx, dword [ebp + 0xc]
mov eax, dword [0x50ffd8]
push ebx
xor ecx, ecx
cmp edx, ecx
push esi
mov dword [ebp - 4], eax
push edi
je 0x4c2f5e
cmp dword [ebp + 8], ecx
je 0x4c2f5e
mov eax, dword [ebp + 0x18]
mov esi, eax
mov edi, eax
and esi, 0x2e000000
and edi, 0x40000000
test eax, 0x90000000
mov dword [ebp - 0x830], 0x824
mov dword [ebp - 0x82c], ecx
mov dword [ebp + 0x18], ecx
je 0x4c2eaf
cmp dword [edx + 0x30], ecx
je 0x4c2eaf
test eax, 0x2000000
je 0x4c2ea9
mov dword [ebp + 0x18], 1
jmp 0x4c2eaf
or edi, 0x80000000
mov ebx, dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
push esi
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x828]
push eax
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x4c2f16
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4c2f5e
push dword [ebp - 0x830]
call fcn.004b0b97
test eax, eax
pop ecx
mov dword [ebp - 0x834], eax
je 0x4c2f5e
push esi
lea ecx, [ebp - 0x830]
push ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 0x82c], 1
call ebx
test eax, eax
jne 0x4c2f1e
push dword [ebp - 0x834]
jmp 0x4c2f58
lea ebx, [ebp - 0x828]
jmp 0x4c2f24
mov ebx, dword [ebp - 0x834]
mov esi, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
cmp dword [ebp + 0x18], edi
mov dword [ebp + 8], eax
je 0x4c2f7b
push 0x2100000
push edi
push edi
push dword [esi + 0x2c]
call dword [sym.imp.SHLWAPI.dll_UrlUnescapeA]
test eax, eax
jge 0x4c2f6f
cmp dword [ebp - 0x82c], edi
je 0x4c2f5e
push ebx
call fcn.004b0bc2
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00497e50
leave
ret 0x14
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esi + 0x30], eax
cmp dword [ebp - 0x82c], edi
je 0x4c2f8a
push ebx
call fcn.004b0bc2
pop ecx
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x4c2f9c
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0x1000
jmp 0x4c2f60
mov cx, word [esi + 0x18]
mov edx, dword [ebp + 0x14]
mov word [edx], cx
mov esi, dword [esi + 0xc]
dec esi
mov ecx, dword [ebp + 0x10]
je 0x4c2ffa
dec esi
je 0x4c2fef
dec esi
je 0x4c2fe4
dec esi
je 0x4c2fd9
dec esi
je 0x4c2fd1
dec esi
je 0x4c2fc9
dec esi
jne 0x4c2f94
mov dword [ecx], 0x1002
jmp 0x4c2f60
mov dword [ecx], 0x1006
jmp 0x4c2f60
mov dword [ecx], 0x1001
jmp 0x4c2f60
mov dword [ecx], 0x100b
jmp 0x4c2f60
mov dword [ecx], 3
jmp 0x4c2f60
mov dword [ecx], 2
jmp 0x4c2f60
mov dword [ecx], 1
jmp 0x4c2f60
Function at 0x4c3461
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x4c348a
call fcn.004c4cad
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x4c34ad
push eax
push dword [esi + 4]
call fcn.004c33ee
push esi
push eax
mov ecx, 0x513020
call fcn.004c329e
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x4c3642
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
je 0x4c376b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c376b
mov ecx, dword [esi + 0x3c]
test ecx, ecx
jne 0x4c3689
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4c3681
push 0
jmp 0x4c376d
mov eax, dword [ebp - 4]
jmp 0x4c374c
mov eax, dword [esi + 0x38]
push ebx
push edi
mov edi, dword [ebp + 0xc]
cmp edi, dword [esi + 0x34]
jb 0x4c36dd
mov ebx, dword [esi + 0x40]
sub ebx, eax
jns 0x4c36a1
xor ebx, ebx
jmp 0x4c36a9
cmp ebx, edi
ja 0x4c3751
push ebx
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00497a80
mov eax, dword [esi + 0x34]
add esp, 0xc
mov dword [esi + 0x38], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
sub edi, ebx
push edi
add eax, ebx
push eax
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4c367a
mov eax, dword [ebp - 4]
jmp 0x4c3748
mov edx, dword [esi + 0x40]
lea ebx, [eax + edi]
cmp ebx, edx
jb 0x4c3755
sub edx, eax
jns 0x4c36ef
xor ebx, ebx
jmp 0x4c36f5
mov ebx, edx
cmp ebx, edi
ja 0x4c3751
push ebx
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00497a80
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push dword [esi + 0x34]
push dword [esi + 0x3c]
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4c367a
mov eax, dword [ebp + 0xc]
sub edi, ebx
cmp edi, eax
mov dword [esi + 0x40], eax
jae 0x4c372e
mov dword [ebp + 0xc], edi
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [esi + 0x3c]
add eax, ebx
push eax
call fcn.00497a80
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [esi + 0x38], eax
add eax, ebx
pop edi
pop ebx
pop esi
leave
ret 8
xor eax, eax
jmp 0x4c374a
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00497a80
add esp, 0xc
add dword [esi + 0x38], edi
mov eax, edi
jmp 0x4c374a
push 6
push dword [esi + 0x1c]
call fcn.004c33ee
int3
Function at 0x4c3776
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x18], 1
push edi
je 0x4c381f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c381f
mov ecx, dword [esi + 0x30]
test ecx, ecx
mov edi, dword [ebp + 0xc]
jne 0x4c37ba
lea ecx, [ebp + 0xc]
push ecx
push edi
push dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x4c37b3
push 0
jmp 0x4c3821
cmp dword [ebp + 0xc], edi
je 0x4c37f8
jmp 0x4c37af
mov eax, dword [esi + 0x2c]
lea edx, [eax + edi]
cmp edx, dword [esi + 0x28]
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetWriteFile]
jb 0x4c37df
lea edx, [ebp + 0xc]
push edx
push eax
push ecx
push dword [esi + 0x14]
call ebx
test eax, eax
je 0x4c37af
and dword [esi + 0x2c], 0
mov ecx, dword [esi + 0x28]
cmp edi, ecx
jb 0x4c37fe
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 0x14]
call ebx
test eax, eax
je 0x4c37af
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov eax, dword [esi + 0x2c]
lea edx, [eax + edi]
cmp edx, ecx
ja 0x4c37f7
mov ecx, dword [esi + 0x30]
push edi
push dword [ebp + 8]
add ecx, eax
push ecx
call fcn.00497a80
add esp, 0xc
add dword [esi + 0x2c], edi
jmp 0x4c37f7
push 6
push dword [esi + 0x1c]
call fcn.004c33ee
int3

Function at 0x4c3859
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
jne 0x4c3896
push 0x1000
call fcn.004c3058
test eax, eax
je 0x4c38f1
lea eax, [ebp - 4]
push eax
push dword [esi + 0x34]
push dword [esi + 0x3c]
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4c38f7
mov eax, dword [ebp - 4]
mov dword [esi + 0x40], eax
mov dword [esi + 0x38], ebx
mov eax, dword [esi + 0x38]
add eax, dword [esi + 0x3c]
push edi
mov edi, dword [ebp + 8]
jmp 0x4c38e6
mov ecx, dword [esi + 0x38]
cmp ecx, dword [esi + 0x40]
jb 0x4c38d1
lea eax, [ebp - 4]
push eax
push dword [esi + 0x34]
push dword [esi + 0x3c]
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4c38f7
mov eax, dword [ebp - 4]
cmp eax, ebx
mov dword [esi + 0x40], eax
je 0x4c3900
mov eax, dword [esi + 0x3c]
mov dword [esi + 0x38], ebx
mov cl, byte [eax]
cmp cl, 0xd
je 0x4c38db
mov byte [edi], cl
inc edi
inc dword [esi + 0x38]
mov cl, byte [eax]
inc eax
cmp cl, 0xa
je 0x4c38eb
dec dword [ebp + 0xc]
jne 0x4c38a2
mov eax, dword [ebp + 8]
mov byte [edi], bl
pop edi
pop esi
pop ebx
leave
ret 8
push ebx
push dword [esi + 0x1c]
call fcn.004c33ee
mov eax, edi
sub eax, dword [ebp + 8]
neg eax
sbb eax, eax
and eax, dword [ebp + 8]
jmp 0x4c38ee
Function at 0x4c3af6
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
mov eax, 0x4dccba
call fcn.0049a3f8
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004b3f56
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
xor edi, edi
mov ecx, ebx
mov dword [ebp - 4], edi
mov dword [esi], vtable.CInternetFile.0
mov dword [esi + 0x1c], eax
call fcn.004014a0
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
call fcn.0045c690
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.0045c690
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x18], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x4c550e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.004c4cad
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4c554e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x4c554e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4c5552
xor eax, eax
jmp 0x4c55cf
movzx eax, word [esi + 6]
push ebx
shl eax, 2
push edi
push eax
call fcn.004b0b97
mov edi, eax
xor eax, eax
cmp word [esi + 6], ax
pop ecx
jbe 0x4c5580
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x4c556f
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.004c511a
push edi
mov ebx, eax
call fcn.004b0bc2
test ebx, ebx
pop ecx
je 0x4c55c2
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.004c5394
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.004c541b
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4
Function at 0x4c5c14
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, 0x4dcd78
call fcn.0049a3f8
mov eax, 0x1014
call fcn.00497e60
mov eax, dword [0x50ffd8]
push ebx
push edi
xor edi, edi
mov dword [ebp - 0x101c], edi
cmp dword [ecx + 0x50], edi
mov dword [ebp - 0x10], eax
je 0x4c5d0f
push dword [ebp + 0xc]
call fcn.004c5b65
cmp eax, edi
mov dword [ebp - 0x1014], eax
jne 0x4c5c5d
push dword [ebp + 0x14]
jmp 0x4c5d40
push esi
call fcn.004b0bcc
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_RegQueryValueExA]
lea eax, [ebp - 0x1020]
push eax
push edi
lea eax, [ebp - 0x101c]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp - 0x1014]
call esi
cmp eax, edi
mov dword [ebp - 0x1018], eax
jne 0x4c5cda
lea eax, [ebp - 0x1020]
push eax
push dword [ebp - 0x1020]
lea ecx, [ebp + 0xc]
call fcn.0045c570
push eax
lea eax, [ebp - 0x101c]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x1014]
call esi
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x1018], eax
call fcn.0045c230
mov ebx, dword [ebp + 0xc]
push dword [ebp - 0x1014]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1018], edi
mov ecx, dword [ebp + 8]
pop esi
jne 0x4c5cfd
lea eax, [ebp + 0xc]
push eax
call fcn.00401530
jmp 0x4c5d05
push dword [ebp + 0x14]
call fcn.0045c060
lea ecx, [ebx - 0x10]
call fcn.00401590
jmp 0x4c5d48
cmp dword [ebp + 0x14], edi
jne 0x4c5d1b
mov dword [ebp + 0x14], 0x4eda98
push dword [ecx + 0x64]
lea eax, [ebp - 0x1010]
push 0x1000
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, dword [ebp + 8]
call fcn.0045c060
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00497e50
leave
ret 0x10

Function at 0x4c5d6f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x50ffd8]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x4c5dcd
push 0x4ebfd8
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.0049ad77
add esp, 0x10
cmp eax, 0xffffffff
je 0x4c5de1
cmp eax, esi
jae 0x4c5de1
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x4c5de3
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4c5d98
jmp 0x4c5de4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.00497e50
leave
ret
Function at 0x4c5e04
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x50ffd8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push 0x4ec04c
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 0x4c5ea6
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 0x4c5fa8
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x4c5f56
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocString
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c5fa9
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 0x4c5f4b
cmp dword [ebp - 0x24], 1
jne 0x4c5f4b
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x4ebfe8
push eax
call fcn.00499425
add esp, 0xc
cmp eax, 1
jne 0x4c5f4b
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 0x4c5fa9
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x4c5fa9
lea ecx, [ebp - 0x18]
push ecx
push 0x4c5dee
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x4c5fa9
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 0x4c5fcf
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.004c5d6f
cmp eax, ebx
pop ecx
pop ecx
jne 0x4c5fd1
inc edi
cmp edi, esi
jl 0x4c5fb8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00497e50
leave
ret 4
Function at 0x4c5fe0
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, 0x50f594
je 0x4c609c
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c6084
mov esi, dword [ebx + 4]
jmp 0x4c607e
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 0x4c606e
cmp dword [ebp - 0xc], 4
jne 0x4c606e
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x4c6066
or dword [eax + 0x9c], ecx
jmp 0x4c606e
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 0x4c6032
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x4c6015
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x4c6905
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x4dcea4
call fcn.0049a3f8
sub esp, 0x11c
mov eax, dword [0x50ffd8]
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 0x4c69fe
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 0x4c69d2
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.0045c060
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.004c6905
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401590
test bl, bl
jne 0x4c69d2
or dword [ebp - 4], 0xffffffff
jmp 0x4c6943
cmp esi, 0x103
je 0x4c69e2
cmp esi, 0x3f2
jne 0x4c69f2
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.00497e50
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4c6ec1
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 0x4c6ef6
cmp edi, dword [esi + 0xc]
jge 0x4c6ef6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c6ef6
cmp edi, dword [eax + 8]
jge 0x4c6ef6
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x4c6ef8
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 0x4c6ffc
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 0x4c7030
jmp fcn.004a8ee1
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x4c70a1
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 0x4c719a
cmp eax, dword [edi + 0xc]
jge 0x4c719a
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x4c70f2
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x4c7183
cmp dword [ebp + 0xc], ebx
je 0x4c7183
jmp 0x4c711c
push 0x10
call fcn.004c6d8d
cmp eax, ebx
je 0x4c7108
mov ecx, eax
call fcn.004c6ff3
mov esi, eax
jmp 0x4c710a
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 0x4c7133
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4c7143
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 0x4c7155
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004a8ee1
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.00497fd0
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 0x4c7195
cmp ecx, dword [esi + 8]
jge 0x4c7195
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x4c719b
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x401ea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x401ecc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x401ef4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x401efa
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x401f62
jg 0x401f11
test esi, esi
je 0x401f62
test ecx, ecx
jl 0x401f5d
jg 0x401f1b
test eax, eax
je 0x401f5d
cmp edi, ecx
jg 0x401f2f
jl 0x401f25
cmp esi, eax
jae 0x401f2f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x401f65
mov ecx, dword [ebp + 8]
jmp 0x401f6f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x401f89
jg 0x401f6f
test esi, esi
je 0x401f89
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x401f89
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc