joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c1fc0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f15bb
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x527354]
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, ecx
mov edx, dword [edi]
mov eax, dword [ebp + 8]
push eax
call dword [edx]
cmp byte [edi + 0xc], 0
je 0x4c20f6
mov ebx, dword [edi + 0x14]
lea esi, [edi + 0x20]
push 0x180
push 0x40
push 0x8109
push ebx
push esi
call fcn.004b9c75
add esp, 0x14
mov dword [ebp - 0xac], eax
test eax, eax
je 0x4c20d6
push 0x98
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.004717b0
add esp, 0xc
lea ecx, [ebp - 0xa8]
push 1
push 2
call fcn.004bedb0
push 0x50c2d0
push dword [ebp - 0xac]
lea eax, [ebp - 0xa8]
mov dword [ebp - 4], 0
push str._error.__
push ebx
push str.open
push eax
call fcn.00431fb0
add esp, 8
push eax
call fcn.00431fb0
add esp, 8
push eax
call fcn.00431fb0
add esp, 8
mov ecx, eax
call fcn.00433e80
push eax
call fcn.00431fb0
add esp, 8
lea eax, [ebp - 0xd8]
lea ecx, [ebp - 0xa8]
push eax
call fcn.004c1f00
cmp dword [eax + 0x14], 8
jb 0x4c20b9
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0xd8]
call fcn.0040bde0
lea ecx, [ebp - 0xa8]
call fcn.00434160
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4c20ec
push 2
push 0
push eax
call fcn.004ba01d
add esp, 0xc
jmp 0x4c20ef
or eax, 0xffffffff
mov dword [edi + 8], eax
mov byte [edi + 0xc], 0
mov eax, dword [edi + 4]
mov dword [ebp - 0xc0], eax
test eax, eax
je 0x4c2214
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor bl, bl
push 0
push eax
call esi
test eax, eax
movzx edx, bl
mov ecx, 1
cmove edx, ecx
mov dword [ebp - 0xac], edx
test dl, dl
jne 0x4c2149
cmp dword [ebp + 0xc], 0
je 0x4c2141
push 0xffffffffffffffff
push dword [edi + 4]
call esi
mov byte [ebp - 0xac], 1
jmp 0x4c2149
test dl, dl
je 0x4c2214
lea ecx, [edi + 0x24]
mov dword [ebp - 0xb8], 0
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
cmp eax, ecx
je 0x4c21ed
mov esi, dword [ecx]
mov dword [ecx], 0
mov edx, dword [ecx + 4]
mov dword [ecx + 4], 0
mov eax, dword [ecx + 8]
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xbc], edx
mov dword [ebp - 0xb4], edx
mov dword [ebp - 0xb0], eax
mov dword [ecx + 8], 0
cmp esi, edx
je 0x4c21ed
nop dword [eax]
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x4c21ba
mov ecx, dword [esi]
mov eax, dword [edi + 0x20]
cmp eax, 0xffffffff
je 0x4c21d9
push dword [esi + 0x10]
push ecx
push eax
call fcn.004abead
mov edx, dword [ebp - 0xbc]
add esp, 0xc
mov ecx, eax
jmp 0x4c21dc
or ecx, 0xffffffff
mov ebx, dword [edi + 8]
add esi, 0x18
add ebx, ecx
mov dword [edi + 8], ebx
cmp esi, edx
jne 0x4c21b0
jmp 0x4c21f0
mov ebx, dword [edi + 8]
lea ecx, [ebp - 0xb8]
call fcn.0042ccd0
cmp byte [ebp - 0xac], 0
je 0x4c2210
push dword [ebp - 0xc0]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
jmp 0x4c2217
mov eax, dword [edi + 8]
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.0042788a
mov esp, ebp
pop ebp
ret 8
Function at 0x4db880
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3af8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x527354]
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 + 0x10]
mov edx, 2
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov ecx, dword [eax]
mov eax, ecx
add ecx, 0xa
shr eax, 6
add eax, ecx
xor ecx, ecx
mov dword [ebp - 0x2c], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042792c
mov ecx, dword [ebp - 0x2c]
mov edi, eax
add ecx, ecx
push ecx
push 0
push edi
call fcn.004717b0
add esp, 0x10
lea eax, [ebp - 0x2c]
push eax
push edi
push SysReAllocString
push dword [ebp + 0xc]
push esi
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov ecx, edi
mov dword [ebp - 0x18], 0
mov esi, eax
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4db924
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.0040e0f0
push 2
push edi
mov dword [ebp - 4], 0
call fcn.0042747a
mov ebx, dword [ebp - 0x14]
add esp, 8
mov edi, dword [ebp - 0x28]
test esi, esi
je 0x4dba26
cmp ebx, 8
lea eax, [ebp - 0x28]
cmovae eax, edi
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x30], edx
nop dword [eax]
cmp ebx, 8
lea ecx, [ebp - 0x28]
cmovae ecx, edi
lea ecx, [ecx + edx*2]
cmp eax, ecx
je 0x4db9f4
cmp word [eax], 0xa
jne 0x4db9ec
cmp ebx, 8
lea ecx, [ebp - 0x28]
cmovae ecx, edi
sub eax, ecx
sar eax, 1
cmp edx, eax
jb 0x4dba74
mov ecx, edx
lea esi, [eax + eax]
sub ecx, eax
mov edx, 1
cmp ecx, edx
cmovb edx, ecx
cmp ebx, 8
mov ebx, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
cmovae ecx, edi
sub ebx, edx
mov dword [ebp - 0x18], ebx
add ecx, esi
sub ebx, eax
lea eax, [ebx*2 + 2]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call fcn.00471ff0
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
add esp, 0xc
cmp ebx, 8
cmovae eax, edi
add eax, esi
jmp 0x4db966
add eax, 2
jmp 0x4db970
mov esi, dword [ebp - 0x34]
mov ecx, dword [esi]
cmp edx, ecx
jbe 0x4dba01
xor esi, esi
jmp 0x4dba26
cmp ebx, 8
lea eax, [ebp - 0x28]
push edx
cmovae eax, edi
push eax
push ecx
push dword [ebp - 0x38]
call fcn.0049b69a
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov dword [esi], eax
mov esi, dword [ebp - 0x3c]
cmp ebx, 8
jb 0x4dba56
lea ebx, [ebx*2 + 2]
mov eax, edi
cmp ebx, 0x1000
jb 0x4dba4c
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4dba79
push ebx
push edi
call fcn.0042747a
add esp, 8
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 - 0x10]
xor ecx, ebp
call fcn.0042788a
mov esp, ebp
pop ebp
ret
call fcn.00413360
call fcn.0047b0d8
int3
Function at 0x4dd2b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x527354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0
push 0
push 0x80
push 2
push 1
push 0x40000000
push eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.004dbff0
mov edi, dword [ebp - 0xc]
test eax, eax
js 0x4dd343
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x4dd303
mov esi, dword [esi]
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4dd321
call fcn.00410860
mov esi, eax
test esi, esi
js 0x4dd33c
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x4dd33a
call fcn.00410860
mov esi, eax
not esi
shr esi, 0x1f
jmp 0x4dd345
xor esi, esi
not esi
shr esi, 0x1f
jmp 0x4dd345
xor esi, esi
test edi, edi
je 0x4dd350
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042788a
mov esp, ebp
pop ebp
ret
Function at 0x4df090
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3fa6
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x527354]
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 esi, dword [ecx + 8]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 4], 0
test esi, esi
je 0x4df17d
test edi, edi
je 0x4df1a9
mov edx, dword [ebp + 0x10]
test edx, 0xf
jne 0x4df1d5
lea eax, [edx - 0x10]
cmp dword [ebp + 0xc], eax
jbe 0x4df201
cmp byte [ecx + 0x10], 0
je 0x4df22d
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edx
push eax
push edi
push 0
push 1
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov ecx, eax
test ecx, ecx
je 0x4df259
jmp 0x4df155
mov eax, dword [ebp - 0x18]
mov dword [ebx], eax
test ecx, ecx
setne al
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.0042788a
mov esp, ebp
pop ebp
ret 0x10
push 0x80090003
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Key_is_not_valid
lea ecx, [ebp - 0xc0]
call fcn.004deac0
push 0x52422c
lea eax, [ebp - 0xc0]
push eax
call fcn.004711bd
push 0x6f8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Buffer_is_NULL
lea ecx, [ebp - 0xcc]
call fcn.004deac0
push 0x52422c
lea eax, [ebp - 0xcc]
push eax
call fcn.004711bd
push 0x80090005
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Data_size_is_not_a_multple_of_block_size
lea ecx, [ebp - 0xd8]
call fcn.004deac0
push 0x52422c
lea eax, [ebp - 0xd8]
push eax
call fcn.004711bd
push 0x80090028
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Buffer_is_too_small
lea ecx, [ebp - 0xe4]
call fcn.004deac0
push 0x52422c
lea eax, [ebp - 0xe4]
push eax
call fcn.004711bd
push 0x80090027
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_IV_has_not_been_set
lea ecx, [ebp - 0xf0]
call fcn.004deac0
push 0x52422c
lea eax, [ebp - 0xf0]
push eax
call fcn.004711bd
push 0x98
lea ecx, [ebp - 0xb0]
call fcn.004e04d0
push 1
push 2
lea ecx, [ebp - 0xb0]
call fcn.00444630
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 1
push str.Decrypt_1_:_CryptDecrypt_failed__
push eax
call fcn.00443430
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
call esi
push eax
call fcn.004dfca0
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00443430
add esp, 0xc
lea eax, [ebp - 0xb0]
push str.__0x
push eax
call fcn.00443430
add esp, 8
mov ecx, eax
push 0x4e04f0
call fcn.004deeb0
mov edi, eax
call esi
push eax
mov ecx, edi
call fcn.004debf0
push 0x510758
push eax
call fcn.00443430
add esp, 8
mov dword [ebx], 0
lea eax, [ebp - 0x114]
lea ecx, [ebp - 0xb0]
push eax
call fcn.0044c250
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.004c3d3a
push eax
lea ecx, [ebp - 0xfc]
call fcn.004deac0
push 0x52422c
lea eax, [ebp - 0xfc]
push eax
call fcn.004711bd
push 0
push 0
call fcn.004711bd
int3
Function at 0x4df6b0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4026
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x527354]
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 edx, dword [ecx + 8]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 4], 0
test edx, edx
je 0x4df799
test esi, esi
je 0x4df7c5
mov ebx, dword [ebp + 0x10]
mov eax, ebx
and eax, 0xfffffff0
add eax, 0x10
cmp dword [ebp + 0xc], eax
jb 0x4df7f1
cmp byte [ecx + 0x10], 0
je 0x4df81d
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push esi
push 0
push 1
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov ecx, eax
test ecx, ecx
je 0x4df849
jmp 0x4df771
mov eax, dword [ebp - 0x18]
mov dword [edi], eax
test ecx, ecx
setne al
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.0042788a
mov esp, ebp
pop ebp
ret 0x10
push 0x80090003
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_Key_is_not_valid
lea ecx, [ebp - 0xc0]
call fcn.004deac0
push 0x52422c
lea eax, [ebp - 0xc0]
push eax
call fcn.004711bd
push 0x6f8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_Buffer_is_NULL
lea ecx, [ebp - 0xcc]
call fcn.004deac0
push 0x52422c
lea eax, [ebp - 0xcc]
push eax
call fcn.004711bd
push 0x80090028
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_Buffer_is_too_small
lea ecx, [ebp - 0xd8]
call fcn.004deac0
push 0x52422c
lea eax, [ebp - 0xd8]
push eax
call fcn.004711bd
push 0x80090027
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_IV_has_not_been_set
lea ecx, [ebp - 0xe4]
call fcn.004deac0
push 0x52422c
lea eax, [ebp - 0xe4]
push eax
call fcn.004711bd
push 0x98
lea ecx, [ebp - 0xb0]
call fcn.004e04d0
push 1
push 2
lea ecx, [ebp - 0xb0]
call fcn.00444630
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 1
push str.Encrypt_1_:_CryptEncrypt_failed__
push eax
call fcn.00443430
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
call esi
push eax
call fcn.004dfca0
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00443430
add esp, 0xc
lea eax, [ebp - 0xb0]
push str.__0x
push eax
call fcn.00443430
add esp, 8
mov ecx, eax
push 0x4e04f0
call fcn.004deeb0
mov ebx, eax
call esi
push eax
mov ecx, ebx
call fcn.004debf0
push 0x510758
push eax
call fcn.00443430
add esp, 8
mov dword [edi], 0
lea eax, [ebp - 0x108]
lea ecx, [ebp - 0xb0]
push eax
call fcn.0044c250
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.004c3d3a
push eax
lea ecx, [ebp - 0xf0]
call fcn.004deac0
push 0x52422c
lea eax, [ebp - 0xf0]
push eax
call fcn.004711bd
push 0
push 0
call fcn.004711bd
int3
Function at 0x4e00b0
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f40c8
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x527354]
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 edi, ecx
mov eax, dword [edi + 8]
lea ebx, [edi + 8]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x4e010a
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [ebp - 0x18]
mov dword [ebx], 0
mov byte [edi + 0x10], 0
cmp dword [edi + 4], 0
mov dword [ebp - 4], 0
je 0x4e0239
test ecx, ecx
je 0x4e0254
mov esi, dword [ebp + 0xc]
cmp esi, 0x10
je 0x4e0139
cmp esi, 0x18
je 0x4e0139
cmp esi, 0x20
jne 0x4e026f
push 0x2c
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.004717b0
add esp, 0xc
mov dword [ebp - 0x44], 0x208
mov byte [ebp - 4], 1
cmp esi, 0x10
je 0x4e0180
cmp esi, 0x18
je 0x4e0172
cmp esi, 0x20
jne 0x4e028a
mov dword [ebp - 0x40], 0x6610
mov eax, esi
jmp 0x4e018c
mov dword [ebp - 0x40], 0x660f
mov eax, 0x18
jmp 0x4e018c
mov dword [ebp - 0x40], 0x660e
mov eax, 0x10
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004e0510
add esp, 0x10
test eax, eax
jne 0x4e02a5
push ebx
push 0
push 0
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x4e02c6
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 4
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x4e02e7
jmp 0x4e0203
mov al, 1
lea ecx, [ebp - 0x44]
mov edx, 4
nop dword [eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x4e0210
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.0042788a
mov esp, ebp
pop ebp
ret 8
push str.SetKey:_Provider_is_not_valid
lea ecx, [ebp - 0x58]
call fcn.004deac0
push 0x52422c
lea eax, [ebp - 0x58]
push eax
call fcn.004711bd
push str.SetKey:_Key_buffer_is_NULL
lea ecx, [ebp - 0x64]
call fcn.004deac0
push 0x52422c
lea eax, [ebp - 0x64]
push eax
call fcn.004711bd
push str.SetKey:_Key_size_is_not_valid
lea ecx, [ebp - 0x70]
call fcn.004deac0
push 0x52422c
lea eax, [ebp - 0x70]
push eax
call fcn.004711bd
push str.SetKey:_Key_size_is_not_valid
lea ecx, [ebp - 0x7c]
call fcn.004deac0
push 0x52422c
lea eax, [ebp - 0x7c]
push eax
call fcn.004711bd
push str.SetKey:_Unable_to_copy_key
lea ecx, [ebp - 0x88]
call fcn.004deac0
push 0x52422c
lea eax, [ebp - 0x88]
push eax
call fcn.004711bd
push str.SetKey:_Import_key_failed
lea ecx, [ebp - 0x94]
call fcn.004deac0
push 0x52422c
lea eax, [ebp - 0x94]
push eax
call fcn.004711bd
push str.SetKey:_Set_CBC_mode_failed
lea ecx, [ebp - 0xa0]
call fcn.004deac0
push 0x52422c
lea eax, [ebp - 0xa0]
push eax
call fcn.004711bd
push 0
push 0
call fcn.004711bd
int3
Function at 0x405c70
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d92a2
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x50d080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0xc], 0
je 0x405ccc
mov dword [ebx], 0x4f4644
mov dword [ebx + 0x10], 0x4f463c
mov dword [ebx + 0x68], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
push 0
lea edi, [ebx + 0x18]
mov ecx, ebx
push edi
call fcn.00409590
lea edx, [ebx + 0x10]
mov dword [ebp + 0xc], edx
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [edx + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + ebx - 4], eax
mov dword [ebp - 4], 4
mov eax, dword [ebx]
push 8
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebp + 0xc], edi
lea eax, [ecx - 0x68]
mov dword [ecx + ebx - 4], eax
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0047cf41
add esp, 4
mov esi, eax
push 1
mov byte [ebp - 4], 5
call fcn.004632e8
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov ebx, dword [ebp + 8]
mov dword [edi + 0xc], eax
add esp, 4
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 [edi + 0x34], esi
mov dword [ecx], 0
mov ecx, ebx
mov eax, dword [edi + 0x20]
not ecx
and ecx, 1
shl ecx, 2
mov edx, ecx
mov dword [eax], 0
or edx, 2
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, ebx
and al, 2
mov dword [edi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [edi + 0x38], 0
mov eax, ebx
cmovne edx, ecx
mov ecx, edx
or ecx, 8
and al, 8
cmove ecx, edx
mov eax, ecx
or eax, 0x10
and bl, 4
cmove eax, ecx
mov dword [edi + 0x3c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40ea80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
push str.advapi32.dll
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x40eaab
mov ecx, str.advapi32.dll
call fcn.0040f280
mov ebx, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4f4688
push ebx
call esi
push str.RegCreateKeyExW
push ebx
mov dword [edi + 4], eax
call esi
push 0x4f46a8
push ebx
mov dword [edi + 8], eax
call esi
push str.RegSetValueExW
push ebx
mov dword [edi + 0x10], eax
call esi
push str.RegEnumKeyExW
push ebx
mov dword [edi + 0x14], eax
call esi
push str.RegEnumValueW
push ebx
mov dword [edi + 0x18], eax
call esi
push str.RegDeleteValueW
push ebx
mov dword [edi + 0x1c], eax
call esi
push 0x4f46fc
push ebx
mov dword [edi + 0x20], eax
call esi
mov ecx, dword [edi]
mov dword [edi + 0xc], eax
test ecx, ecx
je 0x40eb18
push ecx
call eax
mov dword [edi], 0
cmp dword [ebp + 0x10], 0
je 0x40eb37
mov eax, dword [edi + 4]
push edi
push 1
push 0
push dword [ebp + 8]
push dword [ebp + 0xc]
call eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
mov eax, dword [edi + 8]
push edi
push 0
push 0xf003f
push 0
push 0x4f4708
push 0
push dword [ebp + 8]
push dword [ebp + 0xc]
call eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x411d10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9dfb
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x50d080]
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 esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push eax
push 0x104
mov dword [ebp - 0x238], esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x411ed3
lea eax, [ebp - 0x21c]
push eax
call fcn.004ac19c
mov ax, word [ebp - 0x21c]
lea ebx, [ebp - 0x21c]
add esp, 4
test ax, ax
je 0x411ed3
movzx ecx, ax
nop dword [eax]
movzx eax, cx
mov dword [ebp - 0x23c], eax
cmp cx, 0x43
jb 0x411ea6
push ecx
lea eax, [ebp - 0x234]
push eax
call fcn.00412780
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x224]
test edi, edi
je 0x411e63
mov edx, dword [esi]
mov esi, edx
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x411df7
mov ecx, dword [ebp - 0x23c]
cmp word [eax + 0x10], cx
jae 0x411de3
mov eax, dword [eax + 8]
jmp 0x411de7
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x411dd8
cmp esi, edx
je 0x411df7
cmp cx, word [esi + 0x10]
jae 0x411e3b
lea eax, [ebp - 0x23c]
push ecx
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x240]
push eax
push ecx
mov ecx, dword [ebp - 0x238]
call fcn.00415200
mov ecx, dword [ebp - 0x238]
push eax
add eax, 0x10
push eax
push esi
lea eax, [ebp - 0x244]
push eax
call fcn.00415240
mov esi, dword [ebp - 0x244]
mov edi, dword [ebp - 0x224]
lea ecx, [esi + 0x14]
lea eax, [ebp - 0x234]
cmp ecx, eax
je 0x411e5d
cmp dword [ebp - 0x220], 8
push edi
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.00410170
mov esi, dword [ebp - 0x238]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x411ea6
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411e9c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ef8
push edx
push ecx
call fcn.0047cf71
add esp, 8
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411eb0
sub ecx, edx
sar ecx, 1
lea ebx, [ebx + ecx*2]
add ebx, 2
movzx eax, word [ebx]
mov ecx, eax
test ax, ax
jne 0x411d90
cmp dword [esi + 4], 0
setne al
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.0047cf84
mov esp, ebp
pop ebp
ret 4
call fcn.004896ff
int3