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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593e88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push edi
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x10]
push eax
push 3
push edi
push str.SOFTWAREStaffCopAdminProtect
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x4f04d5
push esi
mov esi, dword [ebp - 0x10]
push ebx
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
push edi
push str.SIZE
mov dword [ebp - 0x24], esi
mov ebx, 4
push esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x4f04cd
cmp dword [ebp - 0x18], ebx
je 0x4f04ed
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4f04f8
mov dword [ebp - 4], 0xffffffff
xor eax, eax
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], edi
jne 0x4f0528
cmp esi, edi
je 0x4f0504
push esi
call ebx
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 0xffffffff
cmp esi, edi
je 0x4f0515
push esi
call ebx
mov dword [ebp - 0x24], edi
pop ebx
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp esi, edi
je 0x4f0534
push esi
call ebx
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 0xffffffff
cmp esi, edi
je 0x4f0545
push esi
call ebx
mov dword [ebp - 0x24], edi
mov ecx, dword [ebp - 0xc]
pop ebx
pop esi
mov eax, 1
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4f0560
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593eb9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebx
push esi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x21f]
mov dword [ebp - 0x14], ebx
push ebx
push eax
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x220], bl
call fcn.00555020
push 0x103
lea ecx, [ebp - 0x11b]
push ebx
push ecx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x11c], bl
call fcn.00555020
add esp, 0x18
push ebx
push ebx
lea edx, [ebp - 0x18]
push edx
push ebx
lea eax, [ebp - 0x10]
push eax
push 0x104
lea ecx, [ebp - 0x220]
push ecx
push 0x59bf4c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x11c]
push str._8.8X
push eax
call fcn.0055a166
mov esi, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x11c]
push ecx
mov ecx, esi
call fcn.00443140
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], 1
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4f0e70
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4f106b
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4f106b
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4f106b
cmp dword [eax], 0
jl 0x4f106b
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0xc]
push eax
push ebx
call fcn.004f0dd0
mov ecx, dword [ebp + 0x14]
add esp, 8
cmp dword [ecx], eax
jge 0x4f0ec3
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x55555556
imul ebx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea edx, [ecx*4]
mov eax, 0x6bca1af3
imul edx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov eax, 0x13
mov dword [ebp + 8], 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
js 0x4f0fdb
mov edx, dword [ebp + 0x18]
and edx, 2
mov dword [ebp - 0xc], edx
cmp dword [ebp - 4], ebx
jne 0x4f0f30
mov edx, ebx
imul edx, edx, 0x4c
lea eax, [ecx*4]
sub eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 8], eax
test eax, eax
jle 0x4f0f9e
mov edx, eax
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
shl ecx, 8
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + 0x5a6820]
mov byte [esi], al
shl ecx, 6
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + 0x5a6820]
shl ecx, 6
mov byte [esi + 1], al
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + 0x5a6820]
shr ecx, 0x14
and ecx, 0x3f
mov byte [esi + 2], al
mov cl, byte [ecx + 0x5a6820]
mov byte [esi + 3], cl
add edi, 3
add esi, 4
dec edx
jne 0x4f0f36
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
cmp dword [ebp - 0xc], 0
mov edx, dword [ebp + 8]
lea edx, [edx + eax*4]
mov dword [ebp + 8], edx
jne 0x4f0fb9
mov word [esi], 0xa0d
add esi, 2
add dword [ebp + 8], 2
mov edx, dword [ebp - 4]
inc edx
mov dword [ebp - 4], edx
cmp edx, ebx
jle 0x4f0f11
cmp dword [ebp + 8], 0
je 0x4f0fdb
cmp dword [ebp - 0xc], 0
jne 0x4f0fdb
sub esi, 2
sub dword [ebp + 8], 2
lea eax, [ecx + ecx*2]
mov ecx, dword [ebp + 0xc]
sub ecx, eax
je 0x4f1057
lea edx, [ecx + 1]
test edx, edx
je 0x4f1057
xor eax, eax
test ecx, ecx
jle 0x4f0ff6
movzx eax, byte [edi]
inc edi
shl eax, 8
cmp ecx, 1
jle 0x4f1004
movzx ebx, byte [edi]
or eax, ebx
inc edi
shl eax, 8
cmp ecx, 2
jle 0x4f1011
movzx ecx, byte [edi]
or eax, ecx
shl eax, 8
test edx, edx
jle 0x4f1034
mov ecx, edx
lea ebx, [ebx]
mov edi, eax
shr edi, 0x1a
mov bl, byte [edi + 0x5a6820]
mov byte [esi], bl
inc esi
shl eax, 6
dec ecx
jne 0x4f1020
add dword [ebp + 8], edx
test byte [ebp + 0x18], 1
jne 0x4f1057
mov edi, 4
sub edi, edx
test edi, edi
jle 0x4f1054
push edi
push 0x3d
push esi
call fcn.00555020
add esp, 0xc
add dword [ebp + 8], edi
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
pop ebx
pop edi
mov dword [edx], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4f2f90
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b1e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00476c00
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
mov dword [esi], vtable.std::basic_filebuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [esi + 0x50], cl
mov byte [esi + 0x4a], cl
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea edx, [esi + 0x28]
mov dword [esi + 0x30], edx
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 edx, dword [ebp + 8]
mov dword [eax], ecx
mov dword [esi + 0x54], edx
mov eax, dword [0x5f8c50]
mov dword [esi + 0x4c], eax
mov dword [esi + 0x44], ecx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4f3ff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5953b8
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x4f414f
cmp byte [edi + 0x4a], bl
je 0x4f414f
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffff
call edx
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
jne 0x4f404e
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
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 0x4f4073
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
push esi
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x4f408c
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x10]
push ebx
push edx
mov edx, dword [esi + 0x18]
push eax
lea eax, [edi + 0x4c]
push eax
call edx
sub eax, 0
je 0x4f40d2
dec eax
je 0x4f40d6
sub eax, 2
je 0x4f412d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00405be0
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov byte [edi + 0x4a], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x4f40e6
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x10]
sub esi, ecx
je 0x4f410f
cmp ebx, 0x10
jae 0x4f40f5
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00557f51
add esp, 0x10
cmp esi, eax
jne 0x4f40b0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x4a], 0
je 0x4f412d
test esi, esi
jne 0x4f4080
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0047bb70
jmp 0x4f407a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00405be0
pop esi
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
mov al, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4f70d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5947c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi], vtable.CAgentListBase.0
mov dword [ebp - 0x10], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 4], ebx
push ebx
lea ecx, [esi + 0x28]
mov byte [esi + 0x24], bl
call fcn.004fbd90
mov byte [ebp - 4], 1
push ebx
lea ecx, [esi + 0x2c]
call fcn.004fbd90
mov byte [ebp - 4], 2
push str.E16BEF60_B9F4_4604_8624_735092A03F31
xor eax, eax
mov dword [esi + 0x30], ebx
push ebx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
push ebx
mov dword [esi + 0x1c], eax
push ebx
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4f9bb0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete bl
test esi, esi
je 0x4f9be5
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
pop ebp
ret

Function at 0x4f9e50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.004f9c20
test eax, eax
je 0x4f9e67
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
test eax, eax
je 0x4f9e60
lea edx, [esi + 0x10]
mov eax, edx
push edi
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4f9e80
sub eax, edi
sar eax, 1
je 0x4f9ea4
push edx
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x210], eax
push esi
push 0
push 0x4f9c80
call fcn.0055c326
add esp, 0xc
cmp eax, 1
jne 0x4f9ece
mov eax, dword [esi + 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, esi
mov dword [esi + 8], eax
call fcn.004f9c20
test eax, eax
jne 0x4f9ef1
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call edi
mov ecx, esi
call fcn.004f9c20
test eax, eax
je 0x4f9ee2
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4f9f00
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
call fcn.004f9c20
test eax, eax
jne 0x4f9f15
mov dword [esi + 8], 0xffffffff
pop esi
ret
mov eax, dword [esi + 0x210]
test eax, eax
je 0x4f9f26
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 8]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 0x210]
test eax, eax
je 0x4f9f58
push eax
call edi
push 0
mov ecx, esi
call fcn.004f9c50
pop edi
mov dword [esi + 8], 0xffffffff
mov eax, 1
pop esi
ret
Function at 0x4fd8f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
sub esp, 0x208
or edx, eax
jge 0x4fd91c
push 0x104
call fcn.00403ca0
push ebx
push esi
push edi
push 1
push 0x1a
lea ecx, [ebp - 0x208]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x208]
add edi, 0xfffffffe
jmp 0x4fd940
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4fd940
mov ebx, dword [0x59e4c4]
mov eax, 0x5a7140
mov dword [edi], ebx
mov edx, eax
jmp 0x4fd960
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4fd960
lea edi, [ebp - 0x208]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4fd976
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x208]
add edi, 0xfffffffe
jmp 0x4fd9a0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4fd9a0
mov eax, str.filters.xml
mov dword [edi], ebx
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4fd9b5
lea edi, [ebp - 0x208]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4fd9d0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4fd9d0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
lea eax, [ebp - 0x208]
pop esi
lea edx, [eax + 2]
pop ebx
jmp 0x4fda00
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4fda00
mov ecx, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x208]
push edx
call fcn.00405e50
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x4ff420
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5951bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edi, [esi + 0x10]
push eax
mov dword [ebp - 0x10], edi
call fcn.004021d0
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 3
push 0xfe
lea eax, [ebp - 0x113]
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.00555020
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
push 0xff
lea ecx, [ebp - 0x114]
push ecx
push 0x1001
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea edx, [ebp - 0x114]
push edx
push ebx
call fcn.00559ec8
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ff4e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4ffee0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push 0
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0
call esi
test eax, eax
jne 0x4fff2f
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push 0
lea ecx, [ebp - 4]
push ecx
mov edi, eax
call esi
test eax, eax
jne 0x4fff2e
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0x8003
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
push 0
test eax, eax
je 0x4fffcb
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4fff84
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 4]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
push 0
lea ecx, [ebp - 0xc]
push ecx
push edx
push 2
push eax
mov dword [ebp - 0xc], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x4fffbf
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [ebp - 4]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esp, ebp
pop ebp
ret
Function at 0x504210
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595770
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
xor edx, edx
xor eax, eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ecx + 0x35c]
jae 0x504294
mov dword [ebp - 4], edx
wait
mov esi, dword [ecx + eax*4 + 0x1cc]
xor esi, dword [ecx + eax*4 + 0x3c]
mov dword [ebp - 0x20], esi
jne 0x504268
mov dword [ebp - 0x1c], edx
push 0x5e07ac
lea eax, [ebp - 0x1c]
push eax
call fcn.00554cbc
wait
mov dword [ebp - 4], 0xffffffff
inc eax
jmp 0x504238
mov ecx, dword [ecx + 0x360]
cmp eax, ecx
jne 0x5042df
mov edx, ecx
mov dword [ebp - 0x18], edx
cmp eax, edx
je 0x5042db
movzx esi, dl
movzx ecx, al
sub ecx, esi
jne 0x5042d3
movzx edx, dh
movzx ecx, ah
sub ecx, edx
jne 0x5042d3
movzx eax, byte [ebp - 0x16]
movzx ecx, byte [ebp - 0x12]
sub ecx, eax
jne 0x5042d3
movzx edx, byte [ebp - 0x15]
movzx ecx, byte [ebp - 0x11]
sub ecx, edx
je 0x5042db
sar ecx, 0x1f
or ecx, 1
jne 0x5042df
push 0x1e
jmp 0x5042e1
push 0xa
call dword [ebp + 8]
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5046a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e08b0
push 0x554eb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x224], edi
push 0x204
push edi
lea eax, [ebp - 0x220]
push eax
call fcn.00555020
add esp, 0xc
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
push 0x104
lea ecx, [ebp - 0x224]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push 0x80
push 3
push edi
push 1
push bind
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x38], eax
cmp eax, 0xffffffff
je 0x5047f7
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x5047f7
push 4
push 0x1000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi], eax
cmp eax, edi
je 0x5047f7
push edi
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [esi + 4]
push edx
push eax
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esi + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [esi + 4]
jne 0x5047d6
mov ecx, esi
call fcn.00504500
test eax, eax
jne 0x5047a7
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.0055d415
add esp, 8
or eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.005045d0
test eax, eax
jne 0x5047d6
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call fcn.0055d415
add esp, 8
mov eax, 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call fcn.0055d415
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
call fcn.00504816
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x504880
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5957b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
xor eax, eax
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov byte [ebp - 4], 1
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov byte [ebp - 4], 2
push 0x190
mov dword [esi + 0x35c], eax
mov dword [esi + 0x360], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x38], eax
lea eax, [esi + 0x3c]
push 0xaaaaaaaa
push eax
call fcn.00555020
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x505080
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
mov dword [ebp + 0x1c], ecx
test ecx, ecx
je 0x505116
cmp word [ecx + 8], 2
push ebx
push edi
jne 0x5050e8
cmp word [ecx + 0xa], 4
jne 0x5050e8
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x5050e8
mov ebx, dword [ebp + 0x10]
mov edx, dword [eax]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ebx
push ecx
call fcn.00505010
mov dword [esi], eax
test eax, eax
je 0x50510a
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x5050c2
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x18]
push 0x400
push edx
push 0x401
push eax
call fcn.0055a944
add esp, 0x10
pop edi
pop ebx
xor eax, eax
pop esi
pop ebp
ret 0x18
pop edi
pop ebx
mov eax, 8
pop esi
pop ebp
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x505126.11001
jmp dword [eax*4 + 0x50514c]
mov eax, 0x2af9
pop esi
pop ebp
ret 0x18
mov eax, 0x2afa
pop esi
pop ebp
ret 0x18
mov eax, 0x2afb
pop esi
pop ebp
ret 0x18