joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54114c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5ab1b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00536024
mov dword [ebp - 0x14], eax
cmp dword [0x5b6d7c], esi
jne 0x54123f
push 0x800
push esi
push 0x585ad0
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5411cc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x57
jne 0x54131f
push esi
push esi
push 0x585ad0
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x54131f
push 0x585ae8
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x54131f
push eax
call ebx
push 0x585af4
push edi
mov dword [0x5b6d7c], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
push 0x585b04
push edi
mov dword [0x5b6d80], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5b6d84], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
mov dword [0x5b6d8c], eax
test eax, eax
je 0x54123c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
mov dword [0x5b6d88], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
test eax, eax
je 0x541264
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x541257
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x541279
push 4
pop eax
jmp 0x541321
cmp dword [ebp - 0x14], esi
je 0x541279
push dword [0x5b6d7c]
call dword [sym.imp.KERNEL32.DLL_DecodePointer]
push 3
jmp 0x54125e
mov eax, dword [0x5b6d88]
mov ebx, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, edi
je 0x5412d7
cmp dword [0x5b6d8c], edi
je 0x5412d7
push eax
call ebx
push dword [0x5b6d8c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5412d7
test eax, eax
je 0x5412d7
call ecx
test eax, eax
je 0x5412cc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x5412cc
test byte [ebp - 8], 1
jne 0x5412d7
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x541307
mov eax, dword [0x5b6d80]
cmp eax, edi
je 0x541304
push eax
call ebx
test eax, eax
je 0x541304
call eax
mov esi, eax
test esi, esi
je 0x541304
mov eax, dword [0x5b6d84]
cmp eax, edi
je 0x541304
push eax
call ebx
test eax, eax
je 0x541304
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5b6d7c]
call ebx
test eax, eax
je 0x54131f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x541321
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052e43a
mov esp, ebp
pop ebp
ret
Function at 0x5207cc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov eax, 0x520384
call fcn.00406928
xor eax, eax
push ebp
push 0x5209a1
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00513710
mov eax, dword [0x52b420]
mov dword [eax], 0xa3d70a4
mov dword [eax + 4], 0x3ffca3d7
call fcn.0051311c
call fcn.004ff5c4
call fcn.0051e964
mov eax, 0x22b9
call fcn.00403194
inc eax
mov edx, dword [0x52b888]
mov dword [edx], eax
lea edx, [ebp - 0x18]
mov eax, dword [0x52b83c]
mov eax, dword [eax]
call fcn.00461ae8
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00409568
mov edx, dword [ebp - 0x14]
mov eax, dword [0x52b66c]
call fcn.0040476c
lea edx, [ebp - 0x1c]
mov eax, 2
call fcn.00402b54
mov eax, dword [ebp - 0x1c]
mov edx, 0x5209b8
call fcn.00404b24
je 0x520897
mov eax, dword [0x52b8e4]
push eax
push 0
push 0
push 0x51c0dc
push 0
push 0
call sub.KERNEL32.DLL_CreateThread_1
mov edx, dword [0x52b2c0]
mov dword [edx], eax
mov eax, dword [0x52b83c]
mov eax, dword [eax]
call fcn.00461440
lea edx, [ebp - 0x20]
mov eax, 3
call fcn.00402b54
mov eax, dword [ebp - 0x20]
mov edx, 0x5209dc
call fcn.00404b24
jne 0x5208d0
mov eax, dword [0x52b644]
mov edx, 0x5209f0
call fcn.0040476c
jmp 0x5208df
mov eax, dword [0x52b644]
mov edx, 0x520a18
call fcn.0040476c
mov ecx, dword [0x52b83c]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x5083a0]
call fcn.00459b58
mov ebx, eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xec]
dec eax
jne 0x52095f
mov eax, ebx
call fcn.004038e4
mov ecx, dword [0x52ba54]
mov eax, dword [0x52b83c]
mov eax, dword [eax]
mov edx, dword [0x509b70]
call fcn.00461458
mov ecx, dword [0x52b7c0]
mov eax, dword [0x52b83c]
mov eax, dword [eax]
mov edx, dword [0x50762c]
call fcn.00461458
mov ecx, dword [0x52b588]
mov eax, dword [0x52b83c]
mov eax, dword [eax]
mov edx, dword [0x509644]
call fcn.00461458
mov eax, dword [0x52b83c]
mov eax, dword [eax]
call fcn.004614d8
jmp 0x520986
xor eax, eax
push ebp
push 0x52097c
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00513420
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x520986
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5209a8
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.0040473c
ret

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x3bd132f
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x190d2043
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x78b591e6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x78b591f5
pop dword [ebp - 0x20]
mov eax, 0x78b591f5
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x67eb79b8
sub dword [ebp - 0x30], 0x1999346d
mov dword [ebp - 0x2c], 0xa2b8b61a
sub dword [ebp - 0x2c], 0x708569d5
mov dword [ebp - 0x28], 0x688ae63c
add dword [ebp - 0x28], 0xe3c15df2
mov dword [ebp - 0x24], 0x9eb85247
sub dword [ebp - 0x24], 0x9eb85247
lea eax, [ebp - 0x30]
push eax
mov eax, 0x5354f4a
add eax, 0x737fc1ce
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x2efa4281
sub dword [ebp - 0x30], 0xba87d92b
mov dword [ebp - 0x2c], 0x99954368
add dword [ebp - 0x2c], 0xa7d71e0d
mov dword [ebp - 0x28], 0x9e45fb2d
add dword [ebp - 0x28], 0xc529713f
mov dword [ebp - 0x24], 0x4308ad59
sub dword [ebp - 0x24], 0x4308ad59
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x4c5759db
add eax, 0x2c5db695
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x41083
push 0
call eax
mov ecx, 0x7ece36e7
add ecx, 0x81321a87
xor ebx, ebx
add ebx, eax
mov esi, 0x78b82000
add esi, dword [ebp - 0x20]
mov edi, 0x1852c2ec
add edi, 0xe6c1ee6d
add dword [ebp - 8], 0x3e68b0b3
mov edx, dword [esi]
add dword [ebp - 8], 0x46b1cc0e
add edx, edi
xor dword [ebp - 0xc], edi
mov dword [ebx], edx
add dword [ebp - 0x10], ebx
add ebx, 0x986d2590
sub ebx, 0x986d258c
add esi, 0x4905b500
sub esi, 0x4905b4fc
loop 0x78b5930e
add eax, 0xa83ef6ec
sub eax, 0xa83dbe61
mov ebx, eax
add eax, 5
mov ecx, 0xd1939621
add ecx, 0xa72169df
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x78b6d35d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x78b7b310]
jne 0x78b6d367
repz ret
jmp fcn.78b6ed18
Function at 0x4012d0
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x408670]
push ebp
push esi
mov esi, dword [esp + 0xc]
xor ebp, ebp
push edi
mov edi, dword [esi + 0x288]
test eax, eax
je 0x401339
mov dword [0x408670], ebp
mov eax, dword [esi + 0x28c]
sub eax, 0x15
je 0x401303
dec eax
jne 0x401308
mov ebp, 0x405050
jmp 0x401308
mov ebp, 0x404f80
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
test edi, edi
jbe 0x401322
push 0
push 0
push esi
push ebp
push 0
push 0
call ebx
dec edi
jne 0x401313
mov eax, dword [esi + 0x284]
push 0
push 0
push eax
push section..text
push 0
push 0
call ebx
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x401450
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4061d0
push 0x405870
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9f0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov byte [ebp - 0x868], bl
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x867]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x8ec], bl
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x8eb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 4], ebx
push 0x7d0
lea eax, [ebp - 0x7e8]
push eax
push 0x4082b4
call fcn.00401340
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x86c], esi
push 0x408434
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
je 0x4015b7
mov byte [ebp - 0xa00], bl
mov byte [ebp - 0x980], bl
push 0x3a
push esi
mov edi, dword [sym.imp.SHLWAPI.dll_StrChrA]
call edi
mov ecx, 1
sub ecx, esi
add eax, ecx
push eax
push esi
lea edx, [ebp - 0x868]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x3a
push esi
call edi
inc eax
mov dword [ebp - 0x86c], eax
push eax
lea eax, [ebp - 0x8ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov word [ebp - 0x900], 2
lea ecx, [ebp - 0x8ec]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x8fe], ax
lea edx, [ebp - 0x868]
push edx
call fcn.00403180
add esp, 4
mov dword [ebp - 0x8fc], eax
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [ebp - 0x8f0], esi
push 0x10
lea eax, [ebp - 0x900]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
or edi, 0xffffffff
cmp eax, edi
jne 0x401598
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4015ba
mov dword [ebp - 4], edi
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or edi, 0xffffffff
mov dword [ebp - 4], edi
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4022c0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
sub esp, 0x110
lea eax, [esp + 0xc]
push ebx
push esi
push edi
push str.SYSTEMCurrentControlSetServices_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x18]
push str.Distribubyu
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push 0xf003f
push 0
push eax
push getpeername
call dword [0x408de8]
test eax, eax
je 0x402315
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x104
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push str.ImagePath
push eax
call dword [0x408de4]
test eax, eax
je 0x402361
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x408de0]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov edx, dword [esp + 0x10]
push edx
call dword [0x408de0]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402388
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push 0
push 0
push 3
push 0
push 1
lea ecx, [esp + 0x2c]
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4023b5
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esp + 0xc], eax
jne 0x4023d9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4023fb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov eax, dword [esp + 0xc]
lea edx, [esp + 0xc]
push 0
push edx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40242d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x120]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov esi, eax
test esi, esi
jne 0x40245d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov edx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push edx
push ebx
push 0
push 0x66
push 0xa
push esi
call ebp
mov edi, eax
test edi, edi
je 0x402496
push str.Distribubyu
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push str.Distribubyu
push 0
push 0x65
push 0xa
push esi
call ebp
mov edi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
pop ebp
test eax, eax
push ebx
jne 0x4024b7
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x110
ret
Function at 0x4028a0
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4061e0
push 0x405870
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x370
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x328]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [ebp - 0x220]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea edx, [ebp - 0x328]
push edx
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x4029ec
push 0x1a
call fcn.00403160
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.00403160
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.00403160
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.00403160
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.00403160
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.00403160
add esp, 4
add eax, 0x61
push eax
push str._c_c_c_c_c_c.exe
lea ecx, [ebp - 0x380]
push ecx
call dword [0x408e14]
add esp, 0x20
push 0x40853c
lea edx, [ebp - 0x220]
push edx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call edi
lea eax, [ebp - 0x380]
push eax
lea ecx, [ebp - 0x220]
push ecx
call edi
push esi
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x328]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x328]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [0x409290], 1
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x330], esi
mov dword [ebp - 0x32c], esi
mov dword [ebp - 4], esi
push 0xf003f
push esi
push esi
call dword [0x408ddc]
mov ebx, eax
mov dword [ebp - 0x32c], ebx
test ebx, ebx
je 0x402af0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x328]
push eax
push 0
push 2
push 0x10
push 0xf01ff
mov ecx, dword [ebp + 0xc]
push ecx
mov edi, dword [ebp + 8]
push edi
push ebx
call dword [0x408e08]
mov esi, eax
mov dword [ebp - 0x330], esi
test esi, esi
jne 0x402a86
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x402a86
push 0xf01ff
push edi
push ebx
call dword [0x408dd8]
mov esi, eax
mov dword [ebp - 0x330], esi
test esi, esi
je 0x402af0
push 0
push 0
push esi
call dword [0x408e04]
push 0
push 0
push esi
call dword [0x408e04]
test eax, eax
je 0x402af0
push str.SYSTEMCurrentControlSetServices_
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x11c]
push edx
push getpeername
call dword [0x408e00]
mov edi, dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
push 1
push 0
push str.Description
mov eax, dword [ebp - 0x224]
push eax
call dword [0x408dfc]
mov dword [ebp - 4], 0xffffffff
call fcn.00402b19
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419fc9
Capabilities:
Encode data using xor

Disassembly:
not al
pop ecx
add ecx, 1
lodsd eax, dword [esi]
lea edi, [eax + ebx + 4]
cmp dword [edx + 0x12], ecx
nop
je 0x419c28
mov edx, edx
xor eax, eax
nop
imul eax, eax, 0xf
push eax
xor ch, 0
movzx eax, byte [edi - 4]
stc
neg eax
lea edi, [edi - 0xe]
sub edi, 0xfffffff1
stc
or eax, eax
cmp bl, ch
add dword [esp], eax
cld
pop eax
cmp byte [edi - 4], 0xa
cld
lea ebx, [ebx]
ja 0x419b92
clc
nop
mov ecx, ecx
stc
mov eax, 0x744d9668
xor dword [esp - 4], eax
mov eax, dword [esp + 4]
lea eax, [eax]
sub dword [esp - 4], eax
jne 0x419b7b
cld
lea ebx, [ebx]
wait
cld
add edx, 0x1b
push dword [edx - 5]
pop edi
add edi, ebx
add ecx, ecx
lea eax, [edx]
nop
add ecx, ebx
mov esi, dword [edx + 3]
not eax
sbb ah, 0x94
mov ax, word [ecx + esi]
cwde
mov dl, 0xaa
not dl
push dword [edi + eax*4]
dec cl
add dword [esp], ebx
pop esi
mov eax, dword [esp]
add esp, 8
jmp 0x419e71
ret
jmp eax
push 0xffffffffffffffff
add ch, 0x68
clc
lea edx, [ebx + 6]
xor al, dl
push dword [edx + 0x36]
lea esi, [edx - 6]
dec ah
xchg ecx, eax
add dword [esp], ebx
pop ecx
xchg al, al
not ah
add edx, dword [ecx + 0x78]
add esi, dword [edx + 0x1a]
jmp 0x419b78
Function at 0x100016e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [0x10188230], esp
dec eax
xor edx, 5
mov ecx, 2
loop 0x10001715
mov edx, eax
inc eax
sub eax, 6
inc edx
add dword [0x1018822c], ebp
add eax, 7
lea eax, [0x10188228]
add dword [eax], ebx
xor dword [0x10188224], edi
jmp fcn.10001180
add dword [0x10188220], esi
mov ecx, 2
loop 0x100016f1
mov dword [ebp], eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
mov eax, 1
pop ebp
ret

Function at 0x1015c4d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x10188234], 0x795
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [0x10188240], 0
mov byte [0x10188244], 0
mov dword [0x1018823c], 0
mov dword [ebp - 0x1c], eax
jmp 0x1015c5e9
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, 0xf92
mov esi, 0x100
mov dword [ebp - 0x28], eax
mov eax, ecx
xor edi, edi
mov dword [ebp - 0x2c], edx
mov edx, edi
mov edi, dword [ebp - 0x10]
div edi
mov dword [0x10188248], 0
mov ebx, dword [ebp - 0x28]
mov dword [0x10188238], ebx
mov ebx, dword [0x10188240]
mov edi, dword [ebp - 0x18]
movzx edi, byte [edi + ecx]
add edi, ebx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add edi, edx
mov dword [0x10188248], edi
mov eax, edi
cdq
idiv esi
mov dword [0x10188240], edx
mov dword [0x10188234], 0x1e22
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + ecx]
mov byte [0x10188244], bl
mov dword [0x10188234], 0x112f
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov bl, byte [0x10188244]
mov ecx, dword [0x10188240]
mov byte [esi + ecx], bl
mov dword [0x10188234], 0xa8a
mov dword [0x10188238], 0xfffffb26
mov ecx, dword [0x1018823c]
add ecx, 1
mov dword [0x1018823c], ecx
cmp ecx, 0x100
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
jl 0x1015c51a
jmp 0x1015c646
mov eax, dword [ebp - 0x1c]
mov dword [0x10188234], 0xc9a
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x1018823c]
add eax, 1
mov dword [0x1018823c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1015c5e9
xor eax, eax
mov dword [0x10188234], 0x9b7
mov dword [0x1018823c], 0
mov ecx, dword [0x10188238]
add ecx, 0x146c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
jmp 0x1015c51a
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1015cfe0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [0x10188234], 0xa55
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x10188234], 0xa74
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1015d071
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov dword [0x10188234], 0x21ff
mov edx, dword [0x10188238]
add edx, 0xfffffbd3
mov dword [0x10188238], edx
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
je 0x1015d0c2
jmp 0x1015d158
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x1c], eax
je 0x1015d089
jmp 0x1015d158
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], edx
je 0x1015d020
jmp 0x1015d0a6
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x1c], eax
je 0x1015d146
jmp 0x1015d158
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
jl 0x1015d071
jmp 0x1015d020
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x24], ecx
xor eax, eax
mov ecx, dword [ebp - 0x24]
cmp word [ecx], 0x6f
mov dword [ebp - 0x1c], eax
jne 0x1015d158
xor eax, eax
mov dword [0x10188234], 0xfffffc44
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x1c], eax
jne 0x1015d158
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x1c], eax
jne 0x1015d158
mov dword [0x10188234], 0xfffff436
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x12], 0x64
sete dl
mov byte [ebp - 0x25], dl
xor eax, eax
mov cl, byte [ebp - 0x25]
test cl, 1
mov dword [ebp - 0x1c], eax
jne 0x1015d058
jmp 0x1015d158
mov eax, 1
mov dword [0x10188234], 0x12d7
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add esp, 0x28
pop ebp
ret