joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4019e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e238
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5ba6c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
call fcn.0042e490
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401a32
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
mov ecx, dword [0x5bc068]
push ecx
lea edx, [ebp - 0x10]
push str.SoftwareMicrosoft_s
push edx
call fcn.004019c0
mov edi, dword [ebp - 0x10]
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push edi
push SysReAllocStringLen
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x401a93
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], ebx
lea edx, [ebp - 0x1c]
push edx
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
push ebx
push edx
push esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x14], 4
jne 0x401afe
cmp eax, ebx
jne 0x401afe
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], bl
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401ae4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x401af9
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x1c]
jmp 0x401b35
mov byte [ebp - 4], bl
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401b1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x401b32
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401b50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e298
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5ba6c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
call fcn.0042e490
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401ba2
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
call fcn.0042e490
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401bcf
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 4
mov ecx, dword [0x5bc068]
push ecx
lea edx, [ebp - 0x10]
push str.SoftwareMicrosoft_s
push edx
call fcn.004019c0
mov edx, dword [ebp - 0x10]
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push edx
push SysReAllocStringLen
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x401c2d
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], ebx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push 4
lea ecx, [ebp - 0x14]
push ecx
push 4
push ebx
push edx
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov byte [ebp - 4], 2
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401c67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401c89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
cmp edi, ebx
je 0x401c9e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401cc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e308
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5ba6c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 1
call fcn.0042e490
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401d14
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
call fcn.0042e490
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401d41
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 5
mov ecx, dword [0x5bc068]
push ecx
lea edx, [ebp - 0x10]
push str.SoftwareMicrosoft_s
push edx
call fcn.004019c0
mov edx, dword [ebp - 0x10]
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push edx
push SysReAllocStringLen
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x401d9f
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
cmp eax, ebx
setne cl
mov esi, eax
cmp ecx, ebx
jne 0x401db9
push 0x80004005
call fcn.00401000
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 8]
inc eax
push eax
push esi
mov esi, dword [ebp - 0x28]
push 1
push ebx
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov byte [ebp - 4], 3
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401df4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401e17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x401e28
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401e51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402440
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40249e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x40248e
cmp eax, 0x5000
jbe 0x402497
push esi
lea edi, [ecx + 1]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret
cmp eax, ecx
jb 0x402497
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x404990
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54ea40
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x5ba6c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x1d4], esi
mov dword [ebp - 0x1cc], ebx
call fcn.0042e490
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4049e9
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x1d0], edi
mov dword [ebp - 4], 2
push 0x27
lea ecx, [ebp - 0x37]
push ebx
push ecx
mov byte [ebp - 0x38], bl
call fcn.0052f600
add esp, 0xc
lea edx, [ebp - 0x1c8]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x28
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x404a5a
add edi, 0xfffffff0
push edi
call fcn.00401350
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x1cc], 1
jmp 0x404b0b
push 0x564f04
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x404a8e
add edi, 0xfffffff0
push edi
call fcn.00401350
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x1cc], 1
jmp 0x404b0b
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
jne 0x404abd
add edi, 0xfffffff0
push edi
call fcn.00401350
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x1cc], 1
jmp 0x404b0b
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x1d0]
push 0x56507c
push eax
call fcn.004019c0
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov edi, dword [ebp - 0x1d0]
add edi, 0xfffffff0
push edi
call fcn.00401350
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x1cc], 1
mov dword [ebp - 4], ebx
or edx, 0xffffffff
lea ecx, [edi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404b27
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052f5f0
mov esp, ebp
pop ebp
ret
Function at 0x404fd0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54eae7
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x5ba6c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
call fcn.0042e490
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40501b
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x298], ebx
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
js 0x405059
push 0x565058
push eax
call fcn.00530b86
add esp, 8
test eax, eax
je 0x405059
sub eax, dword [edi]
mov dword [ebp - 0x294], eax
jmp 0x405063
mov dword [ebp - 0x294], 0xffffffff
mov ecx, dword [ebp - 0x294]
push ecx
lea edx, [ebp - 0x2a0]
push edx
mov ecx, edi
call fcn.00403bd0
mov byte [ebp - 4], 2
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x4050e3
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4050cd
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4050cd
push eax
call fcn.00401350
mov dword [ebp - 0x29c], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4050bc
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ebx, dword [ebp - 0x29c]
add ebx, 0x10
mov dword [ebp - 0x298], ebx
jmp 0x4050e3
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x298]
call fcn.004017f0
mov ebx, dword [ebp - 0x298]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2a0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405109
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x290]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x405127
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x40512e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x294]
inc eax
mov ecx, dword [edi]
mov edx, dword [ecx - 0xc]
js 0x405162
cmp eax, edx
jg 0x405162
add ecx, eax
push 0x565058
push ecx
call fcn.00530b86
add esp, 8
test eax, eax
je 0x405162
sub eax, dword [edi]
mov dword [ebp - 0x294], eax
jns 0x405063
mov eax, dword [edi]
lea edx, [ebp - 0x150]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x405184
mov edi, dword [edi]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x40518b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4051ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052f5f0
mov esp, ebp
pop ebp
ret
Function at 0x405ac0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54ecbb
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x5ba6c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x434], ecx
mov esi, dword [ebp + 0x10]
call fcn.00401450
xor eax, eax
mov dword [ebp - 0x41c], eax
mov dword [ebp - 4], eax
push eax
push eax
push eax
push eax
push 0x564f04
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
je 0x405c47
push esi
lea ecx, [ebp - 0x420]
call fcn.00401f50
mov byte [ebp - 4], 1
mov dword [ebp - 0x430], 8
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebp - 0x428]
push ecx
push 0x3b
push ebx
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
cmp dword [ebp - 0x424], 0
je 0x405b89
mov dword [ebp - 0x428], 1
mov dword [ebp - 0x424], 0
push 8
lea edx, [ebp - 0x428]
push edx
push 0x3b
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov edx, dword [ebp - 0x420]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405b94
sub eax, esi
push 0
push 0x84000001
push eax
push edx
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
je 0x405c31
mov byte [ebp - 0x418], 0
push 0x400
push 0
lea eax, [ebp - 0x417]
push eax
call fcn.0052f600
add esp, 0xc
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x405be0
lea ecx, [ebp - 0x42c]
push ecx
push 0x400
lea edx, [ebp - 0x418]
push edx
push esi
call edi
mov ecx, dword [ebp - 0x42c]
test ecx, ecx
je 0x405c20
test eax, eax
je 0x405c20
mov byte [ebp + ecx - 0x418], 0
lea eax, [ebp - 0x418]
push eax
mov ecx, dword [ebp - 0x434]
call fcn.00405530
jmp 0x405be0
mov dword [ebp - 0x41c], 1
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x420]
call fcn.00401690
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052f5f0
mov esp, ebp
pop ebp
ret
Function at 0x4066a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 1
push ebx
push esi
push edi
mov ebx, ecx
jge 0x4066d2
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0xc]
mov dword [ebp + 0xc], 0x564f04
call fcn.00530e71
push 0x59d954
lea ecx, [ebp - 0xc]
push ecx
call fcn.0053111d
xor eax, eax
lea ecx, [ebx + 1]
mov byte [ecx + eax], al
inc eax
cmp eax, 0x100
jl 0x4066d7
mov esi, dword [ebp + 8]
mov word [ebx + 0x201], 0
mov edi, 0x100
jmp 0x406700
movzx edx, byte [ebx + 0x201]
mov dword [ebx + 0x204], ecx
mov al, byte [edx + esi]
add al, byte [ecx]
inc ecx
add byte [ebx + 0x202], al
movzx edx, byte [ebx + 0x202]
lea eax, [edx + ebx + 1]
mov dword [ebx + 0x208], eax
movzx edx, byte [ecx - 1]
mov byte [ebx + 0x20c], dl
movzx edx, byte [eax]
mov byte [ecx - 1], dl
movzx edx, byte [ebx + 0x20c]
mov eax, dword [ebx + 0x208]
mov byte [eax], dl
movzx eax, byte [ebx + 0x201]
inc eax
cdq
idiv dword [ebp + 0xc]
dec edi
mov byte [ebx + 0x201], dl
jne 0x406700
lea edi, [ebx + 0x101]
lea esi, [ebx + 1]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov word [ebx + 0x201], 0
mov byte [ebx], 1
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x407d50
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f383
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5ba6c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0054dcad
mov dword [ebp - 4], 0
push 4
call fcn.0042d694
mov edi, eax
add esp, 4
test edi, edi
je 0x407dd8
call fcn.0054d9a4
mov dword [edi], eax
call fcn.0054d763
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0054d698
mov byte [ebp - 4], 1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x407dca
inc eax
mov dword [ebx + 4], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0054d6c0
jmp 0x407dda
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4082a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f408
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5ba6c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00407d50
xor ecx, ecx
mov dword [ebp - 4], ecx
lea edx, [esi + 0x18]
mov dword [esi + 0x20], edx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea edx, [esi + 0x28]
mov dword [esi + 0x30], edx
mov dword [esi], vtable.std::strstreambuf.0
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x3c], 0x20
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], ecx
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x48], 4
cmp dword [ebp + 0xc], ecx
jl 0x408344
mov eax, dword [ebp + 8]
jg 0x408341
cmp eax, 0x20
jbe 0x408344
mov dword [esi + 0x3c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x409490
Capabilities:
Hash data using sha256

Disassembly:
mov eax, ecx
xor ecx, ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
ret

Function at 0x4094e0
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov dword [ecx], 0x6a09e667
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
mov byte [ecx + 0x68], al
ret
Function at 0x40cb50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f918
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5ba6c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x40cc7d
cmp byte [edi + 0x49], bl
je 0x40cc7d
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x40cc0f
mov ecx, 0xf
mov dword [ebp - 0x18], ecx
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x40cbc4
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x40cbdc
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40cc13
dec eax
je 0x40cc17
sub eax, 2
je 0x40cc6e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403d90
xor al, al
jmp 0x40cc7f
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x40cc27
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x40cc50
cmp ebx, 0x10
jae 0x40cc36
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0052f8b2
add esp, 0x10
cmp esi, eax
jne 0x40cc00
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x40cc6e
test esi, esi
jne 0x40cbd0
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004042e0
jmp 0x40cbca
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403d90
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052f5f0
mov esp, ebp
pop ebp
ret