joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49a000
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49a122
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004997b0
xor eax, eax
push ebp
push 0x49a105
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x49a050
call fcn.00404140
jmp 0x49a10c
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x49a0ef
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x49a0ef
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403b04
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x49a0ef
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040d0e4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x49a13c
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4ccc1c]
mov dl, 1
mov eax, dword [0x498ab8]
call fcn.0040da14
call fcn.00404094
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a10c
mov eax, dword [ebp - 4]
call fcn.004997bc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a129
lea eax, [ebp - 0x28]
call fcn.00404764
ret
Function at 0x49a188
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49a2d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004997b0
xor eax, eax
push ebp
push 0x49a2b5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x49a1ed
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x49a1ed
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x49a29f
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x49a200
call fcn.00404140
jmp 0x49a2bc
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x49a29f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x49a29f
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403b04
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x49a29f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040d0e4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x49a2ec
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4ccc1c]
mov dl, 1
mov eax, dword [0x498ab8]
call fcn.0040da14
call fcn.00404094
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a2bc
mov eax, dword [ebp - 4]
call fcn.004997bc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a2d9
lea eax, [ebp - 0x28]
call fcn.00404764
ret
Function at 0x49cfe0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x49d097
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404c24
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x49d022
call fcn.00404140
jmp 0x49d09e
mov eax, ebx
call fcn.0040277c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, esi
call fcn.00404c24
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
jne 0x49d04b
call fcn.00404140
jmp 0x49d09e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x49d0a8
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x49d06c
call fcn.00404140
jmp 0x49d09e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov dword [edi], eax
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d09e
mov eax, dword [ebp - 8]
call fcn.0040279c
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4aedc8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push ecx
mov esi, edx
mov ebx, eax
push esp
push 0x40
push 2
push ebx
call sub.kernel32.dll_VirtualProtect
mov word [ebx], si
pop edx
pop esi
pop ebx
ret

Function at 0x4aede4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push ecx
mov ebx, edx
mov esi, eax
push esp
push 0x40
push 1
push esi
call sub.kernel32.dll_VirtualProtect
mov byte [esi], bl
pop edx
pop esi
pop ebx
ret

Function at 0x4aedfc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push ecx
mov esi, edx
mov ebx, eax
push esp
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
mov dword [ebx], esi
pop edx
pop esi
pop ebx
ret

Function at 0x4c1480
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
mov ebx, 0x4cc4ec
push esp
push 0x40
push 6
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [ebx]
mov byte [eax], 0xe9
mov eax, 0x4c1460
sub eax, dword [ebx]
sub eax, 5
mov edx, dword [ebx]
inc edx
mov dword [edx], eax
mov eax, dword [ebx]
add eax, 5
mov byte [eax], 0x90
push esp
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_VirtualProtect
pop edx
pop ebx
ret

Function at 0x4c154c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esp
push 0x40
push 6
mov eax, dword [0x4cc454]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [0x4cc454]
mov byte [eax], 0xe9
mov eax, 0x4c152c
sub eax, dword [0x4cc454]
sub eax, 5
mov edx, dword [0x4cc454]
inc edx
mov dword [edx], eax
push esp
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [0x4cc454]
push eax
call sub.kernel32.dll_VirtualProtect
pop edx
ret
Function at 0x4c171c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esp
push 0x40
push 5
mov eax, dword [0x4cc460]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [0x4cc460]
mov byte [eax], 0xe9
mov eax, 0x4c16f8
sub eax, dword [0x4cc460]
sub eax, 5
mov edx, dword [0x4cc460]
inc edx
mov dword [edx], eax
push esp
mov eax, dword [esp + 4]
push eax
push 5
mov eax, dword [0x4cc460]
push eax
call sub.kernel32.dll_VirtualProtect
pop edx
ret

Function at 0x4c71e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x108], eax
xor eax, eax
push ebp
push 0x4c72a4
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
push 0
mov eax, dword [0x4ce42c]
call fcn.00461120
push eax
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
je 0x4c728b
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
push ebx
call sub.user32.dll_GetClassNameA
lea eax, [ebp - 0x108]
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.004049d4
mov eax, dword [ebp - 0x108]
mov edx, 0x4c72bc
call fcn.00404b70
jne 0x4c727d
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
push ebx
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 4]
push eax
push ebx
call sub.user32.dll_GetWindowThreadProcessId
call sub.kernel32.dll_GetCurrentProcessId
cmp eax, dword [ebp - 4]
jne 0x4c727d
mov esi, ebx
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
jne 0x4c721b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c72ab
lea eax, [ebp - 0x108]
call fcn.00404764
ret

Function at 0x4c7908
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff7c
mov dword [esp + 4], ecx
mov dword [esp], edx
mov edi, eax
mov ecx, 0x7c
lea eax, [esp + 8]
mov dl, byte [esp]
lea edx, [edx + edx*2]
add dl, 0x4d
mov byte [eax], dl
inc eax
dec ecx
jne 0x4c7923
mov eax, edi
call fcn.00404a24
mov edx, eax
mov eax, dword [esp + 4]
call fcn.00404db0
mov eax, edi
call fcn.00404a24
mov esi, eax
test esi, esi
jle 0x4c797f
mov ebx, 1
mov eax, dword [esp + 4]
call fcn.00404c7c
lea eax, [eax + ebx - 1]
push eax
mov eax, ebx
mov ecx, 0x7c
cdq
idiv ecx
mov al, byte [esp + edx + 0xc]
mov dl, byte [edi + ebx - 1]
xor al, dl
pop edx
mov byte [edx], al
inc ebx
dec esi
jne 0x4c7956
add esp, 0x84
pop edi
pop esi
pop ebx
ret

Function at 0x4c85dc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
mov ebx, dword [0x4cc9bc]
push esp
push 0x40
push 7
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [ebx]
mov byte [eax], 0xe9
mov eax, 0x4c85bc
sub eax, dword [ebx]
sub eax, 5
mov edx, dword [ebx]
inc edx
mov dword [edx], eax
mov eax, dword [ebx]
add eax, 5
mov byte [eax], 0x90
mov eax, dword [ebx]
add eax, 6
mov byte [eax], 0x90
push esp
mov eax, dword [esp + 4]
push eax
push 7
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_VirtualProtect
pop edx
pop ebx
ret
Function at 0x4b3a80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x71000]
push edi
jmp 0x4b3a9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b3aa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b3a90
mov eax, 1
add ebx, ebx
jne 0x4b3ab3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b3ac4
jne 0x4b3ae3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b3ae3
dec eax
add ebx, ebx
jne 0x4b3ad0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b3aa8
add ebx, ebx
jne 0x4b3adf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b3b35
xor ecx, ecx
sub eax, 3
jb 0x4b3afb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b3b6a
sar eax, 1
mov ebp, eax
jmp 0x4b3b06
add ebx, ebx
jne 0x4b3b06
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b3ad4
inc ecx
add ebx, ebx
jne 0x4b3b14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b3ad4
add ebx, ebx
jne 0x4b3b21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b3b16
jne 0x4b3b32
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b3b16
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b3b54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b3b46
jmp 0x4b3a96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b3b54
add edi, ecx
jmp 0x4b3a96
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b3b72
cmp byte [edi], 0x11
jne 0x4b3b72
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4b3b77
lea edi, [esi + 0xaf000]
mov eax, dword [edi]
or eax, eax
je 0x4b3bef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb64e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb6638]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b3ba4
mov ecx, edi
jns 0x4b3bd3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb663c]
or eax, eax
je 0x4b3be9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b3bc1
call dword [esi + 0xb664c]
mov ebp, dword [esi + 0xb6640]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b3c23
sub esp, 0xffffff80
jmp 0x416310
Function at 0x4034e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.4034e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x4034e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4034e06a
add dl, dl
jne 0x4034e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4034e0dc
xor eax, eax
add dl, dl
jne 0x4034e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4034e17d
add dl, dl
jne 0x4034e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4034e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4034e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4034e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x4034e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x4034e075
mov eax, 1
add dl, dl
jne 0x4034e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4034e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4034e0e1
sub eax, ebx
mov ebx, 1
jne 0x4034e128
mov ecx, 1
add dl, dl
jne 0x4034e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4034e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4034e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4034e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x4034e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4034e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4034e136
cmp eax, 0x7d00
jae 0x4034e16d
cmp eax, 0x500
jb 0x4034e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4034e075
cmp eax, 0x7f
ja 0x4034e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4034e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x4034e19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x4034e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x431003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x151406e3
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x431060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x38180691
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
loop 0x4310c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x40b290
Capabilities:
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
Function at 0x40b5a0
Capabilities:
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.SoftwareMicrosoftWindowsCurrentVersionImeJapanIMEJPDictionaries
push eax
xor esi, esi
call fcn.0040b110
add esp, 0xc
test eax, eax
je 0x40b766
push 0x5c
push ebx
call fcn.0041a520
add esp, 8
test eax, eax
jne 0x40b75b
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 8]
push edi
push ecx
push 0x20019
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionImeJapanIMEJPDirectories
push 0x80000002
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b65a
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push 0x431ab0
push 0
push 0
push str.UsrDictPath
push eax
mov dword [esp + 0x28], 0x104
call edi
test eax, eax
jne 0x40b64f
push 0x104
push 0x431ab0
call fcn.00411ca0
push 0x431ab0
call fcn.0040a990
add esp, 4
push ebx
push 0x431ab0
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 0x431ab0
call fcn.0041b23f
add esp, 8
test eax, eax
je 0x40b74e
mov ebx, dword [esp + 0x44]
mov byte [0x431ab0], 0
test ebx, ebx
jne 0x40b6c1
lea eax, [esp + 0x3c]
push eax
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov ecx, dword [esp + 0x3c]
push 0x431ab0
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 0x40b71f
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
jmp 0x40b71f
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 0x40b71f
lea edx, [esp + 0x44]
mov dword [esp + 0x44], 0x104
push edx
push 0x431ab0
push eax
push eax
mov eax, dword [esp + 0x1c]
push str.AppData
push eax
call edi
test eax, eax
jne 0x40b714
push ebx
push 0x104
push 0x431ab0
call fcn.0040b460
add esp, 0xc
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x431ab0
call fcn.0040a990
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 4
push str.MicrosoftIMEIMEJP_
push 0x431ab0
call esi
mov edx, dword [esp + 0x40]
push edx
push 0x431ab0
call esi
mov ebx, dword [esp + 0x40]
push 0x431ab0
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
Function at 0x40b770
Capabilities:
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.SoftwareMicrosoftWindowsCurrentVersionImeJapanIME98Dictionaries
push eax
xor esi, esi
call fcn.0040b110
add esp, 0xc
test eax, eax
je 0x40b936
push 0x5c
push ebx
call fcn.0041a520
add esp, 8
test eax, eax
jne 0x40b92b
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 8]
push edi
push ecx
push 0x20019
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionImeJapanIME98Directories
push 0x80000002
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b82a
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push 0x431dbc
push 0
push 0
push str.UsrDictPath
push eax
mov dword [esp + 0x28], 0x104
call edi
test eax, eax
jne 0x40b81f
push 0x104
push 0x431dbc
call fcn.00411ca0
push 0x431dbc
call fcn.0040a990
add esp, 4
push ebx
push 0x431dbc
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 0x431dbc
call fcn.0041b23f
add esp, 8
test eax, eax
je 0x40b91e
mov ebx, dword [esp + 0x44]
mov byte [0x431dbc], 0
test ebx, ebx
jne 0x40b891
lea eax, [esp + 0x3c]
push eax
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov ecx, dword [esp + 0x3c]
push 0x431dbc
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 0x40b8ef
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
jmp 0x40b8ef
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 0x40b8ef
lea edx, [esp + 0x44]
mov dword [esp + 0x44], 0x104
push edx
push 0x431dbc
push eax
push eax
mov eax, dword [esp + 0x1c]
push str.AppData
push eax
call edi
test eax, eax
jne 0x40b8e4
push ebx
push 0x104
push 0x431dbc
call fcn.0040b460
add esp, 0xc
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x431dbc
call fcn.0040a990
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 4
push str.MicrosoftIMEIMEJP98_
push 0x431dbc
call esi
mov edx, dword [esp + 0x40]
push edx
push 0x431dbc
call esi
mov ebx, dword [esp + 0x40]
push 0x431dbc
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