joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cd60
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458768
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x471660]
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 [ecx + 4]
lea esi, [ecx + 4]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x24], esi
je 0x41cda3
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [esi], edi
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], eax
call dword [0x47148c]
xor esi, esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp + 8]
cmp ebx, edi
mov dword [ebp - 4], edi
jne 0x41cdf2
mov dword [ebp - 0x1c], edi
jmp 0x41ce5f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
add eax, 1
cdq
push 2
push edx
push eax
call fcn.004365d0
mov edi, eax
add eax, 0x80000000
adc edx, 0
mov dword [ebp - 0x1c], edx
jne 0x41ce1b
cmp eax, 0xffffffff
jbe 0x41ce24
mov dword [ebp - 0x1c], 0
jmp 0x41ce5f
cmp edi, 0x400
jg 0x41ce44
push edi
call fcn.0041b2f0
add esp, 4
test al, al
je 0x41ce44
mov eax, edi
call fcn.00435a70
mov eax, esp
jmp 0x41ce50
push edi
lea ecx, [ebp - 0x14]
call fcn.0041c440
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push ecx
push edi
push ebx
push eax
call fcn.004079b0
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x41ce6a
xor eax, eax
jmp 0x41ced0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
add eax, 1
cdq
push 2
push edx
push eax
call fcn.004365d0
mov edi, eax
add eax, 0x80000000
adc edx, 0
mov dword [ebp - 0x48], edx
jne 0x41ce94
cmp eax, 0xffffffff
jbe 0x41ce98
xor eax, eax
jmp 0x41ced0
cmp edi, 0x400
jg 0x41ceb8
push edi
call fcn.0041b2f0
add esp, 4
test al, al
je 0x41ceb8
mov eax, edi
call fcn.00435a70
mov eax, esp
jmp 0x41cec4
push edi
lea ecx, [ebp - 0x14]
call fcn.0041c440
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push edx
push edi
push ebx
push eax
call fcn.004079b0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x41cf06
test eax, eax
je 0x41cf06
mov edx, dword [ebp - 0x24]
push edx
lea edx, [ebp - 0x44]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test esi, esi
mov edi, eax
je 0x41cf02
mov eax, esi
mov esi, dword [esi]
push eax
call fcn.004356b6
add esp, 4
test esi, esi
jne 0x41cef1
mov eax, edi
jmp 0x41cf26
push 8
call dword [sym.imp.WS2_32.dll_WSASetLastError]
test esi, esi
je 0x41cf23
mov eax, esi
mov esi, dword [esi]
push eax
call fcn.004356b6
add esp, 4
test esi, esi
jne 0x41cf12
or eax, 0xffffffff
lea esp, [ebp - 0x5c]
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.00434fe0
mov esp, ebp
pop ebp
ret 0x18
Function at 0x420b30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x458d29
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x471660]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov esi, dword [esp + 0x34]
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
cmp eax, ebx
je 0x420b70
cmp dword [eax + 8], ebx
jne 0x420b92
mov eax, dword [esp + 0x30]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov byte [eax + 0xc], bl
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0xc
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x38]
call fcn.00420010
mov ecx, dword [esp + 0x38]
push ecx
sub esp, 8
mov edx, esp
mov dword [esp + 0x44], esp
push edx
mov ecx, esi
mov dword [esp + 0x38], 1
call fcn.0041cd30
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov ecx, dword [edi]
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x44]
push edx
push edi
mov byte [esp + 0x40], 2
call fcn.00431820
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x10], 1
mov byte [esp + 0x28], 1
je 0x420c25
mov esi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x420c25
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x420c25
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x34]
cmp ecx, ebx
mov byte [esp + 0x28], bl
je 0x420c39
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0xc
Function at 0x422fd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4590bc
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x471660]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
xor ebx, ebx
mov dword [esi], vtable.ATL::CSoapRootHandler.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov dword [esi + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x1c], eax
je 0x423029
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
lea ecx, [esi + 0x30]
mov dword [esi + 0x20], vtable.ATL::CSAXStringBuilder.0
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.0041d2e0
mov dword [esi + 0xd4], vtable.ATL::CSkipHandler.0
mov dword [esi + 0xd8], 1
mov dword [esi + 0xdc], ebx
fld dword [0x45fd40]
mov dword [esi + 0xe0], ebx
lea ecx, [esi + 0xf8]
mov dword [esi + 0xe4], 0x47127c
mov byte [esi + 0xe8], bl
mov dword [esi + 0xec], ebx
fstp dword [ecx + 0xc]
fld dword [0x45fd3c]
mov dword [ecx], ebx
fstp dword [ecx + 0x10]
mov dword [ecx + 4], ebx
fld dword [0x45fd38]
mov dword [ecx + 8], 0x11
fstp dword [ecx + 0x14]
mov dword [ecx + 0x18], 0xffffffff
mov dword [ecx + 0x1c], ebx
mov dword [ecx + 0x20], ebx
mov dword [ecx + 0x24], 0xa
mov dword [ecx + 0x28], ebx
mov dword [ecx + 0x2c], ebx
call fcn.00419930
mov byte [esi + 0xf0], bl
mov byte [esi + 0xf2], bl
mov byte [esi + 0xf1], bl
mov dword [esi + 0x18], ebx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret 4
Function at 0x42b530
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x45978f
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x471660]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
lea ecx, [esi + 4]
xor eax, eax
mov dword [esi], vtable.CActiveCollectorService.0
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
xor ebx, ebx
mov dword [ecx + 0x10], eax
mov dword [esp + 0x1c], ebx
mov dword [ecx + 0x14], eax
call fcn.00401250
cmp eax, ebx
jge 0x42b58b
push eax
call fcn.00401200
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov eax, 7
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], ebx
mov word [esi + 0x3c], bx
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ebx
mov word [esi + 0x58], bx
lea edi, [esi + 0x70]
mov ecx, edi
mov byte [esp + 0x1c], 5
call fcn.0041d650
mov dword [edi + 4], eax
mov byte [eax + 0x2d], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x42d5e0
Capabilities:
Hash data with crc32

Disassembly:
push esi
push edi
mov eax, ecx
xor esi, esi
mov edx, esi
mov edi, 8
lea ecx, [ecx]
test dl, 1
je 0x42d5ff
shr edx, 1
xor edx, 0xedb88320
jmp 0x42d601
shr edx, 1
sub edi, 1
jne 0x42d5f0
mov dword [eax + esi*4], edx
add esi, 1
cmp esi, 0x100
jb 0x42d5e6
mov dword [eax + 0x400], edi
pop edi
pop esi
ret

Function at 0x42d6e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x614
mov eax, dword [0x471660]
xor eax, esp
mov dword [esp + 0x610], eax
push ebx
push esi
mov esi, dword [esp + 0x620]
mov ebx, ecx
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], esi
call fcn.0042d5e0
push 9
mov dword [esp + 0x14], 0
call fcn.00430b21
mov edi, eax
add esp, 4
test edi, edi
je 0x42d7e1
xor eax, eax
mov dword [edi], eax
push ebp
mov dword [edi + 4], eax
mov byte [edi + 8], al
mov eax, dword [esp + 0x62c]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x200
lea edx, [esp + 0x20]
push edx
push esi
lea eax, [esp + 0x434]
push eax
mov ecx, ebx
call fcn.0042d620
test eax, eax
mov esi, dword [esp + 0x41c]
je 0x42d7cd
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x42d7cd
lea edx, [esp + 0x420]
mov eax, esi
movzx esi, byte [edx]
movzx ebp, al
shr eax, 8
xor esi, ebp
xor eax, dword [esp + esi*4 + 0x1c]
sub ecx, 1
add edx, 1
xor eax, 0xd202ef8d
test ecx, ecx
jne 0x42d777
mov ecx, dword [esp + 0x62c]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
mov esi, eax
push 0x200
lea eax, [esp + 0x20]
push eax
push ecx
lea edx, [esp + 0x434]
push edx
mov ecx, ebx
mov dword [esp + 0x434], esi
call fcn.0042d620
test eax, eax
jne 0x42d766
push esi
push str._8.8X
push 9
push edi
call fcn.004359d1
add esp, 0x10
mov eax, edi
pop ebp
mov ecx, dword [esp + 0x61c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00434fe0
add esp, 0x614
ret 8
Function at 0x42d800
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
sub esp, 0x610
mov eax, dword [0x471660]
xor eax, esp
mov dword [esp + 0x60c], eax
mov eax, dword [esp + 0x614]
push esi
push edi
xor esi, esi
push esi
push 0x8000000
push 3
push esi
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x42d8f1
push ebx
push ebp
push 9
call fcn.00430b21
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
call fcn.0042d5e0
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea eax, [esp + 0x14]
push eax
push 0x200
lea ecx, [esp + 0x428]
push ecx
push edi
call ebx
test eax, eax
mov esi, dword [esp + 0x418]
je 0x42d8d3
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x42d8d3
lea edx, [esp + 0x41c]
mov eax, esi
movzx ebp, byte [edx]
movzx esi, al
shr eax, 8
xor esi, ebp
xor eax, dword [esp + esi*4 + 0x18]
sub ecx, 1
add edx, 1
xor eax, 0xd202ef8d
test ecx, ecx
jne 0x42d892
push ecx
lea edx, [esp + 0x14]
push edx
mov esi, eax
push 0x200
lea eax, [esp + 0x428]
push eax
push edi
mov dword [esp + 0x42c], esi
call ebx
test eax, eax
jne 0x42d881
push esi
mov esi, dword [esp + 0x18]
push str._8.8X
push 9
push esi
call fcn.004359d1
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
mov ecx, dword [esp + 0x614]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.00434fe0
add esp, 0x610
ret 4

Function at 0x42e010
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x24
mov eax, dword [0x471660]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_SHGetValueA]
push ebp
push esi
push edi
mov edi, ecx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x460b6c
lea esi, [edi + 0x900]
push esi
push closesocket
xor ebp, ebp
call ebx
test eax, eax
jne 0x42e0a6
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x460b68
push esi
push closesocket
call ebx
test eax, eax
jne 0x42e0a6
add edi, 0x79d
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42e0a6
mov esi, dword [sym.imp.SHLWAPI.dll_StrToIntA]
lea eax, [esp + 0x18]
push eax
call esi
mov edi, dword [esp + 0x38]
cmp edi, eax
jle 0x42e0a6
lea ecx, [esp + 0x24]
push ecx
call esi
cmp edi, eax
lea eax, [ebp + 1]
jl 0x42e0a8
mov eax, ebp
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00434fe0
add esp, 0x24
ret 4
Function at 0x42e0c0
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x471660]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
test ebp, ebp
je 0x42e1b5
mov ebx, dword [esp + 0x120]
test ebx, ebx
je 0x42e1b5
push 0x102
lea eax, [esp + 0x15]
push 0
push eax
mov dword [esp + 0x14], 1
mov byte [esp + 0x1c], 0
call fcn.00435750
add esp, 0xc
push 0
push 0x26
lea ecx, [esp + 0x18]
push ecx
push 0
mov dword [esp + 0x1c], 0x103
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x42e14a
push esi
push edi
mov edi, 0x45c70a
lea esi, [esp + 0x18]
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
pop edi
pop esi
jne 0x42e172
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x42e1b5
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
jne 0x42e1b5
lea eax, [esp + 0x10]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42e190
sub eax, edx
cmp eax, ebx
jae 0x42e1b5
push ebx
lea ecx, [esp + 0x14]
push ecx
push ebp
call fcn.004394d0
add esp, 0xc
mov eax, 1
jmp 0x42e1b7
xor eax, eax
mov ecx, dword [esp + 0x114]
pop ebp
pop ebx
xor ecx, esp
call fcn.00434fe0
add esp, 0x110
ret 8

Function at 0x42e1d0
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push esi
push edi
mov dword [esp + 0x18], 0
mov ebx, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x42e21c
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x42e21c
xor ebx, ebx
mov edx, dword [esp + 0x20]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42e225
sub eax, esi
push eax
mov eax, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x24]
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x42e24c
xor ebx, ebx
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret 0x10
Function at 0x42e260
Capabilities:
Delete file
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x459aab
mov eax, dword fs:[0]
push eax
sub esp, 0x418
push ebx
push ebp
push esi
push edi
mov eax, dword [0x471660]
xor eax, esp
push eax
lea eax, [esp + 0x42c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x43c]
push 0x460c10
push eax
call fcn.00439899
add esp, 8
push 0
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
lea ecx, [esp + 0x30]
mov edi, eax
push ecx
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x42e2d4
push edi
call fcn.004364b4
add esp, 4
xor eax, eax
jmp 0x42e478
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x42e2c4
lea edx, [esi + 0x382]
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42e300
mov ecx, dword [esp + 0x1c]
push 0
sub eax, esi
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x42e2c4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
push 0x800000
push eax
push 0x6801
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x42e2c4
push 0x3e8
mov dword [esp + 0x18], 0x3e8
call fcn.0043759a
mov edi, dword [esp + 0x44c]
add esp, 4
xor ebx, ebx
mov esi, eax
xor ebp, ebp
mov eax, dword [esp + 0x14]
cmp edi, eax
ja 0x42e376
mov eax, edi
mov dword [esp + 0x14], eax
mov ebp, 1
mov edx, dword [esp + 0x440]
push eax
lea eax, [ebx + edx]
push eax
push esi
call fcn.004398b0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push esi
push 0
push ebp
push 0
push edx
sub edi, eax
add ebx, eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x42e441
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push 1
push esi
call fcn.00439753
add esp, 0x10
test edi, edi
jne 0x42e363
mov eax, dword [esp + 0x18]
push eax
call fcn.004364b4
add esp, 4
test esi, esi
je 0x42e3e4
push esi
call fcn.004356b6
add esp, 4
lea ecx, [esp + 0x28]
call fcn.0042d5e0
mov edi, dword [esp + 0x43c]
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x438], 0
call fcn.0042d800
mov ecx, dword [esp + 0x444]
mov esi, eax
push 8
push esi
push ecx
call fcn.0043830b
add esp, 0xc
test eax, eax
je 0x42e452
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x28]
mov dword [esp + 0x434], 0xffffffff
call fcn.00434620
xor eax, eax
jmp 0x42e478
mov edx, dword [esp + 0x18]
push edx
call fcn.004364b4
add esp, 4
xor eax, eax
jmp 0x42e478
test esi, esi
je 0x42e45f
push esi
call fcn.00435125
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x434], 0xffffffff
call fcn.00434620
mov eax, 1
mov ecx, dword [esp + 0x42c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x424
ret 0x10
Function at 0x42e4a0
Capabilities:
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push ebp
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push ebp
lea eax, [esp + 0x28]
push eax
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push ebp
push ebp
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
lea ecx, [esi + 0x382]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x42e4e1
push ebp
sub eax, esi
push eax
mov eax, dword [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push 0x800000
push edx
push 0x6801
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
push 0x3e8
mov dword [esp + 0x14], 0x3e8
call fcn.0043759a
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
add esp, 4
mov edi, eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x30], ebp
cmp ebx, esi
ja 0x42e552
mov esi, ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x28]
push esi
lea edx, [ecx + ebp]
push edx
push edi
call fcn.004398b0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add esp, 0xc
sub ebx, eax
add ebp, eax
lea eax, [esp + 0x10]
push eax
push edi
push 0
push ecx
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x42e5c7
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
push esi
add eax, ecx
push edi
push eax
call fcn.004398b0
add dword [esp + 0x3c], esi
add esp, 0xc
test ebx, ebx
jne 0x42e540
test edi, edi
je 0x42e5b8
push edi
call fcn.004356b6
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 0xc

Function at 0x42e5e0
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push esi
call ebx
test eax, eax
je 0x42e65c
mov eax, esi
lea edi, [esi + 0x491]
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [eax + 0x491], cl
add eax, 1
test cl, cl
jne 0x42e600
push ebp
mov ebp, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esi + 0x8a1]
push eax
push edi
call ebp
push 0
push edi
call ebx
test eax, eax
je 0x42e655
lea ecx, [esi + 0x8a8]
push ecx
push edi
call ebp
push 0
push edi
call ebx
test eax, eax
je 0x42e655
push 0
add esi, 0x38d
push esi
call ebx
test eax, eax
je 0x42e655
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x42e670
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x128
mov eax, dword [0x471660]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push esi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x2d]
push ebx
push eax
xor esi, esi
mov byte [esp + 0x34], bl
call fcn.00435750
mov eax, dword [esp + 0x140]
lea edx, [esp + 0x34]
add esp, 0xc
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
cmp cl, bl
jne 0x42e6b0
lea edx, [esp + 8]
lea ecx, [esp + 0x28]
push edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
mov word [esp + 0x1c], 0x14
mov dword [esp + 0x1e], ebx
mov dword [esp + 0x26], ebx
mov dword [esp + 0x22], ebx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
mov eax, 1
je 0x42e6fd
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop esi
pop ebx
xor ecx, esp
call fcn.00434fe0
add esp, 0x128
ret 4

Function at 0x42e720
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x471660]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x22c]
push ebp
push esi
mov esi, dword [esp + 0x228]
test esi, esi
push edi
mov edi, dword [esp + 0x234]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
je 0x42e863
mov ebp, dword [esp + 0x230]
test ebp, ebp
je 0x42e863
test edi, edi
je 0x42e863
push 0x102
lea ecx, [esp + 0x21]
push 0
push ecx
mov byte [esp + 0x28], 0
call fcn.00435750
push 0x103
lea edx, [esp + 0x131]
push 0
push edx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 0x103
mov byte [esp + 0x138], 0
call fcn.00435750
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths
lea eax, [esp + 0x140]
push str._s_s.exe
push eax
call fcn.00435956
add esp, 0x28
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
push 0x460c14
lea ecx, [esp + 0x130]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x42e837
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
jne 0x42e837
lea eax, [esp + 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42e812
sub eax, edx
cmp eax, ebp
jae 0x42e837
push ebp
lea eax, [esp + 0x20]
push eax
push esi
call fcn.004394d0
add esp, 0xc
mov eax, 1
jmp 0x42e865
mov edi, dword [esp + 0xc]
test edi, edi
je 0x42e863
mov ecx, dword [esp + 0x10]
push ebp
push esi
call fcn.0042e0c0
cmp eax, 1
jne 0x42e863
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
je 0x42e830
xor eax, eax
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00434fe0
add esp, 0x21c
ret 0x10