joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48e7a3
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.0047f313
test eax, eax
jne 0x48e993
mov edi, dword [edi + 4]
push ebx
mov ecx, esi
call fcn.00427b80
test byte [esi + 0x7c], 0x20
mov dword [ebp - 0x10], eax
mov ebx, 0x201
jne 0x48e7e7
cmp edi, ebx
je 0x48e7e7
cmp edi, 0x202
jne 0x48e940
cmp edi, 0x200
jb 0x48e7f7
cmp edi, 0x209
jbe 0x48e80f
cmp edi, 0xa0
jb 0x48e940
cmp edi, 0xa9
ja 0x48e940
call fcn.00498d59
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.0046c9c0
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 0x48e86d
push dword [ebp - 0x24]
call fcn.0046b98b
pop ecx
cmp edi, ebx
jne 0x48e880
test byte [ebp - 0x41], 0x80
je 0x48e880
mov dword [ebp - 8], 1
jmp 0x48e89e
and dword [ebp - 8], 0
cmp edi, ebx
je 0x48e89e
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x48e89e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x78]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x48e90a
cmp dword [ebp - 8], 0
jne 0x48e90a
cmp edi, 0x202
jne 0x48e8ca
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0x160]
push 0xc8
push 0xe001
jmp 0x48e8f2
test byte [esi + 0x78], 8
jne 0x48e8fb
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x48e8fb
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ecx + 0x78]
je 0x48e937
push 0x12c
push 0xe000
mov ecx, esi
call fcn.0048de54
jmp 0x48e937
push dword [ebp - 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x160]
jmp 0x48e937
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x48e91d
cmp dword [ebp - 8], 0
je 0x48e937
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.0048151e
test eax, eax
pop ebx
je 0x48e952
cmp dword [eax + 0x64], 0
jne 0x48e998
cmp dword [ebp - 0x10], 0
je 0x48e97a
mov edi, dword [ebp - 0x10]
push dword [ebp + 8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x100]
test eax, eax
jne 0x48e993
mov ecx, edi
call fcn.004814df
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x48e958
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x48e998
push dword [ebp + 8]
mov ecx, esi
call fcn.0047fd98
jmp 0x48e99a
xor eax, eax
inc eax
jmp 0x48e99a
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x48eb46
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x48ecc9
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 8], ebx
jne 0x48eb7d
xor eax, eax
jmp 0x48ecc6
mov edi, dword [ebx]
add edi, 0x40
push edi
call fcn.0046baa3
mov esi, eax
test esi, esi
pop ecx
je 0x48eb76
push edi
push ebx
push esi
call fcn.0046c330
mov edi, dword [esi]
add esp, 0xc
add edi, esi
and dword [ebp + 0xc], 0
mov ecx, dword [ebp + 0xc]
mov ecx, dword [edi + ecx*4]
xor eax, eax
cmp ecx, dword [eax*8 + 0x4b45e0]
je 0x48ebbb
inc eax
cmp eax, 4
jb 0x48ebaa
jmp 0x48ec1d
cmp dword [ebp + 0x10], 0
je 0x48ebd7
cmp dword [eax*8 + 0x4b45e4], 0x12
je 0x48ec1d
mov eax, dword [ebp + 0xc]
mov dword [edi + eax*4], 0xffffff
jmp 0x48ec1d
lea ebx, [eax*8 + 0x4b45e4]
push dword [ebx]
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_GetSysColor]
push dword [ebx]
movzx eax, ah
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [ebp + 8]
mov ch, al
mov eax, ebx
push dword [eax]
shl ecx, 8
mov dword [ebp + 8], ecx
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [ebp + 8]
shr eax, 0x10
movzx eax, al
or ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [edi + eax*4], ecx
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0x10
jl 0x48eba2
mov edi, dword [esi + 4]
mov ebx, dword [esi + 8]
push 0
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], ebx
call dword [sym.imp.USER32.dll_GetDC]
push ebx
push edi
push eax
mov dword [ebp + 0x10], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [ebp - 4], eax
je 0x48eca8
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 4]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
push edi
call ebx
mov cl, byte [esi + 0xe]
push 0xcc0020
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push esi
lea ecx, [ecx + edx*4 + 0x28]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
push edi
call dword [sym.imp.GDI32.dll_StretchDIBits]
push dword [ebp - 0xc]
push edi
call ebx
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp + 0x10]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push esi
call fcn.0046b98b
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x491c7f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ceed0]
xor eax, dword [ebp + 4]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x491ccf
push dword [ebp + 8]
call fcn.0049bf27
mov esi, eax
test esi, esi
je 0x491cf7
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 0x491cf7
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push 0x4a8758
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.0046c69e
leave
ret 0xc

Function at 0x491da0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
cmp dword [ebx + 0x50], 0
push esi
push edi
je 0x491de6
push dword [ebp + 8]
call fcn.0049bf27
mov esi, eax
test esi, esi
je 0x491e49
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 3
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
jmp 0x491e49
mov edi, dword [ebp + 0x14]
lea eax, [edi*4 + 2]
push eax
call fcn.00483bc7
mov esi, eax
xor eax, eax
test edi, edi
pop ecx
jbe 0x491e2b
mov ecx, dword [ebp + 0x10]
add ecx, eax
mov dl, byte [ecx]
and dl, 0xf
movzx dx, dl
add edx, 0x41
mov word [esi + eax*4], dx
movzx ecx, byte [ecx]
shr cl, 4
movzx cx, cl
add ecx, 0x41
mov word [esi + eax*4 + 2], cx
inc eax
cmp eax, edi
jb 0x491dff
and word [esi + eax*4], 0
push esi
push dword [ebp + 0xc]
mov ecx, ebx
push dword [ebp + 8]
call fcn.00491d07
push esi
mov edi, eax
call fcn.00483bf7
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4977a7
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1054
call fcn.0046ae30
mov eax, dword [0x4ceed0]
xor eax, dword [ebp + 4]
push ebx
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp + 0xc], eax
push esi
push edi
je 0x497840
cmp dword [ebp + 8], eax
je 0x497840
mov edi, dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
mov esi, eax
and eax, 0xc0000000
mov dword [ebp + 0x18], eax
and esi, 0x3e000000
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1054]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x824
call edi
test eax, eax
jne 0x497854
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x497840
mov eax, dword [ebp - 8]
add eax, eax
push eax
call fcn.00483bc7
mov ebx, eax
test ebx, ebx
pop ecx
je 0x497840
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0xc], 1
call edi
test eax, eax
jne 0x49785a
push ebx
call fcn.00483bf7
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.0046c69e
leave
ret 0x14
lea ebx, [ebp - 0x1054]
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 0x18]
push 0
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
cmp dword [ebp - 0xc], 0
mov edi, eax
je 0x497879
push ebx
call fcn.00483bf7
pop ecx
test edi, edi
jne 0x497882
mov eax, dword [ebp + 0x10]
jmp 0x4978a7
mov ax, word [esi + 0x18]
mov ecx, dword [ebp + 0x14]
mov word [ecx], ax
mov eax, dword [esi + 0xc]
dec eax
je 0x4978ee
dec eax
je 0x4978e3
dec eax
je 0x4978d8
dec eax
je 0x4978cd
dec eax
je 0x4978c2
dec eax
je 0x4978b7
dec eax
mov eax, dword [ebp + 0x10]
je 0x4978af
mov dword [eax], 0x1000
jmp 0x4978f7
mov dword [eax], 0x1002
jmp 0x4978f7
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x1006
jmp 0x4978f7
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x1001
jmp 0x4978f7
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x100b
jmp 0x4978f7
mov eax, dword [ebp + 0x10]
mov dword [eax], 3
jmp 0x4978f7
mov eax, dword [ebp + 0x10]
mov dword [eax], 2
jmp 0x4978f7
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
mov eax, edi
jmp 0x497842

Function at 0x497dc9
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 0x497df2
call fcn.00498d33
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_InternetOpenW]
test eax, eax
mov dword [esi + 8], eax
jne 0x497e17
push eax
push dword [esi + 4]
call fcn.00497d56
jmp 0x497e23
push esi
push eax
mov ecx, 0x4d2f48
call fcn.00497c06
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x4980fa
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x18], 1
push edi
je 0x49810e
cmp dword [esi + 0x14], 0
jne 0x498118
push 6
push dword [esi + 0x1c]
call fcn.00497d56
mov ecx, dword [esi + 0x30]
test ecx, ecx
jne 0x498151
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x498140
push eax
push dword [esi + 0x1c]
call fcn.00497d56
cmp dword [ebp - 4], edi
je 0x4981ba
push 0
push dword [esi + 0x1c]
call fcn.00497d56
jmp 0x4981ba
mov eax, dword [esi + 0x2c]
mov edi, dword [sym.imp.WININET.dll_InternetWriteFile]
push ebx
mov ebx, dword [ebp + 0xc]
lea edx, [eax + ebx]
cmp edx, dword [esi + 0x28]
jb 0x498182
lea edx, [ebp - 4]
push edx
push eax
push ecx
push dword [esi + 0x14]
call edi
test eax, eax
jne 0x49817e
push eax
push dword [esi + 0x1c]
call fcn.00497d56
and dword [esi + 0x2c], 0
cmp ebx, dword [esi + 0x28]
jb 0x4981a3
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
push dword [esi + 0x14]
call edi
test eax, eax
jne 0x4981b9
push eax
push dword [esi + 0x1c]
call fcn.00497d56
jmp 0x4981b9
mov eax, dword [esi + 0x30]
add eax, dword [esi + 0x2c]
push ebx
push dword [ebp + 8]
push eax
call fcn.0046c330
add esp, 0xc
add dword [esi + 0x2c], ebx
pop ebx
pop edi
pop esi
leave
ret 8

Function at 0x4981ef
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 0x498239
push 0x1000
call fcn.00497951
test eax, eax
je 0x4982a5
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
jne 0x498230
push ebx
push dword [esi + 0x1c]
call fcn.00497d56
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 0x498299
mov ecx, dword [esi + 0x38]
cmp ecx, dword [esi + 0x40]
jb 0x49827d
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
jne 0x49826d
push ebx
push dword [esi + 0x1c]
call fcn.00497d56
mov eax, dword [ebp - 4]
cmp eax, ebx
mov dword [esi + 0x40], eax
je 0x4982ab
mov eax, dword [esi + 0x3c]
mov dword [esi + 0x38], ebx
mov cx, word [eax]
cmp cx, 0xd
je 0x49828b
mov word [edi], cx
inc edi
inc edi
inc dword [esi + 0x38]
mov cx, word [eax]
inc eax
inc eax
cmp cx, 0xa
je 0x49829e
dec dword [ebp + 0xc]
jne 0x498245
mov eax, dword [ebp + 8]
mov word [edi], bx
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, edi
sub eax, dword [ebp + 8]
neg eax
sbb eax, eax
and eax, dword [ebp + 8]
jmp 0x4982a1
Function at 0x4984a1
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
mov eax, 0x4a621c
call fcn.0046c6ac
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00487d02
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.0045d2bd
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
call fcn.0045c52a
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.0045c52a
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 0x49a04c
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.00498d33
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x49a08c
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x49a08c
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
jne 0x49a090
xor eax, eax
jmp 0x49a10d
movzx eax, word [esi + 6]
push ebx
shl eax, 2
push edi
push eax
call fcn.00483bc7
mov edi, eax
xor eax, eax
cmp word [esi + 6], ax
pop ecx
jbe 0x49a0be
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 0x49a0ad
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.00499c8a
push edi
mov ebx, eax
call fcn.00483bf7
test ebx, ebx
pop ecx
je 0x49a100
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.00499ed2
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00499f59
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 0x49a7f7
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4ceed0]
xor eax, dword [ebp + 4]
cmp dword [ebp + 0xc], 0x800
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
jne 0x49a854
push 0x4b5a9c
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.0046c69e
leave
ret
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
jne 0x49a823
jmp 0x49a847
Function at 0x49a87a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4ceed0]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
xor ebx, ebx
push 0x4b5b44
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 0x49a91f
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 0x49aa21
call dword [sym.imp.KERNEL32.DLL_GetVersion]
test eax, eax
jns 0x49a9cf
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocStringLen
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x49aa22
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 0x49a9c4
cmp dword [ebp - 0x14], 1
jne 0x49a9c4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x4c]
push 0x4b5ab8
push eax
call fcn.0046ad5e
add esp, 0xc
cmp eax, 1
jne 0x49a9c4
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 0x49aa22
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x49aa22
lea ecx, [ebp - 8]
push ecx
push 0x49a868
push 1
push 0x10
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.DLL_EnumResourceLanguagesW]
cmp word [ebp - 8], bx
je 0x49aa22
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 0x49aa48
push dword [ebp + edi*4 - 0x2c]
push dword [ebp + 8]
call fcn.0049a7f7
cmp eax, ebx
pop ecx
pop ecx
jne 0x49aa4a
inc edi
cmp edi, esi
jl 0x49aa31
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.0046c69e
leave
ret 4
Function at 0x49aa5c
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, 0x4ce164
je 0x49ab18
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x49ab00
mov esi, dword [ebx + 4]
jmp 0x49aafa
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 0x49aaea
cmp dword [ebp - 0xc], 4
jne 0x49aaea
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x49aae2
or dword [eax + 0x9c], ecx
jmp 0x49aaea
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 0x49aaae
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x49aa91
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

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

Disassembly:
mov eax, 0x4a6148
call fcn.0046c6ac
sub esp, 0x210
mov eax, dword [0x4ceed0]
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 0x49b4de
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, 0xff
jmp 0x49b4a7
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0045c54f
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
call fcn.0049b423
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.00402860
cmp byte [ebp - 0x11], 0
jne 0x49b4bc
push ebx
lea eax, [ebp - 0x21c]
push eax
push 0
push dword [ebp - 0x18]
call edi
mov esi, eax
test esi, esi
je 0x49b46b
cmp esi, 0x103
pop edi
pop ebx
je 0x49b4ce
cmp esi, 0x3f2
jne 0x49b4de
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.0046c69e
leave
ret 8

Function at 0x49b8ac
Capabilities:
Get thread local storage value

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