joyce8/EMBER2024-capa huggingface dataset:
Function at 0x67bf20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x112000]
push edi
or ebp, 0xffffffff
jmp 0x67bf42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x67bf49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x67bf38
mov eax, 1
add ebx, ebx
jne 0x67bf5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x67bf50
jne 0x67bf6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x67bf50
xor ecx, ecx
sub eax, 3
jb 0x67bf80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x67bff2
mov ebp, eax
add ebx, ebx
jne 0x67bf8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x67bf98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x67bfbc
inc ecx
add ebx, ebx
jne 0x67bfa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x67bf9d
jne 0x67bfb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x67bf9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x67bfdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x67bfcd
jmp 0x67bf3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x67bfdc
add edi, ecx
jmp 0x67bf3e
pop esi
mov edi, esi
mov ecx, 0x43a1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x67bffa
cmp byte [edi], 0x27
jne 0x67bffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x67bfff
lea edi, [esi + 0x278000]
mov eax, dword [edi]
or eax, eax
je 0x67c077
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x280d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280ee0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x67c02c
mov ecx, edi
jns 0x67c05b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280ee4]
or eax, eax
je 0x67c071
mov dword [ebx], eax
add ebx, 4
jmp 0x67c049
call dword [esi + 0x280ef4]
mov ebp, dword [esi + 0x280ee8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x67c0ab
sub esp, 0xffffff80
jmp 0x48bd64
Function at 0x403920
Capabilities:
Set current directory

Disassembly:
test al, al
je 0x403934
inc dword [0x4bb59c]
add dword [0x4b7a60], 0xe8
mov edx, dword [0x4b7a60]
push esi
push edi
mov ecx, 0x3a
mov esi, 0x4ba0e0
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xc]
mov esi, edx
mov dword [esi + 0x2c], ecx
test al, al
je 0x403963
push 0
mov eax, 0x4bc450
call fcn.0041ff40
cmp dword [0x4bb5cc], 0
mov dword [0x4bca80], 0
mov dword [0x4bca84], 0
je 0x40399b
mov eax, dword [0x4b8c80]
test eax, eax
je 0x40398f
mov eax, dword [eax]
test eax, eax
jne 0x403994
mov eax, 0x4a7935
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [esp + 0x10], 0
jne 0x403a1f
or ecx, 0xffffffff
cmp byte [esi + 0xce], 0
jne 0x4039ca
xor eax, eax
cmp byte [esp + 0x14], 0x65
sete al
mov byte [esi + 0xce], al
test al, al
je 0x4039ca
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ecx
cmp dword [0x4bca8c], 0
je 0x4039dc
cmp dword [0x4bca88], 0
jne 0x4039e5
cmp byte [esi + 0xce], 0
je 0x403a1f
cmp byte [esi + 0xce], 0
mov byte [esi + 0xcc], 0
jne 0x403a1f
cmp dword [0x4bca8c], 0
jge 0x403a07
pop edi
mov dword [esi + 0xc0], ecx
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xbc], eax
mov edx, dword [0x4bca8c]
mov dword [esi + 0xc0], edx
pop edi
pop esi
ret

Function at 0x405040
Capabilities:
Write clipboard data

Disassembly:
cmp dword [0x4bc440], 0
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, eax
je 0x405058
pop ebp
xor eax, eax
pop ebx
ret 4
push esi
test ebp, ebp
je 0x4050a5
cmp ebx, 0xffffffff
jne 0x405072
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405067
sub eax, edx
mov ebx, eax
test ebx, ebx
je 0x4050a5
push edi
lea edi, [ebx + 1]
mov esi, 0x4bc434
call fcn.004050c0
pop edi
test eax, eax
jne 0x40508f
pop esi
pop ebp
pop ebx
ret 4
mov eax, dword [0x4bc440]
push ebx
push ebp
push eax
mov esi, eax
call fcn.00495b20
add esp, 0xc
mov byte [esi + ebx], 0
pop esi
pop ebp
pop ebx
mov dword [esp + 4], 1
mov ecx, 0x4bc434
jmp fcn.00405130
Function at 0x405130
Capabilities:
Write clipboard data

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x18], edi
jne 0x405154
push esi
call fcn.00405410
test eax, eax
jne 0x405154
push str.Cant_open_clipboard_for_writing.
call fcn.00405240
pop edi
pop esi
ret 4
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x40518e
cmp dword [esi + 0x18], edi
je 0x40517f
cmp dword [esi + 8], edi
je 0x405174
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], edi
mov dword [esi], edi
push 0x4a7bc8
call fcn.00405240
pop edi
pop esi
ret 4
mov ecx, dword [esi + 4]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp ecx, edi
je 0x4051d1
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x4051f9
cmp dword [esp + 0x10], 0xd
push ebx
jne 0x4051b0
cmp word [eax], di
jmp 0x4051b3
cmp byte [eax], 0
push ecx
sete bl
call ebp
test bl, bl
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], edi
pop ebx
je 0x4051f9
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
cmp dword [esi + 0x18], edi
je 0x4051ee
cmp dword [esi + 8], edi
je 0x4051e3
mov edx, dword [esi]
push edx
call ebp
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], edi
mov dword [esi], edi
pop ebp
pop edi
mov eax, 1
pop esi
ret 4
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x405211
mov dword [esi + 4], edi
jmp 0x4051d1
cmp dword [esi + 0x18], edi
je 0x40522e
cmp dword [esi + 8], edi
je 0x405223
mov ecx, dword [esi]
push ecx
call ebp
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], edi
mov dword [esi], edi
push 0x4a7bd8
call fcn.00405240
pop ebp
pop edi
pop esi
ret 4

Function at 0x405310
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x108
test esi, esi
je 0x405320
mov dword [esi], 0
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x4053ef
push 0x104
lea ecx, [esp + 4]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameA]
push 0xb
lea edx, [esp + 4]
push str.Link_Source
push edx
call fcn.0049301e
add esp, 0xc
test eax, eax
je 0x4053e6
lea eax, [esp]
push str.ObjectLink
push eax
call fcn.004926f1
add esp, 8
test eax, eax
je 0x4053e6
lea ecx, [esp]
push str.OwnerLink
push ecx
call fcn.004926f1
add esp, 8
test eax, eax
je 0x4053e6
lea edx, [esp]
push str.Native
push edx
call fcn.004926f1
add esp, 8
test eax, eax
je 0x4053e6
lea eax, [esp]
push str.Embed_Source
push eax
call fcn.004926f1
add esp, 8
test eax, eax
je 0x4053e6
lea ecx, [esp]
push str.MSDEVColumnSelect
push ecx
call fcn.004926f1
add esp, 8
test eax, eax
je 0x4053dc
lea edx, [esp]
push str.MSDEVLineSelect
push edx
call fcn.004926f1
add esp, 8
test eax, eax
jne 0x4053f3
test esi, esi
je 0x4053e6
mov dword [esi], 1
xor eax, eax
add esp, 0x108
ret
mov byte [esp], 0
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
add esp, 0x108
ret
Function at 0x405410
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0
je 0x405422
mov eax, 1
ret 4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov ecx, dword [0x4bb428]
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
push ecx
mov edi, eax
call ebx
test eax, eax
jne 0x405490
mov eax, dword [0x4b79c8]
cmp eax, 0xffffffff
je 0x405461
test eax, eax
je 0x4054a6
call esi
mov edx, dword [0x4b79c8]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x4054a6
push 1
push 0x8000012f
mov dword [0x4b79cc], 0
call fcn.00401450
mov eax, dword [0x4bb428]
add esp, 8
push eax
mov dword [0x4b79cc], 1
call ebx
test eax, eax
je 0x405442
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword [ecx + 0x18], 1
mov eax, 1
pop ebx
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
ret 4

Function at 0x4057e0
Capabilities:
Resolve dns

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, eax
mov eax, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x405874
cmp word [ebx + 8], 2
push edi
jne 0x405845
cmp word [ebx + 0xa], 4
jne 0x405845
mov edi, dword [ebx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x405845
jmp 0x405820
mov edx, dword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push ebp
push eax
push ecx
call fcn.00405770
mov dword [esi], eax
test eax, eax
je 0x405868
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x405820
mov edx, dword [ebx]
mov eax, dword [esp + 0x20]
push 0x400
push edx
push 0x401
push eax
call fcn.00494137
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
ret 0x10
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x405884.11001
jmp dword [eax*4 + 0x4058ac]
pop esi
pop ebp
mov eax, 0x2af9
pop ebx
ret 0x10
pop esi
pop ebp
mov eax, 0x2afa
pop ebx
ret 0x10
pop esi
pop ebp
mov eax, 0x2afb
pop ebx
ret 0x10
Function at 0x406050
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
cmp dword [0x4b9fe0], 0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], str.getaddrinfo
mov dword [esp + 0x14], 0x405b40
mov dword [esp + 0x18], str.getnameinfo
mov dword [esp + 0x1c], 0x405e20
mov dword [esp + 0x20], str.freeaddrinfo
mov dword [esp + 0x24], fcn.00405af0
je 0x4060af
movzx eax, word [esp + 0x244]
mov eax, dword [eax*8 + 0x4b7410]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4061a7
lea edx, [esp + 0x138]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.004940d8
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.004942be
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x406126
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x406172
push esi
call ebp
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.004940d8
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.004942be
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x4061a7
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x406172
push esi
call ebp
jmp 0x4061a7
xor edi, edi
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
mov dword [esp + edi*8 + 0x14], eax
test eax, eax
je 0x40616d
inc edi
cmp edi, 3
jl 0x406174
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x4b7410], edx
mov dword [0x4b7418], eax
mov dword [fcn.00405af0], ecx
movzx edx, word [esp + 0x244]
mov eax, dword [edx*8 + 0x4b7410]
pop edi
pop esi
pop ebp
mov dword [0x4b9fe0], 1
pop ebx
add esp, 0x230
ret 4
Function at 0x40a690
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.WSOCK32.dll_recv]
push edi
xor ebx, ebx
jmp 0x40a6a0
mov ecx, dword [esi + 0x20]
cmp ebx, ecx
jae 0x40a6bf
mov eax, dword [esi + 0x18]
lea ebx, [ebx]
cmp byte [eax + ebx], 0
je 0x40a747
inc ebx
cmp ebx, ecx
jb 0x40a6b0
cmp ecx, dword [esi + 0x1c]
jne 0x40a709
mov eax, dword [esi + 0x1c]
lea ecx, [eax + eax]
test eax, eax
jne 0x40a6d3
mov ecx, 0x800
cmp dword [esi + 0x24], 0
jne 0x40a734
mov edi, eax
test eax, eax
jne 0x40a6e4
mov edi, 0x800
cmp edi, ecx
jae 0x40a6ee
add edi, edi
cmp edi, ecx
jb 0x40a6e8
cmp edi, eax
jbe 0x40a709
mov eax, dword [esi + 0x18]
push edi
push eax
call fcn.00492d6d
add esp, 8
test eax, eax
je 0x40a72d
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edi
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
push 0
sub ecx, eax
push ecx
add edx, eax
mov eax, dword [esi + 0x10]
push edx
push eax
call ebp
cmp eax, 0xffffffff
je 0x40a734
add dword [esi + 0x20], eax
jmp 0x40a6a0
mov dword [esi + 0x24], 1
push str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.0040ac80
add esp, 4
pop edi
pop ebp
pop ebx
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40a751
mov dword [eax], ebx
pop edi
pop ebp
xor eax, eax
pop ebx
ret 4

Function at 0x40a760
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
push edi
mov ebx, ecx
mov ecx, dword [ebx + 0x30]
push 0xa
lea eax, [esp + 0x10]
push eax
add ecx, 0x26
push ecx
call fcn.00492382
lea edx, [esp + 0x18]
push 0
push edx
call fcn.00494200
push str.__xml_version_1.0__encoding_UTF_8___
lea esi, [eax + 1]
push 0x4a890c
push esi
call fcn.0049375e
mov edx, dword [ebx + 0x10]
add esp, 0x20
add esi, eax
lea eax, [esp + 0xc]
push 0
sub esi, eax
push esi
mov esi, dword [sym.imp.WSOCK32.dll_send]
mov ecx, eax
push ecx
push edx
call esi
cmp eax, 0xffffffff
je 0x40a813
cmp dword [ebx + 0x34], 0
lea edi, [ebx + 0x28]
jne 0x40a813
mov ecx, dword [edi + 8]
inc ecx
call fcn.0040b520
test eax, eax
jne 0x40a813
mov eax, dword [edi]
add eax, dword [edi + 8]
mov cl, byte [0x4ae348]
mov byte [eax], cl
inc dword [edi + 8]
mov edx, dword [ebx + 0x30]
mov eax, dword [edi]
mov ecx, dword [ebx + 0x10]
push 0
push edx
push eax
push ecx
call esi
cmp eax, 0xffffffff
je 0x40a813
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x4bc3b8
call fcn.0040ac10
mov edx, dword [0x4bca50]
mov eax, dword [0x4bb428]
push 0x10014
push edx
push str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
jne 0x40a84d
push 0
push 4
mov ecx, 0x4bc450
call fcn.004204d0
pop edi
pop esi
mov eax, 0x3e6
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40acd0
Capabilities:
Encode data using base64

Disassembly:
push ebx
push ebp
push edi
mov edi, ecx
xor ecx, ecx
cmp eax, 0xffffffff
jne 0x40acea
mov eax, edi
lea ebx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40ace1
sub eax, ebx
mov ebp, eax
cmp eax, 2
jbe 0x40ad66
lea edx, [eax - 3]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
mov edi, edi
movzx eax, byte [edi]
movzx ebx, byte [edi + 1]
shl eax, 8
or eax, ebx
movzx ebx, byte [edi + 2]
shl eax, 8
or eax, ebx
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ecx + 1], bl
mov ebx, eax
shr ebx, 6
and ebx, 0x3f
movzx ebx, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and eax, 0x3f
mov byte [esi + ecx + 2], bl
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ecx + 3], al
add edi, 3
add ecx, 4
sub ebp, 3
dec edx
jne 0x40ad00
test ebp, ebp
je 0x40adda
movzx eax, byte [edi]
shl eax, 0x10
cmp ebp, 1
jbe 0x40ad7e
movzx edx, byte [edi + 1]
shl edx, 8
or eax, edx
mov edx, eax
shr edx, 0x12
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], dl
mov edx, eax
shr edx, 0xc
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 1], dl
cmp ebp, 1
jbe 0x40adc6
shr eax, 6
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
pop edi
pop ebp
mov byte [ecx + esi + 2], al
mov word [ecx + esi + 3], 0x3d
lea eax, [ecx + 4]
pop ebx
ret
pop edi
mov al, 0x3d
pop ebp
mov byte [ecx + esi + 2], al
mov word [ecx + esi + 3], 0x3d
lea eax, [ecx + 4]
pop ebx
ret
pop edi
pop ebp
mov byte [ecx + esi], 0
mov eax, ecx
pop ebx
ret

Function at 0x40bd20
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
xor ebx, ebx
push ebx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
cmp edi, ebx
jne 0x40bd6f
mov edi, dword [esi + 4]
cmp edi, ebx
je 0x40bd94
mov eax, dword [edi + 0x10]
dec eax
mov dword [edi + 0x10], eax
jne 0x40bd61
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x40bd58
push eax
call fcn.00492708
add esp, 4
push edi
call fcn.00492468
add esp, 4
pop edi
pop ebp
mov dword [esi + 4], ebx
mov byte [esi + 8], bl
mov eax, esi
pop ebx
ret 4
push esi
xor cl, cl
call fcn.0040bda0
mov ebx, dword [esi + 4]
push edi
call fcn.00404d30
mov eax, dword [esi + 4]
mov eax, dword [eax]
push edi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, dword [esi + 4]
mov dword [ecx + 8], eax
pop edi
pop ebp
mov eax, esi
pop ebx
ret 4
Function at 0x4105c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
xor al, al
cmp dword [0x4bb558], 0
push esi
push edi
mov byte [esp + 0x1e], al
je 0x4105e4
mov byte [esp + 0x1e], 1
mov al, byte [esp + 0x1e]
cmp dword [0x4bb55c], 0
je 0x4105f3
or al, 2
mov byte [esp + 0x1e], al
cmp byte [ebp + 8], al
je 0x410800
test al, al
jne 0x410636
cmp byte [ebp + 0xc], al
jne 0x410636
push 0x4ba328
push 0
push 0
push 0x4108f0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4bbc58], eax
test eax, eax
je 0x4106c7
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
movzx ebx, byte [ebp + 8]
xor eax, eax
xor esi, esi
cmp byte [ebp + 0xc], al
sete al
mov edi, eax
mov ecx, dword [0x4ba328]
push edi
push ebx
push 0x417
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
test eax, eax
jne 0x41066c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x410646
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [esp + 0x1f], 0
call edi
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, eax
cmp byte [ebp + 8], 0
je 0x4106d3
push 1
push 0x417
push 0x417
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x41073a
cmp dword [esp + 0x2c], 0
je 0x4106e2
mov byte [esp + 0x1f], 1
call fcn.00410c70
test al, al
jne 0x4106e2
cmp byte [ebp + 0xc], al
jne 0x4107ce
mov byte [ebp + 8], al
jmp 0x410681
call fcn.00410c90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x41071e
call fcn.00410c70
test al, al
jne 0x41073a
cmp byte [ebp + 0xc], 0
jne 0x4107c7
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4bb558], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
je 0x410772
test byte [esp + 0x1e], 1
jne 0x41078b
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4bbc50], eax
jmp 0x41078b
mov ecx, dword [0x4bbc58]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
jne 0x410752
call edi
sub eax, ebx
cmp eax, 0x1f4
ja 0x4106e2
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x410681
mov edx, dword [0x4bbc58]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov dword [0x4bbc58], 0
call fcn.00410c90
jmp 0x4106f2
test byte [esp + 0x1e], 1
je 0x41078b
mov eax, dword [0x4bbc50]
push eax
call edi
mov dword [0x4bbc50], 0
cmp dword [0x4bb55c], 0
je 0x4107ad
test byte [esp + 0x1e], 2
jne 0x4107c7
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4bbc54], eax
jmp 0x4107c7
test byte [esp + 0x1e], 2
je 0x4107c7
mov ecx, dword [0x4bbc54]
push ecx
call edi
mov dword [0x4bbc54], 0
cmp byte [esp + 0x1f], 0
je 0x410800
fldz
sub esp, 8
fstp qword [esp]
mov dword [0x4b79cc], 0
push 0
push 0
push 0x10000
push str.Warning:_The_keyboard_and_or_mouse_hook_could_not_be_activated__some_parts_of_the_script_will_not_function.
call fcn.00484090
add esp, 0x18
mov dword [0x4b79cc], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412280
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x804
cmp byte [0x4bcc68], 0
push ebx
push ebp
mov ebp, dword [esp + 0x814]
push esi
push edi
jne 0x4123e9
cmp dword [0x4bbc70], 0
jne 0x4122b2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4bbc70], eax
mov ebx, 1
add dword [0x4bcc6c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x4bcc6c]
mov esi, dword [0x4b79e0]
mov ecx, eax
sub ecx, dword [0x4bbc70]
mov dword [0x4bbc74], eax
cmp edx, dword [0x4b79dc]
jbe 0x4122e8
cmp ecx, esi
jb 0x412346
xor ebx, ebx
cmp ecx, esi
jbe 0x412305
mov dword [0x4bcc6c], 0
mov dword [0x4bbc70], eax
test ebx, ebx
jne 0x4123e9
mov esi, dword [esp + 0x818]
mov cl, byte [esi + 0xf]
push 0
push 0
mov byte [0x4bca4d], cl
inc byte [ebp + 0x16]
mov edx, dword [0x4bc9dc]
push 0
push edx
push ebp
call fcn.0047a180
dec byte [ebp + 0x16]
test eax, eax
jne 0x4123b6
mov byte [ebp + 0x1b], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x804
ret 8
push ecx
push edx
push str._u_hotkeys_have_been_received_in_the_last__ums._n_nDo_you_want_to_continue__n_see_MaxHotkeysPerInterval_in_the_help_file_
mov esi, 0x800
lea edi, [esp + 0x1c]
call fcn.0047f340
add esp, 0xc
call fcn.00411170
fldz
sub esp, 8
fstp qword [esp]
push 0
push 0
mov eax, edi
push 4
push eax
mov byte [0x4bcc68], bl
mov dword [0x4b79cc], 0
call fcn.00484090
add esp, 0x18
cmp eax, 7
jne 0x41239f
push 0
push 4
mov ecx, 0x4bc450
call fcn.004204d0
mov eax, dword [0x4bbc74]
mov dword [0x4b79cc], ebx
mov byte [0x4bcc68], 0
jmp 0x4122ee
cmp byte [ebp + 0x1b], 0
je 0x4123e9
mov byte [ebp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0xc]
cmp eax, 0x3e8
ja 0x4123e9
movzx eax, word [esi + 4]
mov ecx, dword [0x4bb428]
push 0
push eax
push 0x312
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x804
ret 8
Function at 0x417cf0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov cl, byte [esp + 4]
sub esp, 0x30
cmp dword [0x4bbcac], 2
push ebx
sete bl
push esi
mov esi, eax
test bl, bl
je 0x417d2b
lea eax, [esp + 0xc]
test cl, cl
jns 0x417d1a
mov byte [esp + 0xc], 0x30
lea eax, [esp + 0xd]
push 0xa
push eax
movzx eax, cl
push eax
call fcn.00492382
add esp, 0xc
jmp 0x417d4b
push 1
lea ecx, [esp + 0xc]
push ecx
push 1
lea edx, [esp + 0x48]
push edx
push 8
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x417e0c
test esi, esi
jle 0x417e0c
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
jmp 0x417d60
cmp dword [0x4bbcac], 0
jne 0x417dbd
call ebp
sub eax, dword [0x4bca94]
mov ecx, dword [0x4b7a60]
cmp eax, dword [ecx + 0xb8]
jbe 0x417dbd
push 0
push 0
push 0
push 0
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x417db6
push 1
push 0xffffffffffffffff
mov dword [0x4b79cc], 0
call fcn.00401450
add esp, 8
mov dword [0x4b79cc], 1
call ebp
mov dword [0x4bca94], eax
test bl, bl
je 0x417dcc
lea edi, [esp + 0x14]
call fcn.00417e20
jmp 0x417ddd
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x10]
push eax
call fcn.00416380
add esp, 4
cmp dword [0x4bbcac], 2
jne 0x417df1
mov ecx, dword [0x4b7a60]
mov eax, dword [ecx + 0x60]
jmp 0x417dfa
mov edx, dword [0x4b7a60]
mov eax, dword [edx + 0x5c]
push eax
call fcn.00419c40
add esp, 4
dec esi
jne 0x417d60
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x30
ret