joyce8/EMBER2024-capa huggingface dataset:
Function at 0x488090
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4af610
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00487c40
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00487cc0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00487cc0
lea ecx, [esi + 0xc]
call fcn.0049de65
lea ecx, [esi + 0x10]
call fcn.0049de65
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0048a500
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0048a500
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0048a500
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0049deda
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0049deda
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x488d38
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4af838
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x488d48
call fcn.00489260
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x488e2b
cmp byte [edi], 0
je 0x488e2b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x488d6d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00487a60
test eax, eax
jne 0x488d8d
push 0x604414
lea ecx, [esi + 0x38]
call fcn.0049e017
jmp 0x488e2b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.00487ab0
test eax, eax
jne 0x488dbc
mov ecx, esi
call fcn.00487bb0
push edi
add esi, 0x38
push 0x6043f0
push esi
call fcn.0049b0dc
add esp, 0xc
jmp 0x488e2b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.00489af0
test eax, eax
je 0x488e24
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00488f00
test eax, eax
jne 0x488e40
push edi
lea eax, [esi + 0x38]
push 0x6043cc
push eax
call fcn.0049b0dc
add esp, 0xc
mov ecx, esi
call fcn.00489260
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x488ee8
mov ecx, dword [0x6047b4]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.0049b0dc
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.00487b60
test eax, eax
jne 0x488eaa
push 0x6043b0
lea ecx, [esi + 0x38]
call fcn.0049e017
jmp 0x488eba
push 0xfa
mov ecx, esi
call fcn.00489af0
test eax, eax
jne 0x488ed7
mov ecx, esi
call fcn.00489260
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0049deda
jmp 0x488e2b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0049deda
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x4a0290
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a02c8
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049e335
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049e30d
jmp 0x4a02d4
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a1a8b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a1acd
call fcn.004a7f81
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a1acd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a1ac4
xor eax, eax
jmp 0x4a1ad5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a1adb
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a84b1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a84df
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a84fd
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a8417
jmp 0x4a84fd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a84fd
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a8417
test edi, edi
mov eax, edi
jne 0x4a84e7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x405f35
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c5b4], 0
push esi
jne 0x405f6c
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f46
mov dword [ecx*4 + 0x42c5b0], eax
inc ecx
cmp ecx, 0x100
jl 0x405f41
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f9d
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c5b0]
xor eax, esi
inc ecx
dec edx
jne 0x405f7f
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401510
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, 0x1074
call fcn.004023c8
sub esp, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], str.InternetConnectionTest
call sym._InternetOpenA_20
sub esp, 0x14
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x401562
mov eax, 0
jmp 0x4016d8
mov dword [ebp - 0x30], str.https:__www.google.com
mov dword [ebp - 0x2c], str.https:__www.microsoft.com
mov dword [ebp - 0x28], str.https:__www.apple.com
mov byte [ebp - 9], 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
add eax, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1c]
je 0x4016ae
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x4800000
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._InternetOpenUrlA_24
sub esp, 0x18
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4016a5
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym.CheckSSL_void_
test al, al
je 0x401697
lea eax, [ebp - 0x4c]
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea eax, [ebp - 0x34]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xfff
lea eax, [ebp - 0x104c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._InternetReadFile_16
sub esp, 0x10
test eax, eax
je 0x40163c
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x40163c
mov eax, 1
jmp 0x401641
mov eax, 0
test al, al
je 0x401668
mov eax, dword [ebp - 0x34]
mov byte [ebp + eax - 0x104c], 0
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x104c]
mov dword [esp], edx
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::append_char_const_
sub esp, 4
jmp 0x401603
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call sym.CheckContent_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
test al, al
je 0x401682
mov byte [ebp - 9], 1
mov ebx, 0
jmp 0x401687
mov ebx, 1
lea eax, [ebp - 0x4c]
mov ecx, eax
call fcn.00401804
cmp ebx, 1
jne 0x4016ae
nop
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._InternetCloseHandle_4
sub esp, 4
add dword [ebp - 0x10], 4
jmp 0x401590
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._InternetCloseHandle_4
sub esp, 4
movzx eax, byte [ebp - 9]
jmp 0x4016d8
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x401e70
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407048
call sym._EnterCriticalSection_4
mov ebx, dword [0x407040]
sub esp, 4
test ebx, ebx
je 0x401ebb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401eb4
test esi, esi
je 0x401eb4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e90
mov dword [esp], 0x407048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4020a0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4020f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4021c8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40212e
cmp eax, 4
jne 0x402150
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40213e
cmp edx, 4
je 0x40213e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004020a0
Function at 0x40e7ee
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x40e81b
push 6
call fcn.0049c559
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
mov eax, 0
sete al
jmp 0x40e82f
mov esp, ebp
pop ebp
ret 4

Function at 0x41352a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0xc], 0
jne 0x413545
call fcn.004135b5
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 0x413571
push 6
call fcn.0049c559
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 0x41359b
push 6
call fcn.0049c559
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
mov eax, 0
sete al
jmp 0x4135af
mov esp, ebp
pop ebp
ret 8
Function at 0x42bcb0
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.0049ea20
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x42bcf5
push ebx
call fcn.0049c553
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 0x42bd23
push 6
call fcn.0049c559
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x42bd3f
push eax
mov ebx, eax
call fcn.00401de5
inc eax
push eax
call fcn.0049c54d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x42bd44
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x42bd55
push ebx
call fcn.0049c553
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x42db06
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x42db3e
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x42db2c
mov al, 1
jmp 0x42db88
cmp dword [ebx + 0x54], ecx
jne 0x42db35
mov al, 2
jmp 0x42db88
cmp dword [ebx + 0x7c], ecx
jne 0x42db88
mov al, 3
jmp 0x42db88
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x42db53
mov al, 4
jmp 0x42db88
cmp ecx, 5
jne 0x42db73
cmp ebx, 0
jne 0x42db61
mov al, 5
jmp 0x42db88
cmp ebx, 1
jne 0x42db6a
mov al, 6
jmp 0x42db88
cmp ebx, 2
jne 0x42db73
mov al, 7
jmp 0x42db88
cmp ecx, 6
jne 0x42db7f
cmp ebx, 0
jne 0x42db81
mov al, 8
jmp 0x42db88
cmp ebx, 1
jne 0x42db88
mov al, 9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x437442
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x43746f
push 6
call fcn.0049c559
add esp, 4
jmp 0x437474
mov esp, ebp
pop ebp
ret 4

Function at 0x4405b6
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x4405e6
push 6
call fcn.0049c559
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
mov eax, 0
setne al
jmp 0x4405fa
mov esp, ebp
pop ebp
ret 4
Function at 0x46f330
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x2000
push 0x80000301
push 0
push 0x1000
push 2
mov ebx, 0xc8
call fcn.0049e9d0
add esp, 0x1c
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0x40
push dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x46f39a
push 6
call fcn.0049c559
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x46f40d
push 0x80000301
push 0
push 0x2000
push 0x80000301
push 0
push 0x1000
push 2
mov ebx, 0xc8
call fcn.0049e9d0
add esp, 0x1c
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0x40
push dword [ebp - 8]
push dword [ebp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x46f403
push 6
call fcn.0049c559
add esp, 4
jmp 0x46f415
mov eax, dword [ebp - 4]
jmp 0x46f415
mov esp, ebp
pop ebp
ret 8
Function at 0x475103
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 0x47513e
push 6
call fcn.0049c559
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.0049deb0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4751a1
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.0049e9d0
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 0x4751c5
push 6
call fcn.0049c559
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.0049deb0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x475228
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.0049e9d0
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 0x47524c
push 6
call fcn.0049c559
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.0049deb0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4752af
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.0049e9d0
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x4752b7
mov esp, ebp
pop ebp
ret
Function at 0x479573
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 0x4795b9
push 6
call fcn.0049c559
add esp, 4
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x50657e]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.004012f0
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.0049ea20
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x47960c
push ebx
call fcn.0049c553
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 0x479645
push 6
call fcn.0049c559
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x479661
push eax
mov ebx, eax
call fcn.00401de5
inc eax
push eax
call fcn.0049c54d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x479666
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x479677
push ebx
call fcn.0049c553
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x49d390
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [esp + 0x11c]
push ebp
push esi
push edi
push eax
call fcn.004a44b0
mov esi, dword [esp + 0x138]
mov ebp, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], edx
test ebp, ebp
je 0x49d47e
test ecx, ecx
je 0x49d47e
inc ecx
push ebx
push ecx
call fcn.004d2f79
mov ebx, 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, ebx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004c28e0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x49d412
mov byte [esi], 0
inc esi
lea eax, [esp + 0x10]
push eax
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x49d466
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push esi
push ecx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x49d453
cmp eax, 0xea
jne 0x49d45b
mov dword [esp + 0x14], 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.004d2fa2
mov eax, dword [esp + 0x18]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x114
ret
pop edi
pop esi
mov eax, edx
pop ebp
add esp, 0x114
ret
Function at 0x49d9e0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x49d9fe
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x49d9f3
pop esi
ret

Function at 0x49e010
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x28]
sub esp, 0x18
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
cmp eax, 0x80000301
push edi
ja 0x49e090
je 0x49e081
cmp eax, 0x80000101
ja 0x49e07a
je 0x49e081
cmp eax, reloc.WSOCK32.dll_connect
je 0x49e05d
cmp eax, 0x80000005
jne 0x49e0a5
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], 3
test eax, eax
je 0x49e0eb
mov ebx, dword [eax + 4]
lea ebp, [eax + 8]
jmp 0x49e0eb
mov ebp, dword [esp + 0x44]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 1
mov ebx, ecx
inc ebx
jmp 0x49e0eb
cmp eax, 0x80000201
jne 0x49e0a5
mov ebx, 4
lea ebp, [esp + 0x44]
mov dword [esp + 0xc], ebx
jmp 0x49e0eb
cmp eax, 0x80000401
je 0x49e0d6
cmp eax, 0x80000501
je 0x49e0c2
cmp eax, 0x80000601
je 0x49e0ae
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
fld qword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
call fcn.004c29a0
jmp 0x49e0e3
fld dword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
call fcn.004c29a0
jmp 0x49e0e3
mov eax, dword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
lea ebp, [esp + 0x10]
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004a44b0
mov edi, dword [esp + 0x3c]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [esp + 0x20], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], 0
test edx, edx
je 0x49e1c6
test ecx, ecx
je 0x49e1c6
inc ecx
push esi
push ecx
call fcn.004d2f79
mov edi, dword [esp + 0x40]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x2c], edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004c28e0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x49e168
mov byte [esi], 0
inc esi
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x49e1bc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x49e1b1
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.004d2fa2
add esp, 4
pop esi
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop ebx
add esp, 0x18
ret