joyce8/EMBER2024-capa huggingface dataset:
Function at 0x76f001b8
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push dword [ebp + 8]
mov dword [ebp - 8], 1
push dword [0x76f11f50]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x76f00209
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push 0x76efe638
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 4

Function at 0x76f007d8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x76f007ee
sub eax, ecx
lea esi, [eax + eax + 2]
push esi
call fcn.76ef3634
mov ebx, eax
cmp ebx, edi
je 0x76f008f5
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x76f00811
sub eax, ecx
mov ecx, dword [ebp + 0xc]
push esi
push ebx
mov edx, eax
call fcn.76ef3771
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push ebx
push dword [ebp + 8]
call esi
mov edi, eax
test edi, edi
je 0x76f0084c
push ebx
call fcn.76ef262e
mov eax, edi
jmp 0x76f0086b
mov eax, dword [ebp + 0x10]
test eax, eax
jbe 0x76f00862
cmp eax, 3
jbe 0x76f00877
cmp eax, 4
je 0x76f00872
cmp eax, 7
je 0x76f00877
push ebx
call fcn.76ef262e
push 0x57
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
mov edi, dword [ebp + 0x14]
jmp 0x76f00895
cmp dword [ebp - 4], 0
jne 0x76f00884
mov dword [ebp - 4], 2
push dword [ebp - 4]
call fcn.76ef3634
mov edi, eax
test edi, edi
mov dword [ebp - 8], edi
je 0x76f008f5
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
push dword [ebp + 8]
call esi
push ebx
mov esi, eax
call fcn.76ef262e
xor ebx, ebx
cmp esi, ebx
je 0x76f008ca
cmp dword [ebp - 8], ebx
je 0x76f008c1
push dword [ebp - 8]
call fcn.76ef262e
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, esi
jmp 0x76f0086b
cmp dword [ebp + 0x10], 2
jbe 0x76f008dc
cmp dword [ebp + 0x10], 3
je 0x76f008fc
cmp dword [ebp + 0x10], 7
jne 0x76f0092f
cmp dword [ebp - 4], ebx
jne 0x76f008e4
mov word [edi], bx
mov eax, dword [ebp - 4]
add eax, eax
push eax
call fcn.76ef3634
mov esi, eax
cmp esi, ebx
jne 0x76f0090b
push 0xe
jmp 0x76f0086a
cmp dword [ebp - 4], ebx
jne 0x76f00904
mov word [edi], bx
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
jmp 0x76f0092f
mov edx, dword [ebp - 4]
lea eax, [edx + edx]
push eax
push esi
shr edx, 1
mov ecx, edi
call fcn.76ef27f5
test eax, eax
push edi
je 0x76f00863
call fcn.76ef262e
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
xor eax, eax
jmp 0x76f0086b
Function at 0x76f0178f
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x76f11244]
push ebx
push esi
push edi
xor ebx, ebx
push 0x76f01a0c
mov edi, 0x76ef905c
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x114], 0x103
mov dword [ebp - 0x118], ebx
call fcn.76ef906e
push 0x76ef905b
push edi
call fcn.76ef906e
add esp, 0x10
mov dword [ebp - 0x110], ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x110]
mov dword [ebp - 0x114], 0x103
push dword [0x76f11f50]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
jne 0x76f01949
lea eax, [ebp - 0x10c]
push eax
push 0xf003f
push ebx
lea eax, [ebp - 0x108]
push eax
push dword [0x76f11f50]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x76f01949
lea eax, [ebp - 0x118]
push eax
push 4
push 0x76efe638
push dword [ebp - 0x10c]
call fcn.76f007d8
push dword [ebp - 0x10c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
mov dword [ebp - 0x10c], ebx
jne 0x76f0195d
cmp dword [ebp - 0x118], ebx
jne 0x76f0193e
lea eax, [ebp - 0x108]
push eax
call fcn.76f0137e
mov esi, eax
cmp esi, ebx
je 0x76f0193e
cmp dword [esi + 0x50], ebx
jne 0x76f018cd
cmp dword [esi + 0x4c], ebx
jne 0x76f018cd
cmp dword [esi + 0x58], ebx
jne 0x76f018cd
lea eax, [ebp - 0x108]
push eax
push 0x76f019f0
push edi
call fcn.76ef906e
push 0x76f019b8
push edi
call fcn.76ef906e
add esp, 0x14
push esi
call fcn.76f00134
jmp 0x76f0193e
lea eax, [ebp - 0x108]
push eax
push 0x76f019f0
push edi
call fcn.76ef906e
push 0x76f01990
push edi
call fcn.76ef906e
push 0x76f0196c
push edi
call fcn.76ef906e
or dword [esi + 0x3c], 0x20
add esp, 0x1c
cmp dword [ebp + 8], ebx
mov dword [esi + 0x48], 1
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x58], ebx
je 0x76f01920
mov dword [esi + 0x60], 2
call fcn.76ef365a
mov dword [esi + 0x64], eax
push esi
call fcn.76ef674b
dec dword [ebp - 0x110]
push esi
call fcn.76f0059c
push dword [0x76f110a8]
call dword [sym.imp.KERNEL32.dll_PulseEvent]
inc dword [ebp - 0x110]
jmp 0x76f017e1
cmp dword [ebp - 0x10c], ebx
je 0x76f0195d
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.76ef2610
leave
ret 4
Function at 0x76f01a43
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x76f11244]
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x118], ebx
je 0x76f01a76
mov eax, dword [edi + 0x14]
jmp 0x76f01a79
mov eax, dword [edi + 0x18]
cmp eax, ebx
mov dword [ebp - 0x10c], eax
je 0x76f01bab
mov dword [ebp - 0x110], ebx
push esi
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x110]
mov dword [ebp - 0x11c], 0x103
push dword [0x76f11f50]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
jne 0x76f01baa
push dword [edi + 0xc]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
pop ecx
pop ecx
jne 0x76f01ae2
inc dword [ebp - 0x110]
jmp 0x76f01a8e
lea eax, [ebp - 0x108]
push eax
call fcn.76f0137e
mov esi, eax
cmp esi, ebx
je 0x76f01ada
push dword [edi + 0x10]
push dword [esi + 0x10]
call fcn.76ef4952
test eax, eax
je 0x76f01b9f
push dword [ebp - 0x10c]
push dword [esi + 0x18]
call fcn.76ef4952
test eax, eax
jne 0x76f01b2b
push dword [ebp - 0x10c]
push dword [esi + 0x14]
call fcn.76ef4952
test eax, eax
je 0x76f01b9f
push dword [ebp - 0x10c]
xor ebx, ebx
push dword [esi + 0x18]
inc ebx
call fcn.76ef4952
test eax, eax
je 0x76f01b42
xor ebx, ebx
push dword [esi + 0x2c]
push dword [edi + 0x2c]
push dword [ebp - 0x10c]
call fcn.76f0551f
test eax, eax
je 0x76f01b9d
push ebx
push esi
call fcn.76f0097e
test eax, eax
je 0x76f01b9d
push eax
push dword [ebp - 0x118]
call fcn.76ef4836
cmp dword [ebp - 0x114], 0
mov dword [ebp - 0x118], eax
je 0x76f01b9d
mov eax, dword [ebp - 0x114]
cmp dword [eax], 0
jne 0x76f01b9d
cmp dword [edi + 0x60], 0
jne 0x76f01b9d
mov eax, dword [esi + 0x30]
test eax, eax
je 0x76f01b9d
mov ecx, dword [ebp - 0x114]
mov dword [ecx], eax
xor ebx, ebx
push esi
call fcn.76f00134
jmp 0x76f01ada
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x118]
pop edi
pop ebx
call fcn.76ef2610
leave
ret 0xc
Function at 0x76f0275e
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x76f02800
push 0x76ef905c
call fcn.76ef906e
pop ecx
pop ecx
mov ebx, 0x76f11d20
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
cmp dword [0x76f12f18], edi
je 0x76f027a5
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [0x76f110a8]
call dword [sym.imp.KERNEL32.dll_PulseEvent]
xor eax, eax
jmp 0x76f027fb
push esi
push dword [0x76f110ac]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [ebp - 4], edi
mov dword [0x76f110a4], edi
mov dword [0x76f12f14], edi
call esi
push dword [0x76f110b0]
call esi
lea eax, [ebp - 8]
push eax
push edi
push edi
push 0x76f024ac
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [0x76f12f18], eax
pop esi
jne 0x76f027f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret

Function at 0x76f041fe
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x76efe724
call fcn.76efa14e
xor esi, esi
push esi
push esi
push 1
push esi
mov dword [0x76f12f34], esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, esi
mov dword [0x76f12f20], eax
mov edi, 0x76f11d00
je 0x76f042ff
push esi
push 0xffff
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
cmp eax, esi
mov dword [0x76f12f24], eax
je 0x76f042ff
mov ecx, dword [0x76f12f20]
mov dword [0x76f12f28], ecx
mov dword [0x76f12f2c], eax
call fcn.76f0ba93
push 0x76f12f3c
push 0x76f12f38
call fcn.76f06914
mov ebx, eax
cmp ebx, esi
je 0x76f0428a
mov dword [0x76f12f38], esi
mov dword [0x76f12f3c], esi
jmp 0x76f04307
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov dword [0x76f12f44], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x76f042e3
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
call fcn.76f0d1fd
cmp eax, esi
mov dword [0x76f12f48], eax
jne 0x76f042c0
push 0xe
pop ebx
jmp 0x76f04313
push esi
call fcn.76ef7351
test eax, eax
jne 0x76f042dc
push dword [0x76f12f48]
push esi
call fcn.76f0ad57
mov ebx, eax
cmp ebx, esi
je 0x76f042e3
mov ebx, 0x558
jmp 0x76f04356
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x76f0410b
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x76f12f30], eax
jne 0x76f04307
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, esi
je 0x76f04356
cmp ebx, 0x558
je 0x76f04356
mov eax, dword [0x76f12f38]
cmp eax, esi
je 0x76f04328
push eax
call fcn.76f06aac
mov dword [0x76f12f38], esi
mov eax, dword [0x76f12f3c]
cmp eax, esi
je 0x76f0433d
push eax
call fcn.76f06aac
mov dword [0x76f12f3c], esi
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov dword [0x76f12f44], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.76f0419e
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x76f0492e
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor edi, edi
xor ebx, ebx
cmp dword [0x76f12f54], 5
mov dword [ebp - 4], edi
jbe 0x76f04961
call fcn.76ef365a
mov ecx, dword [0x76f12f50]
add ecx, 0x708
cmp ecx, eax
ja 0x76f049bd
mov dword [0x76f12f54], edi
push esi
push 0x76f049c4
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, edi
je 0x76f049bc
cmp dword [ebp + 0x18], edi
je 0x76f04983
mov dword [ebp - 4], 4
lea ebx, [ebp + 0x18]
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
inc dword [0x76f12f54]
cmp dword [0x76f12f54], 5
jb 0x76f049bc
call fcn.76ef365a
mov dword [0x76f12f50], eax
pop esi
pop edi
pop ebx
leave
ret 0x14

Function at 0x76f06587
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
cmp eax, 1
mov dword [ebp - 4], esi
mov dword [edi + 0x10], eax
jne 0x76f065ab
mov dword [edi + 0x30], esi
jmp 0x76f0660c
cmp eax, 3
je 0x76f065b5
cmp eax, 2
jne 0x76f0660c
mov eax, dword [edi]
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x76f065c2
push 0x57
jmp 0x76f065e3
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x76f065c5
sub eax, edx
movzx esi, ax
lea eax, [esi + esi + 2]
push eax
call fcn.76ef3634
mov ebx, eax
test ebx, ebx
jne 0x76f065e6
push 0xe
pop eax
jmp 0x76f0664d
push 1
push dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push esi
push 0
push ebx
call fcn.76ef26cc
test eax, eax
jne 0x76f06605
mov dword [ebp - 4], 0x7b
jmp 0x76f0662e
mov dword [edi + 0x30], esi
mov dword [edi], ebx
xor esi, esi
cmp dword [edi + 0x24], esi
je 0x76f06647
lea eax, [ebp - 8]
push eax
push esi
push edi
push fcn.76f0644d
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
jne 0x76f06639
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call fcn.76ef262e
mov eax, dword [ebp - 4]
jmp 0x76f0664d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x3e5
jmp 0x76f0664d
push edi
call fcn.76f0644d
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x76f07449
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
mov edi, dword [ebp + 8]
cmp edi, 0x3e
jbe 0x76f07463
xor eax, eax
jmp 0x76f074e7
mov eax, dword [ebp + 0xc]
and dword [eax + 4], 0
push esi
push 0x410
mov dword [eax], edi
call fcn.76ef3634
mov esi, eax
test esi, esi
je 0x76f074e6
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_wcscpy]
push 0x76f074ec
push esi
call ebx
lea eax, [edi + edi*2]
push dword [eax*4 + 0x76f11860]
lea eax, [esi + 6]
push eax
call ebx
add esp, 0x10
mov edi, 0x104
push edi
lea ebx, [esi + 0x208]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x76f074d4
cmp eax, edi
jae 0x76f074d4
push 0xa
push 0
push ebx
call dword [sym.imp.msvcrt.dll_wcstoul]
mov ecx, dword [ebp + 0xc]
xor edi, edi
add esp, 0xc
mov dword [ecx + 4], eax
inc edi
jmp 0x76f074d7
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
push esi
mov dword [eax + 8], edi
call fcn.76ef262e
mov eax, edi
pop ebx
pop esi
pop edi
leave
ret 8
Function at 0x76f07990
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 4], eax
je 0x76f07b01
cmp eax, 0xffffffff
je 0x76f07b01
mov dword [ebp - 0x10c], eax
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x5c]
cmp eax, ebx
mov dword [ebp - 0x110], 1
mov dword [ebp - 8], ebx
jne 0x76f079e2
push 2
lea eax, [esi + 0x66]
pop edi
jmp 0x76f079e6
movzx edi, word [esi + 0x64]
mov dword [ebp + 8], eax
jmp 0x76f07a3a
push ebx
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
je 0x76f07a74
cmp eax, 0xffffffff
je 0x76f07a9c
add dword [ebp + 8], eax
sub edi, eax
cmp edi, ebx
jne 0x76f07a3a
lea eax, [esi + 0x68]
cmp dword [ebp + 8], eax
ja 0x76f07aa7
xor eax, eax
mov ax, word [esi + 0x66]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
cmp ax, 0xc
mov word [esi + 0x66], ax
jb 0x76f07a81
movzx edi, ax
cmp edi, dword [esi + 0x2c]
ja 0x76f07a81
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jg 0x76f079eb
jge 0x76f07a5f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x76f07b04
push 1
mov edi, 0x5b4
push edi
push esi
call fcn.76ef50d3
mov eax, edi
jmp 0x76f07b04
lea eax, [esi + 0x66]
cmp word [eax], bx
jne 0x76f07a81
cmp dword [ebp + 8], eax
je 0x76f07a8a
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push dword [ebp - 4]
call sym.DNSAPI.dll_Dns_CloseConnection
mov dword [esi + 8], ebx
mov eax, 0x251e
jmp 0x76f07b04
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x76f07a8a
mov byte [esi + 0x56], 1
mov dword [esi + 0x5c], ebx
mov ax, word [esi + 0x68]
movzx cx, ah
mov ch, al
mov ax, word [esi + 0x6c]
push 1
push ebx
push esi
mov word [esi + 0x68], cx
movzx cx, ah
mov ch, al
mov ax, word [esi + 0x6e]
mov word [esi + 0x6c], cx
movzx cx, ah
mov ch, al
mov ax, word [esi + 0x70]
mov word [esi + 0x6e], cx
movzx cx, ah
mov ch, al
mov ax, word [esi + 0x72]
mov word [esi + 0x70], cx
movzx cx, ah
mov ch, al
mov word [esi + 0x72], cx
call fcn.76ef50d3
xor eax, eax
jmp 0x76f07b04
push 0x57
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x76f07d39
Capabilities:
Connect socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push 1
call sym.DNSAPI.dll_Dns_CreateSocket
mov edi, eax
cmp edi, 0xffffffff
jne 0x76f07d69
mov eax, dword [ebp + 8]
mov dword [eax + 8], ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, ebx
jne 0x76f07dc3
mov eax, 0x2736
jmp 0x76f07dc3
push esi
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push esi
mov byte [esi + 0x54], 1
call sym.DNSAPI.dll_Dns_InitializeMsgRemoteSockaddr
push 0x10
lea eax, [esi + 0x10]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x76f07db7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esi + 0x14]
mov dword [ebp + 8], eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push edi
call sym.DNSAPI.dll_Dns_CloseSocket
cmp dword [ebp + 8], ebx
mov dword [esi + 8], ebx
jne 0x76f07db2
mov dword [ebp + 8], 0x2749
mov eax, dword [ebp + 8]
jmp 0x76f07dc2
push ebx
push ebx
push esi
mov dword [esi + 8], edi
call sym.DNSAPI.dll_Dns_SendEx
pop esi
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x76f098df
Capabilities:
Generate random numbers via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov esi, 0x76f12f7c
push esi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x76f12f94], ebx
jne 0x76f09941
push 0xf0000000
xor edi, edi
inc edi
push edi
push 0x76f09988
push ebx
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x76f09925
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
mov dword [0x76f12f78], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.msvcrt.dll_srand]
pop ecx
mov dword [0x76f12f94], edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x76f12f78]
cmp eax, ebx
je 0x76f0995e
lea ecx, [ebp - 8]
push ecx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov esi, dword [ebp - 8]
cmp si, bx
jne 0x76f0997f
mov edi, dword [sym.imp.msvcrt.dll_rand]
call edi
mov esi, eax
shl esi, 0xf
call edi
or esi, eax
cmp si, bx
mov dword [ebp - 8], esi
je 0x76f0996c
pop edi
mov ax, si
pop esi
pop ebx
leave
ret
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x510024
Capabilities:
Packed with generic packer

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [edx], al
add al, byte [eax]
add byte [eax], al
cld
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add al, byte [eax]
add byte [eax], al
cld
invalid
stc
jb 0x51002e
pop ds
xor esi, dword [ecx - 0x49]
jno 0x50ffe2
cwde
leave
jmp 0x51008f
pushal
jmp 0x510034
call 0x51003f
dec ecx
stc
mov dl, 0xed
pop ecx
pop ebx
jb 0x510049
jne 0x50ffd9
jge 0x510029
sbb dword [edx - 0x383c7edc], 0xffffffff
invalid
add ebx, 0xffffffc7
jmp 0x510058
cmp dword [ebx], 0
stc
jmp 0x510067
je 0x5100ed
jmp 0x510076
mov ecx, ebx
jmp 0x510081
add ebx, 4
jmp 0x510089
mov edx, dword [ebx]
jmp 0x510097
and eax, 0x8ced9cec
in eax, dx
cmp ebp, dword [ebx + 3]
sar ecx, cl
add edx, ebx
stc
jb 0x5100a3
mov ah, 0xb1
mov ebx, 0xc91a740d
mov eax, dword [ebx + 4]
jmp 0x5100ac
sub dword [edx], 0x3c62176a
jmp 0x5100b6
add edx, 4
jmp 0x5100bf
sub eax, 1
jmp 0x5100c6
jne 0x5100a6
jmp 0x5100d0
add ebx, 8
jmp 0x5100d7
sub dword [ecx], 1
stc
jb 0x5100de
and ecx, dword [edi]
test dword [eax + 0x72ffffff], esp
add dh, byte [ecx + 0xee83b]
add byte [eax], al
jne 0x510084
jb 0x5100e8
mov cl, 0x3b
call 0x5100fb
jmp 0x5100f1
popal
jmp 0x5100f6
jmp 0x50ed00
Function at 0x1000a578
Capabilities:
Hash data with md5

Disassembly:
push edi
xor eax, eax
mov dword [0x100227b0], eax
xor eax, eax
mov dword [0x100227b4], eax
mov edi, 0x10022760
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov eax, 0x100227a0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop edi
ret

Function at 0x1000a6f0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.advapi32.dll_RegCreateKeyExA
or eax, eax
jne 0x1000a72f
push dword [ebp + 0x10]
push dword [ebp - 8]
call sub.advapi32.dll_RegDeleteValueA
push eax
push dword [ebp - 8]
call sub.advapi32.dll_RegCloseKey
pop eax
leave
ret 0xc

Function at 0x1000a740
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push dword [ebp + 0x14]
pop dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.advapi32.dll_RegCreateKeyExA
or eax, eax
jne 0x1000a78f
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call sub.advapi32.dll_RegSetValueExA
push eax
push dword [ebp - 8]
call sub.advapi32.dll_RegCloseKey
pop eax
leave
ret 0x10

Function at 0x1000a7a0
Capabilities:
Check os version
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
cmp dword [ebp + 0x18], 1
jne 0x1000a7e5
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0x9c], 5
jb 0x1000a7de
cmp dword [ebp - 0x98], 1
jb 0x1000a7de
mov ecx, 0x101
jmp 0x1000a7ea
mov ecx, 1
jmp 0x1000a7ea
mov ecx, 0xf003f
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push ecx
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.advapi32.dll_RegCreateKeyExA
or eax, eax
jne 0x1000a834
push dword [ebp + 0x14]
call sub.kernel32.dll_lstrlenA
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
push dword [ebp + 0x14]
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call sub.advapi32.dll_RegSetValueExA
push eax
push dword [ebp - 8]
call sub.advapi32.dll_RegCloseKey
pop eax
leave
ret 0x14

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx