joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f0c0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [eax + 4]
test eax, eax
je 0x45f0d0
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret

Function at 0x45f0e0
Capabilities:
Hide graphical window

Disassembly:
cmp dword [eax + 0x24], 0
mov eax, dword [eax + 4]
jne 0x45f0fc
test eax, eax
je 0x45f10f
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret
push 0
push 0x2af80006
push 0x414
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, 1
ret

Function at 0x45f150
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
cmp dword [edi + 4], 0
push ebx
push esi
je 0x45f2b8
xor ebx, ebx
cmp dword [edi + 0x10], ebx
jbe 0x45f19b
xor esi, esi
mov eax, dword [edi + 0x18]
cmp dword [eax + esi + 8], 0
je 0x45f192
cmp byte [eax + esi + 4], 6
je 0x45f192
mov edx, dword [esi + eax + 8]
lea ecx, [esi + eax]
push edx
push edi
mov eax, str.Submit
call fcn.0045f360
inc ebx
add esi, 0x14
cmp ebx, dword [edi + 0x10]
jb 0x45f16e
xor esi, esi
xor ebx, ebx
cmp esi, dword [edi + 0x10]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
je 0x45f1d2
mov eax, dword [edi + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + ecx]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x20000
je 0x45f221
mov eax, 1
cmp dword [esp + 0x10], eax
jne 0x45f20e
cmp dword [esp + 0xc], eax
jle 0x45f20e
cmp ebx, 0xffffffff
jne 0x45f1ea
xor ebx, ebx
push 0xa
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.0047e6c2
add esp, 0xc
push 1
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0046ede0
cmp esi, dword [edi + 0x10]
je 0x45f2a6
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov edx, dword [edi + 0x18]
mov eax, dword [esp + 0x14]
cmp byte [eax + edx + 4], 6
jne 0x45f28f
mov esi, dword [eax + edx + 8]
inc dword [esp + 0xc]
test esi, esi
je 0x45f243
inc dword [esp + 0x10]
mov dword [esp + 0x18], esi
mov ecx, dword [eax + edx]
push 0
push 0
push 0xf0
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 1
jne 0x45f279
test ebx, ebx
je 0x45f264
or ebx, 0xffffffff
jmp 0x45f268
mov ebx, dword [esp + 0xc]
test esi, esi
je 0x45f28f
push 1
push 0
push 0xffffffffffffffff
push 0x493f08
jmp 0x45f288
test esi, esi
je 0x45f28f
push 1
push 0
push 0xffffffffffffffff
push 0x492860
mov ecx, esi
call fcn.0046ede0
mov esi, dword [esp + 0x1c]
add dword [esp + 0x14], 0x14
inc esi
mov dword [esp + 0x1c], esi
cmp esi, dword [edi + 0x10]
jbe 0x45f1b6
cmp byte [ebp + 8], 0
je 0x45f2b8
mov edx, dword [edi + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x461bf0
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 0x461c29
cmp al, 0x21
je 0x461c1a
cmp al, 0x2b
je 0x461c15
cmp al, 0x5e
jne 0x461c25
or bl, 2
jmp 0x461c1d
or bl, 1
jmp 0x461c1d
or bl, 4
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x461c04
mov byte [esp + 0xf], bl
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov cl, byte [edi]
test cl, cl
je 0x461d1a
cmp byte [edi + 1], 0
jne 0x461c84
mov byte [esp + 0x10], cl
cmp cl, 0xa
jne 0x461c51
mov al, 0xd
jmp 0x461d0f
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 0x461c75
cmp cl, 0xff
jne 0x461c75
xor al, al
jmp 0x461d0f
and al, 0x38
neg al
sbb al, al
not al
and al, cl
jmp 0x461d0f
movzx esi, cl
test esi, 0xffffff80
jne 0x461ca1
push 2
push esi
call fcn.0047ff4e
add esp, 8
test eax, eax
je 0x461ca1
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x56
jne 0x461cdd
movzx esi, byte [edi + 1]
test esi, 0xffffff80
jne 0x461cc5
push 2
push esi
call fcn.0047ff4e
add esp, 8
test eax, eax
je 0x461cc5
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x4b
jne 0x461cdd
push 0x10
lea eax, [edi + 2]
push 0
push eax
call fcn.00480394
add esp, 0xc
jmp 0x461d0f
xor esi, esi
nop
mov eax, dword [esi*8 + 0x4a01a8]
push edi
push eax
call fcn.0047ea31
add esp, 8
test eax, eax
je 0x461d23
inc esi
cmp esi, 0x6d
jl 0x461ce0
mov eax, edi
call fcn.00411470
movzx ecx, ax
test cx, cx
je 0x461d1a
call fcn.00411bd0
mov byte [esp + 0x10], al
cmp byte [esp + 0x10], 0
jne 0x461d30
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov cl, byte [esi*8 + 0x4a01ac]
mov byte [esp + 0x10], cl
jmp 0x461d13
mov eax, edi
call fcn.00411470
movzx eax, ax
test ax, ax
jne 0x461d55
mov edx, dword [esp + 0x10]
push edx
xor bl, bl
call fcn.00411950
mov bl, byte [esp + 0x13]
add esp, 4
movzx eax, ax
test eax, 0x100
je 0x461d5f
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 0x462a80
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.0x462aa1.12
jmp dword [eax*4 + 0x462ba0]
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 0x462b4e
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push eax
push 0x198
push edx
call edi
jmp 0x462b4e
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 0x462b4e
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push eax
push 0x100e
push edx
mov dword [esp + 0x18], 2
call edi
jmp 0x462b4e
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 0x462b4e
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push 1
push 0x1104
push edx
mov dword [esp + 0x18], eax
call edi
jmp 0x462b4e
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 0x462b68
mov eax, dword [esi]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x462b7a
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 0x463150
Capabilities:
Get keyboard layout

Disassembly:
push ecx
push esi
mov esi, eax
mov al, byte [esi]
cmp al, 0x20
je 0x46315e
cmp al, 9
jne 0x463161
inc esi
jmp 0x463154
mov cl, byte [esi]
test cl, cl
jne 0x46316c
xor al, al
pop esi
pop ecx
ret
cmp byte [esi + 1], 0
lea eax, [esi + 1]
jne 0x463188
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.0047fa01
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x463248
lea ecx, [ecx]
lea eax, [ebp - 1]
cmp eax, esi
jbe 0x4631c8
mov cl, byte [eax]
cmp cl, 0x20
je 0x4631c3
cmp cl, 9
jne 0x4631c8
dec eax
cmp eax, esi
ja 0x4631b7
sub eax, esi
lea edi, [eax + 1]
push edi
push str.Ctrl
push esi
call fcn.0047f49b
add esp, 0xc
test eax, eax
jne 0x4631e5
or bl, 1
jmp 0x463213
push edi
push 0x492c64
push esi
call fcn.0047f49b
add esp, 0xc
test eax, eax
jne 0x4631fd
or bl, 4
jmp 0x463213
push edi
push str.Shift
push esi
call fcn.0047f49b
add esp, 0xc
test eax, eax
jne 0x46327a
or bl, 0x10
lea esi, [ebp + 1]
mov al, byte [esi]
cmp al, 0x20
je 0x463220
cmp al, 9
jne 0x463223
inc esi
jmp 0x463216
cmp byte [esi], 0
je 0x46327a
lea edx, [esi + 1]
push 0x2b
push edx
call fcn.0047fa01
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4631b0
mov edi, dword [esp + 0x18]
mov byte [esp + 0x13], bl
cmp byte [esi + 1], 0
push 0
jne 0x463286
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.004115d0
mov bl, byte [esp + 0x13]
movzx ecx, al
mov word [edi + 2], cx
jmp 0x4632a5
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.00411510
movzx edx, al
add esp, 8
mov word [edi + 2], dx
test bl, 1
je 0x4632ad
or byte [edi], 8
test bl, 4
je 0x4632b5
or byte [edi], 0x10
test bl, 0x10
je 0x4632bd
or byte [edi], 4
cmp word [edi + 2], 0
pop edi
pop ebp
pop ebx
setne al
pop esi
pop ecx
ret
Function at 0x468d70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10110
call fcn.0048af20
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x468d8f
cmp byte [esi], 0
jne 0x468d94
mov esi, str.ERROR
push 0xfffe
lea eax, [esp + 0x11d]
push 0
push eax
mov byte [esp + 0x124], 0
call fcn.00487c20
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 0x468e1b
cmp byte [edi], 0
jne 0x468ddf
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.0046ede0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
cmp byte [edi], 0
je 0x468e3b
lea eax, [esp + 0x10]
push eax
push 0xffff
lea ecx, [esp + 0x120]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
jmp 0x468e53
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 0x468dfa
lea eax, [esp + 0x118]
mov edi, edi
cmp byte [eax], 0
jne 0x468e6e
cmp byte [eax + 1], 0
je 0x468dfa
mov byte [eax], 0xa
inc eax
jmp 0x468e60
Function at 0x469680
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 0x469735
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x2c]
push ecx
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x469742
mov edx, dword [esp + 0x14]
push edx
call fcn.00469680
mov esi, eax
mov eax, dword [esp + 0x18]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x469742
lea ecx, [esp + 0x20]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
test esi, esi
jne 0x469742
lea edx, [esp + 0x18]
push edx
push eax
push eax
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
push esi
push edi
mov dword [esp + 0x30], 0xff
call ebx
cmp eax, 0x103
jne 0x4696c6
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 0x469750
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 0x4697f5
test ebx, ebx
je 0x46976a
cmp byte [ebx], 0
jne 0x469777
test edi, edi
je 0x4697f5
cmp byte [edi], 0
je 0x4697f5
lea eax, [esp + 0x14]
push eax
push 0x2001f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4697fa
test edi, edi
je 0x4697cb
cmp byte [edi], al
je 0x4697cb
push str.ahk_default
push edi
call fcn.0047ea31
add esp, 8
test eax, eax
jne 0x4697b0
mov edi, 0x4927e9
mov ecx, dword [esp + 0x14]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0x14]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4697fa
mov eax, dword [esp + 0x14]
push eax
call fcn.00469680
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4697fa
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
jmp 0x4697fa
mov esi, 0x57
mov ecx, dword [esp + 0x10]
test esi, esi
setne dl
movzx eax, dl
push esi
push eax
push ecx
call fcn.0042cc90
pop edi
pop esi
pop ebp
ret 8
Function at 0x469e20
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 0x469e3d
or edi, eax
or ebx, eax
jmp 0x469e58
mov eax, dword [esi + 0x28]
test eax, eax
je 0x469e4c
sub eax, dword [esi + 0x2c]
sub eax, dword [esi + 8]
jmp 0x469e4f
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 0x469ead
mov eax, dword [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x469ead
cmp ebp, ebx
jg 0x469e91
jl 0x469e8b
cmp dword [esp + 0x10], edi
jae 0x469e91
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 0x46d050
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x148
push edi
test esi, esi
je 0x46d0d0
cmp byte [esi], 0
je 0x46d0d0
push 4
push 0x499ed0
push esi
call fcn.00480b5b
add esp, 0xc
test eax, eax
mov eax, esi
jne 0x46d079
lea eax, [esi + 4]
mov edi, 0x497b2c
call fcn.00408ea0
test eax, eax
je 0x46d0b3
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x46d0d0
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x46d0a9
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 0x46d0c0
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 0x46d2e0
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 0x46d317
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x46d314
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 0x46d740
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.0048af20
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 0x46d77e
lea edx, [esi + 1]
push edx
lea eax, [esp + 8]
push eax
push edi
call fcn.00487060
add esp, 0xc
mov eax, esi
pop esi
add esp, 0x8000
ret
mov byte [edi], 0
pop esi
add esp, 0x8000
ret
Function at 0x46dfa0
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 0x46e0b9
mov eax, ebp
test ebp, ebp
jns 0x46dfd4
neg eax
jmp 0x46e006
jne 0x46dfdb
mov eax, 1
lea ecx, [esp + 0xc]
push ecx
push 0x46df70
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 0x46e0a9
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
push esi
call ebx
test eax, eax
je 0x46e0a8
mov ebp, dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call ebp
test eax, eax
je 0x46e0a4
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
cmp edx, 0xffffffff
jne 0x46e049
mov edx, ecx
cmp ecx, 0xffffffff
jne 0x46e052
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 0x46e0a4
movzx eax, ax
push 3
push eax
push esi
call edi
mov edi, eax
test edi, edi
je 0x46e0a4
push edi
push esi
call ebx
test eax, eax
je 0x46e0a4
push eax
call ebp
mov ebx, eax
test ebx, ebx
je 0x46e0a4
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 0x46e0ed
test ebp, ebp
jle 0x46e0d4
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 0x46e6b0
Capabilities:
Write clipboard data

Disassembly:
sub esp, 0xc
push esi
mov esi, eax
cmp byte [esi + 0x17], 0
push edi
mov edi, ecx
jne 0x46e6c2
mov esi, dword [esi + 0xc]
cmp byte [edi + 0x17], 0
jne 0x46e6cb
mov edi, dword [edi + 0xc]
mov al, byte [esi + 0x15]
test al, 0x10
je 0x46e74d
test al, 8
jne 0x46e732
mov ecx, dword [esi + 8]
movsx edx, byte [ecx]
mov eax, dword [esi + 0xc]
movsx ecx, byte [eax + ecx - 1]
cmp edx, 0x20
je 0x46e702
cmp edx, 9
je 0x46e702
cmp ecx, 0x20
je 0x46e702
cmp ecx, 9
je 0x46e702
cmp edx, 0x30
je 0x46e702
cmp edx, 0x2b
jne 0x46e732
mov ecx, dword [esi + 8]
push edi
call fcn.004011f0
test eax, eax
jne 0x46e717
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 0x46e7ad
test al, 8
jne 0x46e789
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push edi
call fcn.004011f0
test eax, eax
je 0x46e70f
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 0x46e7bf
mov ecx, esi
mov edx, edi
pop edi
pop esi
add esp, 0xc
jmp fcn.0046ebb0
test al, 2
je 0x46e7db
mov esi, dword [esi]
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
call eax
push esi
mov eax, edi
call fcn.004123c0
pop edi
pop esi
add esp, 0xc
ret
cmp byte [esi + 0x17], 0
jne 0x46e7e6
mov eax, dword [esi + 0xc]
jmp 0x46e7e8
mov eax, esi
test byte [eax + 0x15], 4
je 0x46e7f5
mov eax, esi
call fcn.0042d510
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 0x46e810
Capabilities:
Write clipboard data

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi + 8]
dec eax
cmp eax, 4
ja case.default.0x46e820
jmp dword [eax*4 + 0x46e8b8]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
push edi
call fcn.00412360
pop esi
ret
mov eax, dword [esi + 4]
test eax, eax
je case.default.0x46e820
mov ecx, dword [esi]
cmp byte [ecx], 0x30
je 0x46e853
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
push edi
call fcn.00412360
pop esi
ret
push edi
or eax, 0xffffffff
call fcn.004011f0
test eax, eax
jne 0x46e862
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.0046e6b0
fld qword [esi]
sub esp, 8
fstp qword [esp]
push edi
call fcn.00412390
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.004123c0
pop esi
ret
mov ecx, dword [esi]
push edi
or eax, 0xffffffff
call fcn.004011f0
pop esi
ret
Function at 0x46ebb0
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 0x46ebca
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 0
je 0x46ebc1
cmp byte [ebx + 0x17], 0
jne 0x46ebd3
mov ebx, dword [ebx + 0xc]
mov eax, ebx
call fcn.00401150
cmp byte [esi + 0x17], 1
jne 0x46ec2b
cmp esi, ebx
je 0x46eca4
mov eax, dword [ebx + 0xc]
push 0
push 1
push eax
push 0
mov ecx, esi
call fcn.0046ede0
test eax, eax
jne 0x46ec05
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.00487060
add esp, 0xc
or byte [esi + 0x15], 1
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 0x4a4c84
call fcn.004041b0
test eax, eax
jne 0x46ec55
push 0x4927e9
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4a4ca0
call fcn.0042cfa0
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 0x46ecb5
xor esi, esi
cmp dword [0x4a4c9c], esi
je 0x46eca4
cmp dword [0x4a4c8c], esi
je 0x46ec92
mov eax, dword [0x4a4c84]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4a4c8c], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4a4c9c], esi
mov dword [0x4a4c84], 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 0x46ec6e
mov ecx, esi
add esi, 4
cmp esi, eax
ja 0x46ec6e
mov ebx, dword [ecx]
mov edi, esi
add esi, ebx
cmp esi, eax
ja 0x46ec6e
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x46ed22
test ebx, ebx
je 0x46ed08
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x46ed79
push ebx
push edi
push eax
call fcn.00487060
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 0x46ecb1
jmp 0x46ec6e
cmp dword [0x4a4c9c], 0
je 0x46ed5d
cmp dword [0x4a4c8c], 0
je 0x46ed4b
mov ecx, dword [0x4a4c84]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4a4c8c], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
mov dword [0x4a4c9c], eax
mov dword [0x4a4c84], eax
push 0x4927e9
push str.Out_of_memory.
mov ecx, 0x4a4ca0
call fcn.0042cfa0
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 [0x4a4c9c], esi
je 0x46edb7
cmp dword [0x4a4c8c], esi
je 0x46eda5
mov edx, dword [0x4a4c84]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4a4c8c], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4a4c9c], esi
mov dword [0x4a4c84], esi
push 0x4927e9
push 0x4929a4
mov ecx, 0x4a4ca0
call fcn.0042cfa0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret