joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472692
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4726ca
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.0047071c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004706f4
jmp 0x4726d6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x473d80
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 0x473dc2
call fcn.0047983e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x473dc2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x473db9
xor eax, eax
jmp 0x473dca
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00473dd0
pop edi
pop esi
pop ebx
ret 4

Function at 0x479d6e
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 0x479d9c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x479dba
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00479cd4
jmp 0x479dba
mov eax, dword [esi + 0x14]
test eax, eax
je 0x479dba
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00479cd4
test edi, edi
mov eax, edi
jne 0x479da4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4018b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x11c
push ebx
mov ebx, dword [esp + 0x128]
push ebp
push esi
test ebx, ebx
push edi
je 0x4018c8
mov byte [ebx], 0
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x1c], 5
jb 0x401906
mov ecx, dword [esp + 0x130]
lea edx, [esp + 0xac]
push ecx
push str..Global_s
push edx
jmp 0x40191b
mov eax, dword [esp + 0x130]
lea ecx, [esp + 0xac]
push eax
push str.._s
push ecx
call fcn.004170f2
add esp, 0xc
lea edx, [esp + 0xac]
push 0
push 0x80
push 3
push 0
push 3
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
test ebp, ebp
je 0x401a3c
cmp ebp, 0xffffffff
je 0x401a3c
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push 0
push 0
push 1
push ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4019aa
test ebx, ebx
je 0x401996
mov edi, str.InvalidResponse
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x11c
ret
cmp dword [esp + 0x14], 4
je 0x4019eb
test ebx, ebx
je 0x4019d7
mov edi, str.InvalidResponse
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x11c
ret
cmp dword [esp + 0x10], 0x137
je 0x401a2f
test ebx, ebx
je 0x401a1b
mov edi, str.InvalidResponse
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x11c
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret
test ebx, ebx
je 0x401a62
mov edi, str.OpenFailed
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x11c
ret
Function at 0x402cc0
Capabilities:
Get hostname

Disassembly:
sub esp, 0x100
mov edx, ecx
or ecx, 0xffffffff
xor eax, eax
push ebp
push esi
lea ebp, [edx + 0x80c]
push edi
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ecx
cmp eax, 1
jge 0x402cf0
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x100
ret
cmp eax, 2
jle 0x402d9e
mov cl, byte [ebp]
cmp cl, 0x28
jne 0x402d0f
push ebx
mov bl, byte [eax + edx + 0x80b]
cmp bl, 0x29
pop ebx
je 0x402d22
cmp cl, 0x5b
jne 0x402d9e
cmp byte [eax + edx + 0x80b], 0x5d
jne 0x402d9e
lea ecx, [eax - 2]
lea esi, [edx + 0x80d]
mov edx, ecx
lea edi, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x44af34
and ecx, 3
push 0x44af34
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x12], 0
lea eax, [esp + 0x14]
push eax
call fcn.00421370
lea ecx, [esp + 0x18]
push str.local
push ecx
call fcn.0041cf70
add esp, 0x14
test eax, eax
jne 0x402d9e
lea edx, [esp + 0xc]
push 0x100
push edx
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x402d9e
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x100
ret
Function at 0x407aa0
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
sub esp, 0x4c
push ebx
mov ebx, ecx
push ebp
push esi
test ebx, ebx
push edi
jne 0x407ab1
xor esi, esi
jmp 0x407ab4
mov esi, dword [ebx + 0x1c]
push 0
push str.edit
push 0
push esi
call dword [sym.imp.USER32.dll_FindWindowExA]
mov edi, dword [sym.imp.USER32.dll_GetFocus]
mov ebp, eax
call edi
cmp eax, esi
je 0x407beb
call edi
cmp eax, ebp
je 0x407beb
mov edi, dword [ebx + 0x4c]
test edi, edi
je 0x407beb
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
mov dword [esp + 0x14], ecx
jl 0x407beb
lea eax, [esp + 0x12]
push 2
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edi, [esp + 0x12]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x407beb
test ebp, ebp
je 0x407b47
push ebp
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x407b47
push ebp
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x407b47
push 0
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
test ebx, ebx
jne 0x407b4f
xor eax, eax
jmp 0x407b52
mov eax, dword [ebx + 0x1c]
push 0
push 0
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x20]
push ecx
push 0x3c
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
lea edx, [esp + 0x20]
mov byte [esp + 0x34], 1
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov esi, dword [esp + 0x60]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
push edi
push esi
call ebp
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x50]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x4c]
push 0x24
push ecx
push edx
push eax
push esi
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esp + 0x60]
push ecx
push esi
call ebp
mov edx, dword [esp + 0x18]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x1c]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 8
Function at 0x408cc0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x4c
push ebx
mov ebx, ecx
push esi
push edi
test ebx, ebx
jne 0x408cd0
xor esi, esi
jmp 0x408cd3
mov esi, dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
jne 0x408ce8
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x408dc5
mov edi, dword [ebx + 0x40]
test edi, edi
je 0x408dc5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
mov dword [esp + 0x10], ecx
jl 0x408dc5
lea eax, [esp + 0xe]
push 2
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edi, [esp + 0xe]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x408dc5
push ebp
push eax
push eax
push 0x31
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x20]
push ecx
push 0x3c
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
lea edx, [esp + 0x20]
mov byte [esp + 0x34], 1
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov esi, dword [esp + 0x60]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
push edi
push esi
call ebp
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x48]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x40]
push 0x24
push ecx
push edx
push eax
push esi
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esp + 0x60]
push ecx
push esi
call ebp
mov edx, dword [esp + 0x18]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x1c]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x4c
ret 8

Function at 0x40b2d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push str.Binary
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40b31e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40b31e
mov ecx, dword [esp + 0x18]
push ecx
push ebx
push eax
call fcn.00423760
add esp, 0xc
test eax, eax
jne 0x40b320
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x40ed50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43abcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x258
lea ecx, [esp + 0x30]
call fcn.0040c500
mov ecx, dword [0x450b6c]
mov edx, dword [esp + 0x26c]
xor eax, eax
push 0xc
mov dword [esp + 0x264], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 4]
mov dword [esp + 4], 1
push eax
mov eax, dword [esp + 0x270]
push ecx
push edx
push eax
lea ecx, [esp + 0x44]
call fcn.0040c920
lea ecx, [esp + 0x30]
mov dword [esp + 0x260], 0xffffffff
call fcn.0040c520
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
add esp, 0x264
ret

Function at 0x41d861
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x44d078
cmp edx, dword [eax]
je 0x41d883
add eax, 8
inc ecx
cmp eax, 0x44d108
jl 0x41d874
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x44d078]
jne 0x41d9b1
mov eax, dword [0x452bec]
cmp eax, 1
je 0x41d98b
test eax, eax
jne 0x41d8b4
cmp dword [0x44c5b8], 1
je 0x41d98b
cmp edx, 0xfc
je 0x41d9b1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41d8eb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041dbf0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041c830
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41d92e
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041c830
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4414c8
push edi
call fcn.0041d040
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041dbf0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041dc00
lea eax, [ebp - 0xa0]
push 0x4414a8
push eax
call fcn.0041dc00
push dword [esi + 0x44d07c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041dc00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041f774
add esp, 0x2c
pop edi
jmp 0x41d9b1
lea eax, [ebp + 8]
lea esi, [esi + 0x44d07c]
push 0
push eax
push dword [esi]
call fcn.0041c830
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 0x421a30
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push 0
push ecx
call fcn.00429dc9
add esp, 0xc
ret
Function at 0x421d10
Capabilities:
Get hostname

Disassembly:
mov eax, dword [esp + 0x18]
test eax, eax
je 0x421d1e
mov dword [eax], 0
push ebx
mov ebx, dword [esp + 8]
push ebp
push ebx
call fcn.00422130
mov ebp, dword [esp + 0x28]
add esp, 4
cmp ebp, 0x493e0
mov dword [0x452fc4], 0
jb 0x421d4b
cmp ebp, 0x6ddd00
jbe 0x421d50
mov ebp, 0x36ee80
push esi
push edi
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x11c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebx + 0x130]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov dword [ebx + 0x118], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebx + 0x1e1]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x24]
mov byte [edx], 0
test edi, edi
je 0x421dd8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebx + 0x161]
push 0x80
push eax
mov byte [eax], 0
call sub.WSOCK32.dll_gethostname
lea esi, [ebx + 0x1f4]
push esi
call fcn.00421ae0
push ebx
push 0x421e80
mov dword [ebx], 0
call fcn.00421a30
push ebp
push esi
call fcn.00421b00
mov al, byte [ebx]
add esp, 0x14
test al, 2
pop edi
pop esi
mov dword [ebx], 0
je 0x421e5c
push ebp
push ebx
call fcn.00421fb0
mov ecx, dword [esp + 0x28]
add esp, 8
test ecx, ecx
je 0x421e35
mov dword [ecx], eax
cmp eax, 1
jne 0x421e48
mov eax, dword [ebx]
pop ebp
or al, 1
mov dword [ebx], eax
mov eax, 1
pop ebx
ret
push ebx
mov dword [ebx], 0
call fcn.00422130
add esp, 4
xor eax, eax
pop ebp
pop ebx
ret
push ebx
call fcn.00422130
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x421e73
mov dword [eax], 2
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x422350
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x14]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x10], esi
mov edx, dword [esp + 0x18]
mov eax, edi
sub eax, esi
push ebx
lea ecx, [esi + ebp]
push eax
push ecx
push edx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x42239a
test eax, eax
jl 0x42239a
add esi, eax
cmp esi, edi
jge 0x4223a3
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x2023
mov dword [esp + 0x10], eax
jb 0x422367
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4237e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
test ecx, ecx
jne 0x4237f5
or eax, 0xffffffff
pop esi
mov dword [0x44db10], eax
not eax
ret
mov esi, dword [esp + 0xc]
mov eax, dword [0x44db10]
test esi, esi
je 0x423822
push ebx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x44d710]
xor eax, edx
inc ecx
dec esi
jne 0x423803
pop ebx
mov dword [0x44db10], eax
pop esi
not eax
ret

Function at 0x423a00
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, 0x2000
xor eax, eax
lea edi, [esi + 0x3efc0]
push 0x10000
rep stosd dword es:[edi], eax
lea edi, [esi + 0x1efc0]
mov eax, 0x80
xor ebx, ebx
push edi
push esi
mov dword [esi + 0x28], 0x10
mov dword [esi + 0x2c], 8
mov dword [esi + 0x30], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 8], ebx
call fcn.00423830
add esp, 0xc
cmp eax, 1
mov dword [esi + 0x20], eax
jge 0x423a62
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], ebx
pop edi
pop esi
pop ebx
ret
cmp eax, 0x106
mov dword [esi + 0x1c], ebx
jae 0x423a84
cmp dword [esi + 0x1c], ebx
jne 0x423a84
push esi
call fcn.00423ab0
mov eax, dword [esi + 0x20]
add esp, 4
cmp eax, 0x106
jb 0x423a6c
mov dword [esi + 0xc], ebx
xor eax, eax
mov edx, dword [esi + 0xc]
xor ecx, ecx
mov cl, byte [edi + eax]
and edx, 0x1ff
and ecx, 0x3fff
shl edx, 5
xor ecx, edx
inc eax
cmp eax, 2
mov dword [esi + 0xc], ecx
jb 0x423a89
pop edi
pop esi
pop ebx
ret
Function at 0x429720
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.00417d60
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4297eb
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 0x4297eb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42979e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4297a9
or bh, 8
and edi, 0x8000000
je 0x4297c4
mov eax, dword [0x4545fc]
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 0x4297eb
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 0x429bc0
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 0x429beb
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 0x429c0f
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 0x429c2a
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 0x42cfd5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x42d00d
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.00430341
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00430319
jmp 0x42d019
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x42e67d
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 0x42e6bf
call fcn.00436fcc
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42e6bf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42e6b6
xor eax, eax
jmp 0x42e6c7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042e6cd
pop edi
pop esi
pop ebx
ret 4

Function at 0x437ada
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 0x437b08
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x437b26
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00437a40
jmp 0x437b26
mov eax, dword [esi + 0x14]
test eax, eax
je 0x437b26
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00437a40
test edi, edi
mov eax, edi
jne 0x437b10
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8