joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101a0600
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x1032bbb0]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 4]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x101a064d
pop edi
pop esi
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x101a066e
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x101a068f
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x101a068f
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x101a0689
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x101a068f
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
shl bl, 2
add cl, cl
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
xor eax, eax
pop edi
mov byte [esi + 0x14], bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x101a06e0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x101a0744
push ebx
xor ebx, ebx
cmp dword [edi + 8], ebx
jbe 0x101a0733
xor ecx, ecx
mov dword [ebp - 4], ecx
push esi
nop word [eax + eax]
mov eax, dword [edi]
push dword [eax + ecx]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x101a0723
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
inc ebx
add ecx, 4
mov dword [ebp - 4], ecx
cmp ebx, dword [edi + 8]
jb 0x101a0700
pop esi
push dword [edi]
push 0
push dword [0x1032bb38]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x101a0750
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], edx
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x101a0843
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x101a083c
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x24], 0x10
jb 0x101a0822
call ebx
cmp dword [ebp - 0x18], eax
jne 0x101a0822
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x1c], eax
je 0x101a0822
mov edx, dword [esi]
test edx, edx
jne 0x101a07e8
push 0x200
push edx
push dword [0x1032bb38]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x101a083c
jmp 0x101a0813
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x101a0813
shl eax, 3
push eax
push edx
push 0
push dword [0x1032bb38]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x101a083c
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x1c]
mov dword [edx + ecx*4], eax
lea eax, [ecx + 1]
mov dword [esi + 8], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x101a07a7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x101a088f
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0x101a088f
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [esi]
push dword [eax + ecx]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x101a0880
push dword [ebp + 8]
mov edx, dword [ebp - 8]
mov ecx, edi
call fcn.101a0990
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
inc ebx
add ecx, 4
mov dword [ebp - 4], ecx
cmp ebx, dword [esi + 8]
jb 0x101a0854
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101a15a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x101a1607
push dword [ebp + 8]
stmxcsr dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
or eax, 0x8000
mov dword [ebp + 0xc], eax
ldmxcsr dword [ebp + 0xc]
stmxcsr dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
or eax, 0x40
mov dword [ebp + 0xc], eax
ldmxcsr dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 1
push 0
push 0
push dword [ebp + 8]
push 0x101a1610
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
pop ebp
ret 0xc
Function at 0x101a4e50
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov ecx, dword [0x10336e48]
push ebx
push esi
push edi
lea ecx, [ecx + 0x18]
call fcn.1005df10
mov eax, dword [0x103280d8]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ebx, eax
mov dword [esp + 0xc], eax
test ebx, ebx
je 0x101a4f85
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x101a4f76
mov eax, dword [ecx + 0xc]
cmp byte [eax], 0x44
jne 0x101a4f76
cmp dword [ecx + 4], 0
je 0x101a4f76
mov ecx, dword [0x10336e48]
lea eax, [ebx + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [ecx + 0x18]
call fcn.1005eac0
mov esi, dword [ebx + 0xc]
mov edi, dword [eax]
test esi, esi
je 0x101a4f76
nop word [eax + eax]
cmp dword [esi + 4], 0
je 0x101a4f72
mov ebx, dword [esi]
mov edx, 0x811c9dc5
mov ecx, dword [ebx]
mov al, byte [ecx]
test al, al
je 0x101a4f72
nop dword [eax]
movzx eax, al
lea ecx, [ecx + 1]
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [ecx]
test al, al
jne 0x101a4ef0
cmp edx, 0xb7c8ab50
jne 0x101a4f72
mov eax, dword [ebx + 0x28]
mov edx, 0x811c9dc5
mov ecx, dword [eax + 0xc]
mov al, byte [ecx]
test al, al
je 0x101a4f34
nop dword [eax]
movzx eax, al
lea ecx, [ecx + 1]
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [ecx]
test al, al
jne 0x101a4f20
mov eax, dword [edi + 0x10]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 0xffffffff
cmp eax, dword [edi + 0x14]
je 0x101a4f57
mov dword [eax], edx
mov dword [eax + 4], 0xffffffff
add dword [edi + 0x10], 8
jmp 0x101a4f65
lea ecx, [esp + 0x10]
push ecx
push eax
lea ecx, [edi + 0xc]
call fcn.1005f550
mov eax, dword [esi]
mov esi, dword [eax + 0x28]
test esi, esi
jne 0x101a4ed0
mov ebx, dword [esp + 0xc]
mov ebx, dword [ebx + 0x10]
mov dword [esp + 0xc], ebx
test ebx, ebx
jne 0x101a4e85
mov eax, dword [0x103280d8]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov edx, eax
mov dword [esp + 0xc], eax
test edx, edx
je 0x101a501a
mov ecx, dword [edx + 0xc]
test ecx, ecx
je 0x101a500f
mov ecx, dword [ecx + 0xc]
mov al, byte [ecx]
cmp al, 0x44
jne 0x101a500f
mov ebx, 0x811c9dc5
movzx eax, al
lea ecx, [ecx + 1]
xor eax, ebx
imul ebx, eax, 0x1000193
mov al, byte [ecx]
test al, al
jne 0x101a4fb5
mov ecx, dword [0x10336e48]
mov ecx, dword [ecx + 0x1c]
mov dword [esp + 0x10], ecx
mov eax, dword [ecx]
cmp eax, ecx
je 0x101a500f
nop dword [eax]
mov edi, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp edx, edi
je 0x101a5005
mov ecx, dword [esp + 0xc]
nop
cmp dword [edx], ebx
jne 0x101a4ffa
mov esi, dword [ecx + 0x14]
mov dword [edx + 4], esi
add edx, 8
cmp edx, edi
jne 0x101a4ff0
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, ecx
jne 0x101a4fe0
mov edx, dword [esp + 0xc]
mov edx, dword [edx + 0x10]
mov dword [esp + 0xc], edx
test edx, edx
jne 0x101a4fa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101a7be0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [0x10329638]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov eax, dword [esi + 0x18]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10336e64]
cmp eax, dword [ecx + 4]
jg 0x101a7c71
mov ecx, esi
call dword [0x10336e68]
mov eax, esi
pop esi
ret
push 0x10336e64
call fcn.100bbde8
add esp, 4
cmp dword [0x10336e64], 0xffffffff
jne 0x101a7c65
push str.E8_________83_BE___________74_3A
push str.client.dll
call fcn.101bc3b0
push 0x10336e64
mov ecx, dword [eax + 1]
add eax, 5
add eax, ecx
mov dword [0x10336e68], eax
call fcn.100bbd97
add esp, 4
jmp 0x101a7c65
Function at 0x101a9f70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ecx
mov eax, dword [0x103280cc]
push esi
push edi
mov edi, ecx
mov esi, dword [eax + 0x14]
mov edx, dword [esi + 8]
cmp edx, 4
jle 0x101a9fa9
mov eax, dword [edi + 0x23c]
mov eax, dword [eax + edx*4 - 0x14]
cmp dword [eax + 0x14], 0xf
jbe 0x101a9f97
mov eax, dword [eax]
push eax
lea eax, [esi + 0xc]
push eax
call fcn.10067610
mov eax, dword [0x103280cc]
add esp, 8
mov ecx, dword [eax + 0x18]
mov eax, dword [0x103280fc]
mov eax, dword [eax + 0x10c]
mov dword [ecx + 0xc], eax
mov eax, dword [0x103280fc]
cmp dword [eax + 0x10c], 1
jle 0x101a9ff2
mov ecx, dword [0x103280cc]
mov eax, dword [eax + 0x230]
mov edx, dword [ecx + 0x18]
mov ecx, dword [edx + 0xc]
mov eax, dword [eax + ecx*4]
cmp dword [eax + 0x14], 0xf
jbe 0x101a9fe5
mov eax, dword [eax]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.10043200
add esp, 8
mov eax, dword [0x103280dc]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax + 0x880]
mov eax, dword [edi + 0x248]
mov ecx, dword [eax + ecx*4]
add ecx, 0x18
cmp dword [ecx + 0x14], 0xf
jbe 0x101aa014
mov ecx, dword [ecx]
mov al, byte [ecx]
mov edx, 0x811c9dc5
test al, al
je 0x101aa034
nop
movzx eax, al
lea ecx, [ecx + 1]
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [ecx]
test al, al
jne 0x101aa020
mov eax, dword [0x103280cc]
pop edi
pop esi
mov eax, dword [eax + 0x10]
mov dword [eax + 0x10], edx
pop ecx
ret
Function at 0x101af610
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov al, byte [ecx]
mov edx, 0x811c9dc5
test al, al
je 0x101af634
nop dword [eax + eax]
movzx eax, al
lea ecx, [ecx + 1]
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [ecx]
test al, al
jne 0x101af620
mov eax, edx
ret
Function at 0x101b4860
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x103280cc]
sub esp, 0x10
mov eax, dword [eax + 0x10]
push esi
push edi
mov esi, ecx
cmp byte [eax + 0xb], 0
jne 0x101b492a
cmp byte [esi + 0x64], 0
jne 0x101b4958
cmp dword [esi + 0x5c], 0
je 0x101b4958
mov eax, dword fs:[0x2c]
mov edi, dword [0x10329638]
mov ecx, dword [eax + edi*4]
mov eax, dword [0x10336ec8]
cmp eax, dword [ecx + 4]
jg 0x101b495e
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + edi*4]
mov eax, dword [0x10336ed0]
cmp eax, dword [ecx + 4]
jg 0x101b49d7
mov ecx, dword [0x10336ecc]
push ecx
mov dword [esp], 0
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, dword [0x10336ed4]
push ecx
mov dword [esp], 0
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, dword [esi + 0x5c]
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
call eax
mov ecx, dword [esi + 0x5c]
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, dword [esi + 0x5c]
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
mov ecx, dword [esi + 0x5c]
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov byte [esi + 0x64], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x103280d8]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x68]
call eax
test al, al
je 0x101b4958
mov eax, dword [0x103280d8]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x6c]
call eax
test al, al
je 0x101b4958
lea ecx, [esi + 0x58]
call fcn.101b1830
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x10336ec8
call fcn.100bbde8
add esp, 4
cmp dword [0x10336ec8], 0xffffffff
jne 0x101b48b0
mov eax, dword [0x103280d8]
mov cl, 0x23
mov edx, dword [eax + 0x34]
xor eax, eax
mov dword [ebp - 0xd], 0x517c5123
mov dword [ebp - 9], 0x424d4a42
mov dword [ebp - 5], 0x424b534f
mov byte [ebp - 1], 0
jmp 0x101b49a0
xor byte [ebp + eax - 0xc], cl
inc eax
cmp eax, 0xb
jae 0x101b49af
mov cl, byte [ebp - 0xd]
jmp 0x101b49a0
mov byte [ebp - 1], 0
lea ecx, [ebp - 0xc]
mov eax, dword [edx]
push ecx
mov ecx, edx
mov eax, dword [eax + 0x1c]
call eax
push 0x10336ec8
mov dword [0x10336ecc], eax
call fcn.100bbd97
add esp, 4
jmp 0x101b48b0
push 0x10336ed0
call fcn.100bbde8
add esp, 4
cmp dword [0x10336ed0], 0xffffffff
jne 0x101b48ca
mov eax, dword [0x103280d8]
xor edx, edx
movaps xmm0, xmmword [str.y_v_v]
mov ecx, dword [eax + 0x34]
movups xmmword [ebp - 0x10], xmm0
jmp 0x101b4a08
mov al, byte [ebp - 0x10]
xor byte [ebp + edx - 0xf], al
inc edx
cmp edx, 0xe
jb 0x101b4a08
mov byte [ebp - 1], 0
lea edx, [ebp - 0xf]
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0x1c]
call eax
push 0x10336ed0
mov dword [0x10336ed4], eax
call fcn.100bbd97
add esp, 4
jmp 0x101b48ca
Function at 0x101bc3b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, eax
test edx, edx
je 0x101bc48a
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x101bc48a
mov eax, dword [edx + 0x3c]
cmp dword [eax + edx], 0x4550
jne 0x101bc48a
mov eax, dword [eax + edx + 0x50]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
add eax, edx
mov dword [ebp - 4], eax
cmp edx, eax
jae 0x101bc48a
mov ecx, 0x3f3f
mov al, byte [esi]
mov byte [ebp + 0xb], al
cmp al, 0x3f
je 0x101bc455
movzx ecx, al
sub al, 0x30
cmp al, 9
ja 0x101bc41a
add ecx, 0xffffffd0
jmp 0x101bc420
and ecx, 0xffffffdf
sub ecx, 0x37
mov al, byte [esi + 1]
movzx edi, al
sub al, 0x30
cmp al, 9
ja 0x101bc431
add edi, 0xffffffd0
jmp 0x101bc437
and edi, 0xffffffdf
sub edi, 0x37
movzx eax, byte [edx]
shl ecx, 4
or ecx, edi
cmp eax, ecx
mov ecx, 0x3f3f
je 0x101bc455
test ebx, ebx
je 0x101bc480
mov esi, dword [ebp + 0xc]
mov edx, ebx
xor ebx, ebx
jmp 0x101bc480
test ebx, ebx
mov eax, edx
cmovne eax, ebx
cmp byte [esi + 2], 0
mov ebx, eax
je 0x101bc495
cmp word [esi], cx
je 0x101bc474
cmp byte [ebp + 0xb], 0x3f
mov eax, 2
je 0x101bc479
mov eax, 3
add esi, eax
cmp byte [esi], 0
je 0x101bc495
inc edx
cmp edx, dword [ebp - 4]
jb 0x101bc403
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401596
Capabilities:
Get hostname

Disassembly:
jmp 0x4c44b0
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x4c44e2
push 0x2e
push edi
call fcn.0040259a
add esp, 8
test eax, eax
je 0x4c44e0
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret

Function at 0x401627
Capabilities:
Set socket configuration

Disassembly:
jmp 0x4bc4e0
xor eax, eax
cmp dword [esp + 8], eax
setne al
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0x8004667e
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
ret

Function at 0x402144
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
jmp 0x4ca190
sub esp, 0xc
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4ca1d5
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x8002
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push dword [esp + 0x18]
call fcn.004060e1
add esp, 4
push 0
push eax
push dword [esp + 0x1c]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [esp], 0x10
jne 0x4ca22c
push 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x18]
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [esp + 8]
test eax, eax
je 0x4ca23b
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x4ca24c
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0xc
ret
Function at 0x4027f2
Capabilities:
Generate random numbers via winapi

Disassembly:
jmp 0x456b60
push dword [esp + 8]
push 0
push dword [esp + 0xc]
call fcn.00404007
add esp, 0xc
push 2
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
ret

Function at 0x402c11
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
jmp 0x4c9010
sub esp, 0xc
lea eax, [esp + 4]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4c9045
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x800c
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push dword [esp + 0x18]
call fcn.004060e1
add esp, 4
push 0
push eax
push dword [esp + 0x1c]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [esp], 0x20
jne 0x4c909c
push 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x18]
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [esp + 8]
test eax, eax
je 0x4c90ab
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x4c90bc
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
add esp, 0xc
ret
Function at 0x40328d
Capabilities:
Create udp socket

Disassembly:
jmp 0x479810
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x47984e
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x108], 0
jne 0x47983f
push 0
call fcn.0040328d
add esp, 4
test al, al
mov eax, dword [esi + 0x7c]
setne cl
inc cl
mov byte [eax + 0x108], cl
mov eax, dword [esi + 0x7c]
pop esi
cmp byte [eax + 0x108], 2
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x479863
xor al, al
pop esi
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret

Function at 0x403788
Capabilities:
Set socket configuration

Disassembly:
jmp 0x4ae860
sub esp, 0xc
mov eax, dword [0x664a1c]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x4ae8b1
push 3
push 2
push eax
push eax
push 6
call fcn.00406479
add esp, 0x14
test al, al
je 0x4ae8a5
mov dword [0x664a1c], 2
add esp, 0xc
ret
mov dword [0x664a1c], 1
jmp 0x4ae8b6
cmp eax, 2
je 0x4ae8fc
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4ae8e1
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x4ae8fc
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x403abc
Capabilities:
Generate random numbers via winapi

Disassembly:
jmp 0x456970
sub esp, 0x8c
mov eax, dword [0x661540]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x98]
mov dword [esp + 4], eax
mov eax, edx
push ebx
and eax, 0xfffffffe
lea ebx, [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x9c]
cmp eax, 0x100
jae 0x456ad9
test dl, 1
je 0x456ad9
push esi
dec edx
mov esi, ebx
push edi
mov edi, edx
mov dword [esp + 0xa8], edx
shr edi, 1
mov ecx, 0x2b
je 0x456a83
nop word [eax + eax]
push 4
lea eax, [esp + 0x14]
mov ebx, 4
push eax
push dword [esp + 0x1c]
cmp edi, ebx
cmovb ebx, edi
call fcn.00402ab3
add esp, 0xc
cmp eax, 4
jne 0x456a29
cmp byte [0x66490c], 0
jne 0x456a39
push 2
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x456ac0
mov eax, dword [esp + 0x10]
jmp 0x456a56
imul eax, dword [0x664908], 0x41c64e6d
add eax, 0x3039
mov dword [0x664908], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x456a70
nop word [eax + eax]
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x456a60
mov dword [esp + 0x10], eax
test edi, edi
jne 0x4569e0
mov edx, dword [esp + 0xa8]
lea ebx, [esp + 0x18]
mov eax, ecx
test eax, eax
jne 0x456ac0
test edx, edx
je 0x456aba
nop dword [eax]
movzx ecx, byte [ebx]
lea ebx, [ebx + 1]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + 0x616700]
mov byte [ebp], al
movzx eax, byte [ecx + 0x616700]
mov byte [ebp + 1], al
add ebp, 2
sub edx, 2
jne 0x456a90
mov byte [ebp], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00403eb3
add esp, 0x8c
ret
mov ecx, dword [esp + 0x90]
mov eax, 0x2b
pop ebp
pop ebx
xor ecx, esp
call fcn.00403eb3
add esp, 0x8c
ret
Function at 0x405448
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
jmp 0x4c8b70
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x66100c]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4c8b9b
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x4c8bea
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [edi]
push ebx
push dword [esp + 0x2c]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov ebx, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x28], ebx
jmp 0x4c8bf2
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x30]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4c8c63
mov ebp, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x4c8c20
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x4c8c95
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x622d59
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x622d5a
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x4c8c70
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret