joyce8/EMBER2024-capa huggingface dataset:
Function at 0x106ffeb
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 4
pop eax
call fcn.01069670
mov dword [ebp - 8], esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10700e7
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x4c]
xor esi, esi
cmp dword [0x1098b8c], 2
jne 0x107006c
push 0x100e814
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x107006c
push 0x100f56c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x107006c
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], esi
call eax
cmp eax, 1
pop ecx
jne 0x107006c
cmp dword [ebp - 4], esi
jbe 0x107006c
mov esi, dword [ebp - 4]
mov edx, dword [0x1098b8c]
mov ebx, edx
dec ebx
neg ebx
sbb ebx, ebx
and ebx, 0x103
lea ecx, [edi - 1]
lea eax, [esi + edi - 1]
not ecx
inc ebx
and eax, ecx
mov dword [ebp - 4], eax
je 0x1070095
add eax, edi
mov dword [ebp - 4], eax
lea ecx, [edi + edi]
cmp eax, ecx
jae 0x10700a1
mov dword [ebp - 4], ecx
mov eax, ecx
lea esi, [edi - 1]
not esi
and esi, dword [ebp - 8]
sub esi, eax
cmp edx, 1
jne 0x10700b3
push 0x11
pop edi
mov ecx, dword [ebp - 0xc]
add edi, ecx
cmp esi, edi
jb 0x10700e7
push 4
push 0x1000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x10700e7
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10700e7
xor eax, eax
inc eax
jmp 0x10700e9
xor eax, eax
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1071f45
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 0xff
mov byte [ebp - 3], 0xfe
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1071f94
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1071f84
call esi
mov esi, eax
jmp 0x1071f94
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
pop esi
leave
ret 4

Function at 0x1071fd2
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov esi, ecx
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x1071ffc
call edi
test eax, eax
jne 0x1072013
mov eax, dword [ebp + 8]
add ebx, eax
push ebx
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1072022
call edi
test eax, eax
jle 0x107201f
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10721ff
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x10864fe
call fcn.01068a88
sub esp, 0x28
push esi
push edi
xor edi, edi
test byte [0x1099c7c], 1
mov esi, ecx
jne 0x1072278
or dword [0x1099c7c], 1
push dword [0x1099c64]
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], edi
call fcn.01012a13
push dword [0x10967d8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0101f92e
add esp, 0xc
push eax
mov ecx, 0x1099c6c
mov byte [ebp - 4], 2
call fcn.01012fdc
push 1
lea ecx, [ebp - 0x24]
call fcn.0101260e
push 1
lea ecx, [ebp - 0x34]
call fcn.0101260e
push 0x1086e0f
call fcn.010681ac
pop ecx
mov eax, dword [0x1099c70]
cmp eax, edi
mov dword [ebp - 0x10], edi
jne 0x1072289
mov eax, 0x1001d48
push edi
lea ecx, [ebp - 0x10]
push ecx
push edi
push 0xf003f
push edi
push edi
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10722f1
lea eax, [ebp - 0x14]
push eax
add esi, 0x14
push esi
push edi
push edi
push dword [0x109812c]
mov dword [ebp - 0x14], 4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10722e8
push dword [ebp - 0x14]
mov eax, dword [0x10987f8]
push esi
push 4
push edi
push dword [0x109812c]
mov dword [esi], eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x107263a
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
xor ebx, ebx
mov ecx, eax
shr ecx, 0x10
inc ebx
test bl, cl
jne 0x1072672
mov ecx, eax
shr ecx, 0x13
test bl, cl
jne 0x1072672
mov ecx, eax
shr ecx, 0x11
test bl, cl
jne 0x1072672
shr eax, 0x12
test bl, al
je 0x10726f2
movzx eax, word [esi + 0x14]
test dword [ebp + 8], eax
je 0x10726f2
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.0107245d
mov eax, dword [esi + 0x14]
shr eax, 0x11
test bl, al
mov edi, 0x1001d48
je 0x10726a9
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x10726a2
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esi + 0x14]
mov ecx, eax
shr ecx, 0x10
test bl, cl
jne 0x10726bc
shr eax, 0x13
test bl, al
je 0x10726e5
mov edx, dword [esi + 0x10]
cmp edx, 0xffffffff
je 0x10726e5
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
and dword [ebp + 8], 0
add eax, eax
test ecx, ecx
jne 0x10726d6
mov ecx, edi
push 0
lea edi, [ebp + 8]
push edi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc dword [esi + 0x2c]
push ebx
lea ecx, [ebp - 0x10]
call fcn.0101260e
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1072802
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x1086635
call fcn.01068a88
sub esp, 0x2f0
mov eax, dword [0x1097470]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push 0x1001688
push eax
lea eax, [ebp - 0x2bc]
xor edi, edi
push eax
mov dword [ebp - 0x264], edi
call fcn.0101f92e
push esi
push eax
lea eax, [ebp - 0x2fc]
push eax
mov dword [ebp - 4], edi
call fcn.01029215
push 0x100f95c
push eax
xor ebx, ebx
lea eax, [ebp - 0x2ec]
inc ebx
push eax
mov byte [ebp - 4], bl
call fcn.0101f92e
add esp, 0x24
push eax
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 2
call fcn.01012fdc
push ebx
lea ecx, [ebp - 0x2ec]
call fcn.0101260e
push ebx
lea ecx, [ebp - 0x2fc]
call fcn.0101260e
push ebx
lea ecx, [ebp - 0x2bc]
mov byte [ebp - 4], 4
call fcn.0101260e
mov eax, dword [ebp - 0x298]
cmp eax, edi
jne 0x10728b0
mov eax, 0x1001d48
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x268], eax
je 0x1072a29
mov esi, 0x1001eb0
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x28c]
call fcn.01012a13
push edi
push esi
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 7
call fcn.01018cc8
cmp eax, 0xffffffff
je 0x107294e
push 0xffffffffffffffff
inc eax
push eax
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x28c]
call fcn.01017159
push eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 8
call fcn.01012fdc
push ebx
lea ecx, [ebp - 0x2cc]
mov byte [ebp - 4], 0xa
call fcn.0101260e
push edi
push esi
lea ecx, [ebp - 0x27c]
call fcn.01018cc8
cmp eax, 0xffffffff
jne 0x1072963
push ebx
lea ecx, [ebp - 0x27c]
call fcn.0101260e
push ebx
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 4
call fcn.0101260e
jmp 0x10728d2
push eax
push edi
lea eax, [ebp - 0x2dc]
push eax
lea ecx, [ebp - 0x27c]
call fcn.01017159
push eax
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 0xb
call fcn.01012fdc
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0xc
call fcn.0101292a
push ebx
lea ecx, [ebp - 0x2ac]
call fcn.0101260e
push ebx
lea ecx, [ebp - 0x2dc]
mov byte [ebp - 4], 0xa
call fcn.0101260e
push 0xa
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x26c], edi
call fcn.010714c1
mov eax, dword [ebp - 0x26c]
cmp eax, dword [ebp - 0x264]
jle 0x10729ea
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1072942
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
lea ecx, [ebp - 0x27c]
call fcn.0101260e
push ebx
lea ecx, [ebp - 0x28c]
call fcn.0101260e
push ebx
lea ecx, [ebp - 0x29c]
call fcn.0101260e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x264]
pop edi
inc eax
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
and eax, 0xff
pop ebx
call fcn.01067393
leave
ret 8
Function at 0x1072e61
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1086733
call fcn.01068a88
sub esp, 0x374
mov eax, dword [0x1097470]
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x34c], edi
call fcn.01072d05
mov eax, dword [0x10987f0]
cmp eax, esi
je 0x1072e9d
push eax
mov ecx, edi
call fcn.01072d05
lea eax, [ebp - 0x344]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x336]
push eax
movzx eax, word [ebp - 0x338]
push eax
movzx eax, word [ebp - 0x33a]
push eax
movzx eax, word [ebp - 0x33c]
push eax
movzx eax, word [ebp - 0x344]
push eax
movzx eax, word [ebp - 0x33e]
push eax
movzx eax, word [ebp - 0x342]
push eax
lea eax, [ebp - 0x360]
push 0x100fb30
push eax
call fcn.01071ba0
add esp, 0x24
push eax
push 0x10
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.010726fd
xor ebx, ebx
inc ebx
push ebx
lea ecx, [ebp - 0x360]
call fcn.0101260e
lea eax, [ebp - 0x330]
push eax
mov dword [ebp - 0x330], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x36c], esi
mov dword [ebp - 0x368], esi
mov dword [ebp - 0x364], esi
lea eax, [ebp - 0x334]
push eax
push 0x20019
push esi
push 0x100fad0
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0x334], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1072fef
xor eax, eax
mov ecx, 0x82
lea edi, [ebp - 0x21c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x350]
push eax
push esi
push 0x100fabc
push dword [ebp - 0x334]
mov dword [ebp - 0x350], esi
mov dword [ebp - 0x348], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x1072fef
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x360]
call fcn.01012a13
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x360]
push eax
lea ecx, [ebp - 0x370]
mov byte [ebp - 4], 2
call fcn.0101292a
push ebx
lea ecx, [ebp - 0x360]
mov byte [ebp - 4], bl
call fcn.0101260e
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x380]
push eax
call fcn.01072198
mov edx, dword [ebp - 0x36c]
cmp edx, esi
mov byte [ebp - 4], 3
mov ecx, 0x1001d48
jne 0x1073017
mov edx, ecx
mov eax, dword [eax + 4]
cmp eax, esi
jne 0x1073020
mov eax, ecx
push edx
lea ecx, [ebp - 0x31c]
push ecx
push dword [ebp - 0x324]
push dword [ebp - 0x328]
push dword [ebp - 0x32c]
push eax
lea eax, [ebp - 0x360]
push 0x100fa48
push eax
call fcn.01071ba0
add esp, 0x20
mov esi, dword [ebp - 0x34c]
push eax
push 0x10
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.010726fd
push ebx
lea ecx, [ebp - 0x360]
call fcn.0101260e
push ebx
lea ecx, [ebp - 0x380]
mov byte [ebp - 4], bl
call fcn.0101260e
push dword [esi + 0x14]
lea eax, [ebp - 0x380]
push 0x100fa18
push eax
call fcn.01071ba0
add esp, 0xc
push eax
push 0x10
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.010726fd
push ebx
lea ecx, [ebp - 0x380]
call fcn.0101260e
push ebx
lea ecx, [ebp - 0x370]
call fcn.0101260e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01067393
leave
ret
Function at 0x10730f5
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, 0x1086775
call fcn.01068a88
sub esp, 0x24
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.01013179
or dword [esi + 0x10], 0xffffffff
or dword [esi + 0x18], 0xffffffff
xor edi, edi
mov dword [esi + 0x14], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
xor ebx, ebx
inc ebx
mov ecx, esi
mov byte [ebp - 4], bl
mov dword [esi + 0x2c], edi
mov dword [esi + 0x48], edi
call fcn.010721ff
lea eax, [esi + 0x30]
push eax
call fcn.01071fa0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x14]
mov ecx, eax
shr ecx, 0x10
test bl, cl
je 0x107319c
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 2
call fcn.01072a5f
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x1c]
cmp eax, edi
jne 0x1073184
mov eax, 0x1001d48
push eax
lea eax, [ebp - 0x30]
push 0x100fbec
push eax
call fcn.01071ba0
add esp, 0xc
mov byte [ebp - 4], 3
jmp 0x10731e1
shr eax, 0x13
test bl, al
je 0x1073200
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 4
call fcn.01072304
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x1c]
cmp eax, edi
jne 0x10731cb
mov eax, 0x1001d48
push eax
lea eax, [ebp - 0x30]
push 0x100fbb8
push eax
call fcn.01071ba0
add esp, 0xc
mov byte [ebp - 4], 5
push eax
mov ecx, esi
push 0x10
call fcn.010726fd
lea ecx, [ebp - 0x30]
push ebx
call fcn.0101260e
lea ecx, [ebp - 0x20]
push ebx
mov byte [ebp - 4], bl
call fcn.0101260e
mov ecx, esi
call fcn.01072e61
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x1074ed0
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push edi
push 0xd
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x34], 8
push 0x102b
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
leave
ret 0x10
Function at 0x10756b8
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x10869b2
call fcn.01068a88
sub esp, 0x14
push edi
push dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp eax, edi
jne 0x10756e6
mov eax, dword [ebp + 8]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
jmp 0x107574c
push esi
lea esi, [eax + 1]
push edi
push esi
lea ecx, [ebp - 0x20]
call fcn.01072175
mov eax, dword [ebp - 0x1c]
cmp eax, edi
mov dword [ebp - 4], edi
jne 0x1075703
mov eax, 0x1001d48
push esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, edi
lea ecx, [ebp - 0x20]
jne 0x107572c
mov esi, dword [ebp + 8]
push 1
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call fcn.0101260e
mov eax, esi
jmp 0x107574b
push eax
call fcn.01075627
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
call fcn.01012fdc
push 1
lea ecx, [ebp - 0x20]
call fcn.0101260e
mov eax, dword [ebp + 8]
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x1075760
Capabilities:
Get hostname

Disassembly:
mov eax, 0x108699b
call fcn.01068a88
sub esp, 0x1c
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0xffffffffffffffff
xor ebx, ebx
push ebx
call fcn.010128b8
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
call esi
mov edi, dword [ebp - 0x10]
lea edi, [edi + edi + 2]
push edi
call fcn.01015ada
pop ecx
mov ecx, edi
mov dword [ebp - 0x14], eax
mov edi, dword [ebp - 0x14]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 8]
call esi
cmp eax, ebx
jne 0x10757d4
call fcn.01046fb1
mov dword [ebp - 0x18], eax
jmp 0x10757f9
push edi
lea ecx, [ebp - 0x28]
call fcn.01012a13
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], ebx
call fcn.0101292a
push 1
lea ecx, [ebp - 0x28]
call fcn.0101260e
cmp edi, ebx
je 0x1075804
push edi
call fcn.01012555
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x107662f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10100dc
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1076687
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x10048f8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x107667a
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1076689
xor eax, eax
pop esi
leave
ret 4
Function at 0x10770d2
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1077280
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x1077280
cmp dword [ebp + 0x18], 0
je 0x1077280
push 0x800
call fcn.01015ada
test eax, eax
pop ecx
mov dword [ebp - 4], eax
je 0x1077280
and dword [ebp + 8], 0
push ebx
push edi
call fcn.01068512
mov ebx, dword [sym.imp.GDI32.dll_TextOutW]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x10]
pop ecx
cmp word [edi], 0
je 0x107726b
push dword [ebp + 0x18]
and dword [ebp + 8], 0
push dword [ebp - 4]
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_GetTextExtentExPointW]
test eax, eax
je 0x107727b
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jge 0x1077237
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
cmp ax, 0x404
je 0x10771ae
cmp ax, 0x804
je 0x10771ae
cmp ax, 0x411
je 0x10771ae
cmp ax, 0x412
je 0x10771ae
cmp dword [ebp + 8], 0
je 0x1077211
mov eax, dword [ebp + 8]
mov ax, word [edi + eax*2 - 2]
cmp ax, 0x20
je 0x10771e7
cmp ax, 0x2c
je 0x10771e7
cmp ax, 0x3b
je 0x10771e7
dec dword [ebp + 8]
jne 0x107718d
jmp 0x107720b
cmp dword [ebp + 8], 0
je 0x1077211
mov eax, dword [ebp + 8]
mov ax, word [edi + eax*2 - 2]
cmp ax, 0x30
jb 0x10771c8
cmp ax, 0x39
jbe 0x10771e0
cmp ax, 0x61
jb 0x10771d4
cmp ax, 0x7a
jbe 0x10771e0
cmp ax, 0x41
jb 0x10771e7
cmp ax, 0x5a
ja 0x10771e7
dec dword [ebp + 8]
jne 0x10771b4
jmp 0x107720b
cmp byte [ebp + 0x24], 0
je 0x10771fb
push dword [ebp + 8]
push edi
push dword [esi + 4]
push dword [esi]
push dword [ebp + 0xc]
call ebx
mov eax, dword [ebp + 8]
lea edi, [edi + eax*2]
push edi
call fcn.01068512
pop ecx
mov dword [ebp + 0x14], eax
cmp dword [ebp + 8], 0
jne 0x107724f
cmp byte [ebp + 0x24], 0
je 0x1077225
push dword [ebp + 0x10]
push edi
push dword [esi + 4]
push dword [esi]
push dword [ebp + 0xc]
call ebx
mov eax, dword [ebp + 0x10]
lea edi, [edi + eax*2]
push edi
call fcn.01068512
pop ecx
mov dword [ebp + 0x14], eax
jmp 0x107724f
cmp byte [ebp + 0x24], 0
je 0x107724c
push eax
push edi
push dword [esi + 4]
push dword [esi]
push dword [ebp + 0xc]
call ebx
mov eax, dword [ebp + 8]
lea edi, [edi + eax*2]
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
sub eax, ecx
mov dword [esi], ecx
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 4]
inc ecx
add dword [esi + 4], ecx
test edi, edi
jne 0x1077128
mov esi, eax
push dword [ebp - 4]
call fcn.01012555
pop ecx
mov eax, esi
pop ebx
jmp 0x1077283
or esi, 0xffffffff
jmp 0x107726d
or eax, 0xffffffff
pop edi
pop esi
leave
ret 0x20
Function at 0x107aeea
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x4c], ebx
je 0x107af04
xor al, al
jmp 0x107b058
mov eax, dword [esi + 0x24]
cmp eax, ebx
push edi
mov dword [ebp - 4], eax
je 0x107afa2
jmp 0x107af18
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
je 0x107afa2
mov edi, dword [eax + 4]
cmp byte [edi + 0x1d], bl
mov dword [ebp - 8], edi
jne 0x107af34
push edi
mov ecx, esi
call fcn.0107728e
mov eax, dword [edi + 0x2c]
mov edi, dword [eax]
cmp edi, eax
je 0x107af71
mov eax, dword [edi + 8]
mov eax, dword [eax]
cmp eax, ebx
je 0x107af4d
push eax
call fcn.01068bbd
pop ecx
mov eax, dword [edi + 8]
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x107af5e
push eax
call fcn.01068bbd
pop ecx
push dword [edi + 8]
call fcn.01012555
mov edi, dword [edi]
mov eax, dword [ebp - 8]
cmp edi, dword [eax + 0x2c]
pop ecx
jne 0x107af3d
mov edi, dword [ebp - 8]
mov eax, dword [edi]
cmp eax, ebx
je 0x107af81
push eax
call fcn.01068bbd
pop ecx
push 1
mov ecx, edi
call fcn.0107aa41
mov eax, dword [ebp - 4]
mov edi, dword [eax + 8]
push eax
call fcn.01068bbd
cmp edi, ebx
pop ecx
mov dword [ebp - 4], edi
jne 0x107af15
lea ecx, [esi + 0x40]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
call fcn.01079885
or dword [esi + 0x60], 0xffffffff
or dword [esi + 0x78], 0xffffffff
lea ecx, [esi + 0x2c]
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x7c], ebx
mov byte [esi + 0x80], bl
mov dword [esi + 0x9c], ebx
mov byte [esi + 0x81], bl
mov byte [esi + 0x82], bl
mov byte [esi + 0x83], bl
mov dword [esi + 0x38], ebx
mov byte [esi + 0x3c], bl
mov byte [esi + 0x3d], bl
call fcn.01079885
push 7
pop ecx
push dword [esi + 0xb8]
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x24], 0x1c
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x24]
push eax
push edi
push dword [esi + 0xb8]
call dword [sym.imp.USER32.dll_SetScrollInfo]
push edi
push dword [esi + 0x1c]
push edi
push dword [esi + 0xb8]
call dword [sym.imp.USER32.dll_SetScrollPos]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret