joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4405a2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004382e6
xor ebx, ebx
cmp dword [0x468a08], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x440677
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4405e2
xor eax, eax
jmp 0x44073b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4405db
push eax
call fcn.00438283
mov dword [esp], 0x454fd8
push edi
mov dword [0x468a08], eax
call esi
push eax
call fcn.00438283
mov dword [esp], 0x454fc4
push edi
mov dword [0x468a0c], eax
call esi
push eax
call fcn.00438283
mov dword [0x468a10], eax
lea eax, [ebp - 8]
push eax
call fcn.004361d3
test eax, eax
pop ecx
pop ecx
je 0x440645
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043941a
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x440677
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00438283
cmp eax, ebx
pop ecx
mov dword [0x468a18], eax
je 0x440677
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00438283
pop ecx
mov dword [0x468a14], eax
mov eax, dword [0x468a14]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4406f0
cmp dword [0x468a18], esi
je 0x4406f0
push eax
call fcn.004382ef
pop ecx
call eax
cmp eax, ebx
je 0x4406bd
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x468a18]
call fcn.004382ef
pop ecx
call eax
test eax, eax
je 0x4406bd
test byte [ebp - 0x18], 1
jne 0x4406f0
lea eax, [ebp - 0xc]
push eax
call fcn.0043620a
test eax, eax
pop ecx
je 0x4406d8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043941a
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4406e7
or dword [ebp + 0x10], 0x200000
jmp 0x440721
or dword [ebp + 0x10], 0x40000
jmp 0x440721
mov eax, dword [0x468a0c]
cmp eax, esi
je 0x440721
push eax
call fcn.004382ef
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x440721
mov eax, dword [0x468a10]
cmp eax, esi
je 0x440721
push dword [ebp - 4]
push eax
call fcn.004382ef
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x468a08]
call fcn.004382ef
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x447d20
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x464664]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00447cb5
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00433410
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x447d6f
cmp dword [ebp - 0x1c], 5
jb 0x447d87
jmp 0x447d83
cmp dword [ebp - 0x10], 1
jne 0x447d87
cmp dword [ebp - 0x1c], 4
ja 0x447d83
jne 0x447d87
cmp dword [ebp - 0x18], 0
jbe 0x447d87
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x456998
call fcn.00447ba6
test eax, eax
jge 0x447da8
mov byte [0x465b44], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00433125
add ebp, 0x78
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x31236917
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x6d283ec9
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4024a0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x409048
call sym._EnterCriticalSection_4
mov ebx, dword [0x409040]
sub esp, 4
test ebx, ebx
je 0x4024eb
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 0x4024e4
test esi, esi
je 0x4024e4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4024c0
mov dword [esp], 0x409048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4026d0
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 0x402720
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 0x4027f8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40275e
cmp eax, 4
jne 0x402780
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 0x40276e
cmp edx, 4
je 0x40276e
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.004026d0
Function at 0x40b280
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4e804c
call sym._EnterCriticalSection_4
mov ebx, dword [0x4e8044]
sub esp, 4
test ebx, ebx
je 0x40b2cb
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 0x40b2c4
test esi, esi
je 0x40b2c4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40b2a0
mov dword [esp], 0x4e804c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40b4b0
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 0x40b500
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 0x40b5d8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40b53e
cmp eax, 4
jne 0x40b560
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 0x40b54e
cmp edx, 4
je 0x40b54e
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.0040b4b0

Function at 0x40bb50
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sym._GetLastError_0
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sym._SetLastError_4
sub esp, 4
mov eax, ebx
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40bb80
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
je 0x40bba4
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp sym._GetLastError_0
Function at 0x41d550
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x4a3abc], 0
jne 0x41d624
mov byte [0x4a3abc], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x41d6be
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0x1c], 0xffffffff
sete al
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call sym.___cxa_demangle
mov esi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x30
mov ebp, eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
lea edi, [esi + 0x40]
mov dword [esp + 0xc], edi
call sym._fwrite
cmp dword [esp + 0x1c], 0
mov dword [esp + 4], edi
je 0x41d61a
mov dword [esp], ebx
call sym._fputs
lea eax, [esi + 0x40]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x4a5219
mov dword [esp + 0xc], eax
call sym._fwrite
cmp dword [esp + 0x1c], 0
je 0x41d651
call sym.___cxa_rethrow
mov dword [esp], ebp
call sym._fputs
jmp 0x41d5eb
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
call sym._abort
mov dword [esp], ebp
call sym._free
jmp 0x41d615
call sym._abort
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
jmp 0x41d6b9
Function at 0x421740
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x348]
mov ecx, dword [esi]
push 0
push eax
push ecx
call fcn.00487810
mov edx, dword [esi]
mov al, 0xff
push edx
push 4
mov byte [esp + 0x20], al
mov byte [esp + 0x21], al
mov byte [esp + 0x22], al
mov byte [esp + 0x23], al
lea eax, [esp + 0x20]
push 1
push eax
call fcn.00487020
movzx edx, byte [esp + 0x29]
add esp, 0x1c
cmp word [esi + 4], 0x4949
jne 0x4217aa
movzx edi, byte [esp + 0xf]
movzx ecx, byte [esp + 0xe]
movzx eax, byte [esp + 0xc]
shl edi, 8
or edi, ecx
shl edi, 8
or edi, edx
shl edi, 8
or edi, eax
jmp 0x4217c8
movzx eax, byte [esp + 0xe]
xor ecx, ecx
mov ch, byte [esp + 0xc]
or ecx, edx
movzx edx, byte [esp + 0xf]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, edx
mov edi, ecx
mov eax, dword [esi]
mov ecx, dword [esi + 0x354]
mov edx, dword [esi + 0xc]
push eax
push ecx
push 1
push edx
call fcn.00487020
mov eax, dword [esi + 0x354]
add esp, 0x10
xor ebx, ebx
test eax, eax
jbe 0x421843
push ebp
lea ecx, [ecx]
mov eax, edi
imul eax, eax, 0x63d
add eax, 0xca25
xor edx, edx
mov ecx, 0x3bcd0
div ecx
mov ecx, 0x18
mov edi, edx
mov eax, edi
mov edx, 0x11f9f253
mul edx
call fcn.00487dc0
mov ecx, dword [esi + 0xc]
mov edx, edi
shl edx, 8
sub edx, eax
shr edx, 1
add edx, eax
mov al, byte [ebx + ecx]
lea ebp, [ebx + ecx]
shr edx, 0x11
xor al, dl
mov byte [ebp], al
mov eax, dword [esi + 0x354]
inc ebx
cmp ebx, eax
jb 0x4217f0
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x426020
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x1988c]
je 0x4260be
mov ecx, dword [esp + 0x20]
xor eax, eax
mov edi, edi
imul ecx, ecx, 0x2e90edd
inc ecx
mov dword [esi + eax*4 + 0x1968c], ecx
inc eax
cmp eax, 4
jb 0x426040
mov eax, dword [esi + 0x19694]
mov ebp, dword [esi + 0x1968c]
mov ecx, dword [esi + 0x19698]
xor eax, ebp
shr eax, 0x1f
shl ecx, 1
or eax, ecx
mov dword [esi + 0x19698], eax
lea eax, [esi + 0x19690]
mov ecx, 0x7b
mov edi, dword [eax]
mov edx, dword [eax + 8]
mov ebx, dword [eax + 4]
xor edx, edi
mov edi, dword [eax - 4]
xor edi, ebx
shr edx, 0x1f
shl edi, 1
or edx, edi
mov dword [eax + 0xc], edx
add eax, 4
dec ecx
jne 0x426080
mov ebx, dword [sym.imp.WS2_32.dll_htonl]
xor edi, edi
mov eax, dword [esi + edi*4 + 0x1968c]
push eax
call ebx
mov dword [esi + edi*4 + 0x1968c], eax
inc edi
cmp edi, 0x7f
jb 0x4260a7
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x426103
mov edx, dword [esp + 0x14]
lea ecx, [edi + 1]
lea ecx, [ecx]
lea eax, [ecx - 0x40]
and eax, 0x7f
mov eax, dword [esi + eax*4 + 0x1968c]
mov ebp, ecx
and ebp, 0x7f
xor eax, dword [esi + ebp*4 + 0x1968c]
mov ebp, edi
and ebp, 0x7f
mov dword [esi + ebp*4 + 0x1968c], eax
mov ebp, dword [edx]
xor ebp, eax
inc edi
mov dword [edx], ebp
inc ecx
add edx, 4
dec ebx
jne 0x4260d0
mov dword [esi + 0x1988c], edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x429c70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
push eax
push 2
lea ecx, [esp + 0x18]
push 1
push ecx
xor esi, esi
xor ebx, ebx
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], 0xff
call fcn.00487020
mov edx, dword [edi]
push edx
push 4
lea eax, [esp + 0x28]
push 1
push eax
mov byte [esp + 0x30], 0xff
mov byte [esp + 0x31], 0xff
mov byte [esp + 0x32], 0xff
mov byte [esp + 0x33], 0xff
call fcn.00487020
movzx edx, byte [esp + 0x31]
movzx ecx, byte [esp + 0x32]
mov ebp, 0x4949
add esp, 0x20
cmp word [edi + 4], bp
jne 0x429cf0
movzx eax, byte [esp + 0x13]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0x10]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
jmp 0x429d07
xor eax, eax
mov ah, byte [esp + 0x10]
or eax, edx
movzx edx, byte [esp + 0x13]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
cmp eax, 0x80008
jne 0x429e97
mov eax, dword [edi]
push eax
push 4
lea ecx, [esp + 0x18]
push 1
push ecx
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], 0xff
mov byte [esp + 0x22], 0xff
mov byte [esp + 0x23], 0xff
call fcn.00487020
movzx ecx, byte [esp + 0x21]
movzx edx, byte [esp + 0x22]
add esp, 0x10
cmp word [edi + 4], bp
jne 0x429d65
movzx eax, byte [esp + 0x13]
shl eax, 8
or eax, edx
movzx edx, byte [esp + 0x10]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
jmp 0x429d7c
xor eax, eax
mov ah, byte [esp + 0x10]
or eax, ecx
movzx ecx, byte [esp + 0x13]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
test eax, eax
je 0x429e97
mov edx, dword [edi]
push edx
push 2
lea eax, [esp + 0x18]
push 1
push eax
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], 0xff
call fcn.00487020
add esp, 0x10
xor eax, eax
cmp word [edi + 4], bp
jne 0x429db4
mov ah, byte [esp + 0x11]
mov al, byte [esp + 0x10]
jmp 0x429dc0
movzx cx, byte [esp + 0x11]
mov ah, byte [esp + 0x10]
or eax, ecx
movzx eax, ax
cmp eax, 0xa
mov dword [esp + 0x20], eax
je 0x429dd5
cmp eax, 0xc
jne 0x429e97
mov ecx, 0x20
sub ecx, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], ecx
lea ebp, [edi + 0x48c]
mov dword [esp + 0x1c], 8
mov dword [esp + 0x18], 8
mov edi, edi
cmp esi, eax
jge 0x429e69
mov edx, dword [edi]
push edx
push 2
lea eax, [esp + 0x18]
push 1
push eax
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], 0xff
call fcn.00487020
add esp, 0x10
xor ecx, ecx
cmp word [edi + 4], 0x4949
jne 0x429e36
mov ch, byte [esp + 0x11]
mov cl, byte [esp + 0x10]
jmp 0x429e42
movzx dx, byte [esp + 0x11]
mov ch, byte [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x14]
mov edx, eax
and edx, 1
movzx edx, word [edx*2 + 0x65db9c]
movzx ecx, cx
xor edx, ecx
shl ebx, 0x10
or ebx, edx
inc eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
add esi, 0x10
mov ecx, 0x20
sub ecx, esi
mov edx, ebx
shl edx, cl
mov ecx, dword [esp + 0x24]
sub esi, eax
add ebp, 2
shr edx, cl
dec dword [esp + 0x18]
mov word [ebp - 2], dx
jne 0x429e00
dec dword [esp + 0x1c]
jne 0x429df6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x483020
Capabilities:
Check mutex on windows

Disassembly:
push str.Slingshot
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x6b6e94], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x483049
cmp eax, 5
je 0x483049
xor eax, eax
ret
or eax, 0xffffffff
ret
Function at 0x484ad0
Capabilities:
Enumerate gui resources

Disassembly:
push ecx
push 0x697e0c
push str.ss::window_name
call fcn.004cd840
mov eax, dword [eax]
add esp, 8
test eax, eax
je 0x484aee
add eax, 4
jmp 0x484af0
xor eax, eax
push eax
push str.ytWindow
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
mov dword [esp], eax
jne 0x484b18
lea eax, [esp]
push eax
push 0x43d050
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp]
pop ecx
ret

Function at 0x490de2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x69dc60
cmp edx, dword [eax]
je 0x490e04
add eax, 8
inc ecx
cmp eax, 0x69dcf0
jl 0x490df5
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x69dc60]
jne 0x490f32
mov eax, dword [0x6b6f38]
cmp eax, 1
je 0x490f0c
test eax, eax
jne 0x490e35
cmp dword [0x69b358], 1
je 0x490f0c
cmp edx, 0xfc
je 0x490f32
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x490e6c
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0048f6e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0048d050
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x490eaf
lea eax, [ebp - 0x1a4]
push eax
call fcn.0048d050
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x69933c
push edi
call fcn.00489040
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0048f6e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0048f6f0
lea eax, [ebp - 0xa0]
push 0x661864
push eax
call fcn.0048f6f0
push dword [esi + 0x69dc64]
lea eax, [ebp - 0xa0]
push eax
call fcn.0048f6f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004939cf
add esp, 0x2c
pop edi
jmp 0x490f32
lea eax, [ebp + 8]
lea esi, [esi + 0x69dc64]
push 0
push eax
push dword [esi]
call fcn.0048d050
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 0x497bc0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov al, byte [ecx + 0x2c]
test al, al
push ebp
mov dword [esp + 0x10], ecx
jne 0x497bda
mov eax, dword [esp + 0x18]
pop ebp
add esp, 0x10
ret 4
mov ebp, dword [ecx + 0x5c]
test ebp, ebp
je 0x497d0c
mov eax, dword [ecx + 0x58]
mov dl, byte [ecx + 0x60]
push ebx
push esi
shr eax, 3
test dl, dl
push edi
mov dword [esp + 0x14], ebp
jne 0x497c45
test eax, eax
jbe 0x497cf0
mov edi, dword [esp + 0x24]
mov ebx, eax
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov esi, eax
mov ecx, edx
shr eax, 2
shr edx, 2
and esi, 0xff00ff
and ecx, 0xff00ff
and eax, 0x3fc03fc0
and edx, 0x3fc03fc0
add esi, ecx
add eax, edx
mov dword [ebp], eax
mov dword [ebp + 4], esi
add ebp, 8
add edi, 8
dec ebx
jne 0x497c07
jmp 0x497cec
test eax, eax
mov dword [esp + 0x10], ebp
jbe 0x497cf0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
lea esp, [esp]
mov edi, dword [eax + 4]
mov eax, dword [eax]
mov ebx, dword [ebp]
mov edx, eax
and eax, 0xff00ff
mov esi, edi
and edi, 0xff00ff
add eax, edi
add eax, dword [ebp + 4]
shr esi, 2
shr edx, 2
mov ecx, esi
and ecx, 0xffc03fc0
mov edi, edx
shr eax, 2
mov ebp, ebx
add ebp, ecx
mov ecx, dword [esp + 0x10]
and edi, 0xffc03fc0
add edi, ebp
mov ebp, dword [esp + 0x14]
and eax, 0xff00ff
and esi, 0x3fc03fc0
and edi, 0xff00ff
xor eax, edi
and edx, 0x3fc03fc0
add ebx, esi
add edx, ebx
xor eax, edx
mov dword [ecx], eax
mov eax, dword [esp + 0x24]
add ecx, 4
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x18]
add ebp, 8
add eax, 8
dec ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ecx
jne 0x497c60
mov ecx, dword [esp + 0x1c]
mov bl, byte [ecx + 0x60]
test bl, bl
pop edi
sete al
test al, al
pop esi
mov byte [ecx + 0x60], al
pop ebx
jne 0x497d0c
mov eax, dword [ecx + 0x5c]
pop ebp
add esp, 0x10
ret 4
xor eax, eax
pop ebp
add esp, 0x10
ret 4
Function at 0x49cd30
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx + 0xc]
imul eax, dword [ecx + 8]
push esi
mov esi, dword [ecx + 0x10]
push edi
xor edi, edi
test eax, eax
jbe 0x49cd93
push ebx
push ebp
mov eax, dword [esi]
movzx edx, byte [esi + 3]
inc edx
mov ebx, eax
and ebx, 0xff00
imul ebx, edx
mov ebp, eax
and ebp, 0xffff00ff
imul ebp, edx
xor ebx, ebp
mov ebp, eax
and ebp, 0xff00ff
imul ebp, edx
and ebx, 0xff0000
xor ebx, ebp
shr ebx, 8
and eax, 0xff000000
or ebx, eax
mov dword [esi], ebx
mov edx, dword [ecx + 0xc]
imul edx, dword [ecx + 8]
add esi, 4
inc edi
cmp edi, edx
jb 0x49cd44
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret

Function at 0x49dc00
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
mov esi, dword [ebx]
test esi, esi
push edi
je 0x49dc66
mov eax, dword [esi]
and eax, 0xff
cmp eax, 0x80
jae 0x49dc60
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x7f
jne 0x49dc51
mov ecx, dword [esi]
and ecx, 0xff
cmp ecx, 0x80
jae 0x49dc4c
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x49dc51
mov eax, 0xff
test eax, eax
jne 0x49dc60
mov edx, dword [ebx]
push edx
call fcn.00499410
add esp, 4
mov dword [ebx], 0
mov al, byte [0x6b9450]
test al, al
mov byte [ebp - 1], al
je 0x49dc7e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
jmp 0x49dc88
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, eax
test esi, esi
je 0x49dcf7
mov al, byte [ebp - 1]
inc esi
test al, al
je 0x49dcc8
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.00488a80
mov edx, dword [ebp + 8]
mov edi, esp
push esi
push edi
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
push edi
mov ecx, ebx
call fcn.0049d940
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push esi
mov ecx, ebx
call fcn.0049d1f0
cmp dword [ebx], 0
je 0x49dcf7
mov ecx, ebx
call fcn.0049d350
mov ebx, dword [ebx]
test ebx, ebx
je 0x49dce9
lea eax, [ebx + 4]
jmp 0x49dceb
xor eax, eax
push esi
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4