joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a1cb
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x584460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.004208ce
pop ecx
cmp eax, esi
je 0x42a2b5
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x42a2b5
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.00513a30
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x42a2b5
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x42a2b5
cmp esi, 0x14
jge 0x42a2b5
push 0x10
push 0
push edi
call fcn.00515e9e
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x42a2a4
call fcn.005139e3
cmp dword [eax], 0x22
je 0x42a2a4
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.005132ce
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x42a27a
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x5879dc], 0
jne 0x42a340
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x42a369
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.00429c49
pop ecx
pop ecx
test eax, eax
jne 0x42a36b
inc edi
cmp edi, esi
jl 0x42a346
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00511b7f
leave
ret 8

Function at 0x42b5c3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0042764c
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42b5fc
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0042b200
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x42b65a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x42b67e
cmp dword [edi + 0x74], 0
jne 0x42b67e
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0042764c
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0042b61b
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x431284
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x584460]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4312b9
xor eax, eax
jmp 0x43130c
lea eax, [ebp - 0x210]
push eax
call fcn.005132ce
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x4312ea
push 0x56441c
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005128bc
add esp, 0xc
test eax, eax
jne 0x4312b5
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005128bc
add esp, 0xc
test eax, eax
jne 0x4312b5
lea eax, [ebp - 0x210]
push eax
call fcn.004208ce
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00511b7f
leave
ret

Function at 0x44af58
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0044abfc
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x44afa2
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004235e6
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00418e60
jmp 0x44afad
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0042ff59
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x44afb4
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.004269f0
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x44aff1
call fcn.0044abfc
mov dword [esi + 0xc], 1
jmp 0x44aff6
call fcn.0044abfc
cmp dword [esi], 0
je 0x44b03f
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x44b017
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004235e6
jmp 0x44b029
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00402db0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00418e60
jmp 0x44b063
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x44b063
push dword [esi]
push dword [ebp + 8]
call fcn.0042ff59
pop esi
pop ebp
ret 0xc

Function at 0x466c3d
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004ebb8c
call fcn.00427069
cmp dword [eax + 0x14], 0
jne 0x466c5a
mov ecx, esi
pop esi
jmp fcn.00466742
pop esi
ret

Function at 0x46a174
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004e5928
call fcn.00427069
cmp dword [eax + 0x14], 0
jne 0x46a191
mov ecx, esi
pop esi
jmp fcn.00469b47
pop esi
ret

Function at 0x48085b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x480875
call fcn.0042764c
mov esi, dword [eax + 0xc]
push dword [0x5897f0]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x480893
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x48088b
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4808c0
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x48088d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00480789
mov esi, eax
jmp 0x4808b2
Function at 0x4f85f9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4f8611
mov edi, dword [esi + 0xc]
jmp 0x4f8651
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4f862a
call fcn.004257f8
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4f863f
call fcn.004257f8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4f8651
call fcn.004257f8
call fcn.0042764c
cmp dword [eax + 0x3c], 0
je 0x4f8666
push edi
mov ecx, ebx
call fcn.004f742b
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004f8513
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4f8684
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4f8690
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x511b7f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x584460]
jne 0x511b89
repz ret
jmp fcn.00518ec6
Function at 0x523d48
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x584460]
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.005188ee
and dword [ebp - 0x14], 0
cmp dword [0x58c1e4], 0
mov dword [ebp - 0x18], eax
jne 0x523dfb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x523ea3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x561288
push ebx
call edi
test eax, eax
je 0x523ea3
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x561278
push ebx
mov dword [0x58c1e4], eax
call edi
push eax
call esi
push 0x561264
push ebx
mov dword [0x58c1e8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x58c1ec], eax
call edi
push eax
call esi
mov dword [0x58c1f4], eax
test eax, eax
je 0x523dfb
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x58c1f0], eax
mov eax, dword [0x58c1f0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x523e54
cmp dword [0x58c1f4], ecx
je 0x523e54
push eax
call esi
push dword [0x58c1f4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x523e54
test ebx, ebx
je 0x523e54
call edi
test eax, eax
je 0x523e4b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x523e4b
test byte [ebp - 8], 1
jne 0x523e54
or dword [ebp + 0x10], 0x200000
jmp 0x523e87
mov eax, dword [0x58c1e8]
cmp eax, dword [ebp - 0x18]
je 0x523e87
push eax
call esi
test eax, eax
je 0x523e87
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x523e87
mov eax, dword [0x58c1ec]
cmp eax, dword [ebp - 0x18]
je 0x523e87
push eax
call esi
test eax, eax
je 0x523e87
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x58c1e4]
call esi
test eax, eax
je 0x523ea3
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x523ea5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00511b7f
leave
ret
Function at 0x10001120
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x100d00b4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x138], eax
mov eax, dword [ebp + 0x10]
push pe_nt_image_headers32
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x134]
push 0
push eax
call fcn.1006fa30
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x100011d4
lea eax, [ebp - 0x134]
mov dword [ebp - 0x134], pe_nt_image_headers32
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x100011cd
mov edi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
nop dword [eax]
nop dword [eax + eax]
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x138]
call ebx
test eax, eax
jne 0x100011bb
cmp dword [ebp - 0x11c], edi
je 0x100011e9
lea eax, [ebp - 0x134]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x100011a0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x12c]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10001ff0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
mov eax, ecx
shr eax, 1
test cl, 1
je 0x10002000
xor eax, 0xedb88320
test al, 1
je 0x1000200d
shr eax, 1
xor eax, 0xedb88320
jmp 0x1000200f
shr eax, 1
test al, 1
je 0x1000201c
shr eax, 1
xor eax, 0xedb88320
jmp 0x1000201e
shr eax, 1
test al, 1
je 0x1000202b
shr eax, 1
xor eax, 0xedb88320
jmp 0x1000202d
shr eax, 1
test al, 1
je 0x1000203a
shr eax, 1
xor eax, 0xedb88320
jmp 0x1000203c
shr eax, 1
test al, 1
je 0x10002049
shr eax, 1
xor eax, 0xedb88320
jmp 0x1000204b
shr eax, 1
test al, 1
je 0x10002058
shr eax, 1
xor eax, 0xedb88320
jmp 0x1000205a
shr eax, 1
test al, 1
je 0x10002067
shr eax, 1
xor eax, 0xedb88320
jmp 0x10002069
shr eax, 1
mov dword [ecx*4 + 0x100fff60], eax
inc ecx
cmp ecx, 0x100
jb 0x10001ff2
push esi
xor esi, esi
mov ecx, dword [esi + 0x100fff60]
movzx eax, cl
shr ecx, 8
mov edx, dword [eax*4 + 0x100fff60]
xor edx, ecx
mov dword [esi + 0x10100360], edx
movzx eax, dl
shr edx, 8
mov ecx, dword [eax*4 + 0x100fff60]
xor ecx, edx
mov dword [esi + 0x10100760], ecx
movzx eax, cl
shr ecx, 8
mov edx, dword [eax*4 + 0x100fff60]
xor edx, ecx
mov dword [esi + 0x10100b60], edx
movzx eax, dl
shr edx, 8
mov ecx, dword [eax*4 + 0x100fff60]
xor ecx, edx
mov dword [esi + 0x10100f60], ecx
movzx eax, cl
shr ecx, 8
mov edx, dword [eax*4 + 0x100fff60]
xor edx, ecx
mov dword [esi + 0x10101360], edx
movzx eax, dl
shr edx, 8
mov ecx, dword [eax*4 + 0x100fff60]
xor ecx, edx
movzx eax, cl
mov dword [esi + 0x10101760], ecx
shr ecx, 8
mov edx, dword [eax*4 + 0x100fff60]
xor edx, ecx
mov dword [esi + 0x10101b60], edx
movzx eax, dl
shr edx, 8
mov ecx, dword [eax*4 + 0x100fff60]
xor ecx, edx
movzx eax, cl
mov dword [esi + 0x10101f60], ecx
shr ecx, 8
mov edx, dword [eax*4 + 0x100fff60]
xor edx, ecx
movzx eax, dl
mov dword [esi + 0x10102360], edx
shr edx, 8
mov ecx, dword [eax*4 + 0x100fff60]
xor ecx, edx
movzx eax, cl
mov dword [esi + 0x10102760], ecx
shr ecx, 8
mov edx, dword [eax*4 + 0x100fff60]
xor edx, ecx
movzx eax, dl
mov dword [esi + 0x10102b60], edx
shr edx, 8
mov ecx, dword [eax*4 + 0x100fff60]
xor ecx, edx
movzx eax, cl
mov dword [esi + 0x10102f60], ecx
shr ecx, 8
mov edx, dword [eax*4 + 0x100fff60]
xor edx, ecx
movzx eax, dl
mov dword [esi + 0x10103360], edx
shr edx, 8
mov ecx, dword [eax*4 + 0x100fff60]
xor ecx, edx
movzx eax, cl
mov dword [esi + 0x10103760], ecx
shr ecx, 8
xor ecx, dword [eax*4 + 0x100fff60]
mov dword [esi + 0x10103b60], ecx
add esi, 4
cmp esi, 0x400
jb 0x10002080
pop esi
ret
Function at 0x100021d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xedcba987
mov dword [ebp - 8], edx
push edi
mov edi, edx
cmp ebx, 0x10
jb 0x100022fb
shr ebx, 4
mov dword [ebp - 0xc], ebx
push esi
mov ebx, dword [edi + 0xc]
mov ecx, dword [edi]
xor ecx, eax
mov esi, dword [edi + 4]
mov dword [ebp - 4], ecx
mov eax, ebx
shr eax, 0x10
movzx edx, al
mov eax, ebx
shr eax, 8
movzx ecx, al
mov eax, dword [edx*4 + 0x10100360]
mov edx, dword [edi + 8]
xor eax, dword [ecx*4 + 0x10100760]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
mov edi, dword [ebp - 4]
xor eax, dword [ecx*4 + 0x10101360]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10101760]
mov ecx, esi
shr ecx, 0x10
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10102360]
mov ecx, esi
shr ecx, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10102760]
mov ecx, edi
shr ecx, 0x10
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10103360]
mov ecx, edi
shr ecx, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10103760]
mov ecx, ebx
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x100fff60]
mov ecx, edx
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x10100f60]
mov ecx, esi
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x10101f60]
mov ecx, edi
mov edi, dword [ebp - 8]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x10102f60]
movzx ecx, bl
mov ebx, dword [ebp + 8]
sub ebx, 0x10
mov dword [ebp + 8], ebx
xor eax, dword [ecx*4 + 0x10100b60]
movzx ecx, dl
xor eax, dword [ecx*4 + 0x10101b60]
mov ecx, dword [edi + 4]
add edi, 0x10
movzx ecx, cl
mov dword [ebp - 8], edi
xor eax, dword [ecx*4 + 0x10102b60]
mov ecx, dword [ebp - 4]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10103b60]
sub dword [ebp - 0xc], 1
jne 0x100021f5
pop esi
test ebx, ebx
je 0x1000231a
nop
movzx ecx, byte [edi]
lea edi, [edi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100fff60]
sub ebx, 1
jne 0x10002300
pop edi
not eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10002390
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a1b28
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x100d00b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
call fcn.100027b0
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0
call fcn.100025c0
mov ecx, dword [ebp - 0x30]
test ecx, ecx
jne 0x10002413
xorps xmm0, xmm0
movlpd qword [ebp - 0x48], xmm0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x2c], eax
jmp 0x100024d6
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov esi, dword [eax + 0x18]
mov edi, dword [eax + 0x1c]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edi
cmp ecx, 1
je 0x100024d6
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x10002489
xorps xmm0, xmm0
mov eax, 2
movups xmmword [ebp - 0x24], xmm0
push 0x50
mov word [ebp - 0x24], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
call fcn.10002550
mov dword [ebp - 0x38], eax
test eax, eax
je 0x10002489
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push 0x10
push eax
push dword [ebp - 0x28]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10002491
push dword [ebp - 0x28]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edi
jmp 0x100024d6
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x4c], 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, dword [ebp - 0x20]
push esi
mov dword [ebp - 0x38], eax
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x34]
call fcn.10002870
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
mov edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
mov esi, dword [edi]
mov dword [ebp - 0x3c], esi
call fcn.10002730
push dword [ebp - 0x34]
call fcn.1006c2f5
mov eax, dword [ebp - 0x2c]
add esp, 4
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006c2b1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10002550
Capabilities:
Check for time delay via gettickcount
Resolve dns

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
call edi
sub eax, ebx
cmp eax, 0xfa0
jae 0x100025a1
nop dword [eax + eax]
push str.www.baidu.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x100025a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x64
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call edi
sub eax, ebx
cmp eax, 0xfa0
jb 0x10002570
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [eax + 0xc]
pop edi
pop esi
pop ebx
mov eax, dword [eax]
mov eax, dword [eax]
ret

Function at 0x100025c0
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x288
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x288
call fcn.1007530d
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
je 0x10002677
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 4]
push eax
push edi
call esi
cmp eax, 0x6f
jne 0x1000261c
push edi
call fcn.100752f2
add esp, 4
push dword [ebp - 4]
call fcn.1007530d
mov edi, eax
mov dword [ebp - 8], eax
add esp, 4
test edi, edi
je 0x10002677
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
jne 0x10002677
mov esi, edi
test edi, edi
je 0x10002677
mov edi, dword [ebp - 0xc]
mov eax, dword [esi + 0x198]
mov ebx, dword [esi + 0x194]
mov dword [ebp - 0xc], eax
lea eax, [esi + 0x1b0]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1000266e
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.10002870
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ecx
mov esi, dword [esi]
test esi, esi
jne 0x10002630
mov edi, dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test edi, edi
je 0x1000268c
push edi
call fcn.100752f2
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005d50
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ecx
xor esi, esi
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
lea ebx, [edi - 2]
test ebx, ebx
jle 0x10005ddf
mov edi, edx
nop
movzx ecx, byte [edi + esi]
shr ecx, 2
movzx ecx, byte [ecx + 0x100b9c70]
mov byte [eax], cl
movsx edx, byte [edi + esi]
movzx ecx, byte [edi + esi + 1]
and edx, 3
shr ecx, 4
shl edx, 4
or edx, ecx
movzx ecx, byte [edx + 0x100b9c70]
mov byte [eax + 1], cl
movsx ecx, byte [edi + esi + 1]
movzx edx, byte [edi + esi + 2]
and ecx, 0xf
shl ecx, 2
shr edx, 6
or edx, ecx
movzx ecx, byte [edx + 0x100b9c70]
mov byte [eax + 2], cl
movsx ecx, byte [edi + esi + 2]
add esi, 3
and ecx, 0x3f
movzx ecx, byte [ecx + 0x100b9c70]
mov byte [eax + 3], cl
add eax, 4
cmp esi, ebx
jl 0x10005d70
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 4]
cmp esi, edi
jge 0x10005e4d
movzx ecx, byte [esi + edx]
shr ecx, 2
mov cl, byte [ecx + 0x100b9c70]
mov byte [eax], cl
lea ecx, [edi - 1]
cmp esi, ecx
jne 0x10005e12
movsx ecx, byte [esi + edx]
and ecx, 3
shl ecx, 4
mov cl, byte [ecx + 0x100b9c70]
mov byte [eax + 1], cl
mov byte [eax + 2], 0x3d
jmp 0x10005e46
movsx edx, byte [esi + edx]
mov edi, dword [ebp - 4]
and edx, 3
shl edx, 4
movzx ecx, byte [esi + edi + 1]
shr ecx, 4
or edx, ecx
movzx ecx, byte [edx + 0x100b9c70]
mov byte [eax + 1], cl
movsx ecx, byte [esi + edi + 1]
and ecx, 0xf
movzx ecx, byte [ecx*4 + 0x100b9c70]
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
add eax, 4
pop edi
mov byte [eax], 0
sub eax, dword [ebp - 8]
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret