joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002e2d7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x58], esi
je 0x1002e324
push esi
push dword [ebp + 8]
call fcn.1002e0f3
mov edi, eax
test edi, edi
je 0x1002e3a8
push dword [ebp + 0x14]
push ebx
push 3
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
jmp 0x1002e3a8
mov eax, dword [ebp + 0x14]
push 2
pop ecx
push 0xffffffffffffffff
lea eax, [eax*2 + 1]
mul ecx
pop ecx
cmovb eax, ecx
push eax
call fcn.100284b5
mov edx, dword [ebp + 0x14]
pop ecx
mov ecx, eax
mov dword [ebp - 8], ecx
test edx, edx
je 0x1002e37a
mov dword [ebp - 4], 0x41
mov al, byte [ebx + esi]
and al, 0xf
movzx eax, al
add ax, word [ebp - 4]
mov word [ecx + esi*4], ax
mov al, byte [ebx + esi]
shr al, 4
movzx eax, al
add ax, word [ebp - 4]
mov word [ecx + esi*4 + 2], ax
inc esi
cmp esi, edx
jb 0x1002e353
xor eax, eax
mov word [ecx + esi*4], ax
mov eax, dword [edi]
push ecx
push dword [ebp + 0xc]
mov esi, dword [eax + 0x88]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10190a00]
mov ecx, edi
call esi
push dword [ebp - 8]
mov esi, eax
call fcn.100284b0
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x1002f16e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x84], 0
mov esi, dword [ebx + 0x8c]
mov edi, dword [ebx + 0x88]
je 0x1002f1b6
call fcn.10030cf9
push 5
push dword [ebx + 0x84]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1002f1b6
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1002f1c3
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x1002f1ff
mov edx, 0xffff
lea ecx, [esi + 0xc]
cmp word [esi + 2], dx
jne 0x1002f1e2
movzx edi, word [esi + 0x12]
movzx edx, word [esi + 0x14]
jmp 0x1002f1eb
movzx edx, word [ecx]
mov ecx, esi
movzx edi, word [esi + 0xa]
test dword [ecx], 0x1801
jne 0x1002f1fd
test di, di
jne 0x1002f1fd
test dx, dx
je 0x1002f1ff
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1002f268
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
call fcn.10030cf9
push 5
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1002f2a8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1002f2a8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.1002f2b0
jmp 0x1002f2aa
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x1002f5a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x10181fa9
call fcn.10155051
mov edi, ecx
mov dword [ebp - 0x24], edi
mov ebx, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
mov dword [ebp - 0x18], ebx
call fcn.10030cf9
cmp dword [edi + 0x84], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
je 0x1002f5ff
call fcn.10030cf9
push 5
push dword [edi + 0x84]
mov ebx, dword [eax + 0xc]
push ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1002f613
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp - 0x18]
mov esi, eax
test esi, esi
je 0x1002f60f
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x1002f61b
or eax, 0xffffffff
jmp 0x1002f76d
mov ecx, edi
call fcn.1002fbaa
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call fcn.10018064
xor esi, esi
and dword [ebp - 0x1c], esi
and dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x1002f6a7
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x1002f6a7
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x1002f6a7
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x14], 1
call fcn.10017c81
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x1002f6a4
mov ecx, dword [esi]
mov esi, dword [ecx + 0x150]
mov ecx, esi
call dword [0x10190a00]
mov ecx, dword [ebp - 0x1c]
call esi
test eax, eax
je 0x1002f6a4
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.1001e5ec
test eax, eax
je 0x1002f6a4
push 0
mov ecx, esi
call fcn.1001e3bf
mov dword [ebp - 0x28], 1
mov esi, dword [ebp - 0x14]
and dword [ebp - 4], 0
push edi
call fcn.10017ced
push ebx
call fcn.10019512
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.1002f543
test eax, eax
jne 0x1002f6f0
cmp dword [edi + 0x9c], eax
jne 0x1002f6f0
call fcn.10030cf9
push ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.10019512
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.1002f543
and dword [edi + 0x9c], 0
jmp 0x1002f71b
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
je 0x1002f72f
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.1001e3bf
test esi, esi
je 0x1002f73c
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x1002f752
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x1002f752
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [0x10190a00]
mov ecx, edi
call esi
mov ecx, edi
call fcn.1002fb61
mov eax, dword [edi + 0x68]
call fcn.10154fb5
ret
Function at 0x100324c4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x101821bb
call fcn.10155051
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x100325bb
cmp edi, dword [ebx + 0xc]
jge 0x100325bb
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x1003251b
cmp edi, dword [esi + 8]
jl 0x100325a9
cmp dword [ebp + 0xc], 0
je 0x100325a9
xor edi, edi
jmp 0x1003254d
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.100320d6
mov esi, eax
test esi, esi
je 0x10032535
mov dword [esi], vtable.CThreadData.0
jmp 0x10032537
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esi + eax], ecx
mov dword [ebx + 0x14], esi
push 4
push dword [ebx + 0xc]
call fcn.1002fee0
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x10032569
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x10032575
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x100325e2
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.10157f20
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x100325bb
cmp edi, dword [esi + 8]
jge 0x100325bb
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.10154fb5
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.1002321b
int3
Function at 0x100343de
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x101e7000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [0x101ed934]
mov dword [ebp - 0x20], ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
test eax, eax
jne 0x10034437
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1003445c
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 [0x101ed934], eax
jmp 0x10034440
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x1003445c
mov eax, dword [ebp - 0x18]
mov ecx, esi
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [0x10190a00]
call esi
jmp 0x1003459e
and dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ebx, ax
lea eax, [ebp - 0x14]
push 7
push eax
push ebx
call fcn.1003483d
lea eax, [ebp - 0x14]
push eax
call fcn.1016556d
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.10165885
mov eax, dword [ebp - 0x20]
lea edi, [esi + 1]
push 7
and ebx, 0x3ff
inc dword [eax]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.1003483d
lea eax, [ebp - 0x14]
push eax
call fcn.1016556d
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx + edi*2]
push ecx
call fcn.10165885
mov eax, dword [ebp - 0x20]
add esp, 0x38
add edi, esi
inc dword [eax]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ebx, ax
lea eax, [ebp - 0x14]
push 7
push eax
push ebx
call fcn.1003483d
lea eax, [ebp - 0x14]
push eax
call fcn.1016556d
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.10165885
mov eax, dword [ebp - 0x20]
add edi, esi
push 7
and ebx, 0x3ff
inc dword [eax]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.1003483d
lea eax, [ebp - 0x14]
push eax
call fcn.1016556d
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.10165885
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push 7
push eax
add edi, esi
inc dword [ebx]
push 0x800
call fcn.1003483d
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.1016556d
mov esi, eax
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.10165885
mov ecx, dword [ebp - 0x1c]
lea eax, [edi + esi]
add esp, 0x10
xor edx, edx
inc dword [ebx]
mov word [ecx + eax*2 + 2], dx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10154fa7
leave
ret
Function at 0x100366bd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], ebx
test byte [edi + 4], 1
mov esi, dword [edi + 0xc]
jne 0x10036713
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x100366ec
call fcn.100278bf
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x10036701
call fcn.100278bf
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x10036713
call fcn.100278bf
call fcn.10030cf9
cmp dword [eax + 0x3c], 0
je 0x10036728
push esi
mov ecx, ebx
call fcn.10035def
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.10036912
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x10036751
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x1003675d
mov esi, ebx
mov dword [eax + 0x88], ebx
or dword [edi + 4], 1
mov dword [edi + 0xc], esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1003d729
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x101e7000]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.1001e4f7
mov edi, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], edi
push eax
push dword [esi + 0x20]
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0x21
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x20
mov ebx, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, esi
mov dword [ebp - 0x1c], eax
call fcn.10019100
mov esi, eax
push 2
pop eax
test edi, 0x1000
je 0x1003d79e
cmp esi, 3
push eax
cmove esi, eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1003d79b
xor eax, eax
jmp 0x1003d7f2
push 2
pop eax
push 0xa
pop edi
cmp esi, edi
jl 0x1003d7aa
cmp esi, 0x11
jle 0x1003d7af
cmp esi, 4
jne 0x1003d7f0
test dword [ebp - 0x18], 0x800
jne 0x1003d7f2
mov eax, dword [ebp - 0x1c]
neg ebx
push ebx
neg eax
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
test dword [ebp - 0x18], 0x200
je 0x1003d7f0
mov eax, esi
sub eax, 4
je 0x1003d831
sub eax, 9
je 0x1003d821
sub eax, 1
je 0x1003d811
dec eax
sub eax, 1
je 0x1003d803
sub eax, 1
je 0x1003d831
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10154fa7
leave
ret 8
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 8]
push 0xf
pop ecx
cmovg edi, ecx
jmp 0x1003d82d
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, dword [ebp - 0x10]
setl al
add eax, 0xb
jmp 0x1003d7f2
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x10]
push 0xc
pop eax
cmovl edi, eax
mov eax, edi
jmp 0x1003d7f2
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 8]
push 0xb
pop eax
push 0xf
pop edx
cmovg eax, edx
jmp 0x1003d7f2
Function at 0x10043b67
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x10043b91
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10043b97
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
leave
ret
lea ecx, [esi + 0xc]
call fcn.10014ec0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.1008f1d4
int3

Function at 0x10043e96
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x10043ea7
xor eax, eax
jmp 0x10043ec3
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10043ec8
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
lea ecx, [esi + 0xc]
call fcn.10014ec0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.1008f1d4
int3

Function at 0x10043f66
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x10190a00]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x10043f99
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.10014ec0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.1008f1d4
int3

Function at 0x1004406e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x10044099
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1004409f
cmp dword [ebp - 4], esi
jne 0x100440b6
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.10014ec0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.1008f1d4
lea ecx, [edi + 0xc]
call fcn.10014ec0
push eax
push 0xffffffffffffffff
push 0xd
call fcn.1008ee2a
int3
Function at 0x1005c098
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.1001e467
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 0x1005c0d4
call fcn.1005c2b5
mov dword [esi + 0xc], 1
jmp 0x1005c0d9
call fcn.1005c2b5
cmp dword [esi], 0
je 0x1005c124
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x1005c0ff
push edi
call fcn.10019560
lea ecx, [edi + 1]
push ecx
jmp 0x1005c10e
push 0xff
call fcn.10015030
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.1001bc86
pop edi
jmp 0x1005c148
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 0x1005c148
push dword [esi]
push dword [ebp - 4]
call fcn.10031903
pop esi
leave
ret 0xc

Function at 0x1005c20c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.1005c2b5
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x1005c254
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10019560
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.1001bc86
jmp 0x1005c25f
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.10031903
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1005cc5a
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x1005cd9f
mov ecx, 0x101ee818
call fcn.1003231d
mov esi, eax
test esi, esi
je 0x1005cd94
mov ebx, dword [ebp + 8]
xor eax, eax
cmp word [esi + 8], ax
jne 0x1005cd5f
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x1005cd20
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, 0x3ff
and ax, cx
add ecx, 0xfffffffd
cmp ax, 0x11
jne 0x1005ccea
push str.MS_UI_Gothic
call fcn.1005cddd
pop ecx
mov ecx, 0x3fc
test eax, eax
je 0x1005ccea
cmp dword [ebp + 0x10], 0
lea eax, [ecx - 0xe]
push 0xfc11
cmovne eax, ecx
push eax
push 5
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x1005cd04
mov ecx, 0x3fc
cmp dword [ebp + 0x10], 0
mov eax, 0x3ee
push 5
cmovne eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1005cd20
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x1005cd23
push edi
push ebx
push eax
call fcn.100446eb
add esp, 0xc
jmp 0x1005cd23
mov edi, dword [ebp + 0xc]
mov eax, dword [ebx]
push 2
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.1002fee0
pop ecx
pop ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x1005cd99
mov eax, dword [ebx]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.1003933a
mov ax, word [edi]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
mov edi, dword [esi + 4]
test edi, edi
je 0x1005cd6d
push edi
call fcn.1016556d
pop ecx
push eax
push edi
mov ecx, ebx
call fcn.10015100
mov eax, dword [ebp + 0xc]
mov edx, 0xffff
movzx ecx, word [esi + 8]
pop edi
pop esi
mov word [eax], cx
xor eax, eax
cmp cx, dx
pop ebx
setne al
pop ebp
ret 0xc
call fcn.10023201
call fcn.1002321b
int3

Function at 0x1005e3af
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.10169cb3
pop ecx
test eax, eax
jne 0x1005e3f1
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.100171ba
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1005e3b7
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret
Function at 0x10067b20
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101e7000]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x10067b4c
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x10067b77
cmp dword [0x101ede24], 0
jne 0x10067b77
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x10067b73
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x10067b73
push edi
call fcn.1016a55a
pop ecx
jmp 0x10067bee
mov eax, edi
jmp 0x10067bee
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.10157f20
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x10067bfd
push esi
call fcn.1002c322
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push esi
push 1
push 2
lea ecx, [ebp - 0x108]
push ecx
lea ecx, [ebp - 0x104]
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
xor eax, eax
mov word [ebp - 0x106], ax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
movzx eax, word [ebp - 0x108]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10154fa7
leave
ret 4
call fcn.10023201
int3
Function at 0x10084853
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0xe4]
test ecx, ecx
je 0x100849b1
push esi
push edi
push 0x101a1938
call fcn.10030eb2
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
je 0x100848ec
mov edi, dword [ebx + 0x168]
jmp 0x100848d8
mov esi, dword [edi + 8]
mov edi, dword [edi]
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100848d8
push esi
call fcn.10019512
push eax
push 0x101e65f0
call fcn.10030e13
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x100848d8
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1a0]
mov ecx, esi
call dword [0x10190a00]
mov ecx, dword [ebp - 0xc]
call esi
test eax, eax
jle 0x100848d8
push 4
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
test edi, edi
jne 0x10084887
lea ecx, [ebx + 0x164]
call fcn.10021f59
jmp 0x100849af
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x100849af
lea eax, [ebx + 0xc8]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.10019790
mov edi, dword [eax]
test edi, edi
jne 0x10084918
xor esi, esi
jmp 0x1008491b
mov esi, dword [edi + 0x20]
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1008499f
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1008499f
cmp dword [ebp - 0x10], 0
jne 0x10084974
push edi
push 0x101e65f0
call fcn.10030e13
mov edi, eax
pop ecx
pop ecx
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1a8]
mov ecx, esi
call dword [0x10190a00]
mov ecx, edi
call esi
push eax
push 0x101a2868
call fcn.10030e13
pop ecx
pop ecx
test eax, eax
je 0x1008499f
mov esi, dword [ebp - 4]
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea eax, [ebp - 8]
lea esi, [ebx + 0x164]
push eax
mov ecx, esi
call fcn.100839cc
test eax, eax
jne 0x1008499f
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.10081af4
cmp dword [ebp - 0xc], 0
lea eax, [ebx + 0xc8]
jne 0x10084903
pop edi
pop esi
pop ebx
leave
ret 4