joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4612ab
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4a00b8]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x4612dc
xor eax, eax
jmp 0x461465
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4a4200]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x461318
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0046530f
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4613f3
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x461431
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x46137c
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x46136d
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x46134d
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4613bc
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x4613c5
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x46133e
jmp 0x4613c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x461460
cmp dword [ebp - 0x6c], edi
je 0x461431
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x461426
call fcn.004502f8
mov dword [eax], 9
call fcn.00450301
mov dword [eax], esi
jmp 0x46145b
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46141b
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x4613c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x4613c7
push dword [ebp - 0x6c]
call fcn.0045030a
pop ecx
jmp 0x46145b
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x461449
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x461449
xor eax, eax
jmp 0x461463
call fcn.004502f8
mov dword [eax], 0x1c
call fcn.00450301
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x461463
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00450f4f
add ebp, 0x3a0
leave
ret
Function at 0x461fb9
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x461fd2
or eax, 0xffffffff
jmp 0x462033
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x46202f
push 0x3d
push esi
call fcn.004656fc
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x46202f
cmp esi, eax
je 0x46202f
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x4a36f8]
sete cl
cmp eax, dword [0x4a36fc]
mov dword [ebp - 8], ecx
jne 0x462015
mov edi, eax
call fcn.00461f58
mov dword [0x4a36f8], eax
cmp eax, ebx
jne 0x46206e
cmp dword [ebp + 0xc], ebx
je 0x462037
cmp dword [0x4a3700], ebx
je 0x462037
call fcn.00456256
test eax, eax
je 0x46206e
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x462040
xor eax, eax
jmp 0x462032
push 4
call fcn.0045004e
cmp eax, ebx
pop ecx
mov dword [0x4a36f8], eax
je 0x46202f
mov dword [eax], ebx
cmp dword [0x4a3700], ebx
jne 0x46206e
push 4
call fcn.0045004e
cmp eax, ebx
pop ecx
mov dword [0x4a3700], eax
je 0x46202f
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x4a36f8]
call fcn.00461f0b
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x4620cf
cmp dword [esi], ebx
je 0x4620cf
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00450060
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4620b2
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x462110
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4620a9
mov eax, edi
shl eax, 2
push eax
push dword [0x4a36f8]
call fcn.004500d1
cmp eax, ebx
pop ecx
pop ecx
je 0x462110
jmp 0x46210b
cmp dword [ebp - 8], ebx
jne 0x46217b
cmp edi, ebx
jge 0x4620de
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4a36f8]
call fcn.004500d1
cmp eax, ebx
pop ecx
pop ecx
je 0x46202f
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x4a36f8], eax
cmp dword [ebp + 0xc], ebx
je 0x462165
push dword [ebp - 4]
call fcn.00451c60
inc eax
inc eax
push eax
call fcn.0045004e
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x462165
push dword [ebp - 4]
push esi
call fcn.00456110
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x46215e
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00450060
pop ecx
cmp dword [ebp - 8], ebx
je 0x462173
push dword [ebp - 4]
call fcn.00450060
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x462032
push dword [ebp - 4]
call fcn.00450060
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x46203c
Function at 0x462fff
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4a3cf4], ebx
push esi
push edi
jne 0x46307f
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4630ba
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4a3cf4], eax
je 0x4630ba
push 0x484710
push edi
call esi
push 0x4846fc
push edi
mov dword [0x4a3cf8], eax
call esi
cmp dword [0x4a36d8], 2
mov dword [0x4a3cfc], eax
jne 0x46307f
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4a3d04], eax
je 0x46307f
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4a3d00], eax
mov eax, dword [0x4a3d00]
test eax, eax
je 0x4630c4
call eax
test eax, eax
je 0x4630ab
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4a3d04]
test eax, eax
je 0x4630ab
test byte [ebp - 8], 1
jne 0x4630c4
cmp dword [0x4a36e4], 4
jb 0x4630be
or byte [ebp + 0x12], 0x20
jmp 0x4630e3
xor eax, eax
jmp 0x4630f3
or byte [ebp + 0x12], 4
jmp 0x4630e3
mov eax, dword [0x4a3cf8]
test eax, eax
je 0x4630e3
call eax
mov ebx, eax
test ebx, ebx
je 0x4630e3
mov eax, dword [0x4a3cfc]
test eax, eax
je 0x4630e3
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4a3cf4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x466868
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x484940
call fcn.00451e20
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x4a3d50], edi
jne 0x4668ac
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x466897
mov dword [0x4a3d50], ebx
jmp 0x4668ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4668ac
mov dword [0x4a3d50], 2
mov eax, dword [0x4a3d50]
cmp eax, ebx
jne 0x4668cc
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x46698f
cmp eax, 2
je 0x4668d5
cmp eax, edi
jne 0x4668fd
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x4668e8
mov eax, dword [0x4a3cb8]
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 0x466904
xor eax, eax
jmp 0x46698f
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00450a20
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x466937
cmp esi, edi
jne 0x46694d
push dword [ebp - 0x20]
call fcn.0045004e
pop ecx
mov esi, eax
cmp esi, edi
je 0x4668fd
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 0x466980
cmp dword [ebp + 0x14], edi
jne 0x46696a
push edi
push edi
jmp 0x466970
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 0x46698c
push esi
call fcn.00450060
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00451e5b
ret
Function at 0x466998
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x484950
call fcn.00451e20
xor esi, esi
cmp dword [0x4a3d54], esi
jne 0x4669dc
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4669c7
mov dword [0x4a3d54], edi
jmp 0x4669dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4669dc
mov dword [0x4a3d54], 2
mov eax, dword [0x4a3d54]
cmp eax, 2
je 0x466abd
cmp eax, esi
je 0x466abd
cmp eax, 1
jne 0x466a21
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x466a0a
mov eax, dword [0x4a3cb8]
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 0x466a28
xor eax, eax
jmp 0x466acf
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00450a20
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x466a5e
cmp edi, esi
jne 0x466a79
lea eax, [ebx + ebx]
push eax
call fcn.0045004e
pop ecx
mov edi, eax
cmp edi, esi
je 0x466a21
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 0x466aac
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x466a96
push esi
push esi
jmp 0x466a9c
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 0x466ab8
push edi
call fcn.00450060
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x466acf
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.00451e5b
ret
Function at 0x466f42
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x467116
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4a4200]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x467116
test cl, 0x48
je 0x466fad
cmp byte [eax + 5], 0xa
je 0x466fad
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x466fff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x466fe7
call fcn.004502f8
mov dword [eax], 9
call fcn.00450301
mov dword [eax], esi
jmp 0x466ff7
cmp eax, 0x6d
je 0x467116
push eax
call fcn.0045030a
pop ecx
or eax, 0xffffffff
jmp 0x467118
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x467111
test eax, eax
je 0x467026
cmp byte [ebx], 0xa
jne 0x467026
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x46702f
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x46710b
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4670fb
cmp al, 0xd
je 0x467061
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4670ed
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x46707b
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x467076
add dword [ebp + 0x10], 2
jmp 0x4670cf
mov dword [ebp + 0x10], eax
jmp 0x4670e9
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4670a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4670e9
cmp dword [ebp - 0xc], 0
je 0x4670e9
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4670c4
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4670cf
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4670ec
cmp ebx, dword [ebp + 0xc]
jne 0x4670d4
cmp byte [ebp - 1], 0xa
jne 0x4670d4
mov byte [ebx], 0xa
jmp 0x4670ec
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0046118c
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4670ed
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x467045
jmp 0x46710b
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x46710b
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x467118
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46ecc7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x4a00b8]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x46ed16
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jne 0x46ed16
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x46ed22
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
pop esi
call fcn.00450f4f
leave
ret 8

Function at 0x46f728
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a00b8]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x46f775
push dword [ebp + 8]
call fcn.00470ea9
mov esi, eax
test esi, esi
je 0x46f79d
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 0x46f79d
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push 0x479f98
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]
pop esi
call fcn.00450f4f
leave
ret 0xc

Function at 0x46fb3f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x4a00b8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
jne 0x46fb9d
push 0x47d020
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.00451ceb
add esp, 0x10
cmp eax, 0xffffffff
je 0x46fbb1
cmp eax, esi
jae 0x46fbb1
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x46fbb3
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x46fb68
jmp 0x46fbb4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.00450f4f
leave
ret
Function at 0x46fbd4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4a00b8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor ebx, ebx
push 0x47c210
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x46fc76
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x2c], ecx
call esi
push dword [ebp - 0x2c]
mov dword [ebp - 0x48], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x28], 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 - 0x40], eax
call esi
mov dword [ebp - 0x3c], eax
push 4
xor ebx, ebx
jmp 0x46fd78
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x46fd26
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46fd79
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46fd1b
cmp dword [ebp - 0x34], 1
jne 0x46fd1b
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x24]
push 0x47d03c
push eax
call fcn.00451d5b
add esp, 0xc
cmp eax, 1
jne 0x46fd1b
mov eax, dword [ebp - 0x4c]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x28], 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 - 0x48], eax
call esi
push 2
mov dword [ebp - 0x44], eax
pop esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x46fd79
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x46fd79
lea ecx, [ebp - 0x28]
push ecx
push 0x46fbbe
push 1
push 0x10
push eax
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
cmp word [ebp - 0x28], bx
je 0x46fd79
movzx eax, word [ebp - 0x28]
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 - 0x48], eax
call esi
mov dword [ebp - 0x44], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x48], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x46fd9f
push dword [ebp + edi*4 - 0x48]
push dword [ebp + 8]
call fcn.0046fb3f
cmp eax, ebx
pop ecx
pop ecx
jne 0x46fda1
inc edi
cmp edi, esi
jl 0x46fd88
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00450f4f
leave
ret 4
Function at 0x46fdb0
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, 0x49f92c
je 0x46fe6c
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 0x46fe54
mov esi, dword [ebx + 4]
jmp 0x46fe4e
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 0x46fe3e
cmp dword [ebp - 0xc], 4
jne 0x46fe3e
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x46fe36
or dword [eax + 0x9c], ecx
jmp 0x46fe3e
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 0x46fe02
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x46fde5
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x47073d
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 0x470772
cmp edi, dword [esi + 0xc]
jge 0x470772
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x470772
cmp edi, dword [eax + 8]
jge 0x470772
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x470774
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 0x47083a
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 0x47086e
jmp fcn.00469f4f
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x4708df
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 0x4709d8
cmp eax, dword [edi + 0xc]
jge 0x4709d8
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x470930
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x4709c1
cmp dword [ebp + 0xc], ebx
je 0x4709c1
jmp 0x47095a
push 0x10
call fcn.00470609
cmp eax, ebx
je 0x470946
mov ecx, eax
call fcn.00470831
mov esi, eax
jmp 0x470948
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 0x470971
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x470981
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 0x470993
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00469f4f
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.00451dc0
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 0x4709d3
cmp ecx, dword [esi + 8]
jge 0x4709d3
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x4709d9
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8