joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c5c6f
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x708c34]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x40], 0x69c118
mov byte [eax], bl
lea eax, [ebp - 0x48]
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetControlLsa
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x3c], str.Skew1
mov dword [ebp - 0x38], 0x69c124
mov dword [ebp - 0x34], str.Data
mov dword [ebp - 0x14], 0x107060b
mov dword [ebp - 0x10], 0xe0a08
mov dword [ebp - 0xc], 0xf020503
mov dword [ebp - 8], 0x40c090d
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c5da0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov edi, ebx
lea eax, [ebp - 0x44]
push eax
push 0x20019
push ebx
push dword [ebp + edi - 0x40]
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4c5d5f
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 9
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4c5d5a
lea eax, [ebp - 0x30]
add eax, edi
push eax
lea eax, [ebp - 0x20]
push 0x685b20
push eax
call fcn.00445d89
add esp, 0xc
push dword [ebp - 0x44]
call esi
add edi, 4
cmp edi, 0x10
jb 0x4c5cee
jmp 0x4c5d5f
push dword [ebp - 0x44]
call esi
push dword [ebp - 0x48]
call esi
pop edi
pop esi
cmp dword [ebp - 0x4c], ebx
jne 0x4c5da0
movzx eax, byte [ebp + ebx - 0x14]
push 0x10
mov al, byte [ebp + eax - 0x30]
mov byte [ebx + 0x73e7c0], al
inc ebx
pop eax
cmp ebx, eax
jb 0x4c5d6b
push dword [ebp + 0xc]
mov dword [0x73e7bc], eax
push dword [ebp - 0x54]
push eax
push 0x73e7c0
call fcn.0044969e
xor eax, eax
add esp, 0x10
inc eax
jmp 0x4c5da2
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005fe955
leave
ret
Function at 0x4c5eba
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2724
call fcn.005fec20
mov eax, dword [0x708c34]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x2718]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c5f81
push esi
lea eax, [ebp - 0x271c]
mov dword [ebp - 0x271c], 0x2710
push eax
lea eax, [ebp - 0x2714]
push eax
lea eax, [ebp - 0x2724]
push eax
push 0
push 0x66ae5d
push dword [ebp - 0x2718]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x2718]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x4c5f81
mov eax, dword [edi]
mov dword [ebp - 0x2720], eax
lea eax, [ebp - 0x2720]
push eax
push ebx
push 0x20
push 0x73e7e8
push dword [ebp - 0x271c]
lea eax, [ebp - 0x2714]
push eax
call fcn.004c5daf
add esp, 0x18
test eax, eax
je 0x4c5f81
mov eax, dword [ebp - 0x2720]
mov dword [edi], eax
xor eax, eax
inc eax
jmp 0x4c5f83
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.005fe955
leave
ret

Function at 0x4c63d4
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2720
call fcn.005fec20
mov eax, dword [0x708c34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
xor esi, esi
cmp dword [ebp + 8], 0x8000
push edi
mov edi, dword [ebp + 0xc]
jne 0x4c6406
xor eax, eax
jmp 0x4c64cd
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 0x2720]
mov dword [ebp - 0x2718], 0x2710
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4c64cb
lea eax, [ebp - 0x271c]
push eax
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 0x2720]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4c64bd
push 0
push dword [ebp + 0x10]
push edi
push dword [ebp - 0x271c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4c64b1
push 0
lea eax, [ebp - 0x2718]
push eax
lea eax, [ebp - 0x2714]
push eax
push 2
push dword [ebp - 0x271c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov esi, eax
test esi, esi
je 0x4c64ab
mov ecx, dword [ebp + 0x18]
lea eax, [ebp - 0x2714]
cmp dword [ebp - 0x2718], ecx
cmovb ecx, dword [ebp - 0x2718]
push ecx
push eax
push ebx
call fcn.006269d0
add esp, 0xc
jmp 0x4c64b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x271c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x2720]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005fe955
leave
ret
Function at 0x4c64dc
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push ebx
push 0xf0000000
push 0x18
xor ebx, ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4c6509
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x4c65e3
push esi
push edi
mov edi, dword [ebp + 0x20]
lea eax, [edi + 0xc]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x4c652b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4c65d4
push 0xc
push 0
push esi
call fcn.00626f50
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x1c]
mov dword [esi + 4], eax
lea eax, [esi + 0xc]
push eax
mov dword [esi], 0x208
mov dword [esi + 8], edi
call fcn.006269d0
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 0
push 0
lea eax, [edi + 0xc]
push eax
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x4c6576
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4c65cd
mov edi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
lea eax, [ebp + 0xc]
push 0
push eax
push 4
push dword [ebp - 4]
call edi
test eax, eax
je 0x4c656e
cmp dword [ebp + 0x14], ebx
je 0x4c65a2
push 0
push dword [ebp + 0x14]
push 1
push dword [ebp - 4]
call edi
test eax, eax
je 0x4c656e
mov edi, dword [ebp + 0x28]
mov eax, dword [edi]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x24]
push 0
push dword [ebp + 0x10]
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x4c656e
mov eax, dword [ebp - 8]
xor ebx, ebx
mov dword [edi], eax
inc ebx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x4c65e6
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push edi
push 0xf0000000
push 0x18
xor edi, edi
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4c6613
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x4c66be
push ebx
mov ebx, dword [ebp + 0xc]
push esi
lea eax, [ebx + 0xc]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x4c6632
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4c66af
push 0xc
push 0
push esi
call fcn.00626f50
push ebx
push dword [ebp + 8]
lea eax, [esi + 0xc]
mov dword [esi], 0x208
push eax
mov dword [esi + 4], 0x6801
mov dword [esi + 8], ebx
call fcn.006269d0
add esp, 0x18
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebx + 0xc]
push eax
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x4c667e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4c66a8
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push 0
push 1
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x4c6676
mov eax, dword [ebp - 4]
xor edi, edi
mov dword [ebx], eax
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
mov eax, edi
pop ebx
pop edi
leave
ret

Function at 0x4c673c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x708c34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4c67da
mov al, byte [esi]
test al, al
je 0x4c67da
push edi
mov edi, esi
mov ecx, esi
cmp al, 0x2f
je 0x4c676e
cmp al, 0x5c
jne 0x4c6770
mov edi, ecx
inc ecx
mov al, byte [ecx]
test al, al
jne 0x4c6766
cmp edi, esi
je 0x4c67ad
sub edi, esi
lea eax, [ebp - 0x108]
push edi
push esi
push eax
call fcn.0063f4b5
add esp, 0xc
cmp edi, 0x104
jae 0x4c67e8
lea eax, [ebp - 0x108]
mov byte [ebp + edi - 0x108], 0
push eax
push ebx
call fcn.004c673c
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0063e750
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0063e760
add esp, 0x10
lea eax, [ebp - 0x20c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005fe955
leave
ret
call fcn.005fe87a
int3
Function at 0x4c6be2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x4c6c5e
cmp dword [edi + 4], 0xffffffff
jne 0x4c6c5e
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x67cb68
push esi
call fcn.0063e760
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x4c6c30
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4c6c30
mov eax, 0x2000000
jmp 0x4c6c63
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004c90e8
add esp, 0x10
test eax, eax
jne 0x4c6c4e
mov eax, dword [ebp - 4]
jmp 0x4c6c63
push eax
call fcn.004c968c
mov dword [edi], eax
mov eax, dword [0x73e83c]
pop ecx
jmp 0x4c6c63
mov eax, 0x1000000
pop edi
leave
ret 0xc
Function at 0x4c91f5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
imul ecx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x4c9228
push 0
lea eax, [ebp + 0x10]
push eax
push ecx
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4c9223
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4c9252
mov edx, dword [edi + 0x18]
push esi
mov esi, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x14]
cmovbe esi, ecx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.006269d0
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
pop esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4c9385
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x4c9444
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x69d508]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x69d508]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x69d508]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x69d508]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x69d508]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x69d508]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x69d508]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x69d508]
sub edi, 1
jne 0x4c939d
pop edi
test esi, esi
je 0x4c9460
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x69d508]
inc edx
sub esi, 1
jne 0x4c9448
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x4cc5e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x65a1d0
call fcn.005fe9fe
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x4cc6d7
cmp edi, dword [ebx + 0xc]
jge 0x4cc6d7
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x4cc637
cmp edi, dword [esi + 8]
jl 0x4cc6c5
cmp dword [ebp + 0xc], 0
je 0x4cc6c5
xor edi, edi
jmp 0x4cc669
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.004cc218
mov esi, eax
test esi, esi
je 0x4cc651
mov dword [esi], vtable.CThreadData.0
jmp 0x4cc653
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esi + eax], ecx
mov dword [ebx + 0x14], esi
push 4
push dword [ebx + 0xc]
call fcn.004cb731
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x4cc685
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4cc691
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x4cc6fe
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.00626f50
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4cc6d7
cmp edi, dword [esi + 8]
jge 0x4cc6d7
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.005fe963
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004ca2a4
int3

Function at 0x4cfd45
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4cfd6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4cfd75
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
leave
ret
lea ecx, [esi + 0xc]
call fcn.004ca6a5
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004d99c7
int3

Function at 0x4d0050
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x4d0061
xor eax, eax
jmp 0x4d007d
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d0082
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
lea ecx, [esi + 0xc]
call fcn.004ca6a5
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004d99c7
int3
Function at 0x4d0120
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x66aac0]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4d0153
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.004ca6a5
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004d99c7
int3

Function at 0x4d0227
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x4d0252
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4d0258
cmp dword [ebp - 4], esi
jne 0x4d026f
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.004ca6a5
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004d99c7
lea ecx, [edi + 0xc]
call fcn.004ca6a5
push eax
push 0xffffffffffffffff
push 0xd
call fcn.004d961d
int3

Function at 0x4d0fe8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.004d14f3
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4d1024
call fcn.004d1205
mov dword [esi + 0xc], 1
jmp 0x4d1029
call fcn.004d1205
cmp dword [esi], 0
je 0x4d1074
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x4d104f
push edi
call fcn.004cb560
lea ecx, [edi + 1]
push ecx
jmp 0x4d105e
push 0xff
call fcn.0041de70
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004cb583
pop edi
jmp 0x4d1098
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x4d1098
push dword [esi]
push dword [ebp - 4]
call fcn.004d0756
pop esi
leave
ret 0xc

Function at 0x4d115c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004d1205
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4d11a4
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004cb560
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004cb583
jmp 0x4d11af
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004d0756
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4d15ad
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x65a232
call fcn.005fe995
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x4d15d3
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4d162d
lea ecx, [ebp - 0x10]
call fcn.004ca566
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x66aac0]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0063f5a1
push eax
call fcn.00404ca4
add esp, 0x14
test esi, esi
je 0x4d1620
push esi
call fcn.00631510
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00442b67
mov eax, ebx
call fcn.005fe963
ret 8

Function at 0x4d4237
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x4d4276
call fcn.004ccac5
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4d4276
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4d427e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.004dd4bd
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4d4c7e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4d4d0a
cmp dword [esi + 0x20], 0
je 0x4d4d0a
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4d4d0a
cmp dword [ebp + 8], 0
je 0x4d4d0a
xor edi, edi
mov ebx, edi
call fcn.004ccac5
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
test eax, eax
je 0x4d4cee
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4d4d0a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.004de040
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4d4d06
mov ecx, esi
call fcn.004d4a1c
mov eax, edi
jmp 0x4d4d0c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4d9dad
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x708c34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x128
xor edi, edi
push edi
push esi
call fcn.00626f50
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.0063f5a1
push eax
call fcn.00404ca4
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x69f71c]
je 0x4d9f0b
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4d9f1f
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4d9f1f
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
je 0x4d9e69
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4d9e5d
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.004d9b5e
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x4d9e64
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4d9e6b
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.004da05d
test eax, eax
je 0x4d9e92
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.004d99e5
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4d9e96
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.004da05d
test eax, eax
je 0x4d9ebd
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.004d99e5
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4d9ec1
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.004da05d
test eax, eax
je 0x4d9ee9
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.004d99e5
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x4d9eeb
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x4d9efd
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x4d9f0b
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005fe955
leave
ret 4
xor eax, eax
jmp 0x4d9f0e