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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x482580
mov eax, dword [esi + 0x10]
xor edi, edi
test eax, eax
je 0x482416
xor ebx, ebx
mov eax, dword [esi + 0x18]
add eax, ebx
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4823d5
cmp byte [eax + 4], 6
je 0x4823d5
push str.Submit
push eax
push ecx
mov ecx, esi
call fcn.00482630
jmp 0x48240b
cmp dword [eax + 0x3c], 0
je 0x48240b
cmp byte [eax + 4], 6
je 0x48240b
mov ecx, dword [esi + 0xd4]
test ecx, ecx
jne 0x482401
push 0x4d0335
push str.No_object_to_invoke.
mov ecx, 0x4e9a70
call fcn.004470d0
jmp 0x48240b
push ecx
push eax
push ecx
mov ecx, esi
call fcn.00482fc0
mov eax, dword [esi + 0x10]
inc edi
add ebx, 0x40
cmp edi, eax
jb 0x4823b3
xor ebx, ebx
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x14], ebx
xor edi, edi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], edx
mov ebx, ecx
mov dword [esp + 0x1c], ecx
cmp ecx, eax
mov dword [esp + 0x18], ecx
je 0x482455
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x18]
push 0xfffffffffffffff0
push dword [eax + ecx]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x20000
je 0x4824a8
mov edx, dword [esp + 0x10]
cmp edi, 1
jne 0x482489
cmp edx, edi
jle 0x482489
push 0xa
lea eax, [esp + 0x2c]
push eax
xor eax, eax
cmp ebx, 0xffffffff
cmovne eax, ebx
push eax
call fcn.004b20b1
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x34]
add esp, 0xc
push edi
push 0
push 0xffffffffffffffff
push eax
call fcn.0049e6b0
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi + 0x10]
je 0x48256f
xor edi, edi
mov dword [esp + 0x14], 0
xor ecx, ecx
mov dword [esp + 0x10], ecx
jmp 0x4824ac
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add edx, dword [esi + 0x18]
cmp byte [edx + 4], 6
jne 0x48254e
mov ebx, dword [edx + 8]
inc ecx
test ebx, ebx
mov dword [esp + 0x10], ecx
mov eax, ebx
cmove eax, dword [esp + 0xc]
push 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], eax
lea eax, [edi + 1]
push 0
cmove eax, edi
push 0xf0
push dword [edx]
mov edi, eax
mov dword [esp + 0x30], edi
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 1
jne 0x482524
cmp dword [esp + 0x14], 0
mov ecx, 0xffffffff
mov eax, dword [esp + 0x10]
cmovne eax, ecx
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x48254e
push 1
push 0
push ecx
push 0x4d07c0
mov ecx, ebx
call fcn.0049e6b0
jmp 0x48254e
mov edx, dword [esp + 0xc]
mov dword [esp + 0xc], edx
test ebx, ebx
je 0x48254e
push 1
push 0
push 0xffffffffffffffff
push 0x4d03bc
mov ecx, ebx
call fcn.0049e6b0
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x18], 0x40
inc ecx
mov eax, dword [esi + 0x10]
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
cmp ecx, eax
jbe 0x482436
cmp byte [ebp + 8], 0
je 0x482580
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x486150
Capabilities:
Get keyboard layout

Disassembly:
push ebx
push esi
mov esi, ecx
xor bl, bl
mov al, byte [esi]
test al, al
je 0x48617f
nop dword [eax]
cmp al, 0x21
je 0x486174
cmp al, 0x2b
je 0x486170
cmp al, 0x5e
jne 0x48617f
mov al, 2
jmp 0x486176
mov al, 1
jmp 0x486176
mov al, 4
inc esi
or bl, al
mov al, byte [esi]
test al, al
jne 0x486160
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 0
xor edx, edx
mov ecx, esi
call fcn.0041c000
mov bh, al
add esp, 0xc
test bh, bh
jne 0x4861a2
pop esi
xor eax, eax
pop ebx
ret
xor edx, edx
mov ecx, esi
call fcn.0041bf10
movzx edx, ax
test dx, dx
jne 0x4861bf
xor dl, dl
mov cl, bh
call fcn.0041c560
movzx edx, ax
mov al, bl
or al, 8
and edx, 0x100
movzx ecx, al
movzx eax, bl
cmove ecx, eax
movzx eax, cl
movzx ecx, bh
shl ax, 8
pop esi
or ax, cx
pop ebx
ret
Function at 0x4878c0
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 8], connect
movzx eax, byte [esi + 4]
add eax, 0xfffffff7
cmp eax, 8
ja case.0x4878e6.12
jmp dword [eax*4 + 0x4879dc]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x19f
push dword [esi]
call edi
cmp eax, 0xffffffff
je case.0x4878e6.12
lea ecx, [esp + 8]
push ecx
push eax
push 0x198
push dword [esi]
call edi
jmp case.0x4878e6.12
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0xffffffffffffffff
push 0x100c
push dword [esi]
call edi
cmp eax, 0xffffffff
je case.0x4878e6.12
lea ecx, [esp + 8]
mov dword [esp + 8], 2
push ecx
push eax
push 0x100e
push dword [esi]
call edi
jmp case.0x4878e6.12
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 9
push 0x110a
push dword [esi]
call edi
test eax, eax
je case.0x4878e6.12
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 1
push 0x1104
push dword [esi]
call edi
jmp case.0x4878e6.12
lea eax, [esp + 8]
push eax
push 0
push 0x419
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esp + 8], 0x80000000
lea ecx, [esp + 8]
mov eax, dword [esi]
jne 0x4879a6
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x4879b2
push 2
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov esi, dword [ebp + 0xc]
mov eax, dword [esp + 8]
pop edi
mov dword [esi], eax
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 8]
cdq
sub eax, edx
sar eax, 1
add eax, 2
add eax, dword [esp + 8]
mov dword [esi + 4], eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x487f20
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, edx
mov esi, ecx
mov dword [esp + 0x14], edi
nop
mov al, byte [esi]
cmp al, 0x20
je 0x487f3a
cmp al, 9
jne 0x487f3d
inc esi
jmp 0x487f30
test al, al
je 0x488095
cmp byte [esi + 1], 0
lea ecx, [esi + 1]
jne 0x487f62
movzx eax, al
mov word [edi + 2], ax
mov al, 1
mov byte [edi], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 0x2b
xor bl, bl
mov byte [edi], 1
push ecx
mov byte [esp + 0x1b], bl
call fcn.004b7be9
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x488021
lea edi, [ebp - 1]
cmp edi, esi
jbe 0x487f96
mov al, byte [edi]
cmp al, 0x20
je 0x487f91
cmp al, 9
jne 0x487f96
dec edi
cmp edi, esi
ja 0x487f87
sub edi, esi
inc edi
push edi
push str.Ctrl
push esi
call fcn.004b2c54
add esp, 0xc
test eax, eax
jne 0x487fb1
or bl, 1
jmp 0x487fe3
push edi
push 0x4d56dc
push esi
call fcn.004b2c54
add esp, 0xc
test eax, eax
jne 0x487fc9
or bl, 4
jmp 0x487fe3
push edi
push str.Shift
push esi
call fcn.004b2c54
add esp, 0xc
test eax, eax
jne 0x488095
or bl, 0x10
mov byte [esp + 0x13], bl
lea esi, [ebp + 1]
nop word [eax + eax]
mov al, byte [esi]
cmp al, 0x20
je 0x487ffa
cmp al, 9
jne 0x487ffd
inc esi
jmp 0x487ff0
test al, al
je 0x488095
lea eax, [esi + 1]
push 0x2b
push eax
call fcn.004b7be9
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x487f80
mov edi, dword [esp + 0x14]
cmp byte [esi + 1], 0
jne 0x488050
push 1
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
movzx eax, byte [esi]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
lea edx, [esp + 0x1b]
mov cl, al
call fcn.0041c0c0
mov bl, byte [esp + 0x1b]
add esp, 8
jmp 0x488068
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 0
xor edx, edx
mov ecx, esi
call fcn.0041c000
add esp, 0xc
movzx eax, al
mov word [edi + 2], ax
test bl, 1
je 0x488077
or byte [edi], 8
test bl, 4
je 0x48807f
or byte [edi], 0x10
test bl, 0x10
je 0x488087
or byte [edi], 4
pop edi
pop esi
test ax, ax
pop ebp
setne al
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
Function at 0x48dad0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c93d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, ecx
mov dword [ebp - 0x14], 0
push esi
xor edx, edx
mov dword [ebp - 0x24], ebx
lea esi, [ebp - 0x24]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 8]
push edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], eax
mov dword [ebx + 4], esi
mov dword [ebp - 4], edx
test eax, eax
jle 0x48dbf8
nop dword [eax]
cmp edx, dword [ebp + 0x10]
jl 0x48db72
cmp dword [0x4e794c], 0
mov ecx, 0x3a
mov eax, dword [0x4e498c]
mov esi, 0x4e7838
mov edi, eax
xorps xmm0, xmm0
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x2c], 0
movlpd qword [0x4ea0b0], xmm0
je 0x48db6f
mov eax, dword [0x4e6378]
mov ecx, 0x4d0335
test eax, eax
je 0x48db68
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebx]
add edx, edx
push 0
mov ecx, dword [eax + edx*8]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
mov edx, ecx
push dword [ebp + 8]
push str.call
call fcn.0048a700
add esp, 0x14
test eax, eax
je 0x48dbda
cmp dword [ebp - 0x14], 0
jne 0x48dbb9
mov edx, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, dword [ebp - 0x18]
jl 0x48db20
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
jmp 0x48dbfb
mov ecx, dword [ebp - 0x24]
mov eax, 3
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x24]
xor eax, eax
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 0xc]
mov eax, 1
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x492470
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1010c
call fcn.004c78a0
push esi
mov esi, dword [esp + 0x10120]
test esi, esi
je 0x49248b
cmp byte [esi], 0
jne 0x492490
mov esi, str.ERROR
lea eax, [esp + 8]
mov byte [esp + 0x110], 0
push eax
lea eax, [esp + 0x10]
mov byte [esp + 0xb], 0
push eax
push 0x104
push dword [esp + 0x10120]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov eax, dword [esp + 0x1011c]
mov ecx, dword [esp + 0x10118]
cmp byte [eax], 0
mov dl, byte [ecx]
je 0x492517
push edi
lea edi, [esp + 0x10]
test dl, dl
push edi
push 0xffff
lea edi, [esp + 0x11c]
push edi
push esi
push eax
lea eax, [esp + 0x1f]
cmovne eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
mov ecx, dword [0x4e90f8]
lea eax, [esp + 0x110]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.0049e6b0
pop esi
add esp, 0x1010c
ret 0x10
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x114]
push 0xffff
push eax
test dl, dl
je 0x492536
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
jmp 0x49253c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
test eax, eax
je 0x4924f4
lea eax, [esp + 0x110]
cmp byte [eax], 0
jne 0x492555
cmp byte [eax + 1], 0
je 0x4924f4
mov byte [eax], 0xa
inc eax
jmp 0x492547
Function at 0x492d10
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
push ebx
push ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x10]
push esi
push edi
push eax
push 0
push 0
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0xff
push eax
lea eax, [esp + 0x34]
mov edi, ecx
push eax
push 0
push edi
call ebx
cmp eax, 0x103
je 0x492dd6
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
nop dword [eax + eax]
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x4e498c]
mov eax, dword [eax + 0xb0]
or eax, 0x20019
push eax
push 0
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x492de0
mov ecx, dword [esp + 0x14]
call fcn.00492d10
push dword [esp + 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x492de0
lea eax, [esp + 0x20]
push eax
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x492de0
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 0xff
push eax
push esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push esi
push edi
call ebx
cmp eax, 0x103
jne 0x492d60
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 8], ecx
push esi
push edi
test ebp, ebp
je 0x492eed
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
test edi, edi
je 0x492e16
cmp byte [edi], 0
jne 0x492e1e
test ebx, ebx
je 0x492eed
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x4e498c]
mov eax, dword [eax + 0xb0]
or eax, 0x2001f
push eax
push 0
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x492ede
test ebx, ebx
jne 0x492ec7
mov ecx, dword [esp + 0x18]
call fcn.00492d10
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x492ede
mov eax, dword [0x50b8cc]
test al, 1
jne 0x492e97
push str.RegDeleteKeyExA
or eax, 1
push str.advapi32
mov dword [0x50b8cc], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [0x50b8d0], ecx
jmp 0x492e9d
mov ecx, dword [0x50b8d0]
mov eax, dword [0x4e498c]
mov eax, dword [eax + 0xb0]
test eax, eax
je 0x492ebb
test ecx, ecx
je 0x492ebb
push 0
push eax
push edi
push ebp
call ecx
mov esi, eax
jmp 0x492ede
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
jmp 0x492ede
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0xffffffff
jne 0x492ef2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
jmp 0x492ef4
mov esi, 0x57
mov ecx, esi
mov eax, dword [0x4e498c]
test esi, esi
mov dword [eax + 0x30], ecx
setne al
mov ecx, dword [esp + 0x10]
movzx eax, al
push eax
call fcn.004469f0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x49b270
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x148
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x49b317
cmp byte [edi], 0
je 0x49b317
push 4
push 0x4dc4c8
push edi
call fcn.004b9b6d
add esp, 0xc
mov esi, edi
test eax, eax
jne 0x49b2a7
lea esi, [edi + 4]
test esi, esi
je 0x49b2cc
mov dl, byte [esi]
test dl, dl
je 0x49b2cc
mov ecx, 0x4daa2c
mov al, 0x3f
cmp dl, al
je 0x49b2e9
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x49b2b8
mov dl, byte [esi + 1]
inc esi
test dl, dl
jne 0x49b2b1
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test ebx, ebx
je 0x49b2d9
mov dword [ebx], eax
cmp eax, 0xffffffff
setne al
pop edi
pop esi
pop ebx
add esp, 0x148
ret
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x49b317
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x49b30b
mov eax, dword [esp + 0x10]
mov dword [ebx], eax
mov al, 1
pop edi
pop esi
pop ebx
add esp, 0x148
ret
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x148
ret

Function at 0x49b910
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push edi
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x1c]
or eax, 1
push eax
push 0
push str.SOFTWAREAutoHotkey
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [esp + 0x10]
test eax, eax
jne 0x49b9ad
push esi
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x104
push eax
push edi
push 0
push 0
push str.InstallDir
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x49b9ad
mov eax, dword [esp + 0x18]
test eax, eax
je 0x49b9ad
dec eax
mov dword [esp + 0x18], eax
cmp byte [eax + edi], 0
jne 0x49b996
test eax, eax
je 0x49b9b2
cmp byte [edi + eax - 1], 0
jne 0x49b9b2
sub eax, 1
mov dword [esp + 0x18], eax
jne 0x49b983
pop edi
pop ecx
ret
inc eax
mov dword [esp + 0x18], eax
cmp eax, 0x104
jae 0x49b9ad
mov byte [eax + edi], 0
mov eax, dword [esp + 0x18]
pop edi
pop ecx
ret
mov byte [edi], 0
xor eax, eax
pop edi
pop ecx
ret
Function at 0x49c230
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov ebp, ecx
xor ebx, ebx
mov dword [esp + 0xc], ebp
push edi
mov edi, edx
mov dword [esp + 0x24], edi
test ebp, ebp
je 0x49c25b
push 2
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
mov dword [esp + 0x1c], eax
jmp 0x49c265
mov esi, dword [0x4e79b8]
mov dword [esp + 0x1c], esi
test esi, esi
je 0x49c3f8
test edi, edi
jns 0x49c27a
mov eax, edi
neg eax
movzx eax, ax
jmp 0x49c2ab
test edi, edi
mov dword [esp + 0x2c], ebx
mov eax, 1
mov dword [esp + 0x30], 0x4ea335
cmovne eax, edi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push 0x49c200
push 0xe
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov eax, dword [esp + 0x30]
cmp eax, 0x4ea335
je 0x49c3cf
push 0xe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x49c3cf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x49c3cf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x49c3cf
cmp dword [esp + 0x38], 0xffffffff
mov ebx, dword [esp + 0x3c]
cmovne ebx, dword [esp + 0x38]
test ebx, ebx
jne 0x49c30d
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [esp + 0x18]
mov ebx, eax
lea eax, [ecx + 6]
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], eax
xor ebp, ebp
movzx eax, word [ecx + 4]
mov dword [esp + 0x18], eax
test eax, eax
je 0x49c3c9
mov edi, dword [esp + 0x20]
mov esi, 0x100
movzx edx, byte [edi]
test edx, edx
cmove edx, esi
xor ecx, ecx
cmp edx, ebp
jle 0x49c34c
cmp ebp, ebx
setl cl
jmp 0x49c351
cmp edx, ebx
setge cl
test ecx, ecx
mov eax, edi
cmove eax, dword [esp + 0x14]
add edi, 0xe
test ecx, ecx
mov dword [esp + 0x14], eax
cmove edx, ebp
sub dword [esp + 0x18], 1
mov ebp, edx
jne 0x49c337
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
test eax, eax
je 0x49c3c9
movzx eax, word [eax + 0xc]
push 3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x49c3c9
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x49c3c9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x49c3c9
push 0
push 0
push 0
push 0x30000
push 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebp
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov ebx, eax
jmp 0x49c3cb
xor ebx, ebx
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x49c3df
test ebx, ebx
je 0x49c3df
mov dword [ecx], esi
jmp 0x49c3ea
test ebp, ebp
je 0x49c3ea
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x49c3f8
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x24
ret
test edi, edi
jle 0x49c411
lea eax, [edi - 1]
push eax
push ebp
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
xor eax, eax
cmp edi, 0xffffffff
cmovl eax, edi
push eax
push ebp
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x49d600
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x410
push ebx
push 0x400
lea eax, [esp + 0x18]
mov dword [esp + 8], edx
push 0
push eax
mov ebx, ecx
call fcn.004afdf0
add esp, 0xc
lea eax, [esp + 0x10]
push 0xf0000000
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x49d794
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x8004
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x49d794
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x49d6a2
cmp dword [ecx], 0
je 0x49d6a2
push esi
xor edx, edx
mov eax, ecx
mov esi, 0x4dccd4
nop dword [eax]
cmp ecx, 0x4e5acc
jne 0x49d68c
mov eax, esi
jmp 0x49d68e
mov eax, dword [eax]
mov al, byte [eax]
add esi, 5
mov byte [esp + edx + 0x18], al
inc edx
cmp dword [ecx + edx*4], 0
lea eax, [ecx + edx*4]
jne 0x49d680
pop esi
lea ecx, [esp + 0x14]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49d6b0
push 0
sub ecx, edx
lea eax, [esp + 0x18]
push ecx
push eax
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x49d794
push edi
xor eax, eax
lea edi, [esp + 0x18]
mov ecx, 0x100
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x424]
pop edi
cmp ecx, 0x80
jne 0x49d6f8
mov eax, 0x660e
jmp 0x49d708
xor eax, eax
cmp ecx, 0xc0
setne al
add eax, 0x660f
lea edx, [esp + 0xc]
shl ecx, 0x10
push edx
push ecx
push dword [esp + 0x10]
push eax
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x49d794
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
je 0x49d794
cmp byte [esp + 0x41c], 0
je 0x49d75c
mov eax, dword [esp + 4]
add eax, 0x10
push eax
lea eax, [esp + 8]
push eax
push ebx
push 0
push 1
push 0
push dword [esp + 0x24]
call dword [0x4e797c]
jmp 0x49d772
lea eax, [esp + 4]
push eax
push ebx
push 0
push 1
push 0
push dword [esp + 0x20]
call dword [0x4e7978]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 4]
pop ebx
add esp, 0x410
ret
xor eax, eax
pop ebx
add esp, 0x410
ret
Function at 0x49e4e0
Capabilities:
Write clipboard data

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, 0x4e9a54
push esi
mov esi, edx
call fcn.00405f00
test eax, eax
jne 0x49e511
push 0x4d0335
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4e9a70
call fcn.004470d0
pop esi
pop ebx
add esp, 8
ret
push ebp
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [ebx + esi]
lea esi, [ebx + 4]
mov dword [esp + 0x14], eax
cmp esi, eax
ja 0x49e599
mov ecx, dword [ebx]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x49e599
mov edi, esi
add esi, 4
cmp esi, eax
ja 0x49e599
mov edi, dword [edi]
mov ebx, esi
add esi, edi
cmp esi, eax
ja 0x49e599
xor eax, eax
test edi, edi
sete al
add eax, edi
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x49e64d
test edi, edi
je 0x49e583
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x49e5e8
push edi
push ebx
push eax
call fcn.004b19e0
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, esi
push ebp
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetClipboardData]
mov eax, dword [esp + 0x14]
lea esi, [ebx + 4]
cmp esi, eax
jbe 0x49e527
cmp dword [0x4e9a6c], 0
je 0x49e5db
cmp dword [0x4e9a5c], 0
je 0x49e5c1
push dword [0x4e9a54]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4e9a5c], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4e9a6c], 0
mov dword [0x4e9a54], 0
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x4e9a6c], 0
je 0x49e631
cmp dword [0x4e9a5c], 0
je 0x49e617
push dword [0x4e9a54]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4e9a5c], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4e9a6c], 0
mov dword [0x4e9a54], 0
push 0x4d0335
push 0x4d0700
mov ecx, 0x4e9a70
call fcn.004470d0
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
cmp dword [0x4e9a6c], 0
je 0x49e68f
cmp dword [0x4e9a5c], 0
je 0x49e675
push dword [0x4e9a54]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4e9a5c], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4e9a6c], 0
mov dword [0x4e9a54], 0
push 0x4d0335
push str.Out_of_memory.
mov ecx, 0x4e9a70
call fcn.004470d0
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret