joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4492d0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x449303
push esi
call fcn.0044c3e0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4492fc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x449389
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x449372
mov eax, dword [esi + 8]
test eax, eax
je 0x449327
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44936e
cmp eax, 2
je 0x449372
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44931a
cmp eax, 3
je 0x44934d
cmp eax, 1
jne 0x44931a
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 0x44931a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44931a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004493b0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x449398
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004493b0
add esp, 4
pop esi
ret

Function at 0x455320
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4553c3
test eax, eax
jbe 0x4553c3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4553c3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45536e
xor esi, esi
jmp 0x455374
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45539f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00408390
add esi, eax
push esi
mov ebx, esi
call fcn.00408390
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x455380
pop ebp
test edi, edi
pop edi
jne 0x4553c3
test ebx, ebx
je 0x4553c3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004670c0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x455505
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45561d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45561d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004780d6
mov esi, eax
test esi, esi
je 0x45561d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45561d
mov ecx, esi
call fcn.00455470
cmp edi, eax
jge 0x45561d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4555a3
mov dword [esp + 0x34], 1
jmp 0x4555fe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45561d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00454a00
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x45fa20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x45fa6c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x45fa6c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x45fa56
push eax
call ebp
test ax, ax
jl 0x45fa64
inc esi
add edi, 4
cmp esi, 6
jb 0x45fa48
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.0045f720
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x463620
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x463680
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x463680
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x463680
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x463680
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x463690
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x478a7a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x478ab2
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.00476b31
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00476b09
jmp 0x478abe
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47a168
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 0x47a1aa
call fcn.0047feaa
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47a1aa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47a1a1
xor eax, eax
jmp 0x47a1b2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047a1b8
pop edi
pop esi
pop ebx
ret 4

Function at 0x4803da
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 0x480408
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x480426
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00480340
jmp 0x480426
mov eax, dword [esi + 0x14]
test eax, eax
je 0x480426
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00480340
test edi, edi
mov eax, edi
jne 0x480410
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4013b0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x427c91
push eax
mov eax, 0x188c
mov dword fs:[0], esp
call fcn.0040d290
mov eax, dword [0x433720]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov ecx, 0x5db
xor eax, eax
lea edi, [esp + 0x12d]
mov byte [esp + 0x12c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], bl
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18b8]
lea edx, [esp + 0x12c]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x18b4]
push ecx
push 0x1770
push edx
push eax
mov dword [esp + 0x18b4], ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
xor eax, eax
cmp byte [esp + eax + 0x12c], bl
jne 0x40144e
cmp byte [esp + eax + 0x12d], bl
je 0x401456
inc eax
cmp eax, 0x1770
jl 0x40143c
mov esi, dword [esp + 0x18ac]
lea edi, [eax + 1]
push 0xffffffffffffffff
push ebx
mov ecx, esi
mov dword [esp + 0x28], edi
call fcn.0041bf0f
mov ebp, dword [esp + 0x18b0]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.0041bf0f
xor eax, eax
cmp edi, ebx
mov dword [esp + 0x18], eax
jle 0x40156f
mov ecx, dword [esp + 0x14]
mov al, byte [esp + eax + 0x12c]
mov byte [esp + ecx + 0x28], al
inc ecx
cmp al, bl
mov dword [esp + 0x14], ecx
jne 0x40155a
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041deaa
mov edx, dword [esp + 0x10]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov eax, dword [edx - 8]
mov dword [esp + 0x14], ebx
cmp eax, ebx
je 0x40155a
push 0x4330c0
lea ecx, [esp + 0x14]
call fcn.0041b785
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.0041b6eb
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x18ac], 1
call fcn.0041c058
lea ecx, [esp + 0x1c]
mov byte [esp + 0x18a4], bl
call fcn.0041dd21
push 0x4330c0
lea ecx, [esp + 0x14]
call fcn.0041b785
inc eax
lea ecx, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0041b632
mov ecx, dword [ebp + 8]
push eax
push ecx
mov ecx, ebp
mov byte [esp + 0x18ac], 2
call fcn.0041c058
lea ecx, [esp + 0x24]
mov byte [esp + 0x18a4], bl
call fcn.0041dd21
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x40148d
mov esi, dword [esi + 8]
lea ecx, [esp + 0x10]
mov dword [esp + 0x18a4], 0xffffffff
call fcn.0041dd21
mov ecx, dword [esp + 0x189c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1898
ret
Function at 0x4015b0
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x427cb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
push edi
mov dword [esp + 0x24], 0
call fcn.00424b67
mov esi, dword [eax + 0xc]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
and ecx, 0xffff
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40161d
lea ecx, [esp + 0x34]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041dd21
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40165a
lea ecx, [esp + 0x34]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041dd21
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
lea ecx, [esp + 0xc]
call fcn.0041e209
mov edx, dword [esp + 0x34]
push 0
push 0x1001
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.0041e31b
push ebp
push esi
lea ecx, [esp + 0x14]
call fcn.0041e472
lea ecx, [esp + 0xc]
call fcn.0041e536
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.0041e25e
lea ecx, [esp + 0x34]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041dd21
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x4016d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebp
push esi
push edi
call fcn.00424b67
mov esi, dword [eax + 0xc]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
and ecx, 0xffff
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4016fe
pop edi
pop esi
pop ebp
pop ecx
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40171b
pop edi
pop esi
pop ebp
pop ecx
ret
push ebx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
lea eax, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [esp + 0x10]
push 0
push ecx
call fcn.00404bf0
mov edx, dword [esp + 0x28]
add esp, 8
push ebx
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret
Function at 0x401900
Capabilities:
Access peb ldr_data
Create process on windows
Get common file path
Self delete
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x427db0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, dword [esp + 0x28]
push pe_nt_image_headers32
push pe_nt_image_headers32
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0
call fcn.0041e12a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
call fcn.0041e179
mov eax, dword [0x433720]
mov dword [esp + 4], eax
push pe_nt_image_headers32
lea ecx, [esp + 8]
mov byte [esp + 0x24], 1
call fcn.0041e12a
push eax
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call fcn.0041e179
lea ecx, [esp + 4]
push str.newyx.bat
lea edx, [esp + 0xc]
push ecx
push edx
call fcn.0041dfb6
mov eax, dword [eax]
push 0x433130
push eax
call fcn.0040d43d
add esp, 8
lea ecx, [esp + 8]
mov esi, eax
call fcn.0041dd21
test esi, esi
je 0x401af0
push esi
push str._echo_off_n
call fcn.0040d3be
push esi
push str.ping__n_2_127.0.0.1_nul_n
call fcn.0040d3be
add esp, 0x10
lea eax, [esp + 0x28]
lea ecx, [esp + 0xc]
push eax
push str.del__f__q
push ecx
call fcn.0041e02a
push str.newyxmodule.exe_n
lea edx, [esp + 0xc]
push eax
push edx
mov byte [esp + 0x2c], 2
call fcn.0041dfb6
mov eax, dword [eax]
push esi
push eax
call fcn.0040d3be
add esp, 8
lea ecx, [esp + 8]
call fcn.0041dd21
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 1
call fcn.0041dd21
lea eax, [esp + 0x28]
lea ecx, [esp + 0x14]
push eax
push str.move
push ecx
call fcn.0041e02a
push str.newyxupdate.exe
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x2c], 3
call fcn.0041dfb6
lea ecx, [esp + 0x28]
lea edx, [esp + 8]
push ecx
push eax
push edx
mov byte [esp + 0x2c], 4
call fcn.0041df50
push str.newyxmodule.exe_n
push eax
lea eax, [esp + 0x14]
mov byte [esp + 0x28], 5
push eax
call fcn.0041dfb6
mov eax, dword [eax]
push esi
push eax
call fcn.0040d3be
add esp, 8
lea ecx, [esp + 0xc]
call fcn.0041dd21
lea ecx, [esp + 8]
mov byte [esp + 0x20], 4
call fcn.0041dd21
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 3
call fcn.0041dd21
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call fcn.0041dd21
push esi
push str.del__0
call fcn.0040d3be
push esi
call fcn.0040d341
add esp, 0xc
push str.newyx.bat
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.0041dfb6
mov eax, dword [eax]
push 0
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x14]
call fcn.0041dd21
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403260
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x427ef0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
test eax, eax
mov esi, ecx
je 0x40336e
mov dword [esi + 0x80], 0xffffffff
mov eax, dword [0x433720]
push edi
mov dword [esp + 0x1c], eax
push pe_nt_image_headers32
push pe_nt_image_headers32
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0
call fcn.0041e12a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
call fcn.0041e179
push 0x5c
lea ecx, [esp + 0x20]
call fcn.0041b763
inc eax
lea ecx, [esp + 8]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.0041b6eb
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 1
call fcn.0041de5a
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call fcn.0041dd21
mov eax, dword [esi + 0x94]
lea edi, [esi + 0x94]
push eax
mov ecx, esi
call fcn.00403970
test eax, eax
jne 0x403349
lea edx, [esp + 0x1c]
push edi
lea eax, [esp + 0xc]
push edx
push eax
call fcn.0041df50
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax]
push 5
push ecx
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 8]
call fcn.0041dd21
jmp 0x40335c
push 0
push 0x433428
push 0x43341c
mov ecx, esi
call fcn.004202a5
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.0041dd21
pop edi
push 0
mov ecx, esi
call fcn.004214bf
push esi
call fcn.00401d10
mov ecx, dword [esp + 8]
mov dword [esi + 0x84], 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x403970
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x427f66
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
mov eax, dword [esp + 0x140]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x14]
call fcn.0041dd8f
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x144], ebx
call fcn.0041e1c1
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0x128
push ebx
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
je 0x403a9d
lea ecx, [esp + 0x14]
push ecx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x403a96
lea edx, [esp + 0x38]
lea ecx, [esp + 0xc]
push edx
call fcn.0041dd8f
lea ecx, [esp + 0xc]
mov byte [esp + 0x144], 1
call fcn.0041e1c1
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
call fcn.0041b785
cmp eax, edi
jne 0x403a6f
lea ecx, [esp + 0xc]
mov byte [esp + 0x144], bl
call fcn.0041dd21
lea ecx, [esp + 0x14]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x403a96
lea edx, [esp + 0x38]
lea ecx, [esp + 0xc]
push edx
call fcn.0041dd8f
lea ecx, [esp + 0xc]
mov byte [esp + 0x144], 1
call fcn.0041e1c1
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
call fcn.0041b785
cmp eax, edi
je 0x403a1f
lea ecx, [esp + 0xc]
mov byte [esp + 0x144], bl
call fcn.0041dd21
lea ecx, [esp + 0x10]
mov dword [esp + 0x144], edi
call fcn.0041dd21
mov eax, 1
jmp 0x403aaf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x144], edi
call fcn.0041dd21
xor eax, eax
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x13c
ret 4
Function at 0x41af90
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.0040d290
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41b05b
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 0x41b05b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41b00e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41b019
or bh, 8
and edi, 0x8000000
je 0x41b034
mov eax, dword [0x43adfc]
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 0x41b05b
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 0x41b430
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 0x41b45b
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 0x41b47f
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 0x41b49a
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