joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c630
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x484f48
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x49e058]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push esi
mov eax, dword [0x49e058]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0xc]
call fcn.00437c70
xor ebx, ebx
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], ebx
call fcn.00438530
test al, al
jne 0x42c6bc
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x42c6b4
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esi], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov bl, 1
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x42c6be
mov bl, 1
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0042c620
mov al, bl
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044d7a0
add esp, 0x24
ret
Function at 0x42cff0
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x49e058]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [esp + 4], eax
je 0x42d06b
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x42d05a
mov dword [esp + 4], ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 4]
cmp eax, ebx
mov ecx, dword [esp + 0x14]
setne al
pop ebx
xor ecx, esp
call fcn.0044d7a0
add esp, 0x14
ret
Function at 0x42dcd0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4850b3
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x49e058]
xor eax, esp
mov dword [esp + 0x144], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49e058]
xor eax, esp
push eax
lea eax, [esp + 0x15c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x16c]
mov ebp, dword [esp + 0x170]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov edi, 0xf
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
mov dword [esp + 0x50], esi
mov byte [esi + 4], bl
push 0x104
lea eax, [esp + 0x58]
push ebx
push eax
mov dword [esp + 0x170], ebx
mov dword [esp + 0x20], 1
call fcn.0044dd90
add esp, 0xc
push 1
push 0x2b
lea ecx, [esp + 0x5c]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x42de73
lea eax, [esp + 0x54]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42dd80
sub eax, edx
push eax
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x3c]
call fcn.004049b0
push str.TencentQQDownload
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x170], 1
call fcn.00411dd0
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [esp + 0x170], 2
call fcn.00405f50
mov edi, 0x10
cmp dword [esp + 0x30], edi
jb 0x42dde7
mov edx, dword [esp + 0x1c]
push edx
call fcn.0044d7d9
add esp, 4
cmp dword [esp + 0x4c], edi
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
mov byte [esp + 0x164], bl
jb 0x42de11
mov eax, dword [esp + 0x38]
push eax
call fcn.0044d7d9
add esp, 4
cmp dword [ebp + 0x14], ebx
je 0x42de59
push ebp
lea ecx, [esp + 0x1c]
push 0x48bc24
push ecx
call fcn.0042d4d0
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov dword [esp + 0x170], 3
call fcn.00405f50
cmp dword [esp + 0x30], edi
mov byte [esp + 0x164], bl
jb 0x42de59
mov edx, dword [esp + 0x1c]
push edx
call fcn.0044d7d9
add esp, 4
push esi
call fcn.0042d6c0
add esp, 4
test al, al
jne 0x42de80
push esi
call fcn.0042d820
add esp, 4
cmp al, bl
jne 0x42de80
push ebx
push 0x48b16b
mov ecx, esi
call fcn.004049b0
mov eax, esi
mov ecx, dword [esp + 0x15c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.0044d7a0
add esp, 0x154
ret
Function at 0x42deb0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48513b
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x49e058]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49e058]
xor eax, esp
push eax
lea eax, [esp + 0x264]
mov dword fs:[0], eax
mov esi, dword [esp + 0x274]
xor ebx, ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov ebp, 0xf
mov edi, 1
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
mov dword [esp + 0x26c], edi
mov byte [esi + 4], bl
push 0x104
lea eax, [esp + 0x160]
push ebx
push eax
mov dword [esp + 0x3c], edi
call fcn.0044dd90
mov cl, byte [esp + 0x2a4]
add esp, 0xc
neg cl
push edi
lea edx, [esp + 0x160]
sbb ecx, ecx
and ecx, 0xfffffff7
add ecx, 0x23
push ecx
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
lea edi, [ebx + 0x10]
je 0x42e021
lea eax, [esp + 0x15c]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42df73
sub eax, edx
push eax
lea eax, [esp + 0x160]
push eax
lea ecx, [esp + 0x1c]
call fcn.004049b0
lea ecx, [esp + 0x27c]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x278], 2
call fcn.00411e90
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [esp + 0x278], 3
call fcn.00405f50
cmp dword [esp + 0x50], edi
jb 0x42dfd8
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0044d7d9
add esp, 4
cmp dword [esp + 0x2c], edi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
mov byte [esp + 0x26c], 1
jb 0x42dfff
mov edx, dword [esp + 0x18]
push edx
call fcn.0044d7d9
add esp, 4
push esi
call fcn.0042d6c0
add esp, 4
test al, al
jne 0x42e0b5
push esi
call fcn.0042d820
add esp, 4
cmp al, bl
jne 0x42e0b5
push 0x104
lea eax, [esp + 0x59]
push ebx
push eax
mov byte [esp + 0x60], bl
call fcn.0044dd90
add esp, 0xc
push 0x105
lea ecx, [esp + 0x58]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x54]
push 0x5c
push edx
call fcn.00450d90
add esp, 8
cmp eax, ebx
je 0x42e05e
mov byte [eax], bl
lea eax, [esp + 0x54]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42e071
sub eax, edx
push eax
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x1c]
call fcn.004049b0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
mov byte [esp + 0x278], 4
call fcn.004048d0
cmp dword [esp + 0x2c], edi
jb 0x42e0b5
mov edx, dword [esp + 0x18]
push edx
call fcn.0044d7d9
add esp, 4
cmp dword [esp + 0x294], edi
jb 0x42e0ce
mov eax, dword [esp + 0x280]
push eax
call fcn.0044d7d9
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.0044d7a0
add esp, 0x25c
ret
Function at 0x42e720
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4851b8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x49e058]
xor eax, esp
mov dword [esp + 0x48], eax
push esi
mov eax, dword [0x49e058]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x68]
mov esi, 0x10
cmp dword [esp + 0x7c], esi
mov dword [esp + 0x5c], 0
jb 0x42e794
test ecx, ecx
mov eax, ecx
je 0x42e785
cmp byte [eax], 0
je 0x42e785
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42e781
test al, 0x10
je 0x42e79a
mov ecx, dword [esp + 0x68]
cmp dword [esp + 0x7c], esi
jb 0x42e84c
jmp 0x42e843
lea eax, [esp + 0x68]
jmp 0x42e76c
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x28]
call fcn.0042ee70
lea ecx, [esp + 0x24]
mov dword [esp + 8], 0x48b588
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x84]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
mov byte [esp + 0x68], 2
call fcn.0042e530
add esp, 0xc
test al, al
je 0x42e82b
mov edx, dword [esp + 0x80]
push edx
lea ecx, [esp + 0x14]
call fcn.0042c5f0
test al, al
je 0x42e82b
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], 0
call fcn.0042ebc0
cmp dword [esp + 0x7c], esi
jb 0x42e827
mov eax, dword [esp + 0x68]
push eax
call fcn.0044d7d9
add esp, 4
mov al, 1
jmp 0x42e84e
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], 0
call fcn.0042ebc0
cmp dword [esp + 0x7c], esi
jb 0x42e84c
mov ecx, dword [esp + 0x68]
push ecx
call fcn.0044d7d9
add esp, 4
xor al, al
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0044d7a0
add esp, 0x58
ret

Function at 0x42e8a0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x42e8ab
xor al, al
ret
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
ret
Function at 0x42f490
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x11c
mov eax, dword [0x49e058]
xor eax, esp
mov dword [esp + 0x118], eax
push ebp
push esi
mov esi, dword [esp + 0x128]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov ebp, 3
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
call edi
test eax, eax
jne 0x42f624
push esi
push str._sConnection
lea ecx, [esp + 0x28]
push 0x103
push ecx
call fcn.0042f470
mov ecx, dword [esp + 0x2c]
add esp, 0x10
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
lea eax, [esp + 0x2c]
push eax
push ecx
call edi
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x42f61d
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, 4
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.MediaSubType
push edx
call esi
test eax, eax
jne 0x42f616
push 0x104
push eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x103
call fcn.0044dd90
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push str.PnpInstanceID
push ecx
call esi
test eax, eax
jne 0x42f616
mov esi, 1
cmp dword [esp + 0xc], esi
jne 0x42f606
push ebp
lea edx, [esp + 0x24]
push 0x48c4c8
push edx
call fcn.004515aa
add esp, 0xc
test eax, eax
jne 0x42f5e1
xor ebp, ebp
jmp 0x42f616
cmp dword [esp + 0xc], esi
jne 0x42f606
push 3
lea eax, [esp + 0x24]
push 0x48c4c8
push eax
call fcn.004515aa
add esp, 0xc
test eax, eax
je 0x42f606
mov ebp, 2
jmp 0x42f616
xor ecx, ecx
cmp dword [esp + 0xc], 2
setne cl
lea ecx, [ecx + ecx + 1]
mov ebp, ecx
mov edx, dword [esp + 0x10]
push edx
call edi
mov eax, dword [esp + 0x1c]
push eax
call edi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.0044d7a0
add esp, 0x11c
ret
Function at 0x42ffc0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x49e058]
xor eax, esp
mov dword [esp + 0x14], eax
mov ax, word [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push esi
push 0x11
push 2
push 2
mov word [esp + 0x14], 2
mov word [esp + 0x16], ax
mov dword [esp + 0x18], ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 4], 0x10000
je 0x430033
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea edx, [esp + 0xc]
push edx
push 0x1002
push 0xffff
push esi
call edi
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call edi
pop edi
cmp byte [esp + 0x28], 0
je 0x430077
lea ecx, [esp + 4]
push ecx
push 0x8004667e
push esi
mov dword [esp + 0x10], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x430077
cmp esi, 0xffffffff
je 0x430064
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044d7a0
add esp, 0x18
ret
push 0x10
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x430058
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0044d7a0
add esp, 0x18
ret

Function at 0x430200
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 4]
push edx
push 0
lea eax, [esi + 8]
push eax
push 0x42fcb0
push 0
push 0
mov byte [esi + 0x18], 0
mov dword [eax], esi
mov dword [esi + 0xc], ecx
call fcn.0045054b
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x43023c
mov dword [esi + 4], 0
cmp dword [esi + 4], 0
jne 0x43024d
mov byte [esi + 0x18], 1
xor al, al
pop esi
pop ecx
ret 4
mov al, 1
pop esi
pop ecx
ret 4
Function at 0x431e50
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4853ee
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49e058]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor ebx, ebx
lea ebp, [esi + 4]
mov dword [esi], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
lea edi, [esi + 0x14]
mov dword [esp + 0x30], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov eax, dword [esp + 0x14]
push eax
push 0x49dde8
push 0x49ddb0
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 1
call fcn.0040a7b0
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
mov byte [esp + 0x34], 2
call fcn.0040a550
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov byte [esp + 0x30], 1
je 0x431ee1
push eax
call fcn.0044d7d9
add esp, 4
push edi
mov ecx, ebp
call fcn.0040a550
mov edx, dword [str.www.tencent.com.]
mov dword [esi + 0x24], edx
mov eax, dword [0x48c5f0]
mov dword [esi + 0x28], eax
mov ecx, dword [0x48c5f4]
mov dword [esi + 0x2c], ecx
mov edx, dword [0x48c5f8]
mov dword [esi + 0x30], edx
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x30]
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], eax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x432d10
Capabilities:
Access peb ldr_data
Get ntdll base address
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x4854d4
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x49e058]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x24]
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x28]
mov dword [esi], 0x48c600
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x65
mov dword [esi + 0x18], 0x12dd668
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], 0x34
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov edx, 1
mov dword [esi + 0x20], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esp + 0x1c], eax
mov dword [esi + 0x4018], eax
mov dword [esi + 0x401c], eax
mov dword [esi + 0x4020], eax
mov dword [esi + 0x4028], eax
mov dword [esi + 0x402c], eax
mov dword [esi + 0x4030], eax
cmp ecx, 0xffffffff
mov eax, 2
mov byte [esp + 0x1c], al
je 0x432e2a
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], edx
mov edx, dword [esi + 0xc]
push 0x8004667e
push edx
mov dword [esi + 0x10], eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
mov dword [esp + 0x24], 0x10000
je 0x432e1d
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 0x28]
push eax
push 0x1002
push 0xffff
push edi
call ebx
push 4
lea ecx, [esp + 0x28]
push ecx
push 0x1001
push 0xffff
push edi
call ebx
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 4]
push esi
push edx
call fcn.00432360
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8
Function at 0x432e50
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x49e058]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
push 6
push 1
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 8], 0x10000
je 0x432ead
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 0x10]
push eax
push 0x1002
push 0xffff
push edi
call ebp
push 4
lea ecx, [esp + 0x10]
push ecx
push 0x1001
push 0xffff
push edi
call ebp
pop ebp
lea edx, [esp + 8]
push edx
push 0x8004667e
push edi
mov dword [esi + 0xc], edi
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x432f2f
mov eax, dword [esp + 0x24]
mov cx, word [eax + 4]
mov edx, dword [eax]
push 0x10
lea eax, [esp + 0x10]
mov word [esp + 0x12], cx
mov ecx, dword [esi + 0xc]
push eax
push ecx
mov word [esp + 0x18], 2
mov dword [esp + 0x1c], edx
call dword [sym.imp.WS2_32.dll_connect]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 4]
push esi
push edx
mov dword [esi + 0x10], 1
call fcn.004323e0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
push esi
push eax
call fcn.00432a30
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044d7a0
add esp, 0x18
ret 4
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x432f3e
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x1c]
pop edi
mov dword [esi + 0xc], 0xffffffff
pop esi
xor ecx, esp
xor al, al
call fcn.0044d7a0
add esp, 0x18
ret 4

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

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
cmp dword [esi + 0x10], 2
push edi
jne 0x432ff6
mov eax, dword [esi + 0x4018]
test eax, eax
je 0x432f87
mov ecx, dword [esi + 0x401c]
sub ecx, eax
jne 0x432ff6
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
je 0x432fa6
push 0
push ebx
push ebp
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
jmp 0x432fa9
or edi, 0xffffffff
cmp edi, ebx
je 0x432fea
jge 0x432ff6
cmp edi, 0xffffffff
je 0x432ff6
lea edx, [esp + 0x10]
push edx
lea ecx, [esi + 0x4014]
call fcn.0040a0d0
mov edx, dword [eax + 4]
mov eax, dword [eax]
lea ecx, [ebx + ebp]
push ecx
add edi, ebp
push edi
push edx
push eax
lea ecx, [esi + 0x4014]
call fcn.0042e290
mov ecx, dword [esi + 0xc]
push esi
push ecx
mov ecx, dword [esi + 4]
call fcn.004323e0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 8
ret 0xc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret 0xc
Function at 0x433180
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0xc
mov eax, 0x55555556
imul dword [esp + 0x14]
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea edx, [ecx*4]
mov eax, 0x6bca1af3
imul edx
push ebx
push ebp
sar edx, 5
push esi
mov ebp, edx
shr ebp, 0x1f
push edi
mov edi, dword [esp + 0x20]
xor ebx, ebx
add ebp, edx
test edi, edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ecx
lea eax, [ebx + 0x13]
je 0x43335d
mov esi, dword [esp + 0x28]
test esi, esi
je 0x43335d
cmp dword [esp + 0x2c], ebx
je 0x43335d
test ebp, ebp
mov dword [esp + 0x20], ebx
jl 0x4332c6
mov edx, dword [esp + 0x30]
and edx, 2
mov dword [esp + 0x14], edx
cmp dword [esp + 0x20], ebp
jne 0x433212
mov edx, ebp
imul edx, edx, 0x4c
lea eax, [ecx*4]
sub eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x433281
mov edx, eax
movzx ebx, byte [edi + 2]
xor ecx, ecx
mov ch, byte [edi]
add edi, 3
add esi, 4
mov cl, byte [edi - 2]
shl ecx, 8
or ecx, ebx
shl ecx, 8
mov ebx, ecx
shr ebx, 0x1a
movzx ebx, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi - 4], bl
shl ecx, 6
mov ebx, ecx
shr ebx, 0x1a
movzx ebx, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
shl ecx, 6
mov byte [esi - 3], bl
mov ebx, ecx
shr ebx, 0x1a
movzx ebx, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
shr ecx, 0x14
and ecx, 0x3f
sub edx, 1
mov byte [esi - 2], bl
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi - 1], cl
jne 0x433218
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x14], 0
lea ebx, [ebx + eax*4]
mov dword [esp + 0x10], ebx
jne 0x4332a2
mov byte [esi], 0xd
add esi, 1
mov byte [esi], 0xa
add esi, 1
add ebx, 2
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x20]
add edx, 1
cmp edx, ebp
mov dword [esp + 0x20], edx
jle 0x4331f5
test ebx, ebx
je 0x4332c6
cmp dword [esp + 0x14], 0
jne 0x4332c6
sub esi, 2
sub ebx, 2
lea edx, [ecx + ecx*2]
mov ecx, dword [esp + 0x24]
sub ecx, edx
je 0x43334a
lea ebp, [ecx + 1]
test ebp, ebp
je 0x43334a
xor eax, eax
test ecx, ecx
jle 0x4332e4
movzx eax, byte [edi]
add edi, 1
shl eax, 8
cmp ecx, 1
jle 0x4332f4
movzx edx, byte [edi]
or eax, edx
add edi, 1
shl eax, 8
cmp ecx, 2
jle 0x433301
movzx ecx, byte [edi]
or eax, ecx
shl eax, 8
test ebp, ebp
jle 0x433328
mov ecx, ebp
lea ebx, [ebx]
mov edx, eax
shr edx, 0x1a
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], dl
add esi, 1
shl eax, 6
sub ecx, 1
jne 0x433310
add ebx, ebp
test byte [esp + 0x30], 1
jne 0x43334a
mov edi, 4
sub edi, ebp
test edi, edi
jle 0x433348
push edi
push 0x3d
push esi
call fcn.0044dd90
add esp, 0xc
add ebx, edi
mov eax, dword [esp + 0x2c]
pop edi
pop esi
mov dword [eax], ebx
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret