joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415b10
Capabilities:
Create thread

Disassembly:
sub esp, 0x1c
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x416a70
call dword [sym.imp.msvcrt.dll__beginthread]
cmp eax, 0xffffffff
je 0x415b40
add esp, 0x1c
ret
mov dword [esp], str.cannot_create_input_thread
call fcn.00401940
add esp, 0x1c
ret

Function at 0x416be0
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x130
mov ebx, dword [ebp + 0xc]
mov dword [esp], str.ANDROID_SDK_HOME
call sub.msvcrt.dll_getenv
test eax, eax
je 0x416c38
mov dword [esp + 0x14], str.adb_usb.ini
mov dword [esp + 0x10], str..android
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], ebx
mov dword [esp + 8], str._s_s_s
mov dword [esp], eax
call fcn.00416b30
cmp eax, ebx
setge al
lea esp, [ebp - 8]
movzx eax, al
pop ebx
pop esi
pop ebp
ret
lea esi, [ebp - 0x10c]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x28
mov dword [esp], 0
call dword [sym.imp.SHELL32.DLL_SHGetFolderPathA]
sub esp, 0x14
mov dword [esp + 0x14], str.adb_usb.ini
mov dword [esp + 0x10], str..android
mov dword [esp + 0xc], esi
jmp 0x416c12
Function at 0x41aa60
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
call fcn.00417080
mov dword [ebp - 0xc], 1
test eax, eax
je 0x41aa81
cmp dword [eax], 0x4c72a8
je 0x41aa83
leave
ret
lea edx, [ebp - 0xc]
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], edx
mov dword [esp + 8], 1
mov dword [esp + 4], 6
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
sub esp, 0x14
leave
ret
Function at 0x42a440
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x140
mov dword [esp], 0xfffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
sub esp, 4
test eax, eax
je 0x42a473
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
sub esp, 4
test eax, eax
jne 0x42a563
lea eax, [ebp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
lea ebx, [ebp - 0x108]
mov dword [esp + 4], 0xff
mov dword [esp], ebx
mov dword [esp + 8], eax
call dword [sym.imp.msvcrt.dll__vsnprintf]
mov byte [ebp - 9], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x42a538
call fcn.0042a2d0
test eax, eax
jle 0x42a538
mov dword [esp + 4], str.OPENSSL
mov dword [esp], 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [ebp - 0x10c], ebx
sub esp, 8
mov esi, eax
lea eax, [ebp - 0x10c]
mov dword [esp], esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
sub esp, 0x24
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.OpenSSL:_FATAL
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
lea eax, [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.004b12f0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x437ed0
Capabilities:
Encode data using base64

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 4
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jle 0x437f6c
lea eax, [edi + 4]
mov dword [esp], eax
xor eax, eax
cmp esi, 2
jle 0x437f70
movzx edx, byte [ebx]
movzx edi, byte [ebx + 1]
shl edx, 0x10
shl edi, 8
or edx, edi
movzx edi, byte [ebx + 2]
or edx, edi
mov edi, dword [esp]
mov ebp, edx
shr ebp, 0x12
movzx ecx, byte [ebp + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ebp, edx
shr ebp, 0xc
and ebp, 0x3f
mov byte [edi - 4], cl
movzx ecx, byte [ebp + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ebp, edx
shr ebp, 6
and edx, 0x3f
and ebp, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 3], cl
movzx ecx, byte [ebp + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 1], dl
mov byte [edi - 2], cl
sub esi, 3
add eax, 4
add ebx, 3
add dword [esp], 4
test esi, esi
jg 0x437ef3
mov byte [edi], 0
add esp, 4
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
jmp 0x437f61
movzx ebp, byte [ebx]
shl ebp, 0x10
cmp esi, 2
je 0x437fb0
mov edx, ebp
mov edi, dword [esp]
shr edx, 0x12
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
shr ebp, 0xc
and ebp, 0x3f
mov byte [edi - 4], dl
movzx edx, byte [ebp + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 3], dl
mov edx, 0x3d
mov ecx, dword [esp]
mov edi, ecx
mov byte [ecx - 2], dl
mov byte [ecx - 1], 0x3d
jmp 0x437f50
movzx edi, byte [ebx + 1]
mov ecx, dword [esp]
shl edi, 8
or edi, ebp
mov edx, edi
shr edx, 0x12
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 4], dl
mov edx, edi
shr edx, 0xc
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
shr edi, 6
and edi, 0x3f
mov byte [ecx - 3], dl
movzx edx, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x437fa2
Function at 0x4b0560
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x4b0598
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x4b058e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x4b059a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x4b0580
xor eax, eax
pop ebx
pop esi
ret

Function at 0x4b4450
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x12c
mov ebx, dword [ebp + 8]
call sub.msvcrt.dll__errno
test ebx, ebx
mov dword [eax], 0
je 0x4b45fe
cmp byte [ebx], 0
je 0x4b45c8
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
je 0x4b45e0
test al, 0x10
je 0x4b45c8
lea edi, [ebp - 0x11c]
mov dword [esp + 4], ebx
mov ebx, edi
mov dword [esp + 8], 0x104
mov dword [esp], edi
call sub.msvcrt.dll__fullpath
mov edx, dword [ebx]
add ebx, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x4b44b4
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea edx, [ebx + 2]
cmove ebx, edx
add al, al
sbb ebx, 3
sub ebx, edi
lea eax, [ebx + 0x233]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov esi, eax
je 0x4b45ef
lea edx, [eax + 0x22c]
lea eax, [ebx + 1]
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [ebp - 0x12c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x12c]
cmp byte [esi + 0x22c], 0
je 0x4b4543
movzx eax, byte [esi + ebx + 0x22b]
cmp al, 0x2f
je 0x4b4543
cmp al, 0x5c
je 0x4b4543
mov edi, 0x5c
mov word [edx + ebx], di
mov eax, edx
mov ecx, dword [eax]
add eax, 4
lea edx, [ecx - 0x1010101]
not ecx
and edx, ecx
and edx, 0x80808080
je 0x4b4545
mov ecx, edx
shr ecx, 0x10
test edx, 0x8080
cmove edx, ecx
lea ecx, [eax + 2]
cmove eax, ecx
add dl, dl
sbb eax, 3
mov edx, 0x2a
mov word [eax], dx
xor ecx, ecx
xor eax, eax
lea edx, [esi + 0x120]
xor ebx, ebx
mov word [esi + 0x11c], cx
mov edi, edx
mov ecx, 0x41
mov dword [esi + 0x224], 0xffffffff
mov dword [esi + 0x228], 0
mov dword [esi + 0x118], 0
mov word [esi + 0x11e], bx
rep stosd dword es:[edi], eax
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x14
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 2
xor eax, eax
jmp 0x4b45c0
call sub.msvcrt.dll__errno
mov dword [eax], 0xc
xor eax, eax
jmp 0x4b45c0
call sub.msvcrt.dll__errno
mov dword [eax], 0xe
xor eax, eax
jmp 0x4b45c0
Function at 0x4016a7
Capabilities:
Get common file path

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.00447710
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4016ec
push ebx
call fcn.004456c7
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push 0xff
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x401717
push 6
call fcn.004456cd
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x401733
push eax
mov ebx, eax
call fcn.00401264
inc eax
push eax
call fcn.004456c1
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x401738
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x401749
push ebx
call fcn.004456c7
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x402cd4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.00447710
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402d19
push ebx
call fcn.004456c7
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x100
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 0x402d47
push 6
call fcn.004456cd
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x402d63
push eax
mov ebx, eax
call fcn.00401264
inc eax
push eax
call fcn.004456c1
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x402d68
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402d79
push ebx
call fcn.004456c7
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x40a165
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0xc], 0
jne 0x40a180
call fcn.0040a1f0
mov dword [ebp + 8], eax
mov dword [ebp - 4], esp
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x40a1ac
push 6
call fcn.004456cd
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40a1d6
push 6
call fcn.004456cd
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
mov eax, 0
sete al
jmp 0x40a1ea
mov esp, ebp
pop ebp
ret 8
Function at 0x40c81d
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 0x40c860
push 6
call fcn.004456cd
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 0x40c88a
push 6
call fcn.004456cd
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 0x40c8be
push 6
call fcn.004456cd
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x40c8c6
mov esp, ebp
pop ebp
ret 4

Function at 0x40e0be
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x14], 1
jne 0x40e0dd
mov dword [ebp + 0x14], 0
jmp 0x40e0fa
cmp dword [ebp + 0x14], 2
jne 0x40e0f3
mov dword [ebp + 0x14], 7
jmp 0x40e0fa
mov dword [ebp + 0x14], 1
mov dword [ebp - 4], esp
push dword [ebp + 0x14]
push 0x4534d1
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x40e135
push 6
call fcn.004456cd
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jne 0x40e151
mov eax, 0
jmp 0x40e15b
mov eax, 1
jmp 0x40e15b
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4128e6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.00447710
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x41292b
push ebx
call fcn.004456c7
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x100
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x412956
push 6
call fcn.004456cd
add esp, 4
push 0x45350c
push dword [ebp - 4]
mov ecx, 2
call fcn.004012cf
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x412976
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x412987
push ebx
call fcn.004456c7
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x413a86
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 2
jne 0x413bce
mov dword [ebp - 8], esp
push str.Comet_Thread
push dword [ebp + 8]
call dword [0x457fe5]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x413ac7
push 6
call fcn.004456cd
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x413b1d
mov dword [ebp - 8], esp
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x413afb
push 6
call fcn.004456cd
add esp, 4
mov dword [ebp - 8], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x413b1d
push 6
call fcn.004456cd
add esp, 4
mov dword [ebp - 8], esp
push str.Comet_Image
push dword [ebp + 8]
call dword [0x457fe5]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x413b44
push 6
call fcn.004456cd
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x413b73
mov dword [ebp - 8], esp
push dword [ebp - 4]
call dword [sym.imp.gdiplus.dll_GdipDisposeImage]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x413b73
push 6
call fcn.004456cd
add esp, 4
mov dword [ebp - 8], esp
push str.Comet_Stream
push dword [ebp + 8]
call dword [0x457fe5]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x413b9a
push 6
call fcn.004456cd
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x413bc9
mov dword [ebp - 8], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x413bc9
push 6
call fcn.004456cd
add esp, 4
jmp 0x413c95
cmp dword [ebp + 0xc], 0x201
jne 0x413c95
mov dword [ebp - 8], esp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x457fe9]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x413c06
push 6
call fcn.004456cd
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push str.CometHitMove
push dword [ebp + 8]
call dword [0x457fe5]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x413c30
push 6
call fcn.004456cd
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jne 0x413c8d
mov dword [ebp - 8], esp
call dword [0x457fed]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x413c5c
push 6
call fcn.004456cd
add esp, 4
mov dword [ebp - 8], esp
push 0
push 2
push 0xa1
push dword [ebp + 8]
call dword [0x457ff1]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x413c8d
push 6
call fcn.004456cd
add esp, 4
mov eax, dword [ebp - 4]
jmp 0x413cc5
mov dword [ebp - 8], esp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x457fe9]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x413cc0
push 6
call fcn.004456cd
add esp, 4
jmp 0x413cc5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42998d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4299c8
push 6
call fcn.004456cd
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.0044af00
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x429a2b
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00449c80
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x429a4f
push 6
call fcn.004456cd
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.0044af00
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x429ab2
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00449c80
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x429ad6
push 6
call fcn.004456cd
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.0044af00
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x429b39
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00449c80
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x429b41
mov esp, ebp
pop ebp
ret
Function at 0x42de2e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x42de74
push 6
call fcn.004456cd
add esp, 4
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x453773]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.00401d79
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.00447710
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x42dec7
push ebx
call fcn.004456c7
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x42df00
push 6
call fcn.004456cd
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x42df1c
push eax
mov ebx, eax
call fcn.00401264
inc eax
push eax
call fcn.004456c1
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x42df21
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x42df32
push ebx
call fcn.004456c7
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x447750
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 SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4477b9
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.004471d0
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
Function at 0x449810
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
call fcn.0044bdd0
mov esi, dword [esp + 0x38]
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ebp
test ebx, ebx
je 0x449960
test ecx, ecx
je 0x449960
inc ecx
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, ebp
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MSVCRT.dll_strrchr
mov edi, eax
add esp, 0xc
test edi, edi
je 0x449889
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x44994d
push 0x400
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x1c], 1
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0x449911
cmp eax, 0xea
jne 0x449939
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x18]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0x4498dc
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x44991f
cmp eax, 2
jne 0x449939
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
call fcn.0044b720
add esp, 8
mov dword [esp + 0x10], eax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x44998e
mov ebp, eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x44999a
mov edx, dword [esp + 0x40]
test edx, edx
je 0x44999a
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.0044b720
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret