joyce8/EMBER2024-capa huggingface dataset:
Function at 0x71877e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x78f174
push 0x78f16c
push str.FlsGetValue
push 0x21
call fcn.00718c5c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x7187b5
push dword [ebp + 8]
mov ecx, esi
call dword [0x7d1ad4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x7187bd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x78f17c
push 0x78f174
push str.FlsSetValue
push 0x22
call fcn.00718c5c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x7187f7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x7d1ad4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x71aafd
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 0x71ab9a
push ebx
push esi
call fcn.0071abeb
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.00717da1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x71ab47
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x71ab99
push edi
push eax
call fcn.00717c91
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x71ab67
call fcn.00717c57
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x71ab98
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00717da1
add esp, 0x20
test eax, eax
jne 0x71ab86
push edi
call fcn.00717c57
jmp 0x71ab8e
push ebx
call fcn.00717c57
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 0x71ab9d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x71abae
pop esi
ret
push ebx
push edi
push esi
call fcn.0071abeb
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00717c91
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x71abd6
push ebx
push esi
push edi
call fcn.006fb4d0
add esp, 0xc
push 0
call fcn.00717c57
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x71ac2d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0071ae98
Function at 0x71ddf1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x7ec540]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00717ee3
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00717ee3
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x71de68
cmp word [ecx], dx
je 0x71de68
mov eax, dword [0x78f5f4]
push edi
dec eax
push eax
push 0x78f4e0
call fcn.0071dfe1
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x71dedb
cmp word [eax], dx
je 0x71dedb
mov eax, dword [edi]
test eax, eax
je 0x71de8c
cmp word [eax], dx
je 0x71de8c
lea eax, [ebp - 0x10]
push eax
call fcn.0071e042
jmp 0x71de95
lea eax, [ebp - 0x10]
push eax
call fcn.0071e330
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x71df05
mov eax, dword [0x78f4dc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x78f1d0
call fcn.0071dfe1
add esp, 0xc
test al, al
je 0x71df05
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x71ded0
cmp word [eax], di
je 0x71ded0
lea eax, [ebp - 0x10]
push eax
call fcn.0071e042
pop ecx
jmp 0x71df07
lea eax, [ebp - 0x10]
push eax
call fcn.0071e330
jmp 0x71decd
mov eax, dword [edi]
test eax, eax
je 0x71def2
cmp word [eax], dx
je 0x71def2
lea eax, [ebp - 0x10]
push eax
call fcn.0071e464
pop ecx
jmp 0x71df05
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x71dfd0
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0071e556
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x71dfd0
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x71dfd0
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x71dfd0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x71df5d
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.007189f6
test ebx, ebx
je 0x71dfcb
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.007189f6
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x71dfd0
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x71dfd0
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00723a08
add esp, 0x10
xor eax, eax
inc eax
jmp 0x71dfd2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00541f33
leave
ret
Function at 0x71e65c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00717ee3
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x71e6cb
cmp esi, dword [ebp - 4]
je 0x71e6c6
cmp dword [ebp + 0xc], 0
je 0x71e6c6
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x71e6a3
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0071e725
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x71e6cd
xor eax, eax
inc eax
jmp 0x71e6cd
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x720bf9
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00720d90
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x720d68
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x720d68
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x720d1d
jg 0x720c55
test eax, eax
je 0x720d13
push 1
push 0x1000
call fcn.0071982b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x720c78
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x720d0a
push 0x8000
push ebx
call fcn.0070fb62
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x720ca1
jg 0x720c9c
cmp ecx, 0x1000
jb 0x720ca1
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0071000a
add esp, 0x10
cmp eax, 0xffffffff
je 0x720ce6
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x720c9c
jl 0x720ccd
test ecx, ecx
jne 0x720c8e
push dword [ebp - 0xc]
push ebx
call fcn.0070fb62
push esi
call fcn.00717c57
add esp, 0xc
xor ebx, ebx
jmp 0x720d76
cmp byte [edi + 0x24], 0
je 0x720cfd
cmp dword [edi + 0x20], 5
jne 0x720cfd
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x720d08
mov ebx, dword [edi + 0x18]
jmp 0x720d0a
xor ebx, ebx
push esi
call fcn.00717c57
pop ecx
jmp 0x720d76
test ecx, ecx
jg 0x720cdf
jl 0x720d1d
test eax, eax
jae 0x720cdf
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.007200cd
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x720d3d
cmp byte [edi + 0x1c], 0
je 0x720cdf
jmp 0x720d6e
push ebx
call fcn.0070e999
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x720cdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x720d76
cmp byte [edi + 0x1c], 0
je 0x720d73
mov ebx, dword [edi + 0x18]
jmp 0x720d76
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.007200cd
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x723c8d
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x7ec540]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x723cd0
call fcn.0070acd6
mov dword [eax], 0xf
call fcn.0070acc3
mov dword [eax], 0xd
call fcn.0070d357
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00541f33
leave
ret
test eax, eax
jne 0x723cd7
inc eax
jmp 0x723cc4
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 0x723cc2
xor eax, eax
cmp ecx, 1
setne al
jmp 0x723cc4
Function at 0x10002eeb
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
push 1
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10002f30
push 6
call fcn.1007bad9
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push 0
push 0
push 0
push 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10002f69
push 6
call fcn.1007bad9
add esp, 4
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x90c
call fcn.1007c730
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
jmp 0x10002f93
mov esp, ebp
pop ebp
ret 4
Function at 0x10003679
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
push 0
push 0x10003be9
call dword [sym.imp.USER32.dll_EnumWindows]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x100036ab
push 6
call fcn.1007bad9
add esp, 4
mov eax, dword [0x100d5b9c]
push eax
mov ebx, eax
call fcn.100011c7
pop eax
sub ebx, eax
push ecx
push ebx
push eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.1007bacd
add esp, 4
pop esi
mov edi, eax
pop ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
test ecx, ecx
je 0x10003747
push eax
lodsd eax, dword [esi]
push esi
push edi
push ecx
push eax
push 0x14
call fcn.1007bacd
add esp, 4
pop esi
mov edi, eax
push eax
mov ecx, 3
rep movsd dword es:[edi], dword [esi]
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0x10003718
push eax
mov ebx, eax
call fcn.10001100
inc eax
push eax
call fcn.1007bacd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0x10003737
push eax
mov ebx, eax
call fcn.10001100
inc eax
push eax
call fcn.1007bacd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
pop eax
pop ecx
pop edi
pop esi
stosd dword es:[edi], eax
dec ecx
jne 0x100036df
pop eax
push eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x10003768
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x10003764
imul eax, dword [ebx]
jmp 0x10003759
mov ecx, eax
test ecx, ecx
je 0x100037ab
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x10003786
push ebx
call fcn.1007bad3
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x1000379a
push ebx
call fcn.1007bad3
add esp, 4
pop ebx
call fcn.1007bad3
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x1000376e
call fcn.1007bad3
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov ebx, dword [0x100d5b9c]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x100037da
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x100037d6
imul eax, dword [ebx]
jmp 0x100037cb
mov ecx, eax
test ecx, ecx
je 0x1000381d
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x100037f8
push ebx
call fcn.1007bad3
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x1000380c
push ebx
call fcn.1007bad3
add esp, 4
pop ebx
call fcn.1007bad3
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x100037e0
call fcn.1007bad3
add esp, 4
mov eax, 0x1009c2c5
mov dword [0x100d5b9c], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
call fcn.10003314
jmp 0x1000383e
mov esp, ebp
pop ebp
ret 8
Function at 0x10003a91
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.1007c910
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10003ad6
push ebx
call fcn.1007bad3
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0xff
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x10003b04
push 6
call fcn.1007bad9
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x10003b20
push eax
mov ebx, eax
call fcn.10001100
inc eax
push eax
call fcn.1007bacd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x10003b25
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10003b36
push ebx
call fcn.1007bad3
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x100142d5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x10014300
push 6
call fcn.1007bad9
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10014317
mov eax, 1
jmp 0x10014321
mov eax, 0
jmp 0x10014321
mov esp, ebp
pop ebp
ret 4

Function at 0x10016b3a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 8], 0
jne 0x10016b83
cmp dword [0x100d5c38], 0
jne 0x10016b7e
mov dword [ebp - 4], esp
call dword [sym.imp.USER32.dll_GetForegroundWindow]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x10016b79
push 6
call fcn.1007bad9
add esp, 4
mov dword [0x100d5c38], eax
jmp 0x10016b8b
mov eax, dword [ebp + 8]
mov dword [0x100d5c38], eax
mov dword [ebp - 4], esp
push dword [0x100d5c38]
call dword [sym.imp.USER32.dll_IsWindowVisible]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x10016bb0
push 6
call fcn.1007bad9
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10016bf6
mov dword [ebp - 4], esp
push 9
push dword [0x100d5c38]
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x10016be7
push 6
call fcn.1007bad9
add esp, 4
mov eax, 1
jmp 0x10016c2a
mov dword [ebp - 4], esp
push 0
push dword [0x100d5c38]
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x10016c20
push 6
call fcn.1007bad9
add esp, 4
mov eax, 0
jmp 0x10016c2a
mov esp, ebp
pop ebp
ret 8

Function at 0x1001b0c3
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push 0x40
push 0x1000
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x1001b0fd
push 6
call fcn.1007bad9
add esp, 4
jmp 0x1001b102
mov esp, ebp
pop ebp
ret 4
Function at 0x1002292b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], esp
call dword [sym.imp.USER32.dll_GetForegroundWindow]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x10022953
push 6
call fcn.1007bad9
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [0x100d5b90]
cmp dword [ebp - 0xc], eax
jne 0x10022ad5
mov dword [ebp - 4], esp
push 0xc0
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x10022988
push 6
call fcn.1007bad9
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x100229a9
cmp dword [0x100d5c5c], 0
jne 0x100229a9
mov eax, 1
jmp 0x100229ab
xor eax, eax
test eax, eax
je 0x10022a7c
inc dword [0x100d5c60]
cmp dword [0x100d5c60], 1
jne 0x100229dd
mov ebx, dword [0x100d5b88]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
mov dword [ebx], 0xf8a6c4
jmp 0x10022a72
cmp dword [0x100d5c60], 2
jne 0x10022a01
mov ebx, dword [0x100d5b88]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
mov dword [ebx], 0xf8a6c8
jmp 0x10022a72
cmp dword [0x100d5c60], 3
jne 0x10022a25
mov ebx, dword [0x100d5b88]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
mov dword [ebx], 0xf8a64c
jmp 0x10022a72
cmp dword [0x100d5c60], 4
jne 0x10022a49
mov ebx, dword [0x100d5b88]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
mov dword [ebx], 0xf8a67c
jmp 0x10022a72
cmp dword [0x100d5c60], 5
jne 0x10022a72
mov ebx, dword [0x100d5b88]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
mov dword [ebx], 0xf8a664
mov dword [0x100d5c60], 0
mov dword [0x100d5c5c], 1
mov dword [ebp - 4], esp
push 0xc0
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x10022aa0
push 6
call fcn.1007bad9
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10022ac1
cmp dword [0x100d5c5c], 1
jne 0x10022ac1
mov eax, 1
jmp 0x10022ac3
xor eax, eax
test eax, eax
je 0x10022ad5
mov dword [0x100d5c5c], 0
mov esp, ebp
pop ebp
ret
Function at 0x10027f20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10027f63
push 6
call fcn.1007bad9
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10027f8d
push 6
call fcn.1007bad9
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
mov eax, 0
sete al
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10027fc1
push 6
call fcn.1007bad9
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x10027fc9
mov esp, ebp
pop ebp
ret 4

Function at 0x10041906
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x200
call fcn.1001b0c3
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push 0x200
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10041954
push 6
call fcn.1007bad9
add esp, 4
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul qword [0x1009c470]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.100044de
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x910
call fcn.1007dae0
add esp, 0x1c
mov dword [ebp - 0x1c], eax
push 0x100cd9ab
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.10015461
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x100419c0
push ebx
call fcn.1007bad3
add esp, 4
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
call fcn.10028dc3
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x100419e8
push ebx
call fcn.1007bad3
add esp, 4
mov eax, dword [ebp - 0x28]
jmp 0x100419f0
mov esp, ebp
pop ebp
ret 4
Function at 0x10055e9f
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
call dword [sym.imp.IMM32.dll_ImmGetContext]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10055edf
push 6
call fcn.1007bad9
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10056010
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.1007c9f0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push 0
push dword [ebp - 0x10]
push 0x800
push dword [ebp - 4]
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringA]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x10055f3c
push 6
call fcn.1007bad9
add esp, 4
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10055f4f
push ebx
call fcn.1007bad3
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x184
call fcn.1007c910
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10055f88
push ebx
call fcn.1007bad3
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x800
push dword [ebp - 4]
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10055fb9
push 6
call fcn.1007bad9
add esp, 4
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10055fde
push 6
call fcn.1007bad9
add esp, 4
lea eax, [ebp - 0xc]
push eax
call fcn.10056032
test eax, eax
je 0x10056010
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x1005600b
push eax
mov ebx, eax
call fcn.10001100
inc eax
push eax
call fcn.1007bacd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x1005601a
mov eax, 0x1009c2b4
jmp 0x1005601a
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1005602b
push ebx
call fcn.1007bad3
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x1007ca50
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x1007cab9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.1007be50
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret