joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d73b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x5836a0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46d77b
cmp byte [ebx], 0xa
jne 0x46d77b
or byte [eax + edi + 0x28], 4
jmp 0x46d780
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x46d87e
mov al, byte [edx]
cmp al, 0x1a
je 0x46d860
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x46d7af
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x46d7d4
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x46d7de
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x46d791
jmp 0x46d87e
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46d85b
cmp dword [ebp - 0xc], 0
je 0x46d85b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5836a0]
test byte [eax + edi + 0x28], 0x48
je 0x46d835
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46d820
mov byte [esi], dl
jmp 0x46d831
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5836a0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46d87e
cmp byte [ebp - 1], 0xa
jne 0x46d844
cmp esi, ebx
jne 0x46d844
mov byte [esi], 0xa
jmp 0x46d87d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040175d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46d87e
mov byte [esi], 0xd
jmp 0x46d87d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5836a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46d87a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46d87e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46d8da
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x5836a0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46d91d
cmp word [esi], dx
jne 0x46d91d
or byte [edi + eax + 0x28], 4
jmp 0x46d922
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x46da75
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x46da55
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x46d964
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46d99a
cmp eax, edx
jae 0x46d9a6
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x46d93c
jmp 0x46da75
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46da51
cmp dword [ebp - 0x14], 0
je 0x46da51
mov eax, dword [ebx*4 + 0x5836a0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x46da29
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x46d9f2
mov word [esi], cx
jmp 0x46da25
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x5836a0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x5836a0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x5836a0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x46da75
pop ebx
cmp word [ebp - 4], bx
jne 0x46da3a
cmp esi, dword [ebp + 0xc]
jne 0x46da3a
mov word [esi], bx
jmp 0x46da72
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040175d
add esp, 0x10
cmp word [ebp - 4], bx
je 0x46da75
push 0xd
jmp 0x46da6e
mov ecx, dword [ebx*4 + 0x5836a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46da6c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46da75
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40a240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x40a24f
pop dword [ebp - 0x4c]
mov eax, 0x40a24f
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xe0dfb37d
add dword [ebp - 0x5c], 0x6d7291ce
mov dword [ebp - 0x58], 0x2f753fd
sub dword [ebp - 0x58], 0xd0c407b8
mov dword [ebp - 0x54], 0x3eaa3169
add dword [ebp - 0x54], 0xda212c5
mov dword [ebp - 0x50], 0x2eaf1c70
add dword [ebp - 0x50], 0xd150e390
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x55779913
sub eax, 0x55366873
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x5195ba17
add dword [ebp - 0x5c], 0x22dcaf3f
mov dword [ebp - 0x58], 0x5ee1d40a
add dword [ebp - 0x58], 0xe28a8d6b
mov dword [ebp - 0x54], 0xc9341514
add dword [ebp - 0x54], 0x9a3b5758
mov dword [ebp - 0x50], 0x67566733
sub dword [ebp - 0x50], 0x67566733
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3b054
push 0
call eax
mov ecx, 0x75967aef
sub ecx, 0x75963191
mov esi, eax
mov edx, 0x23943af0
sub edx, 0x23528af0
add edx, dword [ebp - 0x4c]
mov edi, 0xa7c5a65d
add dword [ebp - 0x2c], ebx
mov ebx, dword [edx]
add dword [ebp - 0x14], 0x7fc373bd
add ebx, edi
mov dword [esi], ebx
xor dword [ebp - 0x34], 0x806002c6
add esi, 0x1f39a02d
add esi, 0xe0c65fd7
add edx, 4
loop 0x40a361
add eax, 0x8cd11fdd
sub eax, 0x8cd00792
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xc8887ed1
sub ecx, 0xc8487ed1
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x410100
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 4
mov esi, ecx
call main
pop ecx
xor ecx, ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x41011c
mov dword [eax], ecx
jmp 0x41011e
mov eax, ecx
push ecx
push ecx
push esi
push 0x410190
push ecx
push ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov ecx, dword [esi + 0x10]
pop esi
mov dword [ecx], eax
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x407ef8
nop
mov ecx, 0x1e6c4561
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..text
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x4b871076
nop
nop
nop
test eax, eax
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4018c0
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x314
mov eax, dword [0x414044]
xor eax, esp
mov dword [esp + 0x310], eax
lea eax, [esp + 4]
push eax
push 0x104
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x412c08
lea ecx, [esp + 8]
push 0x104
push ecx
call fcn.00405eab
add esp, 0xc
push 0x104
lea edx, [esp + 0x10c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x210]
push 0x104
push ecx
call fcn.00404c4b
lea edx, [esp + 0x218]
push 0x5c
push edx
call fcn.00405350
add esp, 0x14
test eax, eax
je 0x40194b
mov byte [eax], 0
push ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401a47
mov eax, 0x4150f0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401980
sub eax, edx
push esi
push edi
mov edi, eax
lea eax, [esp + 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401997
sub eax, edx
mov ecx, eax
lea eax, [esp + 0x10]
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4019b0
sub eax, esi
lea edx, [eax + ecx*2]
add edx, ecx
lea edi, [edx + edi + 0x32]
push edi
call fcn.00404d1d
push edi
mov esi, eax
push 0
push esi
call fcn.0040b3e0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x12c]
push edx
mov eax, edx
push eax
push 0x4150f0
push edi
push esi
call fcn.00404c2d
mov eax, esi
add esp, 0x2c
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401a00
push 0
sub eax, ecx
lea ecx, [esp + 0x10]
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push 0x412c18
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
je 0x401a45
push esi
call fcn.004050e8
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x314]
pop ebx
xor ecx, esp
call fcn.00404b06
add esp, 0x314
ret
Function at 0x402f57
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
mov ebx, dword [edi]
xor esi, esi
cmp dword [0x2fa4a78], 0x594
mov dword [ebp - 0xc], eax
jne 0x402f9d
push 0x402d18
push 0x402d28
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [0x80b428]
mov dword [ebp - 0x24], eax
mov eax, dword [0x80b42c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0x30], 0x9e3779b9
call fcn.00402f46
mov eax, dword [0x80b430]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x2c], eax
mov eax, dword [0x80b434]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, ebx
shl eax, 4
cmp dword [0x2fa4a78], 0xc
mov dword [ebp - 4], eax
jne 0x403042
push esi
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x84c]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
lea eax, [ebp - 0x38]
push eax
push esi
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x2fa4a78]
cmp eax, 0xfa9
jne 0x40305e
mov dword [0x2fa4014], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40306b
mov dword [0x2fa39c8], esi
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov edx, ebx
shr edx, cl
add eax, ebx
mov dword [ebp - 0x14], eax
mov dword [0x2fa4010], 0xf4ea3dee
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x2fa4a78], 0x213
mov dword [ebp - 0x14], edx
jne 0x4030a6
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
mov eax, dword [ebp - 0xc]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax]
mov ecx, dword [ebp - 0x10]
shr eax, cl
add eax, dword [ebp - 0x20]
xor eax, edx
xor dword [ebp - 4], eax
push dword [ebp - 4]
mov eax, ebx
call fcn.00402f4d
mov ebx, eax
mov eax, dword [ebp - 0x30]
sub dword [ebp - 8], eax
dec dword [ebp - 0x18]
jne 0x402fdd
cmp dword [0x2fa4a78], 0xa6d
mov dword [edi], ebx
jne 0x40310a
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4033ee
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
xor esi, esi
cmp dword [0x2fa4a78], 0x400
push edi
jne 0x40342d
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
push esi
push esi
call fcn.00403793
push esi
push esi
call fcn.00403793
push esi
push esi
call fcn.00403b87
push esi
call fcn.00403f4b
add esp, 0x1c
mov eax, dword [0x80bab4]
mov dword [0x2fa4a78], eax
mov eax, dword [0x80ba8c]
mov dword [0x2fa4a7c], eax
call fcn.004031e5
xor ebx, ebx
mov edi, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp ebx, edi
jle 0x403477
cmp dword [ebp - 4], 0x785074d5
jne 0x403480
inc ebx
cmp ebx, 0x1c1b
jl 0x40344d
xor ebx, ebx
push esi
lea eax, [ebp - 0x408]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x402db8
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
cmp ebx, edi
jle 0x4034ac
cmp dword [ebp - 4], 0x785074d5
jne 0x4034b5
inc ebx
cmp ebx, 0x11915
jl 0x403482
mov eax, dword [0x2fa39cc]
mov dword [0x2fa400c], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10

Function at 0x4048c0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80a0d8]
jne 0x4048ca
repz ret
jmp fcn.00409452
Function at 0x409175
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406311
and dword [ebp - 4], 0
cmp dword [0x80c370], 0
mov ebx, eax
jne GetSystemWindowsDirectoryA
push GetNumberFormatA
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je GetWindowsDirectoryA
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b88
push edi
call esi
test eax, eax
je 0x4092d7
push eax
call fcn.0040629f
mov dword [esp], 0x401b78
push edi
mov dword [0x80c370], eax
call esi
push eax
call fcn.0040629f
mov dword [esp], 0x401b64
push edi
mov dword [0x80c374], eax
call esi
push eax
call fcn.0040629f
mov dword [esp], 0x401b48
push edi
mov dword [0x80c378], eax
call esi
push eax
call fcn.0040629f
pop ecx
mov dword [0x80c380], eax
test eax, eax
je SetVolumeMountPointA
push 0x401b30
push edi
call esi
push eax
call fcn.0040629f
pop ecx
mov dword [0x80c37c], eax
mov eax, dword [0x80c37c]
cmp eax, ebx
je 0x40927e
cmp dword [0x80c380], ebx
je 0x40927e
push eax
call fcn.0040631a
push dword [0x80c380]
mov esi, eax
call fcn.0040631a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40927e
test edi, edi
je 0x40927e
call esi
test eax, eax
je CreateActCtxA
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je CreateActCtxA
test byte [ebp - 0xc], 1
jne 0x40927e
or dword [ebp + 0x10], 0x200000
jmp 0x4092b7
mov eax, dword [0x80c374]
cmp eax, ebx
je GetACP
push eax
call fcn.0040631a
pop ecx
test eax, eax
je SetLastError
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4092b7
mov eax, dword [0x80c378]
cmp eax, ebx
je 0x4092b7
push eax
call fcn.0040631a
pop ecx
test eax, eax
je 0x4092b7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x80c370]
call fcn.0040631a
pop ecx
test eax, eax
je 0x4092d7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4092d9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a23c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov ebx, eax
xor ebp, ebp
xor edi, edi
lea eax, [ebx + 0x10]
call fcn.00403dcc
cmp ebp, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x40a2a5
mov eax, dword [ebx + 0x10]
mov edx, 0x40a3d8
call fcn.00404190
jne 0x40a274
lea eax, [ebx + 0x10]
call fcn.00403dcc
jmp 0x40a2ad
mov eax, dword [ebx + 0x10]
mov edx, 0x40a3e4
call fcn.00404190
jne 0x40a290
lea eax, [ebx + 0x10]
mov edx, 0x40a3d8
call fcn.00403e20
cmp dword [ebx + 0x10], 0
jne 0x40a2ad
lea eax, [ebx + 0x10]
mov edx, 0x40a3e4
call fcn.00403e20
jmp 0x40a2ad
lea eax, [ebx + 0x10]
call fcn.00403dcc
mov eax, ebx
call fcn.0040a08c
mov eax, dword [0x40b158]
inc dword [eax]
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov word [esp], 2
push 0x8b
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0x10]
call fcn.00404244
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x40a307
or edi, 0xffffffff
jmp 0x40a394
mov eax, dword [0x40b170]
inc dword [eax]
mov word [esp], 2
push 0x1bd
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0x10]
call fcn.00404244
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x40a34a
or edi, 0xffffffff
jmp 0x40a394
mov eax, dword [0x40b170]
inc dword [eax]
mov word [esp], 2
push 0x75d7
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0x10]
call fcn.00404244
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x40a38d
or edi, 0xffffffff
jmp 0x40a394
mov eax, dword [0x40b170]
inc dword [eax]
test edi, edi
je 0x40a3b7
push esi
call sub.wsock32.dll_closesocket
lea eax, [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
mov edx, 0x40a3f0
call fcn.00404090
mov eax, ebx
call fcn.00409f64
mov ebp, eax
push 0x200
call sub.kernel32.dll_Sleep
jmp 0x40a251

Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40ef4e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x40ef5d
pop dword [ebp - 8]
mov eax, 0x4bc4e012
sub eax, 0x4b83f0b5
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xd619bdae
add dword [ebp - 0x18], 0x7838879d
mov dword [ebp - 0x14], 0x6a8006
add dword [ebp - 0x14], 0x31c8cc3f
mov dword [ebp - 0x10], 0xb6471081
sub dword [ebp - 0x10], 0x69facc53
mov dword [ebp - 0xc], 0x2bb1f3c0
sub dword [ebp - 0xc], 0x2bb1f3c0
lea eax, [ebp - 0x18]
push eax
mov eax, 0x179c4d22
sub eax, 0x175a1cae
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x3acb5c3f
sub dword [ebp - 0x18], 0xc658f2e9
mov dword [ebp - 0x14], 0x545af97f
sub dword [ebp - 0x14], 0x12ee980a
mov dword [ebp - 0x10], 0xb8ab686c
sub dword [ebp - 0x10], 0x553bfc00
mov dword [ebp - 0xc], 0x2e254b20
add dword [ebp - 0xc], 0xd1dab4e0
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0xb9ab4a55
add eax, 0x4696e6cf
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3c3b6
push 0
call eax
mov ecx, 0x4226
mov esi, eax
mov edi, 0x6d1439d6
add edi, 0x932f0a2a
add edi, dword [ebp - 8]
mov edx, 0xc4a203aa
xor dword [ebp - 4], eax
mov ebx, dword [edi]
sub dword [ebp - 4], 0x189aae44
sub ebx, edx
sub dword [ebp - 4], ebx
mov dword [esi], ebx
add esi, 0xd0715c42
sub esi, 0xd0715c3e
add edi, 4
loop 0x40f073
add eax, 0xfb6b
mov ebx, eax
add eax, 0x61299827
add eax, 0x9ed667de
mov ecx, 0x9544d31f
add ecx, 0x6afb2ce1
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x63250a4a
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x42f3f8
mov ecx, 0x17b2406f
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43106c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x41a13c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x18
push 0x10025490
call fcn.004252b0
xor esi, esi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x41a158
xor eax, eax
jmp 0x41a1ec
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov eax, dword [edi + 0x3c]
mov ebx, dword [eax + edi + 0x78]
add ebx, edi
mov eax, dword [ebx + 0x1c]
add eax, edi
mov dword [ebp + 8], eax
mov edx, dword [ebx + 0x20]
add edx, edi
mov dword [ebp - 0x20], edx
mov ecx, dword [ebx + 0x24]
add ecx, edi
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0xc]
test ecx, 0xffff0000
jne 0x41a195
movzx eax, cx
sub eax, dword [ebx + 0x10]
jmp 0x41a1bc
mov ebx, dword [ebx + 0x18]
mov dword [ebp - 0x28], ebx
mov eax, ebx
dec ebx
mov dword [ebp - 0x28], ebx
test eax, eax
je 0x41a1e6
mov eax, dword [edx]
add eax, edi
push ecx
push eax
call fcn.00425d50
pop ecx
pop ecx
test eax, eax
mov eax, dword [ebp - 0x1c]
jne 0x41a1c6
movzx eax, word [eax]
mov esi, dword [ebp + 8]
mov esi, dword [esi + eax*4]
add esi, edi
jmp 0x41a1e3
mov edx, dword [ebp - 0x20]
add edx, 4
mov dword [ebp - 0x20], edx
add eax, 2
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
jmp 0x41a19b
mov dword [ebp - 0x24], esi
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004252eb
ret 8

Function at 0x41a1f4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov edx, 0x10b
push edi
mov eax, dword [esi + 0x3c]
add eax, esi
movzx ecx, word [eax + 0x18]
cmp cx, dx
jne 0x41a219
xor edi, edi
add eax, 0x78
jmp 0x41a22f
mov edx, 0x20b
cmp cx, dx
jne 0x41a2c2
xor edi, edi
inc edi
add eax, 0x88
push edi
push esi
push dword [eax]
call fcn.0041aa62
push edi
push esi
lea ebx, [esi + eax]
push dword [ebx + 0x20]
call fcn.0041aa62
push edi
push esi
push dword [ebx + 0x24]
add eax, esi
mov dword [ebp + 8], eax
call fcn.0041aa62
add eax, esi
add esp, 0x24
test dword [ebp + 0xc], 0xffff0000
mov dword [ebp - 4], eax
jne 0x41a28c
push edi
push esi
push edi
push esi
push dword [ebx + 0x1c]
call fcn.0041aa62
mov ecx, dword [ebp + 0xc]
add esp, 0xc
movzx ecx, cx
sub ecx, dword [ebx + 0x10]
add eax, esi
push dword [eax + ecx*4]
call fcn.0041aa62
add esp, 0xc
jmp 0x41a2c4
mov eax, dword [ebx + 0x18]
jmp 0x41a2be
dec eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push edi
push esi
push dword [eax]
call fcn.0041aa62
push dword [ebp + 0xc]
add eax, esi
push eax
call fcn.00427cb0
add esp, 0x14
test eax, eax
jne 0x41a2cb
add dword [ebp + 8], 4
add dword [ebp - 4], 2
mov eax, dword [ebp - 8]
test eax, eax
jne 0x41a291
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push esi
push edi
push esi
push dword [ebx + 0x1c]
call fcn.0041aa62
mov ecx, dword [ebp - 4]
add esp, 0xc
movzx ecx, word [ecx]
jmp 0x41a27d