joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e30
Capabilities:
Accept command line arguments
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit

Function at 0x402ea0
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x402f07
xor ecx, ecx
xor edx, edx
jmp 0x402ee9
cmp ax, 0x5c
jne 0x402f78
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x402f07
cmp ax, 9
je 0x402ef5
cmp ax, 0x20
jne 0x402ed0
test ecx, ecx
je 0x402f63
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x402ee9
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x402f98
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.wWinMain@16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x402f60
cmp ax, 0x20
je 0x402f60
jmp 0x402f07
cmp ax, 0x22
jne 0x402ef9
and edx, 1
jne 0x402ef9
xor ecx, 1
jmp 0x402edd
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x402f20
Function at 0x10017ac0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x10017afa
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
push 0x5d88
push dword [ebp - 0xc]
push 0x4911
push 1
push 0x4c30
push 0x7f56
call fcn.10017b81
add esp, 0x18
jmp 0x10017b7d
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x10017b3d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x803
push 0x1398
push 0x1edb
push 0
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
jmp 0x10017b7d
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 1
jl 0x10017b71
mov dword [ebp - 8], 1
jmp 0x10017b75
and dword [ebp - 8], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1002033c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x10020375
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push 0x22ea
push 0x614f
push 1
call fcn.10020507
add esp, 0x14
jmp 0x10020503
lea eax, [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax]
test eax, eax
je 0x100204ef
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x100203e5
mov dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x60]
mov dword [eax], ecx
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0x100204ed
mov dword [ebp - 8], 0x9d01
mov dword [ebp - 0x34], 0xfa1a8f1e
mov eax, dword [ebp - 8]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x1002042f
cmp dword [ebp - 8], 0xe55a4419
jb 0x10020413
mov dword [ebp - 0x14], 1
jmp 0x10020417
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x14], eax
jg 0x10020428
mov dword [ebp - 0x18], 1
jmp 0x1002042c
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x9150
jle 0x10020443
mov dword [ebp - 0x1c], 1
jmp 0x10020447
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0x4082
jl 0x10020459
mov dword [ebp - 0x20], 1
jmp 0x1002045d
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
add eax, 0xffff
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ecx]
jge 0x10020475
mov dword [ebp - 0x24], 1
jmp 0x10020479
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ecx]
jle 0x1002048f
mov dword [ebp - 0x28], 1
jmp 0x10020493
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x28], eax
jl 0x100204a4
mov dword [ebp - 0x2c], 1
jmp 0x100204a8
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x2c]
cmp eax, 3
jbe 0x100204bc
mov dword [ebp - 0x30], 1
jmp 0x100204c0
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x6c], eax
mov eax, 0xdfe4
cmp eax, 0x4981
je 0x100204e1
mov dword [ebp - 0x38], 1
jmp 0x100204e5
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
jmp 0x10020503
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10020503
push 0
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov esp, ebp
pop ebp
ret
Function at 0x10020731
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x100207a1
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1002077c
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1002077a
push 0x72f
push 0x8a2
push 0
push 0x7c9
push 0
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
jmp 0x1002079f
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x1002079f
push 0
push 0xd23
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x100207c2
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
push 0x10a7
push 1
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.10015d32
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x10025506
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x10025549
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
push dword [ebp - 8]
push 0x3fc2
push 0x65b1
push 1
push dword [ebp - 0xc]
push 0x1861
push 0x1134
call fcn.100255db
add esp, 0x1c
jmp 0x100255d7
lea eax, [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x100255b2
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10025593
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 3
jge 0x100255b0
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x24]
call fcn.1002c5a0
mov dword [eax], 0x4fc2285f
jmp 0x10025588
jmp 0x100255d7
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x803
push 0x1398
push 0x1edb
push 0
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov esp, ebp
pop ebp
ret
Function at 0x1003a470
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x1003a48c
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esp, ebp
pop ebp
ret
Function at 0x100413d2
Capabilities:
Get file attributes

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
ret
Function at 0x10066ca5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10071750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.100586e8
mov dword [ebp - 0x14], eax
cmp dword [0x1065e300], esi
jne 0x10066d98
push 0x800
push esi
push 0x10007678
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10066d25
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10066e78
push esi
push esi
push 0x10007678
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10066e78
push 0x10007690
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10066e78
push eax
call ebx
push 0x1000769c
push edi
mov dword [0x1065e300], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100076ac
push edi
mov dword [0x1065e304], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100076c0
push edi
mov dword [0x1065e308], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1065e310], eax
test eax, eax
je 0x10066d95
push 0x100076dc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1065e30c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10066dbd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10066db0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10066dd2
push 4
pop eax
jmp 0x10066e7a
cmp dword [ebp - 0x14], esi
je 0x10066dd2
push dword [0x1065e300]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10066db7
mov eax, dword [0x1065e30c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10066e30
cmp dword [0x1065e310], edi
je 0x10066e30
push eax
call ebx
push dword [0x1065e310]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10066e30
test eax, eax
je 0x10066e30
call ecx
test eax, eax
je 0x10066e25
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10066e25
test byte [ebp - 8], 1
jne 0x10066e30
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10066e60
mov eax, dword [0x1065e304]
cmp eax, edi
je 0x10066e5d
push eax
call ebx
test eax, eax
je 0x10066e5d
call eax
mov esi, eax
test esi, esi
je 0x10066e5d
mov eax, dword [0x1065e308]
cmp eax, edi
je 0x10066e5d
push eax
call ebx
test eax, eax
je 0x10066e5d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1065e300]
call ebx
test eax, eax
je 0x10066e78
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10066e7a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10055de4
mov esp, ebp
pop ebp
ret
Function at 0x403f3c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x4188d4], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x403f80
call ebx
test eax, eax
jns 0x403f76
push 0x40155c
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x401550
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4188d0], eax
mov dword [0x4188d4], 1
mov eax, dword [0x4188d0]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x403f9c
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x403fcc
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x403fc2
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x403fb6
push dword [eax + 8]
call dword [eax]
jmp 0x403fbc
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x403fcb
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 0x4040bd
Capabilities:
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, 0x424
mov eax, dword [0x418898]
push esi
push 0xf0000000
xor esi, esi
push 0x18
push esi
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x41c]
push eax
mov dword [ebp - 0x424], 0x20
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x418], esi
mov byte [ebp - 0x14], 0x14
mov byte [ebp - 0x13], 0xe3
mov byte [ebp - 0x12], 0x1b
mov byte [ebp - 0x11], 0xfe
mov byte [ebp - 0x10], 0xba
mov byte [ebp - 0xf], 0x77
mov byte [ebp - 0xe], 0x1b
mov byte [ebp - 0xd], 0x84
mov byte [ebp - 0xc], 0xdc
mov byte [ebp - 0xb], 0x11
mov byte [ebp - 0xa], 0xb7
mov byte [ebp - 9], 0xd5
mov byte [ebp - 8], 0x2a
mov byte [ebp - 7], 0x94
mov byte [ebp - 6], 0x51
mov byte [ebp - 5], 0x26
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x404230
push ebx
push edi
lea eax, [ebp - 0x418]
push eax
push esi
push esi
push 0x800c
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40416c
xor edi, edi
jmp 0x40421f
mov edi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push esi
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x418]
call edi
test eax, eax
jne 0x40418c
xor edi, edi
jmp 0x404213
push 0x4015ac
push dword [ebp + 8]
mov dword [ebp - 0x420], esi
call dword [sym.imp.msvcrt.dll__wfopen]
mov ebx, eax
cmp ebx, esi
pop ecx
pop ecx
je 0x4041f3
push ebx
push 0x400
lea eax, [ebp - 0x414]
push 1
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, esi
jbe 0x4041eb
add dword [ebp - 0x420], eax
push esi
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x418]
call edi
test eax, eax
je 0x40423d
cmp dword [ebp - 0x420], 0x5000
jb 0x4041a8
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
push esi
lea eax, [ebp - 0x424]
push eax
push dword [ebp + 0xc]
push 2
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
xor edi, edi
test eax, eax
je 0x404213
inc edi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.004140a8
leave
ret 8
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
xor eax, eax
jmp 0x40422e
Function at 0x404262
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 [0x418898]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 8
pop ecx
push 0xf0000000
push 0x18
push 0x4015b8
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 0x40434f
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 0x404343
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 0x4042f1
xor edi, edi
jmp 0x40433a
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 0x4042ed
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 0x4042ed
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.004140a8
leave
ret 8
Function at 0x40514e
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 0x4051dc
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 0x405227
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.004046b5
test eax, eax
je 0x405227
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.0040468b
jmp 0x405229
xor eax, eax
pop esi
leave
ret 8

Function at 0x406398
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x414607
call fcn.00414360
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 0x4063cb
mov ecx, eax
call fcn.00404049
mov ebx, eax
jmp 0x4063cd
xor ebx, ebx
test ebx, ebx
mov byte [ebp - 4], 0
mov dword [ebp - 0x10], ebx
jne 0x4063dd
or esi, 0xffffffff
jmp 0x40643a
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.004124c7
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
Function at 0x406459
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x414619
call fcn.00414360
sub esp, 0x10
mov eax, dword [0x417020]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
and dword [ebp - 4], 0
and dword [ebp - 0x18], 0
push 1
push dword [esi + 4]
call edi
push 2
push dword [esi + 4]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
call edi
push dword [esi + 4]
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x406599
test ebx, ebx
je 0x406599
cmp dword [ebp - 0x14], 0
je 0x406599
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00405d38
test eax, eax
je 0x406581
push 1
push ebx
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
call ebx
push 0
push dword [ebp - 0x14]
call ebx
push 1
push dword [ebp - 0x1c]
push 0x28
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x130
push dword [esi + 4]
call edi
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
je 0x406508
push 0
push eax
call ebx
push 0x138
push dword [esi + 4]
call edi
test eax, eax
je 0x40651b
push 0
push eax
call ebx
push 0x131
push dword [esi + 4]
call edi
test eax, eax
je 0x40652e
push 0
push eax
call ebx
push 0x139
push dword [esi + 4]
call edi
test eax, eax
je 0x406541
push 0
push eax
call ebx
cmp dword [ebp - 0x18], 0
lea ecx, [ebp - 0x10]
jne 0x406551
push 0x1f4
jmp 0x406556
push 0x1f5
call fcn.004057c5
test eax, eax
je 0x406599
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
test edi, edi
je 0x406599
lea eax, [esi + 0x1c]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x34]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x406599
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push ebx
call edi
test byte [esi + 0x4c], 2
je 0x406599
push 1
push dword [ebp - 0x14]
call edi
lea ecx, [ebp - 0x10]
call fcn.0040492b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret