joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461b30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522146
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x579630]
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 eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x430], 0
push 0x404
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x420]
movq qword [ebp - 0x1c], xmm0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.004f9050
add esp, 0xc
mov dword [ebp - 0x420], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x42c], edi
test edi, edi
jne 0x461bf4
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x42c], eax
test edi, edi
jne 0x461bf4
call fcn.0045f0a0
mov esi, eax
jmp 0x461ce1
push dword [ebp - 0x428]
push dword [ebp - 0x424]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x461c17
call fcn.0045f0a0
jmp 0x461cd4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x461c35
call fcn.0045f0a0
jmp 0x461cd4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x428], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x461c56
mov esi, 0x8007000e
jmp 0x461cd6
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 2
call fcn.0045ee80
jmp 0x461c80
cmp dword [ebp - 0x420], 0
mov dword [ebp - 4], 1
jne 0x461c97
mov esi, 0x8007000e
jmp 0x461cd6
push esi
push dword [ebp - 0x420]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x461cb7
call fcn.0045f0a0
jmp 0x461cd4
mov eax, dword [ebp - 0x420]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x420]
call fcn.004619d0
mov esi, eax
test edi, edi
je 0x461ce1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x461cfa
lea ecx, [ebp - 0x420]
call fcn.0045ffc0
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 - 0x14]
xor ecx, ebp
call fcn.00401590
mov esp, ebp
pop ebp
ret 0x10
Function at 0x462930
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x462949
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x462955
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x462950
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x462b10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x462b25
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x462b30
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x462b30
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x467ae0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522646
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x579630]
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 eax, dword [ebp + 8]
test eax, eax
jne 0x467b1c
xor al, al
jmp 0x467ced
push eax
lea ecx, [ebp - 0x230]
call fcn.004076f0
mov esi, dword [ebp - 0x21c]
lea ecx, [ebp - 0x230]
mov edx, dword [ebp - 0x230]
lea edi, [ebp - 0x230]
mov eax, dword [ebp - 0x220]
cmp esi, 8
mov dword [ebp - 4], 0
cmovae ecx, edx
cmovae edi, edx
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x230]
cmovae ecx, edx
cmp ecx, eax
je 0x467b7d
push 0x40b2f6
push edi
push eax
push ecx
lea eax, [ebp - 0x258]
push eax
call fcn.0040b280
add esp, 0x14
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0
push eax
push 0x20019
push 0
push str.SoftwareAdobeAcrobatExe
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x467cd2
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004f9050
add esp, 0xc
mov dword [ebp - 0x24c], 0x206
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x250]
push eax
push 0
push 0
push dword [ebp - 0x254]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x254]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x467cd2
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.004076f0
mov edi, dword [ebp - 0x234]
lea ecx, [ebp - 0x248]
mov esi, dword [ebp - 0x248]
lea edx, [ebp - 0x248]
mov eax, dword [ebp - 0x238]
cmp edi, 8
mov byte [ebp - 4], 1
cmovae ecx, esi
cmovae edx, esi
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x248]
cmovae ecx, esi
cmp ecx, eax
je 0x467c77
push 0x40b2f6
push edx
push eax
push ecx
lea eax, [ebp - 0x258]
push eax
call fcn.0040b280
mov edi, dword [ebp - 0x234]
add esp, 0x14
mov esi, dword [ebp - 0x248]
push dword [ebp - 0x220]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0
cmovae eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x248]
push eax
call fcn.0040cdd0
cmp eax, 0xffffffff
setne bl
cmp edi, 8
jb 0x467cb3
push esi
call fcn.004085be
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
jmp 0x467cd4
xor bl, bl
cmp dword [ebp - 0x21c], 8
jb 0x467ceb
push dword [ebp - 0x230]
call fcn.004085be
add esp, 4
mov al, bl
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.00401590
mov esp, ebp
pop ebp
ret
Function at 0x4686c0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x579630]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdfUserChoice
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46870f
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdfUserChoice
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 2
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x468749
push str.Application
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401590
mov esp, ebp
pop ebp
ret

Function at 0x469010
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x579630]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4690d8
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004f9050
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
jle 0x4690d8
cmp eax, 0x103
jae 0x4690d8
lea eax, [ebp - 0x20c]
push 0x53048c
push eax
call fcn.00409df7
add esp, 8
test eax, eax
jne 0x4690d8
push 0x208
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004f9050
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x104
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x4690d8
cmp eax, 0x103
jae 0x4690d8
lea eax, [ebp - 0x414]
push str.swBrowser
push eax
call fcn.00409df7
add esp, 8
test eax, eax
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401590
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00401590
mov esp, ebp
pop ebp
ret 4
Function at 0x469690
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5227fb
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x579630]
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 ebx, dword [ebp + 8]
lea eax, [ebp - 0x444]
push eax
push 1
push 0
push str.4021007
mov dword [ebp - 0x444], 0
call fcn.0040a3f0
add esp, 0x10
movzx eax, ax
cmp word [ebp - 0x444], 0
je 0x46970b
lea eax, [ebp - 0x444]
push eax
push 0
push 0
push str.4021007
call fcn.0040a3f0
add esp, 0x10
movzx eax, ax
test ax, ax
jne 0x469717
xor al, al
jmp 0x4698cc
mov byte [ebp - 0x43d], 0
test ebx, ebx
je 0x4698c6
cmp ebx, 0xffff
je 0x4698c6
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4698c6
cmp dword [0x57db84], 0
je 0x4698c6
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x43c], 0
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4698c6
mov eax, dword [ebp - 0x43c]
test eax, eax
je 0x4698c6
cmp eax, dword [0x57db84]
jne 0x4698c6
xor esi, esi
lea ebx, [ebx]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004f9050
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
jle 0x4698a6
cmp eax, 0x103
jae 0x4698a6
push dword [esi + 0x5790f4]
lea eax, [ebp - 0x218]
push eax
call fcn.00409df7
add esp, 8
test eax, eax
jne 0x4698a6
push 0x208
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004f9050
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
test edi, edi
jle 0x46983a
cmp edi, 0x103
jae 0x469838
push dword [esi + 0x5790f0]
lea eax, [ebp - 0x420]
push eax
call fcn.00409df7
add esp, 8
test eax, eax
je 0x469848
test edi, edi
jne 0x4698a6
mov eax, dword [esi + 0x5790f0]
cmp word [eax], 0
jne 0x4698a6
push dword [ebp - 0x43c]
lea eax, [ebp - 0x438]
push eax
call fcn.00476b10
add esp, 8
cmp dword [ebp - 0x428], 0
mov dword [ebp - 4], 0
je 0x469894
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
push dword [esi + 0x5790f8]
cmovae eax, dword [ebp - 0x438]
push eax
call fcn.00409df7
add esp, 8
test eax, eax
je 0x4698b4
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 0xffffffff
call fcn.004087d0
add esi, 0xc
cmp esi, 0xc
jb 0x469790
jmp 0x4698c6
lea ecx, [ebp - 0x438]
mov byte [ebp - 0x43d], 1
call fcn.004087d0
mov al, byte [ebp - 0x43d]
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.00401590
mov esp, ebp
pop ebp
ret
Function at 0x469910
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522838
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x579630]
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]
xor bl, bl
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push 0
push 0x1410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
xor esi, esi
mov dword [ebp - 0x20], eax
test eax, eax
mov dword [ebp - 0x28], esi
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x469997
call eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
call fcn.00410ed0
mov esi, dword [ebp - 0x20]
cmp esi, 0xffffffff
je 0x469986
mov dword [ebp - 0x28], esi
call fcn.00410f80
jmp 0x469989
mov esi, dword [ebp - 0x28]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 0
test esi, esi
je 0x4699a7
cmp esi, 0xffffffff
jne 0x4699ae
call eax
cmp eax, 5
jne 0x469a1b
test edi, edi
je 0x469a1b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, eax
je 0x469a1b
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x24], xmm0
push 0x468c60
mov dword [ebp - 0x24], edi
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [ebp - 0x20], 0
je 0x469a1b
test esi, esi
je 0x469a19
cmp esi, 0xffffffff
je 0x469a19
push 3
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], str.AcroPDF.dll
push eax
push esi
mov dword [ebp - 0x18], str.AcroPDFImpl.dll
mov dword [ebp - 0x14], str.NPPdf32.dll
call fcn.00477a00
add esp, 0xc
movzx ebx, bl
cmp eax, 3
mov ecx, 1
cmovne ebx, ecx
jmp 0x469a1b
mov bl, 1
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00410ed0
mov al, bl
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.00401590
mov esp, ebp
pop ebp
ret

Function at 0x469d10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x469d25
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x469d64
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x469d60
lea ebx, [ebx]
cmp esi, edx
jae 0x469d64
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x469d50
cmp esi, edx
jb 0x469d69
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x469e90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522868
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x579630]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x57dba4]
test eax, eax
jne 0x469f63
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
test esi, esi
je 0x469f49
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
push 0x57fece
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00419c57
mov edi, eax
add esp, 8
test edi, edi
je 0x469f49
lea eax, [esi*2 + 2]
push eax
push 0
push edi
call fcn.004f9050
add esp, 0xc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x469f40
cmp eax, esi
ja 0x469f40
push edi
lea ecx, [ebp - 0x24]
call fcn.004076f0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
call fcn.0042e800
add esp, 4
lea ecx, [ebp - 0x24]
call fcn.004087d0
push edi
call fcn.0041d0a7
add esp, 4
mov eax, dword [0x57dba4]
test eax, eax
jne 0x469f63
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [eax + 0x14], 8
jb 0x469f6b
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46e150
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52075b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x579630]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 4
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00405f2d
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x46e1ab
push 1
mov dword [esi], 0
call fcn.0044c27f
add esp, 4
mov dword [esi], eax
jmp 0x46e1ad
xor esi, esi
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
lea ecx, [edi + 8]
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46e3c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522ca9
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x579630]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x30], edi
cmp dword [edi], 0
mov dword [ebp - 4], 1
jne 0x46e4ee
lea esi, [edi + 8]
push 0x531178
push esi
call fcn.0045b4a0
add esp, 8
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0046f490
push 0
push 0
mov byte [ebp - 4], 2
call fcn.004129c0
mov eax, dword [0x57f400]
add esp, 8
test eax, eax
je 0x46e4cb
cmp eax, 2
je 0x46e4cb
cmp dword [0x57f428], 0
jne 0x46e45a
push 0xffffffffffffffff
push dword [0x57f420]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x46e465
mov ecx, dword [0x57f41c]
call fcn.00412b50
mov byte [ebp - 4], 3
call fcn.0046ecd0
test al, al
je 0x46e4a5
push 2
push 0
push 0
push dword [0x57f408]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x2c]
push 0
push ecx
push dword [ebp - 0x18]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [0x57f408]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x57f428], 0
mov byte [ebp - 4], 2
jne 0x46e4c0
push dword [0x57f420]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x46e4cb
mov ecx, dword [0x57f41c]
call fcn.00412b60
cmp dword [ebp - 0x14], 0x10
jb 0x46e4dc
push dword [ebp - 0x28]
call fcn.004085be
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
push dword [edi + 0xac]
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x58]
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0046e310
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.0044fc19
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401590
mov esp, ebp
pop ebp
ret
Function at 0x470e10
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x579630]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push esi
push 0x20019
push 0
push eax
push ecx
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x470e72
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x470e7a
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], 0
jmp 0x470eb0
mov eax, dword [ebp - 8]
mov edx, dword [esi]
dec eax
mov dword [esi + 4], eax
test edx, edx
je 0x470eb0
test eax, eax
js 0x470eb0
lea ecx, [ebp - 0x10]
mov dword [ebp - 8], 0x104
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 8]
push ecx
lea ecx, [esi + 8]
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x470eb6
xor eax, eax
mov word [esi + 8], ax
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00401590
mov esp, ebp
pop ebp
ret 8

Function at 0x471100
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522f8b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x579630]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
cmp byte [esi], 0
mov dword [ebp - 4], 0
je 0x47114d
cmp dword [esi + 0x14], 0
je 0x47114d
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x471146
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [esi + 0x18], 8
jb 0x47115e
push dword [esi + 4]
call fcn.004085be
add esp, 4
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x471190
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x579630]
xor eax, ebp
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, 0x57f44c
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x4712e3
push ebx
push 0x11c
push eax
lea eax, [ebp - 0x124]
xor bl, bl
push eax
call fcn.004f9050
add esp, 0xc
mov dword [ebp - 0x124], 0x11c
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4712cf
mov eax, dword [ebp - 0x120]
cmp eax, 6
jne 0x47120f
mov eax, dword [ebp - 0x11c]
test eax, eax
jne 0x471215
cmp word [ebp - 0x10], ax
ja 0x471215
jmp 0x4712cf
jbe 0x4712cf
push str.bcrypt.dll
call fcn.0042ea80
add esp, 4
test eax, eax
je 0x4712cf
push 0x531274
call fcn.0042ea80
add esp, 4
test eax, eax
je 0x4712cf
push esi
push edi
push 0
push str.Microsoft_Primitive_Provider
push str.ECDH_P256
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0
push eax
mov dword [ebp - 8], 0
call sub.ncrypt.dll_BCryptOpenAlgorithmProvider
mov esi, eax
test esi, esi
je 0x47127c
mov dword [ebp - 0x128], 0
jmp 0x47128e
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x47128e
push 0
push eax
call sub.ncrypt.dll_BCryptCloseAlgorithmProvider
push 0
push str.Microsoft_Software_Key_Storage_Provider
lea eax, [ebp - 8]
push eax
call sub.ncrypt.dll_NCryptOpenStorageProvider
mov ecx, dword [ebp - 8]
mov edi, eax
test ecx, ecx
je 0x4712b0
push ecx
call sub.ncrypt.dll_NCryptFreeObject
mov ecx, dword [ebp - 8]
test esi, esi
jne 0x4712cd
test edi, edi
jne 0x4712cd
cmp dword [ebp - 0x128], edi
je 0x4712cd
test ecx, ecx
movzx ebx, bl
mov eax, 1
cmovne ebx, eax
pop edi
pop esi
xor ecx, ecx
mov edx, 0x57f44c
test bl, bl
sete cl
xor eax, eax
inc ecx
lock cmpxchg dword [edx], ecx
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [0x57f44c], 1
sete al
xor ecx, ebp
call fcn.00401590
mov esp, ebp
pop ebp
ret

Function at 0x471300
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x579630]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor ecx, ecx
mov esi, 0x57f448
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x471356
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x471342
push str.advapi32.dll
call fcn.0042ea80
add esp, 4
test eax, eax
je 0x471356
push str.SystemFunction036
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [esi], ecx
mov dword [ebp - 8], 0
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [esi], ecx
pop esi
test eax, eax
je 0x471387
push 4
lea ecx, [ebp - 8]
push ecx
call eax
test al, al
je 0x471387
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401590
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
call fcn.004395c2
add esp, 4
test eax, eax
jne 0x4713af
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401590
mov esp, ebp
pop ebp
ret
call fcn.004fae7d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401590
mov esp, ebp
pop ebp
ret