joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8e9e00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push reloc.gdi32.dll_GetPaletteEntries
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x8e9ed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.008e67a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0x8e9e61
mov edx, dword [eax]
jmp 0x8e9e63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.008e8050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0x8e9ebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x8e9ebf
cmp esi, edi
je 0x8e9ebf
mov ecx, esi
call fcn.008e1a00
push esi
call fcn.008ef1c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.008e6990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0x8e9ef5
mov eax, dword [eax]
jmp 0x8e9ef7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.008e5640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x8e9f25
mov eax, dword [eax]
jmp 0x8e9f27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0x8e9f76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x8e9f76
cmp esi, edi
je 0x8e9f76
mov eax, dword [esi]
cmp eax, edi
je 0x8e9f5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x8e9f6d
push eax
call fcn.008ef1c8
add esp, 4
push esi
call fcn.008ef1c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x8eaf10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push reloc.gdi32.dll_GetPaletteEntries
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x8eb002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.008eedff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x8eb002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.008e66e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.008ef20b
push 0x10
call fcn.008ef1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x8eafc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.008db1c0
jmp 0x8eafc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.008eab80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x8eaff0
mov ecx, edi
call fcn.008db2c0
push edi
call fcn.008ef1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x8eb021
inc ebx
cmp ebx, 0x20
jb 0x8eaf3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x8ee1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.008ee140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.008ee140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.008ee140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.008ee140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x8eebfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x8eec50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x90087c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x8eec43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x8eec52
xor eax, eax
pop esi
leave
ret 4
Function at 0x407b88
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46e440]
jne 0x407b92
repz ret
jmp fcn.004099c6

Function at 0x4088eb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46e440]
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.00405f33
and dword [ebp - 0x14], 0
cmp dword [0x4705bc], 0
mov dword [ebp - 0x18], eax
jne 0x40899e
push 0x4022c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408a46
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4022b8
push ebx
call edi
test eax, eax
je 0x408a46
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4022a8
push ebx
mov dword [0x4705bc], eax
call edi
push eax
call esi
push 0x402294
push ebx
mov dword [0x4705c0], eax
call edi
push eax
call esi
push 0x402278
push ebx
mov dword [0x4705c4], eax
call edi
push eax
call esi
mov dword [0x4705cc], eax
test eax, eax
je 0x40899e
push 0x402260
push ebx
call edi
push eax
call esi
mov dword [0x4705c8], eax
mov eax, dword [0x4705c8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4089f7
cmp dword [0x4705cc], ecx
je 0x4089f7
push eax
call esi
push dword [0x4705cc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4089f7
test ebx, ebx
je 0x4089f7
call edi
test eax, eax
je 0x4089ee
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4089ee
test byte [ebp - 8], 1
jne 0x4089f7
or dword [ebp + 0x10], 0x200000
jmp 0x408a2a
mov eax, dword [0x4705c0]
cmp eax, dword [ebp - 0x18]
je 0x408a2a
push eax
call esi
test eax, eax
je 0x408a2a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x408a2a
mov eax, dword [0x4705c4]
cmp eax, dword [ebp - 0x18]
je 0x408a2a
push eax
call esi
test eax, eax
je 0x408a2a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4705bc]
call esi
test eax, eax
je 0x408a46
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x408a48
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407b88
leave
ret
Function at 0x469db0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, 0x6b
mov edx, 0x72
mov word [0x7f4648], ax
mov word [0x7f464c], dx
mov ecx, 0x6e
mov edx, 0x65
xor eax, eax
push 0x7f4648
mov dword [0x7f4654], 0x320033
mov dword [0x7f465c], 0x6c006c
mov word [0x7f464e], cx
mov dword [0x7f4650], 0x6c0065
mov dword [0x7f4658], 0x64002e
mov word [0x7f464a], dx
mov word [0x7f4660], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [0x7f4644]
lea ecx, [esp]
push ecx
push 0x40
mov dword [0x7f4640], eax
mov eax, dword [0x475694]
push edx
push eax
mov byte [0x47090b], 0x65
mov dword [0x470901], 0x75747269
mov word [0x470905], 0x6c61
mov byte [0x470900], 0x56
mov word [0x47090c], 0x7463
mov byte [0x47090e], 0
mov dword [0x470907], 0x746f7250
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret

Function at 0x469ea0
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x1050
call fcn.00409140
cmp dword [0x7f4644], 0x37
jne 0x469f6c
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0x402c2c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
mov ecx, dword [esp]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_MapUserPhysicalPages]
push 0
lea edx, [esp + 0x454]
push edx
push 0x402c48
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 8]
push edx
push 0x402c5c
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0x402c7c
push 0x402c98
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push 0
lea eax, [esp + 0x854]
push eax
push 0
push 0x402cd4
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
push 0
push 0
push 0x402cf0
push 0x402d10
push 0x402d2c
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov ecx, dword [0x7f5638]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x475694]
mov byte [ecx + esi], al
add esp, 0x1050
ret
Function at 0x46a130
Capabilities:
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7f4644]
sub esp, 0x5cc
push ebx
push ebp
push esi
mov esi, dword [0x475694]
shr eax, 3
push edi
test eax, eax
je 0x46a300
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], eax
jmp 0x46a164
mov esi, dword [esp + 0x14]
cmp dword [0x7f4644], 0x1c
jne 0x46a181
lea eax, [esp + 0x34]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov edx, dword [0x46edc0]
mov eax, dword [0x46edc4]
mov ecx, dword [0x46edc8]
mov ebx, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x24], edx
mov edx, dword [0x46edcc]
mov ebp, 0xc6ef3720
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], 0x20
mov eax, ebx
shl eax, 4
add eax, dword [esp + 0x2c]
mov esi, ebx
shr esi, 5
cmp dword [0x7f4644], 0x1b
mov dword [esp + 0x10], eax
jne 0x46a1fd
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1dc]
push ecx
push 0
push 0x402b00
push 0x402b6c
push 0x402ba0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
mov eax, dword [esp + 0x10]
add esi, dword [esp + 0x28]
lea ecx, [ebx + ebp]
xor esi, ecx
xor esi, eax
sub edi, esi
mov eax, edi
shl eax, 4
mov dword [0x7f45b4], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
add dword [esp + 0x10], eax
cmp dword [0x7f4644], 0x1be
jne 0x46a242
lea ecx, [esp + 0x38]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov esi, edi
shr esi, 5
add esi, dword [esp + 0x20]
cmp dword [0x7f4644], 0x979
mov dword [0x7f45b8], 0xff6b3619
mov dword [0x7f45bc], 0xffffffff
jne 0x46a27f
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [edi + ebp]
xor esi, eax
mov eax, dword [esp + 0x10]
xor eax, esi
sub ebx, eax
add ebp, 0x61c88647
dec dword [esp + 0x18]
mov dword [esp + 0x10], eax
jne 0x46a1ba
cmp dword [0x7f4644], 0x8d4
jne 0x46a2b7
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov esi, dword [esp + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], edi
cmp dword [0x7f4644], 0x17
jne 0x46a2ef
push 0
push 0
push 0
push 0x402bec
push 0x402c20
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea eax, [esp + 0x98]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
add esi, 8
dec dword [esp + 0x1c]
mov dword [esp + 0x14], esi
jne 0x46a160
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5cc
ret
Function at 0x438ca5
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x438a14
add ebx, 0x7ced625c
dec edi
call fcn.00438cdf
mov edi, 0x57dc6840
add edi, 0x36a5ed87
xor dword [esi], edx
add edi, edi
dec edi
dec ebx
inc esi
sub ebx, 1
cmp esi, eax
jne fcn.00438ca5
or ebx, ebx
sub edi, 0x9737b5d4
ret
Function at 0x406170
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4a966b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x40443c
call fcn.00406dd1
push 4
mov dword [esp + 0x18], 0
call fcn.00407c92
mov edi, eax
add esp, 4
test edi, edi
je 0x4061e4
push ebx
call fcn.00406ca9
mov dword [edi], eax
call fcn.00406a68
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406d92
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4061d8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406dba
pop ebx
jmp 0x4061e6
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408701
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4acdc0]
jne 0x40870b
repz ret
jmp fcn.0040de6c
Function at 0x412a74
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4acdc0]
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.0040aa7a
and dword [ebp - 0x14], 0
cmp dword [0x4af3b4], 0
mov dword [ebp - 0x18], eax
jne 0x412b27
push 0x403fb0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x412bcf
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403fa4
push ebx
call edi
test eax, eax
je 0x412bcf
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403f94
push ebx
mov dword [0x4af3b4], eax
call edi
push eax
call esi
push 0x403f80
push ebx
mov dword [0x4af3b8], eax
call edi
push eax
call esi
push 0x403f64
push ebx
mov dword [0x4af3bc], eax
call edi
push eax
call esi
mov dword [0x4af3c4], eax
test eax, eax
je 0x412b27
push 0x403f4c
push ebx
call edi
push eax
call esi
mov dword [0x4af3c0], eax
mov eax, dword [0x4af3c0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x412b80
cmp dword [0x4af3c4], ecx
je 0x412b80
push eax
call esi
push dword [0x4af3c4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x412b80
test ebx, ebx
je 0x412b80
call edi
test eax, eax
je 0x412b77
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x412b77
test byte [ebp - 8], 1
jne 0x412b80
or dword [ebp + 0x10], 0x200000
jmp 0x412bb3
mov eax, dword [0x4af3b8]
cmp eax, dword [ebp - 0x18]
je 0x412bb3
push eax
call esi
test eax, eax
je 0x412bb3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x412bb3
mov eax, dword [0x4af3bc]
cmp eax, dword [ebp - 0x18]
je 0x412bb3
push eax
call esi
test eax, eax
je 0x412bb3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4af3b4]
call esi
test eax, eax
je 0x412bcf
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x412bd1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408701
leave
ret
Function at 0x4a80e0
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0xc0c
cmp dword [0x834100], 0x37
jne 0x4a8183
mov eax, dword [esp]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualLock]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
push 0
lea ecx, [esp + 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 8]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [esp + 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x404120
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov edx, dword [0x834104]
mov dword [esp], edx
mov eax, 0x5d1
add dword [esp], eax
mov eax, dword [esp]
mov cl, byte [eax + esi]
mov edx, dword [0x4b4164]
mov byte [edx + esi], cl
add esp, 0xc0c
ret
Function at 0x4a8380
Capabilities:
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x834100]
sub esp, 0xacc
push ebx
push ebp
push esi
shr eax, 3
xor esi, esi
push edi
mov edi, dword [0x4b4164]
cmp eax, esi
jbe 0x4a8552
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], eax
jmp 0x4a83b6
mov edi, dword [esp + 0x18]
xor esi, esi
cmp dword [0x834100], 0x1c
jne 0x4a83cd
lea eax, [esp + 0x38]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov ecx, dword [0x4ad6f8]
mov edx, dword [0x4ad6fc]
mov eax, dword [0x4ad700]
mov ebx, dword [edi]
mov edi, dword [edi + 4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x4ad704]
mov ebp, 0xc6ef3720
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], 0x20
jmp 0x4a840a
xor esi, esi
mov eax, ebx
shl eax, 4
add eax, dword [esp + 0x30]
mov edx, ebx
shr edx, 5
add edx, dword [esp + 0x28]
lea ecx, [ebx + ebp]
xor eax, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [0x833084], esi
mov eax, dword [esp + 0x14]
add dword [0x833084], eax
mov edx, dword [0x833084]
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x24]
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
sub edi, dword [esp + 0x14]
mov eax, edi
shl eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
add dword [esp + 0x10], eax
cmp dword [0x834100], 0x1be
jne 0x4a848a
lea ecx, [esp + 0x3c]
push ecx
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov esi, edi
shr esi, 5
add esi, dword [esp + 0x34]
cmp dword [0x834100], 0x979
mov dword [0x833088], 0xff6b3619
mov dword [0x83308c], 0xffffffff
jne 0x4a84d7
push 0
call dword [sym.imp.KERNEL32.dll_FlushConsoleInputBuffer]
push 0
lea edx, [esp + 0x2dc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [edi + ebp]
xor esi, eax
mov eax, dword [esp + 0x10]
xor eax, esi
sub ebx, eax
add ebp, 0x61c88647
dec dword [esp + 0x1c]
mov dword [esp + 0x10], eax
jne 0x4a8408
cmp dword [0x834100], 0x8d4
jne 0x4a850f
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov esi, dword [esp + 0x18]
mov dword [esi], ebx
mov dword [esi + 4], edi
cmp dword [0x834100], 0x17
jne 0x4a8541
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea ecx, [esp + 0x88]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
add esi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x18], esi
jne 0x4a83b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xacc
ret
Function at 0x406b60
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x21c
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x15c]
test ecx, ecx
je 0x406b7e
push str.Connection_initiated
call fcn.00415a20
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x168], eax
jne 0x406bb4
push 1
push str.Error_creating_socket
lea ecx, [esp + 0x10]
call fcn.00416690
lea eax, [esp + 8]
push 0x43dbf8
push eax
call fcn.004305d1
lea edi, [esi + 0x58]
push edi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x406c0f
push edi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
jne 0x406c04
push edi
lea ecx, [esp + 0x28]
push str.Failed_to_get_server_address___s_._nDid_you_type_the_host_name_correctly_
push ecx
call fcn.004309ee
add esp, 0xc
lea edx, [esp + 0x24]
lea ecx, [esp + 8]
push 1
push edx
call fcn.00416690
lea eax, [esp + 8]
push 0x43dbf8
push eax
call fcn.004305d1
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0x18], eax
mov cx, word [esi + 0x54]
mov word [esp + 0x14], 2
push ecx
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 0x16], ax
mov eax, dword [esi + 0x168]
lea edx, [esp + 0x14]
push 0x10
push edx
push eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x406c77
add esi, 0x3b38
lea ecx, [esp + 0x24]
push esi
push str.Failed_to_connect_to_server___.255s_
push ecx
call fcn.004309ee
add esp, 0xc
lea edx, [esp + 0x24]
lea ecx, [esp + 8]
push 1
push edx
call fcn.00416690
lea eax, [esp + 8]
push 0x43dbf8
push eax
call fcn.004305d1
mov ecx, dword [esi + 0x54]
push ecx
push edi
push str.Connected_to__s_port__d_n
push 0
push 0x44a3a0
call fcn.004063e0
mov ecx, dword [esi + 0x15c]
add esp, 0x14
test ecx, ecx
je 0x406ca4
push str.Connection_established
call fcn.00415a20
pop edi
pop esi
add esp, 0x21c

Function at 0x406d00
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x10
mov ecx, dword [ecx + 0x168]
lea eax, [esp]
push 4
push eax
push 1
push 6
push ecx
mov dword [esp + 0x14], 1
call dword [sym.imp.WSOCK32.dll_setsockopt]
test eax, eax
je 0x406d46
push 1
push str.Error_disabling_Nagles_algorithm
lea ecx, [esp + 0xc]
call fcn.00416690
lea edx, [esp + 4]
push 0x43dbf8
push edx
call fcn.004305d1
add esp, 0x10
ret