joyce8/EMBER2024-capa huggingface dataset:
Function at 0x65b61b
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x65b659
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x65b651
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x65b65b
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x65b641
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x65b74b
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x65b761
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x65b77c
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x6c56bc
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x6c56fa
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x6c56f2
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x6c56fc
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x6c56e2
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x6c57ec
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x6c5802
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x6c581d
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x6df661
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x20], 0
push esi
mov esi, dword [ecx + 0xb4]
mov dword [ebp - 4], esi
je 0x6df6d4
mov eax, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
imul eax, dword [ebp + 0x18]
add eax, dword [ebp + 8]
push ebx
lea edx, [eax + edx*4]
push edi
mov eax, dword [ecx + 0xac]
imul eax, dword [ebp + 0x14]
add eax, dword [ecx + 0xa8]
mov edi, edx
add eax, esi
cmp dword [ebp + 0x1c], 0
jle 0x6df6c3
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x10], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add eax, dword [ebp - 4]
add edi, 4
dec dword [ebp + 0x10]
jne 0x6df6a8
dec dword [ebp + 0x20]
inc dword [ebp + 0x14]
add edx, dword [ebp + 0xc]
cmp dword [ebp + 0x20], 0
jne 0x6df688
pop edi
pop ebx
pop esi
leave
ret 0x1c

Function at 0x6e0460
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x20], 0
mov edx, dword [ecx + 0xb4]
je 0x6e04dc
push ebx
imul eax, eax, 3
push esi
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x18]
add edi, dword [ebp + 8]
mov esi, edx
imul esi, dword [ebp + 0x10]
add eax, edi
mov edi, eax
mov dword [ebp + 0x18], eax
mov eax, dword [ecx + 0xac]
imul eax, dword [ebp + 0x14]
add eax, dword [ecx + 0xa8]
add eax, esi
cmp dword [ebp + 0x1c], 0
jle 0x6e04c4
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x10], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add edi, 3
add eax, edx
dec dword [ebp + 0x10]
jne 0x6e04aa
mov edi, dword [ebp + 0x18]
dec dword [ebp + 0x20]
add edi, dword [ebp + 0xc]
inc dword [ebp + 0x14]
cmp dword [ebp + 0x20], 0
mov dword [ebp + 0x18], edi
jne 0x6e048c
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c
Function at 0x6e0538
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
imul eax, eax, 3
cmp dword [ebp + 0x1c], 0
mov dword [ebp - 4], eax
je 0x6e05c8
mov eax, dword [ebp + 0x10]
imul ecx, ecx, 3
imul eax, dword [ebp + 0x18]
add eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, edx
imul esi, esi, 3
add ecx, eax
push edi
mov edi, ecx
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xac]
imul ecx, dword [ebp + 0x14]
add ecx, dword [eax + 0xa8]
mov edx, dword [ebp - 4]
add ecx, esi
test edx, edx
jle 0x6e05b0
mov eax, 0xff
sub eax, dword [ebp + 0x20]
mov dword [ebp + 0x18], edx
mov dword [ebp - 8], eax
movzx eax, byte [ecx]
movzx edx, byte [edi]
imul eax, dword [ebp - 8]
imul edx, dword [ebp + 0x20]
add eax, edx
cdq
mov ebx, 0xff
idiv ebx
inc edi
mov byte [ecx], al
inc ecx
dec dword [ebp + 0x18]
jne 0x6e058f
mov edi, dword [ebp + 0xc]
dec dword [ebp + 0x1c]
add edi, dword [ebp + 0x10]
inc dword [ebp + 0x14]
cmp dword [ebp + 0x1c], 0
mov dword [ebp + 0xc], edi
jne 0x6e0565
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x40b5c3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x428bd0]
jne 0x40b5cd
repz ret
jmp fcn.0040f1ac

Function at 0x40da54
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x428bd0]
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.0040699c
and dword [ebp - 0x14], 0
cmp dword [0x42ab0c], 0
mov dword [ebp - 0x18], eax
jne 0x40db07
push 0x404460
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40dbaf
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x404454
push ebx
call edi
test eax, eax
je 0x40dbaf
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x404444
push ebx
mov dword [0x42ab0c], eax
call edi
push eax
call esi
push 0x404430
push ebx
mov dword [0x42ab10], eax
call edi
push eax
call esi
push 0x404414
push ebx
mov dword [0x42ab14], eax
call edi
push eax
call esi
mov dword [0x42ab1c], eax
test eax, eax
je 0x40db07
push 0x4043fc
push ebx
call edi
push eax
call esi
mov dword [0x42ab18], eax
mov eax, dword [0x42ab18]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40db60
cmp dword [0x42ab1c], ecx
je 0x40db60
push eax
call esi
push dword [0x42ab1c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40db60
test ebx, ebx
je 0x40db60
call edi
test eax, eax
je 0x40db57
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40db57
test byte [ebp - 8], 1
jne 0x40db60
or dword [ebp + 0x10], 0x200000
jmp 0x40db93
mov eax, dword [0x42ab10]
cmp eax, dword [ebp - 0x18]
je 0x40db93
push eax
call esi
test eax, eax
je 0x40db93
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40db93
mov eax, dword [0x42ab14]
cmp eax, dword [ebp - 0x18]
je 0x40db93
push eax
call esi
test eax, eax
je 0x40db93
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42ab0c]
call esi
test eax, eax
je 0x40dbaf
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40dbb1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b5c3
leave
ret
Function at 0x424490
Capabilities:
Delete directory
Get common file path
Manipulate console buffer
Read file on windows
Set console window title

Disassembly:
mov eax, 0x1864
call fcn.0040f370
cmp dword [0x7aeb94], 0x37
jne 0x424582
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
push 0x4047a8
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_MapUserPhysicalPages]
push 0
lea edx, [esp + 0xc68]
push edx
push 0x4047bc
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 4]
push ecx
push 0
lea edx, [esp + 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push 0x4047cc
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
lea eax, [esp + 8]
push eax
push 0x4047e4
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0x404808
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 0
lea ecx, [esp + 0x468]
push ecx
push 0
push 0x404848
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
lea edx, [esp + 0x1064]
push edx
push 0
push 0x404870
push 0x404890
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0
push 0
push 0
push 0x4048b4
push 0x4048e4
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov eax, dword [0x7afb88]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x42fbe4]
mov byte [eax + esi], dl
add esp, 0x1864
ret
Function at 0x424720
Capabilities:
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7aeb94]
sub esp, 0x2dc
push ebx
push ebp
push esi
mov esi, dword [0x42fbe4]
shr eax, 3
push edi
test eax, eax
je 0x4248cf
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
jmp 0x424754
mov esi, dword [esp + 0x18]
cmp dword [0x7aeb94], 0x1c
jne 0x424771
lea eax, [esp + 0x34]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov edx, dword [0x429300]
mov ecx, dword [str._a_fSZEq_]
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x28], edx
mov edx, dword [0x429308]
mov dword [esp + 0x30], ecx
mov ecx, dword [0x42930c]
mov dword [esp + 0x14], eax
mov ebx, 0xc6ef3720
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], 0x20
jmp 0x4247b5
mov eax, dword [esp + 0x14]
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [esp + 0x2c]
shl ecx, 4
add ecx, dword [esp + 0x24]
add eax, ebx
xor edx, ecx
xor edx, eax
sub edi, edx
mov ecx, edi
shl ecx, 4
mov dword [0x7aeb04], 0
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
cmp dword [0x7aeb94], 0x1be
lea ebp, [ebx + edi]
jne 0x42480a
lea edx, [esp + 0x38]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov esi, edi
shr esi, 5
add esi, dword [esp + 0x30]
cmp dword [0x7aeb94], 0x979
mov dword [0x7aeb08], 0xff6b3619
mov dword [0x7aeb0c], 0xffffffff
jne 0x424846
lea eax, [esp + 0x98]
push eax
push 0x404538
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor esi, ebp
xor dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
mov eax, dword [0x7aeb94]
cmp eax, 0x93
je 0x424866
add ebx, 0x61c88647
dec dword [esp + 0x1c]
jne 0x4247b1
cmp eax, 0x8d4
jne 0x424882
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esi], edx
mov dword [esi + 4], edi
cmp dword [0x7aeb94], 0x17
jne 0x4248be
push 0
push 0
push 0
push 0x404610
push 0x4046b0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea eax, [esp + 0x98]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
add esi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x18], esi
jne 0x424750
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2dc
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40229a
Capabilities:
Terminate process

Disassembly:
mov edx, eax
push edi
push dword [0x403716]
call dword [sym.imp.pdh.dll_PdhCloseLog]
mov eax, 5
add eax, 5
inc eax
xor edi, edi
xor esi, esi
test eax, 0xb
jne 0x4022c9
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
mov dword [0x40164f], eax
ret
Function at 0x42e230
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2a000]
push edi
or ebp, 0xffffffff
jmp 0x42e252
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42e259
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42e248
mov eax, 1
add ebx, ebx
jne 0x42e26b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42e260
jne 0x42e27c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42e260
xor ecx, ecx
sub eax, 3
jb 0x42e290
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42e302
mov ebp, eax
add ebx, ebx
jne 0x42e29b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42e2a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42e2cc
inc ecx
add ebx, ebx
jne 0x42e2b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42e2ad
jne 0x42e2c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42e2ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42e2ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42e2dd
jmp 0x42e24e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42e2ec
add edi, ecx
jmp 0x42e24e
pop esi
lea edi, [esi + 0x2c000]
mov eax, dword [edi]
or eax, eax
je 0x42e354
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2e000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2e078]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42e309
mov ecx, edi
jns 0x42e338
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2e07c]
or eax, eax
je 0x42e34e
mov dword [ebx], eax
add ebx, 4
jmp 0x42e326
call dword [esi + 0x2e08c]
mov ebp, dword [esi + 0x2e080]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42e388
sub esp, 0xffffff80
jmp fcn.0042b818
Function at 0x405170
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40518e
mov eax, 0x5a2e45
push eax
push 1
mov ebx, 0x4c9930
call fcn.004c93cc
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4051b8
mov eax, 0
jmp 0x40522c
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jle 0x405219
add eax, 8
mov edi, eax
mov ebx, edi
push edi
xor al, al
pop esi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edi, eax
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x405202
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x4051f1
xor ecx, eax
xor edx, ebx
dec edi
jne 0x4051e2
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop ecx
pop edx
pop edi
pop ebx
pop esi
leave
ret 4
mov esp, ebp
pop ebp
ret 4
Function at 0x40fec0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
jmp 0x40fee2
pushal
mov eax, 1
mov eax, 2
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 6
popal
push edx
mov edx, 1
mov edx, 2
mov edx, 4
mov edx, 2
mov edx, 5
mov edx, 4
mov edx, 2
mov edx, 5
mov edx, 5
pop edx
mov dword [ebp - 4], 0
push eax
push ecx
push edx
push ebx
push esi
push edi
nop
nop
nop
push ebx
push ecx
push edx
mov eax, reloc.WS2_32.dll_getsockname
cpuid
shr ecx, 0x10
mov esi, ecx
nop
pop edx
pop ecx
pop ebx
nop
push ebx
push ecx
push edx
mov eax, reloc.WS2_32.dll_getpeername
cpuid
shr edx, 0x18
shr ecx, 0x18
add edx, ecx
add esi, edx
nop
pop edx
pop ecx
pop ebx
nop
nop
nop
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0x64]
add esi, eax
nop
mov eax, 1
cpuid
xor ebx, ebx
mov bl, al
add esi, ebx
nop
mov eax, 1
cpuid
xor ebx, ebx
mov bl, cl
add esi, ebx
nop
mov eax, 1
cpuid
xor ebx, ebx
mov bl, dl
add esi, ebx
nop
imul esi, esi, 0x666
mov dword [ebp - 4], esi
nop
pop edi
pop esi
pop ebx
pop edx
pop ecx
pop eax
mov eax, dword [ebp - 4]
jmp 0x40fff6
mov esp, ebp
pop ebp
ret
Function at 0x4109bd
Capabilities:
Contain obfuscated stackstrings
Decode data using base64 via vbmi lookup table
Encode data using base64
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
sub esp, 0x84
push ebx
mov ebx, dword [esp + 0x98]
push esi
xor ecx, ecx
xor esi, esi
xor edx, edx
push edi
mov dword [esp + 0xc], 0x7f7f7f7f
mov dword [esp + 0x10], 0x7f7f7f7f
mov dword [esp + 0x14], 0x7f7f7f7f
mov dword [esp + 0x18], 0x7f7f7f7f
mov dword [esp + 0x1c], 0x7f7f7f7f
mov dword [esp + 0x20], 0x7f7f7f7f
mov dword [esp + 0x24], 0x7f7f7f7f
mov dword [esp + 0x28], 0x7f7f7f7f
mov dword [esp + 0x2c], 0x7f7f7f7f
mov dword [esp + 0x30], 0x7f7f7f7f
mov dword [esp + 0x34], 0x3e7f7f7f
mov dword [esp + 0x38], 0x3f7f7f7f
mov dword [esp + 0x3c], 0x37363534
mov dword [esp + 0x40], 0x3b3a3938
mov dword [esp + 0x44], 0x7f7f3d3c
mov dword [esp + 0x48], 0x7f7f407f
mov dword [esp + 0x4c], 0x201007f
mov dword [esp + 0x50], 0x6050403
mov dword [esp + 0x54], 0xa090807
mov dword [esp + 0x58], 0xe0d0c0b
mov dword [esp + 0x5c], 0x1211100f
mov dword [esp + 0x60], 0x16151413
mov dword [esp + 0x64], 0x7f191817
mov dword [esp + 0x68], 0x7f7f7f7f
mov dword [esp + 0x6c], 0x1c1b1a7f
mov dword [esp + 0x70], 0x201f1e1d
mov dword [esp + 0x74], 0x24232221
mov dword [esp + 0x78], 0x28272625
mov dword [esp + 0x7c], 0x2c2b2a29
mov dword [esp + 0x80], 0x302f2e2d
mov dword [esp + 0x84], 0x7f333231
mov dword [esp + 0x88], 0x7f7f7f7f
test ebx, ebx
je 0x410c0a
mov edi, dword [esp + 0x9c]
mov edi, edi
mov eax, ebx
sub eax, edx
cmp eax, 2
jb 0x410b07
cmp byte [edx + edi], 0xd
jne 0x410b07
cmp byte [edx + edi + 1], 0xa
je 0x410b40
mov al, byte [edx + edi]
cmp al, 0xa
je 0x410b40
cmp al, 0x3d
jne 0x410b1c
inc ecx
cmp ecx, 2
ja 0x410c18
cmp al, 0x7f
ja 0x410c18
movzx eax, al
mov al, byte [esp + eax + 0xc]
cmp al, 0x7f
je 0x410c18
cmp al, 0x40
jae 0x410b3f
test ecx, ecx
jne 0x410c18
inc esi
inc edx
cmp edx, ebx
jb 0x410af1
test esi, esi
je 0x410c0a
mov ecx, dword [esp + 0x98]
lea eax, [esi + esi*2]
mov esi, dword [esp + 0x94]
lea eax, [eax*2 + 7]
shr eax, 3
test esi, esi
je 0x410c29
cmp dword [ecx], eax
jb 0x410c29
xor eax, eax
xor ebx, ebx
push ebp
mov ebp, 3
mov dword [esp + 0x90], eax
test edx, edx
je 0x410bf9
lea esp, [esp]
mov al, byte [edi]
cmp al, 0xd
je 0x410bf5
cmp al, 0xa
je 0x410bf5
movzx eax, al
mov cl, byte [esp + eax + 0x10]
xor eax, eax
cmp cl, 0x40
sete al
shl ebx, 6
sub ebp, eax
movzx eax, cl
mov ecx, dword [esp + 0x90]
and eax, 0x3f
inc ecx
or ebx, eax
mov dword [esp + 0x90], ecx
cmp ecx, 4
jne 0x410bf5
xor eax, eax
mov dword [esp + 0x90], eax
test ebp, ebp
je 0x410be0
mov eax, ebx
shr eax, 0x10
mov byte [esi], al
inc esi
cmp ebp, 1
jbe 0x410bed
mov eax, ebx
shr eax, 8
mov byte [esi], al
inc esi
cmp ebp, 2
jbe 0x410bf5
mov byte [esi], bl
inc esi
inc edi
dec edx
jne 0x410b91
sub esi, dword [esp + 0x98]
mov eax, dword [esp + 0x9c]
pop ebp
mov dword [eax], esi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x84
ret 0x10
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
add esp, 0x84
ret 0x10
pop edi
pop esi
mov dword [ecx], eax
or eax, 0xffffffff
pop ebx
add esp, 0x84
ret 0x10
Function at 0x417e3a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
jmp 0x417e4f
pushal
mov eax, 1
mov eax, 2
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 6
popal
push edx
mov edx, 1
mov edx, 2
mov edx, 4
mov edx, 2
mov edx, 5
mov edx, 4
mov edx, 2
mov edx, 5
mov edx, 5
pop edx
push edx
push ecx
push esi
xor esi, esi
mov eax, dword [ebp + 8]
lea ecx, [esi*4]
mov ecx, dword [eax + ecx]
xor ecx, 0x78e279a3
xor ecx, 0x33190440
xor ecx, 0x756e1bd6
xor ecx, 0x7ce2741a
xor ecx, 0x15d7e6f0
xor ecx, 0x1b6944f4
xor ecx, 0x48c865c7
xor ecx, 0x2cf585f4
xor ecx, 0x61b37414
xor ecx, 0x449a2b74
xor ecx, 0x2c52392d
xor ecx, 0x3e22830a
xor ecx, 0x3eb5de6b
xor ecx, 0xef14b73
xor ecx, 0x23adbf68
xor ecx, 0x7e92e6e3
xor ecx, 0x2239241c
xor ecx, 0x35273483
xor ecx, 0x8707a80d
xor ecx, 0x303ff74f
xor ecx, 0x6470a4fa
xor ecx, 0x1f295843
xor ecx, 0x28c2f7aa
xor ecx, 0xcfd17d5
xor ecx, 0x43a3a5f4
xor ecx, 0x70487503
xor ecx, 0x61a0d71f
xor ecx, 0x6c677ead
xor ecx, 0x5da15a64
nop
nop
nop
nop
nop
nop
lea edx, [esi*4]
mov dword [eax + edx], ecx
add esi, 1
cmp esi, dword [ebp + 0xc]
jne 0x417eb5
pop esi
pop ecx
pop edx
nop
push ecx
push eax
mov eax, 1
mov ecx, 2
mov eax, 4
mov ecx, 2
pop eax
pop ecx
nop
jmp 0x417fb6
mov esp, ebp
pop ebp
ret 8

Function at 0x418100
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
jmp 0x418115
pushal
mov eax, 1
mov eax, 2
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 6
popal
push edx
mov edx, 1
mov edx, 2
mov edx, 4
mov edx, 2
mov edx, 5
mov edx, 4
mov edx, 2
mov edx, 5
mov edx, 5
pop edx
push edx
push ecx
push esi
xor esi, esi
mov eax, dword [ebp + 8]
lea ecx, [esi*4]
mov ecx, dword [eax + ecx]
xor ecx, 0x98e279a3
xor ecx, 0x73190440
xor ecx, 0x756e1b56
xor ecx, 0x7ce2741a
xor ecx, 0x55d586f0
xor ecx, 0x3b6944f4
xor ecx, 0x48c865c7
xor ecx, 0x9cf485f4
xor ecx, 0x94b57414
xor ecx, 0x449a2b74
xor ecx, 0x2c52392d
xor ecx, 0x3e22830a
xor ecx, 0x3eb5de6b
xor ecx, 0x4514b73
xor ecx, 0x23adbf68
xor ecx, 0x7e97e6e3
xor ecx, 0x2236241c
xor ecx, 0x35273483
xor ecx, 0x8705a80d
xor ecx, 0x313ff74f
xor ecx, 0x6470a4fa
xor ecx, 0x1f295843
xor ecx, 0x28c2f7aa
xor ecx, 0x2cfd17d5
xor ecx, 0x44a3a5f4
xor ecx, 0x70487503
xor ecx, 0x61a0d71f
xor ecx, 0x6c6771ad
xor ecx, 0x1da25a64
nop
nop
nop
nop
nop
nop
lea edx, [esi*4]
mov dword [eax + edx], ecx
add esi, 1
cmp esi, dword [ebp + 0xc]
jne 0x41817b
pop esi
pop ecx
pop edx
nop
push ecx
push eax
mov eax, 1
mov ecx, 2
mov eax, 4
mov ecx, 2
pop eax
pop ecx
nop
jmp 0x41827c
mov esp, ebp
pop ebp
ret 8