joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006d27
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push 0x7530
push dword [0x1002cce8]
xor ebx, ebx
call fcn.10012d69
pop ecx
pop ecx
test eax, eax
jns 0x10006d4b
xor eax, eax
jmp 0x10006ea8
push edi
mov dword [ebp - 4], ebx
xor edi, edi
mov eax, dword [0x1002bc28]
mov eax, dword [edi + eax]
cmp eax, ebx
je 0x10006d76
push eax
call fcn.10006c68
pop ecx
test eax, eax
jne 0x10006d80
mov eax, dword [0x1002bc28]
push ebx
add eax, edi
call fcn.10006c82
pop ecx
mov eax, dword [0x1002bc28]
cmp dword [edi + eax], ebx
je 0x10006d93
inc dword [ebp - 4]
add edi, 0x20
cmp edi, 0x1000
jb 0x10006d51
jmp 0x10006e99
mov edi, dword [ebp - 4]
shl edi, 5
push esi
cmp dword [ebp + 0xc], ebx
je 0x10006ddb
mov esi, dword [ebp + 0x10]
push esi
call fcn.10010a45
pop ecx
mov ecx, dword [0x1002bc28]
mov dword [edi + ecx + 0xc], eax
mov eax, dword [0x1002bc28]
mov eax, dword [edi + eax + 0xc]
cmp eax, ebx
je 0x10006e98
push esi
push eax
mov eax, dword [ebp + 0xc]
call fcn.10010b02
mov eax, dword [0x1002bc28]
pop ecx
pop ecx
mov dword [edi + eax + 0x10], esi
jmp 0x10006de8
mov dword [edi + eax + 0xc], ebx
mov eax, dword [0x1002bc28]
mov dword [edi + eax + 0x10], ebx
mov eax, dword [0x1002bc28]
mov ecx, dword [ebp + 8]
mov dword [edi + eax + 8], ecx
mov eax, dword [0x1002bc28]
mov ecx, dword [ebp + 0x14]
push 1
push ebx
mov dword [edi + eax + 0x14], ecx
call fcn.10012d28
pop ecx
pop ecx
mov ecx, dword [0x1002bc28]
mov dword [edi + ecx + 0x1c], eax
mov eax, dword [0x1002bc28]
add eax, edi
lea ecx, [eax + 4]
push ecx
push ebx
push eax
push 0x10006cdf
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x1002bc28]
mov dword [edi + ecx], eax
mov eax, dword [0x1002bc28]
mov ecx, dword [eax + edi]
cmp ecx, ebx
jne 0x10006e72
push dword [eax + edi + 0x1c]
call dword [0x1002cdb8]
mov eax, dword [0x1002bc28]
lea esi, [eax + edi + 0xc]
cmp dword [esi], ebx
je 0x10006e63
mov eax, dword [eax + edi + 0x10]
call fcn.10010a5b
add edi, dword [0x1002bc28]
push 8
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
jmp 0x10006e98
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x1002bc28]
push dword [edi + eax + 0x1c]
inc dword [0x1002bc24]
call fcn.10012d8d
mov eax, dword [0x1002bc28]
pop ecx
lea ebx, [edi + eax]
pop esi
push dword [0x1002cce8]
call fcn.10012d8d
pop ecx
mov eax, ebx
pop edi
pop ebx
leave
ret

Function at 0x10006eab
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, eax
cmp esi, 0x7f
ja 0x10006ef5
mov eax, dword [0x1002bc28]
shl esi, 5
mov eax, dword [esi + eax]
test eax, eax
jne 0x10006ec7
push 0xfffffffffffffffe
pop eax
pop esi
ret
push eax
call fcn.10006c68
pop ecx
test eax, eax
je 0x10006ee2
mov eax, dword [0x1002bc28]
push 0
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x1002bc28]
push 1
add eax, esi
call fcn.10006c82
pop ecx
xor eax, eax
pop esi
ret
or eax, 0xffffffff
pop esi
ret
Function at 0x1000714f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa64
push esi
xor esi, esi
cmp dword [ebp + 8], 1
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
je 0x10007178
cmp dword [ebp + 8], 2
je 0x10007178
or eax, 0xffffffff
jmp 0x1000731e
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
call fcn.10015f97
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, esi
jne 0x10007195
push 0xfffffffffffffffe
pop eax
jmp 0x1000731e
push ebx
push edi
mov edi, 0x1002cfa4
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
xor eax, eax
call fcn.10016699
mov ecx, eax
add ecx, dword [ebp + 8]
lea eax, [ebp - 0xa64]
call fcn.10011f82
push eax
push 0xa
push 0xc
pop eax
lea ebx, [ebp - 0xa0]
call fcn.10012e39
push 0x2e
pop ecx
push esi
push 0x10020ef8
mov ebx, 0x1002d520
push ebx
mov word [ebp + eax*2 - 0xa8], cx
call fcn.100130df
push esi
lea ecx, [ebp - 0xa0]
push ecx
mov esi, 0x10020c40
push esi
push eax
mov dword [ebp - 0x1c], eax
call fcn.100130df
add esp, 0x2c
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.1001800c
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
jg 0x10007234
mov dword [ebp - 4], 0xfffffffd
jmp 0x100072e7
push 2
push edi
push 2
push dword [ebp - 0x10]
call fcn.10013cd0
mov edi, eax
add esp, 0x10
mov dword [ebp + 8], edi
test edi, edi
jne 0x10007259
mov dword [ebp - 4], 0xfffffffc
jmp 0x100072e7
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call fcn.10013f23
pop ecx
pop ecx
test eax, eax
jns 0x10007273
mov dword [ebp - 4], 0xfffffffb
jmp 0x100072d9
lea edi, [ebp + 8]
call fcn.10013fd5
push 0
lea eax, [ebp - 0xa0]
push eax
push esi
push ebx
call fcn.100130df
push dword [ebp - 0x10]
mov edi, eax
mov dword [ebp - 0x20], eax
call fcn.10015c53
add esp, 0x14
test eax, eax
jns 0x100072a6
mov dword [ebp - 4], 0xfffffff9
push 0xfffffffffffffffe
pop eax
lea esi, [ebp - 0x20]
call fcn.10010a5b
cmp dword [ebp - 4], 0
jne 0x100072d7
mov esi, 0x2deb8b96
push esi
call fcn.100054a6
pop ecx
test eax, eax
js 0x100072cc
call fcn.10005877
push esi
call fcn.10005d7a
cmp dword [ebp - 4], 0
pop ecx
jge 0x100072e7
cmp dword [ebp + 8], 0
je 0x100072e7
lea edi, [ebp + 8]
call fcn.10013fd5
mov eax, dword [ebp - 8]
lea esi, [ebp - 0x14]
call fcn.10010a5b
mov eax, dword [ebp - 0x18]
pop edi
pop ebx
test eax, eax
jg 0x100072fd
xor eax, eax
lea esi, [ebp - 0xc]
call fcn.10010a5b
push 0xfffffffffffffffe
pop eax
lea esi, [ebp - 0x1c]
call fcn.10010a5b
push 0xfffffffffffffffe
pop eax
lea esi, [ebp - 0x10]
call fcn.10010a5b
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x10007321
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
push ebx
push esi
push edi
xor ebx, ebx
push 0x31
inc ebx
call fcn.1001169a
pop ecx
test eax, eax
je 0x10007482
push 0
call fcn.100142cb
push eax
push 0x10020f00
push 0x1002d520
call fcn.100130df
mov edi, eax
add esp, 0x10
mov dword [esp + 0xc], edi
test edi, edi
je 0x10007482
push 0x1388
push 0x1002eb88
call fcn.10012d28
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10007476
push edi
call fcn.10015db2
pop ecx
test eax, eax
jne 0x100073c8
push 0x93a80
push 0x2b
call fcn.10011be1
pop ecx
pop ecx
test eax, eax
jne 0x100073bf
call fcn.10006bb7
push 0x2b
call fcn.10011c82
mov dword [esp], 0x1002cfa4
push 0
call fcn.10011897
pop ecx
pop ecx
push edi
call fcn.10014b97
pop ecx
mov ebx, eax
push esi
call fcn.10012d8d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jle 0x10007476
lea esi, [esp + 0x10]
call fcn.10010d22
push 0x33
call fcn.1001169a
pop ecx
test eax, eax
jne 0x10007458
push 0x12
call fcn.1001169a
pop ecx
test eax, eax
jne 0x10007427
mov eax, 0x51a
call fcn.10012bb6
mov dword [esp + 0x10], eax
test eax, eax
je 0x10007458
push eax
call fcn.10015d9a
mov esi, eax
pop ecx
lea eax, [esp + 0x10]
call fcn.10012c54
test esi, esi
je 0x10007458
xor esi, esi
call fcn.10010d22
push eax
push edi
push str._s._u
lea eax, [esp + 0x24]
push 0x104
push eax
call fcn.10010bbc
add esp, 0x14
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x1000736b
push edi
call fcn.100030b3
pop ecx
test eax, eax
js 0x10007476
mov eax, edi
call fcn.10015ceb
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1000736b
push 0xfffffffffffffffe
pop eax
lea esi, [esp + 0xc]
call fcn.10010a5b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007a25
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push ebx
push esi
push edi
push 0x1002d95c
push 6
mov edi, eax
push 0xa
pop eax
lea ebx, [ebp - 0x18]
call fcn.10012de1
mov eax, ebx
push eax
call fcn.10013026
mov ebx, eax
add esp, 0xc
mov dword [ebp - 8], ebx
test ebx, ebx
jne 0x10007a61
push 0xa
pop eax
jmp 0x10007b53
push dword [ebp + 0x10]
mov esi, 0x1ff
push dword [ebp + 0xc]
lea eax, [ebp - 0x81c]
push 0x10020f4c
push esi
push eax
call fcn.10010bbc
add esp, 0x14
push 0
lea eax, [ebp - 0x81c]
push 0
push eax
call fcn.10007821
add esp, 0xc
test eax, eax
je 0x10007aa0
push 2
pop edi
jmp 0x10007b36
push ebx
lea eax, [ebp - 0x81c]
push eax
push str._s_s.exe
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.10010bbc
add esp, 0x14
lea eax, [ebp - 0x41c]
push eax
push dword [edi + 0x628]
call fcn.10017f39
pop ecx
pop ecx
test eax, eax
jns 0x10007ad9
push 3
jmp 0x10007a9a
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x41c]
push eax
call fcn.10015db2
pop ecx
test eax, eax
je 0x10007ad5
lea eax, [ebp - 0x41c]
push eax
push edi
call dword [edi + 0x624]
push ebx
push dword [edi + 0x62c]
lea eax, [ebp - 0x41c]
push eax
push dword [ebp + 8]
call fcn.10007975
add esp, 0x18
test eax, eax
jne 0x10007b34
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 5
jmp 0x10007a9a
xor edi, edi
push 1
push 0
lea eax, [ebp - 0x81c]
push eax
call dword [0x1002bc4c]
xor eax, eax
lea esi, [ebp - 8]
call fcn.10010a5b
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10008054
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
and dword [esp + 4], 0
push ebx
push esi
push edi
push 0xa
pop ecx
xor eax, eax
push 0x50
lea edi, [esp + 0x1c]
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x48]
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x630]
add esp, 0xc
xor esi, esi
mov dword [esp + 0x14], esi
lea edi, [esp + 0x40]
test ebx, ebx
je 0x100080f3
cmp dword [esp + esi*4 + 0x18], 0
jne 0x100080ea
mov eax, dword [ebp + 8]
push 1
push dword [ebx + 4]
call dword [eax + 0x620]
pop ecx
pop ecx
test eax, eax
je 0x100080b9
mov ebx, dword [ebx]
jmp 0x100080ee
mov eax, dword [ebp + 8]
mov dword [edi], eax
lea eax, [esp + 0x14]
push eax
xor eax, eax
push eax
push edi
push 0x10007e1b
push eax
push eax
mov dword [esp + esi*8 + 0x5c], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x100081ad
inc dword [esp + 0x10]
mov dword [esp + esi*4 + 0x18], eax
mov ebx, dword [ebx]
inc esi
add edi, 8
cmp esi, 0xa
jb 0x10008096
mov esi, dword [esp + 0x10]
test esi, esi
je 0x100081a9
push 0x112a880
push 0
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, esi
jb 0x10008127
cmp eax, 0x80
jb 0x1000813c
lea ecx, [esi + 0x80]
cmp eax, ecx
jae 0x1000813c
lea esi, [esp + 0x40]
lea edx, [esp + 0x18]
mov ecx, eax
call fcn.10008021
dec dword [esp + 0x10]
jmp 0x10008197
cmp eax, 0x102
jne 0x100081ad
xor edi, edi
test esi, esi
je 0x10008197
push 1
push dword [esp + edi*4 + 0x1c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + edi*8 + 0x44]
push 4
push 0
push 0
push dword [eax + 4]
push esi
call dword [esi + 0x61c]
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [esp + 0x40]
lea edx, [esp + 0x18]
mov ecx, edi
call fcn.10008021
dec dword [esp + 0x10]
inc edi
cmp edi, dword [esp + 0x10]
jb 0x10008149
test ebx, ebx
jne 0x1000808c
cmp dword [esp + 0x10], ebx
ja 0x1000808c
xor eax, eax
jmp 0x100081b0
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100081b7
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor eax, eax
xor esi, esi
mov dword [ebp - 0x1c], esi
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x1002b980]
mov dword [ebp - 4], esi
cmp dword [eax], esi
jne 0x100081ef
push 0x1002b980
call fcn.100128dd
pop ecx
test eax, eax
jns 0x100081ef
xor eax, eax
jmp 0x1000830a
push 0x650
call fcn.10010a45
mov edi, eax
pop ecx
mov dword [ebp - 8], edi
cmp edi, esi
je 0x100081e8
mov dword [edi + 0x618], 0x10004f9b
push ebx
push dword [ebp + 8]
mov dword [edi + 0x61c], 0x10004e5a
mov dword [edi + 0x620], 0x10004d53
mov dword [edi + 0x624], 0x10004c8c
lea esi, [edi + 0x628]
call fcn.10012fb9
pop ecx
mov ebx, 0x10020ca4
push ebx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x1000825c
push ebx
call fcn.10012fb9
pop ecx
mov dword [edi + 0x62c], eax
jmp 0x10008263
and dword [edi + 0x62c], 0
cmp dword [esi], 0
jne 0x10008280
xor eax, eax
call fcn.10010a5b
xor eax, eax
lea esi, [ebp - 8]
call fcn.10010a5b
xor eax, eax
jmp 0x10008309
lea eax, [ebp - 4]
push eax
lea ebx, [edi + 0x18]
mov esi, 0x200
push ebx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 4]
push eax
lea eax, [edi + 0x218]
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test ebx, ebx
je 0x10008300
lea eax, [ebp - 0x1c]
push eax
push 0x64
push ebx
call dword [0x1002bc44]
test eax, eax
jne 0x100082f7
cmp dword [ebp - 0x14], eax
je 0x100082f7
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call esi
mov ecx, eax
add ecx, ecx
mov eax, 0x1fe
cmp ecx, eax
ja 0x100082e3
push dword [ebp - 0x14]
call esi
add eax, eax
push eax
lea eax, [edi + 0x418]
push eax
mov eax, dword [ebp - 0x14]
call fcn.10010b02
pop ecx
pop ecx
jmp 0x10008300
xor eax, eax
mov word [edi + 0x418], ax
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret
Function at 0x10009cff
Capabilities:
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 6
push 1
xor edi, edi
push 2
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10009d22
xor eax, eax
jmp 0x10009d92
push esi
mov esi, 0x1300
push esi
call fcn.10010a45
pop ecx
mov dword [ebp - 8], eax
cmp eax, edi
je 0x10009d63
push edi
push edi
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push edi
push edi
push 0x4004747f
push ebx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x10009d63
mov eax, dword [ebp - 4]
push 0x4c
xor edx, edx
pop ecx
div ecx
mov dword [0x1002ccf4], eax
cmp eax, edi
jne 0x10009d78
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
lea esi, [ebp - 8]
call fcn.10010a5b
xor eax, eax
jmp 0x10009d91
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x10009d8e
mov ecx, dword [0x1002ccf4]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x1000a07b
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x15
call fcn.1001169a
pop ecx
test eax, eax
jne 0x1000a11b
push esi
push edi
mov eax, 0x254c
call fcn.10012bb6
push eax
push 1
xor edi, edi
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
cmp esi, edi
je 0x1000a0c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000a0c6
push esi
call dword [0x1002cdb8]
xor esi, esi
lea eax, [ebp - 4]
call fcn.10012c54
cmp esi, edi
je 0x1000a119
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x1002bc70]
mov esi, eax
cmp eax, edi
jne 0x1000a0eb
call fcn.1000657f
mov esi, eax
cmp esi, edi
jbe 0x1000a119
push 0xc
call fcn.10010a45
pop ecx
cmp eax, edi
je 0x1000a119
mov ecx, dword [ebp + 8]
push edi
push edi
push eax
push 0x1000a002
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0xc]
push edi
push edi
mov dword [eax], esi
mov dword [eax + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
leave
ret
Function at 0x1000a216
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
mov ebx, 0x113
push ebx
call fcn.10010a45
mov esi, eax
pop ecx
test esi, esi
je 0x1000a252
mov edi, 0x1002b7d8
xor edx, edx
sub edi, esi
mov eax, edx
and eax, 0xf
mov al, byte [eax + str._vqKepZ]
lea ecx, [edx + esi]
xor al, byte [edi + ecx]
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x1000a23a
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x1000a261
push 0xfffffffffffffffe
pop eax
jmp 0x1000a2f3
push 0x8c
mov dword [ebp - 4], esi
call fcn.10010a45
mov esi, eax
pop ecx
mov dword [ebp - 8], esi
test esi, esi
jne 0x1000a27d
push 0xfffffffffffffffd
pop edi
jmp 0x1000a2e7
lea eax, [ebp - 4]
push eax
call fcn.1000ca13
pop ecx
test eax, eax
jns 0x1000a290
push 0xfffffffffffffffc
pop edi
jmp 0x1000a2da
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
mov eax, esi
call fcn.1000cbef
pop ecx
test eax, eax
jns 0x1000a2b1
push 0xfffffffffffffffb
jmp 0x1000a28d
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
lea ebx, [ebp - 0x34]
call fcn.100185b9
xor eax, eax
push 5
mov esi, ebx
pop ecx
lea edi, [ebp - 0x20]
repe cmpsd dword [esi], dword es:[edi]
sete al
mov ebx, 0x113
lea edi, [eax - 1]
and edi, 0xfffffff9
inc edi
mov eax, 0x8c
lea esi, [ebp - 8]
call fcn.10010a5b
mov eax, ebx
lea esi, [ebp - 0xc]
call fcn.10010a5b
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000bf25
Capabilities:
Get local ipv4 addresses
Get socket information
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8ac
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
push dword [ebp + 0x1c]
xor ebx, ebx
push dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, dword [ebp + 8]
call fcn.1000c469
pop ecx
pop ecx
mov dword [ebp - 4], eax
cmp eax, ebx
jge 0x1000bf56
xor eax, eax
jmp 0x1000c032
cmp dword [ebp + 0x18], ebx
je 0x1000bf91
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x90]
push ecx
push eax
mov dword [ebp - 8], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
js 0x1000bf91
push 0xa
push ebx
push ebx
push 0x40
push dword [ebp + 0x18]
lea eax, [ebp - 0x90]
push dword [ebp - 8]
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov esi, 0x9c
push esi
lea eax, [ebp - 0xa8]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push dword [ebp - 0xa0]
movzx eax, word [ebp + 0xc]
push dword [ebp - 0xa4]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x8a8]
push 0x100211e4
push dword [ebp + 0x10]
push str.GET__s_HTTP__s_r_nHost:__s:_d_r_nConnection:_Close_r_nUser_Agent:_Microsoft_Windows__u._u_UPnP_1.0_r_n_r_n
push 0x800
push eax
call fcn.10010b7c
mov edi, eax
add esp, 0x24
xor esi, esi
cmp edi, ebx
jle 0x1000c018
push ebx
mov eax, edi
sub eax, esi
push eax
lea eax, [ebp + esi - 0x8a8]
push eax
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, ebx
jl 0x1000c037
add esi, eax
cmp esi, edi
jl 0x1000bff7
push dword [ebp + 0x14]
push dword [ebp - 4]
call fcn.1000bacd
pop ecx
pop ecx
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1000bf4f
Function at 0x1000c469
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
push edi
push 0x20
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_memset]
movzx ecx, word [ebp + 8]
push 8
pop eax
push ecx
push 0x10026324
push eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x28], ebx
call fcn.10010b7c
add esp, 0x1c
cmp byte [esi], 0x5b
jne 0x1000c4ed
lea eax, [esi + 1]
xor edi, edi
cmp byte [eax], bl
je 0x1000c4e7
mov esi, eax
mov al, byte [esi]
cmp al, 0x5d
je 0x1000c4e7
cmp edi, 0x40
jge 0x1000c4e7
push 3
push 0x10026044
push esi
mov byte [ebp + edi - 0x78], al
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
test eax, eax
jne 0x1000c4e1
add esi, 2
inc edi
inc esi
cmp byte [esi], bl
jne 0x1000c4ba
mov byte [ebp + edi - 0x78], bl
jmp 0x1000c4fd
push 0x40
lea eax, [ebp - 0x78]
push esi
push eax
call dword [sym.imp.msvcrt.dll_strncpy]
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 0x38], bl
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x1000c522
or eax, 0xffffffff
jmp 0x1000c588
mov esi, dword [ebp - 4]
or edi, 0xffffffff
jmp 0x1000c570
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, ebx
jl 0x1000c56d
mov eax, dword [esi + 0x18]
cmp word [eax], 0x17
jne 0x1000c552
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
jbe 0x1000c552
mov dword [eax + 0x18], ecx
push dword [esi + 0x10]
push dword [esi + 0x18]
push edi
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp + 8], eax
cmp eax, ebx
jge 0x1000c574
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [esi + 0x1c]
cmp esi, ebx
jne 0x1000c52a
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp edi, ebx
jl 0x1000c51d
cmp dword [ebp + 8], ebx
jl 0x1000c51d
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000c58d
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ac
push ebx
push esi
push edi
push dword [ebp + 0x1c]
call dword [sym.imp.msvcrt.dll_strlen]
cmp word [ebp + 0x14], 0x50
mov ebx, eax
pop ecx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x10], 0
je 0x1000c5cb
movzx eax, word [ebp + 0x14]
push eax
push str.:_hu
lea eax, [ebp - 0x10]
push 8
push eax
call fcn.10010b7c
add esp, 0x10
mov esi, 0x9c
push esi
lea eax, [ebp - 0xac]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0xac]
push eax
mov dword [ebp - 0xac], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push dword [ebp + 0x18]
lea eax, [ebp - 0x10]
push ebx
push dword [ebp - 0xa4]
push dword [ebp - 0xa8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x2ac]
push 0x100211e4
push dword [ebp + 0xc]
push str.POST__s_HTTP__s_r_nHost:__s_s_r_nUser_Agent:_Microsoft_Windows__u._u_UPnP_1.0_r_nContent_Length:__d_r_nContent_Type:_text_xml_r_nSOAPAction:___s__r_nConnection:_Close_r_nCache_Control:_no_cache_r_nPragma:_no_cache_r_n_r_n
push 0x200
push eax
call fcn.10010b7c
mov edi, eax
lea eax, [edi + ebx]
push eax
mov dword [ebp + 0x14], eax
call fcn.10010a45
mov ebx, eax
add esp, 0x30
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x1000c681
mov esi, dword [sym.imp.msvcrt.dll_memcpy]
push edi
lea eax, [ebp - 0x2ac]
push eax
push ebx
call esi
push dword [ebp - 4]
lea eax, [ebx + edi]
push dword [ebp + 0x1c]
push eax
call esi
add esp, 0x18
push 0
push dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
xor eax, eax
lea esi, [ebp - 8]
call fcn.10010a5b
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000cc43
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, eax
sub ecx, edi
push 0x14
mov dword [ebp - 4], ecx
pop esi
mov dl, byte [ecx + eax]
xor dl, 0x36
mov byte [eax], dl
inc eax
dec esi
jne 0x1000cc54
push 0x2c
lea ebx, [edi + 0x14]
push 0x36
push ebx
call sub.msvcrt.dll_memset
lea esi, [edi + 0x80]
mov eax, esi
call fcn.1000fcc6
push edi
push 0x40
pop eax
call fcn.1000fcf4
add esp, 0x10
push 0x14
pop eax
mov ecx, dword [ebp - 4]
mov cl, byte [edi + ecx]
xor cl, 0x5c
mov byte [edi], cl
inc edi
dec eax
jne 0x1000cc89
push 0x2c
push 0x5c
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret