joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52b1b8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5a10e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0051ddab
and dword [ebp - 0x14], 0
cmp dword [0x5a91a4], 0
mov dword [ebp - 0x18], eax
jne 0x52b26b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x52b313
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x572f18
push ebx
call edi
test eax, eax
je 0x52b313
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x572f08
push ebx
mov dword [0x5a91a4], eax
call edi
push eax
call esi
push 0x572ef4
push ebx
mov dword [0x5a91a8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5a91ac], eax
call edi
push eax
call esi
mov dword [0x5a91b4], eax
test eax, eax
je 0x52b26b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5a91b0], eax
mov eax, dword [0x5a91b0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x52b2c4
cmp dword [0x5a91b4], ecx
je 0x52b2c4
push eax
call esi
push dword [0x5a91b4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x52b2c4
test ebx, ebx
je 0x52b2c4
call edi
test eax, eax
je 0x52b2bb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x52b2bb
test byte [ebp - 8], 1
jne 0x52b2c4
or dword [ebp + 0x10], 0x200000
jmp 0x52b2f7
mov eax, dword [0x5a91a8]
cmp eax, dword [ebp - 0x18]
je 0x52b2f7
push eax
call esi
test eax, eax
je 0x52b2f7
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x52b2f7
mov eax, dword [0x5a91ac]
cmp eax, dword [ebp - 0x18]
je 0x52b2f7
push eax
call esi
test eax, eax
je 0x52b2f7
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5a91a4]
call esi
test eax, eax
je 0x52b313
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x52b315
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00515d64
leave
ret

Function at 0x535a90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push esi
push eax
mov esi, ecx
call fcn.005396b0
add esp, 4
test al, al
mov eax, dword [ebp + 0xc]
je 0x535b06
test al, al
je 0x535b06
push ebx
push edi
lea ecx, [esi + 0x14]
call fcn.005383b0
lea ecx, [esi + 0x14]
mov edi, eax
call fcn.005383a0
xor esi, esi
mov ebx, eax
test edi, edi
jle 0x535afc
lea esp, [esp]
movzx eax, word [ebx + esi*2]
mov cx, ax
shr cx, 8
shl eax, 8
xor cx, ax
push 0
movzx edx, cx
mov ecx, dword [ebp + 8]
push 2
lea eax, [ebp + 0x14]
push eax
mov dword [ebp + 0x14], edx
call fcn.00535020
inc esi
cmp esi, edi
jl 0x535ad0
lea eax, [edi + edi]
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push ecx
push eax
push edx
lea ecx, [esi + 0x14]
call fcn.00538440
pop esi
pop ebp
ret 0x10
Function at 0x100ca473
Capabilities:
Get number of processors

Disassembly:
jmp 0x100be794
call fcn.100be77f
salc
arpl word [ebp - 0x79], cx
loop 0x100be78a
adc eax, 0x24748b56
add al, 0x8d
mov dh, 0xd4
adc byte [edx], al
add byte [ecx + 0x5e042474], cl
push edx
mov dword [esp], ebp
push esp
pop ebp
push ebp
mov ebp, esp
add ebp, 4
sub ebp, 0x80
xchg dword [esp], ebp
pop esp
sub esp, 4
mov dword [esp], ebx
push edi
mov dword [esp], esi
push 0x188b
mov dword [esp], edi
jmp 0x100e43b3
push ebx
mov ebx, 8
add ebx, ebp
mov eax, dword [ebx]
pop ebx
sub esp, 4
mov dword [esp], eax
jmp 0x100dd1dd
jmp 0x100c9476
push 0
push 0x41797261
push 0x7262694c
push 0x64616f4c
lea ecx, [ebp - 0x2c]
sub esp, 4
mov dword [esp], ecx
jmp 0x100d8856
push ecx
mov ecx, dword [esp + 4]
lea ecx, [ecx + 0x1983f]
mov dword [esp + 4], ecx
pop ecx
jmp 0x100e0e32
jmp 0x100d886d
call fcn.100d8858
adc byte [eax - 0x77], dl
loopne 0x100d887c
add al, 0
add byte [eax], al
add eax, 4
xchg dword [esp], eax
pop esp
rol byte [edi + eax*4], 4
and al, 0x5c
push eax
pop dword [ebp - 4]
push ecx
mov ecx, 0xc
add ecx, ebp
mov eax, dword [ecx]
pop ecx
push esi
mov dword [esp], eax
push dword [ebp - 4]
sub dword [esp], 0x3f8325ed
pop ecx
add ecx, 0x3f8325ed
push esi
mov dword [esp], ecx
push eax
mov eax, 8
add eax, ebp
mov edx, dword [eax]
pop eax
push eax
mov eax, 0x64
add edx, eax
pop eax
push ebx
mov dword [esp], edx
jmp 0x100be77d
jmp 0x100dd1f4
call fcn.100dd1df
or eax, dword [ebp + 0x68]
mov byte [eax], 0
jmp 0x100bebce
push esi
mov esi, 0x6114390f
xor esi, 0x61143917
mov eax, esi
pop esi
mov eax, dword fs:[eax]
push eax
pop dword [ebp - 4]
push dword [ebp - 4]
pop eax
push dword [eax + 0x30]
sub dword [esp], 0x63f80c4b
pop ecx
add ecx, 0x63f80c4b
push eax
mov eax, 0xfffffff8
add eax, ebp
mov dword [eax], ecx
pop eax
push dword [ebp - 8]
pop edx
push ecx
mov ecx, 8
add ecx, edx
mov eax, dword [ecx]
pop ecx
push edx
mov edx, 0xffffffec
add edx, ebp
mov dword [edx], eax
pop edx
push ebx
mov ebx, 0
mov dword [ebp - 0x10], ebx
pop ebx
cmp dword [ebp - 0x10], 0
je 0x100bf698
jmp 0x100c0265

Function at 0x100e96f2
Capabilities:
Access peb ldr_data

Disassembly:
push eax
mov eax, dword [esp + 4]
lea eax, [eax - 0x4e23]
mov dword [esp + 4], eax
pop eax
jmp 0x100d8a70

Function at 0x1043433e
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], ecx
cmp eax, 0x1000
lea ecx, [esp + 8]
jb 0x1043439c
jmp 0x1043435b
push ebx
mov ebx, 0x1000
sub ecx, ebx
pop ebx
push esi
mov esi, 0x42603735
add esi, 0x62b848ad
not esi
xor esi, 0xa3b2af6
xor esi, 0x5731f4a
shr esi, 4
xor esi, 0x55aeb5a
sub eax, esi
pop esi
test dword [ecx], eax
cmp eax, 0x1000
jae 0x1043435b
jmp 0x1043439c
sub ecx, 0x42861a21
sub ecx, eax
add ecx, 0x42861a21
push esp
pop eax
test dword [ecx], eax
mov esp, ecx
push dword [eax]
pop ecx
push dword [eax + 4]
xor dword [esp], 0x1d9f7243
pop eax
xor eax, 0x1d9f7243
push ecx
mov dword [esp], eax
ret
Function at 0x4068fb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x40691f
xor eax, eax
test eax, eax
je 0x406932
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406932
xor ecx, ecx
jmp 0x406935
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a58
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x46590c], 0
push esi
jne 0x406a8f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a69
mov dword [ecx*4 + 0x465908], eax
inc ecx
cmp ecx, 0x100
jl 0x406a64
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406ac0
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x465908]
xor eax, esi
inc ecx
dec edx
jne 0x406aa2
pop edi
not eax
pop esi
ret 0xc

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x403a60
Capabilities:
Set current directory

Disassembly:
test al, al
je 0x403a74
inc dword [0x4d8814]
add dword [0x4d4b14], 0x108
mov edx, dword [0x4d4b14]
push esi
push edi
mov ecx, 0x42
mov esi, 0x4d72e0
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 0x403aa3
push 0
mov eax, 0x4d96d0
call fcn.0041e310
cmp dword [0x4d8844], 0
mov dword [0x4da1c8], 0
mov dword [0x4da1cc], 0
je 0x403adb
mov eax, dword [0x4d5d34]
test eax, eax
je 0x403acf
mov eax, dword [eax]
test eax, eax
jne 0x403ad4
mov eax, 0x4af9ac
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
cmp byte [esp + 0x10], 0
jne 0x403b5f
or ecx, 0xffffffff
cmp byte [esi + 0xee], 0
jne 0x403b0a
xor eax, eax
cmp byte [esp + 0x14], 0x65
sete al
mov byte [esi + 0xee], al
test al, al
je 0x403b0a
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ecx
cmp dword [0x4da1d4], 0
je 0x403b1c
cmp dword [0x4da1d0], 0
jne 0x403b25
cmp byte [esi + 0xee], 0
je 0x403b5f
cmp byte [esi + 0xee], 0
mov byte [esi + 0xec], 0
jne 0x403b5f
cmp dword [0x4da1d4], 0
jge 0x403b47
pop edi
mov dword [esi + 0xe0], ecx
pop esi
ret
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esi + 0xdc], eax
mov edx, dword [0x4da1d4]
mov dword [esi + 0xe0], edx
pop edi
pop esi
ret
Function at 0x4050b0
Capabilities:
Write clipboard data

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], ebx
jne 0x4050d4
push esi
call fcn.00405380
test eax, eax
jne 0x4050d4
push str.Cant_open_clipboard_for_writing.
call fcn.004051b0
pop esi
pop ebx
pop ecx
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x40510d
cmp dword [esi + 0x18], ebx
je 0x4050ff
cmp dword [esi + 8], ebx
je 0x4050f4
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], ebx
mov dword [esi], ebx
push 0x4afe2c
call fcn.004051b0
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esi + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
cmp eax, ebx
je 0x405146
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x40516d
cmp word [ecx], bx
push eax
sete byte [esp + 0x13]
call edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
cmp byte [esp + 0xf], bl
je 0x40516d
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov dword [esi + 4], eax
cmp dword [esi + 0x18], ebx
je 0x405163
cmp dword [esi + 8], ebx
je 0x405158
mov ecx, dword [esi]
push ecx
call edi
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], ebx
mov dword [esi], ebx
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
mov edx, dword [esi + 4]
push edx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x405182
mov dword [esi + 4], ebx
jmp 0x405146
cmp dword [esi + 0x18], ebx
je 0x40519f
cmp dword [esi + 8], ebx
je 0x405194
mov eax, dword [esi]
push eax
call edi
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], ebx
mov dword [esi], ebx
push 0x4afe4c
call fcn.004051b0
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x405280
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
test esi, esi
je 0x405290
mov dword [esi], 0
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x40535f
push 0x104
lea ecx, [esp + 4]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameW]
push 0xb
lea edx, [esp + 4]
push str.Link_Source
push edx
call fcn.004999aa
add esp, 0xc
test eax, eax
je 0x405356
lea eax, [esp]
push str.ObjectLink
push eax
call fcn.00499229
add esp, 8
test eax, eax
je 0x405356
lea ecx, [esp]
push str.OwnerLink
push ecx
call fcn.00499229
add esp, 8
test eax, eax
je 0x405356
lea edx, [esp]
push str.Native
push edx
call fcn.00499229
add esp, 8
test eax, eax
je 0x405356
lea eax, [esp]
push str.Embed_Source
push eax
call fcn.00499229
add esp, 8
test eax, eax
je 0x405356
lea ecx, [esp]
push str.MSDEVColumnSelect
push ecx
call fcn.00499229
add esp, 8
test eax, eax
je 0x40534c
lea edx, [esp]
push str.MSDEVLineSelect
push edx
call fcn.00499229
add esp, 8
test eax, eax
jne 0x405365
test esi, esi
je 0x405356
mov dword [esi], 1
xor eax, eax
add esp, 0x20c
ret
xor eax, eax
mov word [esp], ax
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
add esp, 0x20c
ret
Function at 0x405380
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0
je 0x405392
mov eax, 1
ret 4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
push edi
call esi
mov ecx, dword [0x4d86a0]
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
push ecx
mov edi, eax
call ebx
test eax, eax
jne 0x405400
mov eax, dword [0x4d4a18]
cmp eax, 0xffffffff
je 0x4053d1
test eax, eax
je 0x405416
call esi
mov edx, dword [0x4d4a18]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x405416
push 1
push 0x8000012f
mov dword [0x4d4a1c], 0
call fcn.004014c0
mov eax, dword [0x4d86a0]
add esp, 8
push eax
mov dword [0x4d4a1c], 1
call ebx
test eax, eax
je 0x4053b2
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 0x40577f
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, eax
mov eax, dword [ebp + 0x18]
and dword [esi], 0
mov byte [eax], 0
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x4057f4
cmp word [ebx + 8], 2
jne 0x4057d4
cmp word [ebx + 0xa], 4
jne 0x4057d4
mov edi, dword [ebx + 0xc]
jmp 0x4057ce
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00405718
mov dword [esi], eax
test eax, eax
je 0x4057ef
lea esi, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x4057b2
push 0x400
push dword [ebx]
push 0x401
push dword [ebp + 0x18]
call fcn.0049b1ee
add esp, 0x10
xor eax, eax
jmp 0x40581a
push 8
pop eax
jmp 0x40581a
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x40581a
dec ecx
je 0x405815
dec ecx
je 0x40580e
dec ecx
jmp 0x40581a
mov eax, 0x2afb
jmp 0x40581a
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405dee
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
cmp dword [0x4d71c0], 0
push ebx
push esi
push edi
mov dword [ebp - 0x18], str.getaddrinfo
mov dword [ebp - 0x14], 0x405979
mov dword [ebp - 0x10], str.getnameinfo
mov dword [ebp - 0xc], 0x405c3a
mov dword [ebp - 8], str.freeaddrinfo
mov dword [ebp - 4], fcn.00405940
jne 0x405f48
push 0x104
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x405f3e
lea eax, [ebp - 0x230]
push eax
mov esi, 0x10c
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0049af7a
push str.ws2_32
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0049afd9
mov ebx, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
add esp, 0x18
lea eax, [ebp - 0x128]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x405eab
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
jne 0x405ea7
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor edi, edi
test edi, edi
jne 0x405f00
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0049af7a
push str.wship6
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0049afd9
add esp, 0x18
lea eax, [ebp - 0x128]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x405f3e
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
jne 0x405efc
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor edi, edi
test edi, edi
je 0x405f3e
xor esi, esi
push dword [ebp + esi*8 - 0x18]
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp + esi*8 - 0x14], eax
test eax, eax
je 0x405f1d
inc esi
cmp esi, 3
jl 0x405f02
jmp 0x405f26
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor edi, edi
test edi, edi
je 0x405f3e
xor eax, eax
mov ecx, dword [ebp + eax - 0x14]
mov dword [eax + 0x4d43b8], ecx
add eax, 8
cmp eax, 0x18
jl 0x405f2c
mov dword [0x4d71c0], 1
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x4d43b8]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4086ee
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor ebx, ebx
mov eax, dword [edi + 0x20]
cmp ebx, eax
jae 0x40870c
mov ecx, dword [edi + 0x18]
cmp byte [ecx + ebx], 0
je 0x408752
inc ebx
cmp ebx, eax
jb 0x408701
cmp eax, dword [edi + 0x1c]
jne 0x40872e
lea esi, [edi + 0x18]
mov eax, dword [esi + 4]
test eax, eax
je 0x40871f
add eax, eax
jmp 0x408724
mov eax, 0x800
push eax
call fcn.004091e8
test eax, eax
jne 0x40875d
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x1c]
push 0
sub ecx, eax
push ecx
mov ecx, dword [edi + 0x18]
add ecx, eax
push ecx
push dword [edi + 0x10]
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
je 0x40875d
add dword [edi + 0x20], eax
jmp 0x4086f7
test ebp, ebp
je 0x408759
mov dword [ebp], ebx
xor eax, eax
jmp 0x408768
push str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.00408b3a
pop ecx
pop esi
pop ebp
pop ebx
ret 4
Function at 0x40876e
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
push 0xa
lea eax, [esp + 0x10]
push eax
mov edi, ecx
mov eax, dword [edi + 0x30]
add eax, 0x26
push eax
call fcn.0049a53a
lea eax, [esp + 0x18]
push 0
push eax
call fcn.0049ab00
push str.__xml_version_1.0__encoding_UTF_8___
lea esi, [eax + 1]
push 0x4b0c8c
push esi
call fcn.0049a320
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]
push eax
push dword [edi + 0x10]
call esi
cmp eax, 0xffffffff
je 0x4087fe
xor eax, eax
push 0x4af9ac
inc eax
lea ecx, [edi + 0x28]
call fcn.00408db2
test eax, eax
jne 0x4087fe
push eax
push dword [edi + 0x30]
push dword [edi + 0x28]
push dword [edi + 0x10]
call esi
cmp eax, 0xffffffff
je 0x4087fe
and dword [edi + 0x30], 0
and dword [edi + 0x34], 0
xor eax, eax
jmp 0x408809
push str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.00408b3a
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408b80
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
mov ebx, ecx
cmp eax, 0xffffffff
jne 0x408b9e
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408b95
sub eax, edx
mov dword [ebp - 4], eax
cmp eax, 2
jbe 0x408c19
push 3
add eax, 0xfffffffd
xor edx, edx
pop ecx
div ecx
inc eax
mov dword [ebp - 8], eax
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 2]
shl ecx, 8
or ecx, eax
sub dword [ebp - 4], 3
mov eax, ecx
shr eax, 0x12
push 0x3f
pop edx
and eax, edx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + esi], al
mov eax, ecx
shr eax, 0xc
and eax, edx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + esi + 1], al
mov eax, ecx
shr eax, 6
and eax, edx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and ecx, edx
mov byte [edi + esi + 2], al
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + esi + 3], al
add ebx, 3
add esi, 4
dec dword [ebp - 8]
jne 0x408bb4
cmp dword [ebp - 4], 0
jbe 0x408c78
movzx ecx, byte [ebx]
shl ecx, 0x10
cmp dword [ebp - 4], 1
jbe 0x408c34
movzx eax, byte [ebx + 1]
shl eax, 8
or ecx, eax
mov edx, ecx
shr edx, 0x12
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
lea eax, [esi + edi]
mov byte [eax], dl
mov edx, ecx
shr edx, 0xc
and edx, 0x3f
cmp dword [ebp - 4], 1
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], dl
jbe 0x408c6c
shr ecx, 6
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x408c6e
mov cl, 0x3d
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
add esi, 4
mov byte [esi + edi], 0
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40e2c0
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 [0x4d87d0], 0
push esi
push edi
mov byte [esp + 0x1e], al
je 0x40e2e4
mov byte [esp + 0x1e], 1
mov al, byte [esp + 0x1e]
cmp dword [0x4d87d4], 0
je 0x40e2f3
or al, 2
mov byte [esp + 0x1e], al
cmp byte [ebp + 8], al
je 0x40e500
test al, al
jne 0x40e336
cmp byte [ebp + 0xc], al
jne 0x40e336
push 0x4d75a0
push 0
push 0
push 0x40e5f0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x4d8ed0], eax
test eax, eax
je 0x40e3c7
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 [0x4d75a0]
push edi
push ebx
push 0x417
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x40e36c
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
inc esi
cmp esi, 0x32
jl 0x40e346
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov byte [esp + 0x1f], 0
call edi
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, eax
cmp byte [ebp + 8], 0
je 0x40e3d3
push 1
push 0x417
push 0x417
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x40e43a
cmp dword [esp + 0x2c], 0
je 0x40e3e2
mov byte [esp + 0x1f], 1
call fcn.0040e970
test al, al
jne 0x40e3e2
cmp byte [ebp + 0xc], al
jne 0x40e4ce
mov byte [ebp + 8], al
jmp 0x40e381
call fcn.0040e990
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x40e41e
call fcn.0040e970
test al, al
jne 0x40e43a
cmp byte [ebp + 0xc], 0
jne 0x40e4c7
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [0x4d87d0], 0
mov esi, dword [sym.imp.KERNEL32.DLL_CreateMutexW]
je 0x40e472
test byte [esp + 0x1e], 1
jne 0x40e48b
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4d8ec8], eax
jmp 0x40e48b
mov ecx, dword [0x4d8ed0]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
jne 0x40e452
call edi
sub eax, ebx
cmp eax, 0x1f4
ja 0x40e3e2
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x40e381
mov edx, dword [0x4d8ed0]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edx
call edi
mov dword [0x4d8ed0], 0
call fcn.0040e990
jmp 0x40e3f2
test byte [esp + 0x1e], 1
je 0x40e48b
mov eax, dword [0x4d8ec8]
push eax
call edi
mov dword [0x4d8ec8], 0
cmp dword [0x4d87d4], 0
je 0x40e4ad
test byte [esp + 0x1e], 2
jne 0x40e4c7
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4d8ecc], eax
jmp 0x40e4c7
test byte [esp + 0x1e], 2
je 0x40e4c7
mov ecx, dword [0x4d8ecc]
push ecx
call edi
mov dword [0x4d8ecc], 0
cmp byte [esp + 0x1f], 0
je 0x40e500
fldz
sub esp, 8
fstp qword [esp]
mov dword [0x4d4a1c], 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.00484530
add esp, 0x18
mov dword [0x4d4a1c], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret