joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a0d6
Capabilities:
Encrypt data via sspi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
mov ebx, dword [esi + 0x1c]
push edi
mov edi, dword [esi + 0x14]
add edi, dword [esi + 0x30]
xor edx, edx
add ebx, edi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
cmp eax, edx
jne 0x40a0fd
mov al, 1
pop edi
pop ebx
leave
ret
xor edx, edx
push dword [esi + 0x34]
push dword [esi + 0x30]
call fcn.00403e69
mov eax, dword [esi + 0x1c]
cmp dword [ebp - 8], eax
jae 0x40a113
mov eax, dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
call fcn.00403e04
sub dword [ebp - 8], eax
add dword [ebp - 0xc], eax
mov ecx, dword [esi + 0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x10], eax
push edx
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x40], ecx
mov ecx, dword [esi + 0x14]
push edx
lea eax, [esi + 0xc]
push eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], 6
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], 4
call sub.Secur32.dll_EncryptMessage
test eax, eax
jne 0x40a1b9
mov byte [ebp - 1], al
movzx eax, byte [ebp - 1]
imul eax, eax, 0xc
mov ecx, dword [ebp + eax - 0x48]
test ecx, ecx
jbe 0x40a1a1
push ecx
push dword [ebp + eax - 0x40]
push dword [esi]
call fcn.00405573
test al, al
je 0x40a1b9
inc byte [ebp - 1]
cmp byte [ebp - 1], 3
jb 0x40a182
cmp dword [ebp - 8], 0
jne 0x40a0fb
jmp 0x40a0f5
xor al, al
jmp 0x40a0f7
Function at 0x40b301
Capabilities:
Clear file content
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
push edi
xor edi, edi
push edi
push 2
push 4
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
mov byte [esp + 0x27], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or ebx, 0xffffffff
mov dword [esi], eax
cmp eax, ebx
je 0x40b468
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40b358
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
jmp 0x40b360
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x18]
and eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40b39b
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x1c]
je 0x40b451
push edi
lea eax, [esp + 0x10]
push eax
push 5
lea eax, [esp + 0x1c]
push eax
push dword [esi]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b3ad
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
jmp 0x40b468
xor edi, edi
cmp dword [esp + 0xc], edi
je 0x40b451
cmp dword [esp + 0xc], 5
jne 0x40b429
mov eax, dword [esp + 0x10]
xor eax, dword [esi + 0x10]
xor ecx, ecx
mov ebx, eax
add ebx, dword [esp + 0x20]
mov edi, ecx
adc edi, dword [esp + 0x24]
add ebx, 5
adc edi, ecx
mov dword [esp + 0x10], eax
cmp edi, dword [esp + 0x1c]
ja 0x40b427
jb 0x40b3ea
cmp ebx, dword [esp + 0x18]
ja 0x40b427
cmp eax, 0xa00000
ja 0x40b427
push 1
push ecx
push eax
push dword [esi]
call fcn.00404e55
test al, al
je 0x40b39b
push 0
lea eax, [esp + 0x10]
push eax
push 5
lea eax, [esp + 0x1c]
push eax
push dword [esi]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b3ab
jmp 0x40b39b
xor edi, edi
push edi
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esi]
call fcn.00404e55
test al, al
je 0x40b39b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x40b39b
or dword [esi + 8], 0xffffffff
or dword [esi + 0xc], 0xffffffff
push edi
push edi
push edi
push dword [esi]
mov byte [esp + 0x1b], 1
call fcn.00404e55
mov al, byte [esp + 0xb]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b492
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], 0xa00000
push edi
mov byte [ebp - 1], bl
ja 0x40b56c
push dword [esi]
call fcn.00404e75
mov dword [ebp - 0x20], eax
and eax, edx
mov dword [ebp - 0x1c], edx
cmp eax, 0xffffffff
je 0x40b56c
push 2
push ebx
push ebx
push dword [esi]
call fcn.00404e55
test al, al
je 0x40b56c
push dword [esi]
call fcn.00404e75
mov dword [ebp - 0x18], eax
and eax, edx
mov dword [ebp - 0x14], edx
cmp eax, 0xffffffff
je 0x40b556
push 5
push ebx
lea eax, [ebp - 0x10]
push eax
call fcn.00403e7b
mov eax, dword [esi + 0x10]
xor eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x10]
push eax
push dword [esi]
call edi
test eax, eax
je 0x40b540
cmp dword [ebp - 8], 5
jne 0x40b540
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call edi
test eax, eax
je 0x40b540
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 8], eax
jne 0x40b540
mov byte [ebp - 1], 1
jmp 0x40b556
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [esi]
call fcn.00404e55
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [esi]
call fcn.00404e55
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 8

Function at 0x40b575
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push ebx
push edi
push dword [esi]
call fcn.00404e75
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
jmp 0x40b5dd
cmp dword [esp + 8], ebx
je 0x40b5fc
cmp dword [esp + 8], 5
jne 0x40b66c
mov eax, dword [esp + 0x10]
xor eax, dword [esi + 0x10]
mov dword [esp + 0x10], eax
cmp eax, 0xa00000
ja 0x40b66c
test byte [esp + 0x14], 1
jne 0x40b5c3
cmp eax, ebx
jne 0x40b605
push 1
push ebx
push eax
push dword [esi]
call fcn.00404e55
test al, al
je 0x40b66c
push dword [esi]
call fcn.00404e75
push ebx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xc]
push eax
push 5
lea eax, [esp + 0x1c]
push eax
push dword [esi]
mov dword [esp + 0x30], edx
call edi
test eax, eax
jne 0x40b591
jmp 0x40b66c
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov al, 1
jmp 0x40b66e
call fcn.00403db0
mov dword [esp + 0xc], eax
cmp eax, ebx
je 0x40b66c
push ebx
lea ecx, [esp + 0xc]
push ecx
push dword [esp + 0x18]
push eax
push dword [esi]
call edi
test eax, eax
je 0x40b663
mov edi, dword [esp + 0x10]
cmp dword [esp + 8], edi
jne 0x40b663
push dword [ebp + 0x10]
mov eax, dword [esp + 0x10]
xor ebx, ebx
call fcn.0040b1e5
mov dword [esp + 8], eax
test eax, eax
je 0x40b663
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0xc]
mov dword [ecx], edx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0xc], eax
jmp 0x40b601
push dword [esp + 0xc]
call fcn.00403dc8
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40b676
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [esi + 8]
and eax, dword [esi + 0xc]
push ebx
xor ebx, ebx
mov byte [esp + 0xb], bl
cmp eax, 0xffffffff
je 0x40b735
push dword [esi]
call fcn.00404e75
mov dword [esp + 0x18], eax
and eax, edx
mov dword [esp + 0x1c], edx
cmp eax, 0xffffffff
je 0x40b735
push ebx
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi]
call fcn.00404e55
test al, al
je 0x40b735
push ebx
lea eax, [esp + 0x10]
push eax
push 5
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40b725
cmp dword [esp + 0xc], 5
jne 0x40b725
or byte [esp + 0x14], 1
push ebx
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi]
call fcn.00404e55
test al, al
je 0x40b725
push ebx
lea eax, [esp + 0x10]
push eax
push 5
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b725
cmp dword [esp + 0xc], 5
jne 0x40b725
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [esp + 0xb], 1
push ebx
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esi]
call fcn.00404e55
mov al, byte [esp + 0xb]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bdf7
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x220
mov eax, dword [ebp + 8]
push esi
and eax, 1
push edi
mov dword [esp + 0x1c], eax
je 0x40be1a
mov eax, dword [ebp + 0xc]
and dword [eax], 0
and dword [ebx], 0
mov edi, 0x1000
mov eax, edi
mov byte [esp + 0xb], 1
call fcn.00403db0
mov esi, eax
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x14], edi
push 0x401c44
mov dword [esi], 0x50
call dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
mov dword [esp + 0x18], eax
test eax, eax
je 0x40bf3e
cmp dword [esp + 0x1c], 0
je 0x40beb7
push dword [esi + 8]
call fcn.0040bc9d
mov ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x40bef1
call fcn.004044ae
mov ecx, dword [ebp + 0xc]
push dword [ecx]
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
add eax, dword [esp + 0x18]
call fcn.00403d7c
test eax, eax
je 0x40bf1c
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x14]
mov dword [ecx], eax
mov ecx, dword [ebx]
push edx
push dword [esp + 0x14]
add ecx, eax
push ecx
call fcn.00403e04
push dword [esp + 0x10]
add dword [ebx], edx
call fcn.00403dc8
jmp 0x40bef1
test byte [ebp + 8], 2
je 0x40bee8
push dword [esi + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push 0x401c54
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x20]
push eax
push 0
push dword [esi + 8]
call fcn.0040ee91
jmp 0x40bef1
push dword [esi + 4]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
push edi
mov dword [esp + 0x10], edi
push esi
mov dword [esi], 0x50
call fcn.00403e69
lea eax, [esp + 0xc]
push eax
push esi
push dword [esp + 0x20]
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
test eax, eax
jne 0x40be54
jmp 0x40bf34
push dword [esp + 0x10]
mov byte [esp + 0xf], 0
call fcn.00403dc8
mov eax, dword [ebp + 0xc]
push dword [eax]
call fcn.00403dc8
push dword [esp + 0x18]
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
push esi
call fcn.00403dc8
mov al, byte [esp + 0xb]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40c30f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
xor ebx, ebx
push ebx
push 0x1a
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40c366
push 0x401cf0
lea eax, [ebp - 0x20c]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp byte [ebp + 8], bl
je 0x40c35a
mov edx, 0x401d20
lea ecx, [ebp - 0x20c]
call fcn.004148fd
jmp 0x40c366
lea eax, [ebp - 0x20c]
push eax
call fcn.0040eee4
cmp byte [ebp + 8], bl
jne 0x40c375
push ebx
push 2
xor ebx, ebx
call fcn.0040bdf7
pop ebx
leave
ret 4
Function at 0x40c74d
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push edi
push 0
push 2
xor bl, bl
mov dword [ebp - 0x22c], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40c7cd
push esi
xor esi, esi
cmp dword [ebp - 0x224], esi
je 0x40c7bb
mov ecx, dword [0x422724]
movzx eax, si
movzx eax, word [eax*2 + 0x401738]
push dword [ecx + eax*4]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40c7b9
inc esi
cmp si, 2
jb 0x40c78b
jmp 0x40c7bb
mov bl, 1
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40c781
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, bl
pop ebx
leave
ret
Function at 0x40cef3
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [ebp + 0x10], esi
jbe 0x40cf2a
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40cf31
cmp dword [ebp - 4], 0
je 0x40cf2a
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 0x10]
jb 0x40ceff
mov eax, esi
pop esi
leave
ret 0xc
xor eax, eax
jmp 0x40cf2c
Function at 0x40d24d
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x61c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d277
xor al, al
jmp 0x40d401
push ebx
push ebx
lea eax, [esp + 0x18]
push eax
push 0x5f0
lea eax, [esp + 0x48]
push eax
push ebx
push ebx
push 0x4004747f
push esi
mov dword [esp + 0x34], ebx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0x10]
push 0x4c
xor edx, edx
pop ecx
div ecx
xor esi, esi
mov byte [esp + 0xf], 1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
cmp eax, ebx
jbe 0x40d3fa
lea edi, [esp + 0x3c]
test byte [edi - 4], 1
je 0x40d3d2
mov eax, edi
call fcn.00405b48
test al, al
jne 0x40d3d2
cmp byte [esp + 0xf], bl
je 0x40d38b
mov eax, dword [0x422728]
movzx ecx, byte [eax + 0x24]
movzx ebx, byte [eax + 0x26]
lea eax, [ecx + eax + 0x12c]
push eax
lea eax, [esp + 0x20]
call fcn.00413e5d
mov esi, eax
test esi, esi
je 0x40d384
push dword [esp + 0x1c]
call fcn.004040c9
xor esi, esi
mov dword [esp + 0x20], eax
test eax, eax
je 0x40d37b
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [0x422728]
movzx esi, word [eax + 0x28]
xor eax, eax
push eax
push 0x84043300
push eax
push eax
push dword [esp + 0x30]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
test eax, eax
jne 0x40d35a
xor esi, esi
jmp 0x40d367
push eax
push esi
lea esi, [esp + 0x1c]
call fcn.0040cf35
mov esi, eax
call ebx
push dword [esp + 0x20]
mov ecx, eax
mov eax, dword [ebp + 0xc]
sub ecx, dword [eax]
mov dword [eax], ecx
call fcn.00403dc8
push dword [esp + 0x1c]
call fcn.00403dc8
mov byte [esp + 0xf], 0
xor ebx, ebx
cmp esi, ebx
je 0x40d3fa
movzx eax, byte [edi + 7]
push eax
movzx eax, byte [edi + 6]
push eax
movzx eax, byte [edi + 5]
push eax
movzx eax, byte [edi + 4]
push eax
mov eax, dword [0x422724]
push dword [eax + 0x60]
lea eax, [esp + 0x38]
push 0x14
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x1c
push ebx
push ebx
push ebx
push esi
push dword [esp + 0x24]
mov edx, eax
lea ecx, [esp + 0x38]
call fcn.004136d1
test al, al
jne 0x40d3e9
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
add edi, 0x4c
cmp eax, dword [esp + 0x10]
jb 0x40d2cb
jmp 0x40d3ed
mov dword [esp + 0x10], ebx
cmp esi, ebx
je 0x40d3fa
push dword [esp + 0x14]
call fcn.00403dc8
cmp dword [esp + 0x10], ebx
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40dd3b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 8]
push eax
push 1
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40dd7d
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40dd74
mov bl, 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ebp
ret 0x18

Function at 0x40dd84
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp + 8]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40ddca
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40ddc1
mov bl, 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ebp
ret 0x18

Function at 0x40ddd1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push ebx
lea ecx, [ebp - 4]
push ecx
push ebx
push 2
push ebx
push ebx
push ebx
mov eax, 0x80000001
push 0x401dc8
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40de21
push dword [ebp + 0xc]
push dword [ebp + 8]
push 1
push ebx
push 0x401dbc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40de18
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret 8
Function at 0x40eee4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
lea eax, [ebp - 0x414]
push eax
push 0xf6
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0xf5
ja 0x40ef6d
lea eax, [ebp - 0x20c]
push eax
push ebx
push 0x401f3c
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x40ef6d
lea eax, [ebp - 0x20c]
push eax
call fcn.00404ea5
test al, al
je 0x40ef6d
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.0040723a
test al, al
je 0x40ef6d
push 0x401d2c
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.0040ee91
mov bl, al
lea eax, [ebp - 0x20c]
push eax
call fcn.00404ea5
mov al, bl
pop ebx
leave
ret 4
Function at 0x4102d4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004059f3
mov esi, 0x2710
push esi
push 4
pop ebx
push ebx
lea eax, [esp + 0x20]
push eax
call fcn.0040549f
cmp eax, ebx
jne 0x4104ac
push esi
push ebx
lea eax, [esp + 0x14]
push eax
call fcn.0040549f
cmp eax, ebx
jne 0x4104ac
mov eax, dword [esp + 0xc]
cmp eax, 0xffff
ja 0x4104ac
call fcn.00403db0
mov dword [esp + 0x14], eax
test eax, eax
je 0x4104ac
push esi
push dword [esp + 0x10]
push eax
call fcn.0040549f
cmp eax, dword [esp + 0xc]
jne 0x4104a3
cmp dword [esp + 0x18], 0xa
je 0x41038f
cmp dword [esp + 0x18], 0x14
jne 0x4104a3
cmp dword [esp + 0xc], ebx
jb 0x4104a3
push 0
push dword [esp + 0x10]
push dword [esp + 0x1c]
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, dword [esp + 0xc]
jne 0x4104a3
call fcn.004147d3
jmp 0x4104a3
push 0x401fd8
or eax, 0xffffffff
mov dword [esp + 0x20], 0x32
call fcn.0040403e
mov dword [esp + 0x10], eax
cmp dword [esp + 0xc], ebx
jb 0x4103d6
mov edx, dword [esp + 0x14]
push ebx
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00403e04
mov eax, dword [esp + 0xc]
cmp eax, ebx
jbe 0x4103d6
add edx, 4
add eax, 0xfffffffc
push edx
call fcn.004044a0
mov dword [esp + 0x10], eax
xor esi, esi
cmp dword [esp + 0x10], esi
je 0x4104a3
push esi
push dword [esp + 0x20]
push dword [esp + 0x18]
call fcn.0040fe48
mov edi, eax
mov dword [esp + 0x1c], edi
cmp edi, esi
je 0x41049a
mov eax, dword [edi]
push 1
lea ecx, [esp + 0x24]
push ecx
push edi
call dword [eax + 0x30]
test eax, eax
jne 0x410494
mov ebx, dword [sym.imp.WS2_32.dll_send]
push esi
push 8
lea eax, [esp + 0x30]
push eax
push dword [ebp + 8]
mov dword [esp + 0x3c], 0x1000
call ebx
mov eax, dword [esp + 0x2c]
call fcn.00403db0
mov esi, eax
test esi, esi
je 0x410494
jmp 0x410443
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
lea ecx, [esp + 0xc]
push ecx
push dword [esp + 0x30]
push esi
push edi
call dword [eax + 0xc]
test eax, eax
jne 0x41048e
cmp dword [esp + 0xc], eax
je 0x41048e
push eax
push dword [esp + 0x10]
push esi
push dword [ebp + 8]
call ebx
cmp eax, 0xffffffff
je 0x41048e
mov edi, dword [ebp + 8]
push 0x2710
push 4
push esi
call fcn.0040549f
cmp eax, 4
jne 0x41048a
mov eax, dword [esi]
cmp eax, dword [esp + 0x2c]
je 0x41043f
mov edi, dword [esp + 0x1c]
push esi
call fcn.00403dc8
mov eax, dword [edi]
push edi
call dword [eax + 8]
push dword [esp + 0x10]
call fcn.00403dc8
push dword [esp + 0x14]
call fcn.00403dc8
mov esi, dword [ebp + 8]
call fcn.004059dd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x410901
Capabilities:
Get local ipv4 addresses
Get socket information
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x401ff0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x410925
movzx eax, word [0x42271c]
jmp 0x41098c
push 0x401ff8
push dword [ebp + 8]
call esi
test eax, eax
jne 0x410976
mov eax, dword [0x4226ec]
cmp eax, 0xffffffff
jne 0x41094c
call fcn.0040f885
mov dword [0x4226ec], eax
cmp eax, 0xffffffff
je 0x410991
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push eax
mov dword [ebp + 8], 0x26
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x410991
mov eax, dword [ebp - 0x3a]
movzx cx, byte [ebp - 0x39]
shl eax, 8
or ax, cx
jmp 0x410989
mov eax, dword [ebp + 8]
call fcn.00404170
lea ecx, [eax - 1]
cmp ecx, 0xfffd
ja 0x410991
movzx eax, ax
test ax, ax
jne 0x410998
xor al, al
jmp 0x410b20
and dword [ebp - 4], 0
rol ax, 8
movzx eax, ax
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x410991
mov eax, dword [ebp + 0xc]
push ebx
jmp 0x4109cb
cmp dword [eax + 4], 2
je 0x4109ea
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x4109c2
mov ebx, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov edi, dword [ebp - 4]
test edi, edi
jne 0x4109fb
xor al, al
jmp 0x410b1e
mov ebx, dword [eax + 0x10]
push ebx
push dword [eax + 0x18]
call fcn.00403e1b
mov dword [ebp - 4], eax
jmp 0x4109d2
push ebx
mov byte [ebp + 0xb], 0
call fcn.00405591
mov esi, eax
mov dword [ebp + 0x10], esi
cmp esi, 0xffffffff
je 0x410b13
push esi
call fcn.004059f3
mov ecx, dword [0x422730]
test ecx, ecx
je 0x410a2a
call fcn.004044ae
jmp 0x410a2c
xor eax, eax
push ecx
push 1
push esi
mov esi, eax
call fcn.004106c8
test al, al
je 0x410b0b
mov byte [ebp + 0xb], 1
push 0
push 0x3e8
lea eax, [ebp + 0x10]
push eax
xor eax, eax
call fcn.004058d2
mov esi, eax
cmp esi, 0xffffffff
jne 0x410a6d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274c
jne 0x410b0b
push 0
push dword [0x422714]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x410b0b
cmp esi, 0xffffffff
je 0x410a43
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
call fcn.004105dd
test al, al
je 0x410b0b
cmp byte [ebp - 0x10], 2
mov edi, dword [ebp - 8]
jne 0x410b00
cmp word [ebp - 0x12], 4
jne 0x410b00
push 0x10
pop eax
call fcn.00403db0
mov esi, eax
test esi, esi
je 0x410b00
mov ax, word [ebp - 0xc]
push ebx
push dword [ebp - 4]
mov word [esi + 8], ax
mov dword [esi + 4], ebx
mov eax, dword [edi]
mov dword [esi + 0xc], eax
call fcn.00403e1b
mov dword [esi], eax
test eax, eax
je 0x410afa
inc dword [0x422710]
push esi
push 0x41085f
call fcn.004148d3
test eax, eax
ja 0x410b00
dec dword [0x422710]
push dword [esi]
call fcn.00403dc8
push esi
call fcn.00403dc8
push edi
call fcn.00403dc8
jmp 0x410a43
mov esi, dword [ebp + 0x10]
call fcn.004059dd
push dword [ebp - 4]
call fcn.00403dc8
mov al, byte [ebp + 0xb]
pop edi
pop ebx
pop esi
leave
ret 0xc