joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4caff0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp], ecx
mov ebx, edx
mov edi, eax
lea edx, [esp + 4]
mov eax, ebx
mov ecx, 4
call fcn.00402c38
lea edx, [esp + 8]
mov esi, ebx
mov eax, esi
add eax, 4
mov ecx, 4
call fcn.00402c38
lea edx, [esp + 0xc]
mov eax, esi
add eax, 8
mov ecx, 4
call fcn.00402c38
lea edx, [esp + 0x10]
mov eax, esi
add eax, 0xc
mov ecx, 4
call fcn.00402c38
mov eax, dword [edi + 0x20]
add dword [esp + 8], eax
mov eax, dword [edi + 0x24]
add dword [esp + 0x10], eax
mov esi, 1
mov eax, dword [esp + 8]
add eax, eax
inc eax
imul dword [esp + 8]
mov edx, 5
call fcn.004cadcc
mov ebx, eax
mov eax, dword [esp + 0x10]
add eax, eax
inc eax
imul dword [esp + 0x10]
mov edx, 5
call fcn.004cadcc
mov ebp, eax
mov eax, dword [esp + 4]
xor eax, ebx
mov edx, ebp
call fcn.004cadcc
mov edx, esi
add edx, edx
add eax, dword [edi + edx*4 + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc]
xor eax, ebp
mov edx, ebx
call fcn.004cadcc
mov edx, esi
add edx, edx
add eax, dword [edi + edx*4 + 0x24]
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 4]
mov eax, dword [esp + 8]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
inc esi
cmp esi, 0x15
jne 0x4cb05c
mov eax, dword [edi + 0xc8]
add dword [esp + 4], eax
mov eax, dword [edi + 0xcc]
add dword [esp + 0xc], eax
mov edx, dword [esp]
lea eax, [esp + 4]
mov ecx, 4
call fcn.00402c38
mov ebx, dword [esp]
mov edx, ebx
add edx, 4
lea eax, [esp + 8]
mov ecx, 4
call fcn.00402c38
mov edx, ebx
add edx, 8
lea eax, [esp + 0xc]
mov ecx, 4
call fcn.00402c38
mov edx, ebx
add edx, 0xc
lea eax, [esp + 0x10]
mov ecx, 4
call fcn.00402c38
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4cb150
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp], ecx
mov ebx, edx
mov edi, eax
lea edx, [esp + 4]
mov eax, ebx
mov ecx, 4
call fcn.00402c38
lea edx, [esp + 8]
mov esi, ebx
mov eax, esi
add eax, 4
mov ecx, 4
call fcn.00402c38
lea edx, [esp + 0xc]
mov eax, esi
add eax, 8
mov ecx, 4
call fcn.00402c38
lea edx, [esp + 0x10]
mov eax, esi
add eax, 0xc
mov ecx, 4
call fcn.00402c38
mov eax, dword [edi + 0xcc]
sub dword [esp + 0xc], eax
mov eax, dword [edi + 0xc8]
sub dword [esp + 4], eax
mov esi, 0x14
mov ebx, dword [esp + 4]
mov eax, dword [esp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov eax, dword [esp + 0x10]
add eax, eax
inc eax
imul dword [esp + 0x10]
mov edx, 5
call fcn.004cadcc
mov ebp, eax
mov eax, dword [esp + 8]
add eax, eax
inc eax
imul dword [esp + 8]
mov edx, 5
call fcn.004cadcc
mov ebx, eax
mov eax, esi
add eax, eax
push dword [edi + eax*4 + 0x24]
mov eax, dword [esp + 0x10]
pop edx
sub eax, edx
mov edx, ebx
call fcn.004cade0
xor eax, ebp
mov dword [esp + 0xc], eax
mov eax, esi
add eax, eax
push dword [edi + eax*4 + 0x20]
mov eax, dword [esp + 8]
pop edx
sub eax, edx
mov edx, ebp
call fcn.004cade0
xor ebx, eax
mov dword [esp + 4], ebx
dec esi
test esi, esi
jne 0x4cb1c2
mov eax, dword [edi + 0x24]
sub dword [esp + 0x10], eax
mov eax, dword [edi + 0x20]
sub dword [esp + 8], eax
mov edx, dword [esp]
lea eax, [esp + 4]
mov ecx, 4
call fcn.00402c38
mov ebx, dword [esp]
mov edx, ebx
add edx, 4
lea eax, [esp + 8]
mov ecx, 4
call fcn.00402c38
mov edx, ebx
add edx, 8
lea eax, [esp + 0xc]
mov ecx, 4
call fcn.00402c38
mov edx, ebx
add edx, 0xc
lea eax, [esp + 0x10]
mov ecx, 4
call fcn.00402c38
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4cb318
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004049dc
xor eax, eax
push ebp
push 0x4cb449
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040452c
cmp dword [ebp - 4], 0
je 0x4cb433
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.004049ec
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4cb433
mov eax, dword [ebp - 8]
call fcn.004029d4
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4cb42c
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push esi
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4cb458
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
mov eax, dword [ebp - 0x14]
mov esi, dword [eax + 8]
shr esi, 0x10
mov dx, word [eax + 8]
and dx, 0xffff
mov word [ebp - 0x1a], dx
mov edx, dword [eax + 0xc]
shr edx, 0x10
mov word [ebp - 0x1c], dx
mov di, word [eax + 0xc]
and di, 0xffff
push ebx
movzx eax, si
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
movzx eax, word [ebp - 0x1a]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
movzx eax, word [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
movzx eax, di
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x3c]
mov ecx, 3
mov eax, 0x4cb464
call fcn.0040c4d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cb433
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.004029f4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cb450
lea eax, [ebp - 4]
call fcn.0040452c
ret
Function at 0x4cb470
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4cb600
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.0040452c
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
call fcn.004045c4
mov dword [ebp - 0x24], 0xff
mov eax, dword [ebp - 4]
call fcn.004047ec
test eax, eax
jle 0x4cb5e5
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
call fcn.004049ec
mov ebx, eax
push ebx
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jbe 0x4cb5c3
mov eax, dword [ebp - 0x1c]
call fcn.004029d4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4cb5bc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
push ebx
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4cb5a3
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x4cb60c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4cb57a
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.00407654
movzx eax, ax
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea edx, [ebp - 0x44]
mov ecx, 2
mov eax, 0x4cb630
call fcn.0040c4d8
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
call fcn.004045c4
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x28]
call fcn.004049ec
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4cb5a3
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call fcn.0040bfc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cb5c3
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
call fcn.004029f4
ret
mov eax, dword [ebp - 8]
mov edx, 0x4cb658
call fcn.00404938
jne 0x4cb5e5
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x4cb5e5
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004cb318
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cb607
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00404550
ret
Function at 0x4ccd0c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.004049dc
mov eax, dword [ebp - 8]
call fcn.004049dc
xor eax, eax
push ebp
push 0x4cce95
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040452c
mov dword [ebp - 0x1c], 0xff
mov eax, dword [ebp - 4]
call fcn.004047ec
test eax, eax
jle 0x4cce72
lea eax, [ebp - 4]
mov edx, 0x4cceac
call fcn.004047f4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
call fcn.00404a44
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x4cce72
mov eax, dword [ebp - 0x14]
call fcn.004029d4
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4cce6b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 4]
call fcn.00404a44
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4cce52
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x4cceb0
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4cce2a
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
movzx eax, word [eax]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
call fcn.00407654
movzx eax, ax
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
lea edx, [ebp - 0x3c]
mov ecx, 2
mov eax, 0x4cced4
call fcn.0040c4d8
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 8]
call fcn.004045c4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
call fcn.00404a44
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4cce52
mov edx, ebx
mov eax, dword [ebp - 0x10]
call fcn.0040bfc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cce72
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.004029f4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cce9c
lea eax, [ebp - 0x24]
call fcn.0040452c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404550
ret

Function at 0x4d1d44
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea0
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4d1dc3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x101
push 0x160
lea eax, [ebp - 0x160]
push eax
push 0
mov eax, ebx
call fcn.004049ec
push eax
call sub.shell32.dll_SHGetFileInfoA
mov ebx, dword [ebp - 0x160]
test ebx, ebx
jne 0x4d1da5
push 0x8040
push 0x40
push 0x40
push 1
push 0x7f05
push 0
call sub.user32.dll_LoadImageA
mov ebx, eax
mov eax, dword [esi + 0x39c]
call fcn.00473a8c
mov edx, ebx
call fcn.00430424
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d1dd0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d2590
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004049dc
xor eax, eax
push ebp
push 0x4d26f0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x111]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
test eax, eax
je 0x4d2600
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x111]
mov ecx, 0x105
call fcn.0040479c
lea eax, [ebp - 0xc]
mov edx, 0x4d2708
call fcn.004047f4
jmp 0x4d2674
lea eax, [ebp - 8]
push eax
push 5
mov eax, dword [0x4d5958]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x111]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x4d264c
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x111]
mov ecx, 0x105
call fcn.0040479c
lea eax, [ebp - 0xc]
mov edx, 0x4d271c
call fcn.004047f4
jmp 0x4d2674
lea edx, [ebp - 0x118]
xor eax, eax
call fcn.00402d64
mov eax, dword [ebp - 0x118]
lea edx, [ebp - 0xc]
call fcn.0040bbdc
lea eax, [ebp - 0xc]
mov edx, 0x4d271c
call fcn.004047f4
push 0x4d2728
mov eax, dword [ebp - 0xc]
call fcn.004049ec
mov edx, eax
lea eax, [ebp - 0x11c]
call fcn.00404724
mov eax, dword [ebp - 0x11c]
push eax
mov eax, dword [ebp - 4]
call fcn.004049ec
mov edx, eax
mov ecx, 0x4d2734
mov eax, ebx
call fcn.004d2740
test al, al
je 0x4d26bb
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.00404580
jmp 0x4d26c2
mov eax, esi
call fcn.0040452c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d26f7
lea eax, [ebp - 0x11c]
mov edx, 2
call fcn.00404550
lea eax, [ebp - 0xc]
call fcn.0040452c
lea eax, [ebp - 4]
call fcn.0040452c
ret
Function at 0x10004790
Capabilities:
Acquire credentials from windows credential manager

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [ebp - 0x1c], edx
lea edx, [ebp - 0x10]
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x20], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CredEnumerateW]
sub esp, 0x10
test eax, eax
je 0x10004881
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10004870
xor ebx, ebx
jmp 0x10004814
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0
je 0x10004895
mov eax, dword [edx + 0x30]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
je 0x10004890
inc ebx
cmp dword [ebp - 0x14], ebx
jbe 0x10004870
mov eax, dword [ebp - 0x18]
lea edi, [ebx*4]
lea esi, [eax + edi]
mov edx, dword [esi]
mov eax, dword [edx + 4]
lea ecx, [eax - 1]
cmp ecx, 1
jbe 0x100047e0
test byte [0x10006018], 1
je 0x1000480e
mov dword [esp + 0x10], eax
inc ebx
mov dword [esp + 0xc], str.no_support_for_type__lu_credentials_n
mov dword [esp + 8], str.find_existing_credential
mov dword [esp + 4], 0x10006018
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], ebx
ja 0x10004814
lea esi, cs:[esi]
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CredFree]
xor eax, eax
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esi, [eax + edi]
mov edx, dword [esi]
mov ecx, dword [edx + 0x30]
movzx eax, word [ecx]
mov word [ebp - 0x22], ax
test ax, ax
je 0x10004950
mov eax, ecx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x100048b0
sub eax, ecx
sar eax, 1
cmp dword [ebp - 0x20], eax
jbe 0x1000480e
mov eax, dword [edx + 0x18]
shr eax, 1
cmp eax, dword [ebp + 0xc]
jae 0x1000480e
test byte [0x10006018], 8
jne 0x10004957
movzx edx, word [ebp - 0x22]
mov eax, dword [ebp - 0x1c]
jmp 0x100048f3
movzx edx, word [ecx]
add eax, 2
add ecx, 2
mov word [eax - 2], dx
test dx, dx
jne 0x100048f0
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._memcpy
mov eax, dword [esi]
mov edi, dword [ebp + 8]
xor edx, edx
mov eax, dword [eax + 0x18]
and eax, 0xfffffffe
mov word [edi + eax], dx
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CredFree]
mov eax, 1
sub esp, 4
jmp 0x10004881
xor eax, eax
jmp 0x100048bd
mov eax, ecx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.found_existing_credential_for__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.find_existing_credential
mov dword [esp + 4], 0x10006018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp - 0x10]
lea esi, [eax + edi]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x30]
mov eax, dword [ebp - 0x1c]
movzx edx, word [ecx]
jmp 0x100048f3
Function at 0x10004a00
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadResource]
mov ebx, eax
mov eax, dword [ebp + 8]
sub esp, 8
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
sub esp, 8
test ebx, ebx
je 0x10004b90
mov edi, dword [esi]
test edi, edi
je 0x10004b78
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 0x14], 0
mov dword [ebp - 0x1c], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
lea ecx, [eax + 1]
sub esp, 0x18
lea eax, [ecx + ecx]
mov dword [ebp - 0x18], ecx
mov ecx, eax
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov dword [ebp - 0x14], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x10004b9c
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
xor edx, edx
sub esp, 0x18
mov word [edi + eax - 2], dx
mov eax, dword [esi]
test ecx, ecx
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
jne 0x10004b68
call dword [edx + 0x28]
mov dword [esi + 8], eax
sub esp, 8
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 8]
sub esp, 0xc
lea esp, [ebp - 0xc]
not eax
pop ebx
pop esi
shr eax, 0x1f
pop edi
pop ebp
ret 0x10
call dword [edx + 0x24]
mov dword [esi + 8], eax
sub esp, 8
jmp 0x10004b2e
mov eax, dword [ebp + 8]
mov edx, esi
call sym._create_registrar
test eax, eax
jne 0x10004a68
lea esi, [esi]
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esi + 8], 0x8007000e
xor eax, eax
jmp 0x10004b92

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4063b0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48ffdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00484f23
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x406432
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00482e35
mov eax, dword [eax]
push 0x4acc60
push eax
call fcn.00474e54
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004851ae
test bl, bl
je 0x406432
push 0x4acc60
lea ecx, [esp + 0xc]
call fcn.0048553e
push 0x4acc6c
lea ecx, [esp + 0xc]
call fcn.0048553e
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40646e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004851ae
jmp 0x406539
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4064f2
lea edx, [esp + 0x7c]
push 0x4acc68
push edx
call fcn.00474e54
add esp, 8
test eax, eax
je 0x4064f2
lea eax, [esp + 0x7c]
push 0x4acc64
push eax
call fcn.00474e54
add esp, 8
test eax, eax
je 0x4064f2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406482
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004851ae
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x406d30
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x406d92
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc