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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0
push 0
push 0
push ebp
mov esi, ecx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x47a1be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x47a1be
mov bl, 0x13
jmp 0x47a22d
mov edi, dword [0x4d3dec]
mov ecx, esi
inc edi
call fcn.00478530
push 0
push edi
push 0x4d3df4
push 0x312
push esi
mov dword [esi + 0x30e], eax
call fcn.00483160
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x47a22b
mov ecx, dword [0x4d3dec]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push ecx
push 0x4d3df4
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x47a21b
mov bl, 0x13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x47a22d
mov edx, dword [0x4d3dec]
cmp edx, dword [esp + 0x14]
je 0x47a22d
mov bl, 0x14
jmp 0x47a22d
mov bl, 0x15
mov eax, dword [esp + 0x18]
test eax, eax
je 0x47a237
mov byte [eax], bl
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x47a240
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
xor esi, esi
mov ebp, ecx
mov byte [esp + 0x13], 0
test edi, edi
jne 0x47a25b
mov edi, 0x4d44fc
mov eax, dword [0x4d3df0]
movzx ecx, word [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov byte [eax + edi], 0
imul ecx, dword [0x4d3df0]
add ecx, dword [0x4d3dec]
push 0
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x47a29e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x47a29e
mov byte [esp + 0x13], 0x16
jmp 0x47a316
mov eax, dword [0x4d3df0]
push 0
lea edx, [esp + 0x1c]
push edx
push eax
push edi
push ebx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47a309
mov eax, dword [0x4d3df0]
cmp eax, dword [esp + 0x18]
jne 0x47a302
push eax
push edi
mov ecx, ebp
call fcn.00478c80
mov esi, eax
test esi, esi
jne 0x47a2fb
mov eax, dword [esp + 0x28]
test eax, eax
je 0x47a316
cmp ebp, eax
je 0x47a316
push 0x17a
push ebp
push 0x17a
push eax
call fcn.0044805c
add esp, 0x10
jmp 0x47a316
mov byte [esp + 0x13], 0x18
jmp 0x47a316
mov byte [esp + 0x13], 0x17
jmp 0x47a316
mov byte [esp + 0x13], 0x16
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x47a324
mov cl, byte [esp + 0x13]
mov byte [eax], cl
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x14
Function at 0x47c140
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4b1120]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
push edi
push 0x104
lea eax, [esp + 0xc]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x47c1a8
lea ecx, [esp + 8]
push 0x5c
push ecx
call fcn.0044a60d
add esp, 8
test eax, eax
je 0x47c18c
xor edx, edx
mov word [eax + 2], dx
push 0
push 0
push 0
push 0
push esi
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x47c1cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x47c1cd
mov dword [esi], edi
pop edi
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00447645
add esp, 0x20c
ret
mov eax, edi
mov ecx, dword [esp + 0x210]
pop edi
pop esi
xor ecx, esp
call fcn.00447645
add esp, 0x20c
ret

Function at 0x47c600
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4b1120]
xor eax, esp
mov dword [esp + 0x208], eax
mov edx, dword [esp + 0x210]
push esi
mov eax, edx
push edi
mov edi, 1
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47c627
sub eax, esi
sar eax, 1
mov esi, eax
test esi, esi
jle 0x47c6d9
push edx
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.0044a00d
lea eax, [esp + esi*2 + 0x12]
add esp, 0xc
cmp word [eax], 0x5c
jne 0x47c662
xor ecx, ecx
mov word [eax], cx
cmp word [esp + 8], 0
jne 0x47c683
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00447645
add esp, 0x20c
ret
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47c6db
lea eax, [esp + 8]
push 0x5c
push eax
call fcn.0044a678
mov esi, eax
add esp, 8
test esi, esi
je 0x47c6c8
lea edx, [esp + 8]
xor ecx, ecx
push edx
mov word [esi], cx
call fcn.0047c600
mov edi, eax
add esp, 4
mov eax, 0x5c
mov word [esi], ax
test edi, edi
je 0x47c6db
push 0
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
jmp 0x47c6db
xor edi, edi
mov ecx, dword [esp + 0x210]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00447645
add esp, 0x20c
ret
Function at 0x47cb50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4b1120]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push edi
push ebx
push 0
push 0
push 0x23
push 0
mov edi, 0xa1
call esi
cmp eax, 1
jne 0x47cb8b
push ebx
push 0
push 0
push 0x8023
push 0
call esi
test eax, eax
jge 0x47cbb5
push ebx
push 0
push 0
push 0x2e
push 0
call esi
cmp eax, 1
jne 0x47cbad
push ebx
push 0
push 0
push 0x802e
push 0
call esi
test eax, eax
jl 0x47cc69
mov eax, 0x38
call fcn.00447c60
mov esi, esp
test esi, esi
je 0x47cc51
mov dword [esi], 0xcccc
add esi, 8
mov dword [ebp - 8], esi
je 0x47cc51
push 0
push 0x2d
push esi
push 0x2c
push str.RSGU3VRU9XX37XHMNSCB2W9S214AF2P6JY22275TDTT1
call fcn.00484b70
add esp, 0x14
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x47cc6b
mov eax, dword [ebp + 8]
push 0x4a221c
push eax
push ebx
call fcn.00447b21
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0044a220
mov edx, dword [ebp - 8]
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
xor ecx, ecx
push edx
push ecx
push ecx
mov word [edi], cx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp + 8]
push edi
push eax
push ebx
call fcn.00447b21
mov eax, dword [ebp - 0xc]
add esp, 0xc
lea esp, [ebp - 0x14]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447645
mov esp, ebp
pop ebp
ret
mov eax, 8
lea esp, [ebp - 0x14]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447645
mov esp, ebp
pop ebp
ret
mov eax, edi
lea esp, [ebp - 0x14]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447645
mov esp, ebp
pop ebp
ret
Function at 0x47cc80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4b1120]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, ecx
mov eax, 0x57
test esi, esi
je 0x47cd20
cmp byte [esi], 0
je 0x47cd20
mov cl, byte [ebp + 0x10]
cmp cl, 1
je 0x47ccb2
test cl, cl
jne 0x47cd20
mov eax, dword [ebp + 0xc]
push eax
call fcn.0047cb50
mov edi, eax
add esp, 4
test edi, edi
jne 0x47cd20
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47cce4
push 1
mov esi, ebx
call fcn.0047c700
mov edi, eax
add esp, 4
test edi, edi
jne 0x47cd20
mov esi, dword [ebp + 8]
mov al, byte [ebp + 0x10]
test al, al
jne 0x47cd34
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0044a220
mov ecx, dword [ebp + 8]
mov eax, esp
push esi
push ecx
push eax
call fcn.0040a2d0
mov edx, dword [ebp + 0xc]
push eax
push ebx
push str._s_s.txt
push edx
push ebx
call fcn.00447c36
add esp, 0x14
mov eax, edi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447645
mov esp, ebp
pop ebp
ret
cmp al, 1
jne 0x47cd1e
mov eax, 0x28
call fcn.00447c60
mov edi, esp
test edi, edi
je 0x47cdf4
add edi, 8
mov dword [edi - 8], 0xcccc
je 0x47cdf4
push 0
push 0x20
push edi
push 0x1f
push str.RCCVN097JJ26YB99ZXYF75ZN533RGPZ
call fcn.00484b70
add esp, 0x14
mov dword [ebp - 8], eax
test eax, eax
jne 0x47cdfb
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0044a220
mov eax, esp
push esi
push edi
push eax
call fcn.0040a2d0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0044a220
mov ecx, dword [ebp + 8]
mov eax, esp
push esi
push ecx
push eax
call fcn.0040a2d0
mov edx, dword [ebp - 0xc]
push edx
push eax
mov eax, dword [ebp + 0xc]
push ebx
push str._s_s._s
push eax
push ebx
call fcn.00447c36
add esp, 0x18
push edi
call fcn.0042ef80
mov eax, dword [ebp - 8]
add esp, 4
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447645
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], 8
push edi
call fcn.0042ef80
mov eax, dword [ebp - 8]
add esp, 4
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447645
mov esp, ebp
pop ebp
ret
Function at 0x47ce20
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x224
mov eax, dword [0x4b1120]
xor eax, esp
mov dword [esp + 0x220], eax
mov eax, dword [esp + 0x238]
mov ecx, dword [esp + 0x240]
mov edx, dword [esp + 0x244]
push ebx
push ebp
mov ebp, dword [esp + 0x234]
push esi
push edi
mov edi, dword [esp + 0x238]
mov dword [esp + 0x20], eax
xor eax, eax
push 0x206
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x32]
push ecx
mov dword [esp + 0x28], edx
mov dword [edi], 0xffffffff
mov byte [esp + 0x1f], 0
mov word [esp + 0x34], ax
call fcn.00447660
mov edx, dword [esp + 0x258]
push edx
push 0x104
xor bl, bl
push ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0x2c], bl
call fcn.0047cc80
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x47cf1b
lea eax, [esp + 0x28]
mov bl, 1
push eax
mov byte [esp + 0x18], bl
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [esp + 0x240], 0x40000000
mov dword [esp + 0x24], eax
jne 0x47cf04
test eax, eax
je 0x47cf04
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47cefc
test al, 0x21
je 0x47cf04
and eax, 0xffffffde
push eax
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x47cf04
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp byte [esp + 0x24c], 1
jne 0x47cf1b
cmp dword [esp + 0x24], 0
jne 0x47cf1b
mov bl, 2
mov byte [esp + 0x14], bl
mov eax, dword [esp + 0x18]
test eax, eax
je 0x47cf37
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x30]
push ecx
push ebp
call eax
mov esi, eax
test bl, bl
je 0x47cf87
mov edx, dword [esp + 0x244]
mov eax, dword [esp + 0x240]
push 0
push 0x80
push edx
push 0
push 0
or eax, 0x80000000
push eax
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi], 0xffffffff
mov esi, eax
jne 0x47cf8c
test dword [esp + 0x240], 0x40000000
setne al
add al, 5
jmp 0x47cf90
mov byte [esp + 0x13], 0x29
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x47cf9a
mov byte [ecx], al
mov ecx, dword [esp + 0x230]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00447645
add esp, 0x224
ret
Function at 0x47cfc0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4b1120]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00447660
mov edx, dword [esp + 0x228]
push edx
push 0x104
push esi
lea ecx, [esp + 0x20]
call fcn.0047cc80
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x47d060
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47d058
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, 0x21
je 0x47d045
and eax, 0xffffffde
push eax
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x47d045
call edi
mov esi, eax
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x47d060
call edi
jmp 0x47d05e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0047aea0
call fcn.00477170
mov ecx, dword [esp + 0x210]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.00447645
add esp, 0x20c
ret

Function at 0x47d090
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc8
mov eax, dword [0x4b1120]
xor eax, esp
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0xcc]
push esi
push edi
push 0
push 0
push 0
push 0
push 2
push 0x40000000
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0047ce20
mov esi, dword [esp + 0x28]
add esp, 0x20
mov edi, eax
cmp esi, 0xffffffff
je 0x47d142
push 0
push 1
push str._u._02.2u
lea ecx, [esp + 0x18]
push 0x20
push ecx
call fcn.00447c36
lea edx, [esp + 0x20]
push edx
push str.version_s
lea eax, [esp + 0x68]
push 0x40
push eax
call fcn.00447c36
lea eax, [esp + 0x70]
add esp, 0x24
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47d110
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 0xc]
push ecx
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x58]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x47d142
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xcc]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00447645
add esp, 0xc8
ret
Function at 0x47dd00
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x4b1120]
xor eax, ebp
mov dword [ebp + 0x398], eax
mov eax, dword [ebp + 0x3a4]
mov ecx, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3b0]
push esi
push edi
lea edx, [ebp - 0x78]
push edx
push eax
lea edi, [ebp - 0x7c]
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x7c], 0x208
call fcn.0047d6b0
add esp, 8
test eax, eax
jne 0x47de52
cmp dword [ebp + 0x3ac], eax
je 0x47dd76
test ebx, ebx
je 0x47dd62
cmp byte [ebx], al
jne 0x47dd76
lea eax, [ebp - 0x78]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x47de52
test ebx, ebx
je 0x47de79
cmp byte [ebx], 0
je 0x47de79
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47dd90
sub eax, edx
lea esi, [eax + 1]
lea eax, [esi + 8]
cmp eax, 0x400
ja 0x47ddb9
call fcn.0044a220
mov eax, esp
test eax, eax
je 0x47ddcf
mov dword [eax], 0xcccc
jmp 0x47ddcc
push eax
call fcn.00448217
add esp, 4
test eax, eax
je 0x47ddcf
mov dword [eax], 0xdddd
add eax, 8
mov edi, eax
test edi, edi
je 0x47de72
push 0
push esi
push edi
dec esi
push esi
push ebx
call fcn.00484b70
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x47de3b
mov eax, dword [ebp - 0x80]
xor bl, bl
mov dword [ebp - 0x7c], eax
test eax, eax
jne 0x47de23
lea ecx, [ebp - 0x7c]
push ecx
push 3
push eax
lea edx, [ebp - 0x78]
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x47de18
mov bl, 1
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x47de30
test esi, esi
jne 0x47de30
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
mov eax, dword [ebp - 0x7c]
test bl, bl
je 0x47de3b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [edi - 8], 0xdddd
lea eax, [edi - 8]
jne 0x47de50
push eax
call fcn.004482e1
add esp, 4
mov eax, esi
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x398]
xor ecx, ebp
call fcn.00447645
add ebp, 0x39c
mov esp, ebp
pop ebp
ret
mov eax, 8
jmp 0x47de52
mov eax, 0x57
jmp 0x47de52
Function at 0x47e410
Capabilities:
Connect to http server
Create http request

Disassembly:
mov dword [edi], 0
mov dword [esi], 0
test eax, eax
je 0x47e426
cmp word [eax], 0
jne 0x47e42b
mov eax, str.Avanquest
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [edi], eax
test eax, eax
je 0x47e476
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 0
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi], eax
test eax, eax
je 0x47e470
xor eax, eax
ret
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x486e60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x4d5fc8]
and eax, 7
dec eax
push ebx
push esi
cmp eax, 6
ja case.default.0x486e74
jmp dword [eax*4 + 0x487100]
mov eax, dword [0x4b3224]
mov ecx, dword [0x4b3220]
push 0
push 0x41a7
push eax
push ecx
call fcn.0044ca80
push 0
push closesocket
push edx
push eax
call fcn.00487eb0
lea ecx, [eax - 1]
mov dword [0x4b3220], eax
mov eax, ecx
shr eax, 0xc
mov dword [0x4b3224], edx
movzx edx, al
mov eax, dword [edx*4 + 0x4d6a68]
mov dword [edx*4 + 0x4d6a68], ecx
jmp 0x4870e4
mov edx, dword [0x4b322c]
mov eax, dword [0x4b3228]
push 0
push 0x10dcd
push edx
push eax
call fcn.0044ca80
add eax, 1
adc edx, 0
xor edx, edx
mov dword [0x4b3228], eax
mov dword [0x4b322c], edx
shr eax, 1
jmp 0x4870e4
mov ecx, dword [0x4b3234]
mov edx, dword [0x4b3230]
push 0
push 0x10dcd
push ecx
push edx
call fcn.0044ca80
add eax, 1
adc edx, 0
mov dword [0x4b3230], eax
shr eax, 1
xor edx, edx
mov ecx, eax
shr ecx, 0xc
movzx ecx, cl
mov dword [0x4b3234], edx
mov edx, dword [ecx*4 + 0x4d6668]
mov dword [ecx*4 + 0x4d6668], eax
mov eax, edx
jmp 0x4870e4
mov eax, dword [0x4b323c]
mov ecx, dword [0x4b3238]
push 0
push 0x19660d
push eax
push ecx
call fcn.0044ca80
add eax, 0x3c6ef35f
adc edx, 0
xor edx, edx
mov dword [0x4b3238], eax
mov dword [0x4b323c], edx
shr eax, 1
jmp 0x4870e4
mov edx, dword [0x4b3244]
mov eax, dword [0x4b3240]
push 0
push 0x19660d
push edx
push eax
call fcn.0044ca80
add eax, 0x3c6ef35f
adc edx, 0
mov dword [0x4b3240], eax
shr eax, 1
xor edx, edx
mov ecx, eax
shr ecx, 0xc
movzx ecx, cl
mov dword [0x4b3244], edx
mov edx, dword [ecx*4 + 0x4d6268]
mov dword [ecx*4 + 0x4d6268], eax
mov eax, edx
jmp 0x4870e4
movzx eax, byte [0x4b3248]
mov bl, byte [0x4d6e68]
mov ecx, dword [eax*8 + 0x4d60b0]
mov edx, dword [eax*8 + 0x4d60b4]
movzx esi, bl
add ecx, dword [esi*8 + 0x4d60b0]
push 0
adc edx, dword [esi*8 + 0x4d60b4]
push closesocket
push edx
push ecx
call fcn.00487eb0
inc bl
mov dword [esi*8 + 0x4d60b0], eax
mov dword [esi*8 + 0x4d60b4], edx
mov eax, dword [esi*8 + 0x4d60b0]
mov byte [0x4d6e68], bl
cmp bl, 0x37
jne 0x48702f
mov byte [0x4d6e68], 0
mov cl, byte [0x4b3248]
inc cl
mov byte [0x4b3248], cl
cmp cl, 0x37
jne 0x4870e4
mov byte [0x4b3248], 0
jmp 0x4870e4
mov cl, byte [0x4d6e69]
mov bl, byte [0x4b3249]
movzx esi, cl
movzx eax, bl
mov eax, dword [eax*4 + 0x4d5fd0]
xor eax, dword [esi*4 + 0x4d5fd0]
push edi
xor edx, edx
mov edi, closesocket
div edi
inc cl
mov byte [0x4d6e69], cl
pop edi
mov eax, edx
mov dword [esi*4 + 0x4d5fd0], eax
cmp cl, 0x37
jne 0x48709a
mov byte [0x4d6e69], 0
inc bl
mov byte [0x4b3249], bl
cmp bl, 0x37
jne 0x4870e4
mov byte [0x4b3249], 0
jmp 0x4870e4
mov ecx, dword [0x4b321c]
mov edx, dword [0x4b3218]
push 0
push 0x41a7
push ecx
push edx
call fcn.0044ca80
push 0
push closesocket
push edx
push eax
call fcn.00487eb0
mov dword [0x4b3218], eax
mov dword [0x4b321c], edx
dec eax
pop esi
mov dword [0x4d5fc8], eax
pop ebx
cmp eax, 0x7ffffffd
jbe 0x4870fc
call fcn.00486e60
mov eax, dword [0x4d5fc8]
ret
Function at 0x487260
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x104
mov eax, dword [0x4b1120]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x108]
push ebx
mov ebx, dword [esp + 0x114]
push ebp
push esi
mov esi, dword [esp + 0x118]
xor ebp, ebp
push edi
mov edi, dword [esp + 0x124]
mov dword [esi], 0xffffffff
test eax, eax
je 0x4872b2
cmp byte [eax], 0
je 0x4872b2
push eax
push 0x100
lea eax, [esp + 0x18]
push eax
jmp 0x4872c1
push str.www.avanquest.com
push 0x100
lea ecx, [esp + 0x18]
push ecx
call fcn.00449d9d
add esp, 0xc
test edi, edi
je 0x4872e7
mov eax, dword [esp + 0x128]
test eax, eax
je 0x4872e7
lea edx, [esp + 0x10]
push edx
push eax
push edi
call fcn.00449d9d
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x48731b
movsx ecx, word [edi + 0xa]
mov edx, dword [edi + 0xc]
mov eax, dword [edx]
push ecx
push eax
push esi
call fcn.0044a6b0
add esp, 0xc
mov eax, ebp
test ebx, ebx
je 0x487343
mov cx, word [edi + 8]
mov word [ebx], cx
jmp 0x487343
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x487335
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x487343
test ebx, ebx
je 0x487341
mov eax, 2
mov word [ebx], ax
mov eax, ebp
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00447645
add esp, 0x104
ret
Function at 0x4876f0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
lea ebp, [esp - 0x244]
sub esp, 0x2c4
mov eax, dword [0x4b1120]
xor eax, ebp
mov dword [ebp + 0x240], eax
push ebx
push esi
mov esi, dword [ebp + 0x250]
push edi
mov edi, dword [ebp + 0x24c]
lea eax, [ebp - 0x6c]
push eax
push 0x102
mov dword [ebp - 0x74], esi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x48773f
test esi, esi
je 0x4878e7
mov dword [esi], eax
jmp 0x4878e7
push 0x100
lea ecx, [ebp + 0x124]
push ecx
push 0
lea edx, [ebp - 0x7c]
push edx
push edi
call fcn.00487260
add esp, 0x14
test eax, eax
jne 0x4877b7
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.Iphlpapi.dll
mov byte [ebp - 0x6d], al
call edi
mov ebx, eax
test ebx, ebx
jne 0x487785
push str.Icmp.dll
call edi
mov ebx, eax
test ebx, ebx
je 0x4877b1
mov byte [ebp - 0x6d], 1
push str.IcmpCreateFile
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x4877f0
cmp byte [ebp - 0x6d], al
je 0x4877c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x4878da
mov dword [esi], eax
jmp 0x4878da
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x4878e1
mov dword [esi], eax
jmp 0x4878e1
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.Icmp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4877b1
push str.IcmpCreateFile
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x48779c
push str.IcmpCloseHandle
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x78], eax
test eax, eax
je 0x48779c
call edi
mov dword [ebp - 0x80], eax
cmp eax, 0xffffffff
je 0x48779c
mov ecx, 7
mov esi, str.icmp_send_echo_dacodac_coco
lea edi, [ebp + 0x224]
mov eax, 0x40
rep movsd dword es:[edi], dword [esi]
call fcn.0044a220
mov esi, esp
test esi, esi
je 0x48783b
add esi, 8
mov dword [esi - 8], 0xcccc
jne 0x487851
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x4878da
mov dword [eax], 0xe
jmp 0x4878da
push str.IcmpSendEcho
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x487872
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x74]
test ecx, ecx
je 0x4878d1
mov dword [ecx], eax
jmp 0x4878d1
mov edx, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x80]
push 0x3e8
push 0x38
push esi
push 0
push 0x1c
lea ecx, [ebp + 0x224]
push ecx
push edx
push edi
call eax
test eax, eax
je 0x4878be
push edi
call dword [ebp - 0x78]
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x4878a4
mov dword [eax], 0
push esi
call fcn.0042ef80
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov al, 1
jmp 0x4878e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x74]
test ecx, ecx
je 0x4878cd
mov dword [ecx], eax
push edi
call dword [ebp - 0x78]
push esi
call fcn.0042ef80
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x240]
xor ecx, ebp
call fcn.00447645
add ebp, 0x244
mov esp, ebp
pop ebp
ret