joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c7092
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push 0xf0000000
push 0x18
xor ebx, ebx
mov dword [ebp - 0x14], edx
push ebx
push ebx
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4c70c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x4c719f
push esi
push edi
mov edi, dword [ebp + 0x18]
lea eax, [edi + 0xc]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x4c70e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4c7190
push 0xc
push 0
push esi
call fcn.006390b0
mov eax, dword [ebp - 0x10]
push edi
push dword [ebp + 0x14]
mov dword [esi + 4], eax
lea eax, [esi + 0xc]
push eax
mov dword [esi], 0x208
mov dword [esi + 8], edi
call fcn.00638b30
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 0x4c7132
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4c7189
mov edi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
lea eax, [ebp - 0x14]
push 0
push eax
push 4
push dword [ebp - 4]
call edi
test eax, eax
je 0x4c712a
cmp dword [ebp + 0xc], ebx
je 0x4c715e
push 0
push dword [ebp + 0xc]
push 1
push dword [ebp - 4]
call edi
test eax, eax
je 0x4c712a
mov edi, dword [ebp + 0x20]
mov eax, dword [edi]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x1c]
push 0
push dword [ebp + 8]
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x4c712a
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 0x4c71a2
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
push 0xf0000000
push 0x18
xor edi, edi
mov dword [ebp - 0x10], 2
push edi
push edi
lea eax, [ebp - 0xc]
mov ebx, edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4c71d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x4c72a0
push esi
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x4c71f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4c7293
push 0xc
push edi
push esi
call fcn.006390b0
push 8
pop ecx
xor eax, eax
mov byte [esi], cl
push ecx
push dword [ebp + 0x14]
mov word [esi + 2], ax
lea eax, [esi + 0xc]
push eax
mov byte [esi + 1], 2
mov dword [esi + 4], 0x6601
mov dword [esi + 8], ecx
call fcn.00638b30
add esp, 0x18
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x14
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x4c7245
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4c728c
push edi
lea eax, [ebp - 0x10]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x4c723d
mov edi, dword [ebp + 0x20]
mov eax, dword [edi]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x1c]
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x4c7282
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4c728a
mov eax, dword [ebp - 8]
xor ebx, ebx
mov dword [edi], eax
inc ebx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret
Function at 0x4c72a4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
mov dword [ebp - 0x40], 0x6d95c0
xor ebx, ebx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x3c], str.Skew1
mov dword [ebp - 0x38], 0x6d95cc
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 - 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 0x4c73d6
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 0x4c7393
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 0x4c738e
lea eax, [ebp - 0x30]
add eax, edi
push eax
lea eax, [ebp - 0x20]
push 0x6ccd68
push eax
call fcn.00404468
add esp, 0xc
push dword [ebp - 0x44]
call esi
add edi, 4
cmp edi, 0x10
jb 0x4c7322
jmp 0x4c7393
push dword [ebp - 0x44]
call esi
push dword [ebp - 0x48]
call esi
pop edi
pop esi
cmp dword [ebp - 0x4c], ebx
jne 0x4c73d6
movzx eax, byte [ebp + ebx - 0x14]
push 0x10
mov al, byte [ebp + eax - 0x30]
mov byte [ebx + 0x73d99c], al
inc ebx
pop eax
cmp ebx, eax
jb 0x4c739f
push 0x3e8
push dword [ebp - 0x54]
mov edx, eax
mov dword [0x73d998], eax
mov ecx, 0x73d99c
call fcn.0040452e
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x4c73d8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret
Function at 0x4c7454
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x410], 0x3e8
xor ebx, ebx
mov byte [edi], bl
cmp dword [0x73d998], ebx
je 0x4c757e
lea eax, [ebp - 0x414]
push eax
push 0x20019
push ebx
push str.SECURITYPolicyPolEKList
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c757e
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x41c]
push eax
push ebx
push 0x6c5bb9
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x414]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4c757e
sub dword [ebp - 0x410], 0x1c
lea eax, [ebp - 0x24]
push eax
push ecx
lea eax, [ebp - 0x3f0]
mov ecx, 0x73d99c
push eax
push 0x10
pop edx
call fcn.004c73e5
add esp, 0xc
test eax, eax
je 0x4c757e
mov eax, dword [ebp - 0x410]
add eax, 0xffffffe0
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x3d0]
push eax
push 0x20
lea eax, [ebp - 0x24]
push eax
push ecx
push ebx
push ebx
push 2
pop edx
mov ecx, 0x6610
call fcn.004c7092
add esp, 0x1c
test eax, eax
je 0x4c757e
cmp dword [ebp - 0x418], 0x64
jb 0x4c757e
push 0x20
lea eax, [ebp - 0x38c]
mov esi, 0x73d9bc
push eax
push esi
call fcn.00638b30
push 0x3e8
push edi
push 0x20
pop edx
mov ecx, esi
call fcn.0040452e
xor eax, eax
add esp, 0x14
inc eax
jmp 0x4c7580
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret
Function at 0x4c7bc9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2744
call fcn.00612c90
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x273c]
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
push 0x20019
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c7cd9
lea eax, [ebp - 0x2740]
mov dword [ebp - 0x2740], 0x2710
push eax
lea eax, [ebp - 0x2734]
push eax
lea eax, [ebp - 0x2744]
push eax
push 0
push 0x6c5bb9
push dword [ebp - 0x273c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x273c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4c7cd9
mov eax, dword [ebp - 0x2740]
mov esi, dword [edi]
mov dword [ebp - 0x2738], eax
lea eax, [ebp - 0x24]
push eax
push ecx
lea eax, [ebp - 0x2718]
mov ecx, 0x73d9bc
push eax
push 0x20
pop edx
call fcn.004c73e5
add esp, 0xc
test eax, eax
je 0x4c7cd9
mov eax, dword [ebp - 0x2738]
add eax, 0xffffffe4
mov dword [ebp - 0x2738], eax
cmp eax, esi
ja 0x4c7cd9
push eax
lea eax, [ebp - 0x26f8]
push eax
push ebx
call fcn.00638b30
add esp, 0xc
lea eax, [ebp - 0x2738]
push eax
push ebx
push 0x20
lea eax, [ebp - 0x24]
push eax
push ecx
push 0
push 0
push 2
pop edx
mov ecx, 0x6610
call fcn.004c7092
add esp, 0x1c
test eax, eax
je 0x4c7cd9
mov eax, dword [ebp - 0x2738]
mov dword [edi], eax
xor eax, eax
inc eax
jmp 0x4c7cdb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4caf56
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x4cb012
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 + 0x6c3fb0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6c3fb0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6c3fb0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6c3fb0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6c3fb0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6c3fb0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6c3fb0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6c3fb0]
sub edi, 1
jne 0x4caf6b
pop edi
test esi, esi
je 0x4cb02e
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6c3fb0]
inc edx
sub esi, 1
jne 0x4cb016
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x4cb70a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov ecx, ebx
imul ecx, dword [ebp + 8]
cmp byte [edi], 0
je 0x4cb743
push 0
lea edx, [ebp + 8]
push edx
push ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4cb73e
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x4cb76d
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 - 4]
call fcn.00638b30
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
pop esi
xor edx, edx
pop edi
div ebx
pop ebx
leave
ret

Function at 0x4cc5aa
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
test esi, esi
je 0x4cc644
mov al, byte [esi]
test al, al
je 0x4cc644
push edi
mov edi, esi
mov ecx, esi
cmp al, 0x2f
je 0x4cc5da
cmp al, 0x5c
jne 0x4cc5dc
mov edi, ecx
inc ecx
mov al, byte [ecx]
test al, al
jne 0x4cc5d2
cmp edi, esi
je 0x4cc617
sub edi, esi
lea eax, [ebp - 0x108]
push edi
push esi
push eax
call fcn.00652d1a
add esp, 0xc
cmp edi, 0x104
jae 0x4cc652
lea edx, [ebp - 0x108]
mov byte [ebp + edi - 0x108], 0
mov ecx, ebx
call fcn.004cc5aa
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00651fb0
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00651fc0
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.006122f0
leave
ret
call fcn.00612782
int3
Function at 0x4cc658
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x424c
call fcn.00612c90
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x424c], eax
cmp dword [edi + 4], 0xffffffff
je 0x4cc68a
mov ecx, dword [edi]
call fcn.004cc165
mov ecx, dword [edi]
xor ebx, ebx
or dword [edi + 4], 0xffffffff
cmp dword [ecx + 4], ebx
jg 0x4cc6a1
mov eax, 0x10000
jmp 0x4cc888
cmp dword [ecx + 0x10], ebx
jle 0x4cc6b4
call fcn.004cbce6
jmp 0x4cc6b4
mov ecx, eax
call fcn.004cbd1d
mov eax, dword [edi]
cmp dword [eax + 0x10], ebx
jl 0x4cc6ad
lea eax, [ebp - 0x4240]
push eax
push ecx
mov ecx, edi
call fcn.004cc23b
test byte [ebp - 0x4138], 0x10
je 0x4cc6eb
lea ecx, [edi + 0x138]
lea edx, [ebp - 0x423c]
call fcn.004cc5aa
xor eax, eax
jmp 0x4cc888
mov eax, dword [ebp - 0x424c]
mov esi, eax
mov edx, eax
mov dword [ebp - 0x4248], 1
mov cl, byte [eax]
test cl, cl
je 0x4cc7d4
cmp cl, 0x2f
je 0x4cc716
cmp cl, 0x5c
je 0x4cc716
inc edx
jmp 0x4cc71b
lea esi, [edx + 1]
mov edx, esi
mov cl, byte [edx]
test cl, cl
jne 0x4cc709
cmp esi, eax
je 0x4cc7d4
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00651fb0
sub esi, dword [ebp - 0x424c]
dec esi
pop ecx
pop ecx
cmp esi, 0x104
jae 0x4cc899
mov byte [ebp + esi - 0x110], bl
mov al, byte [ebp - 0x110]
cmp al, 0x2f
je 0x4cc771
cmp al, 0x5c
je 0x4cc771
cmp byte [ebp - 0x10f], 0x3a
je 0x4cc771
mov byte [ebp - 0x4241], bl
jmp 0x4cc77d
mov eax, dword [ebp - 0x4248]
mov byte [ebp - 0x4241], al
lea eax, [ebp - 0x110]
push 0x6d9b50
push eax
call fcn.00651db1
mov esi, eax
lea eax, [ebp - 0x110]
push 0x6d9b58
push eax
call fcn.00651db1
movzx ecx, byte [ebp - 0x4241]
add esp, 0x10
test eax, eax
setne dl
test esi, esi
cmovne ecx, dword [ebp - 0x4248]
or dl, cl
jne 0x4cc7ce
lea ecx, [edi + 0x138]
lea edx, [ebp - 0x110]
call fcn.004cc5aa
mov eax, dword [ebp - 0x424c]
push ebx
push dword [ebp - 0x4138]
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4cc7fc
mov eax, 0x200
jmp 0x4cc888
mov ecx, dword [edi]
call fcn.004cbf01
jmp 0x4cc822
je 0x4cc83f
push ebx
lea ecx, [ebp - 0x424c]
push ecx
push eax
lea eax, [ebp - 0x4110]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cc839
mov ecx, dword [edi]
lea edx, [ebp - 0x4110]
push 0x4000
call fcn.004cbff0
pop ecx
test eax, eax
jns 0x4cc805
mov bl, byte [ebp - 0x4248]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, dword [ebp - 0x4248]
jne 0x4cc86e
test bl, bl
jne 0x4cc86e
lea eax, [ebp - 0x4124]
push eax
lea eax, [ebp - 0x4134]
push eax
lea eax, [ebp - 0x412c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi]
call fcn.004cc165
xor eax, eax
mov ecx, 0x400
test bl, bl
cmovne eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret 0x10
call fcn.00612782
int3
Function at 0x4d01c9
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 0x4d0208
call fcn.004cdf7d
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4d0208
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4d0210
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.004dfaff
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4d0c62
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 0x4d0cee
cmp dword [esi + 0x20], 0
je 0x4d0cee
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4d0cee
cmp dword [ebp + 8], 0
je 0x4d0cee
xor edi, edi
mov ebx, edi
call fcn.004cdf7d
push 0x680c98
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 0x4d0cd2
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 0x4d0cee
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.004e5fb1
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4d0cea
mov ecx, esi
call fcn.004d0a00
mov eax, edi
jmp 0x4d0cf0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4d5ca1
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x66e5ee
call fcn.00612ae6
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x4d5cc7
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4d5d21
lea ecx, [ebp - 0x10]
call fcn.00406e75
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 [0x67fb80]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00652e06
push eax
call fcn.00407cc0
add esp, 0x14
test esi, esi
je 0x4d5d14
push esi
call fcn.00643470
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004061d0
mov eax, ebx
call fcn.00612ab4
ret 8
Function at 0x4db73d
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x4db790
push esi
push dword [ebp + 8]
call fcn.004db923
mov edi, eax
test edi, edi
je 0x4db78b
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4db78b
mov eax, dword [ebp - 8]
jmp 0x4db7a2
mov eax, dword [ebp + 0x10]
jmp 0x4db7a2
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0xc

Function at 0x4db7a8
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66e9d3
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.00612c90
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x101c], edi
mov dword [ebp - 0x1024], eax
cmp dword [ecx + 0x58], ebx
je 0x4db8d6
push ebx
push edx
call fcn.004db923
mov ebx, eax
test ebx, ebx
jne 0x4db810
push esi
jmp 0x4db8fe
lea ecx, [ebp - 0x1014]
call fcn.00406e75
xor ecx, ecx
lea eax, [ebp - 0x1018]
push eax
push ecx
lea eax, [ebp - 0x1020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x1024]
mov dword [ebp - 0x1020], ecx
push ebx
mov dword [ebp - 0x1018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x101c], eax
test eax, eax
jne 0x4db895
push dword [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
call fcn.00406efd
lea ecx, [ebp - 0x1018]
push ecx
push eax
lea eax, [ebp - 0x1020]
push eax
push 0
push dword [ebp - 0x1024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x101c], eax
call fcn.004d29d8
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x101c], 0
jne 0x4db8c3
mov esi, dword [ebp - 0x1014]
add esi, 0xfffffff0
push esi
call fcn.00445403
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.004061d0
jmp 0x4db905
push esi
mov ecx, edi
call fcn.004446f6
mov ecx, dword [ebp - 0x1014]
lea ecx, [ecx - 0x10]
jmp 0x4db8bc
test esi, esi
jne 0x4db8df
mov esi, 0x6c5bb9
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x1010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, edi
call fcn.004446f6
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 - 0x10]
xor ecx, ebp
call fcn.006122f0
leave
ret 0x10
Function at 0x4dc8b6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x84], 0
mov esi, dword [ebx + 0x8c]
mov edi, dword [ebx + 0x88]
je 0x4dc8fe
call fcn.004cdf7d
push 5
push dword [ebx + 0x84]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4dc8fe
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4dc90b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x4dc947
mov edx, 0xffff
lea ecx, [esi + 0xc]
cmp word [esi + 2], dx
jne 0x4dc92a
movzx edi, word [esi + 0x12]
movzx edx, word [esi + 0x14]
jmp 0x4dc933
movzx edx, word [ecx]
mov ecx, esi
movzx edi, word [esi + 0xa]
test dword [ecx], 0x1801
jne 0x4dc945
test di, di
jne 0x4dc945
test dx, dx
je 0x4dc947
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4dc94c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [esi + 0x84], edi
test edi, 0xffff0000
jne 0x4dc977
cmp dword [esi + 0x80], 0
jne 0x4dc977
movzx eax, di
mov dword [esi + 0x80], eax
call fcn.004cdf7d
push 5
push edi
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4dc9a7
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4dc9a7
push ebx
push dword [ebp + 0xc]
mov ecx, esi
push eax
call fcn.004dcc0e
jmp 0x4dc9a9
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4dc9b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
call fcn.004cdf7d
push 5
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4dc9f0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4dc9f0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.004dc9f8
jmp 0x4dc9f2
xor eax, eax
pop edi
pop esi
pop ebp
ret 8