joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100214f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
cmp byte [edx + 0x1199], 0
mov edi, edx
mov esi, ecx
je 0x10021541
mov edx, edi
mov ecx, esp
push 3
push 0
call fcn.100217e0
add esp, 8
movq xmm0, qword [esp]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
movd ecx, xmm0
test ecx, ecx
je 0x1002160d
movq qword [esi], xmm0
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
jmp 0x10021640
cmp byte [edi + 0x119a], 0
je 0x10021648
mov dword [esp + 0x14], esi
mov byte [edi + 0x1194], 0xc
xor edi, edi
lea esi, [0x410f8a1]
lea edx, [0x410f8a2]
mov eax, 0xfffffff9
mov dword [esp + 0x18], 0
nop word cs:[eax + eax]
nop
movzx ebx, byte [esi]
mov esi, edx
mov edx, ebx
add dl, 0xd0
cmp dl, 0xa
jb 0x100215a5
or bl, 0x20
mov edx, ebx
add dl, 0x9f
cmp dl, 6
jae 0x1002169d
add bl, 0xa9
mov edx, ebx
mov ecx, edi
movzx ebx, dl
lea edx, [esi + 1]
shl ecx, 4
or ebx, ecx
test eax, eax
cmove edx, esi
je 0x100215c6
shld dword [esp + 0x18], edi, 4
inc eax
test esi, esi
mov edi, ebx
jne 0x10021580
mov ecx, 0x410f69e
mov edx, 9
xor ebx, 0xe
call fcn.100091f0
mov edi, eax
test eax, eax
mov esi, 1
mov ecx, 0x410f68c
mov edx, 0x12
cmove edi, esi
call fcn.100091f0
mov ecx, dword [esp + 0x14]
test eax, eax
cmove eax, esi
mov dword [ecx], edi
mov dword [ecx + 4], eax
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], 0
jmp 0x10021640
movzx ecx, byte [edi + 0x118f]
cmp ecx, 0x10
jae 0x10021689
mov dword [edi + ecx*8], edx
mov dword [edi + ecx*8 + 4], eax
mov dword [esi], 0
mov eax, dword [edi + 0x1178]
add dword [edi + 0xa0], eax
adc dword [edi + 0xa4], 0
mov byte [edi + 0x1194], 0xd
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, edi
mov ecx, esp
push 2
push 0
call fcn.100217e0
add esp, 8
movq xmm0, qword [esp]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
movd ecx, xmm0
test ecx, ecx
jne 0x10021532
movzx ecx, byte [edi + 0x118f]
cmp ecx, 0x10
jb 0x10021619
mov edx, 0x10
push 0x410f8ac
jmp 0x10021693
mov edx, 0x10
push 0x410f8bc
call fcn.10004a00
add esp, 4
ud2
mov ecx, 0x41151ac
mov edx, 0xe
push 0x410ed4c
call fcn.100053c0
add esp, 4
ud2
Function at 0x10025b10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
cmp byte [edx + 0x118e], 3
mov edi, edx
mov esi, ecx
jne 0x10025b6a
movzx ecx, byte [edi + 0x1190]
cmp ecx, 0x10
jae 0x10025c62
movzx eax, byte [edi + 0xa8]
mov dword [esi], 0
and al, 1
mov byte [edi + ecx*8], al
mov eax, dword [edi + 0x1178]
add dword [edi + 0xa0], eax
adc dword [edi + 0xa4], 0
mov byte [edi + 0x1194], 0xd
jmp 0x10025c5a
lea ecx, [esp + 8]
mov edx, edi
push 0
push 0
call fcn.100217e0
add esp, 8
movq xmm0, qword [esp + 8]
movd eax, xmm0
test eax, eax
je 0x10025ba1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
movq qword [esi], xmm0
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
jmp 0x10025c5a
mov dword [esp], esi
mov byte [edi + 0x1194], 0xc
xor edi, edi
lea esi, [0x410f865]
lea edx, [0x410f866]
mov eax, 0xfffffff9
mov dword [esp + 4], 0
nop word cs:[eax + eax]
movzx ebx, byte [esi]
mov esi, edx
mov edx, ebx
add dl, 0xd0
cmp dl, 0xa
jb 0x10025bf5
or bl, 0x20
mov edx, ebx
add dl, 0x9f
cmp dl, 6
jae 0x10025c76
add bl, 0xa9
mov edx, ebx
mov ecx, edi
movzx ebx, dl
lea edx, [esi + 1]
shl ecx, 4
or ebx, ecx
test eax, eax
cmove edx, esi
je 0x10025c16
shld dword [esp + 4], edi, 4
inc eax
test esi, esi
mov edi, ebx
jne 0x10025bd0
mov ecx, 0x410f69e
mov edx, 9
xor ebx, 0x1a
call fcn.100091f0
mov edi, eax
test eax, eax
mov esi, 1
mov ecx, 0x410f68c
mov edx, 0x12
cmove edi, esi
call fcn.100091f0
mov ecx, dword [esp]
test eax, eax
cmove eax, esi
mov dword [ecx], edi
mov dword [ecx + 4], eax
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, 0x10
push 0x410f890
call fcn.10004a00
add esp, 4
ud2
mov ecx, 0x41151ac
mov edx, 0xe
push 0x410ed4c
call fcn.100053c0
add esp, 4
ud2
Function at 0x10034550
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0x14]
movzx esi, byte [ebp + 0x18]
mov edi, ecx
mov ecx, dword [ebp + 0x10]
or eax, dword [ebp + 8]
or esi, edx
mov edx, dword [ebp + 0xc]
and ecx, 0xfffff000
or esi, ecx
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.10030320
add esp, 8
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x100345a2
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov dword [edi], eax
mov dword [edi + 4], edx
mov dword [edi + 0xc], ecx
mov dword [edi + 8], esi
jmp 0x10034679
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], edi
xor edi, edi
lea esi, [0x4113069]
mov ecx, 0xfffffff9
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], eax
lea eax, [0x411306a]
nop word cs:[eax + eax]
nop
movzx ebx, byte [esi]
mov esi, eax
mov eax, ebx
add al, 0xd0
cmp al, 0xa
jb 0x100345f1
or bl, 0x20
mov eax, ebx
add al, 0x9f
cmp al, 6
jae 0x10034681
add bl, 0xa9
mov eax, ebx
mov edx, edi
movzx ebx, al
lea eax, [esi + 1]
shl edx, 4
or ebx, edx
test ecx, ecx
cmove eax, esi
je 0x10034611
shld dword [ebp - 0x18], edi, 4
inc ecx
test esi, esi
mov edi, ebx
jne 0x100345d0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10034632
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
and eax, 0xfff
movzx eax, byte [ecx + eax]
mov byte [edx + 4], al
mov dword [edx], 0
jmp 0x10034679
mov ecx, 0x4116869
mov edx, 0x13
xor ebx, 0x2c7
call fcn.100091f0
mov ecx, 0x4116845
mov edx, 6
mov edi, eax
call fcn.100091f0
mov edx, dword [ebp - 0x10]
test eax, eax
mov ecx, 1
cmove eax, ecx
test edi, edi
cmove edi, ecx
mov dword [edx], edi
mov dword [edx + 4], eax
mov dword [edx + 8], ebx
mov dword [edx + 0xc], 0
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x41151ac
mov edx, 0xe
push 0x410ed4c
call fcn.100053c0
add esp, 4
ud2
Function at 0x4069c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4069e9
xor eax, eax
test eax, eax
je 0x4069fc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4069fc
xor ecx, ecx
jmp 0x4069ff
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b22
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dec], 0
push esi
jne 0x406b59
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b33
mov dword [ecx*4 + 0x427de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406b8a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427de8]
xor eax, esi
inc ecx
dec edx
jne 0x406b6c
pop edi
not eax
pop esi
ret 0xc

Function at 0x521b22
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x45fdec], 0
push esi
jne 0x521b59
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x521b33
mov dword [ecx*4 + 0x45fde8], eax
inc ecx
cmp ecx, 0x100
jl 0x521b2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x521b8a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x45fde8]
xor eax, esi
inc ecx
dec edx
jne 0x521b6c
pop edi
not eax
pop esi
ret 0xc
Function at 0x401000
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
sub esp, 0xa28
mov ecx, 0x41
xor eax, eax
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x420]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x424]
push eax
push 2
push 0
call dword [sym.imp.USER32.dll_LoadStringW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 5
push 0
call ebx
mov ebp, dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x428]
push eax
push ecx
push 0
push 0
call ebp
mov esi, eax
cmp esi, 0x20
jge 0x401149
cmp esi, 2
jne 0x401149
lea edx, [esp + 0x10]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
push 0x104
push edx
rep stosd dword es:[edi], eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x10]
mov word [esp + 0x216], 0
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x628]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x420]
lea eax, [esp + 0x628]
push ecx
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 5
push 0
call ebx
lea ecx, [esp + 0x630]
push eax
push ecx
push 0
push 0
call ebp
mov esi, eax
cmp esi, 0x20
jge 0x401149
cmp esi, 2
jne 0x401149
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x218]
lea edx, [esp + 0x218]
push 0x104
push edx
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
xor ebx, ebx
push 1
push ebx
call edi
lea eax, [esp + 0x830]
push 0x104
push eax
push 3
push ebx
mov word [esp + 0x42e], bx
call edi
lea ecx, [esp + 0x830]
push ebx
lea edx, [esp + 0x21c]
push ecx
push edx
push ebx
mov word [esp + 0xa46], bx
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
cmp esi, 0x20
setg al
dec eax
pop edi
and eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xa28
ret 0x10
Function at 0x402061
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4070e0
cmp edx, dword [eax]
je 0x402083
add eax, 8
inc ecx
cmp eax, 0x407170
jl 0x402074
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4070e0]
jne 0x4021b1
mov eax, dword [0x4094c8]
cmp eax, 1
je 0x40218b
test eax, eax
jne 0x4020b4
cmp dword [0x407034], 1
je 0x40218b
cmp edx, 0xfc
je 0x4021b1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4020eb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402750
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402900
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40212e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402900
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406400
push edi
call fcn.004049a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402750
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402760
lea eax, [ebp - 0xa0]
push 0x4063e0
push eax
call fcn.00402760
push dword [esi + 0x4070e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402760
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404915
add esp, 0x2c
pop edi
jmp 0x4021b1
lea eax, [ebp + 8]
lea esi, [esi + 0x4070e4]
push 0
push eax
push dword [esi]
call fcn.00402900
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x405882
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x4188c8], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x4058c6
call ebx
test eax, eax
jns 0x4058bc
push 0x401634
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x401628
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4188c4], eax
mov dword [0x4188c8], 1
mov eax, dword [0x4188c4]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x4058e2
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x405912
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x405908
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x4058fc
push dword [eax + 8]
call dword [eax]
jmp 0x405902
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x405911
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x405dff
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x405e2b
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405e2b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x405e2d
xor eax, eax
ret 8
Function at 0x409190
Capabilities:
Contain obfuscated stackstrings
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x41888c]
push edi
push 0xf0000000
xor edi, edi
push 0x18
push edi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x420]
push eax
mov dword [ebp - 0x428], 0x20
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x41c], edi
mov byte [ebp - 0x18], 0x28
mov byte [ebp - 0x17], 0xee
mov byte [ebp - 0x16], 0xa1
mov byte [ebp - 0x15], 0xc7
mov byte [ebp - 0x14], 0x6f
mov byte [ebp - 0x13], 0x76
mov byte [ebp - 0x12], 0x70
mov byte [ebp - 0x11], 0x86
mov byte [ebp - 0x10], 0x3e
mov byte [ebp - 0xf], 0xa6
mov byte [ebp - 0xe], 0xb6
mov byte [ebp - 0xd], 0xd6
mov byte [ebp - 0xc], 0x5c
mov byte [ebp - 0xb], 0x56
mov byte [ebp - 0xa], 0xcf
mov byte [ebp - 9], 0x3b
mov byte [ebp - 8], 0x92
mov byte [ebp - 7], 0xae
mov byte [ebp - 6], 0x5a
mov byte [ebp - 5], 0x25
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x409313
push ebx
push esi
lea eax, [ebp - 0x41c]
push eax
push edi
push edi
push 0x800c
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40924f
xor esi, esi
jmp 0x409302
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push edi
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x41c]
call esi
test eax, eax
jne 0x40926f
xor esi, esi
jmp 0x4092f6
push 0x401984
push dword [ebp + 8]
mov dword [ebp - 0x424], edi
call dword [sym.imp.msvcrt.dll__wfopen]
mov ebx, eax
cmp ebx, edi
pop ecx
pop ecx
je 0x4092d6
push ebx
push 0x400
lea eax, [ebp - 0x418]
push 1
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, edi
jbe 0x4092ce
add dword [ebp - 0x424], eax
push edi
push eax
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x41c]
call esi
test eax, eax
je 0x409320
cmp dword [ebp - 0x424], 0x5000
jb 0x40928b
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
push edi
lea eax, [ebp - 0x428]
push eax
push dword [ebp + 0xc]
push 2
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
xor esi, esi
test eax, eax
je 0x4092f6
inc esi
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.004140c9
leave
ret 8
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
xor eax, eax
jmp 0x409311
Function at 0x409345
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x41888c]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 8
pop ecx
push 0xf0000000
push 0x18
push 0x401990
xor ebx, ebx
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x30], cl
mov byte [ebp - 0x2f], 2
mov word [ebp - 0x2e], bx
mov dword [ebp - 0x2c], 0x6610
mov dword [ebp - 0x28], 0x20
lea edi, [ebp - 0x24]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x409432
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 0x2c
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
xor edi, edi
test eax, eax
je 0x409426
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push ebx
lea eax, [ebp - 0x34]
push eax
push 4
push dword [ebp + 0xc]
inc edi
mov dword [ebp - 0x34], edi
call esi
test eax, eax
jne 0x4093d4
xor edi, edi
jmp 0x40941d
push ebx
lea eax, [ebp - 0x34]
push eax
push 3
push dword [ebp + 0xc]
mov dword [ebp - 0x34], edi
call esi
test eax, eax
je 0x4093d0
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::data_void_const]
push eax
push ebx
push edi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x4093d0
push dword [ebp - 0x38]
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_int_]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push ebx
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004140c9
leave
ret 8
Function at 0x4096ae
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push edi
lea ebx, [ecx + eax + 0x18]
jbe 0x409790
add ebx, 0x10
mov eax, dword [ebx]
test eax, eax
jne 0x40972b
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x40977b
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push edi
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x40979a
mov edx, dword [ebx - 4]
add edx, dword [ebp - 4]
mov ecx, edi
mov dword [ebx - 8], edx
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x40977b
mov ecx, dword [ebx + 4]
add ecx, eax
mov eax, dword [ebp + 0xc]
push ecx
call fcn.00409696
test eax, eax
je 0x40979a
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push dword [ebx]
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x40979a
mov eax, dword [ebx - 4]
mov ecx, dword [ebx]
add eax, dword [ebp - 4]
mov esi, dword [ebx + 4]
add esi, dword [ebp + 8]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov dword [ebx - 8], eax
mov eax, dword [esi]
movzx eax, word [eax + 6]
inc dword [ebp - 8]
add ebx, 0x28
cmp dword [ebp - 8], eax
jl 0x4096db
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
xor eax, eax
jmp 0x409793
Function at 0x40a911
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
push 0xd
mov edx, ecx
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x104b
push dword [edx + 4]
mov dword [ebp - 0x34], 4
call dword [sym.imp.USER32.dll_SendMessageW]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x14]
pop edi
leave
ret 4

Function at 0x40a99f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x40a9ea
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 4]
call fcn.0040a421
test eax, eax
je 0x40a9ea
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.0040a3f7
jmp 0x40a9ec
xor eax, eax
pop esi
leave
ret 8

Function at 0x40b4e1
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4146bd
call fcn.004143d0
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
and dword [ebp - 4], 0
push 0x1c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
mov byte [ebp - 4], 1
je 0x40b514
mov ecx, eax
call fcn.0040a25d
mov ebx, eax
jmp 0x40b516
xor ebx, ebx
test ebx, ebx
mov byte [ebp - 4], 0
mov dword [ebp - 0x10], ebx
jne 0x40b526
or esi, 0xffffffff
jmp 0x40b583
push edi
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
lea ecx, [esi + 0x30]
mov eax, dword [ecx + 4]
lea edx, [ebp - 0x10]
push edx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040b134
push 0xd
pop ecx
xor eax, eax
push eax
push eax
push 0x1004
push dword [esi + 4]
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x48], 4
call edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0x104d
push dword [esi + 4]
mov dword [ebp - 0x28], ebx
call edi
mov esi, eax
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10