joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462d70
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x10
movzx eax, byte [esi + 4]
push ebp
mov ebp, dword [esp + 0x18]
add eax, 0xfffffff7
push edi
mov dword [esp + 8], CreateStatusWindowA
cmp eax, 8
ja case.0x462d91.12
jmp dword [eax*4 + 0x462e90]
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x19f
push eax
call edi
cmp eax, 0xffffffff
je 0x462e3e
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push eax
push 0x198
push edx
call edi
jmp 0x462e3e
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0xffffffffffffffff
push 0x100c
push eax
call edi
cmp eax, 0xffffffff
je 0x462e3e
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push eax
push 0x100e
push edx
mov dword [esp + 0x18], 2
call edi
jmp 0x462e3e
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 9
push 0x110a
push eax
call edi
test eax, eax
je 0x462e3e
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push 1
push 0x1104
push edx
mov dword [esp + 0x18], eax
call edi
jmp 0x462e3e
mov ecx, dword [esi]
lea eax, [esp + 8]
push eax
push 0
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esp + 8], 0x80000000
jne 0x462e58
mov eax, dword [esi]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x462e6a
mov edx, dword [esi]
push 2
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [ebp], eax
mov eax, dword [esp + 0x14]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax + ecx + 2]
pop edi
mov dword [ebp + 4], ecx
pop ebp
add esp, 0x10
ret 4
Function at 0x463440
Capabilities:
Get keyboard layout

Disassembly:
push ecx
push esi
mov esi, eax
mov al, byte [esi]
cmp al, 0x20
je 0x46344e
cmp al, 9
jne 0x463451
inc esi
jmp 0x463444
mov cl, byte [esi]
test cl, cl
jne 0x46345c
xor al, al
pop esi
pop ecx
ret
cmp byte [esi + 1], 0
lea eax, [esi + 1]
jne 0x463478
mov eax, dword [esp + 0xc]
movzx ecx, cl
mov word [eax + 2], cx
mov byte [eax], 0
mov al, 1
pop esi
pop ecx
ret
push ebx
push ebp
push edi
mov edi, dword [esp + 0x18]
push 0x2b
xor bl, bl
push eax
mov byte [edi], 1
mov byte [esp + 0x1b], bl
call fcn.0047fd91
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x463538
lea ecx, [ecx]
lea eax, [ebp - 1]
cmp eax, esi
jbe 0x4634b8
mov cl, byte [eax]
cmp cl, 0x20
je 0x4634b3
cmp cl, 9
jne 0x4634b8
dec eax
cmp eax, esi
ja 0x4634a7
sub eax, esi
lea edi, [eax + 1]
push edi
push str.Ctrl
push esi
call fcn.0047f82b
add esp, 0xc
test eax, eax
jne 0x4634d5
or bl, 1
jmp 0x463503
push edi
push 0x492c6c
push esi
call fcn.0047f82b
add esp, 0xc
test eax, eax
jne 0x4634ed
or bl, 4
jmp 0x463503
push edi
push str.Shift
push esi
call fcn.0047f82b
add esp, 0xc
test eax, eax
jne 0x46356a
or bl, 0x10
lea esi, [ebp + 1]
mov al, byte [esi]
cmp al, 0x20
je 0x463510
cmp al, 9
jne 0x463513
inc esi
jmp 0x463506
cmp byte [esi], 0
je 0x46356a
lea edx, [esi + 1]
push 0x2b
push edx
call fcn.0047fd91
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4634a0
mov edi, dword [esp + 0x18]
mov byte [esp + 0x13], bl
cmp byte [esi + 1], 0
push 0
jne 0x463576
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ebx, eax
movzx eax, byte [esi]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
mov ecx, ebx
lea esi, [esp + 0x13]
call fcn.004115e0
mov bl, byte [esp + 0x13]
movzx ecx, al
mov word [edi + 2], cx
jmp 0x463595
pop edi
pop ebp
mov byte [esp + 0xb], bl
pop ebx
xor al, al
pop esi
pop ecx
ret
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 1
mov ecx, eax
push 0
xor edx, edx
mov eax, esi
call fcn.00411520
movzx edx, al
add esp, 8
mov word [edi + 2], dx
test bl, 1
je 0x46359d
or byte [edi], 8
test bl, 4
je 0x4635a5
or byte [edi], 0x10
test bl, 0x10
je 0x4635ad
or byte [edi], 4
cmp word [edi + 2], 0
pop edi
pop ebp
pop ebx
setne al
pop esi
pop ecx
ret
Function at 0x469080
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10110
call fcn.0048b400
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x46909f
cmp byte [esi], 0
jne 0x4690a4
mov esi, str.ERROR
push 0xfffe
lea eax, [esp + 0x11d]
push 0
push eax
mov byte [esp + 0x124], 0
call fcn.00488100
mov eax, dword [ebp + 8]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x104
push eax
mov byte [esp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
cmp byte [ebx], 0
je 0x46912b
cmp byte [edi], 0
jne 0x4690ef
lea edi, [esp + 0xb]
lea ecx, [esp + 0x10]
push ecx
push 0xffff
lea edx, [esp + 0x120]
push edx
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 1
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x124]
push ecx
mov ecx, dword [0x4a2bd0]
call fcn.0046f180
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
cmp byte [edi], 0
je 0x46914b
lea eax, [esp + 0x10]
push eax
push 0xffff
lea ecx, [esp + 0x120]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
jmp 0x469163
lea edx, [esp + 0x10]
push edx
push 0xffff
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
test eax, eax
je 0x46910a
lea eax, [esp + 0x118]
mov edi, edi
cmp byte [eax], 0
jne 0x46917e
cmp byte [eax + 1], 0
je 0x46910a
mov byte [eax], 0xa
inc eax
jmp 0x469170
Function at 0x4699b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x110
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ebp
push esi
push edi
mov edi, dword [esp + 0x124]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push edi
mov dword [esp + 0x30], 0xff
call ebx
cmp eax, 0x103
je 0x469a77
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [0x49f440]
mov edx, dword [ecx + 0xac]
lea eax, [esp + 0x14]
push eax
or edx, 0x20019
push edx
push 0
lea eax, [esp + 0x2c]
push eax
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x469a84
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004699b0
mov edx, dword [esp + 0x18]
add esp, 4
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x469a84
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
test esi, esi
jne 0x469a84
lea ecx, [esp + 0x18]
push ecx
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push esi
push edi
mov dword [esp + 0x30], 0xff
call ebx
cmp eax, 0x103
jne 0x4699fa
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret

Function at 0x469aa0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, eax
test ebp, ebp
je 0x469bb3
test ebx, ebx
je 0x469aba
cmp byte [ebx], 0
jne 0x469acb
test edi, edi
je 0x469bb3
cmp byte [edi], 0
je 0x469bb3
mov ecx, dword [0x49f440]
mov edx, dword [ecx + 0xac]
lea eax, [esp + 0x14]
push eax
or edx, 0x2001f
push edx
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x469bb8
test edi, edi
je 0x469b34
cmp byte [edi], al
je 0x469b34
push str.ahk_default
push edi
call fcn.0047edc1
add esp, 8
test eax, eax
jne 0x469b16
mov edi, 0x4927f1
mov eax, dword [esp + 0x14]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 0x14]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x469bb8
mov edx, dword [esp + 0x14]
push edx
call fcn.004699b0
mov esi, eax
mov eax, dword [esp + 0x18]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x469bb8
mov eax, 1
test byte [0x4a5ec0], al
jne 0x469b83
or dword [0x4a5ec0], eax
push str.RegDeleteKeyExA
push str.advapi32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4a5ebc], eax
jmp 0x469b88
mov eax, dword [0x4a5ebc]
mov ecx, dword [0x49f440]
mov ecx, dword [ecx + 0xac]
test ecx, ecx
je 0x469ba7
test eax, eax
je 0x469ba7
push 0
push ecx
push ebx
push ebp
call eax
mov esi, eax
jmp 0x469bb8
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
jmp 0x469bb8
mov esi, 0x57
mov ecx, dword [esp + 0x10]
test esi, esi
setne dl
movzx eax, dl
push esi
push eax
push ecx
call fcn.0042ce20
pop edi
pop esi
pop ebp
ret 8
Function at 0x46a1e0
Capabilities:
Clear file content

Disassembly:
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push ebx
push ebp
push edi
mov ecx, esi
call edx
mov ebp, edx
mov ecx, eax
and eax, ebp
cmp eax, 0xffffffff
jne 0x46a1fd
or edi, eax
or ebx, eax
jmp 0x46a218
mov eax, dword [esi + 0x28]
test eax, eax
je 0x46a20c
sub eax, dword [esi + 0x2c]
sub eax, dword [esi + 8]
jmp 0x46a20f
mov eax, dword [esi + 8]
cdq
mov edi, eax
mov ebx, edx
add edi, ecx
adc ebx, ebp
mov ebp, dword [esp + 0x14]
mov edx, dword [esi]
mov eax, dword [esp + 0x10]
mov edx, dword [edx + 0x14]
push 0
push ebp
push eax
mov ecx, esi
call edx
test al, al
je 0x46a26d
mov eax, dword [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x46a26d
cmp ebp, ebx
jg 0x46a251
jl 0x46a24b
cmp dword [esp + 0x10], edi
jae 0x46a251
mov edi, dword [esp + 0x10]
mov ebx, ebp
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push 0
push ebx
push edi
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
pop edi
pop ebp
pop ebx
ret 8
pop edi
or eax, 0xffffffff
pop ebp
or edx, eax
pop ebx
ret 8

Function at 0x46d410
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x148
push edi
test esi, esi
je 0x46d490
cmp byte [esi], 0
je 0x46d490
push 4
push 0x49a0e0
push esi
call fcn.00480eeb
add esp, 0xc
test eax, eax
mov eax, esi
jne 0x46d439
lea eax, [esi + 4]
mov edi, 0x497bc4
call fcn.00408eb0
test eax, eax
je 0x46d473
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x46d490
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x46d469
mov ecx, dword [esp + 8]
mov dword [ebx], ecx
mov al, 1
pop edi
add esp, 0x148
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test ebx, ebx
je 0x46d480
mov dword [ebx], eax
xor edx, edx
cmp eax, 0xffffffff
setne al
pop edi
add esp, 0x148
ret
xor al, al
pop edi
add esp, 0x148
ret

Function at 0x46d6a0
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp], eax
cmp eax, 0xffffffff
jne 0x46d6d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x46d6d4
or eax, 0xffffffff
or edx, 0xffffffff
add esp, 0xc
ret
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0xc
ret

Function at 0x46db00
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.0048b400
push esi
push 0x7fff
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x46db3e
lea edx, [esi + 1]
push edx
lea eax, [esp + 8]
push eax
push edi
call fcn.00487530
add esp, 0xc
mov eax, esi
pop esi
add esp, 0x8000
ret
mov byte [edi], 0
pop esi
add esp, 0x8000
ret
Function at 0x46e360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebp
push esi
push 2
push 0
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebp, dword [esp + 0x20]
mov esi, eax
test esi, esi
je 0x46e479
mov eax, ebp
test ebp, ebp
jns 0x46e394
neg eax
jmp 0x46e3c6
jne 0x46e39b
mov eax, 1
lea ecx, [esp + 0xc]
push ecx
push 0x46e330
push 0xe
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0xffffffff
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov eax, dword [esp + 0x14]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
movzx edx, ax
push 0xe
push edx
push esi
call edi
test eax, eax
je 0x46e469
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
push esi
call ebx
test eax, eax
je 0x46e468
mov ebp, dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call ebp
test eax, eax
je 0x46e464
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
cmp edx, 0xffffffff
jne 0x46e409
mov edx, ecx
cmp ecx, 0xffffffff
jne 0x46e412
mov ecx, dword [esp + 0x30]
push 0
push edx
push ecx
push 1
push eax
call dword [sym.imp.USER32.dll_LookupIconIdFromDirectoryEx]
test eax, eax
je 0x46e464
movzx eax, ax
push 3
push eax
push esi
call edi
mov edi, eax
test edi, edi
je 0x46e464
push edi
push esi
call ebx
test eax, eax
je 0x46e464
push eax
call ebp
mov ebx, eax
test ebx, ebx
je 0x46e464
push 0
push 0
push 0
push 0x30000
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x28]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0xc]
pop edi
test eax, eax
jne 0x46e4ad
test ebp, ebp
jle 0x46e494
mov ecx, dword [esp + 0x1c]
lea eax, [ebp - 1]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconA]
pop esi
pop ebp
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp ebp, 0xffffffff
setge al
dec eax
and eax, ebp
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconA]
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x46ea70
Capabilities:
Write clipboard data

Disassembly:
sub esp, 0xc
push esi
mov esi, eax
cmp byte [esi + 0x17], 0
push edi
mov edi, ecx
jne 0x46ea82
mov esi, dword [esi + 0xc]
cmp byte [edi + 0x17], 0
jne 0x46ea8b
mov edi, dword [edi + 0xc]
mov al, byte [esi + 0x15]
test al, 0x10
je 0x46eb0d
test al, 8
jne 0x46eaf2
mov ecx, dword [esi + 8]
movsx edx, byte [ecx]
mov eax, dword [esi + 0xc]
movsx ecx, byte [eax + ecx - 1]
cmp edx, 0x20
je 0x46eac2
cmp edx, 9
je 0x46eac2
cmp ecx, 0x20
je 0x46eac2
cmp ecx, 9
je 0x46eac2
cmp edx, 0x30
je 0x46eac2
cmp edx, 0x2b
jne 0x46eaf2
mov ecx, dword [esi + 8]
push edi
call fcn.004011f0
test eax, eax
jne 0x46ead7
xor eax, eax
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push 0x10
push eax
push ecx
mov eax, edi
call fcn.004010d0
mov eax, 1
pop edi
pop esi
add esp, 0xc
ret
mov edx, dword [esi + 4]
mov eax, dword [esi]
push 0x18
push edx
push eax
mov eax, edi
call fcn.004010d0
mov eax, 1
pop edi
pop esi
add esp, 0xc
ret
test al, 0x20
je 0x46eb6d
test al, 8
jne 0x46eb49
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push edi
call fcn.004011f0
test eax, eax
je 0x46eacf
fld qword [esi]
push 0x20
fstp qword [esp + 0xc]
mov eax, edi
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push edx
call fcn.004010d0
mov eax, 1
pop edi
pop esi
add esp, 0xc
ret
fld qword [esi]
push 0x28
fstp qword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
mov eax, edi
call fcn.004010d0
mov eax, 1
pop edi
pop esi
add esp, 0xc
ret
test al, 1
je 0x46eb7f
mov ecx, esi
mov edx, edi
pop edi
pop esi
add esp, 0xc
jmp fcn.0046ef50
test al, 2
je 0x46eb9b
mov esi, dword [esi]
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
call eax
push esi
mov eax, edi
call fcn.004123e0
pop edi
pop esi
add esp, 0xc
ret
cmp byte [esi + 0x17], 0
jne 0x46eba6
mov eax, dword [esi + 0xc]
jmp 0x46eba8
mov eax, esi
test byte [eax + 0x15], 4
je 0x46ebb5
mov eax, esi
call fcn.0042d6b0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push edi
call fcn.004011f0
pop edi
pop esi
add esp, 0xc
ret
Function at 0x46ebd0
Capabilities:
Write clipboard data

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi + 8]
dec eax
cmp eax, 4
ja case.default.0x46ebe0
jmp dword [eax*4 + 0x46ec78]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
push edi
call fcn.00412380
pop esi
ret
mov eax, dword [esi + 4]
test eax, eax
je case.default.0x46ebe0
mov ecx, dword [esi]
cmp byte [ecx], 0x30
je 0x46ec13
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
push edi
call fcn.00412380
pop esi
ret
push edi
or eax, 0xffffffff
call fcn.004011f0
test eax, eax
jne 0x46ec22
pop esi
ret
mov esi, dword [esi + 4]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push 0x10
push ecx
push edx
mov eax, edi
call fcn.004010d0
mov eax, 1
pop esi
ret
mov eax, dword [esi]
mov ecx, edi
pop esi
jmp fcn.0046ea70
fld qword [esi]
sub esp, 8
fstp qword [esp]
push edi
call fcn.004123b0
pop esi
ret
mov esi, dword [esi]
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
push esi
mov eax, edi
call fcn.004123e0
pop esi
ret
mov ecx, dword [esi]
push edi
or eax, 0xffffffff
call fcn.004011f0
pop esi
ret
Function at 0x46ef50
Capabilities:
Write clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, edx
cmp byte [esi + 0x17], 0
push edi
mov ebx, ecx
jne 0x46ef6a
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 0
je 0x46ef61
cmp byte [ebx + 0x17], 0
jne 0x46ef73
mov ebx, dword [ebx + 0xc]
mov eax, ebx
call fcn.00401150
cmp byte [esi + 0x17], 1
jne 0x46efcb
cmp esi, ebx
je 0x46f044
mov eax, dword [ebx + 0xc]
push 0
push 1
push eax
push 0
mov ecx, esi
call fcn.0046f180
test eax, eax
jne 0x46efa5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
mov edx, dword [esi + 8]
inc eax
push eax
push ecx
push edx
call fcn.00487530
add esp, 0xc
or byte [esi + 0x15], 1
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 0x4a52b8
call fcn.004041c0
test eax, eax
jne 0x46eff5
push 0x4927f1
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4a4c80
call fcn.0042d140
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
add eax, edi
lea esi, [edi + 4]
mov dword [esp + 0x14], eax
cmp esi, eax
jbe 0x46f055
xor esi, esi
cmp dword [0x4a52d0], esi
je 0x46f044
cmp dword [0x4a52c0], esi
je 0x46f032
mov eax, dword [0x4a52b8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4a52c0], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4a52d0], esi
mov dword [0x4a52b8], esi
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x14]
mov edi, dword [edi]
mov dword [esp + 0x18], edi
test edi, edi
je 0x46f00e
mov ecx, esi
add esi, 4
cmp esi, eax
ja 0x46f00e
mov ebx, dword [ecx]
mov edi, esi
add esi, ebx
cmp esi, eax
ja 0x46f00e
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x46f0c2
test ebx, ebx
je 0x46f0a8
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x46f119
push ebx
push edi
push eax
call fcn.00487530
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edi, esi
mov eax, dword [esp + 0x18]
push ebp
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
lea esi, [edi + 4]
cmp esi, dword [esp + 0x14]
jbe 0x46f051
jmp 0x46f00e
cmp dword [0x4a52d0], 0
je 0x46f0fd
cmp dword [0x4a52c0], 0
je 0x46f0eb
mov ecx, dword [0x4a52b8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4a52c0], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
mov dword [0x4a52d0], eax
mov dword [0x4a52b8], eax
push 0x4927f1
push str.Out_of_memory.
mov ecx, 0x4a4c80
call fcn.0042d140
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
cmp dword [0x4a52d0], esi
je 0x46f157
cmp dword [0x4a52c0], esi
je 0x46f145
mov edx, dword [0x4a52b8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4a52c0], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4a52d0], esi
mov dword [0x4a52b8], esi
push 0x4927f1
push 0x4929ac
mov ecx, 0x4a4c80
call fcn.0042d140
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x46f4b0
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
movzx eax, byte [esi + 0x17]
push edi
cmp eax, 3
ja case.default.0x46f4c3
jmp dword [eax*4 + 0x46f674]
mov eax, esi
call fcn.00401150
cmp dword [0x4a2d94], 0
jne 0x46f594
cmp dword [esi + 0xc], 0
jne 0x46f594
mov edi, dword [esp + 0x14]
cmp dword [0x4a5d20], esi
jne 0x46f4f8
test edi, edi
jne 0x46f555
mov ecx, dword [esi + 0x18]
push 0
lea eax, [esp + 0x13]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x46f551
mov dword [0x4a5d20], 0
test edi, edi
je 0x46f549
mov eax, dword [0x4a2d74]
test eax, eax
je 0x46f53a
mov edx, dword [esi + 0x18]
push edx
push str.An_environment_variable_is_being_accessed__see_NoEnv.
push eax
push 0x4a4c80
xor ecx, ecx
call fcn.0042d580
mov ecx, dword [esi + 0x18]
call fcn.0046db00
pop edi
pop esi
pop ebx
pop ecx
ret 4
dec eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
test edi, edi
je 0x46f585
cmp byte [esi + 0x17], 0
jne 0x46f560
mov eax, dword [esi + 0xc]
jmp 0x46f562
mov eax, esi
test byte [eax + 0x15], 4
je 0x46f56f
mov eax, esi
call fcn.0042d6b0
mov byte [edi], 0
mov dword [0x4a5d20], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov dword [0x4a5d20], esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov edi, dword [esp + 0x14]
mov ebx, dword [esi + 0xc]
test edi, edi
je 0x46f605
test ebx, ebx
jne 0x46f5c6
movzx eax, byte [esi + 0x17]
neg eax
sbb eax, eax
and eax, esi
test byte [eax + 0x15], 4
je 0x46f5ba
mov eax, esi
call fcn.0042d6b0
mov byte [edi], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 8]
cmp edi, ecx
je 0x46f605
cmp ebx, 0x186a0
jae 0x46f5f6
mov al, byte [ecx]
test al, al
je 0x46f5ea
jmp 0x46f5e0
inc ecx
mov byte [edi], al
mov al, byte [ecx]
inc edi
test al, al
jne 0x46f5e0
mov byte [edi], 0
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
push ebx
push ecx
push edi
call fcn.00487530
add esp, 0xc
mov byte [ebx + edi], 0
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
push eax
call fcn.0046f4b0
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov esi, dword [esp + 0x14]
push 0x4a52b8
mov ecx, esi
call fcn.00403c10
cmp eax, 0xffffffff
jne 0x46f639
xor eax, eax
test esi, esi
je 0x46f66d
mov byte [eax + esi], 0
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46f653
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x10]
push ecx
push edx
call eax
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret 4