joyce8/EMBER2024-capa huggingface dataset:
Function at 0x309100b5
Capabilities:
Terminate process

Disassembly:
push 8
push 0x30926bd8
call fcn.30910284
push 8
call fcn.30910948
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x30931db8], esi
jne 0x309100e9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x30931db4], esi
mov al, byte [ebp + 0x10]
mov byte [0x30931db0], al
cmp dword [ebp + 0xc], edi
jne 0x30910133
cmp dword [0x3093368c], edi
je 0x30910123
mov eax, dword [0x30933688]
sub eax, 4
mov dword [0x30933688], eax
cmp eax, dword [0x3093368c]
jb 0x30910123
mov eax, dword [eax]
cmp eax, edi
je 0x30910104
call eax
jmp 0x30910104
push 0x3092e088
mov eax, 0x3092e080
call fcn.30910033
pop ecx
push 0x3092e094
mov eax, 0x3092e08c
call fcn.30910033
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x30910164
cmp dword [ebp + 0x10], edi
jne 0x30910172
mov dword [0x30931db8], esi
push dword [ebp + 8]
call fcn.3090fff1
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x30910171
push 8
call fcn.30910893
pop ecx
ret
call fcn.309102bf
ret

Function at 0x309102d0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.309101d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x3091036b
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x30931d78]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x3091036b
cmp eax, 1
je 0x3091038c
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x3091036b
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x30910338
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x30910367
xor eax, eax
inc eax
jmp 0x309103ab
cmp edi, eax
jae 0x3091036f
xor eax, eax
jmp 0x309103ab
cmp eax, esi
jae 0x30910376
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x30931d78]
jmp 0x3091038f
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x30912ee8
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x3092e9f4]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x3092ef00]
je 0x30912f1d
inc eax
cmp eax, 0x13
jb 0x30912f0e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x3092ef00]
jne 0x30913043
mov eax, dword [0x30931d64]
cmp eax, 1
je 0x3091301b
cmp eax, edx
jne 0x30912f4d
cmp dword [0x30931d68], 1
je 0x3091301b
cmp ecx, 0xfc
je 0x30913043
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x30912f83
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.30915a10
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.3090fec0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x30912fb7
mov eax, edi
push eax
call fcn.3090fec0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x30926ea4
push edi
call fcn.30915b60
add esp, 0x10
push edi
call fcn.3090fec0
push dword [esi + 0x3092ef04]
mov ebx, eax
call fcn.3090fec0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.309101d0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.30915a10
push edi
push ebx
call fcn.30915a20
push 0x30926ea0
push ebx
call fcn.30915a20
push dword [esi + 0x3092ef04]
push ebx
call fcn.30915a20
push 0x12010
push 0x30926e6c
push ebx
call fcn.30915ec0
add esp, 0x2c
jmp 0x30913043
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x3092ef04]
push dword [esi]
call fcn.3090fec0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.3090f27b
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x30915ec0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x30932204], ebx
push esi
push edi
jne 0x30915f40
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x30915f7b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x30932204], eax
je 0x30915f7b
push 0x30927be4
push edi
call esi
push 0x30927bd0
push edi
mov dword [0x30932208], eax
call esi
cmp dword [0x30931d78], 2
mov dword [0x3093220c], eax
jne 0x30915f40
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x30932214], eax
je 0x30915f40
push 0x30927b9c
push edi
call esi
mov dword [0x30932210], eax
mov eax, dword [0x30932210]
test eax, eax
je 0x30915f85
call eax
test eax, eax
je 0x30915f6c
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x30932214]
test eax, eax
je 0x30915f6c
test byte [ebp - 8], 1
jne 0x30915f85
cmp dword [0x30931d84], 4
jb 0x30915f7f
or byte [ebp + 0x12], 0x20
jmp 0x30915fa4
xor eax, eax
jmp 0x30915fb4
or byte [ebp + 0x12], 4
jmp 0x30915fa4
mov eax, dword [0x30932208]
test eax, eax
je 0x30915fa4
call eax
mov ebx, eax
test ebx, ebx
je 0x30915fa4
mov eax, dword [0x3093220c]
test eax, eax
je 0x30915fa4
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x30932204]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x309168e7
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x3092e9f4]
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 0x30916918
xor eax, eax
jmp 0x30916aa1
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 + 0x30933560]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x30916954
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.309188e1
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x30916a2f
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x30916a6d
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 0x309169b8
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x309169a9
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 0x30916989
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 0x309169f8
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x30916a01
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x3091697a
jmp 0x30916a03
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x30916a9c
cmp dword [ebp - 0x6c], edi
je 0x30916a6d
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x30916a62
call fcn.3091045d
mov dword [eax], 9
call fcn.30910466
mov dword [eax], esi
jmp 0x30916a97
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 0x30916a57
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x30916a03
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x30916a03
push dword [ebp - 0x6c]
call fcn.3091046f
pop ecx
jmp 0x30916a97
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x30916a85
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x30916a85
xor eax, eax
jmp 0x30916a9f
call fcn.3091045d
mov dword [eax], 0x1c
call fcn.30910466
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x30916a9f
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.3090f27b
add ebp, 0x3a0
leave
ret
Function at 0x30919382
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 0x30919556
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x30933560]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x30919556
test cl, 0x48
je 0x309193ed
cmp byte [eax + 5], 0xa
je 0x309193ed
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 0x3091943f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x30919427
call fcn.3091045d
mov dword [eax], 9
call fcn.30910466
mov dword [eax], esi
jmp 0x30919437
cmp eax, 0x6d
je 0x30919556
push eax
call fcn.3091046f
pop ecx
or eax, 0xffffffff
jmp 0x30919558
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x30919551
test eax, eax
je 0x30919466
cmp byte [ebx], 0xa
jne 0x30919466
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x3091946f
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 0x3091954b
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x3091953b
cmp al, 0xd
je 0x309194a1
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x3091952d
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x309194bb
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x309194b6
add dword [ebp + 0x10], 2
jmp 0x3091950f
mov dword [ebp + 0x10], eax
jmp 0x30919529
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 0x309194e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x30919529
cmp dword [ebp - 0xc], 0
je 0x30919529
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x30919504
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x3091950f
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x3091952c
cmp ebx, dword [ebp + 0xc]
jne 0x30919514
cmp byte [ebp - 1], 0xa
jne 0x30919514
mov byte [ebx], 0xa
jmp 0x3091952c
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.309167c8
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x3091952d
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x30919485
jmp 0x3091954b
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x3091954b
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 0x30919558
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x3091991f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x3092e9f4]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.309198a1
mov eax, 0x30900000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.3090f870
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x30919981
cmp dword [ebp - 0x1c], 5
jb 0x30919999
jmp 0x30919995
cmp dword [ebp - 0x10], 1
jne 0x30919999
cmp dword [ebp - 0x1c], 4
ja 0x30919995
jne 0x30919999
cmp dword [ebp - 0x18], 0
jbe 0x30919999
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x30928b6c
call fcn.30901050
test eax, eax
jge 0x309199ba
mov byte [0x3092f884], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.3090f27b
add ebp, 0x78
leave
ret

Function at 0x3091eca2
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x3092e9f4]
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 0x3091ecf1
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jne 0x3091ecf1
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x3091ecfd
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
pop esi
call fcn.3090f27b
leave
ret 8

Function at 0x3091f792
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x3092e9f4]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x3091f7df
push dword [ebp + 8]
call fcn.30921530
mov esi, eax
test esi, esi
je 0x3091f807
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 0x3091f807
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push 0x30925f5c
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.3090f27b
leave
ret 0xc
Function at 0x3091fc13
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x3092e9f4]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
jne 0x3091fc71
push 0x30925830
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.3090ff4b
add esp, 0x10
cmp eax, 0xffffffff
je 0x3091fc85
cmp eax, esi
jae 0x3091fc85
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x3091fc87
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x3091fc3c
jmp 0x3091fc88
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.3090f27b
leave
ret
Function at 0x3091fca8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x3092e9f4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor ebx, ebx
push 0x309258dc
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 0x3091fd4a
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 0x3091fe4c
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x3091fdfa
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocStringLen
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x3091fe4d
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 0x3091fdef
cmp dword [ebp - 0x34], 1
jne 0x3091fdef
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x24]
push 0x3092584c
push eax
call fcn.3090ffbb
add esp, 0xc
cmp eax, 1
jne 0x3091fdef
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 0x3091fe4d
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x3091fe4d
lea ecx, [ebp - 0x28]
push ecx
push 0x3091fc92
push 1
push 0x10
push eax
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
cmp word [ebp - 0x28], bx
je 0x3091fe4d
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 0x3091fe73
push dword [ebp + edi*4 - 0x48]
push dword [ebp + 8]
call fcn.3091fc13
cmp eax, ebx
pop ecx
pop ecx
jne 0x3091fe75
inc edi
cmp edi, esi
jl 0x3091fe5c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.3090f27b
leave
ret 4
Function at 0x3091fe84
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 [0x3092e45c], 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, 0x3092e45c
je 0x3091ff40
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 0x3091ff28
mov esi, dword [ebx + 4]
jmp 0x3091ff22
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 0x3091ff12
cmp dword [ebp - 0xc], 4
jne 0x3091ff12
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x3091ff0a
or dword [eax + 0x9c], ecx
jmp 0x3091ff12
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 0x3091fed6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x3091feb9
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

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

Disassembly:
mov eax, 0x30922e41
call fcn.3090f8d0
sub esp, 0x220
mov eax, dword [0x3092e9f4]
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 - 0x228]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x3092042a
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
jne 0x309203fe
and dword [ebp - 4], eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x224]
call fcn.3090a546
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.30920331
mov ecx, dword [ebp - 0x224]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.309014e0
test bl, bl
jne 0x309203fe
or dword [ebp - 4], 0xffffffff
jmp 0x3092036f
cmp esi, 0x103
je 0x3092040e
cmp esi, 0x3f2
jne 0x3092041e
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 - 0x228]
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.3090f27b
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x30920445
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x30922e6c
call fcn.3090f8d0
sub esp, 0x228
mov eax, dword [0x3092e9f4]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], eax
mov esi, ecx
mov dword [ebp - 0x224], edi
call fcn.3091f473
cmp eax, edi
mov dword [ebp - 0x22c], eax
je 0x3092049f
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
lea edx, [ebp - 0x22c]
push edx
call dword [eax + 0x14]
cmp eax, edi
je 0x30920497
mov edx, dword [eax]
push edi
push edi
push 0xfffffffffffffffc
push edi
mov ecx, eax
call dword [edx + 0xc]
cmp dword [ebp - 0x22c], edi
jne 0x30920478
cmp dword [esi + 0x50], edi
je 0x3092059f
push 0x30925c38
lea ecx, [ebp - 0x220]
call fcn.3090a546
push dword [esi + 0x50]
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], edi
call fcn.3091fb2d
push 0x30925c34
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.3091f484
push dword [esi + 0x64]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.3091f484
add esp, 0x18
mov ecx, dword [ebp - 0x230]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.309014e0
lea eax, [ebp - 0x228]
push eax
mov esi, SysReAllocStringLen
push esi
call fcn.30920331
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x220]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x3092056d
push 0x104
lea eax, [ebp - 0x21c]
push eax
push edi
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
jne 0x30920561
lea eax, [ebp - 0x220]
push eax
push esi
call fcn.30920331
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x228]
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea ecx, [edi - 0x10]
call fcn.309014e0
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.309014e0
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
inc eax
pop esi
call fcn.3090f27b
leave
ret

Function at 0x3092086a
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 0x3092089f
cmp edi, dword [esi + 0xc]
jge 0x3092089f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x3092089f
cmp edi, dword [eax + 8]
jge 0x3092089f
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x309208a1
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4