joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443709
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push 0x38
mov eax, 0x5ba54d
call fcn.005718de
xor dl, dl
lea ecx, [ebp - 0x40]
xor bl, bl
call fcn.00443953
xor ecx, ecx
lea eax, [ebp - 0x40]
push ecx
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x2c], 8
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
cmovae eax, dword [ebp - 0x40]
push 3
push ecx
inc ecx
push ecx
push closesocket
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x4437dc
mov dl, 1
lea ecx, [ebp - 0x28]
call fcn.00443953
lea ecx, [ebp - 0x40]
call fcn.00443f00
test al, al
jne 0x4437a9
lea ecx, [ebp - 0x28]
call fcn.00443f00
test al, al
je 0x4437a9
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
push 0
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4437a9
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0
push 3
push 0
push 1
push closesocket
push eax
call edi
xor edi, edi
lea ecx, [ebp - 0x28]
push edi
push 1
mov esi, eax
call fcn.0041164f
cmp esi, 0xffffffff
je 0x443819
jmp 0x4437de
xor edi, edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10
jb 0x443812
push edi
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], edi
push eax
push 0x10
push section..QMGuid
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x443812
cmp dword [ebp - 0x44], 0x10
push 1
movzx ebx, bl
pop eax
cmove ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea ecx, [ebp - 0x40]
push edi
inc eax
push eax
call fcn.0041164f
mov al, bl
call fcn.00571888
ret 4

Function at 0x443830
Capabilities:
Write file on windows

Disassembly:
push 0x38
mov eax, 0x5ba54d
call fcn.005718de
xor dl, dl
lea ecx, [ebp - 0x40]
xor bl, bl
call fcn.00443953
xor ecx, ecx
lea eax, [ebp - 0x40]
push ecx
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x2c], 8
push 2
cmovae eax, dword [ebp - 0x40]
push ecx
inc ecx
push ecx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4438af
mov dl, 1
lea ecx, [ebp - 0x28]
call fcn.00443953
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
push ecx
push ecx
push 2
push ecx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 1
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0041164f
cmp esi, 0xffffffff
je 0x4438db
push 0
lea eax, [ebp - 0x44]
push eax
push 0x10
push section..QMGuid
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4438d4
cmp dword [ebp - 0x44], 0x10
push 1
movzx ebx, bl
pop eax
cmove ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea ecx, [ebp - 0x40]
push 0
inc eax
push eax
call fcn.0041164f
mov al, bl
call fcn.00571888
ret 4
Function at 0x443953
Capabilities:
Get common file path

Disassembly:
push 0x234
mov eax, 0x5ba59f
call fcn.005718de
mov bl, dl
mov esi, ecx
mov dword [ebp - 0x23c], esi
xor edx, edx
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x238], edx
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], edx
jb 0x44398e
mov eax, dword [esi]
jmp 0x443990
mov eax, esi
xor ecx, ecx
mov word [eax], cx
push 0x208
xor edi, edi
mov dword [ebp - 4], edx
push edx
lea eax, [ebp - 0x21c]
inc edi
push eax
mov dword [ebp - 0x238], edi
call fcn.00589570
add esp, 0xc
test bl, bl
push edi
push 0x23
pop eax
push 0x1a
pop ecx
cmovne eax, ecx
xor edi, edi
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x443a8d
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], ax
cmp word [ebp - 0x21c], ax
je 0x443a0a
lea eax, [ebp - 0x21c]
push eax
call fcn.0058e098
pop ecx
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.004107ce
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00411573
push 0
push 1
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0
call fcn.0041164f
mov edi, 0x5fa81c
test bl, bl
jne 0x443a56
mov edi, 0x5fa844
push edi
call fcn.0058e098
pop ecx
push eax
push edi
mov ecx, esi
call fcn.0040d756
mov ecx, esi
call fcn.00443a95
test al, al
jne 0x443a78
mov ecx, esi
call fcn.00443b5f
mov edi, 0x5fa868
push edi
call fcn.0058e098
pop ecx
push eax
push edi
mov ecx, esi
call fcn.0040d756
mov eax, esi
call fcn.00571888
ret
Function at 0x444832
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd40
mov eax, dword [0x6300f4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor bl, bl
mov dword [ebp - 0xd3c], edx
push edi
mov dword [ebp - 0xd38], ecx
xor esi, esi
mov dword [ebp - 0xd40], eax
test bl, bl
jne 0x444a78
push 0x200
lea eax, [ebp - 0x50c]
push 0
push eax
call fcn.00589570
push esi
push 0x5fa890
push 0xffffffffffffffff
lea eax, [ebp - 0x50c]
push 0xff
push eax
call fcn.00430411
add esp, 0x20
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push eax
lea eax, [ebp - 0x50c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x444a6e
and dword [ebp - 0xd34], 0
lea eax, [ebp - 0xd18]
push 0xc
push 0
push eax
call fcn.00589570
xor eax, eax
push 0x800
push eax
mov dword [ebp - 0xd18], eax
mov dword [ebp - 0xd14], eax
lea eax, [ebp - 0xd0c]
push eax
call fcn.00589570
add esp, 0x18
lea eax, [ebp - 0xd34]
push 0
push eax
push 0x800
lea eax, [ebp - 0xd0c]
push eax
push 0xc
lea eax, [ebp - 0xd18]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x444a61
push 0x100
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.00589570
push 0x100
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00589570
push 0x100
lea eax, [ebp - 0x30c]
push 0
push eax
call fcn.00589570
mov edx, dword [ebp - 0xcfc]
lea eax, [ebp - 0x20c]
push eax
push 0
lea ecx, [ebp - 0xd0c]
call fcn.004442be
mov edx, dword [ebp - 0xcf8]
lea eax, [ebp - 0x30c]
push eax
push 0
lea ecx, [ebp - 0xd0c]
call fcn.004442be
mov edx, dword [ebp - 0xcf4]
lea eax, [ebp - 0x10c]
push eax
push 1
lea ecx, [ebp - 0xd0c]
call fcn.004442be
movsx eax, byte [ebp - 0x10c]
push eax
call fcn.0059ca19
add esp, 0x40
test eax, eax
jne 0x4449d7
movsx eax, byte [ebp - 0xf9]
push eax
call fcn.0059ca19
pop ecx
test eax, eax
je 0x444a67
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0xd30]
call fcn.004116f2
mov ecx, dword [ebp - 0xd38]
push eax
call fcn.00410df8
xor ebx, ebx
lea ecx, [ebp - 0xd30]
push ebx
push 1
call fcn.00411ab5
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0xd30]
call fcn.004116f2
mov ecx, dword [ebp - 0xd3c]
push eax
call fcn.00410df8
push ebx
push 1
lea ecx, [ebp - 0xd30]
call fcn.00411ab5
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp - 0xd30]
call fcn.004116f2
mov ecx, dword [ebp - 0xd40]
push eax
call fcn.00410df8
push ebx
push 1
lea ecx, [ebp - 0xd30]
call fcn.00411ab5
mov bl, 1
jmp 0x444a67
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, 0x10
jl 0x444861
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00570864
mov esp, ebp
pop ebp
ret
Function at 0x444f88
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2aa4
call fcn.00571680
mov eax, dword [0x6300f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, ecx
push 0
push eax
call fcn.00589570
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x5fa8dc
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00599e12
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2aa4], eax
test eax, eax
jne 0x444fff
xor al, al
jmp 0x445120
push 0x5f6360
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4450f3
lea ecx, [ebp - 0x2aa0]
mov dword [ebp - 0x2aa0], 0x2880
push ecx
lea ecx, [ebp - 0x2a8c]
push ecx
call eax
test eax, eax
jne 0x4450f3
push ebx
push 3
pop eax
mov dword [ebp - 0x2a9c], eax
lea esi, [ebp - 0x2a8c]
mov ebx, edi
lea eax, [ebp - 0x2a94]
sub ebx, eax
lea ecx, [esi + 8]
call fcn.00445130
push 6
mov dword [ebp - 0x2a98], eax
lea eax, [ebp - 0x2a94]
push 0
push eax
call fcn.00589570
add esp, 0xc
xor edx, edx
lea ecx, [ebp - 0x2a94]
add ecx, edx
mov al, byte [ebx + ecx]
cmp al, byte [ecx]
jne 0x44508f
inc edx
cmp edx, 6
jb 0x445072
mov ecx, dword [ebp - 0x2a98]
jmp 0x4450ad
mov eax, dword [esi + 0x1a0]
cmp eax, 6
je 0x44509f
cmp eax, 0x17
jne 0x4450e8
mov ecx, dword [ebp - 0x2a98]
cmp dword [ebp - 0x2a9c], ecx
jle 0x4450e8
mov al, byte [esi + 0x194]
mov byte [edi], al
mov al, byte [esi + 0x195]
mov byte [edi + 1], al
mov al, byte [esi + 0x196]
mov byte [edi + 2], al
mov al, byte [esi + 0x197]
mov byte [edi + 3], al
mov al, byte [esi + 0x198]
mov byte [edi + 4], al
mov al, byte [esi + 0x199]
mov byte [edi + 5], al
mov dword [ebp - 0x2a9c], ecx
mov esi, dword [esi]
test esi, esi
jne 0x44504f
pop ebx
push dword [ebp - 0x2aa4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 6
lea eax, [ebp - 0x2a94]
push 0
push eax
call fcn.00589570
add esp, 0xc
lea eax, [ebp - 0x2a94]
mov ecx, edi
push eax
call fcn.00444dfc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00570864
mov esp, ebp
pop ebp
ret
Function at 0x445130
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x6300f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor eax, eax
push 3
pop esi
inc eax
mov dword [ebp - 0x10c], 0x104
mov dword [ebp - 0x110], eax
mov ebx, ecx
lea eax, [ebp - 0x11c]
xor ecx, ecx
push eax
push 0x20019
push ecx
push 0x5fa8f8
push closesocket
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x114], ecx
call edi
test eax, eax
jne 0x4452eb
push ebx
push 0x5fa948
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push 0x103
push eax
call fcn.0044258e
add esp, 0x14
lea eax, [ebp - 0x118]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x11c]
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4452e3
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
pop eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0x5fa958
push dword [ebp - 0x118]
call ebx
test eax, eax
jne 0x4452db
push 0x104
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x110], 1
push eax
mov dword [ebp - 0x10c], 0x103
call fcn.00589570
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0x5fa968
push dword [ebp - 0x118]
call ebx
test eax, eax
jne 0x4452db
mov eax, dword [ebp - 0x114]
cmp eax, 1
jne 0x4452d2
mov ebx, 0x5fa978
push ebx
call fcn.0058cae0
push eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.0059cb30
add esp, 0x10
test eax, eax
jne 0x4452a1
xor esi, esi
jmp 0x4452db
mov eax, dword [ebp - 0x114]
cmp eax, 1
jne 0x4452d2
push ebx
call fcn.0058cae0
push eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.0059cb30
add esp, 0x10
test eax, eax
je 0x4452cc
push 2
pop esi
jmp 0x4452db
mov eax, dword [ebp - 0x114]
cmp eax, 2
push 1
pop eax
cmove esi, eax
push dword [ebp - 0x118]
call edi
push dword [ebp - 0x11c]
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00570864
mov esp, ebp
pop ebp
ret
Function at 0x445524
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x6300f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
mov dword [ebp - 0x18], edx
push edi
mov dword [ebp - 0x20], eax
push dword [esi]
call ebx
push dword [esi + 4]
mov dword [ebp - 0x1c], eax
call ebx
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x14]
xor esi, esi
sub edi, eax
lea eax, [edi + esi*4]
push dword [ebp + eax - 0x14]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi*4 - 0x14], eax
inc esi
cmp esi, 4
jl 0x445560
mov edi, dword [ebp - 0x1c]
xor edx, edx
push 0x10
pop esi
mov ecx, ebx
lea edx, [edx - 0x61c88647]
shl ecx, 4
mov eax, ebx
add ecx, dword [ebp - 0x14]
shr eax, 5
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
add edi, ecx
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 8]
shl eax, 4
add eax, dword [ebp - 0xc]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
add ebx, ecx
sub esi, 1
jne 0x44557f
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
call esi
mov edi, dword [ebp - 0x20]
push ebx
mov dword [edi], eax
call esi
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00570864
mov esp, ebp
pop ebp
ret
Function at 0x449e56
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x6300f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 9
pop ecx
lea edi, [ebp - 0x40]
mov edx, esi
rep stosd dword es:[edi], eax
push str..bak
lea ecx, [ebp - 0x1c]
call fcn.0042075b
pop ecx
push 8
pop edi
cmp dword [esi + 0x14], edi
jb 0x449e91
mov eax, dword [esi]
jmp 0x449e93
mov eax, esi
lea ecx, [ebp - 0x40]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x449eb5
cmp dword [ebp - 8], edi
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 8], edi
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
cmp dword [esi + 0x14], edi
jb 0x449ec6
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.0041164f
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00570864
mov esp, ebp
pop ebp
ret 4

Function at 0x44ef4c
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x44ef98
push ebx
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10000
push eax
push 0x1002
mov ebx, 0xffff
push ebx
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 4]
push eax
push 0x1001
push ebx
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x44ef9f
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x6300f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov eax, dword [ebx + 8]
test eax, eax
je 0x44efc8
cmp byte [eax], 0
jne 0x44efc8
xor al, al
jmp 0x44f0f0
call fcn.0044ef4c
mov ecx, eax
mov dword [ebx], ecx
cmp ecx, 0xffffffff
je 0x44efc1
push 4
lea eax, [ebx + 0x10]
push eax
push 0x1006
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 1
push eax
push 0x8004667e
push dword [ebx]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x44efc1
mov eax, dword [ebp + 8]
push esi
push edi
push 0x10
movzx esi, word [eax + 4]
mov edi, dword [eax]
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00589570
add esp, 0xc
mov word [ebp - 0x12], si
mov dword [ebp - 0x10], edi
push 2
pop eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_connect]
pop edi
pop esi
test eax, eax
je 0x44efc1
and dword [ebp - 0x220], 0
lea eax, [ebp - 0x220]
push eax
push 0x8004667e
push dword [ebx]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x44efc1
mov eax, dword [ebx]
xor ecx, ecx
mov dword [ebp - 0x114], eax
inc ecx
mov dword [ebp - 0x218], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x118], ecx
push eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x21c], ecx
xor ecx, ecx
push eax
push ecx
push ecx
mov dword [ebp - 0x228], ecx
call dword [sym.imp.WS2_32.dll_select]
lea eax, [ebp - 0x118]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
setne al
mov byte [ebx + 4], al
test al, al
jne 0x44f0ed
cmp dword [ebx], 0xffffffff
je 0x44f0e6
push dword [ebx]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [ebx], 0xffffffff
mov byte [ebx + 4], 0
mov al, byte [ebx + 4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00570864
mov esp, ebp
pop ebp
ret 8

Function at 0x44f101
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 8], eax
cmp dword [edi + 0x14], 0x10
lea edx, [edi + 0x10]
mov esi, dword [edx]
mov dword [ebp - 4], edx
jb 0x44f121
mov edi, dword [edi]
cmp byte [eax + 4], 0
je 0x44f17f
mov ecx, esi
xor ebx, ebx
mov dword [ebp + 8], ecx
test esi, esi
jle 0x44f17f
mov edx, dword [eax + 8]
test edx, edx
je 0x44f13e
cmp byte [edx], 0
je 0x44f178
mov edx, dword [eax]
cmp edx, 0xffffffff
je 0x44f160
push 0
mov eax, edi
sub eax, ecx
push ecx
add eax, esi
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp + 8]
mov ebx, eax
mov eax, dword [ebp - 8]
jmp 0x44f163
or ebx, 0xffffffff
test ebx, ebx
jle 0x44f172
sub ecx, ebx
mov dword [ebp + 8], ecx
test ecx, ecx
jg 0x44f132
jmp 0x44f178
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [ebp - 4]
test ebx, ebx
jg 0x44f182
or esi, 0xffffffff
cmp esi, dword [edx]
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44f210
Capabilities:
Resolve dns

Disassembly:
push 0x22c
mov eax, 0x5bbefc
call fcn.005718de
mov edi, ecx
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x238], eax
call fcn.0044a501
mov ecx, 0x2dc6c0
mov esi, 0x7a120
mov al, byte [eax + 0x60]
test al, al
cmovne esi, ecx
call fcn.0044a501
mov edx, 0xbb8
mov ecx, 0x1f4
mov al, byte [eax + 0x60]
test al, al
mov dword [ebp - 0x21c], esi
mov eax, dword [edi + 4]
cmovne ecx, edx
mov dword [ebp - 0x220], eax
or dword [ebp - 0x228], 0xffffffff
xor edx, edx
mov byte [ebp - 0x224], dl
mov dword [ebp - 0x218], ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov dword [ebp - 0x230], edx
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [ebx + 0x14], 0x10
mov word [ebp - 0x22c], ax
jb 0x44f2a9
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x44f2c1
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x230], eax
push ecx
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x228]
call fcn.0044ef9f
test al, al
je 0x44f312
push dword [ebp - 0x234]
lea ecx, [ebp - 0x228]
call fcn.0044f101
test al, al
je 0x44f312
xor ebx, ebx
inc ebx
push ebx
push dword [ebp - 0x228]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [ebp - 0x238]
lea ecx, [ebp - 0x228]
call fcn.0044f190
test al, al
jne 0x44f314
xor bl, bl
cmp dword [ebp - 0x228], 0xffffffff
je 0x44f329
push dword [ebp - 0x228]
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, bl
call fcn.00571888
ret 0x10
Function at 0x453ada
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], edx
push 0
push 0x14
and dword [ebx], 0
call fcn.00451a8e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x453afe
push 7
pop eax
jmp 0x453b68
cmp byte [0x6313cc], 0
push edi
mov edi, dword [ebp + 8]
je 0x453b3f
mov ecx, 0xc8
call fcn.00454169
test eax, eax
jne 0x453b3f
mov eax, dword [ebp - 4]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
xor eax, eax
mov dword [esi + 0xc], edi
push eax
push esi
push 0x453aba
push eax
push eax
call fcn.0059d1d8
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x453b4c
push 0x14
push 0
push esi
call fcn.00589570
add esp, 0xc
cmp dword [esi + 8], 0
jne 0x453b63
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi + 4], eax
call dword [ebp - 4]
pop ecx
mov dword [esi + 0x10], eax
mov dword [ebx], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x457e69
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ecx + 8]
mov eax, edx
push edi
mov edi, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 4], eax
test edi, edi
jle 0x457e9d
push ebx
mov ebx, dword [ecx]
mov al, byte [edx + eax]
xor byte [ebx + esi], al
lea eax, [esi + 1]
xor esi, esi
inc edx
cmp eax, dword [ecx + 4]
cmovl esi, eax
mov eax, dword [ebp - 4]
cmp edx, edi
jl 0x457e83
pop ebx
add dword [ecx + 0xc], edi
pop edi
mov dword [ecx + 8], esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x45b41a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, dword [edi + 0x88]
test esi, esi
je 0x45b452
mov eax, dword [ebp + 0xc]
push 8
push 0
mov dword [eax], esi
mov eax, dword [esi + 0x10]
mov dword [edi + 0x88], eax
push dword [esi + 8]
and dword [esi + 0x10], 0
call fcn.00589570
add esp, 0xc
jmp 0x45b4b2
movzx eax, word [edi + 0x8c]
cdq
add eax, 0x28
adc edx, 0
push edx
push eax
call fcn.00451d9d
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov dword [ecx], esi
test esi, esi
jne 0x45b49b
mov eax, dword [edi + 0x98]
lea ecx, [ebx - 1]
push esi
cdq
push ecx
push edx
push eax
call fcn.005717d0
mov ecx, dword [edi + 0x3c]
push edx
mov edx, dword [ebp + 8]
push eax
call fcn.0045138e
pop ecx
pop ecx
push 7
pop eax
jmp 0x45b4c0
lea eax, [esi + 0x28]
mov dword [esi + 0x14], edi
mov dword [esi + 8], eax
push 0x20
pop eax
mov word [esi + 0x1c], ax
xor eax, eax
inc eax
mov word [esi + 0x1e], ax
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esi + 0x18], ebx
inc dword [edi + 0x78]
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x47d6c5
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, edx
mov ebx, str.sqlite_master
push esi
push ebx
push esi
mov edi, ecx
push str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
push edi
call fcn.00480fbb
add esp, 0x18
cmp dword [ebp + 8], 0
jne 0x47d6fe
push esi
push ebx
push str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
push edi
call fcn.00480fbb
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret