joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e2c6
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x4b3323
call fcn.0048a7d0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov eax, dword [0x4ea054]
and dword [ebp - 4], 0
lea ecx, [esi + 0xc]
mov dword [ecx], eax
mov eax, dword [0x4ea054]
mov dword [esi + 0x10], eax
mov eax, dword [0x4ea054]
lea ebx, [esi + 0x14]
mov dword [ebx], eax
mov eax, dword [0x4ea054]
mov dword [esi + 0x18], eax
mov eax, dword [0x4ea054]
mov dword [esi + 0x30], eax
and dword [esi + 4], 0
mov edi, 0x4eea58
push edi
mov byte [ebp - 4], 5
mov dword [esi], 0x4b8ee0
call fcn.004a60af
push edi
mov ecx, ebx
call fcn.004a60af
push edi
lea ecx, [esi + 0x18]
call fcn.004a60af
and dword [esi + 0x1c], 0
and dword [esi + 0x20], 0
fldz
push edi
lea ecx, [esi + 0x30]
fstp qword [esi + 0x28]
call fcn.004a60af
and byte [esi + 8], 0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x42e37a
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x4b3364
call fcn.0048a7d0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x4b8ee0
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 4
call fcn.004a5f26
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 3
call fcn.004a5f26
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 2
call fcn.004a5f26
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 1
call fcn.004a5f26
and byte [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.004a5f26
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4306df
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
xor esi, esi
push 0x44
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.0048a7f0
add esp, 0xc
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0x44
mov dword [ebp - 0x18], 1
push dword [ebp + 0xc]
mov word [ebp - 0x14], 0xa
push eax
push esi
push esi
push 0x20
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
pop esi
leave
ret
Function at 0x4423df
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4423f8
test al, 0x10
je 0x4423f8
push 1
pop esi
jmp 0x4423fa
xor esi, esi
lea ecx, [esp + 8]
call fcn.004a5f26
mov eax, esi
pop esi
ret 4
Function at 0x44998c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x4499d3
cmp edx, 0x10
jl 0x4499bf
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x4499ac
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x4499d3
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x4499cb
and edx, 3
cmp edx, 3
jne 0x4499e7
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x4499ec
cmp edx, 2
jne 0x4499f8
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x4499fd
cmp edx, 1
jne 0x449a03
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x44fa70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
xor esi, esi
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x44fbf5
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x44fbf5
push ebp
push 0xb8
call fcn.004a64f5
add esp, 4
cmp eax, ebx
je 0x44fba3
mov cl, byte [esp + 0x13]
mov dl, byte [esp + 0x13]
mov byte [eax + 0x34], cl
mov cl, byte [esp + 0x13]
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ebx
mov byte [eax + 0x44], dl
mov dl, byte [esp + 0x13]
mov dword [eax + 0x48], ebx
mov dword [eax + 0x4c], ebx
mov dword [eax + 0x50], ebx
mov byte [esp + 0x18], bl
mov word [esp + 0x1a], bx
mov ebp, dword [esp + 0x18]
lea esi, [eax + 0x28]
mov byte [eax + 0x88], cl
mov dword [eax + 0x8c], ebx
mov dword [eax + 0x90], ebx
mov dword [eax + 0x94], ebx
mov byte [eax + 0x98], dl
mov dword [eax + 0x9c], ebx
mov dword [eax + 0xa0], ebx
mov dword [eax + 0xa4], ebx
mov word [esp + 0x1c], bx
mov word [esp + 0x1e], bx
mov dword [esi], ebp
mov ebp, dword [esp + 0x1c]
xor dx, dx
mov ecx, 1
mov dword [esi + 4], ebp
mov dword [eax + 0x20], 0x33333333
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov word [esi + 8], dx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x24], 0x40073333
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ebx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], ebx
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x80], ecx
mov dword [eax + 0x84], ebx
mov dword [eax + 0xa8], ebx
mov dword [eax + 0xac], ebx
mov byte [eax + 0xb0], bl
mov dword [eax + 0xb4], ebx
mov esi, eax
jmp 0x44fba5
xor esi, esi
mov eax, dword [edi]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebx
jne 0x44fbcc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x14]
push 0x4d6d10
push ecx
mov dword [esp + 0x1c], eax
call fcn.0048c884
push 8
call fcn.004a64f5
add esp, 4
mov ebx, eax
lea ebp, [edi + 8]
push ebp
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edx, dword [edi + 4]
push ebp
mov dword [ebx + 4], edx
mov dword [edi + 4], ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x4503f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x4f8020]
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp eax, 0xffffffff
je 0x450583
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x450583
push edi
push 0xb8
call fcn.004a64f5
add esp, 4
cmp eax, ebx
je 0x450523
mov cl, byte [esp + 0xf]
mov dl, byte [esp + 0xf]
mov byte [eax + 0x34], cl
mov cl, byte [esp + 0xf]
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ebx
mov byte [eax + 0x44], dl
mov dl, byte [esp + 0xf]
mov dword [eax + 0x48], ebx
mov dword [eax + 0x4c], ebx
mov dword [eax + 0x50], ebx
mov byte [esp + 0x14], bl
mov word [esp + 0x16], bx
mov edi, dword [esp + 0x14]
lea esi, [eax + 0x28]
mov byte [eax + 0x88], cl
mov dword [eax + 0x8c], ebx
mov dword [eax + 0x90], ebx
mov dword [eax + 0x94], ebx
mov byte [eax + 0x98], dl
mov dword [eax + 0x9c], ebx
mov dword [eax + 0xa0], ebx
mov dword [eax + 0xa4], ebx
mov word [esp + 0x18], bx
mov word [esp + 0x1a], bx
mov dword [esi], edi
mov edi, dword [esp + 0x18]
xor dx, dx
mov ecx, 1
mov dword [esi + 4], edi
mov dword [eax + 0x20], 0x33333333
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov word [esi + 8], dx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x24], 0x40073333
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ebx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], ebx
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x80], ecx
mov dword [eax + 0x84], ebx
mov dword [eax + 0xa8], ebx
mov dword [eax + 0xac], ebx
mov byte [eax + 0xb0], bl
mov dword [eax + 0xb4], ebx
mov esi, eax
jmp 0x450525
xor esi, esi
mov eax, dword [0x4f8020]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebx
jne 0x45054f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x10]
push 0x4d6d10
push ecx
mov dword [esp + 0x18], eax
call fcn.0048c884
push 8
call fcn.004a64f5
add esp, 4
mov edi, eax
push 0x4f8028
mov dword [edi], esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edx, dword [0x4f8024]
push 0x4f8028
mov dword [edi + 4], edx
mov dword [0x4f8024], edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
mov eax, dword [esi + 4]
dec eax
mov dword [esi + 4], eax
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x451010
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4b5763
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x28]
push ebp
mov ebp, dword [eax + 0x10c]
test ebp, ebp
mov dword [esp + 0x2c], ebp
je 0x4511ef
push edi
push esi
push ebx
jmp 0x451048
mov ebp, dword [esp + 0x38]
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4511dd
mov ecx, dword [ebp + 0xc]
inc ecx
push ecx
call fcn.004a64f5
mov ecx, dword [ebp + 0xc]
mov ebx, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0xc]
mov cl, byte [esp + 0x38]
mov byte [esp + 0x18], cl
mov edi, ebx
mov byte [ebx + eax], 0
xor eax, eax
or ecx, 0xffffffff
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x20], eax
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.00451330
test al, al
je 0x4510ce
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.00451310
mov eax, dword [0x4f8020]
xor ebp, ebp
xor edi, edi
cmp eax, 0xffffffff
mov dword [esp + 0x30], ebp
je 0x45117e
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edi, eax
cmp edi, ebp
jne 0x45117e
push 0xb8
call fcn.004a64f5
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0x30], 1
je 0x45111a
mov ecx, eax
call fcn.0044f840
mov edi, eax
jmp 0x45111c
xor edi, edi
mov eax, dword [0x4f8020]
push edi
push eax
mov byte [esp + 0x38], 0
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebp
jne 0x45114b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x10]
push 0x4d6d10
push ecx
mov dword [esp + 0x18], eax
call fcn.0048c884
push 8
call fcn.004a64f5
add esp, 4
mov esi, eax
push 0x4f8028
mov dword [esi], edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edx, dword [0x4f8024]
push 0x4f8028
mov dword [esi + 4], edx
mov dword [0x4f8024], esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov edx, dword [edi + 0x90]
lea ecx, [edi + 0x88]
lea eax, [esp + 0x18]
push eax
push 1
push edx
call fcn.00451630
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
cmp eax, ebp
je 0x4511c4
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4511bb
cmp al, 0xff
je 0x4511bb
dec al
mov byte [ecx], al
jmp 0x4511c4
push ecx
call fcn.004a651e
add esp, 4
push ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.004a651e
mov ebp, dword [esp + 0x3c]
add esp, 4
mov ebp, dword [ebp]
test ebp, ebp
mov dword [esp + 0x38], ebp
jne 0x451044
pop ebx
pop esi
pop edi
mov ecx, dword [esp + 0x1c]
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x456150
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x4f8020]
sub esp, 0x14
push ebx
push ebp
push esi
xor ebx, ebx
xor esi, esi
cmp eax, 0xffffffff
mov ebp, ecx
je 0x4562e6
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x4562e6
push edi
push 0xb8
call fcn.004a64f5
add esp, 4
cmp eax, ebx
je 0x456286
mov cl, byte [esp + 0x13]
mov dl, byte [esp + 0x13]
mov byte [eax + 0x34], cl
mov cl, byte [esp + 0x13]
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ebx
mov byte [eax + 0x44], dl
mov dl, byte [esp + 0x13]
mov dword [eax + 0x48], ebx
mov dword [eax + 0x4c], ebx
mov dword [eax + 0x50], ebx
mov byte [esp + 0x18], bl
mov word [esp + 0x1a], bx
mov edi, dword [esp + 0x18]
lea esi, [eax + 0x28]
mov byte [eax + 0x88], cl
mov dword [eax + 0x8c], ebx
mov dword [eax + 0x90], ebx
mov dword [eax + 0x94], ebx
mov byte [eax + 0x98], dl
mov dword [eax + 0x9c], ebx
mov dword [eax + 0xa0], ebx
mov dword [eax + 0xa4], ebx
mov word [esp + 0x1c], bx
mov word [esp + 0x1e], bx
mov dword [esi], edi
mov edi, dword [esp + 0x1c]
xor dx, dx
mov ecx, 1
mov dword [esi + 4], edi
mov dword [eax + 0x20], 0x33333333
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov word [esi + 8], dx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x24], 0x40073333
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ebx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], ebx
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x80], ecx
mov dword [eax + 0x84], ebx
mov dword [eax + 0xa8], ebx
mov dword [eax + 0xac], ebx
mov byte [eax + 0xb0], bl
mov dword [eax + 0xb4], ebx
mov esi, eax
jmp 0x456288
xor esi, esi
mov eax, dword [0x4f8020]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebx
jne 0x4562b2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x14]
push 0x4d6d10
push ecx
mov dword [esp + 0x1c], eax
call fcn.0048c884
push 8
call fcn.004a64f5
add esp, 4
mov edi, eax
push 0x4f8028
mov dword [edi], esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edx, dword [0x4f8024]
push 0x4f8028
mov dword [edi + 4], edx
mov dword [0x4f8024], edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
mov eax, dword [esi + 4]
inc eax
mov dword [esi + 4], eax
mov dword [ebp], ebx
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x45d1d0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x45d200
push esi
call fcn.00466b60
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x45d1f9
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x45d283
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x45d26f
mov eax, dword [esi + 8]
test eax, eax
je 0x45d224
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45d26b
cmp eax, 2
je 0x45d26f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45d217
cmp eax, 3
je 0x45d24a
cmp eax, 1
jne 0x45d217
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45d217
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45d217
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0045d2b0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x45d2a3
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.0045d2b0
add esp, 4
pop esi
ret
Function at 0x49f680
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0048d4b0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x49f74b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x49f74b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x49f6fe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x49f709
or bh, 8
and edi, 0x8000000
je 0x49f724
mov eax, dword [0x5082dc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x49f74b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49fb20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov edi, eax
test edi, edi
jne 0x49fb4b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov esi, eax
test esi, esi
jne 0x49fb6f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x49fb8a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x4a3566
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a359e
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.004a63cd
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a63a5
jmp 0x4a35aa
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4a4d2b
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 0x4a4d6d
call fcn.004ac071
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x4a4d6d
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x4a4d64
xor eax, eax
jmp 0x4a4d75
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a4d7b
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a66e1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4a6703
cmp dword [edi + 0x3c], 0
jne 0x4a6703
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004ac071
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004a6730
pop edi
pop esi
pop ebx
ret 8
Function at 0x1000b197
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ecx
test si, si
jne 0x1000b24c
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1000b24c
mov edx, dword [esi + 0x3c]
test dl, 3
jne 0x1000b24c
cmp dword [edx + esi], 0x4550
jne 0x1000b24c
cmp dword [edx + esi + 0x74], 6
jb 0x1000b24c
push ebx
mov ebx, dword [edx + esi + 0x50]
push edi
mov edi, dword [edx + esi + 0xa8]
lea eax, [ebx - 1]
lea ecx, [edi - 1]
cmp ecx, eax
jae 0x1000b24a
mov eax, dword [edx + esi + 0xac]
mov ecx, ebx
sub ecx, edi
cmp eax, ecx
ja 0x1000b24a
xor edx, edx
add edi, esi
push 0x1c
pop ecx
div ecx
mov edx, eax
test edx, edx
je 0x1000b24a
imul ecx, edx, 0x1c
add ecx, 0x14
add ecx, edi
lea ecx, [ecx - 0x1c]
dec edx
cmp dword [ecx - 8], 2
lea edi, [ecx - 0x14]
jne 0x1000b228
cmp dword [ecx], ebx
jae 0x1000b228
mov eax, ebx
sub eax, dword [ecx]
cmp dword [ecx - 4], eax
jbe 0x1000b22e
test edx, edx
jne 0x1000b20e
jmp 0x1000b24a
push 0x1c
push edi
call dword [sym.imp.kernel32.dll_VirtualLock]
test eax, eax
je 0x1000b24a
mov eax, dword [edi + 0x14]
push dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.kernel32.dll_VirtualLock]
pop edi
pop ebx
pop esi
ret

Function at 0x1000c446
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x1000c455
pop dword [ebp - 0x30]
mov eax, 0x75e46ef1
add eax, 0x9a1c5564
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x36609
push 0
mov eax, 0x98a7fdf2
add eax, 0x77594272
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x73f21b52
sub ecx, 0x73f1ddb7
xor esi, esi
add esi, eax
mov edx, 0x282883cf
add edx, 0xe7d90231
add edx, dword [ebp - 0x30]
mov edi, 0xdbeb3bd5
sub edi, 0x48fb769e
sub dword [ebp - 4], 0x221a1d18
mov ebx, dword [edx]
add dword [ebp - 0x20], 0xc0b84f91
xor ebx, edi
sub dword [ebp - 0x2c], 0x750390bd
mov dword [esi], ebx
sub dword [ebp - 0x24], 0x589f307d
add esi, 0xa84ae993
sub esi, 0xa84ae98f
add edx, 0x52582086
add edx, 0xada7df7e
loop 0x1000c4b6
add eax, 0x88ade84e
add eax, 0x775300f1
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xff0589d5
add ecx, 0x10fa762b
add ecx, dword [ebp - 0x30]
call ebx
leave
ret