joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5060b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x28]
mov edi, dword [esi + 0x24]
test eax, eax
jle 0x5060e9
mov edx, edi
sub edx, eax
test edx, edx
jle 0x5060dd
mov ecx, dword [esi + 0x1c]
add eax, ecx
push edx
push eax
push ecx
call fcn.005db1f0
mov edi, dword [esi + 0x24]
add esp, 0xc
mov eax, dword [esi + 0x28]
sub edi, eax
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], edi
mov ebx, dword [esi + 0x20]
mov ecx, esi
sub ebx, edi
call fcn.00505c90
test al, al
je 0x506191
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
sub eax, ecx
cmp eax, ebx
cmovge eax, ebx
test eax, eax
jle 0x5061bb
push 0
push eax
mov eax, dword [esi + 0x10]
add eax, ecx
push eax
push dword [esi + 0x6c]
call sub.WS2_32.dll_recv
mov edi, eax
test edi, edi
jns 0x50613b
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x506141
pop edi
pop esi
xor al, al
pop ebx
ret
je 0x5061c3
add dword [esi + 0x14], edi
mov edi, dword [esi + 0x14]
cmp edi, 8
jl 0x5061bb
and edi, 0xfffffff8
lea eax, [esi + 0x5a]
push edi
push eax
mov eax, dword [esi + 0x1c]
push dword [esi + 0x10]
add eax, dword [esi + 0x24]
push eax
call fcn.004f7660
add dword [esi + 0x24], eax
add esp, 0x10
mov eax, dword [esi + 0x14]
cmp eax, edi
jle 0x506186
mov ecx, dword [esi + 0x10]
sub eax, edi
push eax
lea eax, [ecx + edi]
push eax
push ecx
call fcn.005db1f0
mov eax, dword [esi + 0x14]
add esp, 0xc
sub eax, edi
pop edi
mov dword [esi + 0x14], eax
mov al, 1
pop esi
pop ebx
ret
test ebx, ebx
jle 0x5061bb
mov eax, dword [esi + 0x1c]
push 0
push ebx
add eax, edi
push eax
push dword [esi + 0x6c]
call sub.WS2_32.dll_recv
mov edi, eax
test edi, edi
jns 0x5061c1
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x5061c3
add dword [esi + 0x24], edi
pop edi
pop esi
mov al, 1
pop ebx
ret
jne 0x5061b8
pop edi
pop esi
xor al, al
pop ebx
ret

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

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00505c90
mov ecx, esi
test al, al
je 0x506258
call fcn.00506060
mov edi, eax
test edi, edi
jle 0x506286
mov eax, dword [esi + 0x2c]
lea ecx, [esi + 0x4a]
add eax, dword [esi + 0x38]
push edi
push ecx
push eax
mov eax, dword [esi + 0x3c]
add eax, dword [esi + 0x44]
push eax
call fcn.004f76c0
add dword [esi + 0x44], eax
add esp, 0x10
mov eax, dword [esi + 0x44]
add dword [esi + 0x38], edi
test eax, eax
jle 0x50627f
push 0
push eax
push dword [esi + 0x3c]
push dword [esi + 0x6c]
call sub.WS2_32.dll_send
mov edi, eax
test edi, edi
js 0x506277
mov edx, dword [esi + 0x44]
cmp edx, edi
jle 0x506247
mov ecx, dword [esi + 0x3c]
sub edx, edi
push edx
lea eax, [ecx + edi]
push eax
push ecx
call fcn.005db1f0
mov edx, dword [esi + 0x44]
add esp, 0xc
sub edx, edi
mov ecx, esi
mov dword [esi + 0x44], edx
call fcn.00506070
pop edi
mov al, 1
pop esi
ret
call fcn.00506060
test eax, eax
jle 0x506286
push 0
push eax
mov eax, dword [esi + 0x2c]
add eax, dword [esi + 0x38]
push eax
push dword [esi + 0x6c]
call sub.WS2_32.dll_send
test eax, eax
jns 0x50627c
pop edi
xor al, al
pop esi
ret
add dword [esi + 0x38], eax
mov ecx, esi
call fcn.00506070
pop edi
mov al, 1
pop esi
ret
Function at 0x50ffb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61dd60
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x69bd40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], 0
lea esi, [edi + 0x1c]
mov dword [ebp - 4], 0
push 0x20
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0059df22
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, edi
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f8ac0

Function at 0x512d30
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x616b10
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x69bd40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], vtable.CGraphicTextInstance.0
call fcn.00512fe0
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x512db4
mov eax, dword [esi + 0x78]
sub eax, ecx
sar eax, 3
lea edx, [eax*8]
cmp edx, 0x1000
jb 0x512d95
mov edi, dword [ecx - 4]
add edx, 0x23
sub ecx, edi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x512ecf
mov ecx, edi
push edx
push ecx
call fcn.0059df52
mov dword [esi + 0x70], 0
add esp, 8
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
lea ecx, [esi + 0x64]
call fcn.00512ca0
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x512e0f
mov eax, dword [esi + 0x60]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
cmp edx, 0x1000
jb 0x512df0
mov edi, dword [ecx - 4]
add edx, 0x23
sub ecx, edi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x512ecf
mov ecx, edi
push edx
push ecx
call fcn.0059df52
mov dword [esi + 0x58], 0
add esp, 8
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x512e62
mov eax, dword [esi + 0x54]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
cmp edx, 0x1000
jb 0x512e43
mov edi, dword [ecx - 4]
add edx, 0x23
sub ecx, edi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x512ecf
mov ecx, edi
push edx
push ecx
call fcn.0059df52
mov dword [esi + 0x4c], 0
add esp, 8
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov ecx, dword [esi + 0x48]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x512e7c
call fcn.0050a360
mov dword [esi + 0x48], 0
mov ecx, dword [esi + 0x34]
cmp ecx, 0x10
jb 0x512eac
mov eax, dword [esi + 0x20]
inc ecx
cmp ecx, 0x1000
jb 0x512ea2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x512ecf
mov eax, edx
push ecx
push eax
call fcn.0059df52
add esp, 8
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0xf
mov byte [esi + 0x20], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.005e5408
int3
Function at 0x51a100
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
mov byte [ecx + 0x19], al
mov ecx, dword [ecx + 4]
test al, al
je 0x51a11d
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 4
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 4

Function at 0x51bc90
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61e25e
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x69bd40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.0050f4c0
mov dword [ebp - 4], 0
mov dword [edi + 4], vtable.CLightBase.0
mov eax, edi
mov dword [edi + 8], vtable.CSingleton_class_CLightManager_.0
mov dword [0x6adf64], eax
mov dword [edi], vtable.CLightManager.0
lea esi, [edi + 0xc]
mov dword [edi + 4], vtable.CLightManager.1.0
mov dword [edi + 8], vtable.CLightManager.2.0
push 8
mov byte [ebp - 4], 2
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.0059df22
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
lea esi, [edi + 0x20]
mov byte [ebp - 4], 3
push 0x18
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0059df22
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
unpcklps xmm0, xmm0
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x48], vtable.CDynamicPool_class_CLight_.0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
movq qword [edi + 0x34], xmm0
mov dword [edi + 0x3c], eax
mov eax, edi
mov dword [edi + 0x40], 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x51cf60
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x69bd40]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x6e0bcc], eax
cmp dword [0x6e28f4], eax
je 0x51d0ac
push 8
lea ecx, [ebp - 0x18]
mov dword [0x6e28f4], eax
push ecx
push 0x1004
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.0051fdf0
add esp, 0xc
mov dword [0x6e28c4], eax
cmp dword [0x68c15c], eax
je 0x51d0ac
push 0x6e0bd0
mov dword [0x68c15c], eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
movzx ecx, word [0x6e0bcc]
mov eax, ecx
and eax, 0x3ff
sub eax, 4
je 0x51d018
sub eax, 0xd
je 0x51d005
sub eax, 1
jne case.default.0x51d02a
mov byte [0x6e0bda], al
mov dword [0x6e20a4], 0x68c13e
jmp 0x51d091
mov byte [0x6e0bda], 1
mov dword [0x6e20a4], 0x68c144
jmp 0x51d091
mov eax, ecx
mov byte [0x6e0bda], 1
shr eax, 0xa
dec eax
cmp eax, 4
ja case.default.0x51d02a
jmp dword [eax*4 + 0x51d0bc]
mov byte [0x6e0bda], 0
mov dword [0x6e20a4], 0x68c132
jmp 0x51d091
mov dword [0x6e20a4], 0x68c138
jmp 0x51d091
push 0xa
lea eax, [ebp - 0x10]
mov dword [0x6e20a4], 0x68c12c
push eax
push 3
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov eax, dword [0x6e20a4]
movsx cx, byte [ebp - 0x10]
mov word [eax], cx
movsx ax, byte [ebp - 0xf]
movzx eax, ax
push eax
call fcn.005f3ffb
mov ecx, dword [0x6e20a4]
add esp, 4
mov word [ecx + 2], ax
cmp dword [0x6e28c0], 0x4e8
je 0x51d0ac
mov eax, dword [0x6e28c4]
mov dword [0x6e28c0], eax
call fcn.0051d1a0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059df60
mov esp, ebp
pop ebp
ret
Function at 0x51d8a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x69bd40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, 2
jae 0x51daed
mov ecx, dword [0x6e0bcc]
cmp dword [0x6e28f0], ecx
je 0x51db3b
cmp byte [0x6e0bc2], 0
mov eax, 0x404
mov dword [0x6e28f0], ecx
je 0x51d90b
cmp cx, ax
jne 0x51d90b
mov dword [0x6e0c7c], 0x7000404
mov eax, 0x7000404
mov dword [0x6e0c80], 0
jmp 0x51daef
cmp ecx, 0xe0080404
je 0x51d937
cmp ecx, 0xe0090404
je 0x51d937
cmp ecx, 0xe00a0404
je 0x51d937
cmp ecx, 0xe00b0404
je 0x51d937
cmp ecx, 0xe00e0804
jne 0x51dad9
push 0x3ff
lea eax, [ebp - 0x404]
push eax
push ecx
call sub.IMM32.dll_ImmGetIMEFileNameA
test eax, eax
je 0x51dad9
cmp dword [0x6e0bb8], 0
jne 0x51d9fe
mov esi, dword [sym.imp.KERNEL32.dll_CompareStringA]
lea eax, [ebp - 0x404]
push 0xffffffffffffffff
push str.TINTLGNT.IME
push 0xffffffffffffffff
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x51d9fe
push 0xffffffffffffffff
push str.CINTLGNT.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x51d9fe
push 0xffffffffffffffff
push str.MSTCIPHA.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x51d9fe
push 0xffffffffffffffff
push str.PINTLGNT.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x51d9fe
push 0xffffffffffffffff
push str.MSSCIPYA.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push 1
push 0x409
call esi
cmp eax, 2
jne 0x51dad9
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x404]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
movzx esi, word [0x6e0bcc]
mov ebx, eax
test ebx, ebx
je 0x51dad9
call fcn.0059e980
mov eax, esp
push eax
push ebx
push dword [ebp - 0x408]
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x404]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x51dad9
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
push 0x63fbfc
push dword [ebp - 0x40c]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x51dad9
mov edx, dword [ebp - 0x410]
mov eax, dword [edx + 8]
movzx ecx, al
and eax, 0xffff0000
shl ecx, 8
or ecx, eax
shl ecx, 8
cmp dword [0x6e0bb8], 0
jne 0x51db2a
mov eax, 0x404
cmp si, ax
jne 0x51db08
cmp ecx, 0x4020000
je 0x51db2a
cmp ecx, 0x4030000
je 0x51db2a
cmp ecx, 0x4040000
je 0x51db2a
cmp ecx, 0x5000000
je 0x51db2a
cmp ecx, 0x5010000
je 0x51db2a
cmp ecx, 0x5020000
je 0x51db2a
cmp ecx, 0x6000000
je 0x51db2a
mov dword [0x6e0c80], 0
mov dword [0x6e0c7c], 0
xor eax, eax
lea esp, [ebp - 0x420]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059df60
mov esp, ebp
pop ebp
ret 4
mov eax, 0x804
cmp si, ax
jne 0x51dad9
cmp ecx, 0x4010000
je 0x51db2a
cmp ecx, 0x4020000
je 0x51db2a
cmp ecx, 0x5030000
jne 0x51dad9
mov eax, esi
or eax, ecx
mov dword [0x6e0c7c], eax
mov eax, dword [edx + 0xc]
mov dword [0x6e0c80], eax
mov eax, dword [edi*4 + 0x6e0c7c]
jmp 0x51daef
Function at 0x51dc50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x69bd40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6e0bcc]
push ebx
cmp eax, 0xe00e0804
je 0x51de1e
cmp eax, 0xe0090404
je 0x51de1e
mov ebx, dword [0x6e0c7c]
test ebx, ebx
je 0x51de1e
xor cl, cl
mov edx, 0x404
mov byte [ebp - 0x109], cl
cmp ax, dx
jne 0x51de0d
movups xmm0, xmmword [str.softwaremicrosoftwindowscurrentversion_]
mov ax, word [0x641fac]
and ebx, 0xffff0000
mov word [ebp - 0xe0], ax
cmp ebx, 0x5010000
mov al, byte [0x641fae]
mov edx, str.MSTCIPH
movups xmmword [ebp - 0x108], xmm0
mov byte [ebp - 0xde], al
mov eax, str.TINTLGNT
movups xmm0, xmmword [0x641f94]
push esi
cmovb edx, eax
movups xmmword [ebp - 0xf8], xmm0
mov esi, edx
movq xmm0, qword [0x641fa4]
push edi
movq qword [ebp - 0xe8], xmm0
mov al, byte [edx]
inc edx
test al, al
jne 0x51dd04
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x51dd14
mov ecx, edx
lea eax, [ebp - 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
push 0x20019
push 0
mov ecx, edx
lea eax, [ebp - 0x108]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
jne 0x51ddf8
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 4
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
push 0
push str.Keyboard_Mapping
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x51ddd5
mov eax, dword [ebp - 0x118]
cmp ebx, 0x5000000
ja 0x51dda0
cmp al, 0x22
je 0x51ddb6
cmp al, 0x23
je 0x51ddb6
cmp ebx, 0x5010000
je 0x51ddb0
cmp ebx, 0x5020000
jne 0x51ddd5
sub al, 0x22
cmp al, 2
ja 0x51ddd5
push dword [ebp - 0x110]
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059df60
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x110]
mov bl, byte [ebp - 0x109]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059df60
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0x109]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059df60
mov esp, ebp
pop ebp
ret
mov al, cl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059df60
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop ebx
call fcn.0059df60
mov esp, ebp
pop ebp
ret
Function at 0x51e040
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x69bd40]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x6e0bc0], 0
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
jne 0x51e208
cmp byte [0x6e28d8], 0
mov dword [0x6e0bc8], eax
jne 0x51e0a2
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x51e0a2
push 0x6e28d4
push 0x641eb4
push 1
push 0
push 0x64b828
mov byte [0x6e28d8], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
push 0x6e0be0
mov dword [0x6e0be0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x105
lea eax, [ebp - 0x10c]
mov byte [0x6e0bc1], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x51e18a
lea ecx, [ebp - 0x10c]
dec ecx
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x51e0e0
mov eax, dword [0x641ec4]
mov dword [ecx], eax
mov eax, dword [0x641ec8]
mov dword [ecx + 4], eax
mov ax, word [0x641ecc]
mov word [ecx + 8], ax
mov al, byte [0x641ece]
mov byte [ecx + 0xa], al
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x6e0bdc], eax
test eax, eax
je 0x51e183
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ImmLockIMC
push eax
call esi
push str.ImmUnlockIMC
push dword [0x6e0bdc]
mov dword [0x6e0ba8], eax
call esi
push str.ImmLockIMCC
push dword [0x6e0bdc]
mov dword [0x6e0bac], eax
call esi
push str.ImmUnlockIMCC
push dword [0x6e0bdc]
mov dword [0x6e0bb0], eax
call esi
push str.ImmDisableTextFrameService
push dword [0x6e0bdc]
mov dword [0x6e0bb4], eax
call esi
pop esi
test eax, eax
je 0x51e18a
push 0xffffffffffffffff
call eax
jmp 0x51e18a
mov byte [0x6e0bc1], 1
push dword [0x6e0bc8]
mov byte [0x6e0bc0], 1
call sub.IMM32.dll_ImmGetContext
push eax
mov dword [edi + 4], eax
push dword [0x6e0bc8]
call sub.IMM32.dll_ImmReleaseContext
call fcn.0051cf60
call fcn.0051cf20
push 2
call fcn.0051f1a0
add esp, 4
call fcn.0051f560
test eax, eax
setne byte [0x6e0bc2]
call fcn.0051d0d0
cmp byte [0x6e0bc2], 0
je 0x51e208
mov eax, dword [0x6e0bcc]
and eax, 0x3ff
cmp eax, 4
jne 0x51e1f7
call fcn.0051d310
test eax, eax
je 0x51e1f7
mov al, 1
jmp 0x51e1f9
xor al, al
push 0
mov byte [0x6e0bc5], al
call fcn.0051f720
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop edi
call fcn.0059df60
mov esp, ebp
pop ebp
ret 4
Function at 0x51e8b0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61e360
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x69bd40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x834], eax
cmp byte [eax + 0x20], 0
je 0x51ead0
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x51ead0
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
mov dword [ebp - 0x830], ebx
test ebx, ebx
je 0x51e92e
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov dword [ebp - 0x82c], edi
test edi, edi
jne 0x51e939
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x51ead0
mov esi, edi
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 0xf
mov byte [ebp - 0x828], 0
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x51e963
sub esi, ecx
cmp esi, 0xf
ja 0x51e992
push esi
lea eax, [ebp - 0x828]
mov dword [ebp - 0x818], esi
push edi
push eax
call fcn.005db1f0
mov byte [ebp + esi - 0x828], 0
jmp 0x51ea1f
cmp esi, 0x7fffffff
ja 0x51eaec
mov edi, esi
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x51e9c2
mov eax, connect
mov edi, closesocket
push eax
call fcn.0043c2b0
add esp, 4
mov ebx, eax
jmp 0x51e9f6
mov eax, 0x16
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x1000
jb 0x51e9e3
push eax
call fcn.0043c2b0
add esp, 4
mov ebx, eax
jmp 0x51e9f6
test eax, eax
je 0x51e9f4
push eax
call fcn.0059df22
add esp, 4
mov ebx, eax
jmp 0x51e9f6
xor ebx, ebx
push esi
push dword [ebp - 0x82c]
mov dword [ebp - 0x818], esi
push ebx
mov dword [ebp - 0x814], edi
call fcn.005db1f0
mov byte [ebx + esi], 0
mov dword [ebp - 0x828], ebx
mov ebx, dword [ebp - 0x830]
add esp, 0xc
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 0x818]
test eax, eax
je 0x51ea9a
cmp dword [ebp - 0x814], 0x10
lea ecx, [ebp - 0x828]
push 0x400
cmovae ecx, dword [ebp - 0x828]
lea edx, [ebp - 0x810]
push edx
add eax, ecx
sub eax, ecx
push eax
push ecx
push 0
push dword [0x6e28c4]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x51ea9a
mov ecx, dword [ebp - 0x834]
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.0051e220
mov ecx, dword [0x6e20a8]
test ecx, ecx
je 0x51ea9a
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x814]
cmp edx, 0x10
jb 0x51ead0
mov ecx, dword [ebp - 0x828]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x51eac6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51eaf1
push edx
push ecx
call fcn.0059df52
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059df60
mov esp, ebp
pop ebp
ret
call fcn.00456a40
call fcn.005e5408
int3
Function at 0x524e90
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x524ea9
xor al, al
pop esi
pop ebp
ret 4
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 4], eax
mov al, 1
pop esi
pop ebp
ret 4