joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4353bf
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042716b
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4353f7
xor eax, eax
jmp 0x435423
cmp esi, dword [ebp - 4]
je 0x435420
cmp dword [ebp + 0xc], 0
je 0x435420
push dword [edi + 0x9c]
call fcn.00434fcd
push dword [edi + 0x9c]
mov esi, eax
call fcn.004250ad
pop ecx
pop ecx
cmp esi, eax
je 0x4353f3
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x44c1d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
mov esi, dword [eax*4 + 0x482108]
mov eax, esi
mov dword [esp + 0xc], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44c1f8
sub eax, edx
mov edi, eax
mov ecx, edi
shr ecx, 5
inc ecx
mov ebx, edi
mov dword [esp + 0x14], edi
mov edx, edi
cmp edi, ecx
jb 0x44c238
movzx eax, byte [esi + edx - 1]
mov esi, ebx
shl esi, 5
add eax, esi
mov esi, ebx
shr esi, 2
add eax, esi
mov esi, dword [esp + 0xc]
sub edx, ecx
xor ebx, eax
cmp edx, ecx
jae 0x44c215
mov dword [esp + 0x14], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [eax]
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x44c2b2
lea ecx, [ecx]
cmp dword [eax + 0xc], edi
jne 0x44c2ac
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x44c274
nop
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x44c2a4
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x44c260
test ecx, ecx
je 0x44c323
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x44c2a4
cmp ecx, 1
jbe 0x44c323
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x44c2a4
cmp ecx, 2
jbe 0x44c323
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x44c323
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x44c250
mov eax, dword [ebp + 8]
push esi
push eax
mov eax, ebx
call fcn.00432510
add esp, 8
mov ecx, dword [esp + 0x10]
or byte [eax + 5], 0x20
lea edx, [ecx + 1]
inc ecx
mov byte [eax + 6], dl
mov dword [esp + 0x10], ecx
cmp ecx, 0x1f
jl 0x44c1e4
mov ecx, dword [str.type]
test ecx, ecx
je 0x44c31c
mov esi, 0x4821e0
mov bl, 0x2d
mov edi, edi
mov eax, ecx
add esi, 4
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x44c2f8
sub eax, edi
push eax
mov eax, dword [ebp + 8]
push ecx
push eax
call fcn.004325e0
or byte [eax + 5], 0x20
mov byte [eax + 6], bl
mov ecx, dword [esi]
add esp, 0xc
test ecx, ecx
jne 0x44c2f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov cl, byte [eax + 5]
mov esi, dword [esi + 0x10]
movzx ebx, byte [esi + 0x14]
movzx edx, cl
and edx, 3
not ebx
test bl, dl
je 0x44c2c1
xor cl, 3
mov byte [eax + 5], cl
jmp 0x44c2c1
Function at 0x45d88a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x45d8b1
call fcn.0045de2b
mov dword [eax], esi
call fcn.0045de18
push 0x16
pop esi
mov dword [eax], esi
call fcn.00465013
mov eax, esi
jmp 0x45d906
test dword [ebp + 0xc], 0xfffffff9
jne 0x45d897
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45d8de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045de3e
pop ecx
call fcn.0045de18
mov eax, dword [eax]
jmp 0x45d906
test al, 0x10
jne 0x45d904
test al, 1
je 0x45d904
test byte [ebp + 0xc], 2
je 0x45d904
call fcn.0045de2b
mov dword [eax], 5
call fcn.0045de18
mov dword [eax], 0xd
jmp 0x45d8d5
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4721b0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4989d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0046535c
and dword [ebp - 0x14], 0
cmp dword [0x49b184], 0
mov dword [ebp - 0x18], eax
jne 0x472263
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x47230b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x47230b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x480a7c
push ebx
mov dword [0x49b184], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x49b188], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x49b18c], eax
call edi
push eax
call esi
mov dword [0x49b194], eax
test eax, eax
je 0x472263
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x49b190], eax
mov eax, dword [0x49b190]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4722bc
cmp dword [0x49b194], ecx
je 0x4722bc
push eax
call esi
push dword [0x49b194]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4722bc
test ebx, ebx
je 0x4722bc
call edi
test eax, eax
je 0x4722b3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4722b3
test byte [ebp - 8], 1
jne 0x4722bc
or dword [ebp + 0x10], 0x200000
jmp 0x4722ef
mov eax, dword [0x49b188]
cmp eax, dword [ebp - 0x18]
je 0x4722ef
push eax
call esi
test eax, eax
je 0x4722ef
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4722ef
mov eax, dword [0x49b18c]
cmp eax, dword [ebp - 0x18]
je 0x4722ef
push eax
call esi
test eax, eax
je 0x4722ef
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x49b184]
call esi
test eax, eax
je 0x47230b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x47230d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045aac3
leave
ret
Function at 0x4046d0
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x406f48
call fcn.004047f0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp dword [0x408824], ebx
jne 0x40446b
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x24], ebx
mov edi, 0x408818
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x4044a5
cmp eax, esi
jne 0x404498
xor esi, esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x4044a8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40447f
xor esi, esi
inc esi
mov eax, dword [0x408814]
cmp eax, esi
jne 0x4044bb
push 0x1f
call sub.MSVCR100.dll__amsg_exit
pop ecx
jmp 0x4044f6
mov eax, dword [0x408814]
test eax, eax
jne 0x4044f0
mov dword [0x408814], esi
push 0x405200
push 0x4051f4
call sub.MSVCR100.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x4044f6
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x404610
mov dword [0x4084d8], esi
mov eax, dword [0x408814]
cmp eax, esi
jne 0x40451a
push 0x4051f0
push 0x4051e8
call sub.MSVCR100.dll__initterm
pop ecx
pop ecx
mov dword [0x408814], 2
cmp dword [ebp - 0x24], ebx
jne 0x404527
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x408828], ebx
je 0x404548
push 0x408828
call fcn.00404a60
pop ecx
test eax, eax
je 0x404548
push ebx
push 2
push ebx
call dword [0x408828]
mov eax, dword [sym.imp.MSVCR100.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x4045a1
cmp al, bl
je 0x404561
cmp dword [ebp - 0x1c], ebx
jne 0x4045a1
mov al, byte [esi]
cmp al, bl
je 0x404571
cmp al, 0x20
ja 0x404571
inc esi
mov dword [ebp - 0x20], esi
jmp 0x404561
test byte [ebp - 0x40], 1
je 0x40457d
movzx eax, word [ebp - 0x3c]
jmp 0x404580
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x4084d4], eax
cmp dword [0x4084c8], ebx
jne 0x4045f6
push eax
call dword [sym.imp.MSVCR100.dll_exit]
cmp al, 0x22
jne 0x4045b0
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR100.dll__ismbblead]
pop ecx
test eax, eax
je 0x4045c3
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x40454f
cmp dword [0x4084d8], ebx
jne 0x404604
call dword [sym.imp.MSVCR100.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x4084d4]
call fcn.00404835
ret
call 0x57e000
jmp 0x40443d
Function at 0x10036690
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0x100c0738
push edi
call fcn.100b09b7
add esp, 8
mov dword [esi + 0x44], eax
test eax, eax
jne 0x100366e3
push edi
push str.PGBrp
push str.__s__LoadVLB__s_fail__not_found.
push 0x68
push str.D:_srcKVCloud_CmakeKVPAV2017AVE_KVEAVMakeLibFTLibCheck.cpp
push str.FTRecLib::InitLoadLib
push eax
push str.avsdk
call dword [sym.imp.avutil.dll_void___cdecl_avutil_ffl_log_char_const___int__char_const___char_const___unsigned_int__char_const__]
add esp, 0x20
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
push 2
push 0
push eax
call fcn.100b0c88
push dword [esi + 0x44]
call fcn.100b1507
push 0
push 0
push dword [esi + 0x44]
mov ebx, eax
mov dword [ebp - 8], ebx
call fcn.100b0c88
push dword [esi + 0x44]
push 0x40
push 1
push esi
call fcn.100b0e7f
mov dl, byte [esi + 0x2f]
add esp, 0x2c
movzx ecx, dl
inc ecx
shl ecx, 0xc
mov dword [ebp + 8], ecx
cmp eax, 0x40
jne 0x10036819
cmp dword [esi], 0x424c764b
jne 0x10036819
cmp dword [esi + 4], 0
je 0x10036819
lea eax, [ecx + 0x40]
cmp ebx, eax
jb 0x10036819
test dl, dl
jne 0x10036762
movzx eax, word [esi + 0x2c]
mov dl, 3
mov word [esi + 0x3e], ax
mov byte [esi + 0x2f], 3
jmp 0x10036766
movzx eax, word [esi + 0x3e]
movzx ebx, dl
inc ebx
mov dword [ebp - 4], eax
shl ebx, 0xc
push ebx
call fcn.100ad633
mov ecx, eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esi + 0x40], ecx
cmp ebx, eax
jbe 0x10036798
sub ebx, eax
add eax, ecx
push ebx
push 0
push eax
call fcn.100ae3d0
mov eax, dword [ebp + 8]
add esp, 0xc
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x10036800
push dword [esi + 0x44]
push eax
push 1
push ecx
call fcn.100b0e7f
add esp, 0x10
cmp eax, dword [ebp + 8]
jne 0x10036800
mov eax, dword [ebp - 4]
movzx edx, ax
mov eax, dword [esi + 0x40]
add edx, edx
mov ecx, dword [eax + edx*8 + 8]
add ecx, dword [eax + edx*8 + 4]
cmp dword [ebp - 8], ecx
jb 0x10036800
push edi
push str.PGBrp
push str.__s__LoadVLB__s_OK.
push 0x90
push str.D:_srcKVCloud_CmakeKVPAV2017AVE_KVEAVMakeLibFTLibCheck.cpp
push str.FTRecLib::InitLoadLib
push 0
push str.avsdk
call dword [sym.imp.avutil.dll_void___cdecl_avutil_ffl_log_char_const___int__char_const___char_const___unsigned_int__char_const__]
add esp, 0x20
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
call fcn.10036610
push edi
push str.PGBrp
push str.__s__LoadVLB__s_fail_2__Bad_file.
push 0x8d
jmp 0x1003682d
mov ecx, esi
call fcn.10036610
push edi
push str.PGBrp
push str.__s_LoadVLB__s_fail__Bad_file._
push 0x76
push str.D:_srcKVCloud_CmakeKVPAV2017AVE_KVEAVMakeLibFTLibCheck.cpp
push str.FTRecLib::InitLoadLib
push 0
push str.avsdk
call dword [sym.imp.avutil.dll_void___cdecl_avutil_ffl_log_char_const___int__char_const___char_const___unsigned_int__char_const__]
add esp, 0x20
mov eax, 0xfffffffe
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x482935
Capabilities:
Parse pe header

Disassembly:
pushal
xor edx, edx
mov esi, dword fs:[edx]
lodsd eax, dword [esi]
cmp eax, 0xffffffff
je 0x482945
mov esi, eax
jmp 0x48293b
mov edi, dword [esi + 4]
and edi, 0xffff0000
cmp word [edi], 0x5a4d
je 0x48295d
sub edi, 0x10000
jmp 0x48294e
mov ebx, edi
add ebx, dword [ebx + 0x3c]
cmp word [ebx], 0x4550
je 0x48296b
jmp 0x48294e
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x482971
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
pushal
mov ebx, dword [esp + 0x24]
mov ecx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
add ebx, ecx
mov edi, dword [ebx + 0x20]
add edi, ecx
xor esi, esi
lea edx, [edi + esi*4]
mov edx, dword [edx]
add edx, ecx
xor eax, eax
rol eax, 7
xor al, byte [edx]
inc edx
cmp byte [edx], 0
jne 0x482990
cmp eax, dword [esp + 0x28]
je 0x4829a7
inc esi
cmp esi, dword [ebx + 0x18]
jb 0x482987
mov edx, dword [ebx + 0x24]
add edx, ecx
movzx edx, word [edx + esi*2]
mov eax, dword [ebx + 0x1c]
add eax, ecx
mov eax, dword [eax + edx*4]
add eax, ecx
mov dword [esp + 0x1c], eax
popal
ret 8
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x40f172
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
pushal
mov edx, dword [ebp + 8]
mov ax, word [edx]
cmp ax, 0x5a4d
jne 0x40f1a1
mov eax, dword [edx + 0x3c]
add edx, eax
mov eax, dword [edx]
cmp eax, 0x4550
jne 0x40f1a1
add edx, 4
mov dword [ebp - 4], edx
popal
mov eax, dword [ebp - 4]
leave
ret 8
popal
sub eax, eax
leave
ret 8

Function at 0x40fdff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov ecx, 3
mov edx, 1
push ecx
push dword [ebp + 8]
call fcn.0040ff04
rol eax, 8
push dword [ebp + 0xc]
push eax
call fcn.0040ff20
push edx
push dword [ebp + 0x10]
push eax
call fcn.0040feec
inc edx
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.0040ff04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.0040fecb
push ecx
push dword [ebp + 8]
call fcn.0040ff04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.0040ff04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.0040fecb
push ecx
push dword [ebp + 8]
call fcn.0040ff04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.0040ff04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.0040fecb
push ecx
push dword [ebp + 8]
call fcn.0040ff04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.0040ff04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.0040fecb
cmp ecx, 0x2b
jne 0x40fe0f
leave
ret 0xc

Function at 0x4114b4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov byte [ebp - 0x118], 0x42
mov byte [ebp - 0x117], 0x72
mov byte [ebp - 0x116], 0x75
mov byte [ebp - 0x115], 0x74
mov byte [ebp - 0x114], 0x65
mov byte [ebp - 0x113], 0x66
mov byte [ebp - 0x112], 0x6f
mov byte [ebp - 0x111], 0x72
mov byte [ebp - 0x110], 0x63
mov byte [ebp - 0x10f], 0x69
mov byte [ebp - 0x10e], 0x6e
mov byte [ebp - 0x10d], 0x67
mov byte [ebp - 0x10c], 0x20
mov byte [ebp - 0x10b], 0x4b
mov byte [ebp - 0x10a], 0x65
mov byte [ebp - 0x109], 0x79
mov byte [ebp - 0x108], 0
mov eax, 1
lea edi, [ebp - 0x14]
mov ecx, 0x10
mov al, 0
mov byte [edi], al
inc edi
dec ecx
jne 0x411544
mov eax, dword [ebp + 8]
push 4
push 0x3000
push 0x6cf0
push 0
call dword [eax + 0x20]
test eax, eax
je 0x4115d6
mov dword [ebp - 4], eax
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, 0x6cf0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push 0x6cf0
call fcn.004113fa
push 0x6cf0
push dword [ebp + 0xc]
call fcn.0040f1a8
test eax, eax
jne 0x4115b8
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov ecx, 0x6cf0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
call fcn.004115dd
test eax, eax
je 0x4115d6
jmp 0x411574
mov eax, dword [ebp + 8]
push 0x8000
push 0
push dword [ebp - 4]
call dword [eax + 0x28]
test eax, eax
je 0x4115d6
popal
mov eax, 1
leave
ret 8
popal
sub eax, eax
leave
ret 8
Function at 0x12f4000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x12f400a
jmp 0x12f600f
jmp fcn.00fd2058
Function at 0x10001390
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 8]
push eax
push str.SoftwareKuAoSoftKuAo1.0UserConfig
push 0x80000001
xor edi, edi
mov dword [ebp - 4], 0x28
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x100013c6
push esi
call fcn.10001430
add esp, 4
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push esi
lea edx, [ebp - 0xc]
push edx
push edi
push str.UserConfig
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100013ef
cmp dword [ebp - 4], 0x28
jne 0x100013ef
cmp dword [ebp - 0xc], 3
je 0x10001413
mov eax, 1
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x24], eax
mov edi, eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10001430
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x2001f
xor esi, esi
push esi
push str.UserConfig
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10001475
lea ecx, [ebp - 4]
push ecx
push str.SoftwareKuAoSoftKuAo1.0UserConfig
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x10001475
lea eax, [esi + 1]
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
push 0x28
push edx
push 3
push 0
push str.UserConfig
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10001497
mov esi, 2
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10002a70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x10050050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10755018]
cmp dword [eax + 4], 0
push ebx
push esi
push edi
jne 0x10002c60
push 0x10045774
push str.CheckDefaultIME
call fcn.10014390
add esp, 8
lea ecx, [ebp - 0x458]
push ecx
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x10002ae0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10045710
push str.CheckDefaultIME
call fcn.10014390
add esp, 0xc
mov dword [ebp - 0x458], 0x80000001
mov eax, dword [ebp - 0x458]
lea edx, [ebp - 0x44c]
push edx
push str.Keyboard_LayoutPreload
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x10002b21
push eax
push 0x100457e0
push str.CheckDefaultIME
call fcn.10014390
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002656f
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x450]
push ecx
mov ecx, dword [ebp - 0x44c]
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x454]
push eax
push 0
push 0x10045820
push ecx
mov dword [ebp - 0x450], 0x20
call edi
mov edx, dword [ebp - 0x44c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
mov esi, eax
call ebx
test esi, esi
jne 0x10002c4e
cmp dword [ebp - 0x454], 1
jne 0x10002c4e
lea eax, [ebp - 0x48]
push eax
push str.SystemCurrentControlSetControlKeyboard_Layouts_s
lea ecx, [ebp - 0x448]
push 0x100
push ecx
call fcn.100269af
add esp, 0x10
lea edx, [ebp - 0x44c]
push edx
push 0x20019
push esi
lea eax, [ebp - 0x448]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10002c60
lea ecx, [ebp - 0x450]
push ecx
mov ecx, dword [ebp - 0x44c]
lea edx, [ebp - 0x248]
push edx
lea eax, [ebp - 0x454]
push eax
push esi
push str.Ime_File
push ecx
mov dword [ebp - 0x450], 0xff
call edi
mov edx, dword [ebp - 0x44c]
push edx
mov esi, eax
call ebx
test esi, esi
jne 0x10002c47
mov edx, str.kuao.IME
lea ecx, [ebp - 0x248]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x10002c2b
test ax, ax
je 0x10002c27
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x10002c2b
add ecx, 4
add edx, 4
test ax, ax
jne 0x10002c05
xor eax, eax
jmp 0x10002c30
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10002c47
mov eax, dword [0x10755018]
mov dword [eax + 4], 1
push 0x100458ec
jmp 0x10002c53
push 0x100458d4
jmp 0x10002c53
push 0x10045824
push str.CheckDefaultIME
call fcn.10014390
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002656f
mov esp, ebp
pop ebp
ret
Function at 0x10002d40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x10050050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.1002a830
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x412]
push eax
mov word [ebp - 0x414], dx
call fcn.1002a830
push esi
lea ecx, [ebp - 0x414]
push 0x104
push ecx
call fcn.10026be2
add esp, 0x24
lea esi, [ebp - 0x61c]
call fcn.10015090
pop esi
test eax, eax
je 0x10002dc8
lea eax, [ebp - 0x20c]
lea ecx, [ebp - 0x414]
lea edx, [ebp - 0x61c]
call fcn.10015110
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.1002656f
mov esp, ebp
pop ebp
ret