joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x4c], 0x450043
push edi
mov dword [ebp - 0x48], 0x300043
mov dword [ebp - 0x44], 0x310039
mov dword [ebp - 0x40], 0x390030
mov dword [ebp - 0x3c], 0x43002d
mov dword [ebp - 0x38], 0x350035
mov dword [ebp - 0x34], 0x2d0041
mov dword [ebp - 0x30], 0x390034
mov dword [ebp - 0x2c], 0x410038
mov dword [ebp - 0x28], 0x41002d
mov dword [ebp - 0x24], 0x330042
mov dword [ebp - 0x20], 0x2d0036
mov dword [ebp - 0x1c], 0x350043
mov dword [ebp - 0x18], 0x460041
mov dword [ebp - 0x14], 0x310030
mov dword [ebp - 0x10], 0x340045
mov dword [ebp - 0xc], 0x410039
mov dword [ebp - 8], 0x310034
mov word [ebp - 4], ax
call fcn.004023f0
mov ecx, eax
test ecx, ecx
je 0x401f58
mov eax, dword [ecx]
push 2
push 0x24
call dword [eax]
test eax, eax
je 0x401f62
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
cmp dword [eax - 8], 0x24
jl 0x401f4e
mov dword [eax - 0xc], 0x24
xor eax, eax
mov ecx, dword [esi]
push 0x48
mov word [ecx + 0x48], ax
lea eax, [ebp - 0x4c]
push eax
push 0x48
push dword [esi]
call fcn.00404590
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00402160
push 0x80004005
call fcn.00402160
call fcn.00404190
int3
Function at 0x4035e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474f4d
mov eax, dword fs:[0]
push eax
mov eax, 0x2010
call fcn.004148c0
mov eax, dword [0x4981c4]
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, dword [ebp + 8]
mov dword [ebp - 0x201c], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x2018], 0
call fcn.004023f0
mov ecx, eax
test ecx, ecx
je 0x40377f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x2014]
mov dword [ebp - 4], 0
push 1
push eax
mov dword [ebp - 0x2018], 1
call fcn.00409320
add esp, 8
mov esi, dword [ebp - 0x2014]
mov dword [ebp - 4], 1
cmp dword [esi - 0xc], 0
jne 0x40369e
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x403760
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x403760
push 0x2000
lea eax, [ebp - 0x2010]
push 0
push eax
call fcn.00416ba0
add esp, 0xc
lea eax, [ebp - 0x2010]
push esi
push 0x1000
push eax
push 0x47a334
push 0x47a384
push str.mechanism
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [ebp - 0x2014]
push 0
push 0x47a384
push str.mechanism
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x403715
mov edx, dword [ebp - 0x2014]
mov byte [ebp - 4], al
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403760
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x403760
lea ecx, [ebp - 0x2010]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403720
sub ecx, edx
lea eax, [ebp - 0x2010]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00404060
mov esi, dword [ebp - 0x2014]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x403760
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.004148a9
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00402160
int3
Function at 0x404250
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4042a9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4042a9
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 0x40429a
cmp esi, edx
jae 0x4042a9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x404288
cmp esi, edx
jae 0x4042a9
cmp word [esi], 0
je 0x4042a9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x405ec0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4751b6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4981c4]
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 edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x405f6c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x405f6c
call fcn.00405260
mov edi, eax
jmp 0x40608b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x405f8f
call fcn.00405260
jmp 0x40607e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x405fad
call fcn.00405260
jmp 0x40607e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x405fce
mov edi, 0x8007000e
jmp 0x406080
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x4060c4
jb 0x405fec
cmp eax, 0xffffffff
ja 0x4060c4
cmp eax, 0x400
jbe 0x406001
push eax
lea ecx, [ebp - 0x418]
call fcn.00405180
jmp 0x406027
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x406027
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x40603e
mov edi, 0x8007000e
jmp 0x406080
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40605e
call fcn.00405260
jmp 0x40607e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00405d20
mov edi, eax
test esi, esi
je 0x40608b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4060a4
lea ecx, [ebp - 0x418]
call fcn.00405480
mov eax, edi
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.004148a9
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00402160
int3
Function at 0x40b130
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x4981c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
js 0x40b2c4
push 0x208
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.00416ba0
add esp, 0xc
lea eax, [ebp - 0x228]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x228]
push eax
call edi
test esi, esi
jle 0x40b19f
lea eax, [ebp - 0x228]
push eax
call edi
sub esi, 1
jne 0x40b191
lea eax, [ebp - 0x63c]
mov dword [ebp - 0x63c], 0
push eax
call fcn.00407b30
mov ecx, dword [ebp - 0x63c]
mov edi, eax
add esp, 4
mov esi, edi
lea ecx, [ecx + ecx*4]
shl ecx, 4
add ecx, edi
cmp edi, ecx
je 0x40b2c4
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
nop dword [eax + eax]
push 0x208
lea eax, [ebp - 0x638]
push 0
push eax
call fcn.00416ba0
add esp, 0xc
lea eax, [ebp - 0x228]
push dword [esi + 8]
push eax
lea eax, [ebp - 0x638]
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esi]
test eax, eax
jne 0x40b2ea
cmp ecx, 2
jne 0x40b2ab
push 0x208
push eax
lea eax, [ebp - 0x430]
push eax
call fcn.00416ba0
add esp, 0xc
mov dword [ebp - 0x20], 0x61004d
lea eax, [ebp - 0x430]
mov dword [ebp - 0x1c], 0x740073
mov dword [ebp - 0x18], 0x720065
mov dword [ebp - 0x14], 0x440050
push 0
push 0x1a
push eax
push 0
mov dword [ebp - 0x10], 0x440046
mov dword [ebp - 0xc], 0x740061
mov dword [ebp - 8], 0x61
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x40b2d7
mov eax, dword [ebp - 0x63c]
add esi, 0x50
lea eax, [eax + eax*4]
shl eax, 4
add eax, edi
cmp esi, eax
jne 0x40b1e0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004148a9
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004148a9
mov esp, ebp
pop ebp
ret
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004148a9
mov esp, ebp
pop ebp
ret
Function at 0x40c980
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4981c4]
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.0040b6c0
mov edi, dword [ebp - 0xc]
test eax, eax
js 0x40ca13
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x40c9d3
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 0x40c9f1
call fcn.00405260
mov esi, eax
test esi, esi
js 0x40ca0c
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x40ca0a
call fcn.00405260
mov esi, eax
not esi
shr esi, 0x1f
jmp 0x40ca15
xor esi, esi
not esi
shr esi, 0x1f
jmp 0x40ca15
xor esi, esi
test edi, edi
je 0x40ca20
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.004148a9
mov esp, ebp
pop ebp
ret
Function at 0x4103b0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475f56
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x4981c4]
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 0x41049d
test edi, edi
je 0x4104c9
mov edx, dword [ebp + 0x10]
test edx, 0xf
jne 0x4104f5
lea eax, [edx - 0x10]
cmp dword [ebp + 0xc], eax
jbe 0x410521
cmp byte [ecx + 0x10], 0
je 0x41054d
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 0x410579
jmp 0x410475
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.004148a9
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.0040ed20
push 0x49221c
lea eax, [ebp - 0xc0]
push eax
call fcn.00415bb2
push 0x6f8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Buffer_is_NULL
lea ecx, [ebp - 0xcc]
call fcn.0040ed20
push 0x49221c
lea eax, [ebp - 0xcc]
push eax
call fcn.00415bb2
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.0040ed20
push 0x49221c
lea eax, [ebp - 0xd8]
push eax
call fcn.00415bb2
push 0x80090028
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Buffer_is_too_small
lea ecx, [ebp - 0xe4]
call fcn.0040ed20
push 0x49221c
lea eax, [ebp - 0xe4]
push eax
call fcn.00415bb2
push 0x80090027
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_IV_has_not_been_set
lea ecx, [ebp - 0xf0]
call fcn.0040ed20
push 0x49221c
lea eax, [ebp - 0xf0]
push eax
call fcn.00415bb2
push 0x98
lea ecx, [ebp - 0xb0]
call fcn.00412890
push 1
push 2
lea ecx, [ebp - 0xb0]
call fcn.0040e8b0
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 1
push str.Decrypt_1_:_CryptDecrypt_failed__
push eax
call fcn.0040e2d0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
call esi
push eax
call fcn.00410fc0
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.0040e2d0
add esp, 0xc
lea eax, [ebp - 0xb0]
push str.__0x
push eax
call fcn.0040e2d0
add esp, 8
mov ecx, eax
push 0x4135a0
call fcn.0040fc90
mov edi, eax
call esi
push eax
mov ecx, edi
call fcn.0040f9d0
push 0x480308
push eax
call fcn.0040e2d0
add esp, 8
mov dword [ebx], 0
lea eax, [ebp - 0x114]
lea ecx, [ebp - 0xb0]
push eax
call fcn.00413d80
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00412a30
push eax
lea ecx, [ebp - 0xfc]
call fcn.0040ed20
push 0x49221c
lea eax, [ebp - 0xfc]
push eax
call fcn.00415bb2
push 0
push 0
call fcn.00415bb2
int3
Function at 0x4109d0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475fd6
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x4981c4]
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 0x410ab9
test esi, esi
je 0x410ae5
mov ebx, dword [ebp + 0x10]
mov eax, ebx
and eax, 0xfffffff0
add eax, 0x10
cmp dword [ebp + 0xc], eax
jb 0x410b11
cmp byte [ecx + 0x10], 0
je 0x410b3d
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 0x410b69
jmp 0x410a91
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.004148a9
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.0040ed20
push 0x49221c
lea eax, [ebp - 0xc0]
push eax
call fcn.00415bb2
push 0x6f8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_Buffer_is_NULL
lea ecx, [ebp - 0xcc]
call fcn.0040ed20
push 0x49221c
lea eax, [ebp - 0xcc]
push eax
call fcn.00415bb2
push 0x80090028
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_Buffer_is_too_small
lea ecx, [ebp - 0xd8]
call fcn.0040ed20
push 0x49221c
lea eax, [ebp - 0xd8]
push eax
call fcn.00415bb2
push 0x80090027
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_IV_has_not_been_set
lea ecx, [ebp - 0xe4]
call fcn.0040ed20
push 0x49221c
lea eax, [ebp - 0xe4]
push eax
call fcn.00415bb2
push 0x98
lea ecx, [ebp - 0xb0]
call fcn.00412890
push 1
push 2
lea ecx, [ebp - 0xb0]
call fcn.0040e8b0
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 1
push str.Encrypt_1_:_CryptEncrypt_failed__
push eax
call fcn.0040e2d0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
call esi
push eax
call fcn.00410fc0
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.0040e2d0
add esp, 0xc
lea eax, [ebp - 0xb0]
push str.__0x
push eax
call fcn.0040e2d0
add esp, 8
mov ecx, eax
push 0x4135a0
call fcn.0040fc90
mov ebx, eax
call esi
push eax
mov ecx, ebx
call fcn.0040f9d0
push 0x480308
push eax
call fcn.0040e2d0
add esp, 8
mov dword [edi], 0
lea eax, [ebp - 0x108]
lea ecx, [ebp - 0xb0]
push eax
call fcn.00413d80
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00412a30
push eax
lea ecx, [ebp - 0xf0]
call fcn.0040ed20
push 0x49221c
lea eax, [ebp - 0xf0]
push eax
call fcn.00415bb2
push 0
push 0
call fcn.00415bb2
int3
Function at 0x4113d0
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476078
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x4981c4]
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 0x41142a
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 0x411559
test ecx, ecx
je 0x411574
mov esi, dword [ebp + 0xc]
cmp esi, 0x10
je 0x411459
cmp esi, 0x18
je 0x411459
cmp esi, 0x20
jne 0x41158f
push 0x2c
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.00416ba0
add esp, 0xc
mov dword [ebp - 0x44], 0x208
mov byte [ebp - 4], 1
cmp esi, 0x10
je 0x4114a0
cmp esi, 0x18
je 0x411492
cmp esi, 0x20
jne 0x4115aa
mov dword [ebp - 0x40], 0x6610
mov eax, esi
jmp 0x4114ac
mov dword [ebp - 0x40], 0x660f
mov eax, 0x18
jmp 0x4114ac
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.00414080
add esp, 0x10
test eax, eax
jne 0x4115c5
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 0x4115e6
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 0x411607
jmp 0x411523
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 0x411530
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.004148a9
mov esp, ebp
pop ebp
ret 8
push str.SetKey:_Provider_is_not_valid
lea ecx, [ebp - 0x58]
call fcn.0040ed20
push 0x49221c
lea eax, [ebp - 0x58]
push eax
call fcn.00415bb2
push str.SetKey:_Key_buffer_is_NULL
lea ecx, [ebp - 0x64]
call fcn.0040ed20
push 0x49221c
lea eax, [ebp - 0x64]
push eax
call fcn.00415bb2
push str.SetKey:_Key_size_is_not_valid
lea ecx, [ebp - 0x70]
call fcn.0040ed20
push 0x49221c
lea eax, [ebp - 0x70]
push eax
call fcn.00415bb2
push str.SetKey:_Key_size_is_not_valid
lea ecx, [ebp - 0x7c]
call fcn.0040ed20
push 0x49221c
lea eax, [ebp - 0x7c]
push eax
call fcn.00415bb2
push str.SetKey:_Unable_to_copy_key
lea ecx, [ebp - 0x88]
call fcn.0040ed20
push 0x49221c
lea eax, [ebp - 0x88]
push eax
call fcn.00415bb2
push str.SetKey:_Import_key_failed
lea ecx, [ebp - 0x94]
call fcn.0040ed20
push 0x49221c
lea eax, [ebp - 0x94]
push eax
call fcn.00415bb2
push str.SetKey:_Set_CBC_mode_failed
lea ecx, [ebp - 0xa0]
call fcn.0040ed20
push 0x49221c
lea eax, [ebp - 0xa0]
push eax
call fcn.00415bb2
push 0
push 0
call fcn.00415bb2
int3
Function at 0x4135d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476248
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4981c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0041414f
mov edi, eax
add esp, 4
test edi, edi
je 0x413674
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0044d311
add esp, 4
mov dword [edi + 4], eax
jmp 0x413676
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.0040e580
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov bl, al
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x4136d7
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x4136d7
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov byte [esi + 0x40], bl
jne 0x4136fa
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x41371d
cmp byte [ebp + 0xc], 0
je 0x413709
push esi
call fcn.0044e4d3
add esp, 4
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
test cl, 4
je 0x413729
mov esi, str.ios_base::badbit_set
jmp 0x413739
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.00413760
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.0040f0f0
push 0x4921a0
lea eax, [ebp - 0x30]
push eax
call fcn.00415bb2
int3

Function at 0x43eb7a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043e354

Function at 0x43eb85
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043e58f

Function at 0x43f0ff
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043ee86
Function at 0x402084
Capabilities:
Terminate process

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x4a01c8], eax
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0
push 8
push esp
call dword [sym.imp.COMCTL32.DLL_InitCommonControlsEx]
add esp, 8
mov eax, 0x4cbbe8
mov dword [0x4a01a8], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4a0184], eax
call fcn.00401e29
cmp eax, 0
mov cl, 0
jl 0x499a15
call fcn.00401ef3
cmp eax, 0
mov cl, 1
jl 0x499a15
call fcn.0046d2e5
call fcn.0046d215
call fcn.0046d0fb
push 0x4a1bb1
call fcn.0046c459
cmp eax, 0
mov cl, 2
jl 0x499a15
push 0x4a19a1
mov eax, 0x49cbb8
pop dword [eax]
push 0x4a189a
mov eax, 0x4a01b4
pop dword [eax]
push str.Project1
mov eax, 0x4a0144
pop dword [eax]
push 0x4a01ec
mov eax, 0x49d658
pop dword [eax]
push 0x4a1830
mov eax, 0x4a0170
pop dword [eax]
mov eax, 0x499a9a
push 0x49f1a0
push eax
call fcn.00401f01
call fcn.0046d277
call fcn.0046d1a6
call fcn.0046d060
call dword [sym.imp.ole32.dll_OleUninitialize]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, eax
call fcn.0049999e
mov esp, eax
call fcn.00498be4
jmp eax
movzx ecx, cl
jmp 0x499a05