joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c7eb
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00413db0
mov eax, dword [0x428f58]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x42c260]
mov dword [ebp - 4], eax
jae 0x41c92e
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x42c280]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x41c92e
push 1
push esi
push ebx
call fcn.00416f78
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x41c938
push 2
push esi
push ebx
call fcn.00416f78
add esp, 0xc
cmp eax, 0xffffffff
je 0x41c938
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x41c8d8
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00412c70
push 0x8000
push ebx
call fcn.0041cdc8
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x41c897
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.00416bdd
add esp, 0xc
cmp eax, 0xffffffff
je 0x41c8b5
sub edi, eax
test edi, edi
jg 0x41c88c
jmp 0x41c8cb
cmp dword [0x42bbc8], 5
jne 0x41c8c8
mov dword [0x42bbc4], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.0041cdc8
pop ecx
pop ecx
jmp 0x41c918
jge 0x41c918
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00416f78
push ebx
call fcn.00415b84
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x41c918
mov dword [0x42bbc4], 0xd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [0x42bbc8], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.00416f78
add esp, 0xc
mov eax, esi
pop edi
jmp 0x41c93b
mov dword [0x42bbc4], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0041a58e
leave
ret
Function at 0x41eea7
Capabilities:
Get common file path

Disassembly:
push 0x120
push 0x424ff0
call fcn.0041a270
mov eax, dword [0x428f58]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
and dword [ebp - 0x128], 0
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0x104
jle 0x41ef4b
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.00413db0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x41ef38
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x41ef4b
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x41ef66
cmp byte [edi + 1], 0x3a
jne 0x41ef66
movzx eax, byte [edi]
push eax
call fcn.0041532d
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x41ef76
push edi
call fcn.00414f24
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
call fcn.0041a58e
call fcn.0041a2ab
ret
Function at 0x4204d8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x420506
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
test eax, eax
je 0x42050b
cmp eax, 1
je 0x42050b
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42050f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x428f58]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x420585
push ebx
call fcn.004204d8
test eax, eax
pop ecx
jne 0x420554
mov dword [0x42bbc8], 0xf
mov dword [0x42bbc4], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0041a58e
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameA]
jmp 0x420597
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
test eax, eax
je 0x420547
inc eax
cmp eax, 0x104
ja 0x420547
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4205ce
cmp eax, dword [ebp + 0x10]
jg 0x4205b2
mov eax, dword [ebp + 0x10]
push eax
call fcn.00416bcb
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x4205e2
mov dword [0x42bbc4], 0xc
jmp 0x420547
cmp eax, dword [ebp + 0x10]
jle 0x4205e2
mov dword [0x42bbc4], 0x22
jmp 0x420547
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.00413870
pop ecx
pop ecx
jmp 0x420549
Function at 0x4206c6
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x425f48
call fcn.0041a270
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x42c004], edi
jne 0x42070a
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x4206f5
mov dword [0x42c004], ebx
jmp 0x42070a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x78
jne 0x42070a
mov dword [0x42c004], 2
mov eax, dword [0x42c004]
cmp eax, ebx
jne 0x42072a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
jmp 0x4207ed
cmp eax, 2
je 0x420733
cmp eax, edi
jne 0x42075b
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x420746
mov eax, dword [0x42bc40]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x420762
xor eax, eax
jmp 0x4207ed
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00413db0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x420795
cmp esi, edi
jne 0x4207ab
push dword [ebp - 0x20]
call fcn.00416bcb
pop ecx
mov esi, eax
cmp esi, edi
je 0x42075b
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
test eax, eax
je 0x4207de
cmp dword [ebp + 0x14], edi
jne 0x4207c8
push edi
push edi
jmp 0x4207ce
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x4207ea
push esi
call fcn.00414f24
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0041a2ab
ret
Function at 0x4207f6
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x425f58
call fcn.0041a270
xor esi, esi
cmp dword [0x42c008], esi
jne 0x42083a
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x420825
mov dword [0x42c008], edi
jmp 0x42083a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x78
jne 0x42083a
mov dword [0x42c008], 2
mov eax, dword [0x42c008]
cmp eax, 2
je 0x42091b
cmp eax, esi
je 0x42091b
cmp eax, 1
jne 0x42087f
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x420868
mov eax, dword [0x42bc40]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x420886
xor eax, eax
jmp 0x42092d
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00413db0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4208bc
cmp edi, esi
jne 0x4208d7
lea eax, [ebx + ebx]
push eax
call fcn.00416bcb
pop ecx
mov edi, eax
cmp edi, esi
je 0x42087f
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x42090a
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4208f4
push esi
push esi
jmp 0x4208fa
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x420916
push edi
call fcn.00414f24
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x42092d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0041a2ab
ret
Function at 0x401b40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov ebx, edx
test edi, edi
je 0x401b78
imul edx, dword [ecx], 0xe9
movzx eax, byte [ebx + esi]
add edx, eax
mov dword [ecx], edx
add byte [ecx + 4], dl
xor byte [ecx + 5], dl
movzx eax, byte [ebx + esi]
add byte [ecx + 6], al
movzx eax, byte [ebx + esi]
inc esi
xor byte [ecx + 7], al
cmp esi, edi
jb 0x401b51
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4036e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ecx, dword [edi + 0x10]
call fcn.004035e0
push dword [edi + 0x14]
call fcn.00403ecc
lea esi, [edi + 0x20]
mov dword [ebp - 0xc], eax
mov edi, dword [edi + 0x14]
xor ecx, ecx
add esp, 4
mov dword [ebp - 4], ecx
xor ebx, ebx
test edi, edi
je 0x403749
sub eax, esi
mov dword [ebp - 8], eax
nop word [eax + eax]
call fcn.004035f0
mov cl, byte [esi]
lea esi, [esi + 1]
sub cl, al
mov eax, dword [ebp - 8]
mov byte [eax + esi - 1], cl
movzx eax, byte [esi - 1]
mov ecx, dword [ebp - 4]
xor ebx, eax
add ecx, eax
mov dword [ebp - 4], ecx
sub edi, 1
jne 0x403720
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
cmp word [edx + 0x1c], cx
jne 0x403758
cmp word [edx + 0x1e], bx
je 0x403763
push eax
call fcn.00403e97
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4048e8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404927
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404927
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404927
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404927
cmp dword [ecx + 0x74], 0xe
jbe 0x404927
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x407cae
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x41bd9c
push esi
call fcn.0040e113
pop ecx
pop ecx
test eax, eax
jne 0x407cdc
xor al, al
jmp 0x407d59
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.004079ef
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x407d16
push dword [ebp - 0x210]
call fcn.0040c9de
xor al, al
jmp 0x407d57
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x407d1c
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x407d3c
push edx
call fcn.00407be5
pop ecx
test al, al
je 0x407d07
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x407d4a
mov bl, 1
push dword [ebp - 0x210]
call fcn.0040c9de
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00403e58
leave
ret

Function at 0x40ec3d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c718
push 0x41c710
push str.FlsAlloc
push 0x1f
call fcn.0040eafc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ec71
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b1a8]
call esi
jmp 0x40ec77
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x40ecbb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c728
push 0x41c720
push str.FlsGetValue
push 0x21
call fcn.0040eafc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ecf2
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b1a8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40ecfa
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c730
push 0x41c728
push str.FlsSetValue
push 0x22
call fcn.0040eafc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ed34
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41b1a8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x411bfb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x411c98
push ebx
push esi
call fcn.00411bc4
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00411b58
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x411c45
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x411c97
push edi
push eax
call fcn.0040dca7
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x411c65
call fcn.0040dc6d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x411c96
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00411b58
add esp, 0x20
test eax, eax
jne 0x411c84
push edi
call fcn.0040dc6d
jmp 0x411c8c
push ebx
call fcn.0040dc6d
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x411c9b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x411cac
pop esi
ret
push ebx
push edi
push esi
call fcn.00411bc4
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040dca7
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x411cd4
push ebx
push esi
push edi
call fcn.00406b90
add esp, 0xc
push 0
call fcn.0040dc6d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4120a4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00411ce9

Function at 0x4135fc
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x41363f
call fcn.0040d975
mov dword [eax], 0xf
call fcn.0040d988
mov dword [eax], 0xd
call fcn.0040d8a7
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403e58
leave
ret
test eax, eax
jne 0x413646
inc eax
jmp 0x413633
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x413631
xor eax, eax
cmp ecx, 1
setne al
jmp 0x413633
Function at 0x41a250
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41a27d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41a27d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10007d1b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10190960]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10191f94]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x10007d67
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10007d84
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x10191f94], eax
jmp 0x10007d70
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x10007d84
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x10007df1
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x10007d9f
xor eax, eax
jmp 0x10007df1
lea eax, [ebp - 0x210]
push eax
call fcn.1011827b
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x10007dd0
push 0x101405f8
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.1011820f
add esp, 0xc
test eax, eax
jne 0x10007d9b
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.1011820f
add esp, 0xc
test eax, eax
jne 0x10007d9b
lea eax, [ebp - 0x210]
push eax
call fcn.100081b8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1011763e
leave
ret
Function at 0x1000889c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10190960]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [0x10191fa0]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
test eax, eax
jne 0x100088f5
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10008912
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x10191fa0], eax
jmp 0x100088fe
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x10008912
mov eax, dword [ebp - 0x20]
push ebx
push edi
push eax
push dword [ebp + 8]
call esi
jmp 0x10008a4f
mov eax, dword [ebp - 0x20]
and dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.1012f878
lea eax, [ebp - 0x14]
push eax
call fcn.1011827b
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.101191d6
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
lea edi, [esi + 1]
call fcn.1012f878
lea eax, [ebp - 0x14]
push eax
call fcn.1011827b
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.101191d6
add esp, 0x38
add edi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.1012f878
lea eax, [ebp - 0x14]
push eax
call fcn.1011827b
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.101191d6
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
add edi, esi
call fcn.1012f878
lea eax, [ebp - 0x14]
push eax
call fcn.1011827b
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.101191d6
push 7
lea eax, [ebp - 0x14]
push eax
push 0x800
add edi, esi
call fcn.1012f878
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.1011827b
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.101191d6
lea eax, [edi + esi]
xor ecx, ecx
mov word [ebx + eax*2 + 2], cx
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1011763e
leave
ret
Function at 0x1000fb81
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
je 0x1000fbc6
call fcn.10006bf2
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1000fbc6
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x1000fbe2
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.10018dc3
mov ebx, eax
test edi, edi
je 0x1000fbe0
test esi, esi
je 0x1000fbe0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1001424f
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x1013cee6
call fcn.10118770
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x6c], esi
jne 0x10014275
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x100142c9
call fcn.10003635
push eax
lea ecx, [ebp - 0x10]
call fcn.10001db0
mov ecx, dword [edi + 0x6c]
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], esi
call dword [eax + 0x8c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.10119232
push eax
call fcn.1000240c
add esp, 0x14
test edi, edi
je 0x100142bc
push edi
call fcn.1011827b
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10001de0
mov eax, esi
call fcn.1011873e
ret 8

Function at 0x10018905
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, dword [esi + 4]
push eax
push dword [ebp + 0xc]
call fcn.100141de
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x10018941
call fcn.10018b20
mov dword [esi + 0xc], 1
jmp 0x10018946
call fcn.10018b20
cmp dword [esi], 0
je 0x1001898f
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x10018969
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.10007c75
jmp 0x1001897a
push 0xff
mov ecx, esi
call fcn.10001be0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.100055cd
jmp 0x100189b3
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x100189b3
push dword [esi]
push dword [ebp - 4]
call fcn.10008e05
pop esi
leave
ret 0xc