joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101ad35
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 0x1001f50
push Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101ad8d
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1001f8c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101ad80
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x101ad8f
xor eax, eax
pop esi
leave
ret 4
Function at 0x401000
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
xor ebp, ebp
add edi, 4
mov esi, eax
mov dword [esp + 0x10], edi
push 0x42a040
push esi
call fcn.0041a5e0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4010b8
cmp byte [esi], 0x22
jne 0x401051
lea edi, [esi + 1]
push 0x22
push edi
call fcn.0041a520
add esp, 8
test eax, eax
je 0x401051
mov esi, edi
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov byte [ebx], 0
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0041a4fe
mov edx, eax
mov eax, dword [esp + 0x14]
mov edi, esi
or ecx, 0xffffffff
mov dword [eax], edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x42a040
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx + 1]
push ecx
call fcn.0041a4c0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
inc ebp
add ecx, 4
cmp ebp, 0x64
lea esi, [eax + ebx + 1]
mov dword [esp + 0x10], ecx
jb 0x40101e
jmp 0x401107
cmp ebp, 0x64
jae 0x401107
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401107
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0041a4fe
mov edx, eax
mov eax, dword [esp + 0x18]
mov edi, esi
or ecx, 0xffffffff
mov dword [eax + ebp*4 + 4], edx
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebp
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov dword [eax], ebp
pop ebp
mov dword [eax + 0x194], 0
pop ebx
add esp, 8
ret
Function at 0x401e10
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0xf8
mov eax, dword [esp + 0x100]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x2c]
push str._08x
push ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
call fcn.004116f0
test eax, eax
je 0x401f28
mov eax, dword [esp + 0x108]
lea edx, [esp + 0xc]
push edx
push 0xf003f
push 0
push str.Keyboard_LayoutPreload
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x3c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
xor edi, edi
push ecx
push edx
mov edx, dword [esp + 0x14]
push edi
lea eax, [esp + 0x1c]
push edi
lea ecx, [esp + 0xb0]
push eax
push ecx
mov esi, 0x64
push edi
push edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call ebx
cmp eax, 0x103
je 0x401f0f
lea eax, [esp + 0x28]
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.00420a60
add esp, 8
test eax, eax
je 0x401f07
lea edx, [esp + 0x14]
lea eax, [esp + 0x3c]
push edx
push eax
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push 0
lea edx, [esp + 0xb0]
inc edi
push ecx
push edx
push edi
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call ebx
cmp eax, 0x103
jne 0x401ea5
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
add esp, 0xf8
ret
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
add esp, 0xf8
ret
mov eax, dword [esp + 0x108]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0xc]
push ebp
push edx
push 0xf003f
push 0
push str.keyboard_layoutpreload
push eax
call ebx
lea ecx, [esp + 0x24]
xor edi, edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ecx
mov ecx, dword [esp + 0x14]
push edi
push edi
lea edx, [esp + 0x20]
push edi
lea eax, [esp + 0xb4]
push edx
push eax
mov esi, 0x64
push edi
push ecx
mov dword [esp + 0x34], esi
call ebp
cmp eax, 0x103
je 0x40201b
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
push 0xf003f
lea eax, [esp + 0xac]
push 0
push eax
push ecx
call ebx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x18]
lea eax, [esp + 0x40]
push edx
push eax
push 0
push 0
push 0x4313e8
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.00420a60
add esp, 8
test eax, eax
je 0x402013
lea edx, [esp + 0x24]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
lea ecx, [esp + 0xb4]
inc edi
push eax
push ecx
push edi
push edx
mov dword [esp + 0x34], esi
call ebp
cmp eax, 0x103
jne 0x401f83
jmp 0x40201b
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xf8
ret
Function at 0x4023e0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.SystemCurrentControlSetControlKeyboard_Layouts
push 0x80000002
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402525
push ebx
mov eax, dword [esp + 8]
push ebp
push edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push esi
push esi
lea ecx, [esp + 0x28]
push esi
lea edx, [esp + 0x34]
push ecx
push edx
mov edi, 0x104
push esi
push eax
mov dword [esp + 0x3c], edi
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, 0x103
je 0x40250f
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
lea edx, [esp + 0x2c]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x128]
push ecx
push edx
push 0
push 0
push str.IME_File
push eax
mov dword [esp + 0x38], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4024aa
mov edx, dword [esp + 0x230]
lea ecx, [esp + 0x128]
push ecx
push edx
call fcn.00420a60
add esp, 8
test eax, eax
je 0x4024f1
mov eax, dword [esp + 0x18]
push eax
call ebp
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push 0
lea edx, [esp + 0x34]
inc esi
push ecx
push edx
push esi
push eax
mov dword [esp + 0x3c], edi
call ebx
cmp eax, 0x103
jne 0x402449
mov ecx, dword [esp + 0x10]
push ecx
call ebp
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x21c
ret
mov ecx, dword [esp + 0x18]
push ecx
call ebp
lea edx, [esp + 0x14]
lea eax, [esp + 0x24]
push edx
push str._08x
push eax
call fcn.0041ac3e
add esp, 0xc
mov ecx, dword [esp + 0x10]
push ecx
call ebp
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x21c
ret
mov eax, dword [esp + 8]
pop esi
add esp, 0x21c
ret

Function at 0x402660
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x70
mov dword [esp + 4], 0x64
call fcn.004116f0
test eax, eax
lea eax, [esp]
push eax
push 0x20019
push 0
je 0x4026a8
mov ecx, dword [esp + 0x80]
push str.Keyboard_LayoutPreload
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0
push 0x42a22c
jmp 0x4026ce
mov ecx, dword [esp + 0x80]
push str.keyboard_layoutpreload1
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0
push 0x4313e8
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push str._08x
push ecx
call fcn.0041ac3e
mov eax, dword [esp + 0x14]
add esp, 0x7c
ret
Function at 0x404030
Capabilities:
Set registry value

Disassembly:
sub esp, 0x314
lea eax, [esp + 0x210]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.SoftwareMicrosoftIMEMIP_04x
mov esi, ecx
push eax
call edi
xor ecx, ecx
lea edx, [esp + 0x218]
mov cx, word [esi + 0x14]
lea eax, [esp + 0x10]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
lea eax, [esp + 0x10]
push ecx
push edx
push 0
push 0xf003f
push 0
push eax
lea ecx, [esp + 0x28]
push 0
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40424c
push ebx
lea edx, [esp + 0x14]
push str.Input
push edx
call edi
mov eax, dword [esi + 4]
lea ecx, [esp + 0x118]
push eax
push 0x104
push ecx
mov ecx, esi
call fcn.00403de0
mov ecx, dword [esp + 0xc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0x118]
push eax
push edx
push 1
lea eax, [esp + 0x20]
push 0
push eax
push ecx
call ebx
lea edx, [esp + 0x14]
push str.TargetConverted
push edx
call edi
mov eax, dword [esi + 4]
lea ecx, [esp + 0x118]
add eax, 0x1c
push eax
push 0x104
push ecx
mov ecx, esi
call fcn.00403de0
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x118]
push eax
push edx
push 1
lea eax, [esp + 0x20]
push 0
push eax
push ecx
call ebx
lea edx, [esp + 0x14]
push str.Converted
push edx
call edi
mov eax, dword [esi + 4]
lea ecx, [esp + 0x118]
add eax, 0x38
push eax
push 0x104
push ecx
mov ecx, esi
call fcn.00403de0
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x118]
push eax
push edx
push 1
lea eax, [esp + 0x20]
push 0
push eax
push ecx
call ebx
lea edx, [esp + 0x14]
push str.TargetNotConverted
push edx
call edi
mov eax, dword [esi + 4]
lea ecx, [esp + 0x118]
add eax, 0x54
push eax
push 0x104
push ecx
mov ecx, esi
call fcn.00403de0
push eax
lea edx, [esp + 0x11c]
mov ecx, dword [esp + 0x10]
push edx
push 1
lea eax, [esp + 0x20]
push 0
push eax
push ecx
call ebx
lea edx, [esp + 0x14]
push str.InputError
push edx
call edi
mov eax, dword [esi + 4]
lea ecx, [esp + 0x118]
add eax, 0x70
push eax
push 0x104
push ecx
mov ecx, esi
call fcn.00403de0
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x118]
push eax
push edx
push 1
lea eax, [esp + 0x20]
push 0
push eax
push ecx
call ebx
lea edx, [esp + 0x14]
push str.FixedConverted
push edx
call edi
mov eax, dword [esi + 4]
lea ecx, [esp + 0x118]
add eax, 0x8c
push eax
push 0x104
push ecx
mov ecx, esi
call fcn.00403de0
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x118]
push eax
push edx
push 1
lea eax, [esp + 0x20]
push 0
push eax
push ecx
call ebx
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x11c]
pop ebx
pop edi
pop esi
mov dword [ecx], eax
mov eax, 1
add esp, 0x314
ret
pop edi
xor eax, eax
pop esi
add esp, 0x314
ret
Function at 0x404290
Capabilities:
Get keyboard layout

Disassembly:
push 0xffffffffffffffff
push 0x423fac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push ebx
mov dword [ebp], 0x4253dc
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0x18
mov word [ebp + 4], ax
call fcn.0041a4fe
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
cmp esi, ebx
mov dword [esp + 0x120], ebx
je 0x404372
push 0x120
call fcn.0041a4fe
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
mov byte [esp + 0x120], 1
je 0x404315
mov ecx, dword [0x4316a0]
mov dx, word [ebp + 4]
push ecx
push edx
mov ecx, eax
call fcn.004031f0
mov ebx, eax
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
push 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push 0x104
push eax
push str.TransactionServer.MutexObject
mov dword [esi], 0x4253d0
call fcn.00411af0
lea ecx, [esp + 0x18]
xor edi, edi
push ecx
push edi
call fcn.00411480
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 4], eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ebx
mov dword [ebp + 8], esi
mov eax, ebp
pop edi
jmp 0x404379
xor eax, eax
mov dword [ebp + 8], eax
mov eax, ebp
mov ecx, dword [esp + 0x118]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret

Function at 0x406350
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov esi, dword [esp + 0x118]
push edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push 0
mov edi, ecx
push 0
push 0
lea eax, [esp + 0x18]
push 0
lea ecx, [esp + 0x24]
push eax
push ecx
push 0
push esi
mov dword [esp + 0x2c], 0x104
call ebx
cmp eax, 0x103
je 0x406408
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea edx, [esp + 0x18]
mov ecx, edi
push edx
push esi
call fcn.004064d0
lea eax, [esp + 0x14]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
lea ecx, [esp + 0x30]
push 0
push ecx
push esi
call ebp
mov edx, dword [esp + 0x14]
mov ecx, edi
push edx
call fcn.00406350
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push 0
lea eax, [esp + 0x28]
push edx
push eax
push 0
push esi
mov dword [esp + 0x30], 0x104
call ebx
cmp eax, 0x103
jne 0x406395
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10c
ret 4
Function at 0x406c80
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x1110
call fcn.0041adb0
push ebx
push esi
lea eax, [esp + 8]
push edi
mov edi, dword [esp + 0x1124]
lea ecx, [esp + 0x11c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push eax
lea edx, [esp + 0x18]
xor esi, esi
push ecx
push edx
lea eax, [esp + 0x1c]
push esi
lea ecx, [esp + 0x28]
push eax
push ecx
push esi
push edi
mov dword [esp + 0x2c], 0x1000
mov dword [esp + 0x30], 0x104
call ebx
cmp eax, 0x103
je 0x406d37
push ebp
mov ebp, dword [esp + 0x1124]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x120]
push edx
push eax
push ecx
lea edx, [esp + 0x28]
push 0
push edx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x120]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x20]
push 0
lea ecx, [esp + 0x2c]
inc esi
push eax
push ecx
push esi
push edi
mov dword [esp + 0x34], 0x104
mov dword [esp + 0x30], 0x1000
call ebx
cmp eax, 0x103
jne 0x406cdc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1110
ret
Function at 0x409540
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xcc
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov ebx, ecx
push 0x42b88c
push eax
mov dword [esp + 0x18], ebx
xor esi, esi
xor ebp, ebp
call fcn.0041b020
add esp, 8
test eax, eax
je 0x409576
mov dword [ebx + 0x10e0], 1
jmp 0x40957c
mov dword [ebx + 0x10e0], esi
lea ecx, [esp + 0x14]
push 0x42b888
push ecx
call fcn.0041b020
add esp, 8
test eax, eax
je 0x40959e
mov dword [ebx + 0x10dc], 1
jmp 0x4095a4
mov dword [ebx + 0x10dc], esi
lea edx, [esp + 0x14]
push 0x42b884
push edx
call fcn.0041b020
add esp, 8
cmp eax, esi
je 0x4095dc
mov cl, byte [eax + 2]
add eax, 2
cmp cl, 0x49
je 0x4095ca
mov ebp, 1
push 0x42b884
push eax
call fcn.0041b020
add esp, 8
cmp eax, esi
jne 0x4095ba
mov esi, dword [esp + 0xe0]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
lea eax, [esp + 0x18]
push 0xc8
push eax
push 0x4313e8
push str.kana
push str.MSIME
call edi
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
je 0x40962b
lea ecx, [esp + 0x14]
push 0x42b878
push ecx
call ebp
test eax, eax
jne 0x40962b
mov dword [ebx + 0x10ac], 1
jmp 0x409635
mov dword [ebx + 0x10ac], 0
push esi
lea edx, [esp + 0x18]
push 0xc8
push edx
push 0x4313e8
push str.style
push str.MSIME
call edi
lea eax, [esp + 0x14]
push 0x42b86c
push eax
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
test eax, eax
jne 0x40966e
push 0x42b868
jmp 0x409693
lea edx, [esp + 0x14]
push str.ATOK
push edx
call ebp
test eax, eax
je 0x40969a
lea eax, [esp + 0x14]
push 0x42b85c
push eax
call ebp
test eax, eax
je 0x40969a
push str.MS_IME2000
lea ecx, [esp + 0x18]
push ecx
call ebx
mov ebp, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea eax, [ebp + 0x2554]
push eax
call ebx
push esi
lea ecx, [esp + 0x18]
push 0xc8
push ecx
push 0x4313e8
push str.gakusyuu
push str.MSIME
call edi
push 0x10
lea edx, [esp + 0x18]
push 0
push edx
call fcn.0041addf
and eax, 5
add esp, 0xc
test al, al
jne 0x4096ea
mov dword [ebp + 0x2220], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret 4
Function at 0x40a930
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40a98a
push esi
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
inc eax
push eax
push esi
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
ret

Function at 0x40a9c0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x64
push esi
mov esi, dword [esp + 0x6c]
push str.SoftwareMicrosoftIMEJP8.0MSIME
push esi
call fcn.0040aaa0
add esp, 8
test eax, eax
je 0x40a9f6
push str.SoftwareMicrosoftIMEJP8.0MSIME
push esi
call fcn.0040aae0
add esp, 8
test eax, eax
je 0x40a9f6
mov eax, 4
pop esi
add esp, 0x64
ret
push str.SoftwareMicrosoftWindowsCurrentVersionImeJapanIMEJPMSIME
push esi
call fcn.0040aaa0
add esp, 8
test eax, eax
je 0x40aa24
push str.SoftwareMicrosoftWindowsCurrentVersionImeJapanIMEJPMSIME
push esi
call fcn.0040aae0
add esp, 8
test eax, eax
je 0x40aa24
mov eax, 3
pop esi
add esp, 0x64
ret
push str.SoftwareMicrosoftWindowsCurrentVersionImeJapanIME98MSIME
push esi
call fcn.0040aaa0
add esp, 8
test eax, eax
je 0x40aa52
push str.SoftwareMicrosoftWindowsCurrentVersionImeJapanIME98MSIME
push esi
call fcn.0040aae0
add esp, 8
test eax, eax
je 0x40aa52
mov eax, 2
pop esi
add esp, 0x64
ret
push str.SoftwareMicrosoftIMEmsime97MSIME
push esi
call fcn.0040aaa0
add esp, 8
test eax, eax
je 0x40aa6e
mov eax, 1
pop esi
add esp, 0x64
ret
mov eax, dword [esp + 0x70]
lea ecx, [esp + 4]
push eax
push 0x64
push ecx
push 0x4313e8
push str.option
push str.MSIME
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
neg eax
sbb eax, eax
pop esi
and al, 0xf8
add eax, 8
add esp, 0x64
ret

Function at 0x40aae0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ab6e
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push edi
lea ecx, [esp + 0x10]
push eax
push ecx
push esi
push esi
push str.IMEUserName
push edx
mov dword [esp + 0x24], 0x101
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [esp + 0x10]
push str.User_MSIME98
push eax
call edi
test eax, eax
je 0x40ab58
lea ecx, [esp + 0x10]
push str.User_MSIME2000
push ecx
call edi
test eax, eax
je 0x40ab58
mov esi, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
add esp, 0x10c
ret
mov eax, esi
pop esi
add esp, 0x10c
ret
Function at 0x40b110
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push esi
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b18b
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 8]
mov dword [esp + 8], 0x104
push eax
push esi
push 0
push 0
push str.DIC0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b18b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + esi - 1]
cmp eax, esi
jbe 0x40b179
cmp byte [eax], 0x2c
je 0x40b176
dec eax
cmp eax, esi
ja 0x40b16a
jmp 0x40b179
mov byte [eax], 0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
ret
Function at 0x40b290
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x2c
push ebx
mov ebx, dword [esp + 0x38]
push esi
push ebx
push str.SoftwareMicrosoftIMEJP8.0Dictionaries
push eax
xor esi, esi
call fcn.0040b110
add esp, 0xc
test eax, eax
je 0x40b456
push 0x5c
push ebx
call fcn.0041a520
add esp, 8
test eax, eax
jne 0x40b44b
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 8]
push edi
push ecx
push 0x20019
push eax
push str.SoftwareMicrosoftIMEJP8.0Directories
push 0x80000002
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b34a
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push 0x431fc4
push 0
push 0
push str.UsrDictPath
push eax
mov dword [esp + 0x28], 0x104
call edi
test eax, eax
jne 0x40b33f
push 0x104
push 0x431fc4
call fcn.00411ca0
push 0x431fc4
call fcn.0040a990
add esp, 4
push ebx
push 0x431fc4
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x14]
push edx
push 0x431fc4
call fcn.0041b23f
add esp, 8
test eax, eax
je 0x40b43e
mov ebx, dword [esp + 0x44]
mov byte [0x431fc4], 0
test ebx, ebx
jne 0x40b3b1
lea eax, [esp + 0x3c]
push eax
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov ecx, dword [esp + 0x3c]
push 0x431fc4
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x40b40f
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
jmp 0x40b40f
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push ecx
call esi
test eax, eax
jne 0x40b40f
lea edx, [esp + 0x44]
mov dword [esp + 0x44], 0x104
push edx
push 0x431fc4
push eax
push eax
mov eax, dword [esp + 0x1c]
push str.AppData
push eax
call edi
test eax, eax
jne 0x40b404
push ebx
push 0x104
push 0x431fc4
call fcn.0040b460
add esp, 0xc
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x431fc4
call fcn.0040a990
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 4
push str.MicrosoftIMJP8_
push 0x431fc4
call esi
mov edx, dword [esp + 0x40]
push edx
push 0x431fc4
call esi
mov ebx, dword [esp + 0x40]
push 0x431fc4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2c
ret
mov eax, esi
pop esi
pop ebx
add esp, 0x2c
ret