joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464fe0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, eax
mov al, byte [edi]
xor bl, bl
mov byte [esp + 0xf], bl
test al, al
je 0x465019
cmp al, 0x21
je 0x46500a
cmp al, 0x2b
je 0x465005
cmp al, 0x5e
jne 0x465015
or bl, 2
jmp 0x46500d
or bl, 1
jmp 0x46500d
or bl, 4
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x464ff4
mov byte [esp + 0xf], bl
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov cl, byte [edi]
test cl, cl
je 0x46510a
cmp byte [edi + 1], 0
jne 0x465074
mov byte [esp + 0x10], cl
cmp cl, 0xa
jne 0x465041
mov al, 0xd
jmp 0x4650ff
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanExA]
movzx ecx, ax
mov eax, ecx
shr eax, 8
cmp al, 0xff
jne 0x465065
cmp cl, 0xff
jne 0x465065
xor al, al
jmp 0x4650ff
and al, 0x38
neg al
sbb al, al
not al
and al, cl
jmp 0x4650ff
movzx esi, cl
test esi, 0xffffff80
jne 0x465091
push 2
push esi
call fcn.0048447e
add esp, 8
test eax, eax
je 0x465091
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x56
jne 0x4650cd
movzx esi, byte [edi + 1]
test esi, 0xffffff80
jne 0x4650b5
push 2
push esi
call fcn.0048447e
add esp, 8
test eax, eax
je 0x4650b5
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x4b
jne 0x4650cd
push 0x10
lea eax, [edi + 2]
push 0
push eax
call fcn.004848c4
add esp, 0xc
jmp 0x4650ff
xor esi, esi
nop
mov eax, dword [esi*8 + 0x4a5160]
push edi
push eax
call fcn.00482f41
add esp, 8
test eax, eax
je 0x465113
inc esi
cmp esi, 0x6d
jl 0x4650d0
mov eax, edi
call fcn.00411690
movzx ecx, ax
test cx, cx
je 0x46510a
call fcn.00411df0
mov byte [esp + 0x10], al
cmp byte [esp + 0x10], 0
jne 0x465120
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov cl, byte [esi*8 + 0x4a5164]
mov byte [esp + 0x10], cl
jmp 0x465103
mov eax, edi
call fcn.00411690
movzx eax, ax
test ax, ax
jne 0x465145
mov edx, dword [esp + 0x10]
push edx
xor bl, bl
call fcn.00411b70
mov bl, byte [esp + 0x13]
add esp, 4
movzx eax, ax
test eax, 0x100
je 0x46514f
or bl, 8
movzx ecx, byte [esp + 0x10]
movzx eax, bl
pop edi
shl eax, 8
pop esi
or eax, ecx
pop ebx
add esp, 8
ret
Function at 0x465ea0
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.0x465ec1.12
jmp dword [eax*4 + 0x465fc0]
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 0x465f6e
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push eax
push 0x198
push edx
call edi
jmp 0x465f6e
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 0x465f6e
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push eax
push 0x100e
push edx
mov dword [esp + 0x18], 2
call edi
jmp 0x465f6e
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 0x465f6e
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push 1
push 0x1104
push edx
mov dword [esp + 0x18], eax
call edi
jmp 0x465f6e
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 0x465f88
mov eax, dword [esi]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x465f9a
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 0x466570
Capabilities:
Get keyboard layout

Disassembly:
push ecx
push esi
mov esi, eax
mov al, byte [esi]
cmp al, 0x20
je 0x46657e
cmp al, 9
jne 0x466581
inc esi
jmp 0x466574
mov cl, byte [esi]
test cl, cl
jne 0x46658c
xor al, al
pop esi
pop ecx
ret
cmp byte [esi + 1], 0
lea eax, [esi + 1]
jne 0x4665a8
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.00483f31
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x466668
lea ecx, [ecx]
lea eax, [ebp - 1]
cmp eax, esi
jbe 0x4665e8
mov cl, byte [eax]
cmp cl, 0x20
je 0x4665e3
cmp cl, 9
jne 0x4665e8
dec eax
cmp eax, esi
ja 0x4665d7
sub eax, esi
lea edi, [eax + 1]
push edi
push str.Ctrl
push esi
call fcn.004839c0
add esp, 0xc
test eax, eax
jne 0x466605
or bl, 1
jmp 0x466633
push edi
push 0x496c88
push esi
call fcn.004839c0
add esp, 0xc
test eax, eax
jne 0x46661d
or bl, 4
jmp 0x466633
push edi
push str.Shift
push esi
call fcn.004839c0
add esp, 0xc
test eax, eax
jne 0x46669a
or bl, 0x10
lea esi, [ebp + 1]
mov al, byte [esi]
cmp al, 0x20
je 0x466640
cmp al, 9
jne 0x466643
inc esi
jmp 0x466636
cmp byte [esi], 0
je 0x46669a
lea edx, [esi + 1]
push 0x2b
push edx
call fcn.00483f31
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4665d0
mov edi, dword [esp + 0x18]
mov byte [esp + 0x13], bl
cmp byte [esi + 1], 0
push 0
jne 0x4666a6
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.004117f0
mov bl, byte [esp + 0x13]
movzx ecx, al
mov word [edi + 2], cx
jmp 0x4666c5
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.00411730
movzx edx, al
add esp, 8
mov word [edi + 2], dx
test bl, 1
je 0x4666cd
or byte [edi], 8
test bl, 4
je 0x4666d5
or byte [edi], 0x10
test bl, 0x10
je 0x4666dd
or byte [edi], 4
cmp word [edi + 2], 0
pop edi
pop ebp
pop ebx
setne al
pop esi
pop ecx
ret
Function at 0x46cb70
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x10110
call fcn.0048f760
push ebp
mov ebp, dword [esp + 0x1011c]
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x46cb91
cmp byte [esi], 0
jne 0x46cb96
mov esi, str.ERROR
push 0xfffe
lea eax, [esp + 0x121]
push 0
push eax
mov byte [esp + 0x128], 0
call fcn.0048c460
mov eax, dword [esp + 0x1012c]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x104
push eax
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
cmp byte [ebp], 0
je 0x46cc27
cmp byte [edi], 0
jne 0x46cbe6
lea edi, [esp + 0xf]
lea ecx, [esp + 0x14]
push ecx
push 0xffff
lea edx, [esp + 0x124]
push edx
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [0x4a7c78]
push 1
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x128]
push ecx
push edx
call fcn.00472eb0
pop edi
pop esi
pop ebp
add esp, 0x10110
ret 8
cmp byte [edi], 0
je 0x46cc47
lea eax, [esp + 0x14]
push eax
push 0xffff
lea ecx, [esp + 0x124]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
jmp 0x46cc5f
lea edx, [esp + 0x14]
push edx
push 0xffff
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
test eax, eax
je 0x46cc01
lea eax, [esp + 0x11c]
lea ebx, [ebx]
cmp byte [eax], 0
jne 0x46cc7e
cmp byte [eax + 1], 0
je 0x46cc01
mov byte [eax], 0xa
inc eax
jmp 0x46cc70
Function at 0x46d4c0
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 0x46d587
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [0x4a4440]
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 0x46d594
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0046d4c0
mov edx, dword [esp + 0x18]
add esp, 4
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x46d594
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
test esi, esi
jne 0x46d594
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 0x46d50a
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 0x46d5b0
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 0x46d6c9
test ebx, ebx
je 0x46d5ca
cmp byte [ebx], 0
jne 0x46d5db
test edi, edi
je 0x46d6c9
cmp byte [edi], 0
je 0x46d6c9
mov ecx, dword [0x4a4440]
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 0x46d6b2
test edi, edi
je 0x46d641
cmp byte [edi], al
je 0x46d641
push str.ahk_default
push edi
call fcn.00482f41
add esp, 8
test eax, eax
jne 0x46d626
mov edi, 0x496816
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 0x46d6b2
mov edx, dword [esp + 0x14]
push edx
call fcn.0046d4c0
mov esi, eax
mov eax, dword [esp + 0x18]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x46d6b2
mov eax, 1
test byte [0x4aae68], al
jne 0x46d690
or dword [0x4aae68], 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 [0x4aae64], eax
jmp 0x46d695
mov eax, dword [0x4aae64]
mov ecx, dword [0x4a4440]
mov ecx, dword [ecx + 0xac]
test ecx, ecx
je 0x46d6bf
test eax, eax
je 0x46d6bf
push 0
push ecx
push ebx
push ebp
call eax
mov esi, eax
cmp esi, 0xffffffff
jne 0x46d6ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x46d6d0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x46d6b0
mov esi, 0x57
mov eax, esi
mov edx, dword [0x4a4440]
mov dword [edx + 0x30], eax
mov edx, dword [esp + 0x10]
test esi, esi
setne al
movzx ecx, al
push ecx
push edx
call fcn.0042d6a0
pop edi
pop esi
pop ebp
ret 8
Function at 0x46dd40
Capabilities:
Clear file content

Disassembly:
mov eax, dword [esi + 0x2c]
push ebx
xor ebx, ebx
push ebp
push edi
cmp eax, ebx
je 0x46dd66
sub eax, dword [esi + 0x30]
mov edi, dword [esi]
sub eax, dword [esi + 8]
push 1
cdq
push edx
push eax
mov eax, dword [edi + 0x14]
mov ecx, esi
call eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 8], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x46dd83
cmp dword [esi + 0x2c], ebx
jne 0x46dd83
mov edx, dword [esi]
mov edx, dword [edx + 0x10]
push eax
mov eax, dword [esi + 0x30]
push eax
mov ecx, esi
call edx
mov dword [esi + 8], ebx
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
mov byte [esi + 0x28], bl
call edx
mov ecx, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esi]
push ebx
mov ebp, edx
mov edx, dword [eax + 0x14]
push ecx
mov ecx, esi
call edx
test al, al
je 0x46dded
mov eax, dword [esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x46dded
cmp ebx, ebp
jg 0x46ddcd
jl 0x46ddc5
cmp dword [esp + 0x10], edi
jae 0x46ddcd
mov eax, dword [esp + 0x10]
mov ecx, ebx
jmp 0x46ddd1
mov eax, edi
mov ecx, ebp
mov edx, dword [esi]
push 0
push ecx
push eax
mov eax, dword [edx + 0x14]
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 0x470f80
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x148
push edi
test esi, esi
je 0x471000
cmp byte [esi], 0
je 0x471000
push 4
push 0x49e404
push esi
call fcn.0048508b
add esp, 0xc
test eax, eax
mov eax, esi
jne 0x470fa9
lea eax, [esi + 4]
mov edi, 0x49bd44
call fcn.00408ef0
test eax, eax
je 0x470fe3
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x471000
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x470fd9
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 0x470ff0
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 0x471210
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 0x471247
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x471244
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 0x471670
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.0048f760
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 0x4716ae
lea edx, [esi + 1]
push edx
lea eax, [esp + 8]
push eax
push edi
call fcn.0048b890
add esp, 0xc
mov eax, esi
pop esi
add esp, 0x8000
ret
mov byte [edi], 0
pop esi
add esp, 0x8000
ret
Function at 0x471ed0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0xc], 0
test esi, esi
je 0x471ef9
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
jmp 0x471eff
mov ebx, dword [0x4a7cd8]
test ebx, ebx
je 0x472046
mov eax, ebp
test ebp, ebp
jns 0x471f11
neg eax
jmp 0x471f43
jne 0x471f18
mov eax, 1
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 0x471ea0
push 0xe
push ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov eax, dword [esp + 0x18]
movzx ecx, ax
push 0xe
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x472033
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x472033
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x472032
cmp dword [esp + 0x2c], 0xffffffff
jne 0x471f89
mov edx, dword [esp + 0x30]
mov dword [esp + 0x2c], edx
cmp dword [esp + 0x2c], 0
jne 0x471f9c
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [esp + 0x2c], eax
movzx eax, word [edi + 4]
lea esi, [edi + 6]
cmp eax, 1
jle 0x471fe0
lea edx, [esi + 0xe]
lea edi, [eax - 1]
mov edi, edi
mov al, byte [edx]
mov cl, byte [esi]
cmp al, cl
jbe 0x471fc6
movzx eax, cl
xor ecx, ecx
cmp eax, dword [esp + 0x2c]
setl cl
jmp 0x471fd2
movzx eax, al
xor ecx, ecx
cmp eax, dword [esp + 0x2c]
setge cl
mov eax, ecx
test eax, eax
je 0x471fda
mov esi, edx
add edx, 0xe
dec edi
jne 0x471fb0
movzx edx, word [esi + 0xc]
push 3
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x47202e
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x47202e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x47202e
push 0
push 0
push 0
push 0x30000
push 1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x24]
pop edi
test esi, esi
je 0x47203e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x472073
test ebp, ebp
jle 0x47205e
lea eax, [ebp - 1]
push eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconA]
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
xor eax, eax
cmp ebp, 0xffffffff
setge al
dec eax
and eax, ebp
push eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconA]
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x472cf0
Capabilities:
Write clipboard data

Disassembly:
sub esp, 8
push esi
push 0x4a9d34
mov esi, ecx
call fcn.004041f0
test eax, eax
jne 0x472d1d
push 0x496816
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4a9d50
call fcn.0042db20
pop esi
add esp, 8
ret
push ebx
push ebp
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esp + 0x1c]
add eax, esi
mov ebp, esi
add esi, 4
mov dword [esp + 0x10], eax
cmp esi, eax
jbe 0x472d84
xor esi, esi
cmp dword [0x4a9d4c], esi
je 0x472d70
cmp dword [0x4a9d3c], esi
je 0x472d5e
mov edx, dword [0x4a9d34]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4a9d3c], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4a9d4c], esi
mov dword [0x4a9d34], esi
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x10]
mov ebp, dword [ebp]
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x472d39
mov ecx, esi
add esi, 4
cmp esi, eax
ja 0x472d39
mov ebx, dword [ecx]
mov ebp, esi
add esi, ebx
cmp esi, eax
ja 0x472d39
xor ecx, ecx
test ebx, ebx
sete cl
add ecx, ebx
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x472dfb
test ebx, ebx
je 0x472de1
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x472e51
push ebx
push ebp
push eax
call fcn.0048b890
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebp, esi
mov edx, dword [esp + 0x14]
push edi
push edx
call dword [sym.imp.USER32.dll_SetClipboardData]
lea esi, [ebp + 4]
cmp esi, dword [esp + 0x10]
jbe 0x472d80
jmp 0x472d39
cmp dword [0x4a9d4c], 0
je 0x472e35
cmp dword [0x4a9d3c], 0
je 0x472e23
mov eax, dword [0x4a9d34]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4a9d3c], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
mov dword [0x4a9d4c], eax
mov dword [0x4a9d34], eax
push 0x496816
push str.Out_of_memory.
mov ecx, 0x4a9d50
call fcn.0042db20
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
cmp dword [0x4a9d4c], esi
je 0x472e8f
cmp dword [0x4a9d3c], esi
je 0x472e7d
mov ecx, dword [0x4a9d34]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4a9d3c], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4a9d4c], esi
mov dword [0x4a9d34], esi
push 0x496816
push 0x4969a4
mov ecx, 0x4a9d50
call fcn.0042db20
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x473280
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.0x473293
jmp dword [eax*4 + 0x473440]
mov eax, esi
call fcn.00401150
cmp dword [0x4a7e44], 0
jne 0x473364
cmp dword [esi + 0xc], 0
jne 0x473364
mov edi, dword [esp + 0x14]
cmp dword [0x4aacd0], esi
jne 0x4732c8
test edi, edi
jne 0x473325
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 0x473321
mov dword [0x4aacd0], 0
test edi, edi
je 0x473319
mov eax, dword [0x4a7e24]
test eax, eax
je 0x47330a
mov edx, dword [esi + 0x18]
push edx
push str.An_environment_variable_is_being_accessed__see_NoEnv.
push eax
push 0x4a9d50
xor ecx, ecx
call fcn.0042df60
mov ecx, dword [esi + 0x18]
call fcn.00471670
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 0x473355
cmp byte [esi + 0x17], 0
jne 0x473330
mov eax, dword [esi + 0xc]
jmp 0x473332
mov eax, esi
test byte [eax + 0x15], 4
je 0x47333f
mov eax, esi
call fcn.0042e090
mov byte [edi], 0
mov dword [0x4aacd0], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov dword [0x4aacd0], 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 0x4733d5
test ebx, ebx
jne 0x473396
movzx eax, byte [esi + 0x17]
neg eax
sbb eax, eax
and eax, esi
test byte [eax + 0x15], 4
je 0x47338a
mov eax, esi
call fcn.0042e090
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 0x4733d5
cmp ebx, 0x186a0
jae 0x4733c6
mov al, byte [ecx]
test al, al
je 0x4733ba
jmp 0x4733b0
inc ecx
mov byte [edi], al
mov al, byte [ecx]
inc edi
test al, al
jne 0x4733b0
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.0048b890
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.00473280
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.00403c50
cmp eax, 0xffffffff
jne 0x473404
xor eax, eax
test esi, esi
je 0x473438
mov byte [eax + esi], 0
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x47341e
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