joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f20
Capabilities:
Delete directory
Delete file

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.0040121e
mov ecx, esi
call fcn.00401233
mov edi, eax
test edi, edi
jne 0x401f66
mov ecx, esi
call fcn.0040184d
mov edi, eax
test edi, edi
jne 0x401f66
mov ecx, esi
call fcn.004014ce
mov edi, eax
test edi, edi
jne 0x401f66
mov ecx, esi
call fcn.004015e0
mov edi, eax
test edi, edi
jne 0x401f66
mov ecx, esi
call fcn.00401b4e
mov edi, eax
cmp dword [0x40ab80], 0
jne 0x401f9e
push ebx
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esi + 0x1224]
push eax
call ebx
lea eax, [esi + 0x142c]
push eax
call ebx
add esi, 0x1328
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x40230a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a020]
jne 0x402314
repz ret
jmp fcn.00403bd7
Function at 0x4055ab
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402f46
and dword [ebp - 0x14], 0
cmp dword [0x40b7d8], 0
mov dword [ebp - 0x18], eax
jne 0x40565e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405706
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405706
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40b7d8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40b7dc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40b7e0], eax
call edi
push eax
call esi
mov dword [0x40b7e8], eax
test eax, eax
je 0x40565e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40b7e4], eax
mov eax, dword [0x40b7e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4056b7
cmp dword [0x40b7e8], ecx
je 0x4056b7
push eax
call esi
push dword [0x40b7e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4056b7
test ebx, ebx
je 0x4056b7
call edi
test eax, eax
je 0x4056ae
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4056ae
test byte [ebp - 8], 1
jne 0x4056b7
or dword [ebp + 0x10], 0x200000
jmp 0x4056ea
mov eax, dword [0x40b7dc]
cmp eax, dword [ebp - 0x18]
je 0x4056ea
push eax
call esi
test eax, eax
je 0x4056ea
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4056ea
mov eax, dword [0x40b7e0]
cmp eax, dword [ebp - 0x18]
je 0x4056ea
push eax
call esi
test eax, eax
je 0x4056ea
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40b7d8]
call esi
test eax, eax
je 0x405706
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405708
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040230a
leave
ret
Function at 0xdcf058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00dcf1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xdcf07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xdcf06a
add dl, dl
jne 0xdcf089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xdcf0dc
xor eax, eax
add dl, dl
jne 0xdcf096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xdcf17d
add dl, dl
jne 0xdcf0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xdcf0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xdcf0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xdcf0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xdcf0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xdcf075
mov eax, 1
add dl, dl
jne 0xdcf0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xdcf0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xdcf0e1
sub eax, ebx
mov ebx, 1
jne 0xdcf128
mov ecx, 1
add dl, dl
jne 0xdcf10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xdcf119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xdcf105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xdcf075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xdcf13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xdcf14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xdcf136
cmp eax, 0x7d00
jae 0xdcf16d
cmp eax, 0x500
jb 0xdcf168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xdcf075
cmp eax, 0x7f
ja 0xdcf170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xdcf075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xdcf19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xdcf075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x5ead28
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5ead43
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124aff68]
pop edx
test eax, eax
je 0x5eae15
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5eae04
test dword [ebp - 0x2a8], 1
jne 0x5eae04
and dword [ebp - 0x2a8], 0x100
jne 0x5eae04
push esi
push edx
push 4
push esi
call dword [edx + 0x122d3b04]
pop edx
pop esi
test eax, eax
je 0x5eada7
jmp 0x5eae04
cmp word [esi], 0x5a4d
jne 0x5eae04
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5eae04
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d3940]
pop edx
test eax, eax
je 0x5eae04
lea eax, [ebp - 0x28c]
push eax
call fcn.005eac84
test eax, eax
jne 0x5eadfd
jmp 0x5eae04
mov eax, esi
jmp 0x5eae15
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5ead43
pop esi
leave
ret 4
Function at 0x10011be
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
imul esi, dword [edx + 0x74], 0x506c6175
jb 0x1001228
je 0x1001220
arpl word [eax + eax + 0x55], si
mov ebp, esp
sub esp, 0xb4
push esi
push edi
lea eax, [ebp - 0xb4]
push 0x64
push eax
push 0x6a
push dword [0x10118d0]
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [ebp + 0xc]
dec eax
dec eax
je 0x1001359
sub eax, 0xd
je 0x1001308
sub eax, 0x102
je 0x1001241
mov dword [0x1011050], 0x1010168
call fcn.01001561
push fcn.010011af
push dword [0x10118c8]
call dword [0x1011958]
mov dword [0x10118bc], eax
call fcn.01001666
call 0x1001000
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
invalid
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DefWindowProcA]
jmp 0x100136e
movzx eax, word [ebp + 0x10]
sub eax, 0x68
je 0x1001268
dec eax
je 0x100125a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x111
jmp 0x1001233
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x100136c
push ebx
push dword [0x10118e4]
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, 0x1011068
push esi
push esi
call dword [sym.imp.SHELL32.dll_StrStrIA]
push 0
push esi
push esi
mov dword [0x10118dc], eax
call dword [sym.imp.SHELL32.dll_StrRChrA]
lea eax, [ebp - 0x10]
push 0x10
push eax
push 0x1011920
call fcn.0100d920
add esp, 0xc
mov ebx, 0x101195c
mov edi, 0x80000001
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push 0x1011044
push esi
push 0x1011040
push 0
push esi
push dword [0x101195c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [0x101195c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 0
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push dword [0x101188c]
push dword [0x1010160]
push dword [0x1010164]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop ebx
jmp 0x100136c
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_BeginPaint]
xor esi, esi
mov edi, eax
push esi
push 0x19
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateBitmap]
mov dword [0x1011030], eax
lea eax, [ebp - 0xb4]
push eax
call fcn.0100d8a0
pop ecx
push eax
lea eax, [ebp - 0xb4]
push eax
push esi
push esi
push edi
call dword [sym.imp.GDI32.dll_TextOutA]
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EndPaint]
jmp 0x100136c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
mov dword [0x101104c], eax
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor eax, eax
pop edi
pop esi
leave
ret 0x10
Function at 0x1001561
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 2
mov dword [ebp - 4], 2
push 0x10
lea eax, [ebp - 0x10]
push eax
push 0x1011920
call fcn.0100d920
add esp, 0xc
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov ebx, eax
mov eax, dword [eax + 8]
mov dword [0x10118c4], eax
mov eax, dword [ebx]
mov eax, dword [eax + 8]
mov dword [0x10118c8], eax
push str.strcpy
push dword [0x10118c4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1011034], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100e8c5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1010870
cmp edx, dword [eax]
je 0x100e8e7
add eax, 8
inc ecx
cmp eax, 0x1010900
jl 0x100e8d8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1010870]
jne 0x100ea15
mov eax, dword [0x101196c]
cmp eax, 1
je 0x100e9ef
test eax, eax
jne 0x100e918
cmp dword [0x10107c4], 1
je 0x100e9ef
cmp edx, 0xfc
je 0x100ea15
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100e94f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0100ee70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0100d8a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x100e992
lea eax, [ebp - 0x1a4]
push eax
call fcn.0100d8a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1010f00
push edi
call fcn.0100f8b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0100ee70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0100ee80
lea eax, [ebp - 0xa0]
push 0x1010ee0
push eax
call fcn.0100ee80
push dword [esi + 0x1010874]
lea eax, [ebp - 0xa0]
push eax
call fcn.0100ee80
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0100f81d
add esp, 0x2c
pop edi
jmp 0x100ea15
lea eax, [ebp + 8]
lea esi, [esi + 0x1010874]
push 0
push eax
push dword [esi]
call fcn.0100d8a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0xa87008], 0x8088405
inc edx
mov dword [ebx + 0xa87008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f05c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0xa6b54a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ab
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
jmp 0x41f0ca
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f13c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f125
test esi, esi
jbe 0x41f13c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f117
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f13c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0f4
jmp 0x41f13c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f13c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xa6b551
ret
Function at 0x420294
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0xa6c8af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202cf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202e8
lea eax, [ebp - 0x10]
mov edx, dword [0xa89348]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0xa89348]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x420307
adc edx, 0
mov edx, dword [edx*4 + 0xa88178]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420481
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420474
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420474
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420412
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420412
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420412
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420412
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420474
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420474
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420499
inc ebx
cmp ebx, 0x19
jne 0x4202c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xa6c8b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x5de778
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x76
scasb al, byte es:[edi]
sbb dl, byte [edi - 0x7b8298d1]
jnp 0x5de740
stosb byte es:[edi], al
xor al, 0x3c
out 0x6a, al
aas
mov eax, 0xb2babd3c
outsb dx, byte [esi]
pop eax
aas
retf
inc esp
cdq
mov dh, 0x4f
sub dword [eax - 0x40371950], edi
mov ebx, 0x87db06a
jge 0x5de6fe
xlatb
invalid
add edi, esi
xchg edx, eax
fld xword [ecx]
invalid
cmp dword [ebp + 0x32], eax
jbe 0x5de707
imul edi, dword [edi], 0xffffffb8
mov ebx, 0x13b0127d
test eax, 0x9301db88
fild dword [ecx]
xchg ebx, eax
cmp al, 0xb8
mov ebx, 0x47dfc6a
push 0x3f
mov eax, 0xc002f1bb
jae 0x5de71e
xor edi, dword [eax + 0x3fa2f3e6]
shr edi, 0x3d
out 0xf3, al
mov byte [0x3defc13f], al
xchg ebp, eax
lodsd eax, dword [esi]
push 0x34
cmp al, 0x77
push 0x3f
mov eax, 0x37372734
mov esp, 0xba11bc41
dec edi
sub ebx, ecx
aas
mov eax, 0x9fbc7dbb
cmpsb byte [esi], byte es:[edi]
xor byte [ecx], ch
aas
ror dword [ebp + 0x32], 0x76
scasb al, byte es:[edi]
jbe 0x5de753
push 0x34
cmp eax, 0xb83f6af2
wait
out dx, eax
dec esp
add dword [ebx - 0x159cd6d0], ebp
xor byte [ecx], ch
arpl dx, bp
jge 0x5de763
dec ecx
push ecx
dec edi
sub dword [ebx + 0x37], edi
stosb byte es:[edi], al
xor al, 0x3c
inc edi
push 0x3f
mov eax, 0xffb67f32
jp 0x5de7b1
fisubr word [ebx + 0x68586e]
jp 0x5de7cb
stosd dword es:[edi], eax
outsb dx, byte [esi]
pop eax
push 0x99f97a00
cdq
dec edx
in al, dx
sbb dword [ebp + ebp - 0x5225b550], eax
stosb byte es:[edi], al
xor al, 0x3c
mov bh, 0x6a
aas
mov eax, 0xb83f6bc3
mov ebx, 0xa69742f3
xor byte [ecx], ch
cmp dword [ebp + 0x32], ecx
jbe 0x5de7a3
imul edi, dword [edi], 0xffffffb8
mov ebx, 0x5d1bb80b
push edi
jno 0x5de7ae
mov esp, 0xbbb5426d
push 0x3f
aas
rcl dword [ecx + 0x32], 0x76
scasb al, byte es:[edi]
push 0x34
cmp eax, 0xb83f6a59
cmp al, 0xbd
fsubr dword [ebp + esi*8 + 0x36cb3958]
dec esi
aas
mov eax, 0x9744e9bb
cmpsb byte [esi], byte es:[edi]
xor byte [ecx], ch
mov eax, 0xb824e7b0
mov ebx, 0x511bb86a
push edi
jno 0x5de7e2
mov ebx, 0xbbae436d
push 0x3f
push esi
mov esp, 0x3024ac7d

Function at 0x5de863
Capabilities:
Encode data using xor

Disassembly:
and eax, 0x4b39f329
ret 0xad94
insd dword es:[edi], dx
xor eax, dword [edi - 0xe4b2b48]
add dh, byte [eax + 0x3c34aa36]
in al, 0x6a
aas
mov eax, 0xcba2e5ce
cmc
pop eax
mov al, 0xb8
xor ah, byte [edi]
xchg dword [0x7d436d7c], edi
mov esp, 0xfc373f6a
into
in eax, 0xa2
retf
mov byte [0xb058f5cb], al
mov eax, 0x3d872732
jl 0x5de8ef
inc ebx
jge 0x5de841
push 0x3f
aaa
cld
mov ax, 0xbd80
insd dword es:[edi], dx
inc ebx
mov cl, 0xbb
push 0x3f
aas
inc esp
imul esi, dword [edi - 0x47c095a2], 0x378b2732
cld
outsb dx, byte [esi]
inc edx
clc
mov cl, 0xe6
xor edi, dword [eax - 0x24939545]
xchg dword [edx + 0x6f], esi
fld xword [ecx]
pop es
jbe fcn.005de863
scasb al, byte es:[edi]
sbb eax, 0xe6b1f842
xor byte [eax + 0x7db06abb], bh
out 0x30, al
mov eax, 0x7db06abb
add al, 0xf1
jg 0x5de874
adc bh, byte [ecx - 0xefe247c]
add al, ah
jae 0x5de876
ret
push 0xdbe98d14
add dword [0xe6b1f842], ebx
adc eax, 0xb06abbb8
js 0x5de8b9
int1
jg 0x5de8b4
xor al, 0x2a
aaa
invalid
Function at 0x401000
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push str.TouchScreenToggle
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4011e3
mov esi, dword [ebp + 8]
push esi
push 0x40aaac
call fcn.004014ed
add esp, 8
cmp esi, 2
je 0x40106c
push esi
push str.Need_Argument_On_or_Off__n
call fcn.004014ed
add esp, 8
or eax, 0xffffffff
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004011f0
mov esp, ebp
pop ebp
ret
push dword [ebx + 4]
call fcn.004014ed
push 0
call dword [sym.imp.USBIO.dll_IO_OpenDevice]
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x4010a5
push str.INVALID_HANDLE_VALUE
call fcn.004014ed
add esp, 4
or eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004011f0
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.USBIO.dll_IO_GetDeviceType]
mov edi, dword [sym.imp.USBIO.dll_IO_SetRawMode]
mov dword [ebp - 0x4c], eax
cmp eax, 6
jne 0x4010c5
push 0xf00
push esi
call edi
add esp, 8
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
push 0x50000000
push esi
call dword [sym.imp.USBIO.dll_IO_ReadData]
add esp, 0x10
test eax, eax
jne 0x4011b5
cmp byte [ebp - 0x44], al
je 0x40113e
mov eax, dword [ebx + 4]
mov ecx, 0x40ab14
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401117
test dx, dx
je 0x401113
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401117
add eax, 4
add ecx, 4
test dx, dx
jne 0x4010f1
xor eax, eax
jmp 0x40111c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40113e
push str._n_Touch_On_n
call fcn.004014ed
push 0x120
push esi
call edi
push esi
call dword [sym.imp.USBIO.dll_IO_Reset]
add esp, 0x10
jmp 0x4011b5
mov eax, dword [ebx + 4]
mov ecx, 0x40ab34
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40116c
test dx, dx
je 0x401168
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40116c
add eax, 4
add ecx, 4
test dx, dx
jne 0x401146
xor eax, eax
jmp 0x401171
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40117c
push str._n_Touch_Off_n
jmp 0x4011a5
cmp byte [ebp - 0x44], 0
je 0x4011a0
push str._n_Touch_Toggle_On_n
call fcn.004014ed
push 0x120
push esi
call edi
push esi
call dword [sym.imp.USBIO.dll_IO_Reset]
add esp, 0x10
jmp 0x4011b5
push str._n_Touch_Toggle_Off_n
call fcn.004014ed
push 0x121
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x4c], 6
jne 0x4011c6
push 0xf01
push esi
call edi
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004011f0
mov esp, ebp
pop ebp
ret
push 0
call fcn.004014d9
int3