joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4192a0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x490838
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x4b3880]
push esi
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x24], 0
mov dword [esp + 8], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x2c], 1
call fcn.004188b0
add esp, 8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call fcn.0046e59e
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call fcn.0046e465
mov edx, dword [esp + 8]
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [esp + 0x2c]
mov esi, eax
test edi, edi
jne 0x41932f
call fcn.00418c70
cmp esi, 0xffffffff
je 0x419373
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x1c]
push 4
push ecx
push esi
call edi
test eax, eax
je 0x41936a
cmp dword [esp + 0x14], 0x1a
jne 0x41936a
lea edx, [esp + 0x18]
push 0
push edx
push 0x1a70
push 0x4b9ac0
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4193af
test edi, edi
jne 0x419392
push ecx
lea eax, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.0046e1da
call fcn.004189c0
add esp, 4
jmp 0x4193af
push 0
push 0x24
push str.Creating_new_configuration_nWould_you_like_to_keep_existing_settings_n_Answering_NO_will_create_a_default_settings_
call fcn.00478f38
cmp eax, 7
jne 0x4193aa
call fcn.00418c70
call fcn.004193e0
lea ecx, [esp + 8]
mov byte [esp + 0x24], 0
call fcn.0046e465
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.0046e465
mov ecx, dword [esp + 0x1c]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x20
ret

Function at 0x4193e0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x490858
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
call fcn.00484fcd
mov eax, dword [0x4b3880]
mov dword [esp + 0x10], 0x1a
mov dword [esp + 8], eax
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x28], 0
call fcn.004188b0
add esp, 8
lea ecx, [esp + 0xc]
call fcn.0046e465
mov eax, dword [esp + 8]
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x18]
mov esi, eax
push 4
push edx
push esi
call edi
lea eax, [esp + 0x14]
push 0
push eax
push 0x1a70
push 0x4b9ac0
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.0046e465
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4212b8
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x491290
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
lea eax, [esi + 0x3b8]
push eax
call fcn.0046e1da
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0
call fcn.0046e93a
push 0x4ae940
lea ecx, [esp + 0xc]
call fcn.00467067
cmp eax, 0xffffffff
je 0x42131c
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x10]
call fcn.00466fcd
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.0046e59e
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.0046e465
push str..PRJ
lea ecx, [esp + 0xc]
call fcn.0046e7cd
mov edx, dword [esp + 8]
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [esi + 0x3bc], 0
cmp edi, 0xffffffff
je 0x4213b6
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x20]
push 4
push ecx
push edi
call ebp
test eax, eax
je 0x4213ae
cmp dword [esp + 0x18], 0x1a
jne 0x4213ae
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esi + 0x29400]
push 4
push eax
push edi
call ebp
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esi + 0x3c0]
push 0x29040
push edx
push edi
call ebp
mov dword [esi + 0x3bc], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.0046e465
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x4236d0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
mov esi, ecx
mov dword [0x691b64], 1
call fcn.00423640
push 0x3f7
mov ecx, esi
call fcn.0046d866
push 1
mov ecx, esi
mov edi, eax
call fcn.0046cd7e
mov dword [0x691b50], edi
mov dword [0x691b58], esi
mov eax, dword [esi + 0x3d0]
lea ecx, [esp + 8]
mov dword [0x691b5c], eax
mov edx, dword [esi + 0x134]
push ecx
push 0
push edx
push 0x4231f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42373c
pop edi
xor eax, eax
pop esi
pop ecx
ret
push 2
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00423040
mov eax, dword [0x691b64]
test eax, eax
jne 0x42374c
mov ecx, esi
call fcn.00423640
pop edi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x424600
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.00484fcd
mov eax, dword [eax + 8]
xor ecx, ecx
mov cx, word [ebp + 4]
push str.PROTECTION
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4246df
call fcn.00484fcd
mov eax, dword [eax + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
call fcn.00484fcd
mov eax, dword [eax + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test edi, edi
mov ebx, eax
je 0x4246d1
test ebx, ebx
je 0x4246d1
mov eax, dword [ebp + 8]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
cmp esi, 0xffffffff
jmp 0x424695
lea edx, [esp + 0x14]
push edx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, dword [esp + 0x10]
jmp 0x4246c6
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
push 0
push 0
push str.Error_9___Corrupt_resources__Contact_QARM_Pty_Ltd.
call fcn.00478f38
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x428a70
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
lea eax, [esp + 4]
push edi
mov dword [0x692570], 1
mov byte [0x692368], 0
mov dword [0x692364], esi
mov ecx, dword [esi + 0x134]
push eax
push 0
push ecx
push 0x4287c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, 0xffffffff
jne 0x428ab6
pop edi
xor eax, eax
pop esi
pop ecx
ret
push 2
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00423040
mov eax, dword [0x692570]
test eax, eax
jne 0x428ac6
pop edi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x42e69d
Capabilities:
Encode data using xor

Disassembly:
enter 0x190, 0
mov dword [ebp - 0x60], ebx
cmp word [ebx + 0x16], 0
je 0x42e83c
push eax
push ebx
push ecx
push edx
push esi
push edi
push ebp
push es
push ds
push es
push ss
pop es
lea edi, [ebp - 0x160]
mov esi, ebx
mov ecx, 0x40
cld
rep movsd dword es:[edi], dword [esi]
pop es
mov dx, word [ebx + 0x1e]
mov cx, word [ebx + 0x16]
mov ebx, dword [ebx + 0x12]
mov word [ebp - 0x3c], cx
mov word [ebp - 0x3a], dx
mov dword [ebp - 4], ebx
mov word [ebp - 0x38], 0
mov eax, dword [ebx]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x28], eax
lea esi, [ebp - 0x54]
call fcn.0042e855
jb 0x42e6ff
jmp 0x42e753
cmp ax, 4
jne 0x42e846
mov ecx, 6
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
lea ebx, [ebp - 0x30]
mov dx, word [ebp - 0x3a]
push ecx
call fcn.0042e88d
pop ecx
jb 0x42e846
add word [ebp - 0x38], ax
mov eax, dword [ebp - 0x30]
lea ebx, [ebp - 0x3c]
mov edi, ecx
shl edi, 2
neg edi
mov dword [ebx + edi], eax
mov eax, dword [ebp - 0x28]
xor eax, dword [ebp - 0x30]
xor eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
loop 0x42e70e
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
mov dword [ebx], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 4], eax
mov ax, word [ebp - 0x3c]
dec ax
je 0x42e81d
cmp ax, 0x1fff
jg 0x42e81d
mov word [ebp - 0x3c], ax
add dword [ebp - 4], 8
mov ebx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x28], eax
mov ecx, 6
mov ax, word [ebp - 0x28]
push ax
xor ah, al
mov dx, word [ebp - 0x26]
mov si, dx
xor dl, dh
lea ebx, [ebp - 0x3c]
mov edi, ecx
shl edi, 2
neg edi
xor ax, word [ebx + edi]
inc edi
inc edi
xor dx, word [ebx + edi]
mov word [ebp - 0x28], ax
mov word [ebp - 0x26], dx
lea ebx, [ebp - 0x28]
mov ax, word [ebx + 1]
add al, ah
inc al
rol al, 2
mov byte [ebx + 1], al
mov dx, ax
mov ax, word [ebx]
add al, ah
rol al, 2
mov byte [ebx], al
mov ax, dx
add al, ah
rol al, 2
mov ah, al
add ah, byte [ebx + 3]
inc ah
rol ah, 2
mov word [ebx + 2], ax
mov eax, dword [ebp - 0x2c]
xor dword [ebp - 0x28], eax
pop ax
mov word [ebp - 0x2c], ax
mov word [ebp - 0x2a], si
loop 0x42e792
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
mov dword [ebx], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 4], eax
dec word [ebp - 0x3c]
jne 0x42e77b
pop ds
pop es
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
mov ax, word [ebp - 0x38]
cmp al, 2
jge 0x42e832
xor al, al
jmp 0x42e836
cmp al, 0x34
jle 0x42e83c
mov ax, 7
jmp 0x42e840
mov ax, 0
mov word [ebx + 0x1a], ax
leave
ret
pop ds
pop es
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
mov ax, 7
jmp 0x42e840
Function at 0x430782
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4307af
xor eax, eax
jmp 0x430800
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
push eax
call fcn.0043054a
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4307d2
xor eax, eax
jmp 0x430800
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4307f8
xor eax, eax
jmp 0x430800
mov eax, dword [ebp - 8]
jmp 0x430800
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43083c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push edi
push eax
push ebx
push ecx
mov edi, dword [ebp + 8]
cld
mov ecx, 0x58
mov dx, word [ebp + 0xc]
mov bx, dx
rol bx, 1
xor bh, bl
ror bx, 1
ror bx, 1
rol bl, 1
ror bh, 1
xor bh, bl
not bx
xor word ds:[edi], bx
add bx, 0x55
inc edi
inc edi
loop 0x430864
pop ecx
pop ebx
pop eax
pop edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433810
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x433868
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x4b85e8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43385b
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x43386a
xor eax, eax
pop esi
leave
ret 4

Function at 0x433870
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
jne 0x433889
xor eax, eax
pop edi
ret
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll__llseek]
push esi
push 2
push 0
push edi
call ebp
xor esi, esi
mov ebx, eax
push esi
push esi
push edi
shr ebx, 2
call ebp
test ebx, ebx
jbe 0x4338c2
mov ebp, dword [sym.imp.KERNEL32.dll__lread]
lea ecx, [esp + 0x14]
push 4
push ecx
push edi
call ebp
mov ecx, dword [esp + 0x14]
xor esi, ecx
dec ebx
jne 0x4338af
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
xor esi, dword [esp + 0x18]
jne 0x4338d2
or esi, 0xffffffff
mov eax, esi
pop esi
pop ebp
pop ebx
pop edi
ret

Function at 0x44bd50
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x10c
mov edx, dword [esp + 0x110]
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0xd00]
mov ebp, dword [esi + 0x94]
push eax
lea eax, [esp + 0x9c]
push 0x7f
push eax
push 0x4b7e74
push edx
push ecx
call edi
cmp eax, 0x7f
ja 0x44be25
mov eax, dword [str.godzilla]
mov ecx, dword [0x4b7e7c]
mov esi, dword [esi + 0xb0]
mov dl, byte [0x4b7e80]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
push esi
lea eax, [esp + 0x1c]
mov byte [esp + 0x18], dl
push 0x7f
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0xa4]
push ecx
push edx
push str.Colors
call edi
cmp eax, 0x7f
ja 0x44be25
push ebx
lea esi, [esp + 0x1c]
lea eax, [esp + 0x10]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x44be0c
test cl, cl
je 0x44be08
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x44be0c
add eax, 2
add esi, 2
test cl, cl
jne 0x44bde4
xor eax, eax
jmp 0x44be11
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
pop ebx
je 0x44be25
lea eax, [esp + 0x18]
push eax
call fcn.0044c1c0
add esp, 4
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x10c
ret 4
Function at 0x44cf60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x8000
call fcn.0044a730
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x44cf87
pop edi
pop esi
pop ebp
mov eax, 0x5833
pop ebx
pop ecx
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call edi
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x40]
test eax, eax
je 0x44cfa3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44cfe5
push ebp
call fcn.0043c54c
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x44cffb
push eax
mov ecx, esi
call fcn.0044a460
mov dword [esi + 0x1c], 0
push 0x7fff
push ebp
push ebx
mov ecx, esi
call fcn.0044ccc0
mov edi, eax
test edi, edi
je 0x44d040
push 0x20
mov ecx, esi
call fcn.00449ec0
push ebx
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebp
call fcn.0043c54c
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x44d053
push 0x20
mov ecx, esi
call fcn.00449ec0
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x44d06e
test al, 1
je 0x44d06e
mov dword [esi + 0x58], 1
mov eax, dword [esi + 0x70]
test eax, eax
jne 0x44d07e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x44d081
mov dword [esi + 0x40], ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edx, dword [esi + 0x1c]
mov ecx, esi
push edx
call fcn.00449e30
push ebp
mov dword [esi + 0x50], eax
call fcn.0043c54c
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x45d1d0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x144]
mov ebx, eax
mov eax, dword [esi + 0x124]
test eax, eax
je 0x45d260
mov eax, dword [esi + 0x12c]
test eax, eax
je 0x45d260
mov edx, dword [esi + 0x12c]
mov ecx, dword [esi + 0x128]
mov eax, dword [esi + 0x124]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x130]
mov dword [esp + 0x1c], ecx
push ecx
push eax
mov ecx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
call fcn.0044ae40
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
push eax
push ecx
mov ecx, ebx
call fcn.0044ae40
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, ebx
call fcn.00462320
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x28], ebp
jne 0x45d26e
pop esi
pop ebp
mov eax, 0x5833
pop ebx
add esp, 0x14
ret 8
push edi
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
not ecx
dec ecx
push edx
mov edi, ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x45d338
call dword [sym.imp.USER32.dll_EmptyClipboard]
add edi, 0x20
push edi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
mov edi, str.SECEdit_Column_Block
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, ebp
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 [ebx + 0x44]
test ecx, ecx
jle 0x45d2ec
mov cl, byte [ebx + eax + 0x48]
mov byte [eax + ebp + 0x16], cl
mov ecx, dword [ebx + 0x44]
inc eax
cmp eax, ecx
jl 0x45d2dc
mov edi, dword [esp + 0x2c]
mov byte [eax + ebp + 0x16], 0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ebp, dword [esp + 0x2c]
push ebp
call fcn.0043c54c
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x465d20
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.0043cb20
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x465deb
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 0x465deb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x465d9e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x465da9
or bh, 8
and edi, 0x8000000
je 0x465dc4
mov eax, dword [0x6968dc]
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 0x465deb
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 0x4661c0
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 0x4661eb
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 0x46620f
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 0x46622a
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