joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483a60
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 0x483c50
mov eax, dword [esi + 0x10]
xor edi, edi
test eax, eax
je 0x483ae5
xor ebx, ebx
mov eax, dword [esi + 0x18]
add eax, ebx
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x483aa5
cmp byte [eax + 4], 6
je 0x483aa5
push str.Submit
push eax
push ecx
mov ecx, esi
call fcn.00483d00
jmp 0x483ada
cmp dword [eax + 0x3c], 0
je 0x483ada
cmp byte [eax + 4], 6
je 0x483ada
mov ecx, dword [esi + 0xd4]
push 0x4b6ba9
test ecx, ecx
jne 0x483ad1
push str.No_object_to_invoke.
mov ecx, 0x4cc848
call fcn.0043ee10
jmp 0x483ada
push eax
push ecx
mov ecx, esi
call fcn.00484810
mov eax, dword [esi + 0x10]
inc edi
add ebx, 0x40
cmp edi, eax
jb 0x483a83
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 0x483b24
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 0x483b78
mov edx, dword [esp + 0x10]
cmp edi, 1
jne 0x483b59
cmp edx, edi
jle 0x483b59
push 0xa
lea eax, [esp + 0x2c]
push eax
xor eax, eax
cmp ebx, 0xffffffff
cmovne eax, ebx
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x34]
add esp, 0xc
push edi
push 0
push 0xffffffffffffffff
push eax
call fcn.004a2db0
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi + 0x10]
je 0x483c3f
xor edi, edi
mov dword [esp + 0x14], 0
xor ecx, ecx
mov dword [esp + 0x10], ecx
jmp 0x483b7c
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add edx, dword [esi + 0x18]
cmp byte [edx + 4], 6
jne 0x483c1e
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 0x483bf4
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 0x483c1e
push 1
push 0
push ecx
push 0x4bb578
mov ecx, ebx
call fcn.004a2db0
jmp 0x483c1e
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
test ebx, ebx
je 0x483c1e
push 1
push 0
push 0xffffffffffffffff
push 0x4b6c08
mov ecx, ebx
call fcn.004a2db0
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 0x483b05
cmp byte [ebp + 8], 0
je 0x483c50
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 0x487e40
Capabilities:
Get keyboard layout

Disassembly:
push ebx
push esi
mov esi, ecx
xor bl, bl
mov al, byte [esi]
test al, al
je 0x487e6f
nop dword [eax]
cmp al, 0x21
je 0x487e64
cmp al, 0x2b
je 0x487e60
cmp al, 0x5e
jne 0x487e6f
mov al, 2
jmp 0x487e66
mov al, 1
jmp 0x487e66
mov al, 4
inc esi
or bl, al
mov al, byte [esi]
test al, al
jne 0x487e50
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 0
xor edx, edx
mov ecx, esi
call fcn.00415d30
mov bh, al
add esp, 0xc
test bh, bh
jne 0x487e92
pop esi
xor eax, eax
pop ebx
ret
xor edx, edx
mov ecx, esi
call fcn.00415c40
movzx edx, ax
test dx, dx
jne 0x487eaf
xor dl, dl
mov cl, bh
call fcn.004162f0
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 0x4894f0
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], CreateStatusWindowA
movzx eax, byte [esi + 4]
add eax, 0xfffffff7
cmp eax, 8
ja case.0x489516.12
jmp dword [eax*4 + 0x48960c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x19f
push dword [esi]
call edi
cmp eax, 0xffffffff
je case.0x489516.12
lea ecx, [esp + 8]
push ecx
push eax
push 0x198
push dword [esi]
call edi
jmp case.0x489516.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.0x489516.12
lea ecx, [esp + 8]
mov dword [esp + 8], 2
push ecx
push eax
push 0x100e
push dword [esi]
call edi
jmp case.0x489516.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.0x489516.12
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 1
push 0x1104
push dword [esi]
call edi
jmp case.0x489516.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 0x4895d6
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x4895e2
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 0x489b30
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], edx
mov esi, ecx
nop dword [eax]
mov al, byte [esi]
cmp al, 0x20
je 0x489b4a
cmp al, 9
jne 0x489b4d
inc esi
jmp 0x489b40
test al, al
je 0x489ca6
cmp byte [esi + 1], 0
lea ecx, [esi + 1]
jne 0x489b72
pop edi
pop esi
movzx eax, al
pop ebp
mov word [edx + 2], ax
mov al, 1
mov byte [edx], 0
pop ebx
add esp, 8
ret
push 0x2b
xor bl, bl
mov byte [edx], 1
push ecx
mov byte [esp + 0x1b], bl
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x489c2e
lea edi, [ebp - 1]
cmp edi, esi
jbe 0x489ba7
mov al, byte [edi]
cmp al, 0x20
je 0x489ba2
cmp al, 9
jne 0x489ba7
dec edi
cmp edi, esi
ja 0x489b98
sub edi, esi
inc edi
push edi
push str.Ctrl
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x489bc3
or bl, 1
jmp 0x489bf7
push edi
push 0x4b7d38
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x489bdc
or bl, 4
jmp 0x489bf7
push edi
push str.Shift
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x489ca6
or bl, 0x10
mov byte [esp + 0x13], bl
lea esi, [ebp + 1]
nop
mov al, byte [esi]
cmp al, 0x20
je 0x489c0a
cmp al, 9
jne 0x489c0d
inc esi
jmp 0x489c00
test al, al
je 0x489ca6
lea eax, [esi + 1]
push 0x2b
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x489b91
cmp byte [esi + 1], 0
push 0
jne 0x489c5f
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, byte [esi]
mov edi, eax
push ecx
call dword [sym.imp.USER32.dll_CharLowerA]
push 1
push edi
lea edx, [esp + 0x1b]
mov cl, al
call fcn.00415e40
mov bl, byte [esp + 0x1b]
add esp, 8
jmp 0x489c75
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 0
xor edx, edx
mov ecx, esi
call fcn.00415d30
add esp, 0xc
mov ecx, dword [esp + 0x14]
movzx eax, al
mov word [ecx + 2], ax
test bl, 1
je 0x489c88
or byte [ecx], 8
test bl, 4
je 0x489c90
or byte [ecx], 0x10
test bl, 0x10
je 0x489c98
or byte [ecx], 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 0x48c040
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
push ebx
push ebp
mov ebp, dword [esp + 0x74]
mov ebx, ecx
mov edx, ebp
push esi
push edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x48c052
sub edx, ecx
cmp edx, 0x104
ja 0x48c211
mov edi, dword [esp + 0x78]
xor edx, edx
mov cl, byte [ebp]
mov esi, 0x800
test cl, cl
mov byte [esp + 0x7c], cl
movzx eax, word [edi + 0x1e]
cmovne esi, edx
mov edx, dword [ebx + 0x20]
and eax, 0xfffff6fb
or esi, eax
test edx, edx
jne 0x48c0a5
push ebp
push edi
mov word [edi + 0x1e], si
call fcn.0048c220
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8
xor ecx, ecx
mov dword [esp + 0x10], 0x30
mov dword [esp + 0x14], ecx
cmp byte [esp + 0x7c], cl
je 0x48c0d3
movzx eax, word [edi + 0x1e]
test eax, 0x800
je 0x48c115
movzx eax, word [edi + 0x1c]
mov ecx, 1
mov dword [esp + 0x1c], eax
jmp 0x48c115
cmp dword [ebx + 0xc], edi
jne 0x48c115
cmp ebx, dword [0x4cced4]
jne 0x48c0ff
cmp byte [ebx + 0x10], cl
je 0x48c0f7
cmp byte [0x4cb090], cl
je 0x48c0f7
mov eax, 0xff14
push 0
push eax
jmp 0x48c103
or eax, 0xffffffff
push 0
push eax
jmp 0x48c103
push 0
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0xc], 0
push 9
push dword [edi]
or ecx, 0x10
mov dword [esp + 0x20], esi
mov esi, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], ebp
call esi
push 9
push ebp
mov dword [esp + 0x8c], eax
call esi
mov edx, dword [esp + 0x8c]
add esp, 0x10
mov ecx, eax
test edx, edx
je 0x48c15f
test ecx, ecx
je 0x48c15f
push ecx
push edx
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
add esp, 8
mov esi, eax
jmp 0x48c16c
xor eax, eax
cmp edx, ecx
setne al
mov dword [esp + 0x7c], eax
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0
push dword [edi + 0x14]
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
cmp dword [ebx + 0x24], 2
mov dword [esp + 0x7c], eax
jne 0x48c19e
cmp dword [0x4ca74c], 0
je 0x48c19e
mov ecx, dword [ebx + 0x20]
call fcn.00479a40
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x48c211
push ebp
push edi
call fcn.0048c220
test eax, eax
je 0x48c211
mov ax, word [esp + 0x18]
mov word [edi + 0x1e], ax
test esi, esi
je 0x48c1c1
mov ecx, ebx
call fcn.0048c9a0
cmp byte [ebp], 0
je 0x48c202
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x48c202
or eax, 0xffffffff
mov dword [esp + 0x40], 0x30
cmp byte [0x4cd01b], 0
mov dword [esp + 0x44], 0x80
cmovne eax, ecx
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x40]
push eax
push 0
push dword [edi + 0x14]
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x64
ret 8
Function at 0x490550
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b502d
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 0x490678
nop dword [eax]
cmp edx, dword [ebp + 0x10]
jl 0x4905f2
cmp dword [0x4ca750], 0
mov ecx, 0x3a
mov eax, dword [0x4c8024]
mov esi, 0x4ca640
mov edi, eax
xorps xmm0, xmm0
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x2c], 0
movlpd qword [0x4cce80], xmm0
je 0x4905ef
mov eax, dword [0x4c9994]
mov ecx, 0x4b6ba9
test eax, eax
je 0x4905e8
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.0048cfc0
add esp, 0x14
test eax, eax
je 0x49065a
cmp dword [ebp - 0x14], 0
jne 0x490639
mov edx, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, dword [ebp - 0x18]
jl 0x4905a0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
jmp 0x49067b
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 0x495a30
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1010c
call fcn.004b4520
push esi
mov esi, dword [esp + 0x10120]
test esi, esi
je 0x495a4b
cmp byte [esi], 0
jne 0x495a50
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 0x495ad7
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 [0x4cbec8]
lea eax, [esp + 0x110]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004a2db0
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 0x495af6
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
jmp 0x495afc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
test eax, eax
je 0x495ab4
lea eax, [esp + 0x110]
cmp byte [eax], 0
jne 0x495b15
cmp byte [eax + 1], 0
je 0x495ab4
mov byte [eax], 0xa
inc eax
jmp 0x495b07
Function at 0x4963c0
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 0x496486
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
nop dword [eax + eax]
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x4c8024]
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 0x496490
mov ecx, dword [esp + 0x14]
call fcn.004963c0
push dword [esp + 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x496490
lea eax, [esp + 0x20]
push eax
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x496490
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 0x496410
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 0x4964a0
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 0x496594
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
test edi, edi
je 0x4964c6
cmp byte [edi], 0
jne 0x4964ce
test ebx, ebx
je 0x496594
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x4c8024]
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 0x496599
test ebx, ebx
jne 0x49657b
mov ecx, dword [esp + 0x18]
call fcn.004963c0
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x496599
mov eax, dword [0x4ee56c]
test al, 1
jne 0x49654b
push str.RegDeleteKeyExA
or eax, 1
push str.advapi32
mov dword [0x4ee56c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [0x4ee570], ecx
jmp 0x496551
mov ecx, dword [0x4ee570]
mov eax, dword [0x4c8024]
mov eax, dword [eax + 0xb0]
test eax, eax
je 0x49656f
test ecx, ecx
je 0x49656f
push 0
push eax
push edi
push ebp
call ecx
mov esi, eax
jmp 0x496599
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
jmp 0x496599
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]
jmp 0x496599
mov esi, 0x57
mov ecx, dword [esp + 0x10]
test esi, esi
push esi
setne al
movzx eax, al
push eax
call fcn.0043e820
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x49f4e0
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x148
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x49f596
cmp byte [edi], 0
je 0x49f596
push 4
push 0x4c1674
push edi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcmp]
add esp, 0xc
test eax, eax
je 0x49f519
mov eax, edi
mov esi, eax
jmp 0x49f522
lea eax, [edi + 4]
mov esi, eax
test eax, eax
je 0x49f54b
mov dl, byte [eax]
test dl, dl
je 0x49f54b
nop dword [eax + eax]
mov ecx, 0x4bf988
mov al, 0x3f
cmp dl, al
je 0x49f568
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x49f537
mov dl, byte [esi + 1]
inc esi
test dl, dl
jne 0x49f530
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test ebx, ebx
je 0x49f558
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 0x49f596
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x49f58a
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 0x49fac0
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 0x49fb62
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 0x49fb62
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x49fb62
dec ecx
mov dword [esp + 0x18], ecx
cmp byte [ecx + edi], 0
jne 0x49fb4a
mov eax, ecx
test ecx, ecx
je 0x49fb67
cmp byte [ecx + edi - 1], 0
jne 0x49fb67
add ecx, 0xffffffff
mov eax, ecx
mov dword [esp + 0x18], ecx
jne 0x49fb35
pop edi
pop ecx
ret
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, 0x104
jae 0x49fb62
mov byte [ecx + 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 0x4a03c0
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 0x4a03eb
push 2
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
mov dword [esp + 0x1c], eax
jmp 0x4a03f5
mov esi, dword [0x4ca7b8]
mov dword [esp + 0x1c], esi
test esi, esi
je 0x4a0586
test edi, edi
jns 0x4a040a
mov eax, edi
neg eax
movzx eax, ax
jmp 0x4a043b
test edi, edi
mov dword [esp + 0x2c], ebx
mov eax, 1
mov dword [esp + 0x30], 0x4cd105
cmovne eax, edi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push 0x4a0390
push 0xe
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov eax, dword [esp + 0x30]
cmp eax, 0x4cd105
je 0x4a055f
push 0xe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4a055f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4a055f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x4a055f
cmp dword [esp + 0x38], 0xffffffff
mov ebx, dword [esp + 0x3c]
cmovne ebx, dword [esp + 0x38]
test ebx, ebx
jne 0x4a049d
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 0x4a0559
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 0x4a04dc
cmp ebp, ebx
setl cl
jmp 0x4a04e1
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 0x4a04c7
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
test eax, eax
je 0x4a0559
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 0x4a0559
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4a0559
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x4a0559
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 0x4a055b
xor ebx, ebx
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4a0577
test ebx, ebx
je 0x4a0577
mov dword [eax], esi
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x24
ret
test ebp, ebp
je 0x4a0582
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
jne 0x4a056d
test edi, edi
jle 0x4a059f
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