joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f6d3
Capabilities:
Encrypt data using aes via winapi
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
cmp byte [ebp + 0xc], 0
mov ebx, ecx
mov eax, 0x407ccc
mov dword [edi], esi
jne 0x41f6f5
mov eax, 0x407d20
push 0x10
push eax
mov eax, dword [ebp + 8]
add eax, 0x10
push 0x10
push eax
call dword [sym.imp.msvcrt.dll_memcpy_s]
add esp, 0x10
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x800c
push dword [ebx + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x41f762
push esi
push 0x20
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x41f750
push edi
push 0x800000
push dword [ebp - 4]
push 0x660e
push dword [ebx + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x41f757
call fcn.0040f5c5
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x41f769
call fcn.0040f5c5
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41f801
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov dword [ebp - 4], ecx
mov edi, edx
xor edx, edx
mov eax, edi
push 3
pop ecx
div ecx
xor ecx, ecx
cmp ecx, edx
sbb ecx, ecx
neg ecx
add ecx, eax
mov eax, dword [ebp + 0xc]
shl ecx, 2
cmp dword [eax], ecx
jb 0x41f8cb
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov edx, ebx
test edi, edi
je 0x41f8c1
mov ebx, dword [ebp - 4]
push esi
movzx esi, byte [edx + ebx]
inc edx
shl esi, 8
cmp edx, edi
jae 0x41f854
movzx eax, byte [edx + ebx]
add esi, eax
inc edx
shl esi, 8
cmp edx, edi
jae 0x41f862
movzx eax, byte [edx + ebx]
add esi, eax
mov eax, esi
inc edx
shr eax, 0x12
and eax, 0x3f
mov al, byte [eax + 0x407ce0]
mov byte [ecx], al
mov eax, esi
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + 0x407ce0]
mov byte [ecx + 1], al
mov eax, esi
shr eax, 6
and esi, 0x3f
and eax, 0x3f
mov al, byte [eax + 0x407ce0]
mov byte [ecx + 2], al
mov al, byte [esi + 0x407ce0]
mov byte [ecx + 3], al
cmp edx, edi
jbe 0x41f8a9
mov byte [ecx + 3], 0x3d
lea eax, [edi + 1]
cmp edx, eax
jbe 0x41f8b4
mov byte [ecx + 2], 0x3d
add ecx, 4
cmp edx, edi
jb 0x41f842
mov eax, dword [ebp + 0xc]
xor ebx, ebx
pop esi
mov byte [ecx], bl
sub ecx, dword [ebp + 8]
inc ecx
mov dword [eax], ecx
jmp 0x41f8d3
and dword [eax], 0
mov ebx, 0x8007007a
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41f8e2
Capabilities:
Generate random numbers via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x10
mov dword [ebp - 4], ecx
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
push dword [ebp + 0x1c]
mov ebx, eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
mov edi, eax
mov esi, edi
pop ecx
pop ecx
test ebx, ebx
je 0x41fa10
test edi, edi
je 0x41fa10
cmp byte [ebp + 8], 0
mov eax, dword [ebp - 4]
je 0x41f95a
mov byte [edi], 1
lea esi, [edi + 1]
push dword [eax + 0x3c]
push dword [eax + 0x38]
push dword [eax + 0x3c]
push esi
call dword [sym.imp.msvcrt.dll_memcpy_s]
mov eax, dword [ebp - 4]
push dword [eax + 0x28]
add esi, dword [eax + 0x3c]
push dword [eax + 0x34]
push dword [eax + 0x28]
push esi
call dword [sym.imp.msvcrt.dll_memcpy_s]
mov eax, dword [ebp - 4]
add esp, 0x20
add esi, dword [eax + 0x28]
push ebx
push 0x10
push dword [eax + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x41f9f5
push 0x10
push ebx
push 0x10
push esi
call dword [sym.imp.msvcrt.dll_memcpy_s]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
add esp, 0x10
add esi, 0x10
mov dword [ebp - 0x10], esi
add esi, 0x20
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041faf3
mov ebx, eax
test ebx, ebx
js 0x41f9fc
mov eax, dword [ebp - 8]
sub eax, edi
add eax, esi
cmp eax, dword [ebp + 0x1c]
jne 0x41f9ee
push dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
push dword [ebp - 8]
push esi
call fcn.0041fa40
mov ebx, eax
test ebx, ebx
js 0x41f9fc
cmp byte [ebp + 8], 0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x1c]
sete al
dec al
and al, 0xf6
add al, 0x70
mov byte [ecx], al
mov eax, dword [ebp + 0x18]
dec eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.0041f801
jmp 0x41f9fa
mov ebx, 0x80004005
jmp 0x41f9fc
call fcn.0040f5c5
mov ebx, eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
push edi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
pop ecx
jmp 0x41fa2f
mov eax, dword [ebp - 0xc]
mov ebx, 0x8007000e
test eax, eax
je 0x41fa24
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
pop ecx
test edi, edi
je 0x41fa30
push edi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x41fa40
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push ebx
push esi
push eax
xor ebx, ebx
mov esi, 0x80004005
push ebx
push dword [ecx + 0x30]
push 0x8009
push dword [ecx + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x41fadd
push edi
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
push 5
push dword [ebp - 4]
mov dword [ebp - 0x1c], 0x800c
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
je 0x41faca
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x41faca
push 0x20
pop edi
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x41faca
cmp dword [ebp - 8], edi
jne 0x41fad1
mov esi, ebx
jmp 0x41fad1
call fcn.0040f5c5
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
jmp 0x41fae4
call fcn.0040f5c5
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41faf3
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x424308
mov ebx, ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
push dword [ebp + 8]
push 1
push dword [ebx + 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x41fc33
mov eax, dword [ebp + 0x10]
mov ecx, eax
and dword [ebp - 8], edi
and eax, 0xf
mov esi, dword [ebp + 0x14]
shr ecx, 4
push 0x10
pop edx
mov dword [ebp - 0x10], ecx
test ecx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
je 0x41fbdf
push edx
push ecx
push edx
push esi
mov dword [ebp - 0xc], edx
call dword [sym.imp.msvcrt.dll_memcpy_s]
mov edx, dword [ebp - 0x10]
add esp, 0x10
mov ecx, dword [ebp - 8]
cmp dword [ebp - 4], edi
jne 0x41fb77
lea eax, [edx - 1]
cmp ecx, eax
jne 0x41fb77
mov dword [ebp - 0x14], 0x20
jmp 0x41fb83
mov dword [ebp - 0x14], 0x10
cmp dword [ebp - 4], edi
jne 0x41fb8f
lea eax, [edx - 1]
cmp ecx, eax
jne 0x41fb8f
xor eax, eax
inc eax
jmp 0x41fb91
xor eax, eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0xc]
push ecx
push esi
push 0
push eax
push 0
push dword [ebx + 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x41fbc7
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
add esi, dword [ebp - 0xc]
push 0x10
pop edx
add ecx, edx
inc eax
mov dword [ebp + 0xc], ecx
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x10]
jb 0x41fb4c
jmp 0x41fbdc
call fcn.0040f5c5
mov edi, eax
mov dword [ebx + 4], 3
test edi, edi
js 0x41fc2b
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
test eax, eax
je 0x41fc1d
push eax
push ecx
push eax
push esi
call dword [sym.imp.msvcrt.dll_memcpy_s]
add esp, 0x10
lea eax, [ebp - 4]
push 0x10
push eax
push esi
push 0
push 1
push 0
push dword [ebx + 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x41fc0f
add esi, dword [ebp - 4]
jmp 0x41fc1d
call fcn.0040f5c5
mov edi, eax
mov dword [ebx + 4], 3
test edi, edi
js 0x41fc2b
mov eax, dword [ebp + 0x18]
sub esi, dword [ebp + 0x14]
mov dword [eax], esi
jmp 0x41fc3a
mov eax, dword [ebp + 0x18]
and dword [eax], 0
jmp 0x41fc3a
call fcn.0040f5c5
mov edi, eax
push 0x424308
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4203b0
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [0x424874], 0
jne 0x420431
mov eax, dword [0x42486c]
test eax, eax
jne 0x4203f6
lea eax, [ebp - 4]
push eax
push ecx
call fcn.00420b8b
test eax, eax
js 0x4203f1
mov ecx, dword [ebp - 4]
mov edx, 0x42486c
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4203f1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x42486c]
cmp dword [0x424870], 0
jne 0x420431
test eax, eax
je 0x420431
xor ecx, ecx
push ecx
push ecx
push ecx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
test edx, edx
je 0x420431
push esi
mov ecx, edx
mov esi, 0x424870
xor eax, eax
lock cmpxchg dword [esi], ecx
pop esi
test eax, eax
je 0x420431
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esp, ebp
pop ebp
ret 4
Function at 0x420491
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x8c], ecx
mov esi, 0x80004005
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x84], eax
push ecx
push eax
push 2
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeExW]
mov ebx, eax
test ebx, ebx
je 0x420641
push edi
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x420640
push edi
push ebx
push dword [ebp - 0x88]
push dword [ebp - 0x84]
push 2
call dword [sym.imp.VERSION.dll_GetFileVersionInfoExW]
test eax, eax
je 0x420639
xor eax, eax
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x90]
push eax
push 0x407e3c
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x420609
mov ecx, dword [ebp - 0x90]
mov ebx, 0x407c18
push ebx
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push 0x407e70
lea eax, [ebp - 0x7c]
push 0x3c
push eax
call fcn.004083b4
add esp, 0x18
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x420609
push ebx
push 0x407ea8
lea eax, [ebp - 0x7c]
push 0x3c
push eax
call fcn.004083b4
add esp, 0x10
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x420609
push ebx
push 0x407ee0
lea eax, [ebp - 0x7c]
push 0x3c
push eax
call fcn.004083b4
add esp, 0x10
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x420609
push ebx
push 0x407f18
lea eax, [ebp - 0x7c]
push 0x3c
push eax
call fcn.004083b4
add esp, 0x10
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x80]
mov dword [ebp - 0x80], eax
jmp 0x42060c
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x420639
push 0x407e34
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
mov eax, dword [ebp - 0x80]
xor ecx, ecx
cmp word [eax], cx
je 0x420639
mov ecx, dword [ebp - 0x8c]
mov edx, 0x100
push eax
call fcn.00408345
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422f70
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4206fd
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
mov edx, 0x12b9b0a5
push edi
mov edi, ecx
cmp dword [ebp + 8], esi
jbe 0x42072d
movzx ecx, byte [esi + edi]
imul eax, edx, 0x820
add ecx, eax
mov eax, edx
shr eax, 2
add ecx, eax
xor edx, ecx
inc esi
cmp esi, dword [ebp + 8]
jb 0x420712
and edx, 0x7fffffff
mov eax, edx
xor edx, edx
div dword [ebp + 0xc]
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x4209cf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [0x424878]
test esi, esi
jne 0x420a6d
push edi
push 2
pop esi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
push 0x20019
push edi
push 0x407fa8
push reloc.SHLWAPI.dll_ParseURLW
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x420a66
push ebx
push 4
pop ebx
lea eax, [ebp - 8]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], ebx
push eax
push edi
push edi
push 0x4023c8
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x420a5c
cmp dword [ebp - 4], edi
je 0x420a5c
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x407fc4
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x420a59
cmp dword [ebp - 4], edi
jne 0x420a5c
xor esi, esi
inc esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov dword [0x424878], esi
pop edi
xor eax, eax
cmp esi, 1
pop esi
sete al
mov esp, ebp
pop ebp
ret

Function at 0x420a7f
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword fs:[0x30]
xor ecx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [edi], ecx
cmp dword [eax + 0x1d4], ecx
je 0x420af0
lea eax, [ebp - 8]
push eax
push 0x407ff4
push ecx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x420adb
cmp dword [ebp - 8], 0
jne 0x420adb
lea ecx, [ebp - 4]
call fcn.00420ceb
mov esi, eax
test esi, esi
js 0x420ae0
mov ecx, dword [ebp - 4]
push edi
call fcn.00420957
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x420afd
mov esi, 0x80004005
call fcn.004209cf
test eax, eax
je 0x420afd
mov ecx, 0x407fec
jmp 0x420af5
mov ecx, 0x407fe4
push edi
call fcn.00420957
mov esi, eax
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4215eb
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
mov edi, ecx
mov word [ebp - 0x298], ax
lea eax, [ebp - 0x298]
mov dword [ebp - 0x210], 0x41
push edi
mov dword [ebp - 0x214], eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x421648
cmp ebx, edi
je 0x421641
mov edx, dword [ebp + 8]
mov ecx, ebx
push edi
call fcn.00408345
xor esi, esi
jmp 0x421753
movzx eax, word [edi]
test ax, ax
je 0x421773
cmp eax, 0x5c
je 0x421674
movzx eax, word [edi + 2]
test ax, ax
je 0x421773
cmp eax, 0x3a
je 0x421674
cmp eax, 0x7c
jne 0x421773
push 0x104
lea ecx, [ebp - 0x298]
call fcn.00421994
mov esi, eax
test esi, esi
js 0x421753
mov eax, dword [ebp - 0x214]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x210]
mov dword [ebp - 0x29c], eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, dword [ebp - 0x29c]
lea eax, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp - 0x214]
push edi
push eax
call fcn.0040e833
push 0
lea eax, [ebp - 0x29c]
push eax
push dword [ebp - 0x214]
push dword [ebp - 0x214]
call dword [sym.imp.SHLWAPI.dll_UrlCreateFromPathW]
mov esi, eax
cmp esi, 0x80004003
jne 0x42173f
push dword [ebp - 0x29c]
lea ecx, [ebp - 0x298]
call fcn.00421994
mov esi, eax
test esi, esi
js 0x421753
mov eax, dword [ebp - 0x214]
neg eax
push 0
sbb eax, eax
and eax, dword [ebp - 0x210]
mov dword [ebp - 0x29c], eax
lea eax, [ebp - 0x29c]
push eax
push dword [ebp - 0x214]
push dword [ebp - 0x214]
call dword [sym.imp.SHLWAPI.dll_UrlCreateFromPathW]
mov esi, eax
test esi, esi
js 0x421753
push dword [ebp - 0x214]
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.00408345
lea ecx, [ebp - 0x298]
call fcn.00421a36
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422f70
mov esp, ebp
pop ebp
ret 0x14
push 0x824
lea ecx, [ebp - 0x298]
call fcn.00421994
mov esi, eax
test esi, esi
js 0x421753
mov eax, dword [ebp - 0x214]
neg eax
push 2
sbb eax, eax
and eax, dword [ebp - 0x210]
mov dword [ebp - 0x29c], eax
lea eax, [ebp - 0x29c]
push eax
push dword [ebp - 0x214]
push edi
call dword [sym.imp.SHLWAPI.dll_UrlApplySchemeW]
mov esi, eax
cmp esi, 1
jne 0x42173f
mov edx, dword [ebp - 0x214]
mov eax, edx
neg eax
push ecx
sbb eax, eax
mov ecx, edi
and eax, dword [ebp - 0x210]
push eax
call fcn.00421549
mov esi, eax
test esi, esi
js 0x4217e6
cmp esi, 1
jne 0x42173f
mov eax, dword [ebp - 0x214]
neg eax
push 1
sbb eax, eax
and eax, dword [ebp - 0x210]
mov dword [ebp - 0x29c], eax
lea eax, [ebp - 0x29c]
push eax
push dword [ebp - 0x214]
push edi
call dword [sym.imp.SHLWAPI.dll_UrlApplySchemeW]
mov esi, eax
cmp esi, 1
jne 0x42173f
mov esi, 0x80041001
jmp 0x421753
Function at 0x4221b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [esi]
mov ecx, eax
shr ecx, 3
and ecx, 0x3f
lea ebx, [eax + edi*8]
cmp ebx, eax
jae 0x4221de
inc dword [esi + 4]
mov eax, edi
mov dword [esi], ebx
shr eax, 0x1d
add dword [esi + 4], eax
jmp 0x42223b
mov al, byte [edx]
dec edi
mov byte [esi + ecx + 0x18], al
inc ecx
inc edx
mov dword [ebp - 0x48], edx
cmp ecx, 0x40
jne 0x42223b
xor ebx, ebx
lea edx, [esi + 0x1a]
movzx ecx, byte [edx + 1]
movzx eax, byte [edx]
lea edx, [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 6]
shl ecx, 8
or ecx, eax
mov dword [ebp + ebx*4 - 0x44], ecx
inc ebx
cmp ebx, 0x10
jb 0x422200
lea ecx, [esi + 8]
lea edx, [ebp - 0x44]
call fcn.00421a68
mov edx, dword [ebp - 0x48]
xor ecx, ecx
test edi, edi
jne 0x4221ea
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422f70
mov esp, ebp
pop ebp
ret 4
Function at 0x42fc20
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d829b
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.004ca22d
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x42fca2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004c777d
mov eax, dword [eax]
push 0x78c284
push eax
call fcn.0049c6c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004ca4b8
test bl, bl
je 0x42fca2
push 0x78c284
lea ecx, [esp + 0xc]
call fcn.004ca894
push 0x78fdfc
lea ecx, [esp + 0xc]
call fcn.004ca894
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 0x42fcde
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004ca4b8
jmp 0x42fda9
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 0x42fd62
lea edx, [esp + 0x7c]
push 0x78fdf8
push edx
call fcn.0049c6c4
add esp, 8
test eax, eax
je 0x42fd62
lea eax, [esp + 0x7c]
push 0x78fdf4
push eax
call fcn.0049c6c4
add esp, 8
test eax, eax
je 0x42fd62
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 0x42fcf2
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.004ca4b8
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 0x4305c0
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 0x430622
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
Function at 0x430630
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d831b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x79cc24]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x430768
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x430696
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004ca4b8
xor eax, eax
jmp 0x4307df
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004ca641
push esi
lea ecx, [esp + 0xc]
call fcn.004ca8d0
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x78fe34
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4307bd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.004305c0
test eax, eax
jne 0x4307bd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.004305c0
test eax, eax
jne 0x4307bd
lea eax, [esp + 0x14]
push 0x78fe10
push eax
call fcn.0049d7b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x43079c
lea ecx, [esp + 0x14]
push 0x78fe0c
push ecx
call fcn.0049d730
mov esi, eax
add esp, 8
test esi, esi
jne 0x43079c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x43079f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004ca5f1
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4306ae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004ca4b8
xor eax, eax
jmp 0x4307df
mov byte [esi], 0
push 0x78fe08
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004ca4b8
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4