joyce8/EMBER2024-capa huggingface dataset:
Function at 0x500630
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00500540
mov edi, eax
test edi, edi
jle 0x500689
mov ecx, esi
call fcn.004424c0
test al, al
je 0x500664
mov edx, dword [esi + 0x38]
add edx, dword [esi + 0x2c]
cmp byte [esi + 0x4c], 0
je 0x500664
mov ecx, dword [esi + 0x50]
add ecx, 4
push edi
push edx
push edx
mov eax, dword [ecx]
call dword [eax + 0x20]
mov eax, dword [esi + 0x2c]
add eax, dword [esi + 0x38]
push 0
push edi
push eax
push dword [esi + 0x5c]
call sub.WS2_32.dll_send
test eax, eax
jns 0x50067f
pop edi
xor al, al
pop esi
ret
add dword [esi + 0x38], eax
mov ecx, esi
call fcn.00500550
pop edi
mov al, 1
pop esi
ret
Function at 0x50ad80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
mov eax, dword [0x6cd498]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x1a0], ecx
mov dword [ebp - 0x1a4], eax
call fcn.0050aed0
push esi
push edi
push 0x50af80
push ebx
push dword [ebp - 0x19c]
mov ebx, dword [ebp - 0x1a0]
mov ecx, ebx
call fcn.0050aff0
push 0
push dword [0x716014]
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x1a4]
push dword [ebp - 0x1a8]
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebx + 4], eax
test eax, eax
je 0x50aeb2
lea eax, [ebp - 0x198]
mov dword [ebp - 0x198], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x194], 6
jne 0x50ae5e
cmp dword [ebp - 0x190], 1
jae 0x50ae60
push ebx
push 0xffffffffffffffeb
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowLongA]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059c8be
mov esp, ebp
pop ebp
ret 0x18
jbe 0x50ae91
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.MyMetin2AppID_u
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.0050b330
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHELL32.dll_SetCurrentProcessExplicitAppUserModelID]
test eax, eax
js 0x50aeb2
push ebx
push 0xffffffffffffffeb
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowLongA]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059c8be
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059c8be
mov esp, ebp
pop ebp
ret 0x18

Function at 0x50b290
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 0x50b2ad
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 0x50b800
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63f6fe
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x6cd498]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.0050a2a0
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 [0x6e3700], 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.0059c8fd
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.0059c8fd
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 0x50e4c0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63ead0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6cd498]
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.0050e7d0
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je 0x50e54d
mov eax, dword [esi + 0x84]
sub eax, ecx
sar eax, 3
lea edx, [eax*8]
cmp edx, 0x1000
jb 0x50e528
mov edi, dword [ecx - 4]
add edx, 0x23
sub ecx, edi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x50e6bb
mov ecx, edi
push edx
push ecx
call fcn.0059c8ef
mov dword [esi + 0x7c], 0
add esp, 8
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x50e5a0
mov eax, dword [esi + 0x78]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
cmp edx, 0x1000
jb 0x50e581
mov edi, dword [ecx - 4]
add edx, 0x23
sub ecx, edi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x50e6bb
mov ecx, edi
push edx
push ecx
call fcn.0059c8ef
mov dword [esi + 0x70], 0
add esp, 8
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
lea ecx, [esi + 0x64]
call fcn.0050e430
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x50e5fb
mov eax, dword [esi + 0x60]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
cmp edx, 0x1000
jb 0x50e5dc
mov edi, dword [ecx - 4]
add edx, 0x23
sub ecx, edi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x50e6bb
mov ecx, edi
push edx
push ecx
call fcn.0059c8ef
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 0x50e64e
mov eax, dword [esi + 0x54]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
cmp edx, 0x1000
jb 0x50e62f
mov edi, dword [ecx - 4]
add edx, 0x23
sub ecx, edi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x50e6bb
mov ecx, edi
push edx
push ecx
call fcn.0059c8ef
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 0x50e668
call fcn.005052b0
mov dword [esi + 0x48], 0
mov ecx, dword [esi + 0x34]
cmp ecx, 0x10
jb 0x50e698
mov eax, dword [esi + 0x20]
inc ecx
cmp ecx, 0x1000
jb 0x50e68e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50e6bb
mov eax, edx
push ecx
push eax
call fcn.0059c8ef
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.005e1eb2
int3
Function at 0x511f30
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6cd498]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x7162ac], eax
cmp dword [0x717fe4], eax
je 0x51207c
push 8
lea ecx, [ebp - 0x18]
mov dword [0x717fe4], 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.00514db0
add esp, 0xc
mov dword [0x717fa4], eax
cmp dword [0x6bd874], eax
je 0x51207c
push 0x7162b0
mov dword [0x6bd874], eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
movzx ecx, word [0x7162ac]
mov eax, ecx
and eax, 0x3ff
sub eax, 4
je 0x511fe8
sub eax, 0xd
je 0x511fd5
sub eax, 1
jne case.default.0x511ffa
mov byte [0x7162ba], al
mov dword [0x717784], 0x6bd856
jmp 0x512061
mov byte [0x7162ba], 1
mov dword [0x717784], 0x6bd85c
jmp 0x512061
mov eax, ecx
mov byte [0x7162ba], 1
shr eax, 0xa
dec eax
cmp eax, 4
ja case.default.0x511ffa
jmp dword [eax*4 + 0x51208c]
mov byte [0x7162ba], 0
mov dword [0x717784], 0x6bd84a
jmp 0x512061
mov dword [0x717784], 0x6bd850
jmp 0x512061
push 0xa
lea eax, [ebp - 0x10]
mov dword [0x717784], 0x6bd844
push eax
push 3
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov eax, dword [0x717784]
movsx cx, byte [ebp - 0x10]
mov word [eax], cx
movsx ax, byte [ebp - 0xf]
movzx eax, ax
push eax
call fcn.005f093c
mov ecx, dword [0x717784]
add esp, 4
mov word [ecx + 2], ax
cmp dword [0x717fa0], 0x4e8
je 0x51207c
mov eax, dword [0x717fa4]
mov dword [0x717fa0], eax
call fcn.00512170
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059c8be
mov esp, ebp
pop ebp
ret
Function at 0x512870
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x6cd498]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, 2
jae 0x512abd
mov ecx, dword [0x7162ac]
cmp dword [0x717fe0], ecx
je 0x512b0b
cmp byte [0x7162a2], 0
mov eax, 0x404
mov dword [0x717fe0], ecx
je 0x5128db
cmp cx, ax
jne 0x5128db
mov dword [0x71635c], 0x7000404
mov eax, 0x7000404
mov dword [0x716360], 0
jmp 0x512abf
cmp ecx, 0xe0080404
je 0x512907
cmp ecx, 0xe0090404
je 0x512907
cmp ecx, 0xe00a0404
je 0x512907
cmp ecx, 0xe00b0404
je 0x512907
cmp ecx, 0xe00e0804
jne 0x512aa9
push 0x3ff
lea eax, [ebp - 0x404]
push eax
push ecx
call sub.IMM32.dll_ImmGetIMEFileNameA
test eax, eax
je 0x512aa9
cmp dword [0x716298], 0
jne 0x5129ce
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 0x5129ce
push 0xffffffffffffffff
push str.CINTLGNT.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x5129ce
push 0xffffffffffffffff
push str.MSTCIPHA.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x5129ce
push 0xffffffffffffffff
push str.PINTLGNT.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x5129ce
push 0xffffffffffffffff
push str.MSSCIPYA.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push 1
push 0x409
call esi
cmp eax, 2
jne 0x512aa9
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x404]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
movzx esi, word [0x7162ac]
mov ebx, eax
test ebx, ebx
je 0x512aa9
call fcn.0059d670
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 0x512aa9
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
push 0x69427c
push dword [ebp - 0x40c]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x512aa9
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 [0x716298], 0
jne 0x512afa
mov eax, 0x404
cmp si, ax
jne 0x512ad8
cmp ecx, 0x4020000
je 0x512afa
cmp ecx, 0x4030000
je 0x512afa
cmp ecx, 0x4040000
je 0x512afa
cmp ecx, 0x5000000
je 0x512afa
cmp ecx, 0x5010000
je 0x512afa
cmp ecx, 0x5020000
je 0x512afa
cmp ecx, 0x6000000
je 0x512afa
mov dword [0x716360], 0
mov dword [0x71635c], 0
xor eax, eax
lea esp, [ebp - 0x420]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059c8be
mov esp, ebp
pop ebp
ret 4
mov eax, 0x804
cmp si, ax
jne 0x512aa9
cmp ecx, 0x4010000
je 0x512afa
cmp ecx, 0x4020000
je 0x512afa
cmp ecx, 0x5030000
jne 0x512aa9
mov eax, esi
or eax, ecx
mov dword [0x71635c], eax
mov eax, dword [edx + 0xc]
mov dword [0x716360], eax
mov eax, dword [edi*4 + 0x71635c]
jmp 0x512abf
Function at 0x512c20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x6cd498]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x7162ac]
push ebx
cmp eax, 0xe00e0804
je 0x512dee
cmp eax, 0xe0090404
je 0x512dee
mov ebx, dword [0x71635c]
test ebx, ebx
je 0x512dee
xor cl, cl
mov edx, 0x404
mov byte [ebp - 0x109], cl
cmp ax, dx
jne 0x512ddd
movups xmm0, xmmword [str.softwaremicrosoftwindowscurrentversion_]
mov ax, word [0x64fba8]
and ebx, 0xffff0000
mov word [ebp - 0xe0], ax
cmp ebx, 0x5010000
mov al, byte [0x64fbaa]
mov edx, str.MSTCIPH
movups xmmword [ebp - 0x108], xmm0
mov byte [ebp - 0xde], al
mov eax, str.TINTLGNT
movups xmm0, xmmword [0x64fb90]
push esi
cmovb edx, eax
movups xmmword [ebp - 0xf8], xmm0
mov esi, edx
movq xmm0, qword [0x64fba0]
push edi
movq qword [ebp - 0xe8], xmm0
mov al, byte [edx]
inc edx
test al, al
jne 0x512cd4
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x512ce4
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 0x512dc8
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 0x512da5
mov eax, dword [ebp - 0x118]
cmp ebx, 0x5000000
ja 0x512d70
cmp al, 0x22
je 0x512d86
cmp al, 0x23
je 0x512d86
cmp ebx, 0x5010000
je 0x512d80
cmp ebx, 0x5020000
jne 0x512da5
sub al, 0x22
cmp al, 2
ja 0x512da5
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.0059c8be
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.0059c8be
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0x109]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059c8be
mov esp, ebp
pop ebp
ret
mov al, cl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059c8be
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop ebx
call fcn.0059c8be
mov esp, ebp
pop ebp
ret
Function at 0x513880
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63fa50
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x6cd498]
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 0x513aa0
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x513aa0
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
mov dword [ebp - 0x830], ebx
test ebx, ebx
je 0x5138fe
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov dword [ebp - 0x82c], edi
test edi, edi
jne 0x513909
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x513aa0
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 0x513933
sub esi, ecx
cmp esi, 0xf
ja 0x513962
push esi
lea eax, [ebp - 0x828]
mov dword [ebp - 0x818], esi
push edi
push eax
call fcn.005d8360
mov byte [ebp + esi - 0x828], 0
jmp 0x5139ef
cmp esi, 0x7fffffff
ja 0x513abc
mov edi, esi
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x513992
mov eax, connect
mov edi, SysReAllocString
push eax
call fcn.0043dc10
add esp, 4
mov ebx, eax
jmp 0x5139c6
mov eax, 0x16
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x1000
jb 0x5139b3
push eax
call fcn.0043dc10
add esp, 4
mov ebx, eax
jmp 0x5139c6
test eax, eax
je 0x5139c4
push eax
call fcn.0059c8fd
add esp, 4
mov ebx, eax
jmp 0x5139c6
xor ebx, ebx
push esi
push dword [ebp - 0x82c]
mov dword [ebp - 0x818], esi
push ebx
mov dword [ebp - 0x814], edi
call fcn.005d8360
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 0x513a6a
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 [0x717fa4]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x513a6a
mov ecx, dword [ebp - 0x834]
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.005131f0
mov ecx, dword [0x717788]
test ecx, ecx
je 0x513a6a
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x814]
cmp edx, 0x10
jb 0x513aa0
mov ecx, dword [ebp - 0x828]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x513a96
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x513ac1
push edx
push ecx
call fcn.0059c8ef
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.0059c8be
mov esp, ebp
pop ebp
ret
call fcn.0043daf0
call fcn.005e1eb2
int3
Function at 0x5196d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63fc00
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6cd498]
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.0059c8fd
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 0x519dc0
Capabilities:
Encode data using xor
Hash data with crc32

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

Function at 0x520020
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 0x520039
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

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

Disassembly:
push ebp
mov ebp, esp
push 0x10
lea eax, [ecx + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx + 0xc]
call sub.WS2_32.dll_sendto
test eax, eax
jns 0x520e70
push str.Failed_sending_packet_n
call fcn.004f0b30
add esp, 4
xor eax, eax
pop ebp
ret 8
mov eax, 1
pop ebp
ret 8

Function at 0x520e80
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
push 0
push 2
push 2
mov dword [ebx + 4], 1
mov word [ebx + 8], di
mov word [ebx + 0xa], si
call sub.WS2_32.dll_socket
mov dword [ebx + 0xc], eax
xorps xmm0, xmm0
movups xmmword [ebx + 0x10], xmm0
mov eax, 2
mov dword [ebx + 0x14], edi
push esi
mov word [ebx + 0x10], ax
call sub.WS2_32.dll_htons
pop edi
mov word [ebx + 0x12], ax
mov eax, 1
pop esi
pop ebx
pop ebp
ret 8
Function at 0x526290
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x640575
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6cd498]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov edi, dword [ebp + 0xc]
mov edx, edi
cmp dword [edi + 0x14], 0x10
jb 0x5262ca
mov edx, dword [edi]
mov ecx, dword [edi + 0x10]
xor ebx, ebx
add ecx, edx
mov dword [ebp + 0xc], ebx
cmp edx, ecx
jae 0x5262f3
nop dword [eax + eax]
movzx eax, byte [edx]
inc edx
imul ebx, ebx, 0x1000193
xor ebx, eax
cmp edx, ecx
jb 0x5262e0
mov dword [ebp + 0xc], ebx
movzx eax, byte [esi]
lea ecx, [esi + 1]
and eax, 1
add ecx, eax
lea eax, [ecx + 1]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push edi
push ebx
mov ecx, esi
call fcn.005264d0
mov ecx, eax
test ecx, ecx
je 0x526334
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ebx, [esi + 3]
mov dword [ebp - 0x18], 0
lea eax, [ebx + 1]
neg ebx
sbb ebx, ebx
and ebx, eax
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.005278b0
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp + 0x10]
push esi
lea ecx, [edi + 8]
call fcn.0044cc80
mov eax, dword [esi + 0x18]
lea ecx, [ebp - 0x1c]
mov dword [edi + 0x20], eax
mov dword [ebp - 0x18], 0
call fcn.005266e0
mov esi, edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], esi
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 4], 1
cmp dword [ebx + 0x14], 0
mov eax, dword [ebx + 8]
lea edi, [eax + 1]
jne 0x5263b5
push edi
mov ecx, ebx
call fcn.00527b10
mov ecx, dword [ebx + 4]
cmp ecx, eax
cmovb ecx, eax
push ecx
mov ecx, ebx
call fcn.00527740
jmp 0x5263e2
cmp edi, dword [ebx + 0x10]
jbe 0x5263e2
mov ecx, eax
mov edx, 1
shr ecx, 1
add eax, ecx
cmp edi, eax
cmovb edx, ecx
mov ecx, ebx
add edx, dword [ebx + 8]
push edx
call fcn.00527b10
cmp eax, dword [ebx + 4]
je 0x5263e2
push eax
mov ecx, ebx
call fcn.00527c70
mov eax, dword [ebp + 0xc]
xor edx, edx
div dword [ebx + 4]
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x18], 0
lea edi, [eax + edx*4]
and edx, 0x7fffffff
mov dword [esi + 4], edx
mov eax, dword [edi]
test eax, eax
jne 0x52642a
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 0x14]
lea ecx, [edx + eax*4]
mov eax, dword [ecx]
test eax, eax
je 0x526420
mov eax, dword [eax + 4]
and eax, 0x7fffffff
mov dword [edx + eax*4], esi
mov dword [edi], ecx
mov eax, dword [ecx]
mov dword [esi], eax
mov dword [ecx], esi
jmp 0x526432
mov eax, dword [eax]
mov dword [esi], eax
mov eax, dword [edi]
mov dword [eax], esi
inc dword [ebx + 8]
lea ecx, [ebp - 0x1c]
call fcn.00526700
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc