joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10056e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x10057b9
mov esi, dword [ebp + 0x10]
cmp esi, edi
je 0x10057b9
mov eax, 0x8000
push eax
push edi
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, edi
mov dword [esi], eax
je 0x10057a9
lea ecx, [ebp + 0x10]
push ecx
push eax
push edi
push edi
push dword [ebp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
call edi
mov ebx, 0xea
jmp 0x100576e
add dword [ebp + 0x10], 0x2000
push dword [ebp + 0x10]
push dword [esi]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
mov dword [esi], eax
je 0x10057a9
lea ecx, [ebp + 0x10]
push ecx
push eax
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100573c
xor edi, edi
xor ebx, ebx
inc edi
cmp eax, ebx
je 0x10057a5
mov eax, dword [esi]
cmp eax, ebx
je 0x1005795
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], ebx
push dword [ebp - 4]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01008ae2
mov eax, edi
jmp 0x10057bb
push 0x8007000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01008ae2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1005959
Capabilities:
Manipulate console buffer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x1011040]
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0xa8], eax
push 0x27
xor eax, eax
cmp ebx, esi
mov word [ebp - 0xa4], si
pop ecx
lea edi, [ebp - 0xa2]
rep stosd dword es:[edi], eax
mov dword [ebp - 0xb0], esi
stosw word es:[edi], ax
je 0x1005a2b
mov ax, word [edx + 6]
push 0x14
pop ecx
mov word [ebp - 0xaa], ax
mov word [ebp - 0xac], si
push dword [ebp - 0xac]
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
xor eax, eax
lea edi, [ebp - 0xa4]
push ebx
rep stosd dword es:[edi], eax
call esi
push 0
lea eax, [ebp - 0xb0]
push eax
push 0x4f
push 0x4f
push 0x10016a4
lea eax, [ebp - 0xa4]
push eax
call fcn.010087ef
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push eax
push ebx
call edi
push dword [ebp - 0xac]
push ebx
call esi
cmp dword [ebp - 0xa8], 0
je 0x1005a2b
push 0
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0xa8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push dword [ebp - 0xa8]
push ebx
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01008128
leave
ret 0xc
Function at 0x1005e6e
Capabilities:
Enumerate services

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x3c], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
jne 0x1005e9e
xor eax, eax
inc eax
jmp 0x1005f9c
lea eax, [esi + 0xa4]
push eax
push 0x25a
call fcn.01009811
push eax
push dword [esi + 0xa0]
call fcn.01005959
xor eax, eax
cmp dword [esi + 0xdc], edi
jne 0x1005ec8
mov eax, dword [esi + 0x74]
push 5
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 0x14], eax
jne 0x1005ee5
call fcn.01008ae2
xor eax, eax
jmp 0x1005f9c
push ebx
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov ebx, 0x1000
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
ja 0x1005f76
add ebx, dword [ebp - 0x10]
push ebx
push 1
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x1005f62
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [esi + 0x90]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0xc], edi
push 1
push 0x30
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x1005f76
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x1005ef1
call fcn.01008ae2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1005f72
push 0x8007000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01008ae2
xor eax, eax
jmp 0x1005f9b
cmp dword [esi + 0x90], edi
jne 0x1005f8f
cmp dword [ebp - 4], edi
je 0x1005f98
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x1005f98
mov eax, dword [ebp - 4]
mov dword [esi + 0x94], eax
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret
Function at 0x100629a
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x100e2b2
call fcn.010084d8
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 4], edi
jne 0x10062da
push 0x800300fd
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01008ae2
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
lea ebx, [esi + 8]
mov eax, dword [ebx]
cmp eax, edi
je 0x10062eb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebx], edi
mov eax, dword [esi + 0x58]
mov dword [ebp - 0x20], eax
push eax
lea ecx, [ebp - 0x1c]
call fcn.010045e0
mov edi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 1
push 0x1001704
lea ecx, [ebp - 0x18]
call fcn.010045e0
mov ecx, eax
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], 2
mov eax, dword [edi]
test eax, eax
je 0x1006323
mov edx, dword [eax]
jmp 0x1006325
xor edx, edx
mov eax, dword [ecx]
test eax, eax
je 0x100632f
mov ecx, dword [eax]
jmp 0x1006331
xor ecx, ecx
mov eax, dword [esi + 4]
mov edi, dword [eax]
push ebx
push 0
push 0x30
push edx
push ecx
push eax
call dword [edi + 0x50]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
xor edi, edi
cmp ecx, edi
je 0x1006359
call fcn.0100465f
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
cmp ecx, edi
je 0x100636c
call fcn.0100465f
mov dword [ebp - 0x1c], edi
cmp dword [ebp - 0x14], edi
jge 0x1006376
push dword [ebp - 0x14]
jmp 0x1006388
push dword [esi + 0xc]
push dword [ebx]
call fcn.01006999
mov dword [ebp - 0x14], eax
cmp eax, edi
jge 0x1006392
push eax
call fcn.01006dfc
jmp 0x10062c9
push dword [esi + 0x50]
call fcn.0100a1ad
cmp dword [esi + 0xdc], 1
jne 0x10063e5
cmp dword [esi + 0x44], 1
jne 0x10063e5
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x3c]
push eax
push 0x10061ef
call dword [sym.imp.USER32.dll_EnumWindowStationsW]
cmp dword [ebp - 0x3c], edi
je 0x10063d6
push dword [ebp - 0x3c]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp dword [ebp - 0x38], edi
je 0x10063e5
push dword [ebp - 0x38]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov ecx, esi
call fcn.0100607c
lea eax, [esi + 0xa4]
push eax
push edi
push dword [esi + 0xa0]
call fcn.01005959
or dword [ebp - 4], 0xffffffff
xor eax, eax
inc eax
jmp 0x10062cb
Function at 0x1008348
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x10019e8
call fcn.010085f4
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1008383
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1008383
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100839b
cmp eax, 0x20b
je 0x1008388
mov dword [ebp - 0x1c], edi
jmp 0x10083af
cmp dword [ecx + 0x84], 0xe
jbe 0x1008383
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x10083a9
cmp dword [ecx + 0x74], 0xe
jbe 0x1008383
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x101108c], 0xffffffff
or dword [0x1011090], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1011070]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x101106c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1011094], eax
call fcn.010085ec
cmp dword [0x1011050], edi
jne 0x100840a
push fcn.010085ec
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010085d5
push 0x1011010
push 0x101100c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1011068]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1011064]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x1011008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0100641e
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1008481
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10084b6
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100862f
ret
Function at 0x1009a9e
Capabilities:
Initialize winsock library

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x1011040]
and dword [ebp - 0x198], 0
cmp dword [0x1011074], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x19c], eax
jne 0x1009b02
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1009af8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1009ba8
mov dword [0x1011074], 1
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esi + 5]
push 1
push eax
call dword [sym.imp.msvcrt.dll_calloc]
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x1009b33
push 0x8007000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01008ae2
jmp 0x1009b73
push esi
push edi
push ebx
call fcn.01008bc2
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x198], eax
jne 0x1009b5c
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push 0x800300fd
jmp 0x1009b26
push 2
push 4
lea eax, [ebp - 0x198]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
mov esi, eax
test esi, esi
jne 0x1009b77
xor eax, eax
jmp 0x1009ba6
push edi
call dword [sym.imp.msvcrt.dll_free]
cmp dword [ebp + 0x10], 0
mov eax, dword [esi]
pop ecx
jne 0x1009b95
push 0x1001ad0
push eax
call dword [sym.imp.msvcrt.dll_strtok]
pop ecx
pop ecx
push 0xf
push dword [ebp - 0x19c]
push eax
call fcn.01008c6d
xor eax, eax
inc eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01008128
leave
ret 0xc

Function at 0x1009bde
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x1011040]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x3f
xor edx, edx
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
cmp ebx, edx
lea edi, [ebp - 0x100]
mov dword [ebp - 0x104], edx
rep stosd dword es:[edi], eax
push 0x3f
pop ecx
lea edi, [ebp - 0x200]
mov dword [ebp - 0x204], edx
mov dword [ebp - 0x208], edx
rep stosd dword es:[edi], eax
je 0x1009ccd
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1009ccd
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
mov edi, 0x80
push 4
mov dword [ebp - 0x208], edi
call esi
push 0
push 1
push ebx
lea eax, [ebp - 0x104]
push eax
call fcn.01009310
test eax, eax
je 0x1009ccd
push ebx
call fcn.01009881
cmp eax, 1
jne 0x1009c9d
push 0
lea eax, [ebp - 0x204]
push eax
push ebx
call fcn.01009a9e
test eax, eax
je 0x1009cd0
push 0
push 1
lea eax, [ebp - 0x204]
push eax
jmp 0x1009cba
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
push 7
mov dword [ebp - 0x208], edi
call esi
push 0
push 1
push ebx
lea eax, [ebp - 0x104]
push eax
call fcn.01009310
neg eax
sbb eax, eax
inc eax
jmp 0x1009cd0
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01008128
leave
ret 4
Function at 0x1009f38
Capabilities:
Connect network resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x1011040]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x408], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x410], eax
mov eax, dword [ebp + 0x14]
push 0x7e
mov dword [ebp - 0x40c], eax
pop ecx
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x404], ebx
lea edi, [ebp - 0x400]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x7e
pop ecx
mov dword [ebp - 0x204], ebx
xor eax, eax
lea edi, [ebp - 0x200]
rep stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
call fcn.01009bde
cmp eax, 1
jne 0x1009fe5
cmp dword [ebp - 0x408], ebx
je 0x1009fde
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1009fde
mov esi, 0xa0010001
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x157e
call fcn.01009811
push eax
call fcn.0100885b
mov eax, esi
jmp 0x100a12d
xor eax, eax
jmp 0x100a12d
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0x204]
push eax
call edi
push esi
call fcn.01009bba
cmp eax, 1
jne 0x100a00d
add esi, 4
push esi
lea eax, [ebp - 0x204]
push eax
call edi
lea eax, [ebp - 0x204]
push eax
call fcn.01009972
test eax, eax
jne 0x100a028
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100a12d
mov esi, 0x1001324
push esi
lea eax, [ebp - 0x404]
push eax
call edi
cmp dword [ebp - 0x40c], ebx
je 0x100a073
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x100a073
push dword [ebp - 0x40c]
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push 0x1001af4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x100a08f
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push 0x1001864
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 8
pop ecx
xor eax, eax
push ebx
push dword [ebp - 0x408]
lea edi, [ebp - 0x430]
push dword [ebp - 0x410]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x404]
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x430]
push eax
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x414], ebx
mov dword [ebp - 0x420], ebx
call sub.MPR.dll_WNetAddConnection2W
mov edi, eax
cmp edi, ebx
je 0x100a0ef
cmp edi, 0x4b8
je 0x100a0e8
call fcn.01008ae2
jmp 0x100a12b
call fcn.01008b39
jmp 0x100a12b
push esi
xor edi, edi
call fcn.0100885b
lea eax, [ebp - 0x204]
push eax
call fcn.01009ce4
cmp eax, 0x1388
jae 0x100a12b
lea eax, [ebp - 0x204]
push eax
call fcn.01009f1b
push 0x157f
call fcn.01009811
push eax
call fcn.0100885b
mov edi, 0x4b8
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01008128
leave
ret 0x10
Function at 0x4063d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov eax, dword [0x41ad90]
mov dword [ebp - 0xc], 0x10
test eax, eax
jne 0x406451
lea eax, [ebp - 0xc]
mov dword [esp + 8], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [0x414f80]
mov dword [esp], eax
call sub.cygwin1.dll_accept
test eax, eax
mov ebx, eax
js 0x406491
mov eax, dword [0x414f80]
mov dword [esp], eax
call sub.cygwin1.dll_close
lea eax, [ebp - 8]
mov dword [0x414f80], ebx
mov dword [ebp - 8], 8
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], 3
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.cygwin1.dll_setsockopt
test eax, eax
js 0x406470
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [0x414f80]
mov dword [esp], eax
call sub.cygwin1.dll__fdopen64
add esp, 0x34
pop ebx
pop ebp
ret
call sub.cygwin1.dll___errno
mov dword [esp + 8], str.setsockopt_TOS__ignored_
mov eax, dword [eax]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.0040c930
jmp 0x406451
call sub.cygwin1.dll___errno
mov dword [esp + 8], str.accept
mov eax, dword [eax]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.0040c930
mov eax, dword [0x414f80]
mov dword [esp], eax
call sub.cygwin1.dll_close
xor eax, eax
mov dword [0x414f80], 0xffffffff
jmp 0x406465
Function at 0x406930
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x42c
lea eax, [ebp - 0x41c]
mov dword [esp + 0x10], 0xff
mov dword [esp + 0xc], 0xf4
mov dword [esp + 8], 0xff
mov dword [esp + 4], str._c_c_c
mov dword [esp], eax
call sub.cygwin1.dll_sprintf
mov eax, dword [0x419600]
mov dword [esp], eax
call sub.cygwin1.dll_fileno
lea edx, [ebp - 0x41c]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 3
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.cygwin1.dll_send
cmp eax, 3
je 0x4069bd
call sub.cygwin1.dll___errno
mov dword [esp + 8], str.abort
mov eax, dword [eax]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.0040c930
mov eax, dword [0x419600]
mov dword [esp + 8], 0xf2
mov dword [esp + 4], str._cABOR_r_n
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov eax, dword [0x419600]
mov dword [esp], eax
call sub.cygwin1.dll_fflush
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
lea esi, [esi]
mov byte [eax], 0
add eax, 1
cmp eax, edx
jne 0x4069f0
mov eax, dword [0x419700]
mov edi, 1
mov dword [esp], eax
call sub.cygwin1.dll_fileno
mov ebx, eax
mov eax, dword [0x419700]
shr ebx, 5
mov esi, dword [ebp + ebx*4 - 0x14]
mov dword [esp], eax
call sub.cygwin1.dll_fileno
mov ecx, eax
mov eax, edi
and ecx, 0x1f
shl eax, cl
or esi, eax
mov eax, dword [ebp + 8]
mov dword [ebp + ebx*4 - 0x14], esi
test eax, eax
je 0x406a64
mov edx, dword [ebp + 8]
mov dword [esp], edx
call sub.cygwin1.dll_fileno
mov esi, eax
mov eax, dword [ebp + 8]
shr esi, 5
mov ebx, dword [ebp + esi*4 - 0x14]
mov dword [esp], eax
call sub.cygwin1.dll_fileno
mov ecx, eax
and ecx, 0x1f
shl edi, cl
or ebx, edi
mov dword [ebp + esi*4 - 0x14], ebx
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x1c], 0xa
mov dword [ebp - 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], 0x20
call sub.cygwin1.dll_select
cmp eax, 0
jle 0x406b50
mov esi, dword [ebp + 8]
test esi, esi
je 0x406ad5
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.cygwin1.dll_fileno
mov edx, dword [ebp + 8]
mov dword [esp], edx
shr eax, 5
mov ebx, dword [ebp + eax*4 - 0x14]
call sub.cygwin1.dll_fileno
mov ecx, eax
and ecx, 0x1f
sar ebx, cl
and ebx, 1
jne 0x406b00
mov dword [esp], 0
call fcn.004064d0
cmp eax, 5
je 0x406b30
mov dword [esp], 0
call fcn.004064d0
add esp, 0x42c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.cygwin1.dll_fileno
lea edx, [ebp - 0x41c]
mov dword [esp + 8], 0x400
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.cygwin1.dll_read
test eax, eax
jg 0x406b00
jmp 0x406ad5
cmp dword [0x41b114], 0x228
jne 0x406ae6
mov dword [esp], 0
call fcn.004064d0
jmp 0x406ae6
jne 0x406b70
mov edi, dword [0x419604]
test edi, edi
je 0x406b66
mov dword [0x41b114], 0xffffffff
call fcn.00409cd0
jmp 0x406aa5
call sub.cygwin1.dll___errno
mov dword [esp + 8], str.abort
mov eax, dword [eax]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.0040c930
jmp 0x406b52
Function at 0x406c90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x41ad98]
mov ebx, dword [ebp + 8]
mov dword [0x419050], 0
test eax, eax
jne 0x406db0
mov eax, dword [0x419600]
test eax, eax
je 0x406e10
mov dword [esp + 4], 0x4060b0
mov edi, str.QUIT
mov esi, ebx
mov dword [esp], 2
call sub.cygwin1.dll_signal
mov dword [ebp - 0x10], eax
mov dword [esp + 4], 1
mov dword [esp], 0xd
call sub.cygwin1.dll_signal
lea eax, [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [0x419600]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.cygwin1.dll_vfprintf
mov eax, dword [0x419600]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x416292
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
mov eax, dword [0x419600]
mov dword [esp], eax
call sub.cygwin1.dll_fflush
mov ecx, 5
mov dword [0x41b260], 1
repe cmpsb byte [esi], byte es:[edi]
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004064d0
mov edi, eax
mov eax, dword [0x419050]
test eax, eax
jne 0x406d97
mov eax, dword [ebp - 0x10]
mov dword [esp], 2
mov dword [esp + 4], eax
call sub.cygwin1.dll_signal
mov dword [esp + 4], 0
mov dword [esp], 0xd
call sub.cygwin1.dll_signal
add esp, 0x1c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [ebp - 0x10], 1
je 0x406d66
mov dword [esp], 2
call dword [ebp - 0x10]
jmp 0x406d66
mov dword [esp], str.____
mov esi, str.PASS
mov edi, ebx
call sub.cygwin1.dll_printf
mov ecx, 5
repe cmpsb byte [esi], byte es:[edi]
je 0x406e42
call sub.cygwin1.dll___getreent
lea edx, [ebp + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.cygwin1.dll_vfprintf
mov dword [esp], 0xa
call sub.cygwin1.dll_putchar
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.cygwin1.dll_fflush
mov eax, dword [0x419600]
test eax, eax
jne 0x406cc0
xor edi, edi
mov dword [esp + 8], str.No_control_connection_for_command
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0040c930
mov eax, edi
mov dword [0x41b114], 0xffffffff
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.PASS_XXXX
call sub.cygwin1.dll_printf
jmp 0x406de7
Function at 0x40a910
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x1c
lea esi, [esi]
call sub.cygwin1.dll___errno
add ebx, 0x100
mov dword [eax], 0
mov dword [esp + 4], ebx
mov dword [esp], edi
call sub.cygwin1.dll_realloc
test eax, eax
mov esi, eax
je 0x40a980
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.cygwin1.dll_gethostname
test eax, eax
mov edi, eax
jne 0x40a96d
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], esi
call sub.cygwin1.dll_memchr
test eax, eax
je 0x40a977
call sub.cygwin1.dll___errno
cmp dword [eax], 0x5b
jne 0x40a9a0
mov edi, esi
jmp 0x40a920
call sub.cygwin1.dll___errno
mov dword [eax], 0xc
mov dword [esp], edi
call sub.cygwin1.dll_free
xor eax, eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
test edi, edi
je 0x40a9af
call sub.cygwin1.dll___errno
mov eax, dword [eax]
test eax, eax
jne 0x40aa00
mov dword [esp], esi
call sub.cygwin1.dll_gethostbyname
test eax, eax
je 0x40aa10
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [esp + 8], 2
mov dword [esp + 4], 4
mov dword [esp], eax
call sub.cygwin1.dll_gethostbyaddr
test eax, eax
mov ebx, eax
je 0x40aa10
mov dword [esp], esi
call sub.cygwin1.dll_free
mov eax, dword [ebx]
mov dword [esp], eax
call sub.cygwin1.dll_strdup
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
call sub.cygwin1.dll_free
xor eax, eax
jmp 0x40a995
add esp, 0x1c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret