joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408350
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ecx
push esi
mov esi, ecx
cmp eax, 4
je 0x408408
cmp eax, 3
jne 0x40839f
push 0
push str.info
push str.Failed_to_loading__Thanks_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 4]
push 0
push 0x1388
push 0x1388
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
pop esi
pop ecx
ret 4
cmp eax, 2
jne 0x408408
cmp dword [esp + 0xc], 0
je 0x408408
call fcn.00408410
lea ecx, [esi + 0x24]
call fcn.004034b0
mov eax, dword [esi + 0x3c]
cmp dword [eax - 8], 0
je 0x4083da
mov edx, dword [0x446b98]
push 1
push 0
push edx
push eax
push 0x43d1f8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x408403
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x408403
mov edx, dword [eax + 0x24]
test edx, edx
je 0x408403
cmp dword [eax + 0x38], 0
mov byte [eax + 0x2d], 1
jne 0x408403
add eax, 4
push eax
push edx
call fcn.0040ca62
call fcn.00408250
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x40ac40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43847c
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x444600]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esi], vtable.CHttpRequest.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov byte [esi + 0x2c], bl
mov byte [esi + 0x2d], bl
mov eax, dword [0x445448]
mov dword [esi + 0x30], eax
mov dword [esp + 0x1c], ebx
mov ecx, dword [0x445448]
mov dword [esi + 0x34], ecx
lea edx, [esi + 0x3c]
mov byte [esp + 0x1c], 1
push edx
mov dword [esi + 0x38], ebx
call fcn.0040bca0
mov byte [esp + 0x1c], 2
mov dword [esi + 0x54], ebx
mov dword [esi + 0x20], edi
cmp edi, ebx
je 0x40acf4
push 0x24
call fcn.00424823
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0x1c], 3
cmp eax, ebx
je 0x40acef
mov ecx, dword [esi + 0x20]
push ecx
mov edi, eax
call fcn.0040c9d7
jmp 0x40acf1
xor eax, eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x14], 0x40b000
mov dword [esi + 0x18], 0x40b1b0
mov dword [esi + 0x1c], esi
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x413402
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
push 4
mov edi, ecx
call fcn.00424823
mov esi, eax
pop ecx
test esi, esi
jne 0x41341a
or eax, 0xffffffff
jmp 0x413449
lea eax, [esp + 8]
push eax
push 0
push edi
push 0x4133f4
push 0
push 0
mov dword [edi + 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
test eax, eax
jne 0x413447
push esi
call fcn.00423319
and dword [edi + 4], 0
pop ecx
jmp 0x413415
xor eax, eax
pop edi
pop esi
pop ecx
ret
Function at 0x417a48
Capabilities:
Read file on windows

Disassembly:
push 8
mov eax, 0x4373dd
call fcn.004286ed
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jne 0x417a71
push ebx
push ebx
push 2
xor ecx, ecx
pop eax
call fcn.00418d7f
xor al, al
jmp 0x417bcf
call fcn.0041747c
or dword [edi + 8], 0xffffffff
or dword [edi + 4], 0xffffffff
push 2
push ebx
push dword [ebp + 0xc]
call fcn.0042463f
push dword [ebp + 0xc]
call fcn.00424e92
push ebx
push ebx
push dword [ebp + 0xc]
mov esi, eax
call fcn.0042463f
add esp, 0x1c
cmp esi, ebx
jg 0x417aaa
push ebx
push ebx
push 0xd
jmp 0x417a62
mov ebx, 0x446abc
mov dword [ebp - 0x10], ebx
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00416f21
lea eax, [esi + 1]
push eax
call fcn.00424823
push dword [ebp + 0xc]
mov edi, eax
push 1
push esi
push edi
mov dword [ebp - 0x14], edi
mov byte [edi], 0
call fcn.00424337
add esp, 0x14
cmp eax, 1
je 0x417b15
push edi
call fcn.00423319
mov edi, dword [ebp + 8]
pop ecx
push 0
push 0
push 2
xor ecx, ecx
pop eax
call fcn.00418d7f
cmp dword [ebp - 0x10], ebx
je 0x417a6a
push dword [ebp - 0x10]
call fcn.0042408c
pop ecx
jmp 0x417a6a
mov ebx, edi
mov eax, ebx
mov byte [eax + esi], 0
cmp byte [eax], 0
je 0x417b7a
mov al, byte [ebx]
cmp al, 0xa
jne 0x417b3a
mov eax, ebx
sub eax, edi
inc eax
push eax
push edi
lea edi, [ebp - 0x10]
call fcn.00417011
inc ebx
jmp 0x417b70
cmp al, 0xd
jne 0x417b74
mov eax, ebx
sub eax, edi
test eax, eax
jle 0x417b50
push eax
push edi
lea edi, [ebp - 0x10]
call fcn.00417011
push 1
lea eax, [ebp + 0xc]
push eax
lea edi, [ebp - 0x10]
mov byte [ebp + 0xc], 0xa
call fcn.00417011
lea eax, [ebx + 1]
cmp byte [eax], 0xa
jne 0x417b6e
inc ebx
inc ebx
jmp 0x417b70
mov ebx, eax
mov edi, ebx
jmp 0x417b75
inc ebx
cmp byte [ebx], 0
jne 0x417b22
sub ebx, edi
je 0x417b88
push ebx
push edi
lea edi, [ebp - 0x10]
call fcn.00417011
push dword [ebp - 0x14]
call fcn.00423319
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [esi]
pop ecx
push 0
push 0
lea ecx, [edi + 8]
push ecx
mov ecx, esi
call dword [eax + 8]
cmp byte [esi + 0x2c], 0
je 0x417bbe
cmp edi, 0x446abc
je 0x417a6a
push edi
jmp 0x417b0a
cmp edi, 0x446abc
je 0x417bcd
push edi
call fcn.0042408c
pop ecx
mov al, 1
call fcn.004287c5
ret 8

Function at 0x41aab9
Capabilities:
Manipulate console buffer

Disassembly:
mov ecx, dword [eax + 0x1c]
test ecx, 0x100
je 0x41aaf8
cmp dword [eax + 0xc], 0xe
jne 0x41aacf
jmp fcn.0041e750
and ecx, 0xfffffeff
dec dword [eax + 0x34]
mov dword [eax + 0x1c], ecx
jne 0x41aaf8
test cl, 1
jne 0x41aaf8
test cl, 0x40
je 0x41aaf8
and ecx, 0xffffffbf
mov dword [eax + 0x1c], ecx
test cl, 0x20
je 0x41aaf8
mov eax, dword [eax + 8]
dec dword [eax + 0xc]
xor eax, eax
ret
Function at 0x41b39a
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebx
push esi
push edi
mov edi, eax
cmp dword [edi + 0x74], 0xffffffff
jne 0x41b415
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41b3d5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov edi, dword [edi + 8]
mov ecx, esi
call fcn.0041fd2f
mov dword [edi + 4], eax
mov dword [edi + 8], esi
or eax, 0xffffffff
jmp 0x41b44d
push 0
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x41b405
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [edi + 8]
mov esi, eax
mov ecx, esi
call fcn.0041fd2f
mov dword [edi + 4], eax
mov dword [edi + 8], esi
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x41b3d0
mov esi, dword [edi + 8]
push ebx
push edi
call fcn.0041b069
pop ecx
pop ecx
test eax, eax
jl 0x41b3fc
push 0x10
push dword [esp + 0x14]
push dword [edi + 0x74]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x41b444
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov eax, 0x2740
cmp esi, eax
jne 0x41b3c0
or dword [edi + 0x1c], 0x400
mov dword [edi + 0x78], eax
or dword [edi + 0x1c], 0x200
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x41b669
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, eax
push edi
xor eax, eax
lea ebx, [esi + 0x38]
lea ecx, [ebx + 0x10]
mov edi, ecx
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
or dword [esi + 0x1c], 0x80000
xor eax, eax
mov edi, ecx
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
xor edx, edx
mov edi, 0x100000
mov dword [ebp - 0xc], 0x446ad8
mov dword [ebp - 0x10], edx
test dword [esi + 0x1c], edi
je 0x41b6b2
mov eax, dword [ebx + 0x2c]
or eax, 1
mov dword [ebx + 0x20], eax
push edx
push ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x74]
mov dword [ebp - 4], edx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x41b6f2
mov eax, dword [esi + 0x1c]
test eax, 0x40000
je 0x41b72d
or eax, 0x20000
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x14], eax
inc dword [esi + 0x30]
jmp 0x41b77d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x41b72d
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
test eax, eax
jg 0x41b70f
call edi
jmp 0x41b71b
call edi
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x10], eax
mov eax, ebx
call fcn.0041af8f
inc dword [esi + 0x30]
jmp 0x41b787
or dword [esi + 0x1c], 0x20000
mov eax, dword [esi + 0x1c]
inc dword [esi + 0x30]
test edi, eax
je 0x41b787
lea eax, [ebx + 0x30]
cmp dword [eax], 0xffffffff
jne 0x41b787
push 4
push 0xffffffffffffffff
push ebx
push 0x41b451
push dword [ebx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x41b787
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x41b76e
call esi
jmp 0x41b77a
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebx + 0x10], eax
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.0041af8f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41bea9
Capabilities:
Set socket configuration

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 0x2c]
push esi
mov esi, ecx
cmp eax, 0xffffffff
jne 0x41bf0f
mov eax, dword [esi + 0x1c]
test eax, 0x800
je 0x41bf6b
and eax, 0xfffff7ff
dec dword [esi + 0x34]
mov dword [esi + 0x1c], eax
jne 0x41beea
test al, 1
jne 0x41beea
test al, 0x40
je 0x41beea
and eax, 0xffffffbf
mov dword [esi + 0x1c], eax
test al, 0x20
je 0x41beea
mov eax, dword [esi + 8]
dec dword [eax + 0xc]
cmp dword [esi + 0x6c], 0
je 0x41bf6b
mov eax, dword [ebx + 0x10]
call fcn.004207c6
mov ebx, eax
mov ecx, ebx
call fcn.0041fd2f
push 0xffffffffffffffff
push esi
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
call dword [esi + 0x6c]
jmp 0x41bf4c
cmp dword [ebx + 0x10], 0
jl 0x41bf50
push 4
lea ecx, [esi + 0x74]
push ecx
push 0x700b
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x41bf50
lea eax, [esi + 0x84]
mov ecx, dword [eax]
mov dword [ebx + 0x158], ecx
mov dword [eax], ebx
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x41bf6b
push 0
push esi
call eax
pop ecx
pop ecx
jmp 0x41bf6b
push dword [ebx + 0x2c]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [ebx + 0x2c], 0xffffffff
test dword [esi + 0x1c], 0x800
je 0x41bf6b
call fcn.0041b4bc
dec dword [esi + 0x30]
test byte [esi + 0x1c], 1
mov eax, dword [esi + 0x30]
je 0x41bf86
test eax, eax
jne 0x41bf86
mov ecx, esi
pop esi
mov edx, edi
pop ebx
jmp fcn.0041af78
pop esi
pop ebx
ret

Function at 0x41bf89
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
dec dword [esi + 0x34]
jne 0x41bfad
mov eax, dword [esi + 0x1c]
test al, 1
jne 0x41bfad
test al, 0x40
je 0x41bfad
and eax, 0xffffffbf
mov dword [esi + 0x1c], eax
test al, 0x20
je 0x41bfad
mov eax, dword [esi + 8]
dec dword [eax + 0xc]
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov dword [eax], ecx
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov dword [eax + 4], ecx
mov eax, dword [edi + 0x10]
test eax, eax
jl 0x41bffd
push 0
push 0
push 0x7010
push 0xffff
push dword [esi + 0x74]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x41bff5
mov eax, esi
call fcn.0041afaf
or dword [esi + 0x1c], 0x18000
inc dword [ebx + 0x60]
push 0
jmp 0x41c017
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x41c002
call fcn.004207c6
mov ecx, eax
mov dword [ebp - 4], ecx
call fcn.0041fd2f
mov dword [ebx + 4], eax
mov eax, dword [ebp - 4]
push 0xffffffffffffffff
mov dword [ebx + 8], eax
push edi
call dword [edi + 0x2c]
dec dword [esi + 0x30]
test byte [esi + 0x1c], 1
mov eax, dword [esi + 0x30]
pop ecx
pop ecx
je 0x41c036
test eax, eax
jne 0x41c036
mov ecx, esi
mov edx, ebx
call fcn.0041af78
leave
ret
Function at 0x41ce5d
Capabilities:
Read file on windows

Disassembly:
test dword [esi + 0x1c], 0x1000000
push ebx
push edi
lea ebx, [esi + 0x38]
je 0x41ce8c
push 0x10
push ebx
push 0x41cd75
call dword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
jne 0x41cf46
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41cf20
xor eax, eax
lea ecx, [ebx + 0x10]
mov edi, ecx
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
test dword [esi + 0x1c], 0x100000
je 0x41ceaa
mov eax, dword [ebx + 0x2c]
or eax, 1
mov dword [ebx + 0x20], eax
push ecx
push 0
push 0
push 0x446ad9
push dword [esi + 0x78]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41ced0
call edi
cmp eax, 0x3e5
jne 0x41cf20
test dword [esi + 0x1c], 0x100000
je 0x41cf46
xor eax, eax
cmp dword [ebx + 0x2c], eax
jne 0x41cf00
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x2c], eax
test eax, eax
jne 0x41cf00
push str.CreateEvent
call edi
push eax
call fcn.0041fca8
pop ecx
pop ecx
lea eax, [ebx + 0x30]
cmp dword [eax], 0xffffffff
jne 0x41cf46
push 4
push 0xffffffffffffffff
push ebx
push 0x41b451
push dword [ebx + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x41cf46
call edi
test eax, eax
jg 0x41cf2a
call edi
jmp 0x41cf36
call edi
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [esp + 0xc]
mov dword [ebx + 0x10], eax
mov eax, ebx
call fcn.0041af8f
jmp 0x41cf4d
mov eax, esi
call fcn.0041d925
or dword [esi + 0x1c], 0x20000
inc dword [esi + 0x30]
pop edi
pop ebx
ret
Function at 0x41e750
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, eax
and dword [esi + 0x1c], 0xfffffeff
dec dword [esi + 0x34]
mov ebx, dword [esi + 8]
mov eax, dword [esi + 0x1c]
jne 0x41e781
test al, 1
jne 0x41e781
test al, 0x40
je 0x41e781
and eax, 0xffffffbf
mov dword [esi + 0x1c], eax
test al, 0x20
je 0x41e781
dec dword [ebx + 0xc]
mov eax, dword [esi + 0x1c]
test eax, 0x20000
je 0x41e7cf
test eax, 0x2000000
je 0x41e7cf
push edi
xor eax, eax
lea edi, [ebp - 0x18]
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
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
pop edi
test eax, eax
jne 0x41e7cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, esi
call fcn.0041fd2f
mov dword [ebx + 4], eax
mov dword [ebx + 8], esi
or eax, 0xffffffff
jmp 0x41e7e3
mov eax, dword [esi + 0x78]
test eax, eax
je 0x41e7e1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x78], 0
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x41e918
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebx], 0
push edi
je 0x41e929
or eax, 0xffffffff
jmp 0x41e97d
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x41e942
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
push dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edi, [ebp - 0x18]
call fcn.0041e875
pop ecx
pop ecx
push eax
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x41e97b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x41e929
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
jmp 0x41e924
xor eax, eax
pop edi
leave
ret
Function at 0x41e980
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
push edi
mov word [ebp - 4], ax
mov word [ebp - 2], ax
cmp dword [ebx], eax
jne 0x41ea1d
push 7
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
test eax, eax
jne 0x41e9b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41ea1b
push dword [ebp - 4]
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
je 0x41e9a8
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x41ea19
movsx ecx, word [ebp - 0x20]
movsx eax, word [ebp - 0x1e]
imul eax, ecx
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 4]
push eax
push 0x20
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
test eax, eax
je 0x41ea12
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push 7
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
jne 0x41ea23
call edi
cmp eax, 0x57
je 0x41e9c6
call edi
mov dword [ebx], eax
or eax, 0xffffffff
pop edi
leave
ret
and dword [0x445458], 0
lea ecx, [ebp - 0x20]
call fcn.0041e7e7
xor eax, eax
jmp 0x41ea20
Function at 0x4205f3
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
mov eax, dword [0x444600]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push esi
push edi
lea eax, [esp + 0x2a8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x420634
push str.WSAStartup
push eax
call fcn.0041fca8
pop ecx
pop ecx
push 0
mov ebx, str.0.0.0.0
lea esi, [esp + 0x14]
call fcn.0041a054
mov esi, eax
mov edi, 0x447e50
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
movsd dword es:[edi], dword [esi]
push 7
pop ecx
movsd dword es:[edi], dword [esi]
xor eax, eax
push 0x17
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
pop eax
push 0
mov word [esp + 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
lea eax, [esp + 0x18]
push eax
call fcn.004218f7
pop ecx
push 7
pop ecx
push 0
lea esi, [esp + 0x14]
mov edi, 0x447e60
push 1
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.WS2_32.dll_socket]
push 2
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x420707
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x34]
push eax
push 0x2005
push 0xffff
push edi
mov dword [esp + 0x20], 0x274
call dword [sym.imp.WS2_32.dll_getsockopt]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
sbb eax, eax
inc eax
cmp eax, 0xffffffff
jne 0x4206e0
push str.getsockopt
call ebx
push eax
call fcn.0041fca8
pop ecx
pop ecx
test dword [esp + 0x30], 0x20000
jne 0x4206f4
mov dword [0x447e80], 1
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x420727
push str.closesocket
jmp 0x42071d
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
call fcn.004205d0
test eax, eax
jne 0x420727
push str.socket
call ebx
push eax
call fcn.0041fca8
pop ecx
pop ecx
push 0
xor edi, edi
inc edi
push edi
push 0x17
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x420797
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x34]
push eax
push 0x2005
push 0xffff
push esi
mov dword [esp + 0x20], 0x274
call dword [sym.imp.WS2_32.dll_getsockopt]
neg eax
sbb eax, eax
inc eax
cmp eax, 0xffffffff
jne 0x420774
push str.getsockopt
call ebx
push eax
call fcn.0041fca8
pop ecx
pop ecx
test dword [esp + 0x30], 0x20000
jne 0x420784
mov dword [0x447e7c], edi
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x4207b1
push str.closesocket
jmp 0x4207a7
call ebx
call fcn.004205d0
test eax, eax
jne 0x4207b1
push str.socket
call ebx
push eax
call fcn.0041fca8
pop ecx
pop ecx
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00423324
mov esp, ebp
pop ebp
ret

Function at 0x421dc8
Capabilities:
Hash data via wincrypt

Disassembly:
mov eax, dword [esp + 8]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x421dcf
sub eax, ecx
sar eax, 1
push 0
add eax, eax
push eax
push dword [esp + 0x10]
mov eax, dword [esp + 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x421dfd
call fcn.00404c00
jmp 0x421dff
xor eax, eax
ret 8
Function at 0x42210c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [eax + 0x18], 0x10
push esi
mov esi, ecx
jb 0x42211e
mov eax, dword [eax + 4]
jmp 0x422121
add eax, 4
push 0x43db6c
push eax
call fcn.00423fa7
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x422139
xor al, al
jmp 0x42216e
cmp dword [esi + 0x18], 0x10
push ebx
push edi
mov edi, dword [esi + 0x14]
jb 0x422149
mov esi, dword [esi + 4]
jmp 0x42214c
add esi, 4
push eax
xor ebx, ebx
push edi
inc ebx
push ebx
push esi
call fcn.00424533
add esp, 0x10
cmp eax, edi
je 0x422161
xor bl, bl
push dword [ebp - 4]
call fcn.0042478c
pop ecx
pop edi
mov al, bl
pop ebx
pop esi
leave
ret
Function at 0x422a85
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
sub esp, 0x11c
lea ebp, [esp - 4]
mov eax, dword [0x444600]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push 0x34
mov eax, 0x4380ad
call fcn.004286ed
xor esi, esi
lea eax, [ebp - 0x40]
mov dword [ebp - 4], esi
mov edi, ecx
push eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x445448]
mov dword [ebp - 0x14], eax
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
movzx eax, word [ebp - 0x40]
cmp eax, esi
je 0x422b00
cmp eax, 6
je 0x422af9
cmp eax, 9
je 0x422af2
push eax
push 0x43ee9c
lea edx, [ebp - 0x14]
call fcn.004013e0
pop ecx
pop ecx
jmp 0x422b0d
push 0x43ee90
jmp 0x422b05
push 0x43ee94
jmp 0x422b05
push 0x43ee98
lea eax, [ebp - 0x14]
call fcn.00422386
mov eax, dword [0x445448]
mov dword [ebp], 0x11c
mov dword [edi], eax
lea eax, [ebp]
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x422c8d
mov eax, dword [0x445448]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
push dword [ebp + 8]
lea edx, [ebp - 0x10]
push dword [ebp + 4]
push str._ld__ld
call fcn.004013e0
mov eax, dword [ebp + 4]
add esp, 0xc
sub eax, 4
je 0x422c26
dec eax
je 0x422bcd
dec eax
jne 0x422c64
mov eax, dword [ebp + 8]
sub eax, esi
je 0x422bae
dec eax
je 0x422b8f
dec eax
jne 0x422c64
cmp byte [ebp + 0x11a], bl
jne 0x422c64
mov edi, str.Win8
jmp 0x422c5c
lea eax, [ebp - 0x10]
cmp byte [ebp + 0x11a], bl
jne 0x422ba4
mov edi, str.Win7
jmp 0x422c5f
mov edi, str.WinSrv2008R2
jmp 0x422c5f
lea eax, [ebp - 0x10]
cmp byte [ebp + 0x11a], bl
jne 0x422bc3
mov edi, str.Vista
jmp 0x422c5f
mov edi, str.WinSrv2008
jmp 0x422c5f
mov eax, dword [ebp + 8]
sub eax, esi
je 0x422c1f
dec eax
je 0x422c18
dec eax
jne 0x422c64
cmp byte [ebp + 0x11a], bl
jne 0x422bf4
cmp word [ebp - 0x40], 9
jne 0x422bf4
mov edi, str.WinXpProfX64Edition
jmp 0x422c5c
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call esi
test eax, eax
jne 0x422c09
mov edi, str.WinSrv2003
jmp 0x422c5c
push 0x59
call esi
test eax, eax
je 0x422c64
mov edi, str.WinSrv2003R2
jmp 0x422c5c
mov edi, str.WinXP
jmp 0x422c5c
mov edi, str.Win2000
jmp 0x422c5c
cmp dword [ebp + 8], esi
je 0x422c45
cmp dword [ebp + 8], 0xa
je 0x422c3e
cmp dword [ebp + 8], 0x5a
jne 0x422c64
mov edi, str.WinMe
jmp 0x422c5c
mov edi, str.Win98
jmp 0x422c5c
cmp dword [ebp + 0x10], 2
jne 0x422c52
mov edi, str.WinNT4.0
jmp 0x422c5c
cmp dword [ebp + 0x10], ebx
jne 0x422c64
mov edi, str.Win95
lea eax, [ebp - 0x10]
call fcn.00401230
call fcn.00421f67
mov edi, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
mov edx, edi
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
push str._s_ld_s_d
call fcn.004013e0
add esp, 0x14
lea esi, [ebp - 0x10]
call fcn.004019e0
lea esi, [ebp - 0x14]
call fcn.004019e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.00423324
add ebp, 0x120
leave
ret