joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411939
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x411967
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x41196e
cmp ebx, dword [eax + 4]
jae 0x41196e
xor eax, eax
jmp 0x411b5e
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41197f
xor eax, eax
inc eax
jmp 0x411b5d
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x411995
cmp ecx, edx
jae 0x411ada
cmp dword [eax + 4], 0
je 0x41199e
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x411986
cmp dword [ebp + 8], 0
je 0x4119c0
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x411ada
cmp eax, esi
jae 0x411ada
mov eax, dword [0x437238]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4119e5
cmp dword [esi*4 + 0x437240], edi
je 0x411ade
inc esi
cmp esi, eax
jl 0x4119d3
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x411b5a
cmp dword [ebp - 8], 0x1000000
jne 0x411b5a
test byte [ebp - 0xc], 0xcc
je 0x411a63
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x411b5a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x411b5a
cmp word [eax + 0x18], 0x10b
jne 0x411b5a
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x411b5a
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x411a63
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x411a63
test byte [ecx + 0x27], 0x80
jne 0x411ada
push 1
push 0x437280
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x411977
mov ecx, dword [0x437238]
test ecx, ecx
mov edx, ecx
jle 0x411a97
lea eax, [ecx*4 + 0x43723c]
cmp dword [eax], edi
je 0x411a97
dec edx
sub eax, 4
test edx, edx
jg 0x411a8b
test edx, edx
jne 0x411ac8
push 0xf
pop ebx
cmp ecx, ebx
jg 0x411aa4
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x411abc
lea eax, [edx*4 + 0x437240]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x411aaa
cmp ecx, 0x10
jge 0x411ac8
inc ecx
mov dword [0x437238], ecx
push 0
push 0x437280
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x411977
xor eax, eax
jmp 0x411b5d
test esi, esi
jle 0x411977
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x437280
call ebx
test eax, eax
jne 0x411977
cmp dword [esi*4 + 0x437240], edi
je 0x411b34
mov eax, dword [0x437238]
lea esi, [eax - 1]
test esi, esi
jl 0x411b22
cmp dword [esi*4 + 0x437240], edi
je 0x411b1e
dec esi
jns 0x411b12
test esi, esi
jge 0x411b32
cmp eax, 0x10
jge 0x411b2d
inc eax
mov dword [0x437238], eax
lea esi, [eax - 1]
jmp 0x411b34
je 0x411b4c
xor ecx, ecx
test esi, esi
jl 0x411b4c
lea eax, [ecx*4 + 0x437240]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x411b3a
push 0
push 0x437280
call ebx
jmp 0x411977
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4138c0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4372f8], ebx
push esi
push edi
jne 0x413940
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41397b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42bad0
push edi
call esi
test eax, eax
mov dword [0x4372f8], eax
je 0x41397b
push 0x42bac0
push edi
call esi
push 0x42baac
push edi
mov dword [0x4372fc], eax
call esi
cmp dword [0x436e50], 2
mov dword [0x437300], eax
jne 0x413940
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x437308], eax
je 0x413940
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x437304], eax
mov eax, dword [0x437304]
test eax, eax
je 0x413985
call eax
test eax, eax
je 0x41396c
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x437308]
test eax, eax
je 0x41396c
test byte [ebp - 8], 1
jne 0x413985
cmp dword [0x436e5c], 4
jb 0x41397f
or byte [ebp + 0x12], 0x20
jmp 0x4139a4
xor eax, eax
jmp 0x4139b4
or byte [ebp + 0x12], 4
jmp 0x4139a4
mov eax, dword [0x4372fc]
test eax, eax
je 0x4139a4
call eax
mov ebx, eax
test ebx, ebx
je 0x4139a4
mov eax, dword [0x437300]
test eax, eax
je 0x4139a4
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4372f8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415833
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x42bb38
call fcn.0040a3b4
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x437330], edi
jne 0x415877
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x415862
mov dword [0x437330], ebx
jmp 0x415877
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x415877
mov dword [0x437330], 2
mov eax, dword [0x437330]
cmp eax, ebx
jne 0x415897
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x41595a
cmp eax, 2
je 0x4158a0
cmp eax, edi
jne 0x4158c8
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x4158b3
mov eax, dword [0x43729c]
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 0x4158cf
xor eax, eax
jmp 0x41595a
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00409780
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x415902
cmp esi, edi
jne 0x415918
push dword [ebp - 0x20]
call fcn.00406fd2
pop ecx
mov esi, eax
cmp esi, edi
je 0x4158c8
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 0x41594b
cmp dword [ebp + 0x14], edi
jne 0x415935
push edi
push edi
jmp 0x41593b
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 0x415957
push esi
call fcn.00406eba
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0040a3ef
ret
Function at 0x415963
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x42bb48
call fcn.0040a3b4
xor esi, esi
cmp dword [0x437334], esi
jne 0x4159a7
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x415992
mov dword [0x437334], edi
jmp 0x4159a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4159a7
mov dword [0x437334], 2
mov eax, dword [0x437334]
cmp eax, 2
je 0x415a88
cmp eax, esi
je 0x415a88
cmp eax, 1
jne 0x4159ec
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4159d5
mov eax, dword [0x43729c]
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 0x4159f3
xor eax, eax
jmp 0x415a9a
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00409780
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x415a29
cmp edi, esi
jne 0x415a44
lea eax, [ebx + ebx]
push eax
call fcn.00406fd2
pop ecx
mov edi, eax
cmp edi, esi
je 0x4159ec
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 0x415a77
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x415a61
push esi
push esi
jmp 0x415a67
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 0x415a83
push edi
call fcn.00406eba
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x415a9a
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.0040a3ef
ret

Function at 0x417724
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x426d32
call fcn.00408f88
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
lea eax, [edi + 0x14]
push eax
lea ecx, [esi + 0x14]
mov dword [ebp - 0x10], esi
call fcn.0041753d
and dword [ebp - 4], 0
lea eax, [edi + 0x30]
push eax
lea ecx, [esi + 0x30]
call fcn.0041753d
add edi, 0x4c
push edi
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.0041753d
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41e19c
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 0x128
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.00409a20
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [edi + 4]
cmp eax, dword [0x428b00]
je 0x41e2a3
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 0x41e20c
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 0x41e213
cmp ebx, ebx
jne 0x41e213
xor eax, eax
jmp 0x41e2a6
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x41e220
mov byte [esi + 0x20], bl
jmp 0x41e234
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
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.0040583a
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.0040583a
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.0040583a
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 0x41e28f
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 0x41e2a3
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 0x423dd1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x433b90]
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 0x423e20
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x423e20
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x423e2c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.00408a75
leave
ret 8
Function at 0x42404b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x433b90]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x424098
push dword [ebp + 8]
call fcn.00425115
mov esi, eax
test esi, esi
je 0x4240c0
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 0x4240c0
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x42e800
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.00408a75
leave
ret 0xc

Function at 0x42472f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x433b90]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x42478d
push 0x42862c
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 0x408fa7
add esp, 0x10
cmp eax, 0xffffffff
je 0x4247a1
cmp eax, esi
jae 0x4247a1
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x4247a3
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x424758
jmp 0x4247a4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.00408a75
leave
ret
Function at 0x4247c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x433b90]
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 0x424866
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 0x424968
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x424916
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 0x424969
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 0x42490b
cmp dword [ebp - 0x24], 1
jne 0x42490b
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x42863c
push eax
call 0x408ffe
add esp, 0xc
cmp eax, 1
jne 0x42490b
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 0x424969
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x424969
lea ecx, [ebp - 0x18]
push ecx
push 0x4247ae
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x424969
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 0x42498f
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.0042472f
cmp eax, ebx
pop ecx
pop ecx
jne 0x424991
inc edi
cmp edi, esi
jl 0x424978
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00408a75
leave
ret 4
Function at 0x4249a0
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, 0x43328c
je 0x424a5c
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 0x424a44
mov esi, dword [ebx + 4]
jmp 0x424a3e
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 0x424a2e
cmp dword [ebp - 0xc], 4
jne 0x424a2e
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x424a26
or dword [eax + 0x9c], ecx
jmp 0x424a2e
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 0x4249f2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x4249d5
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x425ee3
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 0x425f18
cmp edi, dword [esi + 0xc]
jge 0x425f18
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x425f18
cmp edi, dword [eax + 8]
jge 0x425f18
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x425f1a
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 0x425ee4
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 0x425f18
cmp edi, dword [esi + 0xc]
jge 0x425f18
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x425f18
cmp edi, dword [eax + 8]
jge 0x425f18
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x425f1a
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 0x425fe0
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 0x426014
jmp fcn.0041d458
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x425fe2
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 0x426014
jmp fcn.0041d458
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x426085
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 0x42617e
cmp eax, dword [edi + 0xc]
jge 0x42617e
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x4260d6
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x426167
cmp dword [ebp + 0xc], ebx
je 0x426167
jmp 0x426100
push 0x10
call fcn.00425daf
cmp eax, ebx
je 0x4260ec
mov ecx, eax
call fcn.00425fd7
mov esi, eax
jmp 0x4260ee
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 0x426117
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x426127
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 0x426139
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0041d458
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.00409a20
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 0x426179
cmp ecx, dword [esi + 8]
jge 0x426179
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x42617f
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x404922
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x44f580], 2
push esi
push edi
mov edi, eax
mov esi, ecx
jl 0x404936
call fcn.004037af
mov ecx, esi
call fcn.004048ff
xor eax, eax
mov edx, dword [eax + 0x42a4b0]
mov ecx, dword [esi + 0xf4]
mov dword [eax + ecx], edx
add eax, 4
cmp eax, 0x20
jl 0x40493f
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov eax, dword [esi + 0xf4]
mov ecx, dword [esp + 0xc]
xor dword [eax + 8], ecx
mov esi, dword [esi + 0xf4]
or edi, 0x2000
shl edi, 0x10
xor dword [esi + 0xc], edi
pop edi
pop esi
ret 4