joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002e2b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [0x1005de9c], eax
je 0x1002e2d5
mov eax, 0x10dd
jmp 0x1002e468
cmp dword [0x1005dea0], 0
je 0x1002e2e8
mov eax, dword [0x1005dea0]
jmp 0x1002e468
cmp dword [ebp + 8], 0
jne 0x1002e2f8
mov eax, 6
jmp 0x1002e468
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x1002e321
mov dword [ebp - 0xc], 6
mov ecx, dword [ebp - 0xc]
mov dword [0x1005dea0], ecx
mov edx, dword [ebp + 8]
mov dword [0x1005dea4], edx
mov eax, dword [ebp - 0xc]
jmp 0x1002e468
push 0x18
call fcn.10030eba
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1002e37a
mov dword [ebp - 0xc], 8
mov ecx, dword [ebp - 0xc]
mov dword [0x1005dea0], ecx
cmp dword [ebp - 0x18], 0
je 0x1002e369
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.1002eeea
add esp, 4
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 8]
mov dword [0x1005dea4], ecx
mov eax, dword [ebp - 0xc]
jmp 0x1002e468
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1002d280
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x17]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
sub edx, eax
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x17]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x1002e3b8
cmp dword [ebp - 4], 0x17
jbe 0x1002e3d1
mov dword [ebp - 0xc], 9
cmp dword [0x1005de98], 0
je 0x1002e3cc
jmp 0x1002e34a
jmp 0x1002e341
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x1c]
cmp eax, dword [ebp + 0xc]
je 0x1002e3f8
mov dword [ebp - 0xc], 9
cmp dword [0x1005de98], 0
je 0x1002e3f3
jmp 0x1002e34a
jmp 0x1002e341
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
push 0x40
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
test eax, eax
jne 0x1002e425
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x1002e341
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 4], 1
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [0x1005deac]
mov dword [ecx], edx
mov eax, dword [ebp - 0x18]
mov dword [0x1005deac], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x10030fba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1005a4a0]
jne 0x10030fc4
repz ret
jmp fcn.100336f6
Function at 0x1003cc33
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1005a4a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10034846
and dword [ebp - 0x14], 0
cmp dword [0x1005ebf0], 0
mov dword [ebp - 0x18], eax
jne 0x1003cce6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1003cd8e
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x1004e3dc
push ebx
call edi
test eax, eax
je 0x1003cd8e
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1005ebf0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1005ebf4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1005ebf8], eax
call edi
push eax
call esi
mov dword [0x1005ec00], eax
test eax, eax
je 0x1003cce6
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1005ebfc], eax
mov eax, dword [0x1005ebfc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x1003cd3f
cmp dword [0x1005ec00], ecx
je 0x1003cd3f
push eax
call esi
push dword [0x1005ec00]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1003cd3f
test ebx, ebx
je 0x1003cd3f
call edi
test eax, eax
je 0x1003cd36
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1003cd36
test byte [ebp - 8], 1
jne 0x1003cd3f
or dword [ebp + 0x10], 0x200000
jmp 0x1003cd72
mov eax, dword [0x1005ebf4]
cmp eax, dword [ebp - 0x18]
je 0x1003cd72
push eax
call esi
test eax, eax
je 0x1003cd72
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1003cd72
mov eax, dword [0x1005ebf8]
cmp eax, dword [ebp - 0x18]
je 0x1003cd72
push eax
call esi
test eax, eax
je 0x1003cd72
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1005ebf0]
call esi
test eax, eax
je 0x1003cd8e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1003cd90
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10030fba
leave
ret
Function at 0x4016c9
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
nop
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401738
lea eax, [ebp - 0xc]
push eax
push 0x403298
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x40172f
mov eax, dword [ebp - 0xc]
push 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x1c]
push 0x10
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x401738
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
leave
ret

Function at 0x40173a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push pe_nt_image_headers32
push dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.DLL_VirtualProtectEx]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
je 0x401786
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
mov edi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x401789
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push pe_nt_image_headers32
push dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.DLL_VirtualProtectEx]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
je 0x4017d5
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
mov edi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x4017d8
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
push edi
push 0x49
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x124]
mov dword [ebp - 0x128], ebx
push ebx
rep stosd dword es:[edi], eax
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x128]
push eax
push edi
mov dword [ebp - 0x128], 0x128
call sub.KERNEL32.DLL_Process32First
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call esi
pop ecx
test eax, eax
pop ecx
je 0x40184f
lea eax, [ebp - 0x128]
push eax
push edi
call sub.KERNEL32.DLL_Process32Next
test eax, eax
je 0x401855
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
jmp 0x40182a
mov ebx, dword [ebp - 0x120]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x401863
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
nop
push 0x2e
lea eax, [ebp - 0x84]
push 0x403228
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x84]
push 0x2d
push eax
call fcn.00401b42
add esp, 0x14
lea eax, [ebp - 4]
push eax
push 0xf003f
lea eax, [ebp - 0x84]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4018d8
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x401a3f
Capabilities:
Allocate or change rwx memory

Disassembly:
push pe_nt_image_headers32
push 0x1000
push dword [esp + 0x10]
push 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
ret

Function at 0x401b42
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jle 0x401b5a
mov eax, dword [esp + 4]
add eax, ecx
xor byte [eax], 0x28
inc ecx
cmp ecx, dword [esp + 8]
jl 0x401b4a
ret
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x401443
pop dword [ebp - 0x34]
mov eax, 0x401443
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x3acc799f
sub dword [ebp - 0x44], 0xec7a3454
mov dword [ebp - 0x40], 0x8ed93e8e
sub dword [ebp - 0x40], 0x5ca5f249
mov dword [ebp - 0x3c], 0xf1d73484
add dword [ebp - 0x3c], 0x5a750faa
mov dword [ebp - 0x38], 0xf8780873
sub dword [ebp - 0x38], 0xf8780873
lea eax, [ebp - 0x44]
push eax
mov eax, 0x99152190
add eax, 0x672b5ee8
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xa6bed9bb
add dword [ebp - 0x44], 0xcdb38f9b
mov dword [ebp - 0x40], 0xf390f2b0
sub dword [ebp - 0x40], 0xb224913b
mov dword [ebp - 0x3c], 0x8c5c4811
sub dword [ebp - 0x3c], 0x28ecdba5
mov dword [ebp - 0x38], 0x2b4d1852
sub dword [ebp - 0x38], 0x2b4d1852
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x392f5
push 0
call eax
mov ecx, 0x4b3c
mov ebx, eax
mov edx, 0x2b71cb78
add edx, 0xd4d34888
add edx, dword [ebp - 0x34]
mov edi, 0x35a64c3a
add edi, 0xf3887717
add dword [ebp - 4], 0xddb053bc
mov esi, dword [edx]
mov dword [ebp - 0x20], 0xba4c9b1c
xor esi, edi
mov dword [ebx], esi
mov dword [ebp - 0x28], 0x377d588c
add ebx, 4
add edx, 0x7fe865c1
add edx, 0x80179a43
loop 0x401555
add eax, 0x2f4b9b08
sub eax, 0x2f4a7b45
mov ebx, eax
add eax, 0xffde2736
add eax, 0x21d8cf
mov ecx, 0x36dd34a5
add ecx, 0xc962cb5b
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x1ca97a1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x1ca97b0
pop dword [ebp - 0x28]
mov eax, 0x1ca97b0
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xff4e3bdd
sub dword [ebp - 0x38], 0xb0fbf692
mov dword [ebp - 0x34], 0x183f369f
sub dword [ebp - 0x34], 0xe60bea5a
mov dword [ebp - 0x30], 0xc284fa2d
add dword [ebp - 0x30], 0x89c74a01
mov dword [ebp - 0x2c], 0x433ede28
add dword [ebp - 0x2c], 0xbcc121d8
lea eax, [ebp - 0x38]
push eax
mov eax, 0xecb92f07
add eax, 0x1512114d
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x27fc43e4
add dword [ebp - 0x38], 0x4c762572
mov dword [ebp - 0x34], 0xcfe20d31
add dword [ebp - 0x34], 0x718a5444
mov dword [ebp - 0x30], 0x33b42efe
add dword [ebp - 0x30], 0x2fbb3d6e
mov dword [ebp - 0x2c], 0x955390e9
sub dword [ebp - 0x2c], 0x955390e9
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x45830
push 0
call eax
mov ecx, 0x94d10a6
sub ecx, 0x94cb9b1
xor ebx, ebx
add ebx, eax
mov esi, 0x2062a143
sub esi, 0x1e931743
add esi, dword [ebp - 0x28]
mov edi, 0x966a3779
sub edi, 0xe550a6be
xor dword [ebp - 8], eax
mov edx, dword [esi]
add edx, edi
add dword [ebp - 4], 0xc2376809
mov dword [ebx], edx
sub dword [ebp - 0x24], ebx
add ebx, 0x34298802
sub ebx, 0x342987fe
add esi, 0x83f0d579
sub esi, 0x83f0d575
loop 0x1ca98ca
add eax, 0xf3f6e13
add eax, 0xf0c1e094
mov ebx, eax
add eax, 0xe8f1263b
add eax, 0x170ed9ca
mov ecx, 0x40aec118
sub ecx, 0x3eecc118
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x41f993
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41f9d2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f9d2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f9d2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41f9d2
cmp dword [ecx + 0x74], 0xe
jbe 0x41f9d2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x432150
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43217d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43217d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x105e80b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x105e8200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x105e80d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105e80c2
add dl, dl
jne 0x105e80e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105e8134
xor eax, eax
add dl, dl
jne 0x105e80ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105e81d5
add dl, dl
jne 0x105e80fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105e8108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105e8113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105e811e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x105e812a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x105e80cd
mov eax, 1
add dl, dl
jne 0x105e8142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105e814d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105e8139
sub eax, ebx
mov ebx, 1
jne 0x105e8180
mov ecx, 1
add dl, dl
jne 0x105e8166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105e8171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105e815d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105e80cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x105e8197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105e81a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105e818e
cmp eax, 0x7d00
jae 0x105e81c5
cmp eax, 0x500
jb 0x105e81c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105e80cd
cmp eax, 0x7f
ja 0x105e81c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105e80cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x105e81f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x105e80cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401410
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Send data
Send data on socket
Start tcp server

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push ecx
sub esp, 0xe50
call sym.___main
mov dword [ebp - 0x1c], 0x400
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0x30
movzx eax, word [0x405060]
mov word [ebp - 0x430], ax
lea edx, [ebp - 0x42e]
mov eax, 0
mov word [edx], ax
add edx, 2
mov ecx, 0xff
mov edi, edx
rep stosd dword es:[edi], eax
movzx eax, word [0x405060]
mov word [ebp - 0x830], ax
lea edx, [ebp - 0x82e]
mov eax, 0
mov word [edx], ax
add edx, 2
mov ecx, 0xff
mov edi, edx
rep stosd dword es:[edi], eax
movzx eax, word [0x405060]
mov word [ebp - 0xc30], ax
lea edx, [ebp - 0xc2e]
mov eax, 0
mov word [edx], ax
add edx, 2
mov ecx, 0xff
mov edi, edx
rep stosd dword es:[edi], eax
lea edx, [ebp - 0xc94]
mov eax, 0
mov ecx, 0x19
mov edi, edx
rep stosd dword es:[edi], eax
mov byte [ebp - 0xc94], 0x30
lea eax, [ebp - 0x30]
mov dword [eax], 0x2e323931
mov dword [eax + 4], 0x2e383631
mov dword [eax + 8], 0x34312e30
mov word [eax + 0xc], 0x35
mov word [ebp - 0xe], 2
movzx eax, word [ebp - 0xe]
lea edx, [ebp - 0xe24]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._WSAStartup_8
sub esp, 8
test eax, eax
setne al
test al, al
je 0x401543
mov dword [esp], str.Hello_World_F
call sym._puts
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call sym._socket_12
sub esp, 0xc
mov dword [ebp - 0x14], eax
mov word [ebp - 0xe34], 2
lea eax, [ebp - 0x30]
mov dword [esp], eax
call sym._inet_addr_4
sub esp, 4
mov dword [ebp - 0xe30], eax
mov dword [esp], 0x1f40
call sym._htons_4
sub esp, 4
mov word [ebp - 0xe32], ax
mov dword [esp + 8], 0x10
lea eax, [ebp - 0xe34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._bind_12
sub esp, 0xc
test eax, eax
setne al
test al, al
je 0x4015d2
mov dword [esp], str.Hello_World_P
call sym._puts
jmp 0x401699
nop
mov dword [esp + 4], 5
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._listen_8
sub esp, 8
mov word [ebp - 0xe44], 2
mov dword [ebp - 0xe40], 0
mov dword [esp], 0x1f40
call sym._htons_4
sub esp, 4
mov word [ebp - 0xe42], ax
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
lea eax, [ebp - 0xe44]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._accept_12
sub esp, 0xc
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x830]
mov dword [eax], 0x73696854
mov dword [eax + 4], 0x20736920
mov dword [eax + 8], 0x65742061
mov dword [eax + 0xc], 0xa7473
lea eax, [ebp - 0x830]
mov dword [esp], eax
call sym._strlen
add eax, 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x830]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._send_16
sub esp, 0x10
nop
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._closesocket_4
sub esp, 4
mov eax, 0
lea esp, [ebp - 8]
pop ecx
pop edi
pop ebp
lea esp, [ecx - 4]
ret
Function at 0x401d20
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401d6b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401d64
test esi, esi
je 0x401d64
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401d40
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401f70
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401fc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402094
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x401ffe
cmp eax, 4
jne 0x402020
test esi, esi
je 0x402012
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x402004
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x40205f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x402051
cmp ecx, 0x40
je 0x402012
cmp ecx, 4
je 0x402012
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401f70
lea esi, [esi]
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00402767
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00402767
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00402767
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00402767
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00402767
mov dword [0x41203c], eax
call fcn.00402767
test eax, eax
jge 0x402550
push 8
call fcn.00402767
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00402767
pop ecx
push 1
call fcn.00402767
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00402767
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00402767
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00402767
jmp 0x402495

Function at 0x402767
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x402776
pop dword [ebp - 0x10]
mov eax, 0x1fff0811
add eax, 0xe0411f65
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x3b38a
push 0
mov eax, 0x84e9cf95
sub eax, 0x84a8eebd
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x6e21b201
add ecx, 0x91de9b9b
mov edx, eax
mov ebx, 0x413bc4
add ebx, dword [ebp - 0x10]
mov edi, 0x853e5a79
add edi, 0x10abe407
xor dword [ebp - 8], ecx
mov esi, dword [ebx]
xor dword [ebp - 8], ebx
xor esi, edi
sub dword [ebp - 4], 0xf3f5f428
mov dword [edx], esi
xor dword [ebp - 4], 0x8466d134
add edx, 0xed4b985b
sub edx, 0xed4b9857
add ebx, 0x619d266d
sub ebx, 0x619d2669
loop 0x4027cf
add eax, 0xce560b8a
add eax, 0x31ab1db9
mov ebx, eax
add eax, 5
mov ecx, 0x6eb0636e
add ecx, 0x918f9c92
add ecx, dword [ebp - 0x10]
call ebx
leave
ret