joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477cc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49e6a0
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00497cea
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x477cf3
xor al, al
jmp 0x477e1f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x477d15
xor al, al
jmp 0x477e1f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x477d28
xor al, al
jmp 0x477e1f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x477d3c
xor al, al
jmp 0x477e1f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.0048bede
test eax, eax
jne 0x477d70
xor al, al
jmp 0x477e1f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x6c5e44
mov dword [esp + 0x20], ebp
call fcn.00497cea
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.00494a39
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.00494a90
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x477e04
mov ax, word [ebx]
test ax, ax
je 0x477df6
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.00477e40
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x477dda
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.00494a90
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x478380
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.004960e9
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x4783c6
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.0047c818
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x6dfdbc
push ecx
call fcn.0047e220
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x4784c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x478526
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x478526
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x478507
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4788b0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4788e8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x479560
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4795a9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x479a20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49e960
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004795d0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00479650
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00479650
lea ecx, [esi + 0xc]
call fcn.0048dba4
lea ecx, [esi + 0x10]
call fcn.0048dba4
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0047abe0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0047abe0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0047abe0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0048dc19
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0048dc19
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x48fff9
Capabilities:
Get graphical window text

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

Function at 0x4917f3
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 0x491835
call fcn.00497cea
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x491835
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49182c
xor eax, eax
jmp 0x49183d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00491843
pop edi
pop esi
pop ebx
ret 4

Function at 0x49821a
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 0x498248
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x498266
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00498180
jmp 0x498266
mov eax, dword [esi + 0x14]
test eax, eax
je 0x498266
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00498180
test edi, edi
mov eax, edi
jne 0x498250
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x4ca248
Capabilities:
Encode data using xor

Disassembly:
push 0x4c9fca
pop ebx
inc eax
call fcn.004ca278
sub esi, 0xb97360f1
and eax, esi
xor dword [ecx], ebx
add eax, 0x6b91b817
inc ecx
add eax, esi
cmp ecx, edi
jne fcn.004ca248
add esi, 0x59ecc70e
ret
Function at 0x411dc0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x473bf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.00411ee0
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0x490578
call fcn.004337a1
mov ecx, dword [0x47885c]
mov al, byte [esi]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.00404370
mov esi, vtable.std::runtime_error.0
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x411e67
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x411e5e
cmp al, 0xff
je 0x411e5e
dec al
mov byte [ecx], al
jmp 0x411e67
push ecx
call fcn.00463d26
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.0045cb20
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x411ead
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x411ea4
cmp al, 0xff
je 0x411ea4
dec al
mov byte [ecx], al
jmp 0x411ead
push ecx
call fcn.00463d26
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00433828
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x412e30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x310
push ebx
mov ebx, dword [ecx + 0xe50]
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 0x3a
mov dword [esp + 0x18], 0x32
mov dword [esp + 0x1c], 0x2a
mov dword [esp + 0x20], 0x22
mov dword [esp + 0x24], 0x1a
mov dword [esp + 0x28], 0x12
mov dword [esp + 0x2c], 0xa
mov dword [esp + 0x30], 2
mov dword [esp + 0x34], 0x3c
mov dword [esp + 0x38], 0x34
mov dword [esp + 0x3c], 0x2c
mov dword [esp + 0x40], 0x24
mov dword [esp + 0x44], 0x1c
mov dword [esp + 0x48], 0x14
mov dword [esp + 0x4c], 0xc
mov dword [esp + 0x50], 4
mov dword [esp + 0x54], 0x3e
mov dword [esp + 0x58], 0x36
mov dword [esp + 0x5c], 0x2e
mov dword [esp + 0x60], 0x26
mov dword [esp + 0x64], 0x1e
mov dword [esp + 0x68], 0x16
mov dword [esp + 0x6c], 0xe
mov dword [esp + 0x70], 6
mov dword [esp + 0x74], 0x40
mov dword [esp + 0x78], 0x38
mov dword [esp + 0x7c], 0x30
mov dword [esp + 0x80], 0x28
mov dword [esp + 0x84], 0x20
mov dword [esp + 0x88], 0x18
mov dword [esp + 0x8c], 0x10
mov dword [esp + 0x90], 8
mov dword [esp + 0x94], 0x39
mov dword [esp + 0x98], 0x31
mov dword [esp + 0x9c], 0x29
mov dword [esp + 0xa0], 0x21
mov dword [esp + 0xa4], 0x19
mov dword [esp + 0xa8], 0x11
mov dword [esp + 0xac], 9
mov dword [esp + 0xb0], 1
mov dword [esp + 0xb4], 0x3b
mov dword [esp + 0xb8], 0x33
mov dword [esp + 0xbc], 0x2b
mov dword [esp + 0xc0], 0x23
mov dword [esp + 0xc4], 0x1b
mov dword [esp + 0xc8], 0x13
mov dword [esp + 0xcc], 0xb
mov dword [esp + 0xd0], 3
mov dword [esp + 0xd4], 0x3d
mov dword [esp + 0xd8], 0x35
mov dword [esp + 0xdc], 0x2d
mov dword [esp + 0xe0], 0x25
mov dword [esp + 0xe4], 0x1d
mov dword [esp + 0xe8], 0x15
mov dword [esp + 0xec], 0xd
mov dword [esp + 0xf0], 5
mov dword [esp + 0xf4], 0x3f
mov dword [esp + 0xf8], 0x37
mov dword [esp + 0xfc], 0x2f
mov dword [esp + 0x100], 0x27
mov dword [esp + 0x104], 0x1f
mov dword [esp + 0x108], 0x17
mov dword [esp + 0x10c], 0xf
mov dword [esp + 0x110], 7
mov dword [esp + 0x114], edi
lea edx, [esp + 0x220]
mov cl, byte [ebx + edi]
mov eax, 7
movsx esi, cl
mov ebp, esi
mov cl, al
sar ebp, cl
add edx, 4
and ebp, 1
dec eax
mov dword [edx - 4], ebp
cmp eax, 0xffffffff
jg 0x4130ce
inc edi
cmp edi, 8
jl 0x4130c3
xor eax, eax
mov ecx, dword [esp + eax + 0x14]
add eax, 4
cmp eax, 0xfc
mov edx, dword [esp + ecx*4 + 0x21c]
mov dword [esp + eax + 0x118], edx
jle 0x4130eb
mov eax, dword [esp + 0x10]
mov ecx, 0x20
lea esi, [esp + 0x11c]
lea edi, [eax + 0xdd0]
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0xd4c]
mov ecx, 0x20
lea esi, [esp + 0x19c]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x310
ret
Function at 0x424bc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4747a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [esp + 0x28]
push ebx
xor ebx, ebx
push esi
push ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], ebx
mov byte [esp + 0x10], al
call fcn.00401660
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], ebx
mov ecx, dword [eax + 4]
cmp ecx, ebx
jne 0x424c05
xor eax, eax
jmp 0x424c0a
mov eax, dword [eax + 8]
add eax, ecx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push edx
push eax
push ecx
lea eax, [esp + 0x20]
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.00424ca0
mov esi, dword [esp + 0x48]
mov dl, byte [esp + 0x28]
add esp, 0x1c
lea ecx, [esp + 0xc]
mov byte [esi], dl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [0x47885c]
push eax
push ebx
push ecx
mov ecx, esi
call fcn.00404370
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x424c88
mov al, byte [ecx - 1]
cmp al, bl
je 0x424c7e
cmp al, 0xff
je 0x424c7e
dec al
mov byte [ecx - 1], al
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
dec ecx
push ecx
call fcn.00463d26
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x432def
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x432e0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004362f7
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x432e32
test byte [esp + 8], 2
je 0x432e32
call fcn.0043636a
mov dword [eax], 0xd
call fcn.00436373
mov dword [eax], 5
jmp 0x432e0b
xor eax, eax
ret

Function at 0x43b1ed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x48dfa0
cmp edx, dword [eax]
je 0x43b20f
add eax, 8
inc ecx
cmp eax, 0x48e030
jl 0x43b200
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x48dfa0]
jne 0x43b33d
mov eax, dword [0x492bd8]
cmp eax, 1
je 0x43b317
test eax, eax
jne 0x43b240
cmp dword [0x48d580], 1
je 0x43b317
cmp edx, 0xfc
je 0x43b33d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43b277
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00438430
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00438520
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x43b2ba
lea eax, [ebp - 0x1a4]
push eax
call fcn.00438520
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x47c6f8
push edi
call fcn.0043ec30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00438430
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00438440
lea eax, [ebp - 0xa0]
push 0x47c6d8
push eax
call fcn.00438440
push dword [esi + 0x48dfa4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00438440
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0043eba1
add esp, 0x2c
pop edi
jmp 0x43b33d
lea eax, [ebp + 8]
lea esi, [esi + 0x48dfa4]
push 0
push eax
push dword [esi]
call fcn.00438520
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 0x457330
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x477460
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.00401660
mov eax, dword [0x47885c]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.00404370
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.00458190
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x4573d7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4573ce
cmp al, 0xff
je 0x4573ce
dec al
mov byte [ecx], al
jmp 0x4573d7
push ecx
call fcn.00463d26
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x457408
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4573ff
cmp al, 0xff
je 0x4573ff
dec al
mov byte [ecx], al
jmp 0x457408
push ecx
call fcn.00463d26
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x460330
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x154
push ebx
push esi
push edi
push ebp
mov edi, dword [esp + 0x168]
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ebx, eax
push edi
and eax, 0x20
and ebx, 0x1f
mov ebp, dword [sym.imp.USER32.dll_GetParent]
mov dword [esp + 0x24], eax
call ebp
mov esi, dword [esp + 0x16c]
push 2
mov dword [esp + 0x20], eax
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
lea eax, [esp + 0x44]
mov ebp, dword [sym.imp.USER32.dll_GetClientRect]
push eax
push edi
call ebp
mov ebp, dword [esp + 0x48]
lea edx, [esp + 0x44]
lea ecx, [esp + 0x34]
mov eax, dword [edx]
push 0
push 0
push 0x31
mov dword [ecx], eax
mov eax, dword [edx + 8]
push edi
mov edx, dword [edx + 0xc]
mov dword [ecx + 4], ebp
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4603c1
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x10], eax
push 0xf
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
call ebp
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0x12
call ebp
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x1c]
push edi
push esi
push 0x135
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
push eax
mov ebp, dword [sym.imp.GDI32.dll_IntersectClipRect]
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
push esi
call ebp
mov ebp, dword [esp + 0x170]
test ebp, 0x10
je 0x460456
cmp ebx, 7
je 0x460456
mov eax, dword [esp + 0x40]
push 0xf00021
sub eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
push eax
push ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_PatBlt]
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
mov dword [esp + 0x28], eax
push 0
push 0
push 0xf2
add byte [eax], al
Function at 0x4612d0
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.00432ed0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x46139b
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 0x46139b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x46134e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x461359
or bh, 8
and edi, 0x8000000
je 0x461374
mov eax, dword [0x4945dc]
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 0x46139b
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 0x461770
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 0x46179b
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 0x4617bf
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 0x4617da
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