joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b10
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x434f50]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402ba4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402b61
cmp dword [ebp + 0x10], ebx
jne 0x402b98
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402b10
test eax, eax
jne 0x402b73
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402b48
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.004060b0
cmp eax, ebx
je 0x402bab
push ebx
push dword [0x434f50]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ba4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x434f50], ebx
jne 0x402ba1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402ba1
jmp 0x402ba4
Function at 0x4054c8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x430200], 0x44
push eax
xor eax, eax
push 0x430200
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405503
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40558d
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.004059aa
mov edi, eax
cmp edi, 0xffffffff
je 0x4055ce
test byte [esp + 0x10], 1
push esi
je 0x4055b0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4055b6
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4055bf
xor eax, eax
inc eax
jmp 0x4055d0
test byte [esp + 0x10], 4
jne 0x4055ce
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4055d5
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.004058b6
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405614
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x434f28], eax
jmp 0x4057a7
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x40562e
test eax, eax
je 0x405755
test bl, 2
je 0x405755
mov esi, 0x42f200
push edi
push esi
call fcn.00405d46
cmp dword [ebp + 8], 0
je 0x40564d
push 0x40a500
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405653
push edi
call fcn.004057fa
cmp word [edi], 0
jne 0x405663
cmp word [0x42f200], 0x5c
jne 0x40566e
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40574a
lea eax, [ebp - 0x230]
push 0x3f
push eax
lea esi, [ebp - 0x230]
call fcn.004057db
xor ecx, ecx
cmp word [eax], cx
je 0x4056b5
cmp word [ebp - 0x28], cx
je 0x4056b5
lea esi, [ebp - 0x28]
cmp word [esi], 0x2e
jne 0x4056d0
mov ax, word [esi + 2]
cmp ax, cx
je 0x405729
cmp ax, 0x2e
jne 0x4056d0
cmp word [esi + 4], cx
je 0x405729
push esi
push ebx
call fcn.00405d46
test byte [ebp - 0x25c], 0x10
je 0x4056f5
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405729
push dword [ebp + 0xc]
push edi
call fcn.004055d5
jmp 0x405729
push dword [ebp - 4]
push edi
call fcn.0040558d
test eax, eax
jne 0x405721
cmp dword [ebp - 4], eax
je 0x405719
push edi
push 0xfffffffffffffff1
call fcn.00404ffa
push 0
push edi
call fcn.00405be0
jmp 0x405729
inc dword [0x434f28]
jmp 0x405729
push edi
push 0xfffffffffffffff2
call fcn.00404ffa
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405691
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405755
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4057a7
cmp dword [ebp - 0xc], esi
jne 0x405769
inc dword [0x434f28]
jmp 0x4057a7
push edi
call fcn.00406089
test eax, eax
je 0x4057a7
push edi
call fcn.004057ae
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.0040558d
test eax, eax
jne 0x40579f
cmp dword [ebp - 4], esi
je 0x405761
push edi
push 0xfffffffffffffff1
call fcn.00404ffa
push esi
push edi
call fcn.00405be0
jmp 0x4057a7
push edi
push 0xffffffffffffffe5
call fcn.00404ffa
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4058b6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa00
push esi
call fcn.00405d46
push esi
call fcn.00405859
mov edi, eax
test edi, edi
jne 0x4058d7
xor eax, eax
jmp 0x40592f
push edi
call fcn.00405fda
test byte [0x434eb8], 0x80
je 0x4058f4
mov ax, word [edi]
test ax, ax
je 0x4058d3
cmp ax, 0x5c
je 0x4058d3
sub edi, esi
sar edi, 1
jmp 0x40590e
call fcn.00406089
test eax, eax
je 0x405908
test byte [eax], 0x10
je 0x4058d3
push esi
call fcn.004057fa
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x4058fa
call fcn.004057ae
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4059aa
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4059c9
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x4059cf
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x4059fe
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a50c]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a510]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405a4e
test edi, edi
jne 0x405a0b
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405a48
Function at 0x405a52
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, 0x430898
push 0x40a530
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405aa1
push 1
push 0
push esi
call fcn.004059cf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x405bda
cmp eax, edi
jg 0x405bda
mov esi, 0x431098
push edi
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405bda
cmp eax, edi
jg 0x405bda
push esi
push ebx
push str._ls_ls_r_n
push 0x430498
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x434eb0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405d68
push 4
push 0xc0000000
push esi
call fcn.004059cf
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405bda
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405bd3
lea eax, [esp + 0x10]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405bd3
cmp edi, dword [esp + 0x10]
jne 0x405bd3
push str._Rename__r_n
push esi
call fcn.00405934
test eax, eax
jne 0x405b69
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405b9e
add eax, 0xa
push 0x40a514
push eax
call fcn.00405934
mov ebp, eax
test ebp, ebp
je 0x405b9a
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405b8b
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405b85
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x405ba0
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x430498
push eax
call fcn.0040598a
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x405c13
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov word [esi], di
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405c87
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x800
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405c74
cmp dword [ebp + 0x14], 1
je 0x405c77
cmp dword [ebp + 0x14], 2
je 0x405c77
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x7fe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x40615e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43189c], 0
push esi
jne 0x406195
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40616f
mov dword [ecx*4 + 0x431898], eax
inc ecx
cmp ecx, 0x100
jl 0x40616a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4061c6
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431898]
xor eax, esi
inc ecx
dec edx
jne 0x4061a8
pop edi
not eax
pop esi
ret 0xc
Function at 0x10001aff
Capabilities:
Check if file exists

Disassembly:
jmp 0x1015a4af
jmp fcn.10013534

Function at 0x10003364
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x101cee40
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0xa0
push 0xffffffffffffffff
push 0x1055c22c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x107b3de0]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 0xa8]
mov ebx, dword [ebp + 0xac]
mov dword [ebp - 0x18], edi
mov dword [edi], vtable.clmdep_asio::io_service::service.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [edi], vtable.clmdep_asio::detail::service_base_class_clmdep_asio::detail::win_iocp_io_service_.0
mov dword [ebp - 4], 1
mov dword [edi], vtable.clmdep_asio::detail::win_iocp_io_service.0
mov dword [edi + 0x14], 0
mov byte [ebp - 4], 2
lea eax, [ebp + 8]
push 0x94
push 0
push eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
call fcn.1001069a
add esp, 0xc
mov dword [ebp], 0x9c
mov dword [ebp + 4], 6
push 3
push 2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
neg eax
sbb eax, eax
and eax, 0xfffffe0b
add eax, 0x1f4
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], 0
mov byte [ebp - 4], 3
mov dword [edi + 0x30], 0
mov byte [ebp - 4], 4
lea ecx, [edi + 0x38]
mov dword [edi + 0x34], 0
call fcn.1001e06a
mov esi, eax
call fcn.1000f3c6
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], eax
test esi, esi
jne 0x101cefe1
mov byte [ebp - 4], 5
mov dword [edi + 0x50], esi
mov dword [edi + 0x54], esi
mov dword [edi + 0x58], esi
mov byte [ebp - 4], 6
or eax, 0xffffffff
cmp ebx, 0xffffffff
cmovb eax, ebx
push eax
push esi
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x101cefb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.1000f3c6
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], eax
test esi, esi
jne 0x101cefef
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.10010069
lea esp, [ebp + 0xa0]
pop ebp
ret 8
push str.mutex
lea eax, [ebp - 0x14]
push eax
call fcn.1000b523
push str.iocp
lea eax, [ebp - 0x14]
push eax
call fcn.1000b523
int3
Function at 0x100048f9
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x101db050
push ebx
push dword [0x107c43bc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 8]
test eax, eax
je 0x101db08f
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x101db08f
mov eax, dword [ecx]
test eax, eax
je 0x101db08f
mov dword [ecx], 0
mov dl, byte [eax]
movzx ecx, dl
cmp ecx, ebx
jb 0x101db086
mov byte [eax + ebx], dl
pop ebx
ret
push eax
call fcn.10007ebe
add esp, 4
lea eax, [ebx + 1]
push eax
call fcn.1000abe1
add esp, 4
movzx ecx, bl
xor edx, edx
cmp ebx, 0xff
cmova ecx, edx
mov byte [eax + ebx], cl
pop ebx
ret

Function at 0x1000520e
Capabilities:
Check if file exists

Disassembly:
jmp 0x10159d42
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x10159d61
push 0
push 0x5e
push str.E:2020poco_poco_1.10.1Foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.1000d404
add esp, 0x10
lea eax, [esi + 0x1c]
cmp dword [eax + 0x14], 8
jb 0x10159d6c
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10159d96
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x10159d9a
cmp eax, 3
jbe 0x10159d92
cmp eax, 0xf
je 0x10159d92
cmp eax, 0x15
jne 0x10159d9a
xor al, al
pop esi
ret
mov al, 1
pop esi
ret
lea eax, [esi + 4]
push eax
call fcn.1001fb1d
int3

Function at 0x10005470
Capabilities:
Set socket configuration

Disassembly:
jmp 0x101db350
push ebx
push ebp
mov ebp, dword [esp + 0xc]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x20]
cmp ebp, 0xffffffff
je 0x101db44b
cmp byte [esp + 0x1c], bl
mov ebx, dword [sym.imp.WS2_32.dll_WSASetLastError]
je 0x101db3ad
mov ecx, dword [esp + 0x18]
mov al, byte [ecx]
test al, 8
je 0x101db3ad
xor edx, edx
or al, 8
push edx
mov dword [esp + 0x18], edx
mov byte [ecx], al
call ebx
push 4
lea eax, [esp + 0x18]
push eax
push 0x80
push 0xffff
push ebp
call dword [sym.imp.WS2_32.dll_setsockopt]
call fcn.1000f3c6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0
call ebx
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.1000f3c6
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
je 0x101db44b
call fcn.1000f3c6
mov ecx, eax
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
cmp eax, dword [ecx + 4]
jne 0x101db3ea
cmp dword [edi], 0x2733
je 0x101db404
call fcn.1000f3c6
mov ecx, eax
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
cmp eax, dword [ecx + 4]
jne 0x101db459
cmp dword [edi], 0x4d5
jne 0x101db459
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0x8004667e
push ebp
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [esp + 0x18]
push 0
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.1000f3c6
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
jne 0x101db459
call fcn.10014727
mov dword [edi], 0
mov dword [edi + 4], eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x100062df
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x1015a5a5
jmp 0x1015a5aa
jmp 0x10023772
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x1015a5cc
push 0
push 0xaa
push str.E:2020poco_poco_1.10.1Foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.1000d404
add esp, 0x10
lea eax, [esi + 0x1c]
cmp dword [eax + 0x14], 8
jb 0x1015a5d7
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1015a5f2
and eax, 0x410
cmp eax, 0x400
pop esi
sete al
ret
lea eax, [esi + 4]
push eax
call fcn.1001fb1d
int3
Function at 0x100082c4
Capabilities:
Connect socket

Disassembly:
jmp 0x101db850
push esi
mov esi, dword [esp + 8]
cmp esi, 0xffffffff
jne 0x101db870
call fcn.1000f3c6
mov ecx, dword [esp + 0x14]
mov dword [ecx + 4], eax
or eax, esi
mov dword [ecx], 0x2719
pop esi
ret
push ebx
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [esp + 0x18]
push dword [esp + 0x18]
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
call fcn.1000f3c6
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [esp + 0x1c]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
jne 0x101db8af
call fcn.10014727
mov dword [edi], ebx
mov dword [edi + 4], eax
pop edi
mov eax, ebx
pop ebx
pop esi
ret

Function at 0x10008300
Capabilities:
Hash data using sha224

Disassembly:
jmp 0x1031b0d0
mov eax, dword [esp + 4]
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0x30
mov eax, 1
ret

Function at 0x10009949
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x102c4d80
push 0
push 0x107c7e8c
call fcn.100109d8
add esp, 8
test eax, eax
je 0x102c4db3
push 0
push 0x107c7e90
call fcn.100109d8
add esp, 8
test eax, eax
jne 0x102c4db6
push 0x107c7e8c
call fcn.10005515
add esp, 4
xor eax, eax
ret
mov eax, 1
ret

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

Disassembly:
jmp 0x101e1d50
sub esp, 0x10
push esi
mov esi, dword [ecx + 4]
lea eax, [esp + 7]
push 0
mov byte [esp + 0xb], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 1
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 1
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.WS2_32.dll_WSASend]
call fcn.1000f3c6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop esi
cmp eax, 0x40
je 0x101e1dad
cmp eax, 0x4d2
jne 0x101e1db2
call fcn.1000f3c6
add esp, 0x10
ret
Function at 0x1000bc3a
Capabilities:
Encode data using xor

Disassembly:
jmp 0x10276340
mov eax, 0xc
call fcn.10007996
mov eax, dword [esp + 0x10]
push esi
test byte [eax + 0x10], 4
mov ecx, dword [eax + 4]
lea esi, [ecx - 1]
je 0x102763e9
mov ecx, dword [eax + 8]
xor edx, edx
push ebp
xor ebp, ebp
mov dword [esp + 8], 0
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
test ecx, ecx
jle 0x102763d1
mov ecx, dword [eax]
push ebx
mov dword [esp + 0x10], ecx
push edi
push dword [ecx]
mov eax, ebp
xor eax, esi
lea ebx, [eax - 1]
not eax
shr ebx, 0x1f
shr eax, 0x1f
and ebx, eax
neg ebx
mov edi, ebx
or edi, dword [esp + 0x14]
call fcn.1000dd7d
mov ecx, dword [esp + 0x18]
mov edx, edi
not edx
mov dword [esp + 0x14], edi
and edx, 0x20
and eax, ebx
add edx, dword [esp + 0x24]
inc ebp
add edx, eax
add ecx, 4
add esp, 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ecx
cmp ebp, dword [esp + 0x18]
jl 0x10276383
pop edi
pop ebx
not esi
pop ebp
lea eax, [esi - 1]
not esi
shr eax, 0x1f
shr esi, 0x1f
and eax, esi
dec eax
and eax, edx
pop esi
add esp, 0xc
ret
test ecx, ecx
jne 0x102763f4
xor eax, eax
pop esi
add esp, 0xc
ret
mov eax, dword [eax]
push dword [eax + esi*4]
call fcn.1000dd7d
add esp, 4
shl esi, 5
add eax, esi
pop esi
add esp, 0xc
ret

Function at 0x1000bf55
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x10159d3d
jmp fcn.1000520e

Function at 0x1000c365
Capabilities:
Get geographical location

Disassembly:
jmp 0x100c3dc0
sub esp, 0x74
movups xmm0, xmmword [ecx]
lea eax, [esp + 4]
mov dword [esp], eax
lea ecx, [esp]
push esi
lea eax, [esp + 0x18]
push eax
movups xmmword [esp + 0xc], xmm0
call sym.WsidClient.dll_public:_struct_clmdep_msgpack::v2::object___thiscall_clmdep_msgpack::v1::object::implicit_type::operator_struct_clmdep_msgpack::v2::object_struct_clmdep_msgpack::v2::object__void_
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x2c], str.login_type
mov dword [esp + 0x34], str.nickname
mov dword [esp + 0x3c], str.mobile
lea eax, [esi + 0xd8]
mov dword [esp + 0x44], str.avatar_md5
mov dword [esp + 0x28], eax
lea ecx, [esi + 0x18]
lea eax, [esi + 0xc0]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x28]
lea eax, [esi + 0xa8]
mov dword [esp + 0x4c], str.country
mov dword [esp + 0x38], eax
lea eax, [esi + 0x90]
mov dword [esp + 0x40], eax
lea eax, [esi + 0x78]
mov dword [esp + 0x48], eax
lea eax, [esi + 0x60]
mov dword [esp + 0x50], eax
lea eax, [esi + 0x48]
mov dword [esp + 0x58], eax
lea eax, [esi + 0x30]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x58], str.lastname
mov dword [esp + 0x60], str.firstname
mov dword [esp + 0x68], str.avatar
mov dword [esp + 0x70], str.email
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], 0x1058db18
call sym.WsidClient.dll__msgpack_unpack___define_map___BY03__CBDV__basic_string_DU__char_traits_D_std__V__allocator_D_2__std____BY05__C
mov eax, esi
pop esi
add esp, 0x74
ret 4
Function at 0x1000c8d3
Capabilities:
Hash data using sha256

Disassembly:
jmp 0x1031bc30
mov eax, dword [esp + 4]
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0x40
mov eax, 1
ret