joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1116f7d0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x28c]
push ebx
push esi
push 0
push 0
push str.PrefixName
mov ebx, ecx
mov ecx, dword [edi + 0x27c]
push eax
call fcn.110bbc00
test eax, eax
je 0x1116f8f0
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
test ebx, ebx
je 0x1116f869
call dword [sym.imp.WINMM.dll_timeGetTime]
mov esi, eax
lea edx, [ebp - 0x294]
push edx
lea eax, [ebp - 0x3c]
push eax
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [ebp - 0x294]
mov ebx, dword [ebp - 0x290]
mov eax, esi
imul eax, eax, 0x2710
cdq
sub ecx, eax
mov dword [ebp - 0x294], ecx
sbb ebx, edx
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x294]
push edx
mov dword [ebp - 0x290], ebx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ecx, dword [edi + 0x28c]
xor eax, eax
push eax
push eax
push str.IncludeSession
push ecx
mov ecx, dword [edi + 0x27c]
mov word [ebp - 0x2c], ax
call fcn.110bbc00
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
test eax, eax
je 0x1116f8a6
call fcn.11123260
push eax
lea edx, [ebp - 0x2c]
push 0x1120c640
push edx
call esi
add esp, 0xc
movzx ecx, word [ebp - 0x30]
movzx edx, word [ebp - 0x32]
lea eax, [ebp - 0x2c]
push eax
movzx eax, word [ebp - 0x34]
push ecx
movzx ecx, word [ebp - 0x3c]
push edx
movzx edx, word [ebp - 0x3a]
push eax
movzx eax, word [ebp - 0x36]
push ecx
mov ecx, dword [edi + 0x288]
push edx
mov edx, dword [edi + 0x214]
push eax
push ecx
push str._s__02d_02d_02d__02d_02d__02d_s.rpf
push edx
call esi
add esp, 0x28
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x214]
xor esi, esi
mov ecx, str..rpf
lea ecx, [ecx]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x1116f900
lea eax, [ebp - 0x28c]
push eax
lea ecx, [edi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1116f95f
lea esp, [esp]
lea edx, [ebp - 0x260]
push edx
call dword [sym.imp.MSVCR100.dll__wtoi]
add esp, 4
cmp eax, esi
jle 0x1116f946
mov esi, eax
lea eax, [ebp - 0x28c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1116f930
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [edi + 0x214]
inc esi
push esi
push str._08d.rpf
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
add esp, 0xc
pop esi
xor ecx, ebp
pop ebx
call fcn.111d9022
mov esp, ebp
pop ebp
ret
Function at 0x1116fd20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ecx + 0x48]
cmp dword [esi + 0x218], 0
mov dword [ebp - 0x18], eax
je 0x1116feae
cmp dword [esi + 0x21c], 0
jne 0x1116feae
movzx eax, word [eax]
and eax, 0xfff
push eax
push 0x1127696c
call dword [sym.imp.MSVCR100.dll_wcschr]
add esp, 8
test eax, eax
je 0x1116feae
mov ecx, dword [esi + 0x290]
lea eax, [esi + 4]
push eax
mov eax, dword [esi + 0x27c]
push 1
push eax
call ecx
add esp, 0xc
test eax, eax
je 0x1116feae
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
and ebx, 0x1fff
lea eax, [ebx + 3]
and eax, 0xfffc
mov word [ebp - 0x10], ax
mov dx, word [esi + 0x264]
mov cl, al
mov word [ebp - 0xe], dx
add ax, 0xc
mov word [ebp - 0x10], ax
mov byte [ebp - 0xc], 1
movzx edx, ax
sub cl, bl
mov byte [ebp - 0xb], cl
mov eax, dword [esi + 0x228]
sub eax, dword [esi + 0x224]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esi + 0x264], edx
mov dword [ebp - 8], eax
push 0
mov dword [esi + 0x240], eax
lea eax, [ebp - 0x14]
push eax
push 0xc
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], 0
mov edx, dword [esi + 0x218]
push ecx
push edx
call edi
test eax, eax
je 0x1116fe51
mov ecx, dword [ebp - 0x18]
mov edx, dword [esi + 0x218]
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push ecx
push edx
call edi
test eax, eax
je 0x1116fe51
mov al, byte [ebp - 0xb]
test al, al
je 0x1116fe73
push 0
movzx edx, al
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [esi + 0x218]
push edx
lea eax, [ebp - 0x1c]
push eax
push ecx
call edi
test eax, eax
jne 0x1116fe73
mov eax, dword [esi + 0x280]
mov ecx, dword [esi + 0x294]
lea edx, [esi + 0xc]
push edx
push 3
push eax
mov dword [esi + 0x21c], 1
call ecx
add esp, 0xc
movzx edx, byte [ebp - 0xb]
mov ecx, dword [esi + 0x27c]
lea eax, [edx + ebx + 0xc]
add dword [esi + 0x260], eax
mov edx, dword [esi + 0x290]
lea eax, [esi + 4]
push eax
push 0
push ecx
call edx
add esp, 0xc
cmp dword [esi + 0x21c], 0
pop edi
pop ebx
je 0x1116feae
push 0
call fcn.1116f9c0
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.111d9022
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1116fec0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
jne 0x1116fef5
push 0x12b
push str...ctl32RECORD.CPP
push str.this
call fcn.11067750
add esp, 0xc
cmp dword [ebp + 8], 0
mov esi, dword [esi]
je 0x1116ffe3
mov eax, dword [esi + 0x28c]
push 0
push 0
push str.ReplayFiles
push eax
mov ecx, edi
call fcn.110bbc00
test eax, eax
je 0x1116ffed
mov ecx, dword [esi + 0x27c]
mov edx, dword [ecx]
mov eax, dword [esi + 0x28c]
mov edx, dword [edx + 4]
push 0
push 0x1e0
lea edi, [esi + 0xc]
push edi
push str.ReplayPath
push eax
call edx
push 0x25
push edi
call dword [sym.imp.MSVCR100.dll_wcschr]
add esp, 8
test eax, eax
je 0x1116ff86
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x103
lea ecx, [ebp - 0x20c]
push ecx
push edi
call dword [sym.imp.MSVCR100.dll_wcsncpy]
add esp, 0xc
xor edx, edx
mov word [esi + 0x212], dx
cmp word [edi], 0
je 0x1116ffed
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1116ff91
sub eax, edx
sar eax, 1
lea eax, [esi + eax*2 + 0xc]
push edi
mov dword [esi + 0x214], eax
call fcn.110e46f0
add esp, 4
cmp eax, 0x5c
je 0x1116ffcd
mov ecx, dword [esi + 0x214]
mov edx, 0x5c
mov word [ecx], dx
add dword [esi + 0x214], 2
pop edi
mov byte [esi + 1], 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret 8
push 1
call fcn.1116f9c0
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.111d9022
mov esp, ebp
pop ebp
ret 8
Function at 0x11170000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111e95f6
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 1
call fcn.1116f9c0
mov ecx, dword [esi + 0x290]
lea eax, [esi + 4]
push eax
mov eax, dword [esi + 0x27c]
push 1
push eax
call ecx
add esp, 0x10
test eax, eax
je 0x11170207
mov edx, dword [esi + 0x214]
cmp word [edx], 0
jne 0x1117006a
mov ecx, dword [ebp + 8]
mov edi, esi
call fcn.1116f7d0
call fcn.11107510
push 0
push 0x8000000
neg eax
push 2
sbb eax, eax
push 0
inc eax
push eax
push 0x40000000
lea edi, [esi + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
push edi
cmp ebx, 0xffffffff
jne 0x111700a0
xor ebx, ebx
push 1
jmp 0x11170122
push str.Start_Record__s_n
call fcn.111bd7b0
add esp, 8
push 1
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
lea edx, [esi + 0x230]
push edx
mov dword [esi + 0x2b8], eax
mov dword [esi + 0x2b4], 0x64
mov dword [esi + 0x22c], 0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x111700e9
call dword [sym.imp.WINMM.dll_timeGetTime]
push 0x30
mov dword [esi + 0x224], eax
lea eax, [ebp - 0x40]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
lea ecx, [ebp - 0x48]
push ecx
push 0x30
lea edx, [ebp - 0x40]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x21c], eax
je 0x11170139
push edi
push 3
mov eax, dword [esi + 0x280]
mov ecx, dword [esi + 0x294]
push eax
call ecx
add esp, 0xc
jmp 0x111701d6
push 0x50
call fcn.111709c0
add esp, 4
mov dword [ebp - 0x44], eax
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x11170159
push esi
mov ecx, eax
call fcn.1116f5f0
jmp 0x1117015b
xor eax, eax
push 0x24
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x220], eax
call fcn.111709c0
add esp, 4
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 1
cmp eax, edi
je 0x11170195
mov edx, dword [esi + 0x27c]
mov ecx, dword [edx + 4]
push edi
push edi
push ecx
mov ecx, eax
call fcn.110beb60
mov edi, eax
mov ecx, dword [esi + 0x27c]
push 0
push 0
push 0
mov dword [ebp - 4], 0xffffffff
call fcn.110bbf30
push eax
mov ecx, edi
call fcn.110bc2d0
mov ecx, dword [esi + 0x220]
push 1
push edi
call fcn.110c2e50
mov edx, 0xffff
mov word [esi + 0x274], dx
mov byte [esi + 0x278], 0xff
mov ecx, dword [esi + 0x290]
lea eax, [esi + 4]
push eax
mov eax, dword [esi + 0x27c]
push 0
push eax
call ecx
add esp, 0xc
cmp dword [esi + 0x21c], 0
mov dword [esi + 0x218], ebx
je 0x11170207
push 0
call fcn.1116f9c0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret
Function at 0x11170830
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, ecx
test ebx, ebx
je 0x11170850
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x1117085c
mov eax, 0x2000
mov edx, dword [ebp + 8]
lea ecx, [esi + 0xc]
push ecx
push 0
push esi
push edx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x1117088d
push 0x1ec
push str...ctl32Refcount.cpp
push str.hThread
call fcn.11067750
add esp, 0xc
test ebx, ebx
je 0x111708ae
mov eax, dword [esi + 0x1c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1c], 0
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x111718d0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push 0xf0000000
xor ebx, ebx
push 1
push ebx
push ebx
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x11171925
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x1c]
push edx
push 0
push 0
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x11171968
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x18]
push 0
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
push 0
push edx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x111719af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x18]
push 0
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp - 0x1c]
push 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 2
push edx
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x111719ea
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x111719f2
mov ecx, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
jmp 0x111719f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x18]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.111d9022
mov esp, ebp
pop ebp
ret 0xc
Function at 0x11171a70
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 4
lea eax, [ebp + 8]
push eax
push 0x1006
mov esi, ecx
mov ecx, dword [esi + 0x84]
push 0xffff
push ecx
mov bl, 1
call dword [sym.imp.WSOCK32.dll_setsockopt]
push 0x1000
lea edi, [esi + 0x88]
push 0x20
push edi
call sub.MSVCR100.dll_memset
mov ecx, dword [esi + 0x84]
add esp, 0xc
lea edx, [ebp - 0x818]
push edx
lea eax, [ebp - 0x814]
push eax
push 0
push 0x1000
push edi
push ecx
mov dword [ebp - 0x818], 0x10
call dword [sym.imp.WSOCK32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x11171b04
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret 4
push 0x190
push eax
lea edx, [ebp - 0x804]
push edi
push edx
call fcn.11171a20
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.111d9022
mov esp, ebp
pop ebp
ret 4
Function at 0x11171c90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0x14], 0
push ebx
push esi
mov esi, ecx
movzx eax, word [esi + 0x2088]
mov cl, byte [ebp + 8]
mov byte [eax + esi + 0x1088], cl
jne 0x11171cfd
mov bl, byte [ebp + 0x10]
movzx eax, word [esi + 0x2088]
lea edx, [ebx + 2]
mov byte [eax + esi + 0x1089], dl
test bl, bl
je 0x11171ce9
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x11171ce9
movzx edx, word [esi + 0x2088]
movzx ecx, bl
push ecx
push eax
lea eax, [edx + esi + 0x108a]
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
movzx ecx, bl
add cx, 2
add word [esi + 0x2088], cx
pop esi
pop ebx
pop ebp
ret 0x10
movzx edx, byte [ebp + 0x10]
add dx, 0xf
mov eax, 0xfff0
and dx, ax
movzx ebx, dx
movzx edx, word [esi + 0x2088]
movzx eax, bx
push edi
lea ecx, [ebx + 2]
push eax
mov dword [ebp + 0x14], ebx
mov byte [edx + esi + 0x1089], cl
call fcn.11170a40
mov edi, eax
movzx eax, bx
push eax
push 0
push edi
mov dword [ebp + 8], edi
call sub.MSVCR100.dll_memset
movzx eax, byte [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push edi
call sub.MSVCR100.dll_memcpy
add esp, 0x1c
lea edx, [esi + 0x208b]
push edx
mov ecx, esi
call fcn.11171c10
xor cl, cl
xor eax, eax
mov byte [ebp + 0x13], cl
cmp ax, bx
jae 0x11171e32
nop
movzx ecx, cl
xor eax, eax
lea edi, [ecx + edi + 1]
lea esp, [esp]
movzx edx, byte [edi + eax - 1]
xor dl, byte [esi + eax + 0x209b]
movzx ebx, word [esi + 0x2088]
add ebx, ecx
add ebx, eax
mov byte [ebx + esi + 0x108a], dl
movzx edx, byte [edi + eax]
xor dl, byte [esi + eax + 0x209c]
movzx ebx, word [esi + 0x2088]
add ebx, ecx
add ebx, eax
mov byte [ebx + esi + 0x108b], dl
movzx edx, byte [edi + eax + 1]
movzx ebx, word [esi + 0x2088]
xor dl, byte [esi + eax + 0x209d]
add ebx, ecx
add ebx, eax
mov byte [ebx + esi + 0x108c], dl
movzx ebx, word [esi + 0x2088]
movzx edx, byte [edi + eax + 2]
xor dl, byte [esi + eax + 0x209e]
add ebx, ecx
add ebx, eax
add eax, 4
mov byte [ebx + esi + 0x108d], dl
cmp eax, 0x10
jb 0x11171d80
movzx eax, word [esi + 0x2088]
add eax, ecx
lea ecx, [eax + esi + 0x108a]
push ecx
mov ecx, esi
call fcn.11171c10
mov cl, byte [ebp + 0x13]
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
add cl, 0x10
movzx edx, cl
mov byte [ebp + 0x13], cl
cmp dx, bx
jb 0x11171d70
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
add ebx, 2
add word [esi + 0x2088], bx
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x11172990
Capabilities:
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111e9898
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x84], 0xffffffff
jne 0x111729e4
push 0x11
push 2
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [esi + 0x84], eax
cmp eax, 0xffffffff
jne 0x111729e4
xor al, al
jmp 0x11172acd
movzx ecx, word [esi + 0x1c]
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, 2
push ecx
xor ebx, ebx
mov word [ebp - 0x20], ax
call dword [sym.imp.WSOCK32.dll_htons]
cmp dword [esi + 0x14], 0x10
mov word [ebp - 0x1e], ax
jb 0x11172a16
mov ecx, dword [esi]
jmp 0x11172a18
mov ecx, esi
mov eax, ecx
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x3c], bl
lea edi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x11172a30
sub eax, edi
push eax
push ecx
lea ecx, [ebp - 0x3c]
call fcn.11011b80
movzx edx, word [esi + 0x1c]
push edx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x58]
push ecx
mov dword [ebp - 4], ebx
call fcn.11172730
mov edi, 0x10
add esp, 0xc
cmp dword [eax + 0x14], edi
jb 0x11172a67
mov eax, dword [eax]
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x44], edi
jb 0x11172a82
mov edx, dword [ebp - 0x58]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], ebx
mov byte [ebp - 0x58], bl
cmp dword [ebp - 0x28], edi
jb 0x11172aa0
mov eax, dword [ebp - 0x3c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
movzx edx, word [esi + 0x2088]
push edi
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [esi + 0x84]
push ebx
push edx
lea eax, [esi + 0x1088]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_sendto]
cmp eax, 0xffffffff
je 0x111729dd
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret
Function at 0x11172bc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
mov ecx, dword [ebp + 0x14]
push 0xffffffffffffffff
push 0
mov dword [esi + 0x78], ecx
push edi
lea ecx, [esi + 0x3c]
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x74], eax
call fcn.11011a90
mov ebx, dword [ebp + 8]
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [esi + 0x58]
call fcn.11011a90
push 1
mov ecx, esi
call fcn.11172170
lea edx, [esi + 0x208b]
push edx
mov ecx, esi
call fcn.11171c10
push 0
push ebx
push 1
mov ecx, esi
call fcn.11171e70
mov eax, dword [ebp + 0xc]
push 1
push eax
push 2
mov ecx, esi
call fcn.11171e70
cmp dword [edi + 0x10], 0
je 0x11172c40
push 0
push edi
push 0x20
mov ecx, esi
call fcn.11171e70
mov ecx, esi
call fcn.111718b0
call fcn.11172990
cmp dword [ebp + 0x14], 0
je 0x11172c89
test al, al
je 0x11172c7d
lea ecx, [esi + 0x80]
push ecx
push 0
push esi
push 0x11172af0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [esi + 0x7c], eax
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0x14
test al, al
je 0x11172cb7
movzx edx, word [esi + 0x1e]
push edx
mov ecx, esi
call fcn.11171a70
test al, al
je 0x11172cb7
mov ecx, esi
call fcn.111724e0
xor ecx, ecx
cmp eax, 2
sete cl
pop edi
pop esi
pop ebx
mov eax, ecx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x111739c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [esi + 0x68]
mov eax, dword [esi + 0x6c]
push ebx
mov ebx, dword [esi + 0x70]
push edi
xor edi, edi
cmp ecx, 1
je 0x111739e0
cmp ecx, 2
je 0x111739e0
cmp ecx, 7
jne 0x11173a11
mov ecx, dword [esi]
call fcn.110c7040
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x70]
lea ebx, [eax + eax]
push ebx
call dword [sym.imp.MSVCR100.dll_malloc]
mov ecx, dword [esi + 0x6c]
mov edi, eax
mov eax, dword [esi + 0x70]
push eax
mov eax, dword [ebp - 4]
push eax
push ebx
push edi
push ecx
call fcn.111b7e50
add esp, 0x18
mov eax, edi
mov edx, dword [esi + 0x68]
mov ecx, dword [esi + 0x60]
push ebx
push eax
mov eax, dword [esi + 0x64]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov edi, dword [sym.imp.MSVCR100.dll_free]
mov ebx, eax
call edi
push 0
call edi
mov edx, dword [esi + 0x6c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 0x64]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
mov dword [esi + 0x64], eax
mov dword [esi + 0x6c], eax
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x11173a60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa1c
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
push 0x190
push 1
mov dword [ebp - 0xa1c], edi
mov dword [ebp - 0xa08], eax
call dword [sym.imp.MSVCR100.dll_calloc]
mov ecx, dword [ebp - 0xa08]
mov edx, dword [ecx + 6]
push ebx
mov esi, eax
push esi
push edx
push edi
call fcn.11172e30
mov ecx, eax
xor eax, eax
add esp, 0x18
mov dword [ebp - 0xa18], ecx
cmp ecx, eax
je 0x11173ba5
lea edx, [edi + 0x5c]
cmp ecx, edx
je 0x11173ba5
mov dword [ebp - 0xa0c], eax
lea ecx, [ecx]
test eax, eax
jne 0x11173af7
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov word [esi + 0xc], ax
mov eax, 0x56
mov edx, 1
mov word [esi], ax
mov word [esi + 8], dx
mov dword [ebx], 0xe
lea eax, [ebp - 0xa08]
push eax
lea edx, [ebp - 0xa04]
push edx
lea eax, [ebp - 0xa10]
push eax
push 0
lea edx, [ebp - 0xa14]
push edx
mov edx, dword [ebp - 0xa0c]
lea eax, [ebp - 0x204]
push eax
mov eax, dword [ecx]
push edx
push eax
mov dword [ebp - 0xa14], 0x100
mov dword [ebp - 0xa08], 0x800
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x11173b83
mov edx, dword [ebp - 0xa08]
mov eax, dword [ebp - 0xa10]
push ebx
lea ecx, [ebp - 0xa04]
push ecx
push edx
push eax
lea ecx, [ebp - 0x204]
push ecx
push edi
mov edi, esi
call fcn.11173630
mov edi, dword [ebp - 0xa1c]
mov ecx, dword [ebp - 0xa18]
add esp, 0x18
inc dword [ebp - 0xa0c]
jmp 0x11173ad0
xor edx, edx
mov word [esi + 8], dx
cmp eax, 0x103
je 0x11173b93
mov dword [esi + 2], eax
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret
push ebx
push eax
mov eax, 6
call fcn.11172e00
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
xor ecx, ebp
pop esi
call fcn.111d9022
mov esp, ebp
pop ebp
ret