joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453460
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4534aa
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x4534d9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x45351b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x459748
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48cfe4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.0047f979
lea edi, [esi + 0x48]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x30]
mov dword [edi], fcn.00459bd0
call fcn.00458bc0
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 1
call fcn.00458bc0
lea ecx, [edi + 0x64]
mov byte [esp + 0x18], 2
call fcn.00458bc0
lea ecx, [edi + 0x78]
mov byte [esp + 0x18], 3
call fcn.00458bc0
mov dword [edi], 0x4aaf40
lea ecx, [esi + 0xd4]
mov byte [esp + 0x18], 4
call fcn.00459fc0
mov ecx, dword [esp + 0x10]
mov dword [esi], method.CWnd.virtual_0
mov dword [esi + 0x34c], 1
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x459880
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48d054
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], method.CWnd.virtual_0
lea ecx, [esi + 0xd4]
mov dword [esp + 0x18], 1
call fcn.0045a440
lea edi, [esi + 0x48]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x78]
mov byte [esp + 0x18], 4
mov dword [ecx], 0x4aaf50
call fcn.00458dc0
lea ecx, [edi + 0x64]
mov byte [esp + 0x18], 3
mov dword [ecx], 0x4aaf50
call fcn.00458dc0
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 2
mov dword [ecx], 0x4aaf50
call fcn.00458dc0
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 0
mov dword [ecx], 0x4aaf50
call fcn.00458dc0
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00480432
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x45ba20
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.00461e30
mov ebp, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebp
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
ja 0x45bb19
lea ecx, [esp + 0x10]
push ecx
push str..htm
push closesocket
mov ecx, esi
call fcn.0040c100
test eax, eax
jne 0x45bb19
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push closesocket
mov ecx, esi
call fcn.0040c100
test eax, eax
jne 0x45bb19
lea edx, [esp + 0x10]
push 0x4c4730
push edx
call fcn.0046ef40
mov esi, eax
add esp, 8
test esi, esi
jne 0x45baea
lea eax, [esp + 0x10]
push 0x4c472c
push eax
call fcn.0046ef40
mov esi, eax
add esp, 8
test esi, esi
jne 0x45baea
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x45baed
mov byte [esi], 0
push 0x4c3ef4
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x461d70
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48d798
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x461e20
mov eax, dword [0x4c514c]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.0047e76f
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.0047e7be
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.0047e71b
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x461e07
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x461e07
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.0047e38b
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x464f20
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48dc20
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4650c7
mov ecx, dword [0x4c514c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x46501c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.00463c40
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.0047e478
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.0047e38b
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4c3ef4
call fcn.0047e3f9
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.00464000
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.0047e478
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.0047e38b
lea ecx, [esp + 0xc]
call fcn.0047e853
mov ecx, dword [esp + 0xc]
push 0x4c4934
push ecx
call fcn.0046df04
add esp, 8
test eax, eax
je 0x465044
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x464f7d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.0047e38b
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0047e38b
jmp 0x4650cb
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00464cc0
test eax, eax
push 0
je 0x4650af
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.00463360
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x465095
cmp eax, 0x64
jg 0x465083
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x465020
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x465020
cmp eax, 0x64
jge 0x46501c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x465020
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.00463360
mov esi, eax
jmp 0x465020
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x4650d5
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x48076f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4807a7
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047e7e6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047e7be
jmp 0x4807b3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x481e66
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x481ea8
call fcn.00487b2b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x481ea8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x481e9f
xor eax, eax
jmp 0x481eb0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00481eb6
pop edi
pop esi
pop ebx
ret 4

Function at 0x48805b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x488089
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4880a7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00487fc1
jmp 0x4880a7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4880a7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00487fc1
test edi, edi
mov eax, edi
jne 0x488091
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4

Function at 0x401113
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push 0
push dword [ebp + 8]
push 0
push 0x8000040
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40115b
push 0
push 0
push 0
push 0xf001f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
jne 0x401176
push 0x40
push 0x101000
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401197
push 0
push 0
push 0x40119c
push 0x40119c
push 0x80030008
call fcn.004010a1
add esp, 0x14
mov eax, dword [ebp - 4]
leave
ret
Function at 0x401db0
Capabilities:
Create http request
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov eax, 0x10064
call fcn.00407fb0
mov edx, dword [0x40c1f4]
mov eax, dword [str.Accept:_____r_n_r_n]
mov ecx, dword [0x40c1f0]
push ebx
push ebp
push esi
xor esi, esi
push edi
push esi
mov dword [esp + 0x2c], edx
push esi
mov dword [esp + 0x28], eax
mov eax, dword [0x40c1f8]
mov dword [esp + 0x2c], ecx
mov cx, word [0x40c1fc]
push esi
lea edx, [esp + 0x40]
push esi
push edx
mov dword [esp + 0x40], eax
mov word [esp + 0x44], cx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, esi
mov dword [esp + 0x18], edi
jne 0x401e1d
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x10064
ret 8
push esi
lea eax, [esp + 0x24]
push 0x84000100
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x10080]
lea ecx, [esp + 0x28]
push eax
push ecx
push edx
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
cmp edi, esi
jne 0x401e5b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10064
ret 8
mov eax, dword [esp + 0x1007c]
push 0x40c1e8
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
cmp ebx, esi
jne 0x401e89
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x10064
ret 8
lea ecx, [esp + 0x1c]
push esi
lea edx, [esp + 0x18]
push ecx
push edx
push 0x20000005
push edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x401eb4
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x78]
push 0x4000
push ecx
push edi
call ebp
test eax, eax
je 0x401f06
mov eax, dword [esp + 0x10]
push ebx
test eax, eax
je 0x401f22
push eax
lea edx, [esp + 0x7c]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [esp + 0x20]
add esp, 0x10
add esi, eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x78]
push 0x4000
push ecx
push edi
call ebp
test eax, eax
jne 0x401ed0
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10064
ret 8
call dword [sym.imp.MSVCRT.dll_fflush]
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
mov edx, dword [esp + 0x20]
add esp, 8
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10064
ret 8
Function at 0x402480
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended
Read file on windows

Disassembly:
sub esp, 0x2ec
push ebp
push esi
push edi
lea eax, [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x28], 0xc
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4024c6
pop edi
pop esi
pop ebp
add esp, 0x2ec
ret
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x78]
lea edx, [esp + 0x78]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
mov edi, str.Cmd.exe__C
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x24], 0x44
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x78]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ping__n_1__w_500
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x78]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x2fc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x24]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x68]
lea edx, [esp + 0x24]
push ecx
push edx
push 0
push 0
push 0
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], eax
push 1
push 0
lea eax, [esp + 0x94]
push 0
push eax
push 0
mov word [esp + 0x7c], 0
mov dword [esp + 0x78], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4025cb
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x2ec
ret
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebp
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0xf9]
mov byte [esp + 0xf8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor esi, esi
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + esi + 0x100]
push 0x200
push edx
push eax
call edi
test eax, eax
je 0x402620
add esi, dword [esp + 0x14]
jmp 0x4025fb
lea ecx, [esp + 0xf8]
push str.TTL
push ecx
call dword [sym.imp.MSVCRT.dll_strstr]
mov edx, dword [esp + 0x14]
mov esi, eax
add esp, 8
neg esi
sbb esi, esi
push edx
neg esi
call ebp
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x2ec
ret
Function at 0x402660
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x884
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.MSVCRT.dll_time]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll_localtime]
add esp, 8
mov ebx, eax
lea edx, [esp + 0x494]
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x14]
push 0x3ff
push edx
rep stosd dword es:[edi], eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.MSVCRT.dll__strrev]
lea eax, [esp + 0x494]
push eax
call edi
lea ecx, [esp + 0x498]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
push esi
call edi
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x14]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
inc eax
push edx
add ecx, 0x76c
push eax
push ecx
push esi
lea edx, [esp + 0x34]
push str._s_d__02d__02d.txt
push edx
call ebp
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x8c4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x100
lea edi, [esp + 0xbc]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x8c0]
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
push ecx
mov ecx, dword [ebx + 8]
push edx
push eax
push ecx
lea edx, [esp + 0xcc]
push str._d:_d:_d__s
push edx
call ebp
add esp, 0x40
lea eax, [esp + 0x14]
push 0x40c250
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4027a1
lea edi, [esp + 0x94]
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
push ecx
lea ecx, [esp + 0xa0]
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x884
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x884
ret

Function at 0x403190
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
push edi
push 0x40c334
push 1
push 0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4031df
push 0x40c320
push 0
mov bl, 1
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4031df
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test edi, edi
je 0x4031ea
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test bl, bl
pop edi
pop esi
sete al
pop ebx
ret
Function at 0x4035f0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x290
push ebx
push ebp
mov ebp, dword [esp + 0x2a0]
xor ebx, ebx
push esi
mov esi, dword [esp + 0x2a0]
test ebp, ebp
push edi
jle 0x403616
mov ecx, ebp
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x110]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x403686
lea ecx, [esp + 0x10]
push 0x100
push ecx
call dword [sym.imp.WSOCK32.dll_gethostname]
cmp eax, 0xffffffff
je 0x403686
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x403680
xor edx, edx
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx + edx]
mov ecx, dword [ecx]
test ecx, ecx
je 0x403665
mov dword [esi], ecx
inc ebx
add esi, 4
cmp ebx, ebp
jge 0x403680
mov ecx, dword [eax + 0xc]
movsx edi, word [eax + 0xa]
mov ecx, dword [ecx + edx]
add ecx, edi
mov edi, dword [eax]
cmp ecx, edi
jae 0x403680
add edx, 4
jmp 0x403653
call dword [sym.imp.WSOCK32.dll_WSACleanup]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x290
ret

Function at 0x403730
Capabilities:
Get routing table

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
lea eax, [esp + 8]
push esi
mov ecx, dword [edi]
push eax
push ecx
mov dword [esp + 0x14], 0
call sub.iphlpapi.dll_GetIpForwardTable
test eax, eax
jne 0x403769
push str.No_error_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ecx
ret
cmp eax, 0x7a
jne 0x40378a
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
lea ecx, [esp + 8]
mov dword [edi], eax
push esi
push ecx
push eax
call sub.iphlpapi.dll_GetIpForwardTable
pop edi
pop esi
pop ecx
ret

Function at 0x4038c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp]
push esi
push eax
push 0xf003f
push 0
push ecx
push edx
mov dword [esp + 0x1c], 0x63
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4038fb
xor eax, eax
pop esi
add esp, 8
ret
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 4]
lea eax, [esp + 8]
lea edx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push 0
push eax
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40393a
test esi, esi
je 0x403933
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 8
ret
test esi, esi
je 0x403945
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
add esp, 8
ret