joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401731
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0x20019
push esi
push 0x40127c
push 0x80000002
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x40179a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x40124c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x40179a
cmp dword [ebp - 8], 4
jne 0x40179a
xor eax, eax
inc eax
cmp dword [ebp - 0xc], eax
jne 0x40179a
mov dword [0x406060], eax
cmp dword [ebp - 4], esi
pop esi
je 0x4017a9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x401c23
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push edi
mov edi, ecx
cmp dword [edi + 0x20], 0
je 0x401c3f
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [edi + 4]
cmp ebx, 0xffffffff
jne 0x401c53
mov dword [ebp - 4], 0x80004005
jmp 0x401cdc
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x401c76
push 0x7d00
mov ecx, edi
call fcn.00401b79
mov esi, eax
test esi, esi
jne 0x401c76
mov dword [ebp - 4], 0x8007000e
jmp 0x401cdb
and dword [esi + 0x1c], 0
mov dword [esi + 0x18], 1
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov eax, dword [esi + 0x28]
push esi
lea ecx, [esi + 0x20]
push ecx
mov ecx, dword [esi + 0x24]
sub ecx, eax
push ecx
lea eax, [eax + esi + 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401ccd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x401ccd
cmp eax, 0xea
je 0x401ccd
and dword [esi + 0x18], 0
mov eax, dword [edi]
push edi
call dword [eax + 8]
call fcn.00404b29
mov dword [ebp - 4], eax
jmp 0x401cdb
and dword [esi + 0x18], 0
mov ecx, 0x4060a0
call fcn.00403486
pop esi
cmp dword [edi + 0x20], 0
je 0x401cec
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 4], 0
pop edi
pop ebx
je 0x401cfc
push dword [ebp - 4]
call fcn.00401a9c
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x401e26
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x401e38
mov eax, 0x80070057
pop ebp
ret 4
mov ecx, dword [0x406048]
pop ebp
jmp fcn.00401d03
Function at 0x40289f
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
or dword [ebp - 8], 0xffffffff
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x10]
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0xc], ecx
add esi, 0x18
call fcn.0040277b
mov ebx, eax
xor eax, eax
cmp dword [ebp + 0x10], eax
mov dword [ebp + 8], eax
je 0x4028d9
cmp ebx, 0xffffffff
je 0x402935
cmp ebx, 0xffffffff
je 0x40292e
cmp ebx, eax
je 0x40292e
push eax
lea eax, [ebp - 4]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402924
cmp dword [ebp - 4], esi
jne 0x402924
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x10]
push 0
lea ecx, [ebp - 4]
push ecx
add esi, 0x18
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402924
mov ecx, 0x4060a0
call fcn.00403486
cmp dword [ebp - 4], esi
je 0x402935
call fcn.00404b29
mov dword [ebp + 8], eax
jmp 0x402935
mov dword [ebp + 8], 0x80004005
mov eax, dword [ebp - 8]
test eax, eax
pop edi
pop esi
pop ebx
jl 0x402957
mov ecx, dword [ebp - 0xc]
shl eax, 5
add eax, dword [ecx]
cmp dword [eax + 0x1c], 0
je 0x402957
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
leave
ret 0xc

Function at 0x40295e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x406068]
sub esp, 0xc
push esi
xor esi, esi
cmp ecx, esi
jne 0x402978
mov eax, 0x80004005
jmp 0x4029e3
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.0040277b
xor edi, edi
cmp eax, 0xffffffff
je 0x4029b5
cmp eax, esi
je 0x4029b5
push esi
lea ecx, [ebp - 8]
push ecx
push esi
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4029b5
call fcn.00404b29
mov edi, eax
mov eax, dword [ebp - 4]
cmp eax, esi
jl 0x4029d6
mov ecx, dword [0x406068]
shl eax, 5
add eax, dword [ecx]
cmp dword [eax + 0x1c], esi
je 0x4029d6
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, esi
je 0x4029e0
push edi
call fcn.0040284d
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x403f82
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40600c]
jne 0x403f93
test ecx, 0xffff0000
jne 0x403f93
ret
jmp fcn.00403f98

Function at 0x404317
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x404fe8
call fcn.00404688
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x406c78
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x40410b
cmp eax, esi
jne 0x4040fe
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x40410e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4040e5
xor esi, esi
inc esi
mov eax, dword [0x406c74]
cmp eax, esi
jne 0x404121
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x40415c
mov eax, dword [0x406c74]
test eax, eax
jne 0x404156
mov dword [0x406c74], esi
push 0x4011ec
push 0x4011dc
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40415c
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x404233
mov dword [0x4063f0], esi
mov eax, dword [0x406c74]
cmp eax, esi
jne 0x404180
push 0x4011d8
push 0x4011c0
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x406c74], 2
cmp dword [ebp - 0x1c], ebx
jne 0x40418d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x406c84], ebx
je 0x4041ae
push 0x406c84
call fcn.004045c0
pop ecx
test eax, eax
je 0x4041ae
push ebx
push 2
push ebx
call dword [0x406c84]
mov eax, dword [0x4063d8]
mov ecx, dword [sym.imp.MSVCR80.dll___winitenv]
mov dword [ecx], eax
push dword [0x4063d8]
push dword [0x4063dc]
push dword [0x4063d4]
call fcn.00402fc3
add esp, 0xc
mov dword [0x4063ec], eax
cmp dword [0x4063e0], ebx
jne 0x404219
push eax
call dword [sym.imp.MSVCR80.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.MSVCR80.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x4063f0], ebx
jne 0x404227
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x4063ec]
call fcn.004046cd
ret
call fcn.00403f14
jmp 0x4040c3
Function at 0x406a10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.00406c70
call fcn.00406c00
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x406a48
jmp 0x406ae6
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x406a47
cmp cl, 0x22
je 0x406aa0
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x406ac0
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x406ac0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x406a80
jmp 0x406ac0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x406aa0
cmp cl, 0x22
je 0x406b22
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x406ae0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x406ad0
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x406b04
movzx edx, word [ebp - 0x28]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call fcn.004013b0
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x406ac0

Function at 0x40893f
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
add eax, 0xbacd8d73
and eax, edx
call fcn.00408969
xor dword [ecx], ebx
and edx, edx
inc ecx
add eax, eax
sub eax, 0xa9f327e3
cmp ecx, edi
jne fcn.0040893f
add edx, 0x2c692bd1
ret
Function at 0xf4174b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
xor ebx, ebx
cmp eax, ebx
je 0xf417a6
cmp eax, 0xffffffff
je 0xf417a6
cmp dword [ebp + 8], ebx
je 0xf417a6
push esi
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [edi + 0x44]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
add esi, esi
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0xf4f302
cmp esi, dword [ebp - 4]
jne 0xf4f31d
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 4
mov ebx, 0x80070057
jmp 0xf4179e

Function at 0xf4227c
Capabilities:
Query environment variable

Disassembly:
push 0x20
mov eax, 0xf5621c
call fcn.00f41350
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push ebx
push 0x20019
push dword [0xf5b458]
lea ecx, [ebp - 0x2c]
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.00f42097
test eax, eax
jne 0xf423c4
lea eax, [ebp - 0x20]
push eax
push dword [0xf5b45c]
lea ecx, [ebp - 0x2c]
push ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
call fcn.00f423dc
test eax, eax
jne 0xf423c4
mov eax, dword [ebp - 0x20]
xor ecx, ecx
push 2
add eax, eax
pop edx
mul edx
seto cl
mov byte [ebp - 4], 1
neg ecx
or ecx, eax
push ecx
call fcn.00f413e0
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0xf423c4
lea eax, [ebp - 0x20]
push eax
push dword [0xf5b45c]
lea ecx, [ebp - 0x2c]
push esi
call fcn.00f423dc
test eax, eax
jne 0xf423bb
push ebx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call esi
mov edi, eax
cmp edi, ebx
je 0xf423bb
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00f413e0
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0xf423bb
push edi
push eax
push dword [ebp - 0x1c]
call esi
mov esi, eax
cmp esi, ebx
je 0xf423b2
cmp dword [ebp + 8], ebx
je 0xf4ea08
push dword [0xf5b460]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + esi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00f413e0
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0xf423b2
push dword [ebp - 0x14]
push esi
push eax
call fcn.00f421cb
push dword [0xf5b460]
push edi
push dword [ebp - 0x18]
call fcn.00f42436
push dword [ebp - 0x14]
call fcn.00f413c0
pop ecx
push dword [ebp - 0x1c]
call fcn.00f413c0
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.00f41f10
mov eax, dword [ebp - 0x18]
call fcn.00f41390
ret 4
Function at 0xf423dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], ebx
jbe 0xf4242c
cmp dword [ebp - 4], 2
ja 0xf4e965
mov ecx, dword [edi]
test cl, 1
jne 0xf4242c
cmp esi, ebx
je 0xf42425
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
jne 0xf4242c
pop edi
pop esi
pop ebx
leave
ret 0xc
push 0xd
pop eax
jmp 0xf42425

Function at 0xf424ed
Capabilities:
Delete file
Move file

Disassembly:
push 0x14
mov eax, 0xf56b05
call fcn.00f41350
mov esi, ecx
mov eax, dword [esi + 0x44]
xor edi, edi
mov ebx, 0x8007000e
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
cmp eax, edi
je 0xf42519
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x44], edi
cmp dword [ebp + 8], edi
je 0xf4265b
cmp dword [ebp + 0xc], edi
je 0xf4265b
push 1
call fcn.00f4227c
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0xf4264a
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov dword [ebp - 4], edi
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea eax, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x20], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00f413e0
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0xf4259b
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.00f421cb
mov ebx, eax
test ebx, ebx
jl 0xf4259b
push dword [ebp + 8]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.00f42436
mov ebx, eax
test ebx, ebx
jl 0xf4259b
xor ebx, ebx
inc ebx
or dword [ebp - 4], 0xffffffff
test ebx, ebx
jl 0xf42632
push 2
pop ebx
push dword [ebp - 0x1c]
mov dword [ebp - 4], ebx
call esi
push dword [ebp + 0xc]
mov edi, eax
call esi
lea esi, [eax + edi + 1]
xor ecx, ecx
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00f413e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0xf42654
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.00f421cb
mov ebx, eax
test ebx, ebx
jl 0xf42623
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x14]
call fcn.00f42436
mov ebx, eax
test ebx, ebx
jl 0xf42623
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0xf42623
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0xf4f3a2
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0xf42632
push dword [ebp - 0x14]
call fcn.00f413c0
pop ecx
cmp dword [ebp - 0x18], 0
je 0xf42641
push dword [ebp - 0x18]
call fcn.00f413c0
pop ecx
push dword [ebp - 0x1c]
call fcn.00f413c0
pop ecx
mov eax, ebx
call fcn.00f41390
ret 8
mov ebx, 0x8007000e
jmp 0xf425fe
mov ebx, 0x80070057
jmp 0xf4264a
Function at 0xf43a67
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0xf43ae4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0xf43ac0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0xf43ad0
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0xffffffff
pop esi
je 0xf4e30e
mov eax, dword [ebp - 8]
leave
ret
Function at 0xf44267
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0xf5b00c], esi
jne 0xf442be
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0xf42c6f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0xf5b00c], eax
cmp eax, esi
je 0xf4e4ec
push 0xffffffffffffffff
push dword [0xf5b014]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0xf5b014]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [0xf5b018], esi
jl 0xf4e50a
pop esi
leave
ret

Function at 0xf44441
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0xf44498
call fcn.00f42712
xor eax, eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0xf44490
cmp ecx, 0xffffffff
je 0xf44490
and dword [ebp - 4], eax
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0xf44489
mov edx, dword [ecx + 0x3c]
test edx, edx
jl 0xf44489
cmp edx, 0x10000000
jae 0xf44489
lea eax, [edx + ecx]
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0xf4e892
mov dword [ebp - 4], 0xfffffffe
call fcn.00f42757
ret 4

Function at 0xf4681f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0xf5b004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, ecx
inc eax
cmp dword [esi + 0x2c], 0
jne 0xf46933
push edi
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x105
push edi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x420], eax
cmp eax, edi
ja 0xf4ed16
lea eax, [ebp - 0x41c]
push eax
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00f421cb
test eax, eax
jl 0xf46932
mov ecx, dword [ebp - 0x420]
cmp word [ebp + ecx*2 - 0x210], 0x5c
je 0xf468c3
push 0xf46994
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00f42436
test eax, eax
jl 0xf46932
push 0xf46980
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00f42436
test eax, eax
jl 0xf46932
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x2c], eax
test eax, eax
je 0xf4ed20
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0xf46970
push eax
call edi
push 0xf4695c
push dword [esi + 0x2c]
mov dword [esi + 0x30], eax
call edi
push 0xf46948
push dword [esi + 0x2c]
mov dword [esi + 0x34], eax
call edi
cmp dword [esi + 0x30], 0
mov dword [esi + 0x38], eax
je 0xf46940
cmp dword [esi + 0x34], 0
je 0xf46940
test eax, eax
je 0xf46940
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00f420d4
leave
ret
mov eax, 0x8007007f
jmp 0xf46932
Function at 0xf471f8
Capabilities:
Identify system language via api

Disassembly:
push 0x2c
mov eax, 0xf5608c
call fcn.00f439dd
lea ecx, [ebp - 0x34]
call fcn.00f46c55
and dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push 0
call fcn.00f4758b
test eax, eax
jl 0xf4722c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00f472a7
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
mov eax, 0x409
mov edi, 0xf47298
cmp ax, si
jne 0xf4e4b4
and esi, 0x3ff
push esi
push edi
lea eax, [ebp - 0x30]
push 8
push eax
call fcn.00f41451
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00f4758b
mov esi, eax
test esi, esi
jl 0xf47280
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00f472a7
mov esi, eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.00f4760b
mov eax, esi
call fcn.00f42b9f
ret

Function at 0xf4791d
Capabilities:
Identify system language via api

Disassembly:
lea eax, [ebp - 0x30]
push eax
call esi
push 8
pop eax
push dword [ebp + 0x10]
mov word [ebp - 0x30], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0xf4dc4f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0x82
lea edx, [ebp - 0x30]
push edx
push 0xf47900
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call edi
cmp esi, ebx
jl 0xf479a8
push 1
lea ecx, [ebp - 0x20]
call fcn.00f479e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0xf478ec
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.00f471e0
cmp esi, ebx
jl 0xf479a8
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push 3
movzx eax, ax
pop ecx
mov word [ebp - 0x20], cx
mov dword [ebp - 0x18], eax
jmp 0xf47992
push 0x24
mov eax, 0xf55c85
call fcn.00f426dd
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x20]
push eax
call esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
mov dword [ebp - 0x10], ebx
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp + 0xc], ebx
je 0xf47854
push 1
lea ecx, [ebp - 0x20]
call fcn.00f479e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0xf43984
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jl 0xf479a6
push 3
pop eax
mov word [ebp - 0x20], ax
mov dword [ebp - 0x18], 0x409
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x20]
push edx
push 0xf479d0
push eax
call dword [ecx + 0x10]
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00f47455
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.00f471e0
mov eax, esi
call fcn.00f41390
ret 0xc
Function at 0xf47b05
Capabilities:
Identify system language via api

Disassembly:
push 0x50
mov eax, 0xf55fc0
call fcn.00f439dd
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x5c], ecx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x54], esi
call fcn.00f47c2b
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x58]
mov ebx, eax
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0xf47b34
sub eax, ecx
sar eax, 1
mov edi, eax
je 0xf47b63
movzx eax, word [ebx + esi*2]
push eax
call dword [sym.imp.msvcrt.dll_iswxdigit]
pop ecx
test eax, eax
je 0xf47b5b
inc esi
cmp esi, edi
jb 0xf47b46
cmp esi, edi
jb 0xf47c0e
xor eax, eax
mov edx, ebx
test edi, edi
jbe 0xf47c0e
cmp word [edx], 0x30
jne 0xf47b7c
inc eax
inc edx
inc edx
cmp eax, edi
jb 0xf47b6f
cmp eax, edi
jae 0xf47c0e
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0xf47b89
sub eax, esi
sar eax, 1
cmp eax, 3
ja 0xf47c0e
push 0x10
push 0
push edx
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp cx, si
jne 0xf47c03
movzx eax, ax
movzx eax, ax
push eax
push 0xf47c18
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.00f41451
mov ecx, dword [ebp - 0x5c]
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
call fcn.00f46c60
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.00f4760b
mov eax, dword [ebp - 0x54]
call fcn.00f42b9f
ret 8
or esi, 0x400
movzx eax, si
jmp 0xf47bc6
mov dword [ebp - 0x54], 0x80041001
jmp 0xf47be9